var qye=Object.defineProperty;var Yye=(t,e,n)=>e in t?qye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Jye=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var yy=(t,e,n)=>(Yye(t,typeof e!="symbol"?e+"":e,n),n);var $8t=Jye((ms,gs)=>{function Qye(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ms(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var a=Function.bind.apply(e,i);return new a}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var D_={},Kye={get exports(){return D_},set exports(t){D_=t}},XA={},C={},Xye={get exports(){return C},set exports(t){C=t}},In={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var W1=Symbol.for("react.element"),Zye=Symbol.for("react.portal"),ebe=Symbol.for("react.fragment"),tbe=Symbol.for("react.strict_mode"),nbe=Symbol.for("react.profiler"),rbe=Symbol.for("react.provider"),ibe=Symbol.for("react.context"),abe=Symbol.for("react.forward_ref"),obe=Symbol.for("react.suspense"),sbe=Symbol.for("react.memo"),lbe=Symbol.for("react.lazy"),Rz=Symbol.iterator;function cbe(t){return t===null||typeof t!="object"?null:(t=Rz&&t[Rz]||t["@@iterator"],typeof t=="function"?t:null)}var EQ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},SQ=Object.assign,CQ={};function p0(t,e,n){this.props=t,this.context=e,this.refs=CQ,this.updater=n||EQ}p0.prototype.isReactComponent={};p0.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};p0.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function TQ(){}TQ.prototype=p0.prototype;function Y3(t,e,n){this.props=t,this.context=e,this.refs=CQ,this.updater=n||EQ}var J3=Y3.prototype=new TQ;J3.constructor=Y3;SQ(J3,p0.prototype);J3.isPureReactComponent=!0;var Oz=Array.isArray,AQ=Object.prototype.hasOwnProperty,Q3={current:null},IQ={key:!0,ref:!0,__self:!0,__source:!0};function MQ(t,e,n){var r,i={},a=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(a=""+e.key),e)AQ.call(e,r)&&!IQ.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(10?Oa(h0,--Go):0,xv--,Ri===10&&(xv=1,eI--),Ri}function vs(){return Ri=Go2||R_(Ri)>3?"":" "}function Lbe(t,e){for(;--e&&vs()&&!(Ri<48||Ri>102||Ri>57&&Ri<65||Ri>70&&Ri<97););return q1(t,tC()+(e<6&&Jc()==32&&vs()==32))}function O2(t){for(;vs();)switch(Ri){case t:return Go;case 34:case 39:t!==34&&t!==39&&O2(Ri);break;case 40:t===41&&O2(t);break;case 92:vs();break}return Go}function kbe(t,e){for(;vs()&&t+Ri!==47+10;)if(t+Ri===42+42&&Jc()===47)break;return"/*"+q1(e,Go-1)+"*"+ZA(t===47?t:vs())}function Fbe(t){for(;!R_(Jc());)vs();return q1(t,Go)}function $be(t){return FQ(rC("",null,null,null,[""],t=kQ(t),0,[0],t))}function rC(t,e,n,r,i,a,o,s,l){for(var c=0,u=0,d=o,f=0,p=0,h=0,v=1,b=1,g=1,y=0,w="",x=i,S=a,T=r,I=w;b;)switch(h=y,y=vs()){case 40:if(h!=108&&Oa(I,d-1)==58){R2(I+=Yn(nC(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:I+=nC(y);break;case 9:case 10:case 13:case 32:I+=Nbe(h);break;case 92:I+=Lbe(tC()-1,7);continue;case 47:switch(Jc()){case 42:case 47:oE(Bbe(kbe(vs(),tC()),e,n),l);break;default:I+="/"}break;case 123*v:s[c++]=Rc(I)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+u:g==-1&&(I=Yn(I,/\f/g,"")),p>0&&Rc(I)-d&&oE(p>32?kz(I+";",r,n,d-1):kz(Yn(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(oE(T=Lz(I,e,n,c,u,i,s,w,x=[],S=[],d),a),y===123)if(u===0)rC(I,e,T,T,x,a,d,s,S);else switch(f===99&&Oa(I,3)===110?100:f){case 100:case 108:case 109:case 115:rC(t,T,T,r&&oE(Lz(t,T,T,0,0,i,s,w,i,x=[],d),S),i,S,d,s,r?x:S);break;default:rC(I,T,T,T,[""],S,0,s,S)}}c=u=p=0,v=g=1,w=I="",d=o;break;case 58:d=1+Rc(I),p=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&Obe()==125)continue}switch(I+=ZA(y),y*v){case 38:g=u>0?1:(I+="\f",-1);break;case 44:s[c++]=(Rc(I)-1)*g,g=1;break;case 64:Jc()===45&&(I+=nC(vs())),f=Jc(),u=d=Rc(w=I+=Fbe(tC())),y++;break;case 45:h===45&&Rc(I)==2&&(v=0)}}return a}function Lz(t,e,n,r,i,a,o,s,l,c,u){for(var d=i-1,f=i===0?a:[""],p=eF(f),h=0,v=0,b=0;h0?f[g]+" "+y:Yn(y,/&\f/g,f[g])))&&(l[b++]=w);return tI(t,e,n,i===0?X3:s,l,c,u)}function Bbe(t,e,n){return tI(t,e,n,RQ,ZA(Rbe()),P_(t,2,-2),0)}function kz(t,e,n,r){return tI(t,e,n,Z3,P_(t,0,r),P_(t,r+1,-1),r)}function Qg(t,e){for(var n="",r=eF(t),i=0;i6)switch(Oa(t,e+1)){case 109:if(Oa(t,e+4)!==45)break;case 102:return Yn(t,/(.+:)(.+)-([^]+)/,"$1"+qn+"$2-$3$1"+zC+(Oa(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~R2(t,"stretch")?BQ(Yn(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Oa(t,e+1)!==115)break;case 6444:switch(Oa(t,Rc(t)-3-(~R2(t,"!important")&&10))){case 107:return Yn(t,":",":"+qn)+t;case 101:return Yn(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qn+(Oa(t,14)===45?"inline-":"")+"box$3$1"+qn+"$2$3$1"+qa+"$2box$3")+t}break;case 5936:switch(Oa(t,e+11)){case 114:return qn+t+qa+Yn(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return qn+t+qa+Yn(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return qn+t+qa+Yn(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return qn+t+qa+t+t}return t}var Ybe=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Z3:e.return=BQ(e.value,e.length);break;case OQ:return Qg([by(e,{value:Yn(e.value,"@","@"+qn)})],i);case X3:if(e.length)return Pbe(e.props,function(a){switch(Dbe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qg([by(e,{props:[Yn(a,/:(read-\w+)/,":"+zC+"$1")]})],i);case"::placeholder":return Qg([by(e,{props:[Yn(a,/:(plac\w+)/,":"+qn+"input-$1")]}),by(e,{props:[Yn(a,/:(plac\w+)/,":"+zC+"$1")]}),by(e,{props:[Yn(a,/:(plac\w+)/,qa+"input-$1")]})],i)}return""})}},Jbe=[Ybe],nI=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var b=v.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=e.stylisPlugins||Jbe,a={},o,s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var b=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var d_e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},f_e=!1,p_e=/[A-Z]|^ms/g,h_e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zQ=function(e){return e.charCodeAt(1)===45},Hz=function(e){return e!=null&&typeof e!="boolean"},yR=$Q(function(t){return zQ(t)?t:t.replace(p_e,"-$&").toLowerCase()}),Vz=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(h_e,function(r,i,a){return Oc={name:i,styles:a,next:Oc},i})}return d_e[e]!==1&&!zQ(e)&&typeof n=="number"&&n!==0?n+"px":n},m_e="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function O_(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Oc={name:i.name,styles:i.styles,next:Oc},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Oc={name:o.name,styles:o.styles,next:Oc},o=o.next;var s=a.styles+";";return s}return g_e(t,e,n)}case"function":{if(t!==void 0){var l=Oc,c=n(t);return Oc=l,O_(t,e,c)}break}}var u=n;if(e==null)return u;var d=e[u];return d!==void 0?d:u}function g_e(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i>>1,U=$[le];if(0>>1;lei(ne,K))Gi(te,ne)?($[le]=te,$[G]=K,le=G):($[le]=ne,$[z]=K,le=z);else if(Gi(te,K))$[le]=te,$[G]=K,le=G;else break e}}return W}function i($,W){var K=$.sortIndex-W.sortIndex;return K!==0?K:$.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w($){for(var W=n(c);W!==null;){if(W.callback===null)r(c);else if(W.startTime<=$)r(c),W.sortIndex=W.expirationTime,e(l,W);else break;W=n(c)}}function x($){if(v=!1,w($),!h)if(n(l)!==null)h=!0,B(S);else{var W=n(c);W!==null&&H(x,W.startTime-$)}}function S($,W){h=!1,v&&(v=!1,g(P),P=-1),p=!0;var K=f;try{for(w(W),d=n(l);d!==null&&(!(d.expirationTime>W)||$&&!R());){var le=d.callback;if(typeof le=="function"){d.callback=null,f=d.priorityLevel;var U=le(d.expirationTime<=W);W=t.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),w(W)}else r(l);d=n(l)}if(d!==null)var q=!0;else{var z=n(c);z!==null&&H(x,z.startTime-W),q=!1}return q}finally{d=null,f=K,p=!1}}var T=!1,I=null,P=-1,M=5,N=-1;function R(){return!(t.unstable_now()-N$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<$?Math.floor(1e3/$):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function($){switch(f){case 1:case 2:case 3:var W=3;break;default:W=f}var K=f;f=W;try{return $()}finally{f=K}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function($,W){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var K=f;f=$;try{return W()}finally{f=K}},t.unstable_scheduleCallback=function($,W,K){var le=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0le?($.sortIndex=K,e(c,$),n(l)===null&&$===n(c)&&(v?(g(P),P=-1):v=!0,H(x,K-le))):($.sortIndex=U,e(l,$),h||p||(h=!0,B(S))),$},t.unstable_shouldYield=R,t.unstable_wrapCallback=function($){var W=f;return function(){var K=f;f=W;try{return $.apply(this,arguments)}finally{f=K}}}})(JQ);(function(t){t.exports=JQ})(E_e);/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var QQ=C,Ss=F2;function gt(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$2=Object.prototype.hasOwnProperty,S_e=/^[: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]*$/,Gz={},Wz={};function C_e(t){return $2.call(Wz,t)?!0:$2.call(Gz,t)?!1:S_e.test(t)?Wz[t]=!0:(Gz[t]=!0,!1)}function T_e(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function A_e(t,e,n,r){if(e===null||typeof e>"u"||T_e(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function xo(t,e,n,r,i,a,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var Ba={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ba[t]=new xo(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ba[e]=new xo(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ba[t]=new xo(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ba[t]=new xo(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ba[t]=new xo(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ba[t]=new xo(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ba[t]=new xo(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ba[t]=new xo(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ba[t]=new xo(t,5,!1,t.toLowerCase(),null,!1,!1)});var lF=/[\-:]([a-z])/g;function cF(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(lF,cF);Ba[e]=new xo(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(lF,cF);Ba[e]=new xo(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(lF,cF);Ba[e]=new xo(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ba[t]=new xo(t,1,!1,t.toLowerCase(),null,!1,!1)});Ba.xlinkHref=new xo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ba[t]=new xo(t,1,!1,t.toLowerCase(),null,!0,!0)});function uF(t,e,n,r){var i=Ba.hasOwnProperty(e)?Ba[e]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` `+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=s);break}}}finally{_R=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Db(t):""}function I_e(t){switch(t.tag){case 5:return Db(t.type);case 16:return Db("Lazy");case 13:return Db("Suspense");case 19:return Db("SuspenseList");case 0:case 2:case 15:return t=wR(t.type,!1),t;case 11:return t=wR(t.type.render,!1),t;case 1:return t=wR(t.type,!0),t;default:return""}}function V2(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Eg:return"Fragment";case xg:return"Portal";case B2:return"Profiler";case dF:return"StrictMode";case U2:return"Suspense";case H2:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ZQ:return(t.displayName||"Context")+".Consumer";case XQ:return(t._context.displayName||"Context")+".Provider";case fF:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case pF:return e=t.displayName||null,e!==null?e:V2(t.type)||"Memo";case of:e=t._payload,t=t._init;try{return V2(t(e))}catch{}}return null}function M_e(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V2(e);case 8:return e===dF?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function qf(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function tK(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function D_e(t){var e=tK(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function lE(t){t._valueTracker||(t._valueTracker=D_e(t))}function nK(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=tK(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function GC(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function z2(t,e){var n=e.checked;return Zr({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Yz(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=qf(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function rK(t,e){e=e.checked,e!=null&&uF(t,"checked",e,!1)}function j2(t,e){rK(t,e);var n=qf(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?G2(t,e.type,n):e.hasOwnProperty("defaultValue")&&G2(t,e.type,qf(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Jz(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function G2(t,e,n){(e!=="number"||GC(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Pb=Array.isArray;function Kg(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=cE.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function L_(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Gb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},P_e=["Webkit","ms","Moz","O"];Object.keys(Gb).forEach(function(t){P_e.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Gb[e]=Gb[t]})});function sK(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Gb.hasOwnProperty(t)&&Gb[t]?(""+e).trim():e+"px"}function lK(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sK(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var R_e=Zr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Y2(t,e){if(e){if(R_e[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(gt(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(gt(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(gt(61))}if(e.style!=null&&typeof e.style!="object")throw Error(gt(62))}}function J2(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Q2=null;function hF(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var K2=null,Xg=null,Zg=null;function Xz(t){if(t=K1(t)){if(typeof K2!="function")throw Error(gt(280));var e=t.stateNode;e&&(e=_I(e),K2(t.stateNode,t.type,e))}}function cK(t){Xg?Zg?Zg.push(t):Zg=[t]:Xg=t}function uK(){if(Xg){var t=Xg,e=Zg;if(Zg=Xg=null,Xz(t),e)for(t=0;t>>=0,t===0?32:31-(z_e(t)/j_e|0)|0}var uE=64,dE=4194304;function Rb(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function JC(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,a=t.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Rb(s):(a&=o,a!==0&&(r=Rb(a)))}else o=n&~i,o!==0?r=Rb(o):a!==0&&(r=Rb(a));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,a=e&-e,i>=a||i===16&&(a&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function J1(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-oc(e),t[e]=n}function Y_e(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=qb),sj=String.fromCharCode(32),lj=!1;function DK(t,e){switch(t){case"keyup":return x1e.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function PK(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Sg=!1;function S1e(t,e){switch(t){case"compositionend":return PK(e);case"keypress":return e.which!==32?null:(lj=!0,sj);case"textInput":return t=e.data,t===sj&&lj?null:t;default:return null}}function C1e(t,e){if(Sg)return t==="compositionend"||!xF&&DK(t,e)?(t=IK(),aC=bF=vf=null,Sg=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fj(n)}}function LK(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?LK(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function kK(){for(var t=window,e=GC();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=GC(t.document)}return e}function EF(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function N1e(t){var e=kK(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&LK(n.ownerDocument.documentElement,n)){if(r!==null&&EF(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!t.extend&&a>r&&(i=r,r=a,a=i),i=pj(n,a);var o=pj(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),a>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cg=null,rL=null,Jb=null,iL=!1;function hj(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;iL||Cg==null||Cg!==GC(r)||(r=Cg,"selectionStart"in r&&EF(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jb&&H_(Jb,r)||(Jb=r,r=XC(rL,"onSelect"),0Ig||(t.current=uL[Ig],uL[Ig]=null,Ig--)}function Tr(t,e){Ig++,uL[Ig]=t.current,t.current=e}var Yf={},Ka=rp(Yf),$o=rp(!1),Eh=Yf;function Sv(t,e){var n=t.type.contextTypes;if(!n)return Yf;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=e[a];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Bo(t){return t=t.childContextTypes,t!=null}function eT(){Rr($o),Rr(Ka)}function wj(t,e,n){if(Ka.current!==Yf)throw Error(gt(168));Tr(Ka,e),Tr($o,n)}function GK(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(gt(108,M_e(t)||"Unknown",i));return Zr({},n,r)}function tT(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Yf,Eh=Ka.current,Tr(Ka,t),Tr($o,$o.current),!0}function xj(t,e,n){var r=t.stateNode;if(!r)throw Error(gt(169));n?(t=GK(t,e,Eh),r.__reactInternalMemoizedMergedChildContext=t,Rr($o),Rr(Ka),Tr(Ka,t)):Rr($o),Tr($o,n)}var Wu=null,wI=!1,LR=!1;function WK(t){Wu===null?Wu=[t]:Wu.push(t)}function W1e(t){wI=!0,WK(t)}function ip(){if(!LR&&Wu!==null){LR=!0;var t=0,e=rr;try{var n=Wu;for(rr=1;t>=o,i-=o,Xu=1<<32-oc(e)+i|n<P?(M=I,I=null):M=I.sibling;var N=f(g,I,w[P],x);if(N===null){I===null&&(I=M);break}t&&I&&N.alternate===null&&e(g,I),y=a(N,y,P),T===null?S=N:T.sibling=N,T=N,I=M}if(P===w.length)return n(g,I),Vr&&Vp(g,P),S;if(I===null){for(;PP?(M=I,I=null):M=I.sibling;var R=f(g,I,N.value,x);if(R===null){I===null&&(I=M);break}t&&I&&R.alternate===null&&e(g,I),y=a(R,y,P),T===null?S=R:T.sibling=R,T=R,I=M}if(N.done)return n(g,I),Vr&&Vp(g,P),S;if(I===null){for(;!N.done;P++,N=w.next())N=d(g,N.value,x),N!==null&&(y=a(N,y,P),T===null?S=N:T.sibling=N,T=N);return Vr&&Vp(g,P),S}for(I=r(g,I);!N.done;P++,N=w.next())N=p(I,g,P,N.value,x),N!==null&&(t&&N.alternate!==null&&I.delete(N.key===null?P:N.key),y=a(N,y,P),T===null?S=N:T.sibling=N,T=N);return t&&I.forEach(function(O){return e(g,O)}),Vr&&Vp(g,P),S}function b(g,y,w,x){if(typeof w=="object"&&w!==null&&w.type===Eg&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case sE:e:{for(var S=w.key,T=y;T!==null;){if(T.key===S){if(S=w.type,S===Eg){if(T.tag===7){n(g,T.sibling),y=i(T,w.props.children),y.return=g,g=y;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===of&&Mj(S)===T.type){n(g,T.sibling),y=i(T,w.props),y.ref=Cy(g,T,w),y.return=g,g=y;break e}n(g,T);break}else e(g,T);T=T.sibling}w.type===Eg?(y=ph(w.props.children,g.mode,x,w.key),y.return=g,g=y):(x=pC(w.type,w.key,w.props,null,g.mode,x),x.ref=Cy(g,y,w),x.return=g,g=x)}return o(g);case xg:e:{for(T=w.key;y!==null;){if(y.key===T)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=i(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else e(g,y);y=y.sibling}y=zR(w,g.mode,x),y.return=g,g=y}return o(g);case of:return T=w._init,b(g,y,T(w._payload),x)}if(Pb(w))return h(g,y,w,x);if(_y(w))return v(g,y,w,x);yE(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,w),y.return=g,g=y):(n(g,y),y=VR(w,g.mode,x),y.return=g,g=y),o(g)):n(g,y)}return b}var Tv=eX(!0),tX=eX(!1),X1={},Kc=rp(X1),G_=rp(X1),W_=rp(X1);function oh(t){if(t===X1)throw Error(gt(174));return t}function RF(t,e){switch(Tr(W_,e),Tr(G_,t),Tr(Kc,X1),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:q2(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=q2(e,t)}Rr(Kc),Tr(Kc,e)}function Av(){Rr(Kc),Rr(G_),Rr(W_)}function nX(t){oh(W_.current);var e=oh(Kc.current),n=q2(e,t.type);e!==n&&(Tr(G_,t),Tr(Kc,n))}function OF(t){G_.current===t&&(Rr(Kc),Rr(G_))}var Yr=rp(0);function sT(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var kR=[];function NF(){for(var t=0;tn?n:4,t(!0);var r=FR.transition;FR.transition={};try{t(!1),e()}finally{rr=n,FR.transition=r}}function yX(){return _l().memoizedState}function Q1e(t,e,n){var r=Of(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bX(t))_X(e,n);else if(n=QK(t,e,n,r),n!==null){var i=vo();sc(n,t,r,i),wX(n,e,r)}}function K1e(t,e,n){var r=Of(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bX(t))_X(e,i);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,hc(s,o)){var l=e.interleaved;l===null?(i.next=i,DF(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=QK(t,e,i,r),n!==null&&(i=vo(),sc(n,t,r,i),wX(n,e,r))}}function bX(t){var e=t.alternate;return t===Xr||e!==null&&e===Xr}function _X(t,e){Qb=lT=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function wX(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,gF(t,n)}}var cT={readContext:bl,useCallback:Ga,useContext:Ga,useEffect:Ga,useImperativeHandle:Ga,useInsertionEffect:Ga,useLayoutEffect:Ga,useMemo:Ga,useReducer:Ga,useRef:Ga,useState:Ga,useDebugValue:Ga,useDeferredValue:Ga,useTransition:Ga,useMutableSource:Ga,useSyncExternalStore:Ga,useId:Ga,unstable_isNewReconciler:!1},X1e={readContext:bl,useCallback:function(t,e){return Dc().memoizedState=[t,e===void 0?null:e],t},useContext:bl,useEffect:Pj,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,cC(4194308,4,pX.bind(null,e,t),n)},useLayoutEffect:function(t,e){return cC(4194308,4,t,e)},useInsertionEffect:function(t,e){return cC(4,2,t,e)},useMemo:function(t,e){var n=Dc();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Dc();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Q1e.bind(null,Xr,t),[r.memoizedState,t]},useRef:function(t){var e=Dc();return t={current:t},e.memoizedState=t},useState:Dj,useDebugValue:BF,useDeferredValue:function(t){return Dc().memoizedState=t},useTransition:function(){var t=Dj(!1),e=t[0];return t=J1e.bind(null,t[1]),Dc().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Xr,i=Dc();if(Vr){if(n===void 0)throw Error(gt(407));n=n()}else{if(n=e(),pa===null)throw Error(gt(349));Ch&30||aX(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,Pj(sX.bind(null,r,a,t),[t]),r.flags|=2048,J_(9,oX.bind(null,r,a,n,e),void 0,null),n},useId:function(){var t=Dc(),e=pa.identifierPrefix;if(Vr){var n=Zu,r=Xu;n=(r&~(1<<32-oc(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=q_++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Fc]=e,t[j_]=r,DX(t,e,!1,!1),e.stateNode=t;e:{switch(o=J2(n,r),n){case"dialog":Mr("cancel",t),Mr("close",t),i=r;break;case"iframe":case"object":case"embed":Mr("load",t),i=r;break;case"video":case"audio":for(i=0;iMv&&(e.flags|=128,r=!0,Ty(a,!1),e.lanes=4194304)}else{if(!r)if(t=sT(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ty(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Vr)return Wa(e),null}else 2*vi()-a.renderingStartTime>Mv&&n!==1073741824&&(e.flags|=128,r=!0,Ty(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(n=a.last,n!==null?n.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=vi(),e.sibling=null,n=Yr.current,Tr(Yr,r?n&1|2:n&1),e):(Wa(e),null);case 22:case 23:return GF(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?is&1073741824&&(Wa(e),e.subtreeFlags&6&&(e.flags|=8192)):Wa(e),null;case 24:return null;case 25:return null}throw Error(gt(156,e.tag))}function owe(t,e){switch(CF(e),e.tag){case 1:return Bo(e.type)&&eT(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Av(),Rr($o),Rr(Ka),NF(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return OF(e),null;case 13:if(Rr(Yr),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(gt(340));Cv()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Rr(Yr),null;case 4:return Av(),null;case 10:return MF(e.type._context),null;case 22:case 23:return GF(),null;case 24:return null;default:return null}}var _E=!1,Ja=!1,swe=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function Rg(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ii(t,e,r)}else n.current=null}function xL(t,e,n){try{n()}catch(r){ii(t,e,r)}}var Uj=!1;function lwe(t,e){if(aL=QC,t=kK(),EF(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,d=t,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===t)break t;if(f===n&&++c===i&&(s=o),f===a&&++u===r&&(l=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(oL={focusedElem:t,selectionRange:n},QC=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){e=Pt;try{var h=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,b=h.memoizedState,g=e.stateNode,y=g.getSnapshotBeforeUpdate(e.elementType===e.type?v:Kl(e.type,v),b);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=e.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(gt(163))}}catch(x){ii(e,e.return,x)}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}return h=Uj,Uj=!1,h}function Kb(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var a=i.destroy;i.destroy=void 0,a!==void 0&&xL(e,n,a)}i=i.next}while(i!==r)}}function SI(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function EL(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function OX(t){var e=t.alternate;e!==null&&(t.alternate=null,OX(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Fc],delete e[j_],delete e[cL],delete e[j1e],delete e[G1e])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function NX(t){return t.tag===5||t.tag===3||t.tag===4}function Hj(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||NX(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function SL(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ZC));else if(r!==4&&(t=t.child,t!==null))for(SL(t,e,n),t=t.sibling;t!==null;)SL(t,e,n),t=t.sibling}function CL(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(CL(t,e,n),t=t.sibling;t!==null;)CL(t,e,n),t=t.sibling}var Ia=null,Zl=!1;function Bd(t,e,n){for(n=n.child;n!==null;)LX(t,e,n),n=n.sibling}function LX(t,e,n){if(Qc&&typeof Qc.onCommitFiberUnmount=="function")try{Qc.onCommitFiberUnmount(gI,n)}catch{}switch(n.tag){case 5:Ja||Rg(n,e);case 6:var r=Ia,i=Zl;Ia=null,Bd(t,e,n),Ia=r,Zl=i,Ia!==null&&(Zl?(t=Ia,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Ia.removeChild(n.stateNode));break;case 18:Ia!==null&&(Zl?(t=Ia,n=n.stateNode,t.nodeType===8?NR(t.parentNode,n):t.nodeType===1&&NR(t,n),B_(t)):NR(Ia,n.stateNode));break;case 4:r=Ia,i=Zl,Ia=n.stateNode.containerInfo,Zl=!0,Bd(t,e,n),Ia=r,Zl=i;break;case 0:case 11:case 14:case 15:if(!Ja&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&xL(n,e,o),i=i.next}while(i!==r)}Bd(t,e,n);break;case 1:if(!Ja&&(Rg(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ii(n,e,s)}Bd(t,e,n);break;case 21:Bd(t,e,n);break;case 22:n.mode&1?(Ja=(r=Ja)||n.memoizedState!==null,Bd(t,e,n),Ja=r):Bd(t,e,n);break;default:Bd(t,e,n)}}function Vj(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new swe),e.forEach(function(r){var i=vwe.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Vl(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=vi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uwe(r/1960))-r,10t?16:t,yf===null)var r=!1;else{if(t=yf,yf=null,fT=0,$n&6)throw Error(gt(331));var i=$n;for($n|=4,Pt=t.current;Pt!==null;){var a=Pt,o=a.child;if(Pt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lvi()-zF?fh(t,0):VF|=n),Uo(t,e)}function zX(t,e){e===0&&(t.mode&1?(e=dE,dE<<=1,!(dE&130023424)&&(dE=4194304)):e=1);var n=vo();t=dd(t,e),t!==null&&(J1(t,e,n),Uo(t,n))}function gwe(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zX(t,n)}function vwe(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(gt(314))}r!==null&&r.delete(e),zX(t,n)}var jX;jX=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||$o.current)No=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return No=!1,iwe(t,e,n);No=!!(t.flags&131072)}else No=!1,Vr&&e.flags&1048576&&qK(e,rT,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;uC(t,e),t=e.pendingProps;var i=Sv(e,Ka.current);tv(e,n),i=kF(null,e,r,t,i,n);var a=FF();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Bo(r)?(a=!0,tT(e)):a=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,PF(e),i.updater=xI,e.stateNode=i,i._reactInternals=e,mL(e,r,t,n),e=yL(null,e,r,!0,a,n)):(e.tag=0,Vr&&a&&SF(e),uo(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(uC(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=bwe(r),t=Kl(r,t),i){case 0:e=vL(null,e,r,t,n);break e;case 1:e=Fj(null,e,r,t,n);break e;case 11:e=Lj(null,e,r,t,n);break e;case 14:e=kj(null,e,r,Kl(r.type,t),n);break e}throw Error(gt(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Kl(r,i),vL(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Kl(r,i),Fj(t,e,r,i,n);case 3:e:{if(AX(e),t===null)throw Error(gt(387));r=e.pendingProps,a=e.memoizedState,i=a.element,KK(t,e),oT(e,r,null,n);var o=e.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){i=Iv(Error(gt(423)),e),e=$j(t,e,r,n,i);break e}else if(r!==i){i=Iv(Error(gt(424)),e),e=$j(t,e,r,n,i);break e}else for(us=Df(e.stateNode.containerInfo.firstChild),ys=e,Vr=!0,ec=null,n=tX(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cv(),r===i){e=fd(t,e,n);break e}uo(t,e,r,n)}e=e.child}return e;case 5:return nX(e),t===null&&fL(e),r=e.type,i=e.pendingProps,a=t!==null?t.memoizedProps:null,o=i.children,sL(r,i)?o=null:a!==null&&sL(r,a)&&(e.flags|=32),TX(t,e),uo(t,e,o,n),e.child;case 6:return t===null&&fL(e),null;case 13:return IX(t,e,n);case 4:return RF(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Tv(e,null,r,n):uo(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Kl(r,i),Lj(t,e,r,i,n);case 7:return uo(t,e,e.pendingProps,n),e.child;case 8:return uo(t,e,e.pendingProps.children,n),e.child;case 12:return uo(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=i.value,Tr(iT,r._currentValue),r._currentValue=o,a!==null)if(hc(a.value,o)){if(a.children===i.children&&!$o.current){e=fd(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=td(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),pL(a.return,n,e),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===e.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(gt(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),pL(o,n,e),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}uo(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,tv(e,n),i=bl(i),r=r(i),e.flags|=1,uo(t,e,r,n),e.child;case 14:return r=e.type,i=Kl(r,e.pendingProps),i=Kl(r.type,i),kj(t,e,r,i,n);case 15:return SX(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Kl(r,i),uC(t,e),e.tag=1,Bo(r)?(t=!0,tT(e)):t=!1,tv(e,n),ZK(e,r,i),mL(e,r,i,n),yL(null,e,r,!0,t,n);case 19:return MX(t,e,n);case 22:return CX(t,e,n)}throw Error(gt(156,e.tag))};function GX(t,e){return vK(t,e)}function ywe(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cl(t,e,n,r){return new ywe(t,e,n,r)}function qF(t){return t=t.prototype,!(!t||!t.isReactComponent)}function bwe(t){if(typeof t=="function")return qF(t)?1:0;if(t!=null){if(t=t.$$typeof,t===fF)return 11;if(t===pF)return 14}return 2}function Nf(t,e){var n=t.alternate;return n===null?(n=cl(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function pC(t,e,n,r,i,a){var o=2;if(r=t,typeof t=="function")qF(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Eg:return ph(n.children,i,a,e);case dF:o=8,i|=8;break;case B2:return t=cl(12,n,e,i|2),t.elementType=B2,t.lanes=a,t;case U2:return t=cl(13,n,e,i),t.elementType=U2,t.lanes=a,t;case H2:return t=cl(19,n,e,i),t.elementType=H2,t.lanes=a,t;case eK:return TI(n,i,a,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case XQ:o=10;break e;case ZQ:o=9;break e;case fF:o=11;break e;case pF:o=14;break e;case of:o=16,r=null;break e}throw Error(gt(130,t==null?t:typeof t,""))}return e=cl(o,n,e,i),e.elementType=t,e.type=r,e.lanes=a,e}function ph(t,e,n,r){return t=cl(7,t,r,e),t.lanes=n,t}function TI(t,e,n,r){return t=cl(22,t,r,e),t.elementType=eK,t.lanes=n,t.stateNode={isHidden:!1},t}function VR(t,e,n){return t=cl(6,t,null,e),t.lanes=n,t}function zR(t,e,n){return e=cl(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function _we(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ER(0),this.expirationTimes=ER(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ER(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function YF(t,e,n,r,i,a,o,s,l){return t=new _we(t,e,n,s,l),e===1?(e=1,a===!0&&(e|=8)):e=0,a=cl(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},PF(a),t}function wwe(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}e(),t.exports=Ps})(x_e);const sh=q3(ld);function DL(t){var e,n,r="";if(t)if(typeof t=="object")if(Array.isArray(t))for(e=0;etypeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||Twe,Iwe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Mwe=/\/\*[^]*?\*\/| +/g,Qj=/\n+/g,Zp=(t,e)=>{let n="",r="",i="";for(let a in t){let o=t[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Zp(o,a):a+"{"+Zp(o,a[1]=="k"?"":e)+"}":typeof o=="object"?r+=Zp(o,e?e.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Zp.p?Zp.p(a,o):a+":"+o+";")}return n+(e&&i?e+"{"+i+"}":i)+r},Iu={},JX=t=>{if(typeof t=="object"){let e="";for(let n in t)e+=n+JX(t[n]);return e}return t},Dwe=(t,e,n,r,i)=>{let a=JX(t),o=Iu[a]||(Iu[a]=(l=>{let c=0,u=11;for(;c>>0;return"go"+u})(a));if(!Iu[o]){let l=a!==t?t:(c=>{let u,d,f=[{}];for(;u=Iwe.exec(c.replace(Mwe,""));)u[4]?f.shift():u[3]?(d=u[3].replace(Qj," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(Qj," ").trim();return f[0]})(t);Iu[o]=Zp(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let s=n&&Iu.g?Iu.g:null;return n&&(Iu.g=Iu[o]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Iu[o],e,r,s),o},Pwe=(t,e,n)=>t.reduce((r,i,a)=>{let o=e[a];if(o&&o.call){let s=o(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":Zp(s,""):s===!1?"":s}return r+i+(o??"")},"");function XF(t){let e=this||{},n=t.call?t(e.p):t;return Dwe(n.unshift?n.raw?Pwe(n,[].slice.call(arguments,1),e.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(e.p):i),{}):n,Awe(e.target),e.g,e.o,e.k)}XF.bind({g:1});XF.bind({k:1});function Kj(t,e){for(var n=0;n=0)&&(n[i]=t[i]);return n}function Xj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Zj=function(){return""},XX=xe.createContext({enqueueSnackbar:Zj,closeSnackbar:Zj}),jp={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},e8=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},ZF=function(e){return""+e8(e.vertical)+e8(e.horizontal)},EE=function(e){return!!e||e===0},SE="unmounted",Om="exited",Nm="entering",Iy="entered",t8="exiting",e$=function(t){KX(e,t);function e(r){var i;i=t.call(this,r)||this;var a=r.appear,o;return i.appearStatus=null,r.in?a?(o=Om,i.appearStatus=Nm):o=Iy:r.unmountOnExit||r.mountOnEnter?o=SE:o=Om,i.state={status:o},i.nextCallback=null,i}e.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===SE?{status:Om}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Nm&&o!==Iy&&(a=Nm):(o===Nm||o===Iy)&&(a=t8)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a=i,o=i;return i!=null&&typeof i!="number"&&typeof i!="string"&&(o=i.exit,a=i.enter),{exit:o,enter:a}},n.updateStatus=function(i,a){i===void 0&&(i=!1),a!==null?(this.cancelNextCallback(),a===Nm?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Om&&this.setState({status:SE})},n.performEnter=function(i){var a=this,o=this.props.enter,s=i,l=this.getTimeouts();if(!i&&!o){this.safeSetState({status:Iy},function(){a.props.onEntered&&a.props.onEntered(a.node,s)});return}this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:Nm},function(){a.props.onEntering&&a.props.onEntering(a.node,s),a.onTransitionEnd(l.enter,function(){a.safeSetState({status:Iy},function(){a.props.onEntered&&a.props.onEntered(a.node,s)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts();if(!a){this.safeSetState({status:Om},function(){i.props.onExited&&i.props.onExited(i.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:t8},function(){i.props.onExiting&&i.props.onExiting(i.node),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Om},function(){i.props.onExited&&i.props.onExited(i.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(){o&&(o=!1,a.nextCallback=null,i())},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=i==null&&!this.props.addEndListener;if(!this.node||o){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===SE)return null;var a=this.props,o=a.children,s=Z1(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o(i,s)},QX(e,[{key:"node",get:function(){var i,a=(i=this.props.nodeRef)===null||i===void 0?void 0:i.current;if(!a)throw new Error("notistack - Custom snackbar is not refForwarding");return a}}]),e}(xe.Component);function Lm(){}e$.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lm,onEntering:Lm,onEntered:Lm,onExit:Lm,onExiting:Lm,onExited:Lm};function n8(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function PL(t,e){return C.useMemo(function(){return t==null&&e==null?null:function(n){n8(t,n),n8(e,n)}},[t,e])}function mT(t){var e=t.timeout,n=t.style,r=n===void 0?{}:n,i=t.mode;return{duration:typeof e=="object"?e[i]||0:e,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var RL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ZX=function(e){e.scrollTop=e.scrollTop},r8=function(e){return Math.round(e)+"ms"};function Ng(t,e){t===void 0&&(t=["all"]);var n=e||{},r=n.duration,i=r===void 0?300:r,a=n.easing,o=a===void 0?RL.easeInOut:a,s=n.delay,l=s===void 0?0:s,c=Array.isArray(t)?t:[t];return c.map(function(u){var d=typeof i=="string"?i:r8(i),f=typeof l=="string"?l:r8(l);return u+" "+d+" "+o+" "+f}).join(",")}function Rwe(t){return t&&t.ownerDocument||document}function eZ(t){var e=Rwe(t);return e.defaultView||window}function Owe(t,e){e===void 0&&(e=166);var n;function r(){for(var i=this,a=arguments.length,o=new Array(a),s=0;s-1,w=b.snacks.findIndex(g)>-1;if(y||w)return b}return i.handleDisplaySnack(cr({},b,{queue:[].concat(b.queue,[v])}))}),p},i.handleDisplaySnack=function(a){var o=a.snacks;return o.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var o=a.queue,s=a.snacks;return o.length>0?cr({},a,{snacks:[].concat(s,[o[0]]),queue:o.slice(1,o.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(u){return!u.open||u.requestClose}))return a;var o=!1,s=!1,l=a.snacks.reduce(function(u,d){return u+(d.open&&d.persist?1:0)},0);l===i.maxSnack&&(s=!0);var c=a.snacks.map(function(u){return!o&&(!u.persist||s)?(o=!0,u.entered?(u.onClose&&u.onClose(null,"maxsnack",u.id),i.props.onClose&&i.props.onClose(null,"maxsnack",u.id),cr({},u,{open:!1})):cr({},u,{requestClose:!0})):cr({},u)});return cr({},a,{snacks:c})},i.handleEnteredSnack=function(a,o,s){if(!EE(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var c=l.snacks;return{snacks:c.map(function(u){return u.id===s?cr({},u,{entered:!0}):cr({},u)})}})},i.handleCloseSnack=function(a,o,s){i.props.onClose&&i.props.onClose(a,o,s);var l=s===void 0;i.setState(function(c){var u=c.snacks,d=c.queue;return{snacks:u.map(function(f){return!l&&f.id!==s?cr({},f):f.entered?cr({},f,{open:!1}):cr({},f,{requestClose:!0})}),queue:d.filter(function(f){return f.id!==s})}})},i.closeSnackbar=function(a){var o=i.state.snacks.find(function(s){return s.id===a});EE(a)&&o&&o.onClose&&o.onClose(null,"instructed",a),i.handleCloseSnack(null,"instructed",a)},i.handleExitedSnack=function(a,o){if(!EE(o))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(s){var l=i.processQueue(cr({},s,{snacks:s.snacks.filter(function(c){return c.id!==o})}));return l.queue.length===0?l:i.handleDismissOldest(l)})},Ut=i.enqueueSnackbar,i.closeSnackbar,i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(Xj(i)),closeSnackbar:i.closeSnackbar.bind(Xj(i))}},i}var n=e.prototype;return n.render=function(){var i=this,a=this.state.contextValue,o=this.props,s=o.domRoot,l=o.children,c=o.dense,u=c===void 0?!1:c,d=o.Components,f=d===void 0?{}:d,p=o.classes,h=this.state.snacks.reduce(function(b,g){var y,w=ZF(g.anchorOrigin),x=b[w]||[];return cr({},b,(y={},y[w]=[].concat(x,[g]),y))},{}),v=Object.keys(h).map(function(b){var g=h[b],y=g[0];return xe.createElement(Zwe,{key:b,dense:u,anchorOrigin:y.anchorOrigin,classes:p},g.map(function(w){return xe.createElement(Kwe,{key:w.id,snack:w,classes:p,Component:f[w.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:e_([i.handleExitedSnack,i.props.onExited],w.id),onEntered:e_([i.handleEnteredSnack,i.props.onEntered],w.id)})}))});return xe.createElement(XX.Provider,{value:a},l,s?ld.createPortal(v,s):v)},QX(e,[{key:"maxSnack",get:function(){return this.props.maxSnack||hh.maxSnack}}]),e}(C.Component),RI=function(){return C.useContext(XX)},OL={},u8=ld;OL.createRoot=u8.createRoot,OL.hydrateRoot=u8.hydrateRoot;/** * @remix-run/router v1.2.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function gr(){return gr=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function nxe(){return Math.random().toString(36).substr(2,8)}function f8(t){return{usr:t.state,key:t.key}}function K_(t,e,n,r){return n===void 0&&(n=null),gr({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?wd(e):e,{state:n,key:e&&e.key||r||nxe()})}function iu(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function wd(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function X_(t){let e=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof t=="string"?t:iu(t);return vn(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}function rxe(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=Mi.Pop,l=null;function c(){s=Mi.Pop,l&&l({action:s,location:f.location})}function u(p,h){s=Mi.Push;let v=K_(f.location,p,h);n&&n(v,p);let b=f8(v),g=f.createHref(v);try{o.pushState(b,"",g)}catch{i.location.assign(g)}a&&l&&l({action:s,location:f.location})}function d(p,h){s=Mi.Replace;let v=K_(f.location,p,h);n&&n(v,p);let b=f8(v),g=f.createHref(v);o.replaceState(b,"",g),a&&l&&l({action:s,location:f.location})}let f={get action(){return s},get location(){return t(i,o)},listen(p){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(d8,c),l=p,()=>{i.removeEventListener(d8,c),l=null}},createHref(p){return e(i,p)},encodeLocation(p){let h=X_(typeof p=="string"?p:iu(p));return{pathname:h.pathname,search:h.search,hash:h.hash}},push:u,replace:d,go(p){return o.go(p)}};return f}var Ra;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ra||(Ra={}));function ixe(t){return t.index===!0}function oZ(t,e,n){return e===void 0&&(e=[]),n===void 0&&(n=new Set),t.map((r,i)=>{let a=[...e,i],o=typeof r.id=="string"?r.id:a.join("-");return vn(r.index!==!0||!r.children,"Cannot specify children on an index route"),vn(!n.has(o),'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),n.add(o),ixe(r)?gr({},r,{id:o}):gr({},r,{id:o,children:r.children?oZ(r.children,a,n):void 0})})}function Nb(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?wd(e):e,i=cZ(r.pathname||"/",n);if(i==null)return null;let a=sZ(t);axe(a);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(vn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=nd([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(vn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),sZ(a.children,e,u,c)),!(a.path==null&&!a.index)&&e.push({path:c,score:fxe(c,a.index),routesMeta:u})};return t.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of lZ(a.path))i(a,o,l)}),e}function lZ(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=lZ(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>t.startsWith("/")&&l===""?"/":l)}function axe(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:pxe(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oxe=/^:\w+$/,sxe=3,lxe=2,cxe=1,uxe=10,dxe=-2,p8=t=>t==="*";function fxe(t,e){let n=t.split("/"),r=n.length;return n.some(p8)&&(r+=dxe),e&&(r+=lxe),n.filter(i=>!p8(i)).reduce((i,a)=>i+(oxe.test(a)?sxe:a===""?cxe:uxe),r)}function pxe(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function hxe(t,e){let{routesMeta:n}=t,r={},i="/",a=[];for(let o=0;o{if(u==="*"){let f=s[d]||"";o=a.slice(0,a.length-f.length).replace(/(.)\/+$/,"$1")}return c[u]=yxe(s[d]||"",u),c},{}),pathname:a,pathnameBase:o,pattern:t}}function gxe(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),t$(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return t.endsWith("*")?(r.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function vxe(t){try{return decodeURI(t)}catch(e){return t$(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function yxe(t,e){try{return decodeURIComponent(t)}catch(n){return t$(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function cZ(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function t$(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bxe(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?wd(t):t;return{pathname:n?n.startsWith("/")?n:_xe(n,e):e,search:xxe(r),hash:Exe(i)}}function _xe(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function QR(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function OI(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function n$(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=wd(t):(i=gr({},t),vn(!i.pathname||!i.pathname.includes("?"),QR("?","pathname","search",i)),vn(!i.pathname||!i.pathname.includes("#"),QR("#","pathname","hash",i)),vn(!i.search||!i.search.includes("#"),QR("#","search","hash",i)));let a=t===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=bxe(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const nd=t=>t.join("/").replace(/\/\/+/g,"/"),wxe=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),xxe=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Exe=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class h8 extends Error{}class Sxe{constructor(e){this.pendingKeys=new Set,this.subscriber=void 0,vn(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((i,a)=>n=a),this.controller=new AbortController;let r=()=>n(new h8("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r),this.controller.signal.addEventListener("abort",r),this.data=Object.entries(e).reduce((i,a)=>{let[o,s]=a;return Object.assign(i,{[o]:this.trackPromise(o,s)})},{})}trackPromise(e,n){if(!(n instanceof Promise))return n;this.pendingKeys.add(e);let r=Promise.race([n,this.abortPromise]).then(i=>this.onSettle(r,e,null,i),i=>this.onSettle(r,e,i));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,n,r,i){if(this.controller.signal.aborted&&r instanceof h8)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);this.pendingKeys.delete(n),this.done&&this.unlistenAbortSignal();const a=this.subscriber;return r?(Object.defineProperty(e,"_error",{get:()=>r}),a&&a(!1),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>i}),a&&a(!1),i)}subscribe(e){this.subscriber=e}cancel(){this.controller.abort(),this.pendingKeys.forEach((n,r)=>this.pendingKeys.delete(r));let e=this.subscriber;e&&e(!0)}async resolveData(e){let n=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),n=await new Promise(i=>{this.subscribe(a=>{e.removeEventListener("abort",r),(a||this.done)&&i(a)})})}return n}get done(){return this.pendingKeys.size===0}get unwrappedData(){return vn(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,n)=>{let[r,i]=n;return Object.assign(e,{[r]:Txe(i)})},{})}}function Cxe(t){return t instanceof Promise&&t._tracked===!0}function Txe(t){if(!Cxe(t))return t;if(t._error)throw t._error;return t._data}class NI{constructor(e,n,r,i){i===void 0&&(i=!1),this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function uZ(t){return t instanceof NI}const dZ=["post","put","patch","delete"],Axe=new Set(dZ),Ixe=["get",...dZ],Mxe=new Set(Ixe),Dxe=new Set([301,302,303,307,308]),Pxe=new Set([307,308]),KR={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Rxe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Oxe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Nxe=!Oxe;function Lxe(t){vn(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=oZ(t.routes),n=null,r=new Set,i=null,a=null,o=null,s=t.hydrationData!=null,l=Nb(e,t.history.location,t.basename),c=null;if(l==null){let ge=eh(404,{pathname:t.history.location.pathname}),{matches:ee,route:Q}=_8(e);l=ee,c={[Q.id]:ge}}let u=!l.some(ge=>ge.route.loader)||t.hydrationData!=null,d,f={historyAction:t.history.action,location:t.history.location,matches:l,initialized:u,navigation:KR,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||c,fetchers:new Map},p=Mi.Pop,h=!1,v,b=!1,g=!1,y=[],w=[],x=new Map,S=0,T=-1,I=new Map,P=new Set,M=new Map,N=new Map;function R(){return n=t.history.listen(ge=>{let{action:ee,location:Q}=ge;return $(ee,Q)}),f.initialized||$(Mi.Pop,f.location),d}function O(){n&&n(),r.clear(),v&&v.abort(),f.fetchers.forEach((ge,ee)=>fe(ee))}function D(ge){return r.add(ge),()=>r.delete(ge)}function L(ge){f=gr({},f,ge),r.forEach(ee=>ee(f))}function k(ge,ee){var Q;let V=f.actionData!=null&&f.navigation.formMethod!=null&&th(f.navigation.formMethod)&&f.navigation.state==="loading"&&((Q=ge.state)==null?void 0:Q._isRedirect)!==!0,j;ee.actionData?Object.keys(ee.actionData).length>0?j=ee.actionData:j=null:V?j=f.actionData:j=null;let ye=ee.loaderData?b8(f.loaderData,ee.loaderData,ee.matches||[],ee.errors):f.loaderData;L(gr({},ee,{actionData:j,loaderData:ye,historyAction:p,location:ge,initialized:!0,navigation:KR,revalidation:"idle",restoreScrollPosition:f.navigation.formData?!1:Ne(ge,ee.matches||f.matches),preventScrollReset:h})),b||p===Mi.Pop||(p===Mi.Push?t.history.push(ge,ge.state):p===Mi.Replace&&t.history.replace(ge,ge.state)),p=Mi.Pop,h=!1,b=!1,g=!1,y=[],w=[]}async function B(ge,ee){if(typeof ge=="number"){t.history.go(ge);return}let{path:Q,submission:V,error:j}=m8(ge,ee),ye=K_(f.location,Q,ee&&ee.state);ye=gr({},ye,t.history.encodeLocation(ye));let ae=ee&&ee.replace!=null?ee.replace:void 0,Ee=Mi.Push;ae===!0?Ee=Mi.Replace:ae===!1||V!=null&&th(V.formMethod)&&V.formAction===f.location.pathname+f.location.search&&(Ee=Mi.Replace);let Pe=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0;return await $(Ee,ye,{submission:V,pendingError:j,preventScrollReset:Pe,replace:ee&&ee.replace})}function H(){if(te(),L({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){$(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}$(p||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation})}}async function $(ge,ee,Q){v&&v.abort(),v=null,p=ge,b=(Q&&Q.startUninterruptedRevalidation)===!0,Me(f.location,f.matches),h=(Q&&Q.preventScrollReset)===!0;let V=Q&&Q.overrideNavigation,j=Nb(e,ee,t.basename);if(!j){let Ae=eh(404,{pathname:ee.pathname}),{matches:he,route:Ye}=_8(e);Z(),k(ee,{matches:he,loaderData:{},errors:{[Ye.id]:Ae}});return}if(Uxe(f.location,ee)){k(ee,{matches:j});return}v=new AbortController;let ye=Ry(ee,v.signal,Q&&Q.submission),ae,Ee;if(Q&&Q.pendingError)Ee={[Lg(j).route.id]:Q.pendingError};else if(Q&&Q.submission&&th(Q.submission.formMethod)){let Ae=await W(ye,ee,Q.submission,j,{replace:Q.replace});if(Ae.shortCircuited)return;ae=Ae.pendingActionData,Ee=Ae.pendingActionError,V=gr({state:"loading",location:ee},Q.submission),ye=new Request(ye.url,{signal:ye.signal})}let{shortCircuited:Pe,loaderData:We,errors:Fe}=await K(ye,ee,j,V,Q&&Q.submission,Q&&Q.replace,ae,Ee);Pe||(v=null,k(ee,gr({matches:j},ae?{actionData:ae}:{},{loaderData:We,errors:Fe})))}async function W(ge,ee,Q,V,j){te();let ye=gr({state:"submitting",location:ee},Q);L({navigation:ye});let ae,Ee=S8(V,ee);if(!Ee.route.action)ae={type:Ra.error,error:eh(405,{method:ge.method,pathname:ee.pathname,routeId:Ee.route.id})};else if(ae=await Py("action",ge,Ee,V,d.basename),ge.signal.aborted)return{shortCircuited:!0};if(rv(ae)){let Pe;return j&&j.replace!=null?Pe=j.replace:Pe=ae.location===f.location.pathname+f.location.search,await ne(f,ae,{submission:Q,replace:Pe}),{shortCircuited:!0}}if(t_(ae)){let Pe=Lg(V,Ee.route.id);return(j&&j.replace)!==!0&&(p=Mi.Push),{pendingActionData:{},pendingActionError:{[Pe.route.id]:ae.error}}}if(lh(ae))throw new Error("defer() is not supported in actions");return{pendingActionData:{[Ee.route.id]:ae.data}}}async function K(ge,ee,Q,V,j,ye,ae,Ee){let Pe=V;Pe||(Pe=gr({state:"loading",location:ee,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},j));let We=j||(Pe.formMethod&&Pe.formAction&&Pe.formData&&Pe.formEncType?{formMethod:Pe.formMethod,formAction:Pe.formAction,formData:Pe.formData,formEncType:Pe.formEncType}:void 0),[Fe,Ae]=g8(f,Q,We,ee,g,y,w,ae,Ee,M);if(Z(at=>!(Q&&Q.some(vt=>vt.route.id===at))||Fe&&Fe.some(vt=>vt.route.id===at)),Fe.length===0&&Ae.length===0)return k(ee,gr({matches:Q,loaderData:{},errors:Ee||null},ae?{actionData:ae}:{})),{shortCircuited:!0};if(!b){Ae.forEach(vt=>{let[At]=vt,Xt=f.fetchers.get(At),on={state:"loading",data:Xt&&Xt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(At,on)});let at=ae||f.actionData;L(gr({navigation:Pe},at?Object.keys(at).length===0?{actionData:null}:{actionData:at}:{},Ae.length>0?{fetchers:new Map(f.fetchers)}:{}))}T=++S,Ae.forEach(at=>{let[vt]=at;return x.set(vt,v)});let{results:he,loaderResults:Ye,fetcherResults:Ke}=await G(f.matches,Q,Fe,Ae,ge);if(ge.signal.aborted)return{shortCircuited:!0};Ae.forEach(at=>{let[vt]=at;return x.delete(vt)});let Je=w8(he);if(Je)return await ne(f,Je,{replace:ye}),{shortCircuited:!0};let{loaderData:nt,errors:je}=y8(f,Q,Fe,Ye,Ee,Ae,Ke,N);N.forEach((at,vt)=>{at.subscribe(At=>{(At||at.done)&&N.delete(vt)})}),se();let Ue=me(T);return gr({loaderData:nt,errors:je},Ue||Ae.length>0?{fetchers:new Map(f.fetchers)}:{})}function le(ge){return f.fetchers.get(ge)||Rxe}function U(ge,ee,Q,V){if(Nxe)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");x.has(ge)&&pe(ge);let j=Nb(e,Q,t.basename);if(!j){Y(ge,ee,eh(404,{pathname:Q}));return}let{path:ye,submission:ae}=m8(Q,V,!0),Ee=S8(j,ye);if(ae&&th(ae.formMethod)){q(ge,ee,ye,Ee,j,ae);return}M.set(ge,[ye,Ee,j]),z(ge,ee,ye,Ee,j,ae)}async function q(ge,ee,Q,V,j,ye){if(te(),M.delete(ge),!V.route.action){let we=eh(405,{method:ye.formMethod,pathname:Q,routeId:ee});Y(ge,ee,we);return}let ae=f.fetchers.get(ge),Ee=gr({state:"submitting"},ye,{data:ae&&ae.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(ge,Ee),L({fetchers:new Map(f.fetchers)});let Pe=new AbortController,We=Ry(Q,Pe.signal,ye);x.set(ge,Pe);let Fe=await Py("action",We,V,j,d.basename);if(We.signal.aborted){x.get(ge)===Pe&&x.delete(ge);return}if(rv(Fe)){x.delete(ge),P.add(ge);let we=gr({state:"loading"},ye,{data:void 0," _hasFetcherDoneAnything ":!0});return f.fetchers.set(ge,we),L({fetchers:new Map(f.fetchers)}),ne(f,Fe,{isFetchActionRedirect:!0})}if(t_(Fe)){Y(ge,ee,Fe.error);return}lh(Fe)&&vn(!1,"defer() is not supported in actions");let Ae=f.navigation.location||f.location,he=Ry(Ae,Pe.signal),Ye=f.navigation.state!=="idle"?Nb(e,f.navigation.location,t.basename):f.matches;vn(Ye,"Didn't find any matches after fetcher action");let Ke=++S;I.set(ge,Ke);let Je=gr({state:"loading",data:Fe.data},ye,{" _hasFetcherDoneAnything ":!0});f.fetchers.set(ge,Je);let[nt,je]=g8(f,Ye,ye,Ae,g,y,w,{[V.route.id]:Fe.data},void 0,M);je.filter(we=>{let[Be]=we;return Be!==ge}).forEach(we=>{let[Be]=we,pt=f.fetchers.get(Be),Ot={state:"loading",data:pt&&pt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(Be,Ot),x.set(Be,Pe)}),L({fetchers:new Map(f.fetchers)});let{results:Ue,loaderResults:at,fetcherResults:vt}=await G(f.matches,Ye,nt,je,he);if(Pe.signal.aborted)return;I.delete(ge),x.delete(ge),je.forEach(we=>{let[Be]=we;return x.delete(Be)});let At=w8(Ue);if(At)return ne(f,At);let{loaderData:Xt,errors:on}=y8(f,f.matches,nt,at,void 0,je,vt,N),X={state:"idle",data:Fe.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(ge,X);let ce=me(Ke);f.navigation.state==="loading"&&Ke>T?(vn(p,"Expected pending action"),v&&v.abort(),k(f.navigation.location,{matches:Ye,loaderData:Xt,errors:on,fetchers:new Map(f.fetchers)})):(L(gr({errors:on,loaderData:b8(f.loaderData,Xt,Ye,on)},ce?{fetchers:new Map(f.fetchers)}:{})),g=!1)}async function z(ge,ee,Q,V,j,ye){let ae=f.fetchers.get(ge),Ee=gr({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ye,{data:ae&&ae.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(ge,Ee),L({fetchers:new Map(f.fetchers)});let Pe=new AbortController,We=Ry(Q,Pe.signal);x.set(ge,Pe);let Fe=await Py("loader",We,V,j,d.basename);if(lh(Fe)&&(Fe=await mZ(Fe,We.signal,!0)||Fe),x.get(ge)===Pe&&x.delete(ge),We.signal.aborted)return;if(rv(Fe)){await ne(f,Fe);return}if(t_(Fe)){let he=Lg(f.matches,ee);f.fetchers.delete(ge),L({fetchers:new Map(f.fetchers),errors:{[he.route.id]:Fe.error}});return}vn(!lh(Fe),"Unhandled fetcher deferred data");let Ae={state:"idle",data:Fe.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(ge,Ae),L({fetchers:new Map(f.fetchers)})}async function ne(ge,ee,Q){var V;let{submission:j,replace:ye,isFetchActionRedirect:ae}=Q===void 0?{}:Q;ee.revalidate&&(g=!0);let Ee=K_(ge.location,ee.location,gr({_isRedirect:!0},ae?{_isFetchActionRedirect:!0}:{}));if(vn(Ee,"Expected a location on the redirect navigation"),typeof((V=window)==null?void 0:V.location)<"u"){let Ye=X_(ee.location).origin;if(window.location.origin!==Ye){ye?window.location.replace(ee.location):window.location.assign(ee.location);return}}v=null;let Pe=ye===!0?Mi.Replace:Mi.Push,{formMethod:We,formAction:Fe,formEncType:Ae,formData:he}=ge.navigation;!j&&We&&Fe&&he&&Ae&&(j={formMethod:We,formAction:Fe,formEncType:Ae,formData:he}),Pxe.has(ee.status)&&j&&th(j.formMethod)?await $(Pe,Ee,{submission:gr({},j,{formAction:ee.location})}):await $(Pe,Ee,{overrideNavigation:{state:"loading",location:Ee,formMethod:j?j.formMethod:void 0,formAction:j?j.formAction:void 0,formEncType:j?j.formEncType:void 0,formData:j?j.formData:void 0}})}async function G(ge,ee,Q,V,j){let ye=await Promise.all([...Q.map(Pe=>Py("loader",j,Pe,ee,d.basename)),...V.map(Pe=>{let[,We,Fe,Ae]=Pe;return Py("loader",Ry(We,j.signal),Fe,Ae,d.basename)})]),ae=ye.slice(0,Q.length),Ee=ye.slice(Q.length);return await Promise.all([x8(ge,Q,ae,j.signal,!1,f.loaderData),x8(ge,V.map(Pe=>{let[,,We]=Pe;return We}),Ee,j.signal,!0)]),{results:ye,loaderResults:ae,fetcherResults:Ee}}function te(){g=!0,y.push(...Z()),M.forEach((ge,ee)=>{x.has(ee)&&(w.push(ee),pe(ee))})}function Y(ge,ee,Q){let V=Lg(f.matches,ee);fe(ge),L({errors:{[V.route.id]:Q},fetchers:new Map(f.fetchers)})}function fe(ge){x.has(ge)&&pe(ge),M.delete(ge),I.delete(ge),P.delete(ge),f.fetchers.delete(ge)}function pe(ge){let ee=x.get(ge);vn(ee,"Expected fetch controller: "+ge),ee.abort(),x.delete(ge)}function de(ge){for(let ee of ge){let V={state:"idle",data:le(ee).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(ee,V)}}function se(){let ge=[];for(let ee of P){let Q=f.fetchers.get(ee);vn(Q,"Expected fetcher: "+ee),Q.state==="loading"&&(P.delete(ee),ge.push(ee))}de(ge)}function me(ge){let ee=[];for(let[Q,V]of I)if(V0}function Z(ge){let ee=[];return N.forEach((Q,V)=>{(!ge||ge(V))&&(Q.cancel(),ee.push(V),N.delete(V))}),ee}function _e(ge,ee,Q){if(i=ge,o=ee,a=Q||(V=>V.key),!s&&f.navigation===KR){s=!0;let V=Ne(f.location,f.matches);V!=null&&L({restoreScrollPosition:V})}return()=>{i=null,o=null,a=null}}function Me(ge,ee){if(i&&a&&o){let Q=ee.map(j=>E8(j,f.loaderData)),V=a(ge,Q)||ge.key;i[V]=o()}}function Ne(ge,ee){if(i&&a&&o){let Q=ee.map(ye=>E8(ye,f.loaderData)),V=a(ge,Q)||ge.key,j=i[V];if(typeof j=="number")return j}return null}return d={get basename(){return t.basename},get state(){return f},get routes(){return e},initialize:R,subscribe:D,enableScrollRestoration:_e,navigate:B,fetch:U,revalidate:H,createHref:ge=>t.history.createHref(ge),encodeLocation:ge=>t.history.encodeLocation(ge),getFetcher:le,deleteFetcher:fe,dispose:O,_internalFetchControllers:x,_internalActiveDeferreds:N},d}function kxe(t){return t!=null&&"formData"in t}function m8(t,e,n){n===void 0&&(n=!1);let r=typeof t=="string"?t:iu(t);if(!e||!kxe(e))return{path:r};if(e.formMethod&&!Vxe(e.formMethod))return{path:r,error:eh(405,{method:e.formMethod})};let i;if(e.formData&&(i={formMethod:e.formMethod||"get",formAction:hZ(r),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData},th(i.formMethod)))return{path:r,submission:i};let a=wd(r);try{let o=pZ(e.formData);n&&a.search&&gZ(a.search)&&o.append("index",""),a.search="?"+o}catch{return{path:r,error:eh(400)}}return{path:iu(a),submission:i}}function Fxe(t,e){let n=t;if(e){let r=t.findIndex(i=>i.route.id===e);r>=0&&(n=t.slice(0,r))}return n}function g8(t,e,n,r,i,a,o,s,l,c){let u=l?Object.values(l)[0]:s?Object.values(s)[0]:void 0,d=l?Object.keys(l)[0]:void 0,p=Fxe(e,d).filter((v,b)=>v.route.loader!=null&&($xe(t.loaderData,t.matches[b],v)||a.some(g=>g===v.route.id)||v8(t.location,t.matches[b],n,r,v,i,u))),h=[];return c&&c.forEach((v,b)=>{let[g,y,w]=v;o.includes(b)?h.push([b,g,y,w]):i&&v8(g,y,n,g,y,i,u)&&h.push([b,g,y,w])}),[p,h]}function $xe(t,e,n){let r=!e||n.route.id!==e.route.id,i=t[n.route.id]===void 0;return r||i}function fZ(t,e){let n=t.route.path;return t.pathname!==e.pathname||n&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function v8(t,e,n,r,i,a,o){let s=X_(t),l=e.params,c=X_(r),u=i.params,d=fZ(e,i)||s.toString()===c.toString()||s.search!==c.search||a;if(i.route.shouldRevalidate){let f=i.route.shouldRevalidate(gr({currentUrl:s,currentParams:l,nextUrl:c,nextParams:u},n,{actionResult:o,defaultShouldRevalidate:d}));if(typeof f=="boolean")return f}return d}async function Py(t,e,n,r,i,a,o,s){i===void 0&&(i="/"),a===void 0&&(a=!1),o===void 0&&(o=!1);let l,c,u,d=new Promise((p,h)=>u=h),f=()=>u();e.signal.addEventListener("abort",f);try{let p=n.route[t];vn(p,"Could not find the "+t+' to run on the "'+n.route.id+'" route'),c=await Promise.race([p({request:e,params:n.params,context:s}),d]),vn(c!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(p){l=Ra.error,c=p}finally{e.signal.removeEventListener("abort",f)}if(Hxe(c)){let p=c.status;if(Dxe.has(p)){let b=c.headers.get("Location");if(vn(b,"Redirects returned/thrown from loaders/actions must have a Location header"),!(/^[a-z+]+:\/\//i.test(b)||b.startsWith("//"))){let y=r.slice(0,r.indexOf(n)+1),w=OI(y).map(S=>S.pathnameBase),x=n$(b,w,new URL(e.url).pathname);if(vn(iu(x),"Unable to resolve redirect location: "+b),i){let S=x.pathname;x.pathname=S==="/"?i:nd([i,S])}b=iu(x)}if(a)throw c.headers.set("Location",b),c;return{type:Ra.redirect,status:p,location:b,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(o)throw{type:l||Ra.data,response:c};let h,v=c.headers.get("Content-Type");return v&&/\bapplication\/json\b/.test(v)?h=await c.json():h=await c.text(),l===Ra.error?{type:l,error:new NI(p,c.statusText,h),headers:c.headers}:{type:Ra.data,data:h,statusCode:c.status,headers:c.headers}}return l===Ra.error?{type:l,error:c}:c instanceof Sxe?{type:Ra.deferred,deferredData:c}:{type:Ra.data,data:c}}function Ry(t,e,n){let r=X_(hZ(t)).toString(),i={signal:e};if(n&&th(n.formMethod)){let{formMethod:a,formEncType:o,formData:s}=n;i.method=a.toUpperCase(),i.body=o==="application/x-www-form-urlencoded"?pZ(s):s}return new Request(r,i)}function pZ(t){let e=new URLSearchParams;for(let[n,r]of t.entries())vn(typeof r=="string",'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),e.append(n,r);return e}function Bxe(t,e,n,r,i){let a={},o=null,s,l=!1,c={};return n.forEach((u,d)=>{let f=e[d].route.id;if(vn(!rv(u),"Cannot handle redirect results in processLoaderData"),t_(u)){let p=Lg(t,f),h=u.error;r&&(h=Object.values(r)[0],r=void 0),o=o||{},o[p.route.id]==null&&(o[p.route.id]=h),a[f]=void 0,l||(l=!0,s=uZ(u.error)?u.error.status:500),u.headers&&(c[f]=u.headers)}else lh(u)?(i&&i.set(f,u.deferredData),a[f]=u.deferredData.data):(a[f]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(s=u.statusCode),u.headers&&(c[f]=u.headers))}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function y8(t,e,n,r,i,a,o,s){let{loaderData:l,errors:c}=Bxe(e,n,r,i,s);for(let u=0;ur.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function _8(t){let e=t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function eh(t,e){let{pathname:n,routeId:r,method:i}=e===void 0?{}:e,a="Unknown Server Error",o="Unknown @remix-run/router error";return t===400?(a="Bad Request",i&&n&&r?o="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o="Cannot submit binary form data using GET"):t===403?(a="Forbidden",o='Route "'+r+'" does not match URL "'+n+'"'):t===404?(a="Not Found",o='No route matches URL "'+n+'"'):t===405&&(a="Method Not Allowed",i&&n&&r?o="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(o='Invalid request method "'+i.toUpperCase()+'"')),new NI(t||500,a,new Error(o),!0)}function w8(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(rv(n))return n}}function hZ(t){let e=typeof t=="string"?wd(t):t;return iu(gr({},e,{hash:""}))}function Uxe(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash!==e.hash}function lh(t){return t.type===Ra.deferred}function t_(t){return t.type===Ra.error}function rv(t){return(t&&t.type)===Ra.redirect}function Hxe(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function Vxe(t){return Mxe.has(t)}function th(t){return Axe.has(t)}async function x8(t,e,n,r,i,a){for(let o=0;od.route.id===l.route.id),u=c!=null&&!fZ(c,l)&&(a&&a[l.route.id])!==void 0;lh(s)&&(i||u)&&await mZ(s,r,i).then(d=>{d&&(n[o]=d||n[o])})}}async function mZ(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Ra.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Ra.error,error:i}}return{type:Ra.data,data:t.deferredData.data}}}function gZ(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function E8(t,e){let{route:n,pathname:r,params:i}=t;return{id:n.id,pathname:r,params:i,data:e[n.id],handle:n.handle}}function S8(t,e){let n=typeof e=="string"?wd(e).search:e.search;if(t[t.length-1].route.index&&gZ(n||""))return t[t.length-1];let r=OI(t);return r[r.length-1]}/** * React Router v6.6.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function gT(){return gT=Object.assign?Object.assign.bind():function(t){for(var e=1;e{i.value=r,i.getSnapshot=e,XR(i)&&a({inst:i})},[t,r,e]),Wxe(()=>(XR(i)&&a({inst:i}),t(()=>{XR(i)&&a({inst:i})})),[t]),Yxe(r),r}function XR(t){const e=t.getSnapshot,n=t.value;try{const r=e();return!jxe(n,r)}catch{return!0}}function Qxe(t,e,n){return e()}const Kxe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xxe=!Kxe,Zxe=Xxe?Qxe:Jxe,eEe="useSyncExternalStore"in xh?(t=>t.useSyncExternalStore)(xh):Zxe,r$=C.createContext(null),LI=C.createContext(null),tw=C.createContext(null),kI=C.createContext(null),Xh=C.createContext({outlet:null,matches:[]}),vZ=C.createContext(null);function tEe(t,e){let{relative:n}=e===void 0?{}:e;nw()||vn(!1);let{basename:r,navigator:i}=C.useContext(tw),{hash:a,pathname:o,search:s}=i$(t,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:nd([r,o])),i.createHref({pathname:l,search:s,hash:a})}function nw(){return C.useContext(kI)!=null}function Eo(){return nw()||vn(!1),C.useContext(kI).location}function _r(){nw()||vn(!1);let{basename:t,navigator:e}=C.useContext(tw),{matches:n}=C.useContext(Xh),{pathname:r}=Eo(),i=JSON.stringify(OI(n).map(s=>s.pathnameBase)),a=C.useRef(!1);return C.useEffect(()=>{a.current=!0}),C.useCallback(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){e.go(s);return}let c=n$(s,JSON.parse(i),r,l.relative==="path");t!=="/"&&(c.pathname=c.pathname==="/"?t:nd([t,c.pathname])),(l.replace?e.replace:e.push)(c,l.state,l)},[t,e,i,r])}const nEe=C.createContext(null);function rEe(t){let e=C.useContext(Xh).outlet;return e&&C.createElement(nEe.Provider,{value:t},e)}function i$(t,e){let{relative:n}=e===void 0?{}:e,{matches:r}=C.useContext(Xh),{pathname:i}=Eo(),a=JSON.stringify(OI(r).map(o=>o.pathnameBase));return C.useMemo(()=>n$(t,JSON.parse(a),i,n==="path"),[t,a,i,n])}function iEe(t,e){nw()||vn(!1);let{navigator:n}=C.useContext(tw),r=C.useContext(LI),{matches:i}=C.useContext(Xh),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=Eo(),c;if(e){var u;let v=typeof e=="string"?wd(e):e;s==="/"||(u=v.pathname)!=null&&u.startsWith(s)||vn(!1),c=v}else c=l;let d=c.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",p=Nb(t,{pathname:f}),h=lEe(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:nd([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:nd([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r||void 0);return e&&h?C.createElement(kI.Provider,{value:{location:gT({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Mi.Pop}},h):h}function aEe(){let t=fEe(),e=uZ(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unhandled Thrown Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},e),n?C.createElement("pre",{style:i},n):null,C.createElement("p",null," Hey developer "),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own",C.createElement("code",{style:a},"errorElement")," props on",C.createElement("code",{style:a},"")))}class oEe extends C.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location?{error:e.error,location:e.location}:{error:e.error||n.error,location:n.location}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?C.createElement(Xh.Provider,{value:this.props.routeContext},C.createElement(vZ.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sEe(t){let{routeContext:e,match:n,children:r}=t,i=C.useContext(r$);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Xh.Provider,{value:e},r)}function lEe(t,e,n){if(e===void 0&&(e=[]),t==null)if(n!=null&&n.errors)t=n.matches;else return null;let r=t,i=n==null?void 0:n.errors;if(i!=null){let a=r.findIndex(o=>o.route.id&&(i==null?void 0:i[o.route.id]));a>=0||vn(!1),r=r.slice(0,Math.min(r.length,a+1))}return r.reduceRight((a,o,s)=>{let l=o.route.id?i==null?void 0:i[o.route.id]:null,c=n?o.route.errorElement||C.createElement(aEe,null):null,u=e.concat(r.slice(0,s+1)),d=()=>C.createElement(sEe,{match:o,routeContext:{outlet:a,matches:u}},l?c:o.route.element!==void 0?o.route.element:a);return n&&(o.route.errorElement||s===0)?C.createElement(oEe,{location:n.location,component:c,error:l,children:d(),routeContext:{outlet:null,matches:u}}):d()},null)}var C8;(function(t){t.UseRevalidator="useRevalidator"})(C8||(C8={}));var vT;(function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"})(vT||(vT={}));function cEe(t){let e=C.useContext(LI);return e||vn(!1),e}function uEe(t){let e=C.useContext(Xh);return e||vn(!1),e}function dEe(t){let e=uEe(),n=e.matches[e.matches.length-1];return n.route.id||vn(!1),n.route.id}function fEe(){var t;let e=C.useContext(vZ),n=cEe(vT.UseRouteError),r=dEe(vT.UseRouteError);return e||((t=n.errors)==null?void 0:t[r])}function pEe(t){let{fallbackElement:e,router:n}=t,r=eEe(n.subscribe,()=>n.state,()=>n.state),i=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:o=>n.navigate(o),push:(o,s,l)=>n.navigate(o,{state:s,preventScrollReset:l==null?void 0:l.preventScrollReset}),replace:(o,s,l)=>n.navigate(o,{replace:!0,state:s,preventScrollReset:l==null?void 0:l.preventScrollReset})}),[n]),a=n.basename||"/";return C.createElement(C.Fragment,null,C.createElement(r$.Provider,{value:{router:n,navigator:i,static:!1,basename:a}},C.createElement(LI.Provider,{value:r},C.createElement(mEe,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?C.createElement(gEe,null):e))),null)}function yZ(t){return rEe(t.context)}function hEe(t){vn(!1)}function mEe(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Mi.Pop,navigator:a,static:o=!1}=t;nw()&&vn(!1);let s=e.replace(/^\/*/,"/"),l=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=wd(r));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:p="default"}=r,h=C.useMemo(()=>{let v=cZ(c,s);return v==null?null:{pathname:v,search:u,hash:d,state:f,key:p}},[s,c,u,d,f,p]);return h==null?null:C.createElement(tw.Provider,{value:l},C.createElement(kI.Provider,{children:n,value:{location:h,navigationType:i}}))}function gEe(t){let{children:e,location:n}=t,r=C.useContext(r$),i=r&&!e?r.router.routes:NL(e);return iEe(i,n)}var T8;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(T8||(T8={}));new Promise(()=>{});function NL(t,e){e===void 0&&(e=[]);let n=[];return C.Children.forEach(t,(r,i)=>{if(!C.isValidElement(r))return;if(r.type===C.Fragment){n.push.apply(n,NL(r.props.children,e));return}r.type!==hEe&&vn(!1),!r.props.index||!r.props.children||vn(!1);let a=[...e,i],o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(o.children=NL(r.props.children,a)),n.push(o)}),n}function bZ(t){return t.map(e=>{let n=gT({},e);return n.hasErrorBoundary==null&&(n.hasErrorBoundary=n.errorElement!=null),n.children&&(n.children=bZ(n.children)),n})}var Ie={},vEe={get exports(){return Ie},set exports(t){Ie=t}},yEe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bEe=yEe,_Ee=bEe;function _Z(){}function wZ(){}wZ.resetWarningCache=_Z;var wEe=function(){function t(r,i,a,o,s,l){if(l!==_Ee){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:wZ,resetWarningCache:_Z};return n.PropTypes=n,n};vEe.exports=wEe();var xEe=typeof Element<"u",EEe=typeof Map=="function",SEe=typeof Set=="function",CEe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function hC(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!hC(t[r],e[r]))return!1;return!0}var a;if(EEe&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(a=t.entries();!(r=a.next()).done;)if(!e.has(r.value[0]))return!1;for(a=t.entries();!(r=a.next()).done;)if(!hC(r.value[1],e.get(r.value[0])))return!1;return!0}if(SEe&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(a=t.entries();!(r=a.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(CEe&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(xEe&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&t.$$typeof)&&!hC(t[i[r]],e[i[r]]))return!1;return!0}return t!==t&&e!==e}var TEe=function(e,n){try{return hC(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},AEe=function(t,e,n,r,i,a,o,s){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;l=new Error(e.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},A8=AEe,IEe=function(e,n,r,i){var a=r?r.call(i,e,n):void 0;if(a!==void 0)return!!a;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c=0||(i[n]=t[n]);return i}var Qt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},MEe={rel:["amphtml","canonical","alternate"]},DEe={type:["application/ld+json"]},PEe={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},M8=Object.keys(Qt).map(function(t){return Qt[t]}),yT={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},REe=Object.keys(yT).reduce(function(t,e){return t[yT[e]]=e,t},{}),iv=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(Object.prototype.hasOwnProperty.call(r,e))return r[e]}return null},OEe=function(t){var e=iv(t,Qt.TITLE),n=iv(t,"titleTemplate");if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,function(){return e});var r=iv(t,"defaultTitle");return e||r||void 0},NEe=function(t){return iv(t,"onChangeClientState")||function(){}},ZR=function(t,e){return e.filter(function(n){return n[t]!==void 0}).map(function(n){return n[t]}).reduce(function(n,r){return mi({},n,r)},{})},LEe=function(t,e){return e.filter(function(n){return n[Qt.BASE]!==void 0}).map(function(n){return n[Qt.BASE]}).reverse().reduce(function(n,r){if(!n.length)for(var i=Object.keys(r),a=0;a/g,">").replace(/"/g,""").replace(/'/g,"'")},P8=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n]!==void 0?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r},"")},R8=function(t,e){return e===void 0&&(e={}),Object.keys(t).reduce(function(n,r){return n[yT[r]||r]=t[r],n},e)},mC=function(t,e){return e.map(function(n,r){var i,a=((i={key:r})["data-rh"]=!0,i);return Object.keys(n).forEach(function(o){var s=yT[o]||o;s==="innerHTML"||s==="cssText"?a.dangerouslySetInnerHTML={__html:n.innerHTML||n.cssText}:a[s]=n[o]}),xe.createElement(t,a)})},Ws=function(t,e,n){switch(t){case Qt.TITLE:return{toComponent:function(){return i=e.titleAttributes,(a={key:r=e.title})["data-rh"]=!0,o=R8(i,a),[xe.createElement(Qt.TITLE,o,r)];var r,i,a,o},toString:function(){return function(r,i,a,o){var s=P8(a),l=xZ(i);return s?"<"+r+' data-rh="true" '+s+">"+tO(l,o)+"":"<"+r+' data-rh="true">'+tO(l,o)+""}(t,e.title,e.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return R8(e)},toString:function(){return P8(e)}};default:return{toComponent:function(){return mC(t,e)},toString:function(){return function(r,i,a){return i.reduce(function(o,s){var l=Object.keys(s).filter(function(d){return!(d==="innerHTML"||d==="cssText")}).reduce(function(d,f){var p=s[f]===void 0?f:f+'="'+tO(s[f],a)+'"';return d?d+" "+p:p},""),c=s.innerHTML||s.cssText||"",u=FEe.indexOf(r)===-1;return o+"<"+r+' data-rh="true" '+l+(u?"/>":">"+c+"")},"")}(t,e,n)}}}},kL=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,i=t.htmlAttributes,a=t.noscriptTags,o=t.styleTags,s=t.title,l=s===void 0?"":s,c=t.titleAttributes,u=t.linkTags,d=t.metaTags,f=t.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(t.prioritizeSeoTags){var h=function(v){var b=v.linkTags,g=v.scriptTags,y=v.encode,w=eO(v.metaTags,PEe),x=eO(b,MEe),S=eO(g,DEe);return{priorityMethods:{toComponent:function(){return[].concat(mC(Qt.META,w.priority),mC(Qt.LINK,x.priority),mC(Qt.SCRIPT,S.priority))},toString:function(){return Ws(Qt.META,w.priority,y)+" "+Ws(Qt.LINK,x.priority,y)+" "+Ws(Qt.SCRIPT,S.priority,y)}},metaTags:w.default,linkTags:x.default,scriptTags:S.default}}(t);p=h.priorityMethods,u=h.linkTags,d=h.metaTags,f=h.scriptTags}return{priority:p,base:Ws(Qt.BASE,e,r),bodyAttributes:Ws("bodyAttributes",n,r),htmlAttributes:Ws("htmlAttributes",i,r),link:Ws(Qt.LINK,u,r),meta:Ws(Qt.META,d,r),noscript:Ws(Qt.NOSCRIPT,a,r),script:Ws(Qt.SCRIPT,f,r),style:Ws(Qt.STYLE,o,r),title:Ws(Qt.TITLE,{title:l,titleAttributes:c},r)}},ME=[],FL=function(t,e){var n=this;e===void 0&&(e=typeof document<"u"),this.instances=[],this.value={setHelmet:function(r){n.context.helmet=r},helmetInstances:{get:function(){return n.canUseDOM?ME:n.instances},add:function(r){(n.canUseDOM?ME:n.instances).push(r)},remove:function(r){var i=(n.canUseDOM?ME:n.instances).indexOf(r);(n.canUseDOM?ME:n.instances).splice(i,1)}}},this.context=t,this.canUseDOM=e,e||(t.helmet=kL({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},EZ=xe.createContext({}),$Ee=Ie.shape({setHelmet:Ie.func,helmetInstances:Ie.shape({get:Ie.func,add:Ie.func,remove:Ie.func})}),BEe=typeof document<"u",kg=function(t){function e(n){var r;return(r=t.call(this,n)||this).helmetData=new FL(r.props.context,e.canUseDOM),r}return a$(e,t),e.prototype.render=function(){return xe.createElement(EZ.Provider,{value:this.helmetData.value},this.props.children)},e}(C.Component);kg.canUseDOM=BEe,kg.propTypes={context:Ie.shape({helmet:Ie.shape()}),children:Ie.node.isRequired},kg.defaultProps={context:{}},kg.displayName="HelmetProvider";var km=function(t,e){var n,r=document.head||document.querySelector(Qt.HEAD),i=r.querySelectorAll(t+"[data-rh]"),a=[].slice.call(i),o=[];return e&&e.length&&e.forEach(function(s){var l=document.createElement(t);for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(c==="innerHTML"?l.innerHTML=s.innerHTML:c==="cssText"?l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText)):l.setAttribute(c,s[c]===void 0?"":s[c]));l.setAttribute("data-rh","true"),a.some(function(u,d){return n=d,l.isEqualNode(u)})?a.splice(n,1):o.push(l)}),a.forEach(function(s){return s.parentNode.removeChild(s)}),o.forEach(function(s){return r.appendChild(s)}),{oldTags:a,newTags:o}},nO=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute("data-rh"),i=r?r.split(","):[],a=[].concat(i),o=Object.keys(e),s=0;s=0;d-=1)n.removeAttribute(a[d]);i.length===a.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==o.join(",")&&n.setAttribute("data-rh",o.join(","))}},O8=function(t,e){var n=t.baseTag,r=t.htmlAttributes,i=t.linkTags,a=t.metaTags,o=t.noscriptTags,s=t.onChangeClientState,l=t.scriptTags,c=t.styleTags,u=t.title,d=t.titleAttributes;nO(Qt.BODY,t.bodyAttributes),nO(Qt.HTML,r),function(v,b){v!==void 0&&document.title!==v&&(document.title=xZ(v)),nO(Qt.TITLE,b)}(u,d);var f={baseTag:km(Qt.BASE,n),linkTags:km(Qt.LINK,i),metaTags:km(Qt.META,a),noscriptTags:km(Qt.NOSCRIPT,o),scriptTags:km(Qt.SCRIPT,l),styleTags:km(Qt.STYLE,c)},p={},h={};Object.keys(f).forEach(function(v){var b=f[v],g=b.newTags,y=b.oldTags;g.length&&(p[v]=g),y.length&&(h[v]=f[v].oldTags)}),e&&e(),s(t,p,h)},Ny=null,bT=function(t){function e(){for(var r,i=arguments.length,a=new Array(i),o=0;o elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(r){var i,a=r.child,o=r.arrayTypeChildren;return mi({},o,((i={})[a.type]=[].concat(o[a.type]||[],[mi({},r.newChildProps,this.mapNestedChildrenToProps(a,r.nestedChildren))]),i))},n.mapObjectTypeChildren=function(r){var i,a,o=r.child,s=r.newProps,l=r.newChildProps,c=r.nestedChildren;switch(o.type){case Qt.TITLE:return mi({},s,((i={})[o.type]=c,i.titleAttributes=mi({},l),i));case Qt.BODY:return mi({},s,{bodyAttributes:mi({},l)});case Qt.HTML:return mi({},s,{htmlAttributes:mi({},l)});default:return mi({},s,((a={})[o.type]=mi({},l),a))}},n.mapArrayTypeChildrenToProps=function(r,i){var a=mi({},i);return Object.keys(r).forEach(function(o){var s;a=mi({},a,((s={})[o]=r[o],s))}),a},n.warnOnInvalidChildren=function(r,i){return A8(M8.some(function(a){return r.type===a}),typeof r.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+M8.join(", ")+" are allowed. Helmet does not support rendering <"+r.type+"> elements. Refer to our API for more information."),A8(!i||typeof i=="string"||Array.isArray(i)&&!i.some(function(a){return typeof a!="string"}),"Helmet expects a string as a child of <"+r.type+">. Did you forget to wrap your children in braces? ( <"+r.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(r,i){var a=this,o={};return xe.Children.forEach(r,function(s){if(s&&s.props){var l=s.props,c=l.children,u=I8(l,UEe),d=Object.keys(u).reduce(function(p,h){return p[REe[h]||h]=u[h],p},{}),f=s.type;switch(typeof f=="symbol"?f=f.toString():a.warnOnInvalidChildren(s,c),f){case Qt.FRAGMENT:i=a.mapChildrenToProps(c,i);break;case Qt.LINK:case Qt.META:case Qt.NOSCRIPT:case Qt.SCRIPT:case Qt.STYLE:o=a.flattenArrayTypeChildren({child:s,arrayTypeChildren:o,newChildProps:d,nestedChildren:c});break;default:i=a.mapObjectTypeChildren({child:s,newProps:i,newChildProps:d,nestedChildren:c})}}}),this.mapArrayTypeChildrenToProps(o,i)},n.render=function(){var r=this.props,i=r.children,a=I8(r,HEe),o=mi({},a),s=a.helmetData;return i&&(o=this.mapChildrenToProps(i,o)),!s||s instanceof FL||(s=new FL(s.context,s.instances)),s?xe.createElement(bT,mi({},o,{context:s.value,helmetData:void 0})):xe.createElement(EZ.Consumer,null,function(l){return xe.createElement(bT,mi({},o,{context:l}))})},e}(C.Component);gC.propTypes={base:Ie.object,bodyAttributes:Ie.object,children:Ie.oneOfType([Ie.arrayOf(Ie.node),Ie.node]),defaultTitle:Ie.string,defer:Ie.bool,encodeSpecialCharacters:Ie.bool,htmlAttributes:Ie.object,link:Ie.arrayOf(Ie.object),meta:Ie.arrayOf(Ie.object),noscript:Ie.arrayOf(Ie.object),onChangeClientState:Ie.func,script:Ie.arrayOf(Ie.object),style:Ie.arrayOf(Ie.object),title:Ie.string,titleAttributes:Ie.object,titleTemplate:Ie.string,prioritizeSeoTags:Ie.bool,helmetData:Ie.object},gC.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},gC.displayName="Helmet";function xd(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var v0=function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(r){var i=this,a=r||function(){};return this.listeners.push(a),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(o){return o!==a}),i.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t}();function dn(){return dn=Object.assign||function(t){for(var e=1;e"u";function Da(){}function VEe(t,e){return typeof t=="function"?t(e):t}function $L(t){return typeof t=="number"&&t>=0&&t!==1/0}function wT(t){return Array.isArray(t)?t:[t]}function SZ(t,e){return Math.max(t+(e||0)-Date.now(),0)}function vC(t,e,n){return rw(t)?typeof e=="function"?dn({},n,{queryKey:t,queryFn:e}):dn({},e,{queryKey:t}):t}function zEe(t,e,n){return rw(t)?typeof e=="function"?dn({},n,{mutationKey:t,mutationFn:e}):dn({},e,{mutationKey:t}):typeof t=="function"?dn({},e,{mutationFn:t}):dn({},t)}function lf(t,e,n){return rw(t)?[dn({},e,{queryKey:t}),n]:[t||{},e]}function jEe(t,e){if(t===!0&&e===!0||t==null&&e==null)return"all";if(t===!1&&e===!1)return"none";var n=t??!e;return n?"active":"inactive"}function N8(t,e){var n=t.active,r=t.exact,i=t.fetching,a=t.inactive,o=t.predicate,s=t.queryKey,l=t.stale;if(rw(s)){if(r){if(e.queryHash!==o$(s,e.options))return!1}else if(!xT(e.queryKey,s))return!1}var c=jEe(n,a);if(c==="none")return!1;if(c!=="all"){var u=e.isActive();if(c==="active"&&!u||c==="inactive"&&u)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||typeof i=="boolean"&&e.isFetching()!==i||o&&!o(e))}function L8(t,e){var n=t.exact,r=t.fetching,i=t.predicate,a=t.mutationKey;if(rw(a)){if(!e.options.mutationKey)return!1;if(n){if(ch(e.options.mutationKey)!==ch(a))return!1}else if(!xT(e.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&e.state.status==="loading"!==r||i&&!i(e))}function o$(t,e){var n=(e==null?void 0:e.queryKeyHashFn)||ch;return n(t)}function ch(t){var e=wT(t);return GEe(e)}function GEe(t){return JSON.stringify(t,function(e,n){return BL(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function xT(t,e){return CZ(wT(t),wT(e))}function CZ(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(function(n){return!CZ(t[n],e[n])}):!1}function ET(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||BL(t)&&BL(e)){for(var r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),a=i.length,o=n?[]:{},s=0,l=0;l"u")return!0;var n=e.prototype;return!(!k8(n)||!n.hasOwnProperty("isPrototypeOf"))}function k8(t){return Object.prototype.toString.call(t)==="[object Object]"}function rw(t){return typeof t=="string"||Array.isArray(t)}function qEe(t){return new Promise(function(e){setTimeout(e,t)})}function F8(t){Promise.resolve().then(t).catch(function(e){return setTimeout(function(){throw e})})}function TZ(){if(typeof AbortController=="function")return new AbortController}var YEe=function(t){xd(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var a;if(!_T&&((a=window)!=null&&a.addEventListener)){var o=function(){return i()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setFocused(s):o.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},e}(v0),n_=new YEe,JEe=function(t){xd(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var a;if(!_T&&((a=window)!=null&&a.addEventListener)){var o=function(){return i()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setOnline(s):o.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},e}(v0),yC=new JEe;function QEe(t){return Math.min(1e3*Math.pow(2,t),3e4)}function ST(t){return typeof(t==null?void 0:t.cancel)=="function"}var AZ=function(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent};function bC(t){return t instanceof AZ}var IZ=function(e){var n=this,r=!1,i,a,o,s;this.abort=e.abort,this.cancel=function(f){return i==null?void 0:i(f)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(f,p){o=f,s=p});var l=function(p){n.isResolved||(n.isResolved=!0,e.onSuccess==null||e.onSuccess(p),a==null||a(),o(p))},c=function(p){n.isResolved||(n.isResolved=!0,e.onError==null||e.onError(p),a==null||a(),s(p))},u=function(){return new Promise(function(p){a=p,n.isPaused=!0,e.onPause==null||e.onPause()}).then(function(){a=void 0,n.isPaused=!1,e.onContinue==null||e.onContinue()})},d=function f(){if(!n.isResolved){var p;try{p=e.fn()}catch(h){p=Promise.reject(h)}i=function(v){if(!n.isResolved&&(c(new AZ(v)),n.abort==null||n.abort(),ST(p)))try{p.cancel()}catch{}},n.isTransportCancelable=ST(p),Promise.resolve(p).then(l).catch(function(h){var v,b;if(!n.isResolved){var g=(v=e.retry)!=null?v:3,y=(b=e.retryDelay)!=null?b:QEe,w=typeof y=="function"?y(n.failureCount,h):y,x=g===!0||typeof g=="number"&&n.failureCount"u"&&(s.exact=!0),this.queries.find(function(l){return N8(s,l)})},n.findAll=function(i,a){var o=lf(i,a),s=o[0];return Object.keys(s).length>0?this.queries.filter(function(l){return N8(s,l)}):this.queries},n.notify=function(i){var a=this;Hr.batch(function(){a.listeners.forEach(function(o){o(i)})})},n.onFocus=function(){var i=this;Hr.batch(function(){i.queries.forEach(function(a){a.onFocus()})})},n.onOnline=function(){var i=this;Hr.batch(function(){i.queries.forEach(function(a){a.onOnline()})})},e}(v0),tSe=function(){function t(n){this.options=dn({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||DZ(),this.meta=n.meta}var e=t.prototype;return e.setState=function(r){this.dispatch({type:"setState",state:r})},e.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},e.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Da).catch(Da)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var r=this,i,a=this.state.status==="loading",o=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(s){s!==r.state.context&&r.dispatch({type:"loading",context:s,variables:r.state.variables})})),o.then(function(){return r.executeMutation()}).then(function(s){i=s,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(s){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(s,r.state.variables,r.state.context,r),CT().error(s),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(s,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,s,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:s}),s})})},e.executeMutation=function(){var r=this,i;return this.retryer=new IZ({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(r){var i=this;this.state=nSe(this.state,r),Hr.batch(function(){i.observers.forEach(function(a){a.onMutationUpdate(r)}),i.mutationCache.notify(i)})},t}();function DZ(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function nSe(t,e){switch(e.type){case"failed":return dn({},t,{failureCount:t.failureCount+1});case"pause":return dn({},t,{isPaused:!0});case"continue":return dn({},t,{isPaused:!1});case"loading":return dn({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return dn({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return dn({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return dn({},t,e.state);default:return t}}var rSe=function(t){xd(e,t);function e(r){var i;return i=t.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=e.prototype;return n.build=function(i,a,o){var s=new tSe({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(a),state:o,defaultOptions:a.mutationKey?i.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(a){return a!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;Hr.batch(function(){i.mutations.forEach(function(a){i.remove(a)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(a){return L8(i,a)})},n.findAll=function(i){return this.mutations.filter(function(a){return L8(i,a)})},n.notify=function(i){var a=this;Hr.batch(function(){a.listeners.forEach(function(o){o(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(a){return a.state.isPaused});return Hr.batch(function(){return i.reduce(function(a,o){return a.then(function(){return o.continue().catch(Da)})},Promise.resolve())})},e}(v0);function iSe(){return{onFetch:function(e){e.fetchFn=function(){var n,r,i,a,o,s,l=(n=e.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,c=(i=e.fetchOptions)==null||(a=i.meta)==null?void 0:a.fetchMore,u=c==null?void 0:c.pageParam,d=(c==null?void 0:c.direction)==="forward",f=(c==null?void 0:c.direction)==="backward",p=((o=e.state.data)==null?void 0:o.pages)||[],h=((s=e.state.data)==null?void 0:s.pageParams)||[],v=TZ(),b=v==null?void 0:v.signal,g=h,y=!1,w=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function(L,k,B,H){return g=H?[k].concat(g):[].concat(g,[k]),H?[B].concat(L):[].concat(L,[B])},S=function(L,k,B,H){if(y)return Promise.reject("Cancelled");if(typeof B>"u"&&!k&&L.length)return Promise.resolve(L);var $={queryKey:e.queryKey,signal:b,pageParam:B,meta:e.meta},W=w($),K=Promise.resolve(W).then(function(U){return x(L,B,U,H)});if(ST(W)){var le=K;le.cancel=W.cancel}return K},T;if(!p.length)T=S([]);else if(d){var I=typeof u<"u",P=I?u:$8(e.options,p);T=S(p,I,P)}else if(f){var M=typeof u<"u",N=M?u:aSe(e.options,p);T=S(p,M,N,!0)}else(function(){g=[];var D=typeof e.options.getNextPageParam>"u",L=l&&p[0]?l(p[0],0,p):!0;T=L?S([],D,h[0]):Promise.resolve(x([],h[0],p[0]));for(var k=function($){T=T.then(function(W){var K=l&&p[$]?l(p[$],$,p):!0;if(K){var le=D?h[$]:$8(e.options,W);return S(W,D,le)}return Promise.resolve(x(W,h[$],p[$]))})},B=1;B"u"&&(u.revert=!0);var d=Hr.batch(function(){return o.queryCache.findAll(l).map(function(f){return f.cancel(u)})});return Promise.all(d).then(Da).catch(Da)},e.invalidateQueries=function(r,i,a){var o,s,l,c=this,u=lf(r,i,a),d=u[0],f=u[1],p=dn({},d,{active:(o=(s=d.refetchActive)!=null?s:d.active)!=null?o:!0,inactive:(l=d.refetchInactive)!=null?l:!1});return Hr.batch(function(){return c.queryCache.findAll(d).forEach(function(h){h.invalidate()}),c.refetchQueries(p,f)})},e.refetchQueries=function(r,i,a){var o=this,s=lf(r,i,a),l=s[0],c=s[1],u=Hr.batch(function(){return o.queryCache.findAll(l).map(function(f){return f.fetch(void 0,dn({},c,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),d=Promise.all(u).then(Da);return c!=null&&c.throwOnError||(d=d.catch(Da)),d},e.fetchQuery=function(r,i,a){var o=vC(r,i,a),s=this.defaultQueryOptions(o);typeof s.retry>"u"&&(s.retry=!1);var l=this.queryCache.build(this,s);return l.isStaleByTime(s.staleTime)?l.fetch(s):Promise.resolve(l.state.data)},e.prefetchQuery=function(r,i,a){return this.fetchQuery(r,i,a).then(Da).catch(Da)},e.fetchInfiniteQuery=function(r,i,a){var o=vC(r,i,a);return o.behavior=iSe(),this.fetchQuery(o)},e.prefetchInfiniteQuery=function(r,i,a){return this.fetchInfiniteQuery(r,i,a).then(Da).catch(Da)},e.cancelMutations=function(){var r=this,i=Hr.batch(function(){return r.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(i).then(Da).catch(Da)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(r){this.defaultOptions=r},e.setQueryDefaults=function(r,i){var a=this.queryDefaults.find(function(o){return ch(r)===ch(o.queryKey)});a?a.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},e.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(a){return xT(r,a.queryKey)}))==null?void 0:i.defaultOptions:void 0},e.setMutationDefaults=function(r,i){var a=this.mutationDefaults.find(function(o){return ch(r)===ch(o.mutationKey)});a?a.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},e.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(a){return xT(r,a.mutationKey)}))==null?void 0:i.defaultOptions:void 0},e.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=dn({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=o$(i.queryKey,i)),i},e.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},e.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:dn({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t}(),sSe=function(t){xd(e,t);function e(r,i){var a;return a=t.call(this)||this,a.client=r,a.options=i,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(i),a}var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),B8(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return UL(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return UL(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,a){var o=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var l=this.hasListeners();l&&U8(this.currentQuery,s,this.options,o)&&this.executeFetch(),this.updateResult(a),l&&(this.currentQuery!==s||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var c=this.computeRefetchInterval();l&&(this.currentQuery!==s||this.options.enabled!==o.enabled||c!==this.currentRefetchInterval)&&this.updateRefetchInterval(c)},n.getOptimisticResult=function(i){var a=this.client.defaultQueryObserverOptions(i),o=this.client.getQueryCache().build(this.client,a);return this.createResult(o,a)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,a){var o=this,s={},l=function(u){o.trackedProps.includes(u)||o.trackedProps.push(u)};return Object.keys(i).forEach(function(c){Object.defineProperty(s,c,{configurable:!1,enumerable:!0,get:function(){return l(c),i[c]}})}),(a.useErrorBoundary||a.suspense)&&l("error"),s},n.getNextResult=function(i){var a=this;return new Promise(function(o,s){var l=a.subscribe(function(c){c.isFetching||(l(),c.isError&&(i!=null&&i.throwOnError)?s(c.error):o(c))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(dn({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var a=this,o=this.client.defaultQueryObserverOptions(i),s=this.client.getQueryCache().build(this.client,o);return s.fetch().then(function(){return a.createResult(s,o)})},n.fetch=function(i){var a=this;return this.executeFetch(i).then(function(){return a.updateResult(),a.currentResult})},n.executeFetch=function(i){this.updateQuery();var a=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(a=a.catch(Da)),a},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(_T||this.currentResult.isStale||!$L(this.options.staleTime))){var a=SZ(this.currentResult.dataUpdatedAt,this.options.staleTime),o=a+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},o)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(_T||this.options.enabled===!1||!$L(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||n_.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,a){var o=this.currentQuery,s=this.options,l=this.currentResult,c=this.currentResultState,u=this.currentResultOptions,d=i!==o,f=d?i.state:this.currentQueryInitialState,p=d?this.currentResult:this.previousQueryResult,h=i.state,v=h.dataUpdatedAt,b=h.error,g=h.errorUpdatedAt,y=h.isFetching,w=h.status,x=!1,S=!1,T;if(a.optimisticResults){var I=this.hasListeners(),P=!I&&B8(i,a),M=I&&U8(i,o,a,s);(P||M)&&(y=!0,v||(w="loading"))}if(a.keepPreviousData&&!h.dataUpdateCount&&(p!=null&&p.isSuccess)&&w!=="error")T=p.data,v=p.dataUpdatedAt,w=p.status,x=!0;else if(a.select&&typeof h.data<"u")if(l&&h.data===(c==null?void 0:c.data)&&a.select===this.selectFn)T=this.selectResult;else try{this.selectFn=a.select,T=a.select(h.data),a.structuralSharing!==!1&&(T=ET(l==null?void 0:l.data,T)),this.selectResult=T,this.selectError=null}catch(O){CT().error(O),this.selectError=O}else T=h.data;if(typeof a.placeholderData<"u"&&typeof T>"u"&&(w==="loading"||w==="idle")){var N;if(l!=null&&l.isPlaceholderData&&a.placeholderData===(u==null?void 0:u.placeholderData))N=l.data;else if(N=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof N<"u")try{N=a.select(N),a.structuralSharing!==!1&&(N=ET(l==null?void 0:l.data,N)),this.selectError=null}catch(O){CT().error(O),this.selectError=O}typeof N<"u"&&(w="success",T=N,S=!0)}this.selectError&&(b=this.selectError,T=this.selectResult,g=Date.now(),w="error");var R={status:w,isLoading:w==="loading",isSuccess:w==="success",isError:w==="error",isIdle:w==="idle",data:T,dataUpdatedAt:v,error:b,errorUpdatedAt:g,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>f.dataUpdateCount||h.errorUpdateCount>f.errorUpdateCount,isFetching:y,isRefetching:y&&w!=="loading",isLoadingError:w==="error"&&h.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:x,isRefetchError:w==="error"&&h.dataUpdatedAt!==0,isStale:s$(i,a),refetch:this.refetch,remove:this.remove};return R},n.shouldNotifyListeners=function(i,a){if(!a)return!0;var o=this.options,s=o.notifyOnChangeProps,l=o.notifyOnChangePropsExclusions;if(!s&&!l||s==="tracked"&&!this.trackedProps.length)return!0;var c=s==="tracked"?this.trackedProps:s;return Object.keys(i).some(function(u){var d=u,f=i[d]!==a[d],p=c==null?void 0:c.some(function(v){return v===u}),h=l==null?void 0:l.some(function(v){return v===u});return f&&!h&&(!c||p)})},n.updateResult=function(i){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!WEe(this.currentResult,a)){var o={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(o.listeners=!0),this.notify(dn({},o,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var a=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var a={};i.type==="success"?a.onSuccess=!0:i.type==="error"&&!bC(i.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var a=this;Hr.batch(function(){i.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):i.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),i.listeners&&a.listeners.forEach(function(o){o(a.currentResult)}),i.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},e}(v0);function lSe(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function B8(t,e){return lSe(t,e)||t.state.dataUpdatedAt>0&&UL(t,e,e.refetchOnMount)}function UL(t,e,n){if(e.enabled!==!1){var r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&s$(t,e)}return!1}function U8(t,e,n,r){return n.enabled!==!1&&(t!==e||r.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&s$(t,n)}function s$(t,e){return t.isStaleByTime(e.staleTime)}var cSe=function(t){xd(e,t);function e(r,i){var a;return a=t.call(this)||this,a.client=r,a.setOptions(i),a.bindMethods(),a.updateResult(),a}var n=e.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},n.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},n.onMutationUpdate=function(i){this.updateResult();var a={listeners:!0};i.type==="success"?a.onSuccess=!0:i.type==="error"&&(a.onError=!0),this.notify(a)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(i,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,dn({},this.options,{variables:typeof i<"u"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:DZ(),a=dn({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},n.notify=function(i){var a=this;Hr.batch(function(){a.mutateOptions&&(i.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):i.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),i.listeners&&a.listeners.forEach(function(o){o(a.currentResult)})})},e}(v0),uSe=sh.unstable_batchedUpdates;Hr.setBatchNotifyFunction(uSe);var dSe=console;XEe(dSe);var H8=xe.createContext(void 0),PZ=xe.createContext(!1);function RZ(t){return t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=H8),window.ReactQueryClientContext):H8}var Dl=function(){var e=xe.useContext(RZ(xe.useContext(PZ)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},fSe=function(e){var n=e.client,r=e.contextSharing,i=r===void 0?!1:r,a=e.children;xe.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var o=RZ(i);return xe.createElement(PZ.Provider,{value:i},xe.createElement(o.Provider,{value:n},a))};function pSe(){var t=!1;return{clearReset:function(){t=!1},reset:function(){t=!0},isReset:function(){return t}}}var hSe=xe.createContext(pSe()),mSe=function(){return xe.useContext(hSe)};function OZ(t,e,n){return typeof e=="function"?e.apply(void 0,n):typeof e=="boolean"?e:!!t}function FI(t,e,n){var r=xe.useRef(!1),i=xe.useState(0),a=i[1],o=zEe(t,e,n),s=Dl(),l=xe.useRef();l.current?l.current.setOptions(o):l.current=new cSe(s,o);var c=l.current.getCurrentResult();xe.useEffect(function(){r.current=!0;var d=l.current.subscribe(Hr.batchCalls(function(){r.current&&a(function(f){return f+1})}));return function(){r.current=!1,d()}},[]);var u=xe.useCallback(function(d,f){l.current.mutate(d,f).catch(Da)},[]);if(c.error&&OZ(void 0,l.current.options.useErrorBoundary,[c.error]))throw c.error;return dn({},c,{mutate:u,mutateAsync:c.mutate})}function gSe(t,e){var n=xe.useRef(!1),r=xe.useState(0),i=r[1],a=Dl(),o=mSe(),s=a.defaultQueryObserverOptions(t);s.optimisticResults=!0,s.onError&&(s.onError=Hr.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Hr.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Hr.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(o.isReset()||(s.retryOnMount=!1));var l=xe.useState(function(){return new e(a,s)}),c=l[0],u=c.getOptimisticResult(s);if(xe.useEffect(function(){n.current=!0,o.clearReset();var d=c.subscribe(Hr.batchCalls(function(){n.current&&i(function(f){return f+1})}));return c.updateResult(),function(){n.current=!1,d()}},[o,c]),xe.useEffect(function(){c.setOptions(s,{listeners:!1})},[s,c]),s.suspense&&u.isLoading)throw c.fetchOptimistic(s).then(function(d){var f=d.data;s.onSuccess==null||s.onSuccess(f),s.onSettled==null||s.onSettled(f,null)}).catch(function(d){o.clearReset(),s.onError==null||s.onError(d),s.onSettled==null||s.onSettled(void 0,d)});if(u.isError&&!o.isReset()&&!u.isFetching&&OZ(s.suspense,s.useErrorBoundary,[u.error,c.getCurrentQuery()]))throw u.error;return s.notifyOnChangeProps==="tracked"&&(u=c.trackResult(u,s)),u}function fr(t,e,n){var r=vC(t,e,n);return gSe(r,sSe)}var HL={},vSe={get exports(){return HL},set exports(t){HL=t}};vSe.exports={ReactQueryDevtools:function(){return null},ReactQueryDevtoolsPanel:function(){return null}};const ySe=({children:t})=>{const e=C.useMemo(()=>new oSe,[]);return re(fSe,{client:e,children:[t,E(HL.ReactQueryDevtools,{initialIsOpen:!1})]})};var Z_={},bSe={get exports(){return Z_},set exports(t){Z_=t}},wr={};/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $I=60103,BI=60106,iw=60107,aw=60108,ow=60114,sw=60109,lw=60110,cw=60112,uw=60113,l$=60120,dw=60115,fw=60116,NZ=60121,LZ=60122,kZ=60117,FZ=60129,$Z=60131;if(typeof Symbol=="function"&&Symbol.for){var Sa=Symbol.for;$I=Sa("react.element"),BI=Sa("react.portal"),iw=Sa("react.fragment"),aw=Sa("react.strict_mode"),ow=Sa("react.profiler"),sw=Sa("react.provider"),lw=Sa("react.context"),cw=Sa("react.forward_ref"),uw=Sa("react.suspense"),l$=Sa("react.suspense_list"),dw=Sa("react.memo"),fw=Sa("react.lazy"),NZ=Sa("react.block"),LZ=Sa("react.server.block"),kZ=Sa("react.fundamental"),FZ=Sa("react.debug_trace_mode"),$Z=Sa("react.legacy_hidden")}function yc(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case $I:switch(t=t.type,t){case iw:case ow:case aw:case uw:case l$:return t;default:switch(t=t&&t.$$typeof,t){case lw:case cw:case fw:case dw:case sw:return t;default:return e}}case BI:return e}}}var _Se=sw,wSe=$I,xSe=cw,ESe=iw,SSe=fw,CSe=dw,TSe=BI,ASe=ow,ISe=aw,MSe=uw;wr.ContextConsumer=lw;wr.ContextProvider=_Se;wr.Element=wSe;wr.ForwardRef=xSe;wr.Fragment=ESe;wr.Lazy=SSe;wr.Memo=CSe;wr.Portal=TSe;wr.Profiler=ASe;wr.StrictMode=ISe;wr.Suspense=MSe;wr.isAsyncMode=function(){return!1};wr.isConcurrentMode=function(){return!1};wr.isContextConsumer=function(t){return yc(t)===lw};wr.isContextProvider=function(t){return yc(t)===sw};wr.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===$I};wr.isForwardRef=function(t){return yc(t)===cw};wr.isFragment=function(t){return yc(t)===iw};wr.isLazy=function(t){return yc(t)===fw};wr.isMemo=function(t){return yc(t)===dw};wr.isPortal=function(t){return yc(t)===BI};wr.isProfiler=function(t){return yc(t)===ow};wr.isStrictMode=function(t){return yc(t)===aw};wr.isSuspense=function(t){return yc(t)===uw};wr.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===iw||t===ow||t===FZ||t===aw||t===uw||t===l$||t===$Z||typeof t=="object"&&t!==null&&(t.$$typeof===fw||t.$$typeof===dw||t.$$typeof===sw||t.$$typeof===lw||t.$$typeof===cw||t.$$typeof===kZ||t.$$typeof===NZ||t[0]===LZ)};wr.typeOf=yc;(function(t){t.exports=wr})(bSe);function DSe(t){function e(U,q,z,ne,G){for(var te=0,Y=0,fe=0,pe=0,de,se,me=0,Z=0,_e,Me=_e=de=0,Ne=0,ge=0,ee=0,Q=0,V=z.length,j=V-1,ye,ae="",Ee="",Pe="",We="",Fe;Nede)&&(Q=(ae=ae.replace(" ",":")).length),0<$&&(Fe=s(1,ae,q,U,D,O,Ee.length,ne,G,ne))!==void 0&&(Q=(ae=Fe.trim()).length)===0&&(ae="\0\0"),de=ae.charCodeAt(0),se=ae.charCodeAt(1),de){case 0:break;case 64:if(se===105||se===99){We+=ae+z.charAt(Ne);break}default:ae.charCodeAt(Q-1)!==58&&(Ee+=i(ae,de,se,ae.charCodeAt(2)))}ee=ge=Me=de=0,ae="",se=z.charCodeAt(++Ne)}}switch(se){case 13:case 10:Y===47?Y=0:1+de===0&&ne!==107&&0ne&&(ne=(q=q.trim()).charCodeAt(0)),ne){case 38:return q.replace(g,"$1"+U.trim());case 58:return U.trim()+q.replace(g,"$1"+U.trim());default:if(0<1*z&&0Y.charCodeAt(8))break;case 115:G=G.replace(Y,"-webkit-"+Y)+";"+G;break;case 207:case 102:G=G.replace(Y,"-webkit-"+(102z.charCodeAt(0)&&(z=z.trim()),le=z,z=[le],0<$){var ne=s(-1,q,z,z,D,O,0,0,0,0);ne!==void 0&&typeof ne=="string"&&(q=ne)}var G=e(B,z,q,0,0);return 0<$&&(ne=s(-2,G,z,z,D,O,G.length,0,0,0),ne!==void 0&&(G=ne)),le="",L=0,O=D=1,G}var d=/^\0+/g,f=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,v=/([,: ])(transform)/g,b=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,w=/::(place)/g,x=/:(read-only)/g,S=/[svh]\w+-[tblr]{2}/,T=/\(\s*(.*)\s*\)/g,I=/([\s\S]*?);/g,P=/-self|flex-/g,M=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,R=/([^-])(image-set\()/,O=1,D=1,L=0,k=1,B=[],H=[],$=0,W=null,K=0,le="";return u.use=l,u.set=c,t!==void 0&&c(t),u}var PSe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},RSe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,VL=$Q(function(t){return RSe.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function rc(){return(rc=Object.assign||function(t){for(var e=1;e1?e-1:0),r=1;r0?" Args: "+n.join(", "):""))}var LSe=function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Ih(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=r_&&(r_=e+1),_C.set(t,e),AT.set(e,t)},$Se="style["+Rv+'][data-styled-version="5.3.6"]',BSe=new RegExp("^"+Rv+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),USe=function(t,e,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var u=l[c];if(u&&u.nodeType===1&&u.hasAttribute(Rv))return u}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(Rv,"active"),r.setAttribute("data-styled-version","5.3.6");var o=VSe();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},zSe=function(){function t(n){var r=this.element=BZ(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n0&&(d+=f+",")}),a+=""+c+u+'{content:"'+d+`"}/*!sc*/ `}}}return a}(this)},t}(),qSe=/(a)(d)/gi,G8=function(t){return String.fromCharCode(t+(t>25?39:97))};function jL(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=G8(e%52)+n;return(G8(e%52)+n).replace(qSe,"$1-$2")}var Fg=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},UZ=function(t){return Fg(5381,t)};function HZ(t){for(var e=0;e>>0);if(!n.hasNameForId(i,s)){var l=r(o,"."+s,void 0,i);n.insertRules(i,s,l)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,u=Fg(this.baseHash,r.hash),d="",f=0;f>>0);if(!n.hasNameForId(i,b)){var g=r(d,"."+b,void 0,i);n.insertRules(i,b,g)}a.push(b)}}return a.join(" ")},t}(),QSe=/^\s*\/\/.*$/gm,KSe=[":","[",".","#"];function XSe(t){var e,n,r,i,a=t===void 0?Lf:t,o=a.options,s=o===void 0?Lf:o,l=a.plugins,c=l===void 0?TT:l,u=new DSe(s),d=[],f=function(v){function b(g){if(g)try{v(g+"}")}catch{}}return function(g,y,w,x,S,T,I,P,M,N){switch(g){case 1:if(M===0&&y.charCodeAt(0)===64)return v(y+";"),"";break;case 2:if(P===0)return y+"/*|*/";break;case 3:switch(P){case 102:case 112:return v(w[0]+y),"";default:return y+(N===0?"/*|*/":"")}case-2:y.split("/*|*/}").forEach(b)}}}(function(v){d.push(v)}),p=function(v,b,g){return b===0&&KSe.indexOf(g[n.length])!==-1||g.match(i)?v:"."+e};function h(v,b,g,y){y===void 0&&(y="&");var w=v.replace(QSe,""),x=b&&g?g+" "+b+" { "+w+" }":w;return e=y,n=b,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(g||!b?"":b,x)}return u.use([].concat(c,[function(v,b,g){v===2&&g.length&&g[0].lastIndexOf(n)>0&&(g[0]=g[0].replace(r,p))},f,function(v){if(v===-2){var b=d;return d=[],b}}])),h.hash=c.length?c.reduce(function(v,b){return b.name||Ih(15),Fg(v,b.name)},5381).toString():"",h}var VZ=xe.createContext();VZ.Consumer;var zZ=xe.createContext(),ZSe=(zZ.Consumer,new IT),GL=XSe();function jZ(){return C.useContext(VZ)||ZSe}function GZ(){return C.useContext(zZ)||GL}var WZ=function(){function t(e,n){var r=this;this.inject=function(i,a){a===void 0&&(a=GL);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Ih(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=GL),this.name+e.hash},t}(),eCe=/([A-Z])/,tCe=/([A-Z])/g,nCe=/^ms-/,rCe=function(t){return"-"+t.toLowerCase()};function W8(t){return eCe.test(t)?t.replace(tCe,rCe).replace(nCe,"-ms-"):t}var q8=function(t){return t==null||t===!1||t===""};function Mh(t,e,n,r){if(Array.isArray(t)){for(var i,a=[],o=0,s=t.length;o1?e-1:0),r=1;r?@[\\\]^`{|}~-]+/g,aCe=/(^-|-$)/g;function rO(t){return t.replace(iCe,"-").replace(aCe,"")}var f$=function(t){return jL(UZ(t)>>>0)};function PE(t){return typeof t=="string"&&!0}var WL=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},oCe=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function sCe(t,e,n){var r=t[n];WL(e)&&WL(r)?YZ(r,e):t[n]=e}function YZ(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0||(N[P]=T[P]);return N}(e,["componentId"]),S=w&&w+"-"+(PE(y)?y:rO(z8(y)));return JZ(y,rc({},x,{attrs:f,componentId:S}),n)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=r?YZ({},t.defaultProps,y):y}}),h.toString=function(){return"."+h.styledComponentId},i&&L2(h,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var qL=function(t){return function e(n,r,i){if(i===void 0&&(i=Lf),!Z_.isValidElementType(r))return Ih(1,String(r));var a=function(){return n(r,i,d$.apply(void 0,arguments))};return a.withConfig=function(o){return e(n,r,rc({},i,{},o))},a.attrs=function(o){return e(n,r,rc({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(JZ,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){qL[t]=qL(t)});var cCe=function(){function t(n,r){this.rules=n,this.componentId=r,this.isStatic=HZ(n),IT.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(n,r,i,a){var o=a(Mh(this.rules,r,i,a).join(""),""),s=this.componentId+n;i.insertRules(s,s,o)},e.removeStyles=function(n,r){r.clearRules(this.componentId+n)},e.renderStyles=function(n,r,i,a){n>2&&IT.registerId(this.componentId+n),this.removeStyles(n,i),this.createStyles(n,r,i,a)},t}();function uCe(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;rre(lCe,{theme:KZ,children:[E(dCe,{}),t]}),fCe=({children:t})=>E(ySe,{children:E(kg,{children:E(XZ,{children:t})})});var p$={},hn={},pCe={get exports(){return hn},set exports(t){hn=t}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(pCe);var aO={};function po(){return po=Object.assign?Object.assign.bind():function(t){for(var e=1;e{e[n]=ZZ(t[n])}),e}function yo(t,e,n={clone:!0}){const r=n.clone?po({},t):t;return Qu(t)&&Qu(e)&&Object.keys(e).forEach(i=>{Qu(e[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Qu(t[i])?r[i]=yo(t[i],e[i],n):n.clone?r[i]=Qu(e[i])?ZZ(e[i]):e[i]:r[i]=e[i]}),r}const hCe=Object.freeze(Object.defineProperty({__proto__:null,default:yo,isPlainObject:Qu},Symbol.toStringTag,{value:"Module"}));function pd(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;nn==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function y0(t,e=166){let n;function r(...i){const a=()=>{t.apply(this,i)};clearTimeout(n),n=setTimeout(a,e)}return r.clear=()=>{clearTimeout(n)},r}function SCe(t,e){return()=>null}function av(t,e){var n,r;return C.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(r=t.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vi(t){return t&&t.ownerDocument||document}function wl(t){return Vi(t).defaultView||window}function CCe(t,e){return()=>null}function DT(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const TCe=typeof window<"u"?C.useLayoutEffect:C.useEffect,xi=TCe;let Q8=0;function ACe(t){const[e,n]=C.useState(t),r=t||e;return C.useEffect(()=>{e==null&&(Q8+=1,n(`mui-${Q8}`))},[e]),r}const K8=xh["useId".toString()];function ap(t){if(K8!==void 0){const e=K8();return t??e}return ACe(t)}function ICe(t,e,n,r,i){return null}function Wo({controlled:t,default:e,name:n,state:r="value"}){const{current:i}=C.useRef(t!==void 0),[a,o]=C.useState(e),s=i?t:a,l=C.useCallback(c=>{i||o(c)},[]);return[s,l]}function Lt(t){const e=C.useRef(t);return xi(()=>{e.current=t}),C.useRef((...n)=>(0,e.current)(...n)).current}function jn(...t){return C.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{DT(n,e)})},t)}const X8={};function MCe(t,e){const n=C.useRef(X8);return n.current===X8&&(n.current=t(e)),n}const DCe=[];function PCe(t){C.useEffect(t,DCe)}class QI{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new QI}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function g$(){const t=MCe(QI.create).current;return PCe(t.disposeEffect),t}let KI=!0,JL=!1;const RCe=new QI,OCe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function NCe(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&OCe[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function LCe(t){t.metaKey||t.altKey||t.ctrlKey||(KI=!0)}function oO(){KI=!1}function kCe(){this.visibilityState==="hidden"&&JL&&(KI=!0)}function FCe(t){t.addEventListener("keydown",LCe,!0),t.addEventListener("mousedown",oO,!0),t.addEventListener("pointerdown",oO,!0),t.addEventListener("touchstart",oO,!0),t.addEventListener("visibilitychange",kCe,!0)}function $Ce(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return KI||NCe(e)}function iee(){const t=C.useCallback(i=>{i!=null&&FCe(i.ownerDocument)},[]),e=C.useRef(!1);function n(){return e.current?(JL=!0,RCe.start(100,()=>{JL=!1}),e.current=!1,!0):!1}function r(i){return $Ce(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function aee(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}let Fm;function oee(){if(Fm)return Fm;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Fm="reverse",t.scrollLeft>0?Fm="default":(t.scrollLeft=1,t.scrollLeft===0&&(Fm="negative")),document.body.removeChild(t),Fm}function BCe(t,e){const n=t.scrollLeft;if(e!=="rtl")return n;switch(oee()){case"negative":return t.scrollWidth-t.clientWidth+n;case"reverse":return t.scrollWidth-t.clientWidth-n;default:return n}}function Ov(t,e){const n=po({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=po({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=t[r]||{},a=e[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=po({},a),Object.keys(i).forEach(o=>{n[r][o]=Ov(i[o],a[o])}))}else n[r]===void 0&&(n[r]=t[r])}),n}function xt(t,e,n=void 0){const r={};return Object.keys(t).forEach(i=>{r[i]=t[i].reduce((a,o)=>{if(o){const s=e(o);s!==""&&a.push(s),n&&n[o]&&a.push(n[o])}return a},[]).join(" ")}),r}const Z8=t=>t,UCe=()=>{let t=Z8;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Z8}}},HCe=UCe(),XI=HCe,VCe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Et(t,e,n="Mui"){const r=VCe[e];return r?`${n}-${r}`:`${XI.generate(t)}-${e}`}function St(t,e,n="Mui"){const r={};return e.forEach(i=>{r[i]=Et(t,i,n)}),r}function see(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}const zCe=Object.freeze(Object.defineProperty({__proto__:null,default:see},Symbol.toStringTag,{value:"Module"}));function jCe(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function Nv(t){return typeof t=="string"}function lee(t,e,n){return t===void 0||Nv(t)?e:po({},e,{ownerState:po({},e.ownerState,n)})}function cee(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;er.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function tG(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function dee(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=t;if(!e){const p=eG(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),h=po({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=po({},n,i,r);return p.length>0&&(v.className=p),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:void 0}}const o=uee(po({},i,r)),s=tG(r),l=tG(i),c=e(o),u=eG(c==null?void 0:c.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),d=po({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=po({},c,n,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function fee(t,e,n){return typeof t=="function"?t(e,n):t}const GCe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mc(t){var e;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=t,o=jCe(t,GCe),s=a?{}:fee(r,i),{props:l,internalRef:c}=dee(po({},o,{externalSlotProps:s})),u=jn(c,s==null?void 0:s.ref,(e=t.additionalProps)==null?void 0:e.ref);return lee(n,po({},l,{ref:u}),i)}function ie(){return ie=Object.assign?Object.assign.bind():function(t){for(var e=1;e96?lTe:cTe},aG=function(e,n,r){var i;if(n){var a=n.shouldForwardProp;i=e.__emotion_forwardProp&&a?function(o){return e.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},uTe=!1,dTe=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return pI(n,r,i),sF(function(){return hI(n,r,i)}),null},fTe=function t(e,n){var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,a,o;n!==void 0&&(a=n.label,o=n.target);var s=aG(e,n,r),l=s||iG(i),c=!l("as");return function(){var u=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,p=1;pe(mTe(i)?n:i):e})}/** * @mui/styled-engine v5.16.6 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function b$(t,e){return XL(t,e)}const gee=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},gTe=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:mee,StyledEngineProvider:hTe,ThemeContext:hw,css:ZI,default:b$,internal_processStyles:gee,keyframes:b0},Symbol.toStringTag,{value:"Module"})),vee=Ms(gTe),vTe=Ms(hCe),yTe=Ms(ECe),bTe=Ms(wCe);function On(){return On=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>On({},n,{[r.key]:r.val}),{})};function yee(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=t,i=au(t,_Te),a=wTe(e),o=Object.keys(a);function s(f){return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof e[f]=="number"?e[f]:f)-r/100}${n})`}function c(f,p){const h=o.indexOf(p);return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${n}) and (max-width:${(h!==-1&&typeof e[o[h]]=="number"?e[o[h]]:p)-r/100}${n})`}function u(f){return o.indexOf(f)+1`@media (min-width:${_$[t]}px)`};function gc(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const a=r.breakpoints||oG;return e.reduce((o,s,l)=>(o[a.up(a.keys[l])]=n(e[l]),o),{})}if(typeof e=="object"){const a=r.breakpoints||oG;return Object.keys(e).reduce((o,s)=>{if(Object.keys(a.values||_$).indexOf(s)!==-1){const l=a.up(s);o[l]=n(e[s],s)}else{const l=s;o[l]=e[l]}return o},{})}return n(e)}function bee(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((r,i)=>{const a=t.up(i);return r[a]={},r},{}))||{}}function _ee(t,e){return t.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},e)}function STe(t,...e){const n=bee(t),r=[n,...e].reduce((i,a)=>yo(i,a),{});return _ee(Object.keys(n),r)}function CTe(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((i,a)=>{a{t[i]!=null&&(n[i]=!0)}),n}function sO({values:t,breakpoints:e,base:n}){const r=n||CTe(t,e),i=Object.keys(r);if(i.length===0)return t;let a;return i.reduce((o,s,l)=>(Array.isArray(t)?(o[s]=t[l]!=null?t[l]:t[a],a=l):typeof t=="object"?(o[s]=t[s]!=null?t[s]:t[a],a=s):o[s]=t,o),{})}function eM(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,t);if(r!=null)return r}return e.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,t)}function NT(t,e,n,r=n){let i;return typeof t=="function"?i=t(n):Array.isArray(t)?i=t[n]||r:i=eM(t,n)||r,e&&(i=e(i,r,t)),i}function Ci(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:i}=t,a=o=>{if(o[e]==null)return null;const s=o[e],l=o.theme,c=eM(l,r)||{};return gc(o,s,d=>{let f=NT(c,i,d);return d===f&&typeof d=="string"&&(f=NT(c,i,`${e}${d==="default"?"":st(d)}`,d)),n===!1?f:{[n]:f}})};return a.propTypes={},a.filterProps=[e],a}function TTe(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const ATe={m:"margin",p:"padding"},ITe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sG={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},MTe=TTe(t=>{if(t.length>2)if(sG[t])t=sG[t];else return[t];const[e,n]=t.split(""),r=ATe[e],i=ITe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),w$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],x$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...w$,...x$];function mw(t,e,n,r){var i;const a=(i=eM(t,e,!1))!=null?i:n;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function E$(t){return mw(t,"spacing",8)}function Dh(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),r=t(n);return e>=0?r:typeof r=="number"?-r:`-${r}`}function DTe(t,e){return n=>t.reduce((r,i)=>(r[i]=Dh(e,n),r),{})}function PTe(t,e,n,r){if(e.indexOf(n)===-1)return null;const i=MTe(n),a=DTe(i,r),o=t[n];return gc(t,o,a)}function wee(t,e){const n=E$(t.theme);return Object.keys(t).map(r=>PTe(t,e,r,n)).reduce(i_,{})}function ti(t){return wee(t,w$)}ti.propTypes={};ti.filterProps=w$;function ni(t){return wee(t,x$)}ni.propTypes={};ni.filterProps=x$;function RTe(t=8){if(t.mui)return t;const e=E$({spacing:t}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const o=e(a);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function tM(...t){const e=t.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>e[a]?i_(i,e[a](r)):i,{});return n.propTypes={},n.filterProps=t.reduce((r,i)=>r.concat(i.filterProps),[]),n}function ll(t){return typeof t!="number"?t:`${t}px solid`}function Rl(t,e){return Ci({prop:t,themeKey:"borders",transform:e})}const OTe=Rl("border",ll),NTe=Rl("borderTop",ll),LTe=Rl("borderRight",ll),kTe=Rl("borderBottom",ll),FTe=Rl("borderLeft",ll),$Te=Rl("borderColor"),BTe=Rl("borderTopColor"),UTe=Rl("borderRightColor"),HTe=Rl("borderBottomColor"),VTe=Rl("borderLeftColor"),zTe=Rl("outline",ll),jTe=Rl("outlineColor"),nM=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=mw(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:Dh(e,r)});return gc(t,t.borderRadius,n)}return null};nM.propTypes={};nM.filterProps=["borderRadius"];tM(OTe,NTe,LTe,kTe,FTe,$Te,BTe,UTe,HTe,VTe,nM,zTe,jTe);const rM=t=>{if(t.gap!==void 0&&t.gap!==null){const e=mw(t.theme,"spacing",8),n=r=>({gap:Dh(e,r)});return gc(t,t.gap,n)}return null};rM.propTypes={};rM.filterProps=["gap"];const iM=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=mw(t.theme,"spacing",8),n=r=>({columnGap:Dh(e,r)});return gc(t,t.columnGap,n)}return null};iM.propTypes={};iM.filterProps=["columnGap"];const aM=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=mw(t.theme,"spacing",8),n=r=>({rowGap:Dh(e,r)});return gc(t,t.rowGap,n)}return null};aM.propTypes={};aM.filterProps=["rowGap"];const GTe=Ci({prop:"gridColumn"}),WTe=Ci({prop:"gridRow"}),qTe=Ci({prop:"gridAutoFlow"}),YTe=Ci({prop:"gridAutoColumns"}),JTe=Ci({prop:"gridAutoRows"}),QTe=Ci({prop:"gridTemplateColumns"}),KTe=Ci({prop:"gridTemplateRows"}),XTe=Ci({prop:"gridTemplateAreas"}),ZTe=Ci({prop:"gridArea"});tM(rM,iM,aM,GTe,WTe,qTe,YTe,JTe,QTe,KTe,XTe,ZTe);function ov(t,e){return e==="grey"?e:t}const eAe=Ci({prop:"color",themeKey:"palette",transform:ov}),tAe=Ci({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ov}),nAe=Ci({prop:"backgroundColor",themeKey:"palette",transform:ov});tM(eAe,tAe,nAe);function ls(t){return t<=1&&t!==0?`${t*100}%`:t}const rAe=Ci({prop:"width",transform:ls}),S$=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var r,i;const a=((r=t.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||_$[n];return a?((i=t.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${t.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:ls(n)}};return gc(t,t.maxWidth,e)}return null};S$.filterProps=["maxWidth"];const iAe=Ci({prop:"minWidth",transform:ls}),aAe=Ci({prop:"height",transform:ls}),oAe=Ci({prop:"maxHeight",transform:ls}),sAe=Ci({prop:"minHeight",transform:ls});Ci({prop:"size",cssProperty:"width",transform:ls});Ci({prop:"size",cssProperty:"height",transform:ls});const lAe=Ci({prop:"boxSizing"});tM(rAe,S$,iAe,aAe,oAe,sAe,lAe);const cAe={border:{themeKey:"borders",transform:ll},borderTop:{themeKey:"borders",transform:ll},borderRight:{themeKey:"borders",transform:ll},borderBottom:{themeKey:"borders",transform:ll},borderLeft:{themeKey:"borders",transform:ll},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ll},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nM},color:{themeKey:"palette",transform:ov},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ov},backgroundColor:{themeKey:"palette",transform:ov},p:{style:ni},pt:{style:ni},pr:{style:ni},pb:{style:ni},pl:{style:ni},px:{style:ni},py:{style:ni},padding:{style:ni},paddingTop:{style:ni},paddingRight:{style:ni},paddingBottom:{style:ni},paddingLeft:{style:ni},paddingX:{style:ni},paddingY:{style:ni},paddingInline:{style:ni},paddingInlineStart:{style:ni},paddingInlineEnd:{style:ni},paddingBlock:{style:ni},paddingBlockStart:{style:ni},paddingBlockEnd:{style:ni},m:{style:ti},mt:{style:ti},mr:{style:ti},mb:{style:ti},ml:{style:ti},mx:{style:ti},my:{style:ti},margin:{style:ti},marginTop:{style:ti},marginRight:{style:ti},marginBottom:{style:ti},marginLeft:{style:ti},marginX:{style:ti},marginY:{style:ti},marginInline:{style:ti},marginInlineStart:{style:ti},marginInlineEnd:{style:ti},marginBlock:{style:ti},marginBlockStart:{style:ti},marginBlockEnd:{style:ti},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:rM},rowGap:{style:aM},columnGap:{style:iM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ls},maxWidth:{style:S$},minWidth:{transform:ls},height:{transform:ls},maxHeight:{transform:ls},minHeight:{transform:ls},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},gw=cAe;function uAe(...t){const e=t.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function dAe(t,e){return typeof t=="function"?t(e):t}function xee(){function t(n,r,i,a){const o={[n]:r,theme:i},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=eM(i,c)||{};return d?d(o):gc(o,r,h=>{let v=NT(f,u,h);return h===v&&typeof h=="string"&&(v=NT(f,u,`${n}${h==="default"?"":st(h)}`,h)),l===!1?v:{[l]:v}})}function e(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const o=(r=a.unstable_sxConfig)!=null?r:gw;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=bee(a.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(p=>{const h=dAe(c[p],a);if(h!=null)if(typeof h=="object")if(o[p])f=i_(f,t(p,h,a,o));else{const v=gc({theme:a},h,b=>({[p]:b}));uAe(v,h)?f[p]=e({sx:h,theme:a}):f=i_(f,v)}else f=i_(f,t(p,h,a,o))}),_ee(d,f)}return Array.isArray(i)?i.map(s):s(i)}return e}const Eee=xee();Eee.filterProps=["sx"];const vw=Eee;function See(t,e){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)")]:e}:n.palette.mode===t?e:{}}const fAe=["breakpoints","palette","spacing","shape"];function Zh(t={},...e){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=t,o=au(t,fAe),s=yee(n),l=RTe(i);let c=yo({breakpoints:s,direction:"ltr",components:{},palette:On({mode:"light"},r),spacing:l,shape:On({},ETe,a)},o);return c.applyStyles=See,c=e.reduce((u,d)=>yo(u,d),c),c.unstable_sxConfig=On({},gw,o==null?void 0:o.unstable_sxConfig),c.unstable_sx=function(d){return vw({sx:d,theme:this})},c}const pAe=Object.freeze(Object.defineProperty({__proto__:null,default:Zh,private_createBreakpoints:yee,unstable_applyStyles:See},Symbol.toStringTag,{value:"Module"})),hAe=Ms(pAe),mAe=["sx"],gAe=t=>{var e,n;const r={systemProps:{},otherProps:{}},i=(e=t==null||(n=t.theme)==null?void 0:n.unstable_sxConfig)!=null?e:gw;return Object.keys(t).forEach(a=>{i[a]?r.systemProps[a]=t[a]:r.otherProps[a]=t[a]}),r};function yw(t){const{sx:e}=t,n=au(t,mAe),{systemProps:r,otherProps:i}=gAe(n);let a;return Array.isArray(e)?a=[r,...e]:typeof e=="function"?a=(...o)=>{const s=e(...o);return Qu(s)?On({},r,s):r}:a=On({},r,e),On({},i,{sx:a})}const vAe=Object.freeze(Object.defineProperty({__proto__:null,default:vw,extendSxProp:yw,unstable_createStyleFunctionSx:xee,unstable_defaultSxConfig:gw},Symbol.toStringTag,{value:"Module"})),yAe=Ms(vAe);var _0=PT;Object.defineProperty(pw,"__esModule",{value:!0});var bAe=pw.default=RAe;pw.shouldForwardProp=wC;pw.systemDefaultTheme=void 0;var il=_0(KCe()),ek=_0(ZCe()),lG=TAe(vee),_Ae=vTe;_0(yTe);_0(bTe);var wAe=_0(hAe),xAe=_0(yAe);const EAe=["ownerState"],SAe=["variants"],CAe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Cee(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Cee=function(r){return r?n:e})(t)}function TAe(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Cee(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function AAe(t){return Object.keys(t).length===0}function IAe(t){return typeof t=="string"&&t.charCodeAt(0)>96}function wC(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const MAe=pw.systemDefaultTheme=(0,wAe.default)(),DAe=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function RE({defaultTheme:t,theme:e,themeId:n}){return AAe(e)?t:e[n]||e}function PAe(t){return t?(e,n)=>n[t]:null}function xC(t,e){let{ownerState:n}=e,r=(0,ek.default)(e,EAe);const i=typeof t=="function"?t((0,il.default)({ownerState:n},r)):t;if(Array.isArray(i))return i.flatMap(a=>xC(a,(0,il.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let s=(0,ek.default)(i,SAe);return a.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,il.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,il.default)({ownerState:n},r,n)):l.style))}),s}return i}function RAe(t={}){const{themeId:e,defaultTheme:n=MAe,rootShouldForwardProp:r=wC,slotShouldForwardProp:i=wC}=t,a=o=>(0,xAe.default)((0,il.default)({},o,{theme:RE((0,il.default)({},o,{defaultTheme:n,themeId:e}))}));return a.__mui_systemSx=!0,(o,s={})=>{(0,lG.internal_processStyles)(o,S=>S.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=PAe(DAe(c))}=s,p=(0,ek.default)(s,CAe),h=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=d||!1;let b,g=wC;c==="Root"||c==="root"?g=r:c?g=i:IAe(o)&&(g=void 0);const y=(0,lG.default)(o,(0,il.default)({shouldForwardProp:g,label:b},p)),w=S=>typeof S=="function"&&S.__emotion_real!==S||(0,_Ae.isPlainObject)(S)?T=>xC(S,(0,il.default)({},T,{theme:RE({theme:T.theme,defaultTheme:n,themeId:e})})):S,x=(S,...T)=>{let I=w(S);const P=T?T.map(w):[];l&&f&&P.push(R=>{const O=RE((0,il.default)({},R,{defaultTheme:n,themeId:e}));if(!O.components||!O.components[l]||!O.components[l].styleOverrides)return null;const D=O.components[l].styleOverrides,L={};return Object.entries(D).forEach(([k,B])=>{L[k]=xC(B,(0,il.default)({},R,{theme:O}))}),f(R,L)}),l&&!h&&P.push(R=>{var O;const D=RE((0,il.default)({},R,{defaultTheme:n,themeId:e})),L=D==null||(O=D.components)==null||(O=O[l])==null?void 0:O.variants;return xC({variants:L},(0,il.default)({},R,{theme:D}))}),v||P.push(a);const M=P.length-T.length;if(Array.isArray(S)&&M>0){const R=new Array(M).fill("");I=[...S,...R],I.raw=[...S.raw,...R]}const N=y(I,...P);return o.muiName&&(N.muiName=o.muiName),N};return y.withConfig&&(x.withConfig=y.withConfig),x}}function OAe(t,e){return ie({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}var Ti={};const NAe=Ms(mCe),LAe=Ms(zCe);var Tee=PT;Object.defineProperty(Ti,"__esModule",{value:!0});var yn=Ti.alpha=Dee;Ti.blend=YAe;Ti.colorChannel=void 0;var kAe=Ti.darken=T$;Ti.decomposeColor=xl;Ti.emphasize=Pee;var FAe=Ti.getContrastRatio=zAe;Ti.getLuminance=LT;Ti.hexToRgb=Aee;Ti.hslToRgb=Mee;var $Ae=Ti.lighten=A$;Ti.private_safeAlpha=jAe;Ti.private_safeColorChannel=void 0;Ti.private_safeDarken=GAe;Ti.private_safeEmphasize=qAe;Ti.private_safeLighten=WAe;Ti.recomposeColor=w0;Ti.rgbToHex=VAe;var cG=Tee(NAe),BAe=Tee(LAe);function C$(t,e=0,n=1){return(0,BAe.default)(t,e,n)}function Aee(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function UAe(t){const e=t.toString(16);return e.length===1?`0${e}`:e}function xl(t){if(t.type)return t;if(t.charAt(0)==="#")return xl(Aee(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,cG.default)(9,t));let r=t.substring(e+1,t.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,cG.default)(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const Iee=t=>{const e=xl(t);return e.values.slice(0,3).map((n,r)=>e.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ti.colorChannel=Iee;const HAe=(t,e)=>{try{return Iee(t)}catch{return t}};Ti.private_safeColorChannel=HAe;function w0(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function VAe(t){if(t.indexOf("#")===0)return t;const{values:e}=xl(t);return`#${e.map((n,r)=>UAe(r===3?Math.round(255*n):n)).join("")}`}function Mee(t){t=xl(t);const{values:e}=t,n=e[0],r=e[1]/100,i=e[2]/100,a=r*Math.min(i,1-i),o=(c,u=(c+n/30)%12)=>i-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return t.type==="hsla"&&(s+="a",l.push(e[3])),w0({type:s,values:l})}function LT(t){t=xl(t);let e=t.type==="hsl"||t.type==="hsla"?xl(Mee(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function zAe(t,e){const n=LT(t),r=LT(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Dee(t,e){return t=xl(t),e=C$(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,w0(t)}function jAe(t,e,n){try{return Dee(t,e)}catch{return t}}function T$(t,e){if(t=xl(t),e=C$(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return w0(t)}function GAe(t,e,n){try{return T$(t,e)}catch{return t}}function A$(t,e){if(t=xl(t),e=C$(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return w0(t)}function WAe(t,e,n){try{return A$(t,e)}catch{return t}}function Pee(t,e=.15){return LT(t)>.5?T$(t,e):A$(t,e)}function qAe(t,e,n){try{return Pee(t,e)}catch{return t}}function YAe(t,e,n,r=1){const i=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),a=xl(t),o=xl(e),s=[i(a.values[0],o.values[0]),i(a.values[1],o.values[1]),i(a.values[2],o.values[2])];return w0({type:"rgb",values:s})}const JAe={black:"#000",white:"#fff"},t1=JAe,QAe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},KAe=QAe,XAe={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},$m=XAe,ZAe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Bm=ZAe,eIe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ly=eIe,tIe={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Um=tIe,nIe={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Hm=nIe,rIe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Vm=rIe,iIe=["mode","contrastThreshold","tonalOffset"],uG={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:t1.white,default:t1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},lO={text:{primary:t1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:t1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function dG(t,e,n,r){const i=r.light||r,a=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=$Ae(t.main,i):e==="dark"&&(t.dark=kAe(t.main,a)))}function aIe(t="light"){return t==="dark"?{main:Um[200],light:Um[50],dark:Um[400]}:{main:Um[700],light:Um[400],dark:Um[800]}}function oIe(t="light"){return t==="dark"?{main:$m[200],light:$m[50],dark:$m[400]}:{main:$m[500],light:$m[300],dark:$m[700]}}function sIe(t="light"){return t==="dark"?{main:Bm[500],light:Bm[300],dark:Bm[700]}:{main:Bm[700],light:Bm[400],dark:Bm[800]}}function lIe(t="light"){return t==="dark"?{main:Hm[400],light:Hm[300],dark:Hm[700]}:{main:Hm[700],light:Hm[500],dark:Hm[900]}}function cIe(t="light"){return t==="dark"?{main:Vm[400],light:Vm[300],dark:Vm[700]}:{main:Vm[800],light:Vm[500],dark:Vm[900]}}function uIe(t="light"){return t==="dark"?{main:Ly[400],light:Ly[300],dark:Ly[700]}:{main:"#ed6c02",light:Ly[500],dark:Ly[900]}}function dIe(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,i=wt(t,iIe),a=t.primary||aIe(e),o=t.secondary||oIe(e),s=t.error||sIe(e),l=t.info||lIe(e),c=t.success||cIe(e),u=t.warning||uIe(e);function d(v){return FAe(v,lO.text.primary)>=n?lO.text.primary:uG.text.primary}const f=({color:v,name:b,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=ie({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(pd(11,b?` (${b})`:"",g));if(typeof v.main!="string")throw new Error(pd(12,b?` (${b})`:"",JSON.stringify(v.main)));return dG(v,"light",y,r),dG(v,"dark",w,r),v.contrastText||(v.contrastText=d(v.main)),v},p={dark:lO,light:uG};return yo(ie({common:ie({},t1),mode:e,primary:f({color:a,name:"primary"}),secondary:f({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:KAe,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[e]),i)}const fIe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function pIe(t){return Math.round(t*1e5)/1e5}const fG={textTransform:"uppercase"},pG='"Roboto", "Helvetica", "Arial", sans-serif';function hIe(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:r=pG,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=wt(n,fIe),p=i/14,h=d||(g=>`${g/c*p}rem`),v=(g,y,w,x,S)=>ie({fontFamily:r,fontWeight:g,fontSize:h(y),lineHeight:w},r===pG?{letterSpacing:`${pIe(x/y)}em`}:{},S,u),b={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(s,14,1.75,.4,fG),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,fG),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yo(ie({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},b),f,{clone:!1})}const mIe=.2,gIe=.14,vIe=.12;function Br(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${mIe})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${gIe})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${vIe})`].join(",")}const yIe=["none",Br(0,2,1,-1,0,1,1,0,0,1,3,0),Br(0,3,1,-2,0,2,2,0,0,1,5,0),Br(0,3,3,-2,0,3,4,0,0,1,8,0),Br(0,2,4,-1,0,4,5,0,0,1,10,0),Br(0,3,5,-1,0,5,8,0,0,1,14,0),Br(0,3,5,-1,0,6,10,0,0,1,18,0),Br(0,4,5,-2,0,7,10,1,0,2,16,1),Br(0,5,5,-3,0,8,10,1,0,3,14,2),Br(0,5,6,-3,0,9,12,1,0,3,16,2),Br(0,6,6,-3,0,10,14,1,0,4,18,3),Br(0,6,7,-4,0,11,15,1,0,4,20,3),Br(0,7,8,-4,0,12,17,2,0,5,22,4),Br(0,7,8,-4,0,13,19,2,0,5,24,4),Br(0,7,9,-4,0,14,21,2,0,5,26,4),Br(0,8,9,-5,0,15,22,2,0,6,28,5),Br(0,8,10,-5,0,16,24,2,0,6,30,5),Br(0,8,11,-5,0,17,26,2,0,6,32,5),Br(0,9,11,-5,0,18,28,2,0,7,34,6),Br(0,9,12,-6,0,19,29,2,0,7,36,6),Br(0,10,13,-6,0,20,31,3,0,8,38,7),Br(0,10,13,-6,0,21,33,3,0,8,40,7),Br(0,10,14,-6,0,22,35,3,0,8,42,7),Br(0,11,14,-7,0,23,36,3,0,9,44,8),Br(0,11,15,-7,0,24,38,3,0,9,46,8)],bIe=yIe,_Ie=["duration","easing","delay"],wIe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ree={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hG(t){return`${Math.round(t)}ms`}function xIe(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function EIe(t){const e=ie({},wIe,t.easing),n=ie({},Ree,t.duration);return ie({getAutoHeightDuration:xIe,create:(i=["all"],a={})=>{const{duration:o=n.standard,easing:s=e.easeInOut,delay:l=0}=a;return wt(a,_Ie),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof o=="string"?o:hG(o)} ${s} ${typeof l=="string"?l:hG(l)}`).join(",")}},t,{easing:e,duration:n})}const SIe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},CIe=SIe,TIe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Oee(t={},...e){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=t,o=wt(t,TIe);if(t.vars)throw new Error(pd(18));const s=dIe(r),l=Zh(t);let c=yo(l,{mixins:OAe(l.breakpoints,n),palette:s,shadows:bIe.slice(),typography:hIe(s,a),transitions:EIe(i),zIndex:ie({},CIe)});return c=yo(c,o),c=e.reduce((u,d)=>yo(u,d),c),c.unstable_sxConfig=ie({},gw,o==null?void 0:o.unstable_sxConfig),c.unstable_sx=function(d){return vw({sx:d,theme:this})},c}const AIe=Oee(),oM=AIe,bw="$$material";function Nee(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const IIe=t=>Nee(t)&&t!=="classes",Ha=IIe,MIe=bAe({themeId:bw,defaultTheme:oM,rootShouldForwardProp:Ha}),He=MIe;function DIe(t){return Et("MuiSvgIcon",t)}St("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const PIe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],RIe=t=>{const{color:e,fontSize:n,classes:r}=t,i={root:["root",e!=="inherit"&&`color${st(e)}`,`fontSize${st(n)}`]};return xt(i,DIe,r)},OIe=He("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${st(n.color)}`],e[`fontSize${st(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,r,i,a,o,s,l,c,u,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=t.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=t.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=t.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=t.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=t.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[e.fontSize],color:(d=(f=(t.vars||t).palette)==null||(f=f[e.color])==null?void 0:f.main)!=null?d:{action:(p=(t.vars||t).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(t.vars||t).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[e.color]}}),Lee=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=wt(r,PIe),h=C.isValidElement(i)&&i.type==="svg",v=ie({},r,{color:o,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h}),b={};u||(b.viewBox=f);const g=RIe(v);return Vt(OIe,ie({as:s,className:yt(g.root,a),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},b,p,h&&i.props,{ownerState:v,children:[h?i.props.children:i,d?be("title",{children:d}):null]}))});Lee.muiName="SvgIcon";const mG=Lee;function Gi(t,e){function n(r,i){return be(mG,ie({"data-testid":`${e}Icon`,ref:i},r,{children:t}))}return n.muiName=mG.muiName,C.memo(C.forwardRef(n))}const NIe={configure:t=>{XI.configure(t)}},LIe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:st,createChainedFunction:YL,createSvgIcon:Gi,debounce:y0,deprecatedPropType:SCe,isMuiElement:av,ownerDocument:Vi,ownerWindow:wl,requirePropFactory:CCe,setRef:DT,unstable_ClassNameGenerator:NIe,unstable_useEnhancedEffect:xi,unstable_useId:ap,unsupportedProp:ICe,useControlled:Wo,useEventCallback:Lt,useForkRef:jn,useIsFocusVisible:iee},Symbol.toStringTag,{value:"Module"})),kIe=Ms(LIe);var gG;function bn(){return gG||(gG=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=kIe}(aO)),aO}const _n=Ms(_be);var FIe=hn;Object.defineProperty(p$,"__esModule",{value:!0});var op=p$.default=void 0,$Ie=FIe(bn()),BIe=_n;op=p$.default=(0,$Ie.default)((0,BIe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function UIe(t){return Object.keys(t).length===0}function kee(t=null){const e=C.useContext(hw);return!e||UIe(e)?t:e}const HIe=Zh();function em(t=HIe){return kee(t)}function VIe({styles:t,themeId:e,defaultTheme:n={}}){const r=em(n),i=typeof t=="function"?t(e&&r[e]||r):t;return be(mee,{styles:i})}function Fee(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;es!=="theme"&&s!=="sx"&&s!=="as"})(vw);return C.forwardRef(function(l,c){const u=em(n),d=yw(l),{className:f,component:p="div"}=d,h=au(d,zIe);return be(a,On({as:p,ref:c,className:sM(f,i?i(r):r),theme:e&&u[e]||u},h))})}const jIe=St("MuiBox",["root"]),GIe=jIe,WIe=$ee({defaultClassName:GIe.root,generateClassName:XI.generate}),Bee=WIe,qIe=["ownerState"],YIe=["variants"],JIe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function QIe(t){return Object.keys(t).length===0}function KIe(t){return typeof t=="string"&&t.charCodeAt(0)>96}function cO(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const XIe=Zh(),ZIe=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function OE({defaultTheme:t,theme:e,themeId:n}){return QIe(e)?t:e[n]||e}function eMe(t){return t?(e,n)=>n[t]:null}function EC(t,e){let{ownerState:n}=e,r=au(e,qIe);const i=typeof t=="function"?t(On({ownerState:n},r)):t;if(Array.isArray(i))return i.flatMap(a=>EC(a,On({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let s=au(i,YIe);return a.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(On({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(On({ownerState:n},r,n)):l.style))}),s}return i}function tMe(t={}){const{themeId:e,defaultTheme:n=XIe,rootShouldForwardProp:r=cO,slotShouldForwardProp:i=cO}=t,a=o=>vw(On({},o,{theme:OE(On({},o,{defaultTheme:n,themeId:e}))}));return a.__mui_systemSx=!0,(o,s={})=>{gee(o,S=>S.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=eMe(ZIe(c))}=s,p=au(s,JIe),h=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=d||!1;let b,g=cO;c==="Root"||c==="root"?g=r:c?g=i:KIe(o)&&(g=void 0);const y=b$(o,On({shouldForwardProp:g,label:b},p)),w=S=>typeof S=="function"&&S.__emotion_real!==S||Qu(S)?T=>EC(S,On({},T,{theme:OE({theme:T.theme,defaultTheme:n,themeId:e})})):S,x=(S,...T)=>{let I=w(S);const P=T?T.map(w):[];l&&f&&P.push(R=>{const O=OE(On({},R,{defaultTheme:n,themeId:e}));if(!O.components||!O.components[l]||!O.components[l].styleOverrides)return null;const D=O.components[l].styleOverrides,L={};return Object.entries(D).forEach(([k,B])=>{L[k]=EC(B,On({},R,{theme:O}))}),f(R,L)}),l&&!h&&P.push(R=>{var O;const D=OE(On({},R,{defaultTheme:n,themeId:e})),L=D==null||(O=D.components)==null||(O=O[l])==null?void 0:O.variants;return EC({variants:L},On({},R,{theme:D}))}),v||P.push(a);const M=P.length-T.length;if(Array.isArray(S)&&M>0){const R=new Array(M).fill("");I=[...S,...R],I.raw=[...S.raw,...R]}const N=y(I,...P);return o.muiName&&(N.muiName=o.muiName),N};return y.withConfig&&(x.withConfig=y.withConfig),x}}const nMe=tMe(),I$=nMe;function Uee(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Ov(e.components[n].defaultProps,r)}function lM({props:t,name:e,defaultTheme:n,themeId:r}){let i=em(n);return r&&(i=i[r]||i),Uee({theme:i,name:e,props:t})}function rMe(t,e,n,r,i){const[a,o]=C.useState(()=>i&&n?n(t).matches:r?r(t).matches:e);return xi(()=>{let s=!0;if(!n)return;const l=n(t),c=()=>{s&&o(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[t,n]),a}const Hee=xh["useSyncExternalStore"];function iMe(t,e,n,r,i){const a=C.useCallback(()=>e,[e]),o=C.useMemo(()=>{if(i&&n)return()=>n(t).matches;if(r!==null){const{matches:u}=r(t);return()=>u}return a},[a,t,r,i,n]),[s,l]=C.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(t);return[()=>u.matches,d=>(u.addListener(d),()=>{u.removeListener(d)})]},[a,n,t]);return Hee(l,s,o)}function Vee(t,e={}){const n=kee(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:s=!1}=Uee({name:"MuiUseMediaQuery",props:e,theme:n});let l=typeof t=="function"?t(n):t;return l=l.replace(/^@media( ?)/m,""),(Hee!==void 0?iMe:rMe)(l,i,a,o,s)}function aMe(t,e=0,n=1){return see(t,e,n)}function oMe(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function zee(t){if(t.type)return t;if(t.charAt(0)==="#")return zee(oMe(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(pd(9,t));let r=t.substring(e+1,t.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(pd(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function sMe(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function Lv(t,e){return t=zee(t),e=aMe(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,sMe(t)}const lMe=C.createContext(),_w=()=>{const t=C.useContext(lMe);return t??!1},cMe=["className","component","disableGutters","fixed","maxWidth","classes"],uMe=Zh(),dMe=I$("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`maxWidth${st(String(n.maxWidth))}`],n.fixed&&e.fixed,n.disableGutters&&e.disableGutters]}}),fMe=t=>lM({props:t,name:"MuiContainer",defaultTheme:uMe}),pMe=(t,e)=>{const n=l=>Et(e,l),{classes:r,fixed:i,disableGutters:a,maxWidth:o}=t,s={root:["root",o&&`maxWidth${st(String(o))}`,i&&"fixed",a&&"disableGutters"]};return xt(s,n,r)};function hMe(t={}){const{createStyledComponent:e=dMe,useThemeProps:n=fMe,componentName:r="MuiContainer"}=t,i=e(({theme:o,ownerState:s})=>On({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,c)=>{const u=c,d=o.breakpoints.values[u];return d!==0&&(l[o.breakpoints.up(u)]={maxWidth:`${d}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>On({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return C.forwardRef(function(s,l){const c=n(s),{className:u,component:d="div",disableGutters:f=!1,fixed:p=!1,maxWidth:h="lg"}=c,v=au(c,cMe),b=On({},c,{component:d,disableGutters:f,fixed:p,maxWidth:h}),g=pMe(b,r);return be(i,On({as:d,ownerState:b,className:sM(g.root,u),ref:l},v))})}const mMe=(t,e)=>t.filter(n=>e.includes(n)),x0=(t,e,n)=>{const r=t.keys[0];Array.isArray(e)?e.forEach((i,a)=>{n((o,s)=>{a<=t.keys.length-1&&(a===0?Object.assign(o,s):o[t.up(t.keys[a])]=s)},i)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:mMe(t.keys,Object.keys(e))).forEach(a=>{if(t.keys.indexOf(a)!==-1){const o=e[a];o!==void 0&&n((s,l)=>{r===a?Object.assign(s,l):s[t.up(a)]=l},o)}}):(typeof e=="number"||typeof e=="string")&&n((i,a)=>{Object.assign(i,a)},e)};function hd(t){return t?`Level${t}`:""}function ww(t){return t.unstable_level>0&&t.container}function jee(t){return function(n){return`var(--Grid-${n}Spacing${hd(t.unstable_level)})`}}function M$(t){return function(n){return t.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${hd(t.unstable_level-1)})`}}function D$(t){return t.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${hd(t.unstable_level-1)})`}const gMe=({theme:t,ownerState:e})=>{const n=jee(e),r={};return x0(t.breakpoints,e.gridSize,(i,a)=>{let o={};a===!0&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${D$(e)}${ww(e)?` + ${n("column")}`:""})`}),i(r,o)}),r},vMe=({theme:t,ownerState:e})=>{const n={};return x0(t.breakpoints,e.gridOffset,(r,i)=>{let a={};i==="auto"&&(a={marginLeft:"auto"}),typeof i=="number"&&(a={marginLeft:i===0?"0px":`calc(100% * ${i} / ${D$(e)})`}),r(n,a)}),n},yMe=({theme:t,ownerState:e})=>{if(!e.container)return{};const n=ww(e)?{[`--Grid-columns${hd(e.unstable_level)}`]:D$(e)}:{"--Grid-columns":12};return x0(t.breakpoints,e.columns,(r,i)=>{r(n,{[`--Grid-columns${hd(e.unstable_level)}`]:i})}),n},bMe=({theme:t,ownerState:e})=>{if(!e.container)return{};const n=M$(e),r=ww(e)?{[`--Grid-rowSpacing${hd(e.unstable_level)}`]:n("row")}:{};return x0(t.breakpoints,e.rowSpacing,(i,a)=>{var o;i(r,{[`--Grid-rowSpacing${hd(e.unstable_level)}`]:typeof a=="string"?a:(o=t.spacing)==null?void 0:o.call(t,a)})}),r},_Me=({theme:t,ownerState:e})=>{if(!e.container)return{};const n=M$(e),r=ww(e)?{[`--Grid-columnSpacing${hd(e.unstable_level)}`]:n("column")}:{};return x0(t.breakpoints,e.columnSpacing,(i,a)=>{var o;i(r,{[`--Grid-columnSpacing${hd(e.unstable_level)}`]:typeof a=="string"?a:(o=t.spacing)==null?void 0:o.call(t,a)})}),r},wMe=({theme:t,ownerState:e})=>{if(!e.container)return{};const n={};return x0(t.breakpoints,e.direction,(r,i)=>{r(n,{flexDirection:i})}),n},xMe=({ownerState:t})=>{const e=jee(t),n=M$(t);return On({minWidth:0,boxSizing:"border-box"},t.container&&On({display:"flex",flexWrap:"wrap"},t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},{margin:`calc(${e("row")} / -2) calc(${e("column")} / -2)`},t.disableEqualOverflow&&{margin:`calc(${e("row")} * -1) 0px 0px calc(${e("column")} * -1)`}),(!t.container||ww(t))&&On({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(t.disableEqualOverflow||t.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},EMe=t=>{const e=[];return Object.entries(t).forEach(([n,r])=>{r!==!1&&r!==void 0&&e.push(`grid-${n}-${String(r)}`)}),e},SMe=(t,e="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const r=[];return Object.entries(t).forEach(([i,a])=>{n(a)&&r.push(`spacing-${i}-${String(a)}`)}),r}return[]},CMe=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,n])=>`direction-${e}-${n}`):[`direction-xs-${String(t)}`],TMe=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],AMe=Zh(),IMe=I$("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function MMe(t){return lM({props:t,name:"MuiGrid",defaultTheme:AMe})}function DMe(t={}){const{createStyledComponent:e=IMe,useThemeProps:n=MMe,componentName:r="MuiGrid"}=t,i=C.createContext(void 0),a=(l,c)=>{const{container:u,direction:d,spacing:f,wrap:p,gridSize:h}=l,v={root:["root",u&&"container",p!=="wrap"&&`wrap-xs-${String(p)}`,...CMe(d),...EMe(h),...u?SMe(f,c.breakpoints.keys[0]):[]]};return xt(v,b=>Et(r,b),{})},o=e(yMe,_Me,bMe,gMe,wMe,xMe,vMe),s=C.forwardRef(function(c,u){var d,f,p,h,v,b,g,y;const w=em(),x=n(c),S=yw(x),T=C.useContext(i),{className:I,children:P,columns:M=12,container:N=!1,component:R="div",direction:O="row",wrap:D="wrap",spacing:L=0,rowSpacing:k=L,columnSpacing:B=L,disableEqualOverflow:H,unstable_level:$=0}=S,W=au(S,TMe);let K=H;$&&H!==void 0&&(K=c.disableEqualOverflow);const le={},U={},q={};Object.entries(W).forEach(([de,se])=>{w.breakpoints.values[de]!==void 0?le[de]=se:w.breakpoints.values[de.replace("Offset","")]!==void 0?U[de.replace("Offset","")]=se:q[de]=se});const z=(d=c.columns)!=null?d:$?void 0:M,ne=(f=c.spacing)!=null?f:$?void 0:L,G=(p=(h=c.rowSpacing)!=null?h:c.spacing)!=null?p:$?void 0:k,te=(v=(b=c.columnSpacing)!=null?b:c.spacing)!=null?v:$?void 0:B,Y=On({},S,{level:$,columns:z,container:N,direction:O,wrap:D,spacing:ne,rowSpacing:G,columnSpacing:te,gridSize:le,gridOffset:U,disableEqualOverflow:(g=(y=K)!=null?y:T)!=null?g:!1,parentDisableEqualOverflow:T}),fe=a(Y,w);let pe=be(o,On({ref:u,as:R,ownerState:Y,className:sM(fe.root,I)},q,{children:C.Children.map(P,de=>{if(C.isValidElement(de)&&av(de,["Grid"])){var se;return C.cloneElement(de,{unstable_level:(se=de.props.unstable_level)!=null?se:$+1})}return de})}));return K!==void 0&&K!==(T??!1)&&(pe=be(i.Provider,{value:K,children:pe})),pe});return s.muiName="Grid",s}const PMe=["component","direction","spacing","divider","children","className","useFlexGap"],RMe=Zh(),OMe=I$("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function NMe(t){return lM({props:t,name:"MuiStack",defaultTheme:RMe})}function LMe(t,e){const n=C.Children.toArray(t).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],FMe=({ownerState:t,theme:e})=>{let n=On({display:"flex",flexDirection:"column"},gc({theme:e},sO({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r})));if(t.spacing){const r=E$(e),i=Object.keys(e.breakpoints.values).reduce((l,c)=>((typeof t.spacing=="object"&&t.spacing[c]!=null||typeof t.direction=="object"&&t.direction[c]!=null)&&(l[c]=!0),l),{}),a=sO({values:t.direction,base:i}),o=sO({values:t.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const f=c>0?a[u[c-1]]:"column";a[l]=f}}),n=yo(n,gc({theme:e},o,(l,c)=>t.useFlexGap?{gap:Dh(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${kMe(c?a[c]:t.direction)}`]:Dh(r,l)}}))}return n=STe(e.breakpoints,n),n};function $Me(t={}){const{createStyledComponent:e=OMe,useThemeProps:n=NMe,componentName:r="MuiStack"}=t,i=()=>xt({root:["root"]},l=>Et(r,l),{}),a=e(FMe);return C.forwardRef(function(l,c){const u=n(l),d=yw(u),{component:f="div",direction:p="column",spacing:h=0,divider:v,children:b,className:g,useFlexGap:y=!1}=d,w=au(d,PMe),x={direction:p,spacing:h,useFlexGap:y},S=i();return be(a,On({as:f,ownerState:x,ref:c,className:sM(S.root,g)},w,{children:v?LMe(b,v):b}))})}function Os(){const t=em(oM);return t[bw]||t}function ia({props:t,name:e}){return lM({props:t,name:e,defaultTheme:oM,themeId:bw})}const BMe=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)},vG=BMe;var yG={},UMe={get exports(){return yG},set exports(t){yG=t}},sr={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var P$=Symbol.for("react.element"),R$=Symbol.for("react.portal"),cM=Symbol.for("react.fragment"),uM=Symbol.for("react.strict_mode"),dM=Symbol.for("react.profiler"),fM=Symbol.for("react.provider"),pM=Symbol.for("react.context"),HMe=Symbol.for("react.server_context"),hM=Symbol.for("react.forward_ref"),mM=Symbol.for("react.suspense"),gM=Symbol.for("react.suspense_list"),vM=Symbol.for("react.memo"),yM=Symbol.for("react.lazy"),VMe=Symbol.for("react.offscreen"),Gee;Gee=Symbol.for("react.module.reference");function Ol(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case P$:switch(t=t.type,t){case cM:case dM:case uM:case mM:case gM:return t;default:switch(t=t&&t.$$typeof,t){case HMe:case pM:case hM:case yM:case vM:case fM:return t;default:return e}}case R$:return e}}}sr.ContextConsumer=pM;sr.ContextProvider=fM;sr.Element=P$;sr.ForwardRef=hM;sr.Fragment=cM;sr.Lazy=yM;sr.Memo=vM;sr.Portal=R$;sr.Profiler=dM;sr.StrictMode=uM;sr.Suspense=mM;sr.SuspenseList=gM;sr.isAsyncMode=function(){return!1};sr.isConcurrentMode=function(){return!1};sr.isContextConsumer=function(t){return Ol(t)===pM};sr.isContextProvider=function(t){return Ol(t)===fM};sr.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===P$};sr.isForwardRef=function(t){return Ol(t)===hM};sr.isFragment=function(t){return Ol(t)===cM};sr.isLazy=function(t){return Ol(t)===yM};sr.isMemo=function(t){return Ol(t)===vM};sr.isPortal=function(t){return Ol(t)===R$};sr.isProfiler=function(t){return Ol(t)===dM};sr.isStrictMode=function(t){return Ol(t)===uM};sr.isSuspense=function(t){return Ol(t)===mM};sr.isSuspenseList=function(t){return Ol(t)===gM};sr.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===cM||t===dM||t===uM||t===mM||t===gM||t===VMe||typeof t=="object"&&t!==null&&(t.$$typeof===yM||t.$$typeof===vM||t.$$typeof===fM||t.$$typeof===pM||t.$$typeof===hM||t.$$typeof===Gee||t.getModuleId!==void 0)};sr.typeOf=Ol;(function(t){t.exports=sr})(UMe);function O$(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a=0)&&(n[i]=t[i]);return n}function zMe(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function jMe(t,e){t.classList?t.classList.add(e):zMe(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function bG(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function GMe(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=bG(t.className,e):t.setAttribute("class",bG(t.className&&t.className.baseVal||"",e))}const _G={disabled:!1},kT=xe.createContext(null);var Wee=function(e){return e.scrollTop},Lb="unmounted",Gp="exited",Wp="entering",hg="entered",tk="exiting",Ed=function(t){xd(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Gp,a.appearStatus=Wp):l=hg:r.unmountOnExit||r.mountOnEnter?l=Lb:l=Gp,a.state={status:l},a.nextCallback=null,a}e.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Lb?{status:Gp}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Wp&&o!==hg&&(a=Wp):(o===Wp||o===hg)&&(a=tk)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Wp){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:sh.findDOMNode(this);o&&Wee(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Gp&&this.setState({status:Lb})},n.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[sh.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!o||_G.disabled){this.safeSetState({status:hg},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Wp},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:hg},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:sh.findDOMNode(this);if(!a||_G.disabled){this.safeSetState({status:Gp},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:tk},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Gp},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:sh.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Lb)return null;var a=this.props,o=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 s=O$(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return xe.createElement(kT.Provider,{value:null},typeof o=="function"?o(i,s):xe.cloneElement(xe.Children.only(o),s))},e}(xe.Component);Ed.contextType=kT;Ed.propTypes={};function zm(){}Ed.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zm,onEntering:zm,onEntered:zm,onExit:zm,onExiting:zm,onExited:zm};Ed.UNMOUNTED=Lb;Ed.EXITED=Gp;Ed.ENTERING=Wp;Ed.ENTERED=hg;Ed.EXITING=tk;const xw=Ed;var WMe=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return jMe(e,r)})},uO=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return GMe(e,r)})},N$=function(t){xd(e,t);function e(){for(var r,i=arguments.length,a=new Array(i),o=0;ot.scrollTop;function Jf(t,e){var n,r;const{timeout:i,easing:a,style:o={}}=t;return{duration:(n=o.transitionDuration)!=null?n:typeof i=="number"?i:i[e.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof a=="object"?a[e.mode]:a,delay:o.transitionDelay}}function eDe(t){return Et("MuiCollapse",t)}St("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const tDe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],nDe=t=>{const{orientation:e,classes:n}=t,r={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return xt(r,eDe,n)},rDe=He("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.state==="entered"&&e.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&e.hidden]}})(({theme:t,ownerState:e})=>ie({height:0,overflow:"hidden",transition:t.transitions.create("height")},e.orientation==="horizontal"&&{height:"auto",width:0,transition:t.transitions.create("width")},e.state==="entered"&&ie({height:"auto",overflow:"visible"},e.orientation==="horizontal"&&{width:"auto"}),e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&{visibility:"hidden"})),iDe=He("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})(({ownerState:t})=>ie({display:"flex",width:"100%"},t.orientation==="horizontal"&&{width:"auto",height:"100%"})),aDe=He("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})(({ownerState:t})=>ie({width:"100%"},t.orientation==="horizontal"&&{width:"auto",height:"100%"})),qee=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:v,onExiting:b,orientation:g="vertical",style:y,timeout:w=Ree.standard,TransitionComponent:x=xw}=r,S=wt(r,tDe),T=ie({},r,{orientation:g,collapsedSize:s}),I=nDe(T),P=Os(),M=g$(),N=C.useRef(null),R=C.useRef(),O=typeof s=="number"?`${s}px`:s,D=g==="horizontal",L=D?"width":"height",k=C.useRef(null),B=jn(n,k),H=G=>te=>{if(G){const Y=k.current;te===void 0?G(Y):G(Y,te)}},$=()=>N.current?N.current[D?"clientWidth":"clientHeight"]:0,W=H((G,te)=>{N.current&&D&&(N.current.style.position="absolute"),G.style[L]=O,d&&d(G,te)}),K=H((G,te)=>{const Y=$();N.current&&D&&(N.current.style.position="");const{duration:fe,easing:pe}=Jf({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const de=P.transitions.getAutoHeightDuration(Y);G.style.transitionDuration=`${de}ms`,R.current=de}else G.style.transitionDuration=typeof fe=="string"?fe:`${fe}ms`;G.style[L]=`${Y}px`,G.style.transitionTimingFunction=pe,p&&p(G,te)}),le=H((G,te)=>{G.style[L]="auto",f&&f(G,te)}),U=H(G=>{G.style[L]=`${$()}px`,h&&h(G)}),q=H(v),z=H(G=>{const te=$(),{duration:Y,easing:fe}=Jf({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const pe=P.transitions.getAutoHeightDuration(te);G.style.transitionDuration=`${pe}ms`,R.current=pe}else G.style.transitionDuration=typeof Y=="string"?Y:`${Y}ms`;G.style[L]=O,G.style.transitionTimingFunction=fe,b&&b(G)});return be(x,ie({in:u,onEnter:W,onEntered:le,onEntering:K,onExit:U,onExited:q,onExiting:z,addEndListener:G=>{w==="auto"&&M.start(R.current||0,G),i&&i(k.current,G)},nodeRef:k,timeout:w==="auto"?null:w},S,{children:(G,te)=>be(rDe,ie({as:l,className:yt(I.root,o,{entered:I.entered,exited:!u&&O==="0px"&&I.hidden}[G]),style:ie({[D?"minWidth":"minHeight"]:O},y),ref:B},te,{ownerState:ie({},T,{state:G}),children:be(iDe,{ownerState:ie({},T,{state:G}),className:I.wrapper,ref:N,children:be(aDe,{ownerState:ie({},T,{state:G}),className:I.wrapperInner,children:a})})}))}))});qee.muiSupportAuto=!0;const oDe=qee;function sDe(t){return Et("MuiPaper",t)}St("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"]);const lDe=["className","component","elevation","square","variant"],cDe=t=>{const{square:e,elevation:n,variant:r,classes:i}=t,a={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return xt(a,sDe,i)},uDe=He("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(({theme:t,ownerState:e})=>{var n;return ie({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},e.variant==="elevation"&&ie({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${yn("#fff",vG(e.elevation))}, ${yn("#fff",vG(e.elevation))})`},t.vars&&{backgroundImage:(n=t.vars.overlays)==null?void 0:n[e.elevation]}))}),dDe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=r,c=wt(r,lDe),u=ie({},r,{component:a,elevation:o,square:s,variant:l}),d=cDe(u);return be(uDe,ie({as:a,ownerState:u,className:yt(d.root,i),ref:n},c))}),Va=dDe,fDe=C.createContext({}),Yee=fDe,pDe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],hDe=["component","slots","slotProps"],mDe=["component"];function gDe(t,e){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:o,internalForwardedProps:s}=e,l=wt(e,pDe),{component:c,slots:u={[t]:void 0},slotProps:d={[t]:void 0}}=a,f=wt(a,hDe),p=u[t]||r,h=fee(d[t],i),v=dee(ie({className:n},l,{externalForwardedProps:t==="root"?f:void 0,externalSlotProps:h})),{props:{component:b},internalRef:g}=v,y=wt(v.props,mDe),w=jn(g,h==null?void 0:h.ref,e.ref),x=o?o(y):{},S=ie({},i,x),T=t==="root"?b||c:b,I=lee(p,ie({},t==="root"&&!c&&!u[t]&&s,t!=="root"&&!u[t]&&s,y,T&&{as:T},{ref:w}),S);return Object.keys(x).forEach(P=>{delete I[P]}),[p,I]}function vDe(t){return Et("MuiAccordion",t)}const yDe=St("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),NE=yDe,bDe=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],_De=t=>{const{classes:e,square:n,expanded:r,disabled:i,disableGutters:a}=t;return xt({root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},vDe,e)},wDe=He(Va,{name:"MuiAccordion",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${NE.region}`]:e.region},e.root,!n.square&&e.rounded,!n.disableGutters&&e.gutters]}})(({theme:t})=>{const e={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],e),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],e)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${NE.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${NE.disabled}`]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}},({theme:t})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${NE.expanded}`]:{margin:"16px 0"}}}]})),xDe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,slots:f={},slotProps:p={},TransitionComponent:h,TransitionProps:v}=r,b=wt(r,bDe),[g,y]=Wo({controlled:c,default:o,name:"Accordion",state:"expanded"}),w=C.useCallback(D=>{y(!g),u&&u(D,!g)},[g,u,y]),[x,...S]=C.Children.toArray(i),T=C.useMemo(()=>({expanded:g,disabled:s,disableGutters:l,toggle:w}),[g,s,l,w]),I=ie({},r,{square:d,disabled:s,disableGutters:l,expanded:g}),P=_De(I),M=ie({transition:h},f),N=ie({transition:v},p),[R,O]=gDe("transition",{elementType:oDe,externalForwardedProps:{slots:M,slotProps:N},ownerState:I});return Vt(wDe,ie({className:yt(P.root,a),ref:n,ownerState:I,square:d},b,{children:[be(Yee.Provider,{value:T,children:x}),be(R,ie({in:g,timeout:"auto"},O,{children:be("div",{"aria-labelledby":x.props.id,id:x.props["aria-controls"],role:"region",className:P.region,children:S})}))]}))}),Jee=xDe;function EDe(t){return Et("MuiAccordionDetails",t)}St("MuiAccordionDetails",["root"]);const SDe=["className"],CDe=t=>{const{classes:e}=t;return xt({root:["root"]},EDe,e)},TDe=He("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({padding:t.spacing(1,2,2)})),ADe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiAccordionDetails"}),{className:i}=r,a=wt(r,SDe),o=r,s=CDe(o);return be(TDe,ie({className:yt(s.root,i),ref:n,ownerState:o},a))}),Qee=ADe;function IDe(t){const{className:e,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:c}=t,[u,d]=C.useState(!1),f=yt(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},h=yt(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),C.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),be("span",{className:f,style:p,children:be("span",{className:h})})}const MDe=St("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),al=MDe,DDe=["center","classes","className"];let bM=t=>t,wG,xG,EG,SG;const nk=550,PDe=80,RDe=b0(wG||(wG=bM` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),ODe=b0(xG||(xG=bM` 0% { opacity: 1; } 100% { opacity: 0; } `)),NDe=b0(EG||(EG=bM` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),LDe=He("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),kDe=He(IDe,{name:"MuiTouchRipple",slot:"Ripple"})(SG||(SG=bM` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),al.rippleVisible,RDe,nk,({theme:t})=>t.transitions.easing.easeInOut,al.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,al.child,al.childLeaving,ODe,nk,({theme:t})=>t.transitions.easing.easeInOut,al.childPulsate,NDe,({theme:t})=>t.transitions.easing.easeInOut),FDe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=r,s=wt(r,DDe),[l,c]=C.useState([]),u=C.useRef(0),d=C.useRef(null);C.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=C.useRef(!1),p=g$(),h=C.useRef(null),v=C.useRef(null),b=C.useCallback(x=>{const{pulsate:S,rippleX:T,rippleY:I,rippleSize:P,cb:M}=x;c(N=>[...N,be(kDe,{classes:{ripple:yt(a.ripple,al.ripple),rippleVisible:yt(a.rippleVisible,al.rippleVisible),ripplePulsate:yt(a.ripplePulsate,al.ripplePulsate),child:yt(a.child,al.child),childLeaving:yt(a.childLeaving,al.childLeaving),childPulsate:yt(a.childPulsate,al.childPulsate)},timeout:nk,pulsate:S,rippleX:T,rippleY:I,rippleSize:P},u.current)]),u.current+=1,d.current=M},[a]),g=C.useCallback((x={},S={},T=()=>{})=>{const{pulsate:I=!1,center:P=i||S.pulsate,fakeElement:M=!1}=S;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const N=M?null:v.current,R=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,D,L;if(P||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)O=Math.round(R.width/2),D=Math.round(R.height/2);else{const{clientX:k,clientY:B}=x.touches&&x.touches.length>0?x.touches[0]:x;O=Math.round(k-R.left),D=Math.round(B-R.top)}if(P)L=Math.sqrt((2*R.width**2+R.height**2)/3),L%2===0&&(L+=1);else{const k=Math.max(Math.abs((N?N.clientWidth:0)-O),O)*2+2,B=Math.max(Math.abs((N?N.clientHeight:0)-D),D)*2+2;L=Math.sqrt(k**2+B**2)}x!=null&&x.touches?h.current===null&&(h.current=()=>{b({pulsate:I,rippleX:O,rippleY:D,rippleSize:L,cb:T})},p.start(PDe,()=>{h.current&&(h.current(),h.current=null)})):b({pulsate:I,rippleX:O,rippleY:D,rippleSize:L,cb:T})},[i,b,p]),y=C.useCallback(()=>{g({},{pulsate:!0})},[g]),w=C.useCallback((x,S)=>{if(p.clear(),(x==null?void 0:x.type)==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{w(x,S)});return}h.current=null,c(T=>T.length>0?T.slice(1):T),d.current=S},[p]);return C.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),be(LDe,ie({className:yt(al.root,a.root,o),ref:v},s,{children:be(F$,{component:null,exit:!0,children:l})}))}),$De=FDe;function BDe(t){return Et("MuiButtonBase",t)}const UDe=St("MuiButtonBase",["root","disabled","focusVisible"]),HDe=UDe,VDe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],zDe=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:i}=t,o=xt({root:["root",e&&"disabled",n&&"focusVisible"]},BDe,i);return n&&r&&(o.root+=` ${r}`),o},jDe=He("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${HDe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),GDe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:h,onClick:v,onContextMenu:b,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:x,onKeyUp:S,onMouseDown:T,onMouseLeave:I,onMouseUp:P,onTouchEnd:M,onTouchMove:N,onTouchStart:R,tabIndex:O=0,TouchRippleProps:D,touchRippleRef:L,type:k}=r,B=wt(r,VDe),H=C.useRef(null),$=C.useRef(null),W=jn($,L),{isFocusVisibleRef:K,onFocus:le,onBlur:U,ref:q}=iee(),[z,ne]=C.useState(!1);c&&z&&ne(!1),C.useImperativeHandle(i,()=>({focusVisible:()=>{ne(!0),H.current.focus()}}),[]);const[G,te]=C.useState(!1);C.useEffect(()=>{te(!0)},[]);const Y=G&&!u&&!c;C.useEffect(()=>{z&&f&&!u&&G&&$.current.pulsate()},[u,f,z,G]);function fe(Ae,he,Ye=d){return Lt(Ke=>(he&&he(Ke),!Ye&&$.current&&$.current[Ae](Ke),!0))}const pe=fe("start",T),de=fe("stop",b),se=fe("stop",g),me=fe("stop",P),Z=fe("stop",Ae=>{z&&Ae.preventDefault(),I&&I(Ae)}),_e=fe("start",R),Me=fe("stop",M),Ne=fe("stop",N),ge=fe("stop",Ae=>{U(Ae),K.current===!1&&ne(!1),h&&h(Ae)},!1),ee=Lt(Ae=>{H.current||(H.current=Ae.currentTarget),le(Ae),K.current===!0&&(ne(!0),w&&w(Ae)),y&&y(Ae)}),Q=()=>{const Ae=H.current;return l&&l!=="button"&&!(Ae.tagName==="A"&&Ae.href)},V=C.useRef(!1),j=Lt(Ae=>{f&&!V.current&&z&&$.current&&Ae.key===" "&&(V.current=!0,$.current.stop(Ae,()=>{$.current.start(Ae)})),Ae.target===Ae.currentTarget&&Q()&&Ae.key===" "&&Ae.preventDefault(),x&&x(Ae),Ae.target===Ae.currentTarget&&Q()&&Ae.key==="Enter"&&!c&&(Ae.preventDefault(),v&&v(Ae))}),ye=Lt(Ae=>{f&&Ae.key===" "&&$.current&&z&&!Ae.defaultPrevented&&(V.current=!1,$.current.stop(Ae,()=>{$.current.pulsate(Ae)})),S&&S(Ae),v&&Ae.target===Ae.currentTarget&&Q()&&Ae.key===" "&&!Ae.defaultPrevented&&v(Ae)});let ae=l;ae==="button"&&(B.href||B.to)&&(ae=p);const Ee={};ae==="button"?(Ee.type=k===void 0?"button":k,Ee.disabled=c):(!B.href&&!B.to&&(Ee.role="button"),c&&(Ee["aria-disabled"]=c));const Pe=jn(n,q,H),We=ie({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:O,focusVisible:z}),Fe=zDe(We);return Vt(jDe,ie({as:ae,className:yt(Fe.root,s),ownerState:We,onBlur:ge,onClick:v,onContextMenu:de,onFocus:ee,onKeyDown:j,onKeyUp:ye,onMouseDown:pe,onMouseLeave:Z,onMouseUp:me,onDragLeave:se,onTouchEnd:Me,onTouchMove:Ne,onTouchStart:_e,ref:Pe,tabIndex:c?-1:O,type:k},Ee,B,{children:[o,Y?be($De,ie({ref:W,center:a},D)):null]}))}),Cs=GDe;function WDe(t){return Et("MuiAccordionSummary",t)}const qDe=St("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),$g=qDe,YDe=["children","className","expandIcon","focusVisibleClassName","onClick"],JDe=t=>{const{classes:e,expanded:n,disabled:r,disableGutters:i}=t;return xt({root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},WDe,e)},QDe=He(Cs,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{const e={duration:t.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],e),[`&.${$g.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${$g.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`&:hover:not(.${$g.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${$g.expanded}`]:{minHeight:64}}}]}}),KDe=He("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(t,e)=>e.content})(({theme:t})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),[`&.${$g.expanded}`]:{margin:"20px 0"}}}]})),XDe=He("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(t,e)=>e.expandIconWrapper})(({theme:t})=>({display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),[`&.${$g.expanded}`]:{transform:"rotate(180deg)"}})),ZDe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=r,c=wt(r,YDe),{disabled:u=!1,disableGutters:d,expanded:f,toggle:p}=C.useContext(Yee),h=g=>{p&&p(g),l&&l(g)},v=ie({},r,{expanded:f,disabled:u,disableGutters:d}),b=JDe(v);return Vt(QDe,ie({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":f,className:yt(b.root,a),focusVisibleClassName:yt(b.focusVisible,s),onClick:h,ref:n,ownerState:v},c,{children:[be(KDe,{className:b.content,ownerState:v,children:i}),o&&be(XDe,{className:b.expandIconWrapper,ownerState:v,children:o})]}))}),Kee=ZDe;function ePe(t){return Et("MuiIconButton",t)}const tPe=St("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nPe=tPe,rPe=["edge","children","className","color","disabled","disableFocusRipple","size"],iPe=t=>{const{classes:e,disabled:n,color:r,edge:i,size:a}=t,o={root:["root",n&&"disabled",r!=="default"&&`color${st(r)}`,i&&`edge${st(i)}`,`size${st(a)}`]};return xt(o,ePe,e)},aPe=He(Cs,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${st(n.color)}`],n.edge&&e[`edge${st(n.edge)}`],e[`size${st(n.size)}`]]}})(({theme:t,ownerState:e})=>ie({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:yn(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:t,ownerState:e})=>{var n;const r=(n=(t.vars||t).palette)==null?void 0:n[e.color];return ie({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&ie({color:r==null?void 0:r.main},!e.disableRipple&&{"&:hover":ie({},r&&{backgroundColor:t.vars?`rgba(${r.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:yn(r.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${nPe.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),oPe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=wt(r,rPe),f=ie({},r,{edge:i,color:s,disabled:l,disableFocusRipple:c,size:u}),p=iPe(f);return be(aPe,ie({className:yt(p.root,o),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},d,{ownerState:f,children:a}))}),ir=oPe;function sPe(t){return Et("MuiTypography",t)}St("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const lPe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],cPe=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:o}=t,s={root:["root",a,t.align!=="inherit"&&`align${st(e)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return xt(s,sPe,o)},uPe=He("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${st(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>ie({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&t.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),CG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dPe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fPe=t=>dPe[t]||t,pPe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiTypography"}),i=fPe(r.color),a=yw(ie({},r,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=CG}=a,h=wt(a,lPe),v=ie({},a,{align:o,color:i,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:f,variantMapping:p}),b=l||(d?"p":p[f]||CG[f])||"span",g=cPe(v);return be(uPe,ie({as:b,ref:n,ownerState:v,className:yt(g.root,s)},h))}),$i=pPe;function hPe(t){return Et("MuiAppBar",t)}St("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const mPe=["className","color","enableColorOnDark","position"],gPe=t=>{const{color:e,position:n,classes:r}=t,i={root:["root",`color${st(e)}`,`position${st(n)}`]};return xt(i,hPe,r)},LE=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,vPe=He(Va,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${st(n.position)}`],e[`color${st(n.color)}`]]}})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[900];return ie({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!t.vars&&ie({},e.color==="default"&&{backgroundColor:n,color:t.palette.getContrastText(n)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},t.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&ie({backgroundColor:"transparent",color:"inherit"},t.palette.mode==="dark"&&{backgroundImage:"none"})),t.vars&&ie({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:LE(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:LE(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:LE(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:LE(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},!["inherit","transparent"].includes(e.color)&&{backgroundColor:"var(--AppBar-background)"},{color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),yPe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=r,l=wt(r,mPe),c=ie({},r,{color:a,position:s,enableColorOnDark:o}),u=gPe(c);return be(vPe,ie({square:!0,component:"header",ownerState:c,elevation:4,className:yt(u.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),B$=yPe;var U$={};Object.defineProperty(U$,"__esModule",{value:!0});var Xee=U$.default=void 0,bPe=wPe(C),_Pe=vee;function Zee(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Zee=function(r){return r?n:e})(t)}function wPe(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Zee(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function xPe(t){return Object.keys(t).length===0}function EPe(t=null){const e=bPe.useContext(_Pe.ThemeContext);return!e||xPe(e)?t:e}Xee=U$.default=EPe;var Ho="top",El="bottom",Sl="right",Vo="left",H$="auto",Ew=[Ho,El,Sl,Vo],kv="start",n1="end",SPe="clippingParents",ete="viewport",ky="popper",CPe="reference",TG=Ew.reduce(function(t,e){return t.concat([e+"-"+kv,e+"-"+n1])},[]),tte=[].concat(Ew,[H$]).reduce(function(t,e){return t.concat([e,e+"-"+kv,e+"-"+n1])},[]),TPe="beforeRead",APe="read",IPe="afterRead",MPe="beforeMain",DPe="main",PPe="afterMain",RPe="beforeWrite",OPe="write",NPe="afterWrite",LPe=[TPe,APe,IPe,MPe,DPe,PPe,RPe,OPe,NPe];function ou(t){return t?(t.nodeName||"").toLowerCase():null}function Ts(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ph(t){var e=Ts(t).Element;return t instanceof e||t instanceof Element}function gl(t){var e=Ts(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function V$(t){if(typeof ShadowRoot>"u")return!1;var e=Ts(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function kPe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},a=e.elements[n];!gl(a)||!ou(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function FPe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],a=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=o.reduce(function(l,c){return l[c]="",l},{});!gl(i)||!ou(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const $Pe={name:"applyStyles",enabled:!0,phase:"write",fn:kPe,effect:FPe,requires:["computeStyles"]};function Xc(t){return t.split("-")[0]}var mh=Math.max,FT=Math.min,Fv=Math.round;function rk(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function nte(){return!/^((?!chrome|android).)*safari/i.test(rk())}function $v(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,a=1;e&&gl(t)&&(i=t.offsetWidth>0&&Fv(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Fv(r.height)/t.offsetHeight||1);var o=Ph(t)?Ts(t):window,s=o.visualViewport,l=!nte()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/a,d=r.width/i,f=r.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function z$(t){var e=$v(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function rte(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&V$(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function md(t){return Ts(t).getComputedStyle(t)}function BPe(t){return["table","td","th"].indexOf(ou(t))>=0}function sp(t){return((Ph(t)?t.ownerDocument:t.document)||window.document).documentElement}function _M(t){return ou(t)==="html"?t:t.assignedSlot||t.parentNode||(V$(t)?t.host:null)||sp(t)}function AG(t){return!gl(t)||md(t).position==="fixed"?null:t.offsetParent}function UPe(t){var e=/firefox/i.test(rk()),n=/Trident/i.test(rk());if(n&&gl(t)){var r=md(t);if(r.position==="fixed")return null}var i=_M(t);for(V$(i)&&(i=i.host);gl(i)&&["html","body"].indexOf(ou(i))<0;){var a=md(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Sw(t){for(var e=Ts(t),n=AG(t);n&&BPe(n)&&md(n).position==="static";)n=AG(n);return n&&(ou(n)==="html"||ou(n)==="body"&&md(n).position==="static")?e:n||UPe(t)||e}function j$(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function a_(t,e,n){return mh(t,FT(e,n))}function HPe(t,e,n){var r=a_(t,e,n);return r>n?n:r}function ite(){return{top:0,right:0,bottom:0,left:0}}function ate(t){return Object.assign({},ite(),t)}function ote(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var VPe=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,ate(typeof e!="number"?e:ote(e,Ew))};function zPe(t){var e,n=t.state,r=t.name,i=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Xc(n.placement),l=j$(s),c=[Vo,Sl].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var d=VPe(i.padding,n),f=z$(a),p=l==="y"?Ho:Vo,h=l==="y"?El:Sl,v=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],b=o[l]-n.rects.reference[l],g=Sw(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-b/2,x=d[p],S=y-f[u]-d[h],T=y/2-f[u]/2+w,I=a_(x,T,S),P=l;n.modifiersData[r]=(e={},e[P]=I,e.centerOffset=I-T,e)}}function jPe(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||rte(e.elements.popper,i)&&(e.elements.arrow=i))}const GPe={name:"arrow",enabled:!0,phase:"main",fn:zPe,effect:jPe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bv(t){return t.split("-")[1]}var WPe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qPe(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:Fv(n*i)/i||0,y:Fv(r*i)/i||0}}function IG(t){var e,n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=o.x,p=f===void 0?0:f,h=o.y,v=h===void 0?0:h,b=typeof u=="function"?u({x:p,y:v}):{x:p,y:v};p=b.x,v=b.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),w=Vo,x=Ho,S=window;if(c){var T=Sw(n),I="clientHeight",P="clientWidth";if(T===Ts(n)&&(T=sp(n),md(T).position!=="static"&&s==="absolute"&&(I="scrollHeight",P="scrollWidth")),T=T,i===Ho||(i===Vo||i===Sl)&&a===n1){x=El;var M=d&&T===S&&S.visualViewport?S.visualViewport.height:T[I];v-=M-r.height,v*=l?1:-1}if(i===Vo||(i===Ho||i===El)&&a===n1){w=Sl;var N=d&&T===S&&S.visualViewport?S.visualViewport.width:T[P];p-=N-r.width,p*=l?1:-1}}var R=Object.assign({position:s},c&&WPe),O=u===!0?qPe({x:p,y:v},Ts(n)):{x:p,y:v};if(p=O.x,v=O.y,l){var D;return Object.assign({},R,(D={},D[x]=y?"0":"",D[w]=g?"0":"",D.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",D))}return Object.assign({},R,(e={},e[x]=y?v+"px":"",e[w]=g?p+"px":"",e.transform="",e))}function YPe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Xc(e.placement),variation:Bv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,IG(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,IG(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const JPe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YPe,data:{}};var kE={passive:!0};function QPe(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=Ts(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,kE)}),s&&l.addEventListener("resize",n.update,kE),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,kE)}),s&&l.removeEventListener("resize",n.update,kE)}}const KPe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:QPe,data:{}};var XPe={left:"right",right:"left",bottom:"top",top:"bottom"};function SC(t){return t.replace(/left|right|bottom|top/g,function(e){return XPe[e]})}var ZPe={start:"end",end:"start"};function MG(t){return t.replace(/start|end/g,function(e){return ZPe[e]})}function G$(t){var e=Ts(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function W$(t){return $v(sp(t)).left+G$(t).scrollLeft}function eRe(t,e){var n=Ts(t),r=sp(t),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=nte();(c||!c&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+W$(t),y:l}}function tRe(t){var e,n=sp(t),r=G$(t),i=(e=t.ownerDocument)==null?void 0:e.body,a=mh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=mh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+W$(t),l=-r.scrollTop;return md(i||n).direction==="rtl"&&(s+=mh(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function q$(t){var e=md(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ste(t){return["html","body","#document"].indexOf(ou(t))>=0?t.ownerDocument.body:gl(t)&&q$(t)?t:ste(_M(t))}function o_(t,e){var n;e===void 0&&(e=[]);var r=ste(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),a=Ts(r),o=i?[a].concat(a.visualViewport||[],q$(r)?r:[]):r,s=e.concat(o);return i?s:s.concat(o_(_M(o)))}function ik(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function nRe(t,e){var n=$v(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function DG(t,e,n){return e===ete?ik(eRe(t,n)):Ph(e)?nRe(e,n):ik(tRe(sp(t)))}function rRe(t){var e=o_(_M(t)),n=["absolute","fixed"].indexOf(md(t).position)>=0,r=n&&gl(t)?Sw(t):t;return Ph(r)?e.filter(function(i){return Ph(i)&&rte(i,r)&&ou(i)!=="body"}):[]}function iRe(t,e,n,r){var i=e==="clippingParents"?rRe(t):[].concat(e),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=DG(t,c,r);return l.top=mh(u.top,l.top),l.right=FT(u.right,l.right),l.bottom=FT(u.bottom,l.bottom),l.left=mh(u.left,l.left),l},DG(t,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function lte(t){var e=t.reference,n=t.element,r=t.placement,i=r?Xc(r):null,a=r?Bv(r):null,o=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(i){case Ho:l={x:o,y:e.y-n.height};break;case El:l={x:o,y:e.y+e.height};break;case Sl:l={x:e.x+e.width,y:s};break;case Vo:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var c=i?j$(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case kv:l[c]=l[c]-(e[u]/2-n[u]/2);break;case n1:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function r1(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,a=n.strategy,o=a===void 0?t.strategy:a,s=n.boundary,l=s===void 0?SPe:s,c=n.rootBoundary,u=c===void 0?ete:c,d=n.elementContext,f=d===void 0?ky:d,p=n.altBoundary,h=p===void 0?!1:p,v=n.padding,b=v===void 0?0:v,g=ate(typeof b!="number"?b:ote(b,Ew)),y=f===ky?CPe:ky,w=t.rects.popper,x=t.elements[h?y:f],S=iRe(Ph(x)?x:x.contextElement||sp(t.elements.popper),l,u,o),T=$v(t.elements.reference),I=lte({reference:T,element:w,strategy:"absolute",placement:i}),P=ik(Object.assign({},w,I)),M=f===ky?P:T,N={top:S.top-M.top+g.top,bottom:M.bottom-S.bottom+g.bottom,left:S.left-M.left+g.left,right:M.right-S.right+g.right},R=t.modifiersData.offset;if(f===ky&&R){var O=R[i];Object.keys(N).forEach(function(D){var L=[Sl,El].indexOf(D)>=0?1:-1,k=[Ho,El].indexOf(D)>=0?"y":"x";N[D]+=O[k]*L})}return N}function aRe(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?tte:l,u=Bv(r),d=u?s?TG:TG.filter(function(h){return Bv(h)===u}):Ew,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,v){return h[v]=r1(t,{placement:v,boundary:i,rootBoundary:a,padding:o})[Xc(v)],h},{});return Object.keys(p).sort(function(h,v){return p[h]-p[v]})}function oRe(t){if(Xc(t)===H$)return[];var e=SC(t);return[MG(t),e,MG(e)]}function sRe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,v=n.allowedAutoPlacements,b=e.options.placement,g=Xc(b),y=g===b,w=l||(y||!h?[SC(b)]:oRe(b)),x=[b].concat(w).reduce(function(z,ne){return z.concat(Xc(ne)===H$?aRe(e,{placement:ne,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:v}):ne)},[]),S=e.rects.reference,T=e.rects.popper,I=new Map,P=!0,M=x[0],N=0;N=0,k=L?"width":"height",B=r1(e,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),H=L?D?Sl:Vo:D?El:Ho;S[k]>T[k]&&(H=SC(H));var $=SC(H),W=[];if(a&&W.push(B[O]<=0),s&&W.push(B[H]<=0,B[$]<=0),W.every(function(z){return z})){M=R,P=!1;break}I.set(R,W)}if(P)for(var K=h?3:1,le=function(ne){var G=x.find(function(te){var Y=I.get(te);if(Y)return Y.slice(0,ne).every(function(fe){return fe})});if(G)return M=G,"break"},U=K;U>0;U--){var q=le(U);if(q==="break")break}e.placement!==M&&(e.modifiersData[r]._skip=!0,e.placement=M,e.reset=!0)}}const lRe={name:"flip",enabled:!0,phase:"main",fn:sRe,requiresIfExists:["offset"],data:{_skip:!1}};function PG(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function RG(t){return[Ho,Sl,El,Vo].some(function(e){return t[e]>=0})}function cRe(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=r1(e,{elementContext:"reference"}),s=r1(e,{altBoundary:!0}),l=PG(o,r),c=PG(s,i,a),u=RG(l),d=RG(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const uRe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cRe};function dRe(t,e,n){var r=Xc(t),i=[Vo,Ho].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Vo,Sl].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function fRe(t){var e=t.state,n=t.options,r=t.name,i=n.offset,a=i===void 0?[0,0]:i,o=tte.reduce(function(u,d){return u[d]=dRe(d,e.rects,a),u},{}),s=o[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}const pRe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fRe};function hRe(t){var e=t.state,n=t.name;e.modifiersData[n]=lte({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const mRe={name:"popperOffsets",enabled:!0,phase:"read",fn:hRe,data:{}};function gRe(t){return t==="x"?"y":"x"}function vRe(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,v=h===void 0?0:h,b=r1(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=Xc(e.placement),y=Bv(e.placement),w=!y,x=j$(g),S=gRe(x),T=e.modifiersData.popperOffsets,I=e.rects.reference,P=e.rects.popper,M=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,N=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),R=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,O={x:0,y:0};if(T){if(a){var D,L=x==="y"?Ho:Vo,k=x==="y"?El:Sl,B=x==="y"?"height":"width",H=T[x],$=H+b[L],W=H-b[k],K=p?-P[B]/2:0,le=y===kv?I[B]:P[B],U=y===kv?-P[B]:-I[B],q=e.elements.arrow,z=p&&q?z$(q):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ite(),G=ne[L],te=ne[k],Y=a_(0,I[B],z[B]),fe=w?I[B]/2-K-Y-G-N.mainAxis:le-Y-G-N.mainAxis,pe=w?-I[B]/2+K+Y+te+N.mainAxis:U+Y+te+N.mainAxis,de=e.elements.arrow&&Sw(e.elements.arrow),se=de?x==="y"?de.clientTop||0:de.clientLeft||0:0,me=(D=R==null?void 0:R[x])!=null?D:0,Z=H+fe-me-se,_e=H+pe-me,Me=a_(p?FT($,Z):$,H,p?mh(W,_e):W);T[x]=Me,O[x]=Me-H}if(s){var Ne,ge=x==="x"?Ho:Vo,ee=x==="x"?El:Sl,Q=T[S],V=S==="y"?"height":"width",j=Q+b[ge],ye=Q-b[ee],ae=[Ho,Vo].indexOf(g)!==-1,Ee=(Ne=R==null?void 0:R[S])!=null?Ne:0,Pe=ae?j:Q-I[V]-P[V]-Ee+N.altAxis,We=ae?Q+I[V]+P[V]-Ee-N.altAxis:ye,Fe=p&&ae?HPe(Pe,Q,We):a_(p?Pe:j,Q,p?We:ye);T[S]=Fe,O[S]=Fe-Q}e.modifiersData[r]=O}}const yRe={name:"preventOverflow",enabled:!0,phase:"main",fn:vRe,requiresIfExists:["offset"]};function bRe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function _Re(t){return t===Ts(t)||!gl(t)?G$(t):bRe(t)}function wRe(t){var e=t.getBoundingClientRect(),n=Fv(e.width)/t.offsetWidth||1,r=Fv(e.height)/t.offsetHeight||1;return n!==1||r!==1}function xRe(t,e,n){n===void 0&&(n=!1);var r=gl(e),i=gl(e)&&wRe(e),a=sp(e),o=$v(t,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ou(e)!=="body"||q$(a))&&(s=_Re(e)),gl(e)?(l=$v(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=W$(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function ERe(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&i(l)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||i(a)}),r}function SRe(t){var e=ERe(t);return LPe.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function CRe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function TRe(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var OG={placement:"bottom",modifiers:[],strategy:"absolute"};function NG(){for(var t=arguments.length,e=new Array(t),n=0;n{a||s(MRe(i)||document.body)},[i,a]),xi(()=>{if(o&&!a)return DT(n,o),()=>{DT(n,null)}},[n,o,a]),a){if(C.isValidElement(r)){const c={ref:l};return C.cloneElement(r,c)}return be(C.Fragment,{children:r})}return be(C.Fragment,{children:o&&ld.createPortal(r,o)})}),ute=DRe;function PRe(t){return Et("MuiPopper",t)}St("MuiPopper",["root"]);const RRe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ORe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function NRe(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function ak(t){return typeof t=="function"?t():t}function LRe(t){return t.nodeType!==void 0}const kRe=t=>{const{classes:e}=t;return xt({root:["root"]},PRe,e)},FRe={},$Re=C.forwardRef(function(e,n){var r;const{anchorEl:i,children:a,direction:o,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:v}=e,b=wt(e,RRe),g=C.useRef(null),y=jn(g,n),w=C.useRef(null),x=jn(w,f),S=C.useRef(x);xi(()=>{S.current=x},[x]),C.useImperativeHandle(f,()=>w.current,[]);const T=NRe(u,o),[I,P]=C.useState(T),[M,N]=C.useState(ak(i));C.useEffect(()=>{w.current&&w.current.forceUpdate()}),C.useEffect(()=>{i&&N(ak(i))},[i]),xi(()=>{if(!M||!c)return;const k=$=>{P($.placement)};let B=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{k($)}}];l!=null&&(B=B.concat(l)),d&&d.modifiers!=null&&(B=B.concat(d.modifiers));const H=cte(M,g.current,ie({placement:T},d,{modifiers:B}));return S.current(H),()=>{H.destroy(),S.current(null)}},[M,s,l,c,d,T]);const R={placement:I};v!==null&&(R.TransitionProps=v);const O=kRe(e),D=(r=h.root)!=null?r:"div",L=mc({elementType:D,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:O.root});return be(D,ie({},L,{children:typeof a=="function"?a(R):a}))}),BRe=C.forwardRef(function(e,n){const{anchorEl:r,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=FRe,popperRef:p,style:h,transition:v=!1,slotProps:b={},slots:g={}}=e,y=wt(e,ORe),[w,x]=C.useState(!0),S=()=>{x(!1)},T=()=>{x(!0)};if(!l&&!u&&(!v||w))return null;let I;if(a)I=a;else if(r){const N=ak(r);I=N&&LRe(N)?Vi(N).body:Vi(null).body}const P=!u&&l&&(!v||w)?"none":void 0,M=v?{in:u,onEnter:S,onExited:T}:void 0;return be(ute,{disablePortal:s,container:I,children:be($Re,ie({anchorEl:r,direction:o,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:g},y,{style:ie({position:"fixed",top:0,left:0,display:P},h),TransitionProps:M,children:i}))})}),URe=BRe,HRe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],VRe=He(URe,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),zRe=C.forwardRef(function(e,n){var r;const i=Xee(),a=kt({props:e,name:"MuiPopper"}),{anchorEl:o,component:s,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:v,popperOptions:b,popperRef:g,transition:y,slots:w,slotProps:x}=a,S=wt(a,HRe),T=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,I=ie({anchorEl:o,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:v,popperOptions:b,popperRef:g,transition:y},S);return be(VRe,ie({as:s,direction:i==null?void 0:i.direction,slots:{root:T},slotProps:x??c},I,{ref:n}))}),jRe=zRe,GRe=Gi(be("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function WRe(t){return Et("MuiChip",t)}const qRe=St("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Vn=qRe,YRe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],JRe=t=>{const{classes:e,disabled:n,size:r,color:i,iconColor:a,onDelete:o,clickable:s,variant:l}=t,c={root:["root",l,n&&"disabled",`size${st(r)}`,`color${st(i)}`,s&&"clickable",s&&`clickableColor${st(i)}`,o&&"deletable",o&&`deletableColor${st(i)}`,`${l}${st(i)}`],label:["label",`label${st(r)}`],avatar:["avatar",`avatar${st(r)}`,`avatarColor${st(i)}`],icon:["icon",`icon${st(r)}`,`iconColor${st(a)}`],deleteIcon:["deleteIcon",`deleteIcon${st(r)}`,`deleteIconColor${st(i)}`,`deleteIcon${st(l)}Color${st(i)}`]};return xt(c,WRe,e)},QRe=He("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:r,iconColor:i,clickable:a,onDelete:o,size:s,variant:l}=n;return[{[`& .${Vn.avatar}`]:e.avatar},{[`& .${Vn.avatar}`]:e[`avatar${st(s)}`]},{[`& .${Vn.avatar}`]:e[`avatarColor${st(r)}`]},{[`& .${Vn.icon}`]:e.icon},{[`& .${Vn.icon}`]:e[`icon${st(s)}`]},{[`& .${Vn.icon}`]:e[`iconColor${st(i)}`]},{[`& .${Vn.deleteIcon}`]:e.deleteIcon},{[`& .${Vn.deleteIcon}`]:e[`deleteIcon${st(s)}`]},{[`& .${Vn.deleteIcon}`]:e[`deleteIconColor${st(r)}`]},{[`& .${Vn.deleteIcon}`]:e[`deleteIcon${st(l)}Color${st(r)}`]},e.root,e[`size${st(s)}`],e[`color${st(r)}`],a&&e.clickable,a&&r!=="default"&&e[`clickableColor${st(r)})`],o&&e.deletable,o&&r!=="default"&&e[`deletableColor${st(r)}`],e[l],e[`${l}${st(r)}`]]}})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return ie({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Vn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Vn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)},[`& .${Vn.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${Vn.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${Vn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${Vn.icon}`]:ie({marginLeft:5,marginRight:-6},e.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},e.iconColor===e.color&&ie({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},e.color!=="default"&&{color:"inherit"})),[`& .${Vn.deleteIcon}`]:ie({WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:yn(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:yn(t.palette.text.primary,.4)}},e.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},e.color!=="default"&&{color:t.vars?`rgba(${t.vars.palette[e.color].contrastTextChannel} / 0.7)`:yn(t.palette[e.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e.color].contrastText}})},e.size==="small"&&{height:24},e.color!=="default"&&{backgroundColor:(t.vars||t).palette[e.color].main,color:(t.vars||t).palette[e.color].contrastText},e.onDelete&&{[`&.${Vn.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:yn(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},e.onDelete&&e.color!=="default"&&{[`&.${Vn.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}})},({theme:t,ownerState:e})=>ie({},e.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:yn(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${Vn.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:yn(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},e.clickable&&e.color!=="default"&&{[`&:hover, &.${Vn.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}}),({theme:t,ownerState:e})=>ie({},e.variant==="outlined"&&{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${Vn.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Vn.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${Vn.avatar}`]:{marginLeft:4},[`& .${Vn.avatarSmall}`]:{marginLeft:2},[`& .${Vn.icon}`]:{marginLeft:4},[`& .${Vn.iconSmall}`]:{marginLeft:2},[`& .${Vn.deleteIcon}`]:{marginRight:5},[`& .${Vn.deleteIconSmall}`]:{marginRight:3}},e.variant==="outlined"&&e.color!=="default"&&{color:(t.vars||t).palette[e.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.7)`:yn(t.palette[e.color].main,.7)}`,[`&.${Vn.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:yn(t.palette[e.color].main,t.palette.action.hoverOpacity)},[`&.${Vn.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.focusOpacity})`:yn(t.palette[e.color].main,t.palette.action.focusOpacity)},[`& .${Vn.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.7)`:yn(t.palette[e.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e.color].main}}})),KRe=He("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:r}=n;return[e.label,e[`label${st(r)}`]]}})(({ownerState:t})=>ie({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},t.variant==="outlined"&&{paddingLeft:11,paddingRight:11},t.size==="small"&&{paddingLeft:8,paddingRight:8},t.size==="small"&&t.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function LG(t){return t.key==="Backspace"||t.key==="Delete"}const XRe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiChip"}),{avatar:i,className:a,clickable:o,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:p,onDelete:h,onKeyDown:v,onKeyUp:b,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:x=!1}=r,S=wt(r,YRe),T=C.useRef(null),I=jn(T,n),P=W=>{W.stopPropagation(),h&&h(W)},M=W=>{W.currentTarget===W.target&&LG(W)&&W.preventDefault(),v&&v(W)},N=W=>{W.currentTarget===W.target&&(h&&LG(W)?h(W):W.key==="Escape"&&T.current&&T.current.blur()),b&&b(W)},R=o!==!1&&p?!0:o,O=R||h?Cs:l||"div",D=ie({},r,{component:O,disabled:u,size:g,color:s,iconColor:C.isValidElement(d)&&d.props.color||s,onDelete:!!h,clickable:R,variant:y}),L=JRe(D),k=O===Cs?ie({component:l||"div",focusVisibleClassName:L.focusVisible},h&&{disableRipple:!0}):{};let B=null;h&&(B=c&&C.isValidElement(c)?C.cloneElement(c,{className:yt(c.props.className,L.deleteIcon),onClick:P}):be(GRe,{className:yt(L.deleteIcon),onClick:P}));let H=null;i&&C.isValidElement(i)&&(H=C.cloneElement(i,{className:yt(L.avatar,i.props.className)}));let $=null;return d&&C.isValidElement(d)&&($=C.cloneElement(d,{className:yt(L.icon,d.props.className)})),Vt(QRe,ie({as:O,className:yt(L.root,a),disabled:R&&u?!0:void 0,onClick:p,onKeyDown:M,onKeyUp:N,ref:I,tabIndex:x&&u?-1:w,ownerState:D},k,S,{children:[H||$,be(KRe,{className:yt(L.label),ownerState:D,children:f}),B]}))}),dte=XRe,ZRe=["onChange","maxRows","minRows","style","value"];function FE(t){return parseInt(t,10)||0}const eOe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tOe(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const nOe=C.forwardRef(function(e,n){const{onChange:r,maxRows:i,minRows:a=1,style:o,value:s}=e,l=wt(e,ZRe),{current:c}=C.useRef(s!=null),u=C.useRef(null),d=jn(n,u),f=C.useRef(null),p=C.useRef(null),h=C.useCallback(()=>{const g=u.current,w=wl(g).getComputedStyle(g);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=p.current;x.style.width=w.width,x.value=g.value||e.placeholder||"x",x.value.slice(-1)===` `&&(x.value+=" ");const S=w.boxSizing,T=FE(w.paddingBottom)+FE(w.paddingTop),I=FE(w.borderBottomWidth)+FE(w.borderTopWidth),P=x.scrollHeight;x.value="x";const M=x.scrollHeight;let N=P;a&&(N=Math.max(Number(a)*M,N)),i&&(N=Math.min(Number(i)*M,N)),N=Math.max(N,M);const R=N+(S==="border-box"?T+I:0),O=Math.abs(N-P)<=1;return{outerHeightStyle:R,overflowing:O}},[i,a,e.placeholder]),v=C.useCallback(()=>{const g=h();if(tOe(g))return;const y=g.outerHeightStyle,w=u.current;f.current!==y&&(f.current=y,w.style.height=`${y}px`),w.style.overflow=g.overflowing?"hidden":""},[h]);xi(()=>{const g=()=>{v()};let y;const w=y0(g),x=u.current,S=wl(x);S.addEventListener("resize",w);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(g),T.observe(x)),()=>{w.clear(),cancelAnimationFrame(y),S.removeEventListener("resize",w),T&&T.disconnect()}},[h,v]),xi(()=>{v()});const b=g=>{c||v(),r&&r(g)};return Vt(C.Fragment,{children:[be("textarea",ie({value:s,onChange:b,ref:d,rows:a,style:o},l)),be("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:ie({},eOe.shadow,o,{paddingTop:0,paddingBottom:0})})]})}),rOe=nOe;function lp({props:t,states:e,muiFormControl:n}){return e.reduce((r,i)=>(r[i]=t[i],n&&typeof t[i]>"u"&&(r[i]=n[i]),r),{})}const iOe=C.createContext(void 0),wM=iOe;function hu(){return C.useContext(wM)}function fte(t){return be(VIe,ie({},t,{defaultTheme:oM,themeId:bw}))}function kG(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function $T(t,e=!1){return t&&(kG(t.value)&&t.value!==""||e&&kG(t.defaultValue)&&t.defaultValue!=="")}function aOe(t){return t.startAdornment}function oOe(t){return Et("MuiInputBase",t)}const sOe=St("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Uv=sOe,lOe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],xM=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${st(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},EM=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},cOe=t=>{const{classes:e,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:h}=t,v={root:["root",`color${st(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",f&&f!=="medium"&&`size${st(f)}`,u&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return xt(v,oOe,e)},SM=He("div",{name:"MuiInputBase",slot:"Root",overridesResolver:xM})(({theme:t,ownerState:e})=>ie({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Uv.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&ie({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),CM=He("input",{name:"MuiInputBase",slot:"Input",overridesResolver:EM})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light",r=ie({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),i={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return ie({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Uv.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Uv.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),uOe=be(fte,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),dOe=C.forwardRef(function(e,n){var r;const i=kt({props:e,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:v=!1,id:b,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:x,minRows:S,multiline:T=!1,name:I,onBlur:P,onChange:M,onClick:N,onFocus:R,onKeyDown:O,onKeyUp:D,placeholder:L,readOnly:k,renderSuffix:B,rows:H,slotProps:$={},slots:W={},startAdornment:K,type:le="text",value:U}=i,q=wt(i,lOe),z=y.value!=null?y.value:U,{current:ne}=C.useRef(z!=null),G=C.useRef(),te=C.useCallback(Fe=>{},[]),Y=jn(G,w,y.ref,te),[fe,pe]=C.useState(!1),de=hu(),se=lp({props:i,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});se.focused=de?de.focused:fe,C.useEffect(()=>{!de&&f&&fe&&(pe(!1),P&&P())},[de,f,fe,P]);const me=de&&de.onFilled,Z=de&&de.onEmpty,_e=C.useCallback(Fe=>{$T(Fe)?me&&me():Z&&Z()},[me,Z]);xi(()=>{ne&&_e({value:z})},[z,_e,ne]);const Me=Fe=>{if(se.disabled){Fe.stopPropagation();return}R&&R(Fe),y.onFocus&&y.onFocus(Fe),de&&de.onFocus?de.onFocus(Fe):pe(!0)},Ne=Fe=>{P&&P(Fe),y.onBlur&&y.onBlur(Fe),de&&de.onBlur?de.onBlur(Fe):pe(!1)},ge=(Fe,...Ae)=>{if(!ne){const he=Fe.target||G.current;if(he==null)throw new Error(pd(1));_e({value:he.value})}y.onChange&&y.onChange(Fe,...Ae),M&&M(Fe,...Ae)};C.useEffect(()=>{_e(G.current)},[]);const ee=Fe=>{G.current&&Fe.currentTarget===Fe.target&&G.current.focus(),N&&N(Fe)};let Q=g,V=y;T&&Q==="input"&&(H?V=ie({type:void 0,minRows:H,maxRows:H},V):V=ie({type:void 0,maxRows:x,minRows:S},V),Q=rOe);const j=Fe=>{_e(Fe.animationName==="mui-auto-fill-cancel"?G.current:{value:"x"})};C.useEffect(()=>{de&&de.setAdornedStart(Boolean(K))},[de,K]);const ye=ie({},i,{color:se.color||"primary",disabled:se.disabled,endAdornment:h,error:se.error,focused:se.focused,formControl:de,fullWidth:v,hiddenLabel:se.hiddenLabel,multiline:T,size:se.size,startAdornment:K,type:le}),ae=cOe(ye),Ee=W.root||c.Root||SM,Pe=$.root||u.root||{},We=W.input||c.Input||CM;return V=ie({},V,(r=$.input)!=null?r:u.input),Vt(C.Fragment,{children:[!p&&uOe,Vt(Ee,ie({},Pe,!Nv(Ee)&&{ownerState:ie({},ye,Pe.ownerState)},{ref:n,onClick:ee},q,{className:yt(ae.root,Pe.className,l,k&&"MuiInputBase-readOnly"),children:[K,be(wM.Provider,{value:null,children:be(We,ie({ownerState:ye,"aria-invalid":se.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:d,disabled:se.disabled,id:b,onAnimationStart:j,name:I,placeholder:L,readOnly:k,required:se.required,rows:H,value:z,onKeyDown:O,onKeyUp:D,type:le},V,!Nv(We)&&{as:Q,ownerState:ie({},ye,V.ownerState)},{ref:Y,className:yt(ae.input,V.className,k&&"MuiInputBase-readOnly"),onBlur:Ne,onChange:ge,onFocus:Me}))}),h,B?B(ie({},se,{startAdornment:K})):null]}))]})}),Y$=dOe;function fOe(t){return Et("MuiInput",t)}const pOe=ie({},Uv,St("MuiInput",["root","underline","input"])),Fy=pOe;function hOe(t){return Et("MuiOutlinedInput",t)}const mOe=ie({},Uv,St("MuiOutlinedInput",["root","notchedOutline","input"])),Ud=mOe;function gOe(t){return Et("MuiFilledInput",t)}const vOe=ie({},Uv,St("MuiFilledInput",["root","underline","input"])),Mp=vOe,yOe=Gi(be("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bOe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],_Oe={entering:{opacity:1},entered:{opacity:1}},wOe=C.forwardRef(function(e,n){const r=Os(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:v,style:b,timeout:g=i,TransitionComponent:y=xw}=e,w=wt(e,bOe),x=C.useRef(null),S=jn(x,s.ref,n),T=L=>k=>{if(L){const B=x.current;k===void 0?L(B):L(B,k)}},I=T(f),P=T((L,k)=>{$$(L);const B=Jf({style:b,timeout:g,easing:l},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",B),L.style.transition=r.transitions.create("opacity",B),u&&u(L,k)}),M=T(d),N=T(v),R=T(L=>{const k=Jf({style:b,timeout:g,easing:l},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",k),L.style.transition=r.transitions.create("opacity",k),p&&p(L)}),O=T(h);return be(y,ie({appear:o,in:c,nodeRef:x,onEnter:P,onEntered:M,onEntering:I,onExit:R,onExited:O,onExiting:N,addEndListener:L=>{a&&a(x.current,L)},timeout:g},w,{children:(L,k)=>C.cloneElement(s,ie({style:ie({opacity:0,visibility:L==="exited"&&!c?"hidden":void 0},_Oe[L],b,s.props.style),ref:S},k))}))}),E0=wOe;function xOe(t){return Et("MuiBackdrop",t)}St("MuiBackdrop",["root","invisible"]);const EOe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],SOe=t=>{const{classes:e,invisible:n}=t;return xt({root:["root",n&&"invisible"]},xOe,e)},COe=He("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})(({ownerState:t})=>ie({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),TOe=C.forwardRef(function(e,n){var r,i,a;const o=kt({props:e,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:d={},invisible:f=!1,open:p,slotProps:h={},slots:v={},TransitionComponent:b=E0,transitionDuration:g}=o,y=wt(o,EOe),w=ie({},o,{component:c,invisible:f}),x=SOe(w),S=(r=h.root)!=null?r:d.root;return be(b,ie({in:p,timeout:g},y,{children:be(COe,ie({"aria-hidden":!0},S,{as:(i=(a=v.root)!=null?a:u.Root)!=null?i:c,className:yt(x.root,l,S==null?void 0:S.className),ownerState:ie({},w,S==null?void 0:S.ownerState),classes:x,ref:n,children:s}))}))}),TM=TOe,AOe=St("MuiBox",["root"]),IOe=AOe,MOe=Oee(),DOe=$ee({themeId:bw,defaultTheme:MOe,defaultClassName:IOe.root,generateClassName:XI.generate}),zr=DOe;function POe(t){return Et("MuiButton",t)}const ROe=St("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),$E=ROe,OOe=C.createContext({}),pte=OOe,NOe=C.createContext(void 0),LOe=NOe,kOe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],FOe=t=>{const{color:e,disableElevation:n,fullWidth:r,size:i,variant:a,classes:o}=t,s={root:["root",a,`${a}${st(e)}`,`size${st(i)}`,`${a}Size${st(i)}`,`color${st(e)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${st(i)}`],endIcon:["icon","endIcon",`iconSize${st(i)}`]},l=xt(s,POe,o);return ie({},o,l)},hte=t=>ie({},t.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},t.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},t.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),$Oe=He(Cs,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${st(n.color)}`],e[`size${st(n.size)}`],e[`${n.variant}Size${st(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(({theme:t,ownerState:e})=>{var n,r;const i=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],a=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return ie({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":ie({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:yn(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:yn(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:yn(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":ie({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${$E.focusVisible}`]:ie({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${$E.disabled}`]:ie({color:(t.vars||t).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${yn(t.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:t.vars?t.vars.palette.text.primary:(n=(r=t.palette).getContrastText)==null?void 0:n.call(r,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${$E.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$E.disabled}`]:{boxShadow:"none"}}),BOe=He("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${st(n.size)}`]]}})(({ownerState:t})=>ie({display:"inherit",marginRight:8,marginLeft:-4},t.size==="small"&&{marginLeft:-2},hte(t))),UOe=He("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${st(n.size)}`]]}})(({ownerState:t})=>ie({display:"inherit",marginRight:-4,marginLeft:8},t.size==="small"&&{marginRight:-2},hte(t))),HOe=C.forwardRef(function(e,n){const r=C.useContext(pte),i=C.useContext(LOe),a=Ov(r,e),o=kt({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:v,fullWidth:b=!1,size:g="medium",startIcon:y,type:w,variant:x="text"}=o,S=wt(o,kOe),T=ie({},o,{color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:b,size:g,type:w,variant:x}),I=FOe(T),P=y&&be(BOe,{className:I.startIcon,ownerState:T,children:y}),M=h&&be(UOe,{className:I.endIcon,ownerState:T,children:h}),N=i||"";return Vt($Oe,ie({ownerState:T,className:yt(r.className,I.root,u,N),component:c,disabled:d,focusRipple:!p,focusVisibleClassName:yt(I.focusVisible,v),ref:n,type:w},S,{classes:I,children:[P,s,M]}))}),ds=HOe;function VOe(t){return Et("MuiCard",t)}St("MuiCard",["root"]);const zOe=["className","raised"],jOe=t=>{const{classes:e}=t;return xt({root:["root"]},VOe,e)},GOe=He(Va,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({overflow:"hidden"})),WOe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiCard"}),{className:i,raised:a=!1}=r,o=wt(r,zOe),s=ie({},r,{raised:a}),l=jOe(s);return be(GOe,ie({className:yt(l.root,i),elevation:a?8:void 0,ref:n,ownerState:s},o))}),Cw=WOe;function qOe(t){return Et("MuiCardContent",t)}St("MuiCardContent",["root"]);const YOe=["className","component"],JOe=t=>{const{classes:e}=t;return xt({root:["root"]},qOe,e)},QOe=He("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),KOe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiCardContent"}),{className:i,component:a="div"}=r,o=wt(r,YOe),s=ie({},r,{component:a}),l=JOe(s);return be(QOe,ie({as:a,className:yt(l.root,i),ownerState:s,ref:n},o))}),mte=KOe;function XOe(t){return Et("MuiCardHeader",t)}const ZOe=St("MuiCardHeader",["root","avatar","action","content","title","subheader"]),FG=ZOe,eNe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],tNe=t=>{const{classes:e}=t;return xt({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},XOe,e)},nNe=He("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(t,e)=>ie({[`& .${FG.title}`]:e.title,[`& .${FG.subheader}`]:e.subheader},e.root)})({display:"flex",alignItems:"center",padding:16}),rNe=He("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(t,e)=>e.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),iNe=He("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(t,e)=>e.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),aNe=He("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(t,e)=>e.content})({flex:"1 1 auto"}),oNe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiCardHeader"}),{action:i,avatar:a,className:o,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:f}=r,p=wt(r,eNe),h=ie({},r,{component:s,disableTypography:l}),v=tNe(h);let b=d;b!=null&&b.type!==$i&&!l&&(b=be($i,ie({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},f,{children:b})));let g=c;return g!=null&&g.type!==$i&&!l&&(g=be($i,ie({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),Vt(nNe,ie({className:yt(v.root,o),as:s,ref:n,ownerState:h},p,{children:[a&&be(rNe,{className:v.avatar,ownerState:h,children:a}),Vt(aNe,{className:v.content,ownerState:h,children:[b,g]}),i&&be(iNe,{className:v.action,ownerState:h,children:i})]}))}),sNe=oNe;function lNe(t){return Et("PrivateSwitchBase",t)}St("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const cNe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],uNe=t=>{const{classes:e,checked:n,disabled:r,edge:i}=t,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${st(i)}`],input:["input"]};return xt(a,lNe,e)},dNe=He(Cs)(({ownerState:t})=>ie({padding:9,borderRadius:"50%"},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12})),fNe=He("input",{shouldForwardProp:Ha})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),pNe=C.forwardRef(function(e,n){const{autoFocus:r,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:p,inputRef:h,name:v,onBlur:b,onChange:g,onFocus:y,readOnly:w,required:x=!1,tabIndex:S,type:T,value:I}=e,P=wt(e,cNe),[M,N]=Wo({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),R=hu(),O=W=>{y&&y(W),R&&R.onFocus&&R.onFocus(W)},D=W=>{b&&b(W),R&&R.onBlur&&R.onBlur(W)},L=W=>{if(W.nativeEvent.defaultPrevented)return;const K=W.target.checked;N(K),g&&g(W,K)};let k=l;R&&typeof k>"u"&&(k=R.disabled);const B=T==="checkbox"||T==="radio",H=ie({},e,{checked:M,disabled:k,disableFocusRipple:c,edge:u}),$=uNe(H);return Vt(dNe,ie({component:"span",className:yt($.root,o),centerRipple:!0,focusRipple:!c,disabled:k,tabIndex:null,role:void 0,onFocus:O,onBlur:D,ownerState:H,ref:n},P,{children:[be(fNe,ie({autoFocus:r,checked:i,defaultChecked:s,className:$.input,disabled:k,id:B?f:void 0,name:v,onChange:L,readOnly:w,ref:h,required:x,ownerState:H,tabIndex:S,type:T},T==="checkbox"&&I===void 0?{}:{value:I},p)),M?a:d]}))}),hNe=pNe,mNe=Gi(be("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),gNe=Gi(be("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),vNe=Gi(be("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function yNe(t){return Et("MuiCheckbox",t)}const bNe=St("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),dO=bNe,_Ne=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],wNe=t=>{const{classes:e,indeterminate:n,color:r,size:i}=t,a={root:["root",n&&"indeterminate",`color${st(r)}`,`size${st(i)}`]},o=xt(a,yNe,e);return ie({},e,o)},xNe=He(hNe,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.indeterminate&&e.indeterminate,e[`size${st(n.size)}`],n.color!=="default"&&e[`color${st(n.color)}`]]}})(({theme:t,ownerState:e})=>ie({color:(t.vars||t).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${e.color==="default"?t.vars.palette.action.activeChannel:t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:yn(e.color==="default"?t.palette.action.active:t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${dO.checked}, &.${dO.indeterminate}`]:{color:(t.vars||t).palette[e.color].main},[`&.${dO.disabled}`]:{color:(t.vars||t).palette.action.disabled}})),ENe=be(gNe,{}),SNe=be(mNe,{}),CNe=be(vNe,{}),TNe=C.forwardRef(function(e,n){var r,i;const a=kt({props:e,name:"MuiCheckbox"}),{checkedIcon:o=ENe,color:s="primary",icon:l=SNe,indeterminate:c=!1,indeterminateIcon:u=CNe,inputProps:d,size:f="medium",className:p}=a,h=wt(a,_Ne),v=c?u:l,b=c?u:o,g=ie({},a,{color:s,indeterminate:c,size:f}),y=wNe(g);return be(xNe,ie({type:"checkbox",inputProps:ie({"data-indeterminate":c},d),icon:C.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:f}),checkedIcon:C.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:f}),ownerState:g,ref:n,className:yt(y.root,p)},h,{classes:y}))}),mo=TNe;function ANe(t){return Et("MuiCircularProgress",t)}St("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const INe=["className","color","disableShrink","size","style","thickness","value","variant"];let AM=t=>t,$G,BG,UG,HG;const Hd=44,MNe=b0($G||($G=AM` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `)),DNe=b0(BG||(BG=AM` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } `)),PNe=t=>{const{classes:e,variant:n,color:r,disableShrink:i}=t,a={root:["root",n,`color${st(r)}`],svg:["svg"],circle:["circle",`circle${st(n)}`,i&&"circleDisableShrink"]};return xt(a,ANe,e)},RNe=He("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${st(n.color)}`]]}})(({ownerState:t,theme:e})=>ie({display:"inline-block"},t.variant==="determinate"&&{transition:e.transitions.create("transform")},t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main}),({ownerState:t})=>t.variant==="indeterminate"&&ZI(UG||(UG=AM` animation: ${0} 1.4s linear infinite; `),MNe)),ONe=He("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),NNe=He("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${st(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(({ownerState:t,theme:e})=>ie({stroke:"currentColor"},t.variant==="determinate"&&{transition:e.transitions.create("stroke-dashoffset")},t.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink&&ZI(HG||(HG=AM` animation: ${0} 1.4s ease-in-out infinite; `),DNe)),LNe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:o=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=r,f=wt(r,INe),p=ie({},r,{color:a,disableShrink:o,size:s,thickness:c,value:u,variant:d}),h=PNe(p),v={},b={},g={};if(d==="determinate"){const y=2*Math.PI*((Hd-c)/2);v.strokeDasharray=y.toFixed(3),g["aria-valuenow"]=Math.round(u),v.strokeDashoffset=`${((100-u)/100*y).toFixed(3)}px`,b.transform="rotate(-90deg)"}return be(RNe,ie({className:yt(h.root,i),style:ie({width:s,height:s},b,l),ownerState:p,ref:n,role:"progressbar"},g,f,{children:be(ONe,{className:h.svg,ownerState:p,viewBox:`${Hd/2} ${Hd/2} ${Hd} ${Hd}`,children:be(NNe,{className:h.circle,style:v,ownerState:p,cx:Hd,cy:Hd,r:(Hd-c)/2,fill:"none",strokeWidth:c})})}))}),IM=LNe,kNe=hMe({createStyledComponent:He("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`maxWidth${st(String(n.maxWidth))}`],n.fixed&&e.fixed,n.disableGutters&&e.disableGutters]}}),useThemeProps:t=>kt({props:t,name:"MuiContainer"})}),gte=kNe,FNe=(t,e)=>ie({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!t.vars&&{colorScheme:t.palette.mode}),$Ne=t=>ie({color:(t.vars||t).palette.text.primary},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),BNe=(t,e=!1)=>{var n;const r={};e&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([o,s])=>{var l;r[t.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=ie({html:FNe(t,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:ie({margin:0},$Ne(t),{"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}})},r);const a=(n=t.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function J$(t){const e=kt({props:t,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=e;return Vt(C.Fragment,{children:[be(fte,{styles:i=>BNe(i,r)}),n]})}function UNe(t){const e=Vi(t);return e.body===t?wl(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function s_(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function VG(t){return parseInt(wl(t).getComputedStyle(t).paddingRight,10)||0}function HNe(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function zG(t,e,n,r,i){const a=[e,n,...r];[].forEach.call(t.children,o=>{const s=a.indexOf(o)===-1,l=!HNe(o);s&&l&&s_(o,i)})}function fO(t,e){let n=-1;return t.some((r,i)=>e(r)?(n=i,!0):!1),n}function VNe(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(UNe(r)){const o=aee(Vi(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${VG(r)+o}px`;const s=Vi(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${VG(l)+o}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Vi(r).body;else{const o=r.parentElement,s=wl(r);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function zNe(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class jNe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&s_(e.modalRef,!1);const i=zNe(n);zG(n,e.mount,e.modalRef,i,!0);const a=fO(this.containers,o=>o.container===n);return a!==-1?(this.containers[a].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:i}),r)}mount(e,n){const r=fO(this.containers,a=>a.modals.indexOf(e)!==-1),i=this.containers[r];i.restore||(i.restore=VNe(i,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const i=fO(this.containers,o=>o.modals.indexOf(e)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&s_(e.modalRef,n),zG(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&s_(o.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const GNe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function WNe(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function qNe(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function YNe(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||qNe(t))}function JNe(t){const e=[],n=[];return Array.from(t.querySelectorAll(GNe)).forEach((r,i)=>{const a=WNe(r);a===-1||!YNe(r)||(a===0?e.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(e)}function QNe(){return!0}function vte(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=JNe,isEnabled:o=QNe,open:s}=t,l=C.useRef(!1),c=C.useRef(null),u=C.useRef(null),d=C.useRef(null),f=C.useRef(null),p=C.useRef(!1),h=C.useRef(null),v=jn(e.ref,h),b=C.useRef(null);C.useEffect(()=>{!s||!h.current||(p.current=!n)},[n,s]),C.useEffect(()=>{if(!s||!h.current)return;const w=Vi(h.current);return h.current.contains(w.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),C.useEffect(()=>{if(!s||!h.current)return;const w=Vi(h.current),x=I=>{b.current=I,!(r||!o()||I.key!=="Tab")&&w.activeElement===h.current&&I.shiftKey&&(l.current=!0,u.current&&u.current.focus())},S=()=>{const I=h.current;if(I===null)return;if(!w.hasFocus()||!o()||l.current){l.current=!1;return}if(I.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let P=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(P=a(h.current)),P.length>0){var M,N;const R=Boolean(((M=b.current)==null?void 0:M.shiftKey)&&((N=b.current)==null?void 0:N.key)==="Tab"),O=P[0],D=P[P.length-1];typeof O!="string"&&typeof D!="string"&&(R?D.focus():O.focus())}else I.focus()};w.addEventListener("focusin",S),w.addEventListener("keydown",x,!0);const T=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(T),w.removeEventListener("focusin",S),w.removeEventListener("keydown",x,!0)}},[n,r,i,o,s,a]);const g=w=>{d.current===null&&(d.current=w.relatedTarget),p.current=!0,f.current=w.target;const x=e.props.onFocus;x&&x(w)},y=w=>{d.current===null&&(d.current=w.relatedTarget),p.current=!0};return Vt(C.Fragment,{children:[be("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),C.cloneElement(e,{ref:v,onFocus:g}),be("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}function KNe(t){return typeof t=="function"?t():t}function XNe(t){return t?t.props.hasOwnProperty("in"):!1}const ZNe=new jNe;function e2e(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=ZNe,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=t,f=C.useRef({}),p=C.useRef(null),h=C.useRef(null),v=jn(h,d),[b,g]=C.useState(!u),y=XNe(l);let w=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(w=!1);const x=()=>Vi(p.current),S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{i.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},I=Lt(()=>{const B=KNe(e)||x().body;i.add(S(),B),h.current&&T()}),P=C.useCallback(()=>i.isTopModal(S()),[i]),M=Lt(B=>{p.current=B,B&&(u&&P()?T():h.current&&s_(h.current,w))}),N=C.useCallback(()=>{i.remove(S(),w)},[w,i]);C.useEffect(()=>()=>{N()},[N]),C.useEffect(()=>{u?I():(!y||!a)&&N()},[u,N,y,a,I]);const R=B=>H=>{var $;($=B.onKeyDown)==null||$.call(B,H),!(H.key!=="Escape"||H.which===229||!P())&&(n||(H.stopPropagation(),c&&c(H,"escapeKeyDown")))},O=B=>H=>{var $;($=B.onClick)==null||$.call(B,H),H.target===H.currentTarget&&c&&c(H,"backdropClick")};return{getRootProps:(B={})=>{const H=uee(t);delete H.onTransitionEnter,delete H.onTransitionExited;const $=ie({},H,B);return ie({role:"presentation"},$,{onKeyDown:R($),ref:v})},getBackdropProps:(B={})=>{const H=B;return ie({"aria-hidden":!0},H,{onClick:O(H),open:u})},getTransitionProps:()=>{const B=()=>{g(!1),o&&o()},H=()=>{g(!0),s&&s(),a&&N()};return{onEnter:YL(B,l==null?void 0:l.props.onEnter),onExited:YL(H,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:M,isTopModal:P,exited:b,hasTransition:y}}function t2e(t){return Et("MuiModal",t)}St("MuiModal",["root","hidden","backdrop"]);const n2e=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],r2e=t=>{const{open:e,exited:n,classes:r}=t;return xt({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},t2e,r)},i2e=He("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(({theme:t,ownerState:e})=>ie({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),a2e=He(TM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),o2e=C.forwardRef(function(e,n){var r,i,a,o,s,l;const c=kt({name:"MuiModal",props:e}),{BackdropComponent:u=a2e,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:h,container:v,component:b,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:T=!1,disableRestoreFocus:I=!1,disableScrollLock:P=!1,hideBackdrop:M=!1,keepMounted:N=!1,onBackdropClick:R,open:O,slotProps:D,slots:L}=c,k=wt(c,n2e),B=ie({},c,{closeAfterTransition:p,disableAutoFocus:w,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:T,disableRestoreFocus:I,disableScrollLock:P,hideBackdrop:M,keepMounted:N}),{getRootProps:H,getBackdropProps:$,getTransitionProps:W,portalRef:K,isTopModal:le,exited:U,hasTransition:q}=e2e(ie({},B,{rootRef:n})),z=ie({},B,{exited:U}),ne=r2e(z),G={};if(h.props.tabIndex===void 0&&(G.tabIndex="-1"),q){const{onEnter:me,onExited:Z}=W();G.onEnter=me,G.onExited=Z}const te=(r=(i=L==null?void 0:L.root)!=null?i:g.Root)!=null?r:i2e,Y=(a=(o=L==null?void 0:L.backdrop)!=null?o:g.Backdrop)!=null?a:u,fe=(s=D==null?void 0:D.root)!=null?s:y.root,pe=(l=D==null?void 0:D.backdrop)!=null?l:y.backdrop,de=mc({elementType:te,externalSlotProps:fe,externalForwardedProps:k,getSlotProps:H,additionalProps:{ref:n,as:b},ownerState:z,className:yt(f,fe==null?void 0:fe.className,ne==null?void 0:ne.root,!z.open&&z.exited&&(ne==null?void 0:ne.hidden))}),se=mc({elementType:Y,externalSlotProps:pe,additionalProps:d,getSlotProps:me=>$(ie({},me,{onClick:Z=>{R&&R(Z),me!=null&&me.onClick&&me.onClick(Z)}})),className:yt(pe==null?void 0:pe.className,d==null?void 0:d.className,ne==null?void 0:ne.backdrop),ownerState:z});return!N&&!O&&(!q||U)?null:be(ute,{ref:K,container:v,disablePortal:T,children:Vt(te,ie({},de,{children:[!M&&u?be(Y,ie({},se)):null,be(vte,{disableEnforceFocus:x,disableAutoFocus:w,disableRestoreFocus:I,isEnabled:le,open:O,children:C.cloneElement(h,G)})]}))})}),Q$=o2e;function s2e(t){return Et("MuiDialog",t)}const l2e=St("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),l_=l2e,c2e=C.createContext({}),yte=c2e,u2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],d2e=He(TM,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),f2e=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=t,o={root:["root"],container:["container",`scroll${st(n)}`],paper:["paper",`paperScroll${st(n)}`,`paperWidth${st(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return xt(o,s2e,e)},p2e=He(Q$,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),h2e=He("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${st(n.scroll)}`]]}})(({ownerState:t})=>ie({height:"100%","@media print":{height:"auto"},outline:0},t.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},t.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),m2e=He(Va,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${st(n.scroll)}`],e[`paperWidth${st(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(({theme:t,ownerState:e})=>ie({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},e.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},e.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!e.maxWidth&&{maxWidth:"calc(100% - 64px)"},e.maxWidth==="xs"&&{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${l_.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.maxWidth&&e.maxWidth!=="xs"&&{maxWidth:`${t.breakpoints.values[e.maxWidth]}${t.breakpoints.unit}`,[`&.${l_.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.fullWidth&&{width:"calc(100% - 64px)"},e.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${l_.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),g2e=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiDialog"}),i=Os(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:h=!1,maxWidth:v="sm",onBackdropClick:b,onClick:g,onClose:y,open:w,PaperComponent:x=Va,PaperProps:S={},scroll:T="paper",TransitionComponent:I=E0,transitionDuration:P=a,TransitionProps:M}=r,N=wt(r,u2e),R=ie({},r,{disableEscapeKeyDown:f,fullScreen:p,fullWidth:h,maxWidth:v,scroll:T}),O=f2e(R),D=C.useRef(),L=$=>{D.current=$.target===$.currentTarget},k=$=>{g&&g($),D.current&&(D.current=null,b&&b($),y&&y($,"backdropClick"))},B=ap(s),H=C.useMemo(()=>({titleId:B}),[B]);return be(p2e,ie({className:yt(O.root,d),closeAfterTransition:!0,components:{Backdrop:d2e},componentsProps:{backdrop:ie({transitionDuration:P,as:l},c)},disableEscapeKeyDown:f,onClose:y,open:w,ref:n,onClick:k,ownerState:R},N,{children:be(I,ie({appear:!0,in:w,timeout:P,role:"presentation"},M,{children:be(h2e,{className:yt(O.container),onMouseDown:L,ownerState:R,children:be(m2e,ie({as:x,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":B},S,{className:yt(O.paper,S.className),ownerState:R,children:be(yte.Provider,{value:H,children:u})}))})}))}))}),Tw=g2e;function v2e(t){return Et("MuiDialogActions",t)}St("MuiDialogActions",["root","spacing"]);const y2e=["className","disableSpacing"],b2e=t=>{const{classes:e,disableSpacing:n}=t;return xt({root:["root",!n&&"spacing"]},v2e,e)},_2e=He("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})(({ownerState:t})=>ie({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),w2e=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=r,o=wt(r,y2e),s=ie({},r,{disableSpacing:a}),l=b2e(s);return be(_2e,ie({className:yt(l.root,i),ownerState:s,ref:n},o))}),bte=w2e;function x2e(t){return Et("MuiDialogContent",t)}St("MuiDialogContent",["root","dividers"]);function E2e(t){return Et("MuiDialogTitle",t)}const S2e=St("MuiDialogTitle",["root"]),C2e=S2e,T2e=["className","dividers"],A2e=t=>{const{classes:e,dividers:n}=t;return xt({root:["root",n&&"dividers"]},x2e,e)},I2e=He("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(({theme:t,ownerState:e})=>ie({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},e.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${C2e.root} + &`]:{paddingTop:0}})),M2e=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=r,o=wt(r,T2e),s=ie({},r,{dividers:a}),l=A2e(s);return be(I2e,ie({className:yt(l.root,i),ownerState:s,ref:n},o))}),MM=M2e;function D2e(t){return Et("MuiDialogContentText",t)}St("MuiDialogContentText",["root"]);const P2e=["children","className"],R2e=t=>{const{classes:e}=t,r=xt({root:["root"]},D2e,e);return ie({},e,r)},O2e=He($i,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),N2e=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiDialogContentText"}),{className:i}=r,a=wt(r,P2e),o=R2e(a);return be(O2e,ie({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:yt(o.root,i)},r,{classes:o}))}),L2e=N2e,k2e=["className","id"],F2e=t=>{const{classes:e}=t;return xt({root:["root"]},E2e,e)},$2e=He($i,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),B2e=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiDialogTitle"}),{className:i,id:a}=r,o=wt(r,k2e),s=r,l=F2e(s),{titleId:c=a}=C.useContext(yte);return be($2e,ie({component:"h2",className:yt(l.root,i),ownerState:s,ref:n,variant:"h6",id:a??c},o))}),K$=B2e;function U2e(t){return Et("MuiDivider",t)}const H2e=St("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),jG=H2e,V2e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],z2e=t=>{const{absolute:e,children:n,classes:r,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=t;return xt({root:["root",e&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},U2e,r)},j2e=He("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.absolute&&e.absolute,e[n.variant],n.light&&e.light,n.orientation==="vertical"&&e.vertical,n.flexItem&&e.flexItem,n.children&&e.withChildren,n.children&&n.orientation==="vertical"&&e.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&e.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&e.textAlignLeft]}})(({theme:t,ownerState:e})=>ie({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},e.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},e.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:yn(t.palette.divider,.08)},e.variant==="inset"&&{marginLeft:72},e.variant==="middle"&&e.orientation==="horizontal"&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},e.variant==="middle"&&e.orientation==="vertical"&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},e.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},e.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:t})=>ie({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:t,ownerState:e})=>ie({},e.children&&e.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}),({theme:t,ownerState:e})=>ie({},e.children&&e.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:t})=>ie({},t.textAlign==="right"&&t.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},t.textAlign==="left"&&t.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),G2e=He("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.wrapper,n.orientation==="vertical"&&e.wrapperVertical]}})(({theme:t,ownerState:e})=>ie({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},e.orientation==="vertical"&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})),_te=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth"}=r,h=wt(r,V2e),v=ie({},r,{absolute:i,component:s,flexItem:l,light:c,orientation:u,role:d,textAlign:f,variant:p}),b=z2e(v);return be(j2e,ie({as:s,className:yt(b.root,o),role:d,ref:n,ownerState:v},h,{children:a?be(G2e,{className:b.wrapper,ownerState:v,children:a}):null}))});_te.muiSkipListHighlight=!0;const Rh=_te,W2e=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function q2e(t,e,n){const r=e.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=wl(e);let o;if(e.fakeTransform)o=e.fakeTransform;else{const c=a.getComputedStyle(e);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return t==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:t==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:t==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Y2e(t){return typeof t=="function"?t():t}function BE(t,e,n){const r=Y2e(n),i=q2e(t,e,r);i&&(e.style.webkitTransform=i,e.style.transform=i)}const J2e=C.forwardRef(function(e,n){const r=Os(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:u="down",easing:d=i,in:f,onEnter:p,onEntered:h,onEntering:v,onExit:b,onExited:g,onExiting:y,style:w,timeout:x=a,TransitionComponent:S=xw}=e,T=wt(e,W2e),I=C.useRef(null),P=jn(l.ref,I,n),M=$=>W=>{$&&(W===void 0?$(I.current):$(I.current,W))},N=M(($,W)=>{BE(u,$,c),$$($),p&&p($,W)}),R=M(($,W)=>{const K=Jf({timeout:x,style:w,easing:d},{mode:"enter"});$.style.webkitTransition=r.transitions.create("-webkit-transform",ie({},K)),$.style.transition=r.transitions.create("transform",ie({},K)),$.style.webkitTransform="none",$.style.transform="none",v&&v($,W)}),O=M(h),D=M(y),L=M($=>{const W=Jf({timeout:x,style:w,easing:d},{mode:"exit"});$.style.webkitTransition=r.transitions.create("-webkit-transform",W),$.style.transition=r.transitions.create("transform",W),BE(u,$,c),b&&b($)}),k=M($=>{$.style.webkitTransition="",$.style.transition="",g&&g($)}),B=$=>{o&&o(I.current,$)},H=C.useCallback(()=>{I.current&&BE(u,I.current,c)},[u,c]);return C.useEffect(()=>{if(f||u==="down"||u==="right")return;const $=y0(()=>{I.current&&BE(u,I.current,c)}),W=wl(I.current);return W.addEventListener("resize",$),()=>{$.clear(),W.removeEventListener("resize",$)}},[u,f,c]),C.useEffect(()=>{f||H()},[f,H]),be(S,ie({nodeRef:I,onEnter:N,onEntered:O,onEntering:R,onExit:L,onExited:k,onExiting:D,addEndListener:B,appear:s,in:f,timeout:x},T,{children:($,W)=>C.cloneElement(l,ie({ref:P,style:ie({visibility:$==="exited"&&!f?"hidden":void 0},w,l.props.style)},W))}))}),Q2e=J2e;function K2e(t){return Et("MuiDrawer",t)}St("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const X2e=["BackdropProps"],Z2e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],wte=(t,e)=>{const{ownerState:n}=t;return[e.root,(n.variant==="permanent"||n.variant==="persistent")&&e.docked,e.modal]},eLe=t=>{const{classes:e,anchor:n,variant:r}=t,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${st(n)}`,r!=="temporary"&&`paperAnchorDocked${st(n)}`]};return xt(i,K2e,e)},tLe=He(Q$,{name:"MuiDrawer",slot:"Root",overridesResolver:wte})(({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer})),GG=He("div",{shouldForwardProp:Ha,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:wte})({flex:"0 0 auto"}),nLe=He(Va,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`paperAnchor${st(n.anchor)}`],n.variant!=="temporary"&&e[`paperAnchorDocked${st(n.anchor)}`]]}})(({theme:t,ownerState:e})=>ie({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},e.anchor==="left"&&{left:0},e.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},e.anchor==="right"&&{right:0},e.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},e.anchor==="left"&&e.variant!=="temporary"&&{borderRight:`1px solid ${(t.vars||t).palette.divider}`},e.anchor==="top"&&e.variant!=="temporary"&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},e.anchor==="right"&&e.variant!=="temporary"&&{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},e.anchor==="bottom"&&e.variant!=="temporary"&&{borderTop:`1px solid ${(t.vars||t).palette.divider}`})),xte={left:"right",right:"left",top:"down",bottom:"up"};function rLe(t){return["left","right"].indexOf(t)!==-1}function iLe({direction:t},e){return t==="rtl"&&rLe(e)?xte[e]:e}const aLe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiDrawer"}),i=Os(),a=_w(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:v=!1,PaperProps:b={},SlideProps:g,TransitionComponent:y=Q2e,transitionDuration:w=o,variant:x="temporary"}=r,S=wt(r.ModalProps,X2e),T=wt(r,Z2e),I=C.useRef(!1);C.useEffect(()=>{I.current=!0},[]);const P=iLe({direction:a?"rtl":"ltr"},s),N=ie({},r,{anchor:s,elevation:d,open:v,variant:x},T),R=eLe(N),O=be(nLe,ie({elevation:x==="temporary"?d:0,square:!0},b,{className:yt(R.paper,b.className),ownerState:N,children:c}));if(x==="permanent")return be(GG,ie({className:yt(R.root,R.docked,u),ownerState:N,ref:n},T,{children:O}));const D=be(y,ie({in:v,direction:xte[P],timeout:w,appear:I.current},g,{children:O}));return x==="persistent"?be(GG,ie({className:yt(R.root,R.docked,u),ownerState:N,ref:n},T,{children:D})):be(tLe,ie({BackdropProps:ie({},l,p,{transitionDuration:w}),className:yt(R.root,R.modal,u),open:v,ownerState:N,onClose:h,hideBackdrop:f,ref:n},T,S,{children:D}))}),oLe=aLe,sLe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],lLe=t=>{const{classes:e,disableUnderline:n}=t,i=xt({root:["root",!n&&"underline"],input:["input"]},gOe,e);return ie({},e,i)},cLe=He(SM,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...xM(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{var n;const r=t.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ie({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a}},[`&.${Mp.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a},[`&.${Mp.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:s}},!e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(t.vars||t).palette[e.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Mp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mp.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Mp.disabled}, .${Mp.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Mp.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&ie({padding:"25px 12px 8px"},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9}))}),uLe=He(CM,{name:"MuiFilledInput",slot:"Input",overridesResolver:EM})(({theme:t,ownerState:e})=>ie({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Ete=C.forwardRef(function(e,n){var r,i,a,o;const s=kt({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:h={},type:v="text"}=s,b=wt(s,sLe),g=ie({},s,{fullWidth:u,inputComponent:d,multiline:f,type:v}),y=lLe(s),w={root:{ownerState:g},input:{ownerState:g}},x=p??c?yo(w,p??c):w,S=(r=(i=h.root)!=null?i:l.Root)!=null?r:cLe,T=(a=(o=h.input)!=null?o:l.Input)!=null?a:uLe;return be(Y$,ie({slots:{root:S,input:T},componentsProps:x,fullWidth:u,inputComponent:d,multiline:f,ref:n,type:v},b,{classes:y}))});Ete.muiName="Input";const Ste=Ete;function dLe(t){return Et("MuiFormControl",t)}St("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const fLe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],pLe=t=>{const{classes:e,margin:n,fullWidth:r}=t,i={root:["root",n!=="none"&&`margin${st(n)}`,r&&"fullWidth"]};return xt(i,dLe,e)},hLe=He("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>ie({},e.root,e[`margin${st(t.margin)}`],t.fullWidth&&e.fullWidth)})(({ownerState:t})=>ie({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},t.margin==="normal"&&{marginTop:16,marginBottom:8},t.margin==="dense"&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})),mLe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:h=!1,size:v="medium",variant:b="outlined"}=r,g=wt(r,fLe),y=ie({},r,{color:o,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:p,required:h,size:v,variant:b}),w=pLe(y),[x,S]=C.useState(()=>{let D=!1;return i&&C.Children.forEach(i,L=>{if(!av(L,["Input","Select"]))return;const k=av(L,["Select"])?L.props.input:L;k&&aOe(k.props)&&(D=!0)}),D}),[T,I]=C.useState(()=>{let D=!1;return i&&C.Children.forEach(i,L=>{av(L,["Input","Select"])&&($T(L.props,!0)||$T(L.props.inputProps,!0))&&(D=!0)}),D}),[P,M]=C.useState(!1);l&&P&&M(!1);const N=u!==void 0&&!l?u:P;let R;const O=C.useMemo(()=>({adornedStart:x,setAdornedStart:S,color:o,disabled:l,error:c,filled:T,focused:N,fullWidth:d,hiddenLabel:f,size:v,onBlur:()=>{M(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{M(!0)},registerEffect:R,required:h,variant:b}),[x,o,l,c,T,N,d,f,R,h,v,b]);return be(wM.Provider,{value:O,children:be(hLe,ie({as:s,ownerState:y,className:yt(w.root,a),ref:n},g,{children:i}))})}),ic=mLe,gLe=$Me({createStyledComponent:He("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>kt({props:t,name:"MuiStack"})}),Aw=gLe;function vLe(t){return Et("MuiFormControlLabel",t)}const yLe=St("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),kb=yLe,bLe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],_Le=t=>{const{classes:e,disabled:n,labelPlacement:r,error:i,required:a}=t,o={root:["root",n&&"disabled",`labelPlacement${st(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return xt(o,vLe,e)},wLe=He("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${kb.label}`]:e.label},e.root,e[`labelPlacement${st(n.labelPlacement)}`]]}})(({theme:t,ownerState:e})=>ie({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${kb.disabled}`]:{cursor:"default"}},e.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},e.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},e.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${kb.label}`]:{[`&.${kb.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})),xLe=He("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({[`&.${kb.error}`]:{color:(t.vars||t).palette.error.main}})),ELe=C.forwardRef(function(e,n){var r,i;const a=kt({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:f="end",required:p,slotProps:h={}}=a,v=wt(a,bLe),b=hu(),g=(r=c??l.props.disabled)!=null?r:b==null?void 0:b.disabled,y=p??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof a[M]<"u"&&(w[M]=a[M])});const x=lp({props:a,muiFormControl:b,states:["error"]}),S=ie({},a,{disabled:g,labelPlacement:f,required:y,error:x.error}),T=_Le(S),I=(i=h.typography)!=null?i:s.typography;let P=d;return P!=null&&P.type!==$i&&!u&&(P=be($i,ie({component:"span"},I,{className:yt(T.label,I==null?void 0:I.className),children:P}))),Vt(wLe,ie({className:yt(T.root,o),ownerState:S,ref:n},v,{children:[C.cloneElement(l,w),y?Vt(Aw,{display:"block",children:[P,Vt(xLe,{ownerState:S,"aria-hidden":!0,className:T.asterisk,children:["","*"]})]}):P]}))}),WG=ELe;function SLe(t){return Et("MuiFormGroup",t)}St("MuiFormGroup",["root","row","error"]);const CLe=["className","row"],TLe=t=>{const{classes:e,row:n,error:r}=t;return xt({root:["root",n&&"row",r&&"error"]},SLe,e)},ALe=He("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.row&&e.row]}})(({ownerState:t})=>ie({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})),ILe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,o=wt(r,CLe),s=hu(),l=lp({props:r,muiFormControl:s,states:["error"]}),c=ie({},r,{row:a,error:l.error}),u=TLe(c);return be(ALe,ie({className:yt(u.root,i),ownerState:c,ref:n},o))}),MLe=ILe;function DLe(t){return Et("MuiFormHelperText",t)}const PLe=St("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),qG=PLe;var YG;const RLe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],OLe=t=>{const{classes:e,contained:n,size:r,disabled:i,error:a,filled:o,focused:s,required:l}=t,c={root:["root",i&&"disabled",a&&"error",r&&`size${st(r)}`,n&&"contained",s&&"focused",o&&"filled",l&&"required"]};return xt(c,DLe,e)},NLe=He("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${st(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(({theme:t,ownerState:e})=>ie({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${qG.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${qG.error}`]:{color:(t.vars||t).palette.error.main}},e.size==="small"&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),LLe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=r,s=wt(r,RLe),l=hu(),c=lp({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=ie({},r,{component:o,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=OLe(u);return be(NLe,ie({as:o,ownerState:u,className:yt(d.root,a),ref:n},s,{children:i===" "?YG||(YG=be("span",{className:"notranslate",children:""})):i}))}),i1=LLe;function kLe(t){return Et("MuiFormLabel",t)}const FLe=St("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),c_=FLe,$Le=["children","className","color","component","disabled","error","filled","focused","required"],BLe=t=>{const{classes:e,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=t,l={root:["root",`color${st(n)}`,i&&"disabled",a&&"error",o&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return xt(l,kLe,e)},ULe=He("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>ie({},e.root,t.color==="secondary"&&e.colorSecondary,t.filled&&e.filled)})(({theme:t,ownerState:e})=>ie({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${c_.focused}`]:{color:(t.vars||t).palette[e.color].main},[`&.${c_.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${c_.error}`]:{color:(t.vars||t).palette.error.main}})),HLe=He("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({[`&.${c_.error}`]:{color:(t.vars||t).palette.error.main}})),VLe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=r,s=wt(r,$Le),l=hu(),c=lp({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=ie({},r,{color:c.color||"primary",component:o,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=BLe(u);return Vt(ULe,ie({as:o,ownerState:u,className:yt(d.root,a),ref:n},s,{children:[i,c.required&&Vt(HLe,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:["","*"]})]}))}),zLe=VLe,jLe=DMe({createStyledComponent:He("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,e)=>e.root}),componentName:"MuiGrid2",useThemeProps:t=>kt({props:t,name:"MuiGrid2"})}),lt=jLe,GLe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ok(t){return`scale(${t}, ${t**2})`}const WLe={entering:{opacity:1,transform:ok(1)},entered:{opacity:1,transform:"none"}},pO=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cte=C.forwardRef(function(e,n){const{addEndListener:r,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:h,timeout:v="auto",TransitionComponent:b=xw}=e,g=wt(e,GLe),y=g$(),w=C.useRef(),x=Os(),S=C.useRef(null),T=jn(S,a.ref,n),I=k=>B=>{if(k){const H=S.current;B===void 0?k(H):k(H,B)}},P=I(u),M=I((k,B)=>{$$(k);const{duration:H,delay:$,easing:W}=Jf({style:h,timeout:v,easing:o},{mode:"enter"});let K;v==="auto"?(K=x.transitions.getAutoHeightDuration(k.clientHeight),w.current=K):K=H,k.style.transition=[x.transitions.create("opacity",{duration:K,delay:$}),x.transitions.create("transform",{duration:pO?K:K*.666,delay:$,easing:W})].join(","),l&&l(k,B)}),N=I(c),R=I(p),O=I(k=>{const{duration:B,delay:H,easing:$}=Jf({style:h,timeout:v,easing:o},{mode:"exit"});let W;v==="auto"?(W=x.transitions.getAutoHeightDuration(k.clientHeight),w.current=W):W=B,k.style.transition=[x.transitions.create("opacity",{duration:W,delay:H}),x.transitions.create("transform",{duration:pO?W:W*.666,delay:pO?H:H||W*.333,easing:$})].join(","),k.style.opacity=0,k.style.transform=ok(.75),d&&d(k)}),D=I(f);return be(b,ie({appear:i,in:s,nodeRef:S,onEnter:M,onEntered:N,onEntering:P,onExit:O,onExited:D,onExiting:R,addEndListener:k=>{v==="auto"&&y.start(w.current||0,k),r&&r(S.current,k)},timeout:v==="auto"?null:v},g,{children:(k,B)=>C.cloneElement(a,ie({style:ie({opacity:0,transform:ok(.75),visibility:k==="exited"&&!s?"hidden":void 0},WLe[k],h,a.props.style),ref:T},B))}))});Cte.muiSupportAuto=!0;const Tte=Cte,qLe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],YLe=t=>{const{classes:e,disableUnderline:n}=t,i=xt({root:["root",!n&&"underline"],input:["input"]},fOe,e);return ie({},e,i)},JLe=He(SM,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...xM(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),ie({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fy.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fy.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fy.disabled}, .${Fy.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Fy.disabled}:before`]:{borderBottomStyle:"dotted"}})}),QLe=He(CM,{name:"MuiInput",slot:"Input",overridesResolver:EM})({}),Ate=C.forwardRef(function(e,n){var r,i,a,o;const s=kt({props:e,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:h,slots:v={},type:b="text"}=s,g=wt(s,qLe),y=YLe(s),x={root:{ownerState:{disableUnderline:l}}},S=h??u?yo(h??u,x):x,T=(r=(i=v.root)!=null?i:c.Root)!=null?r:JLe,I=(a=(o=v.input)!=null?o:c.Input)!=null?a:QLe;return be(Y$,ie({slots:{root:T,input:I},slotProps:S,fullWidth:d,inputComponent:f,multiline:p,ref:n,type:b},g,{classes:y}))});Ate.muiName="Input";const Ite=Ate;function KLe(t){return Et("MuiInputAdornment",t)}const XLe=St("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),JG=XLe;var QG;const ZLe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],eke=(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${st(n.position)}`],n.disablePointerEvents===!0&&e.disablePointerEvents,e[n.variant]]},tke=t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:o}=t,s={root:["root",n&&"disablePointerEvents",i&&`position${st(i)}`,o,r&&"hiddenLabel",a&&`size${st(a)}`]};return xt(s,KLe,e)},nke=He("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:eke})(({theme:t,ownerState:e})=>ie({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},e.variant==="filled"&&{[`&.${JG.positionStart}&:not(.${JG.hiddenLabel})`]:{marginTop:16}},e.position==="start"&&{marginRight:8},e.position==="end"&&{marginLeft:8},e.disablePointerEvents===!0&&{pointerEvents:"none"})),rke=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiInputAdornment"}),{children:i,className:a,component:o="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,d=wt(r,ZLe),f=hu()||{};let p=u;u&&f.variant,f&&!p&&(p=f.variant);const h=ie({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:p}),v=tke(h);return be(wM.Provider,{value:null,children:be(nke,ie({as:o,ownerState:h,className:yt(v.root,a),ref:n},d,{children:typeof i=="string"&&!l?be($i,{color:"text.secondary",children:i}):Vt(C.Fragment,{children:[c==="start"?QG||(QG=be("span",{className:"notranslate",children:""})):null,i]})}))})}),DM=rke;function ike(t){return Et("MuiInputLabel",t)}St("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ake=["disableAnimation","margin","shrink","variant","className"],oke=t=>{const{classes:e,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=t,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${st(r)}`,o],asterisk:[s&&"asterisk"]},c=xt(l,ike,e);return ie({},e,c)},ske=He(zLe,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${c_.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(({theme:t,ownerState:e})=>ie({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},e.variant==="filled"&&ie({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&ie({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),e.variant==="outlined"&&ie({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),lke=C.forwardRef(function(e,n){const r=kt({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:a,className:o}=r,s=wt(r,ake),l=hu();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=lp({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=ie({},r,{disableAnimation:i,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),f=oke(d);return be(ske,ie({"data-shrink":c,ownerState:d,ref:n,className:yt(f.root,o)},s,{classes:f}))}),zc=lke,cke=C.createContext({}),lc=cke;function uke(t){return Et("MuiList",t)}St("MuiList",["root","padding","dense","subheader"]);const dke=["children","className","component","dense","disablePadding","subheader"],fke=t=>{const{classes:e,disablePadding:n,dense:r,subheader:i}=t;return xt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},uke,e)},pke=He("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})(({ownerState:t})=>ie({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})),hke=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=wt(r,dke),d=C.useMemo(()=>({dense:s}),[s]),f=ie({},r,{component:o,dense:s,disablePadding:l}),p=fke(f);return be(lc.Provider,{value:d,children:Vt(pke,ie({as:o,className:yt(p.root,a),ref:n,ownerState:f},u,{children:[c,i]}))})}),S0=hke;function mke(t){return Et("MuiListItem",t)}const gke=St("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),mg=gke;function vke(t){return Et("MuiListItemButton",t)}const yke=St("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),gg=yke,bke=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],_ke=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters]},wke=t=>{const{alignItems:e,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=t,c=xt({root:["root",r&&"dense",!a&&"gutters",o&&"divider",i&&"disabled",e==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},vke,n);return ie({},n,c)},xke=He(Cs,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:_ke})(({theme:t,ownerState:e})=>ie({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${gg.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:yn(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${gg.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:yn(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${gg.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:yn(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:yn(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${gg.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${gg.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.alignItems==="flex-start"&&{alignItems:"flex-start"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.dense&&{paddingTop:4,paddingBottom:4})),Eke=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:o="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:f=!1,className:p}=r,h=wt(r,bke),v=C.useContext(lc),b=C.useMemo(()=>({dense:l||v.dense||!1,alignItems:i,disableGutters:c}),[i,v.dense,l,c]),g=C.useRef(null);xi(()=>{a&&g.current&&g.current.focus()},[a]);const y=ie({},r,{alignItems:i,dense:b.dense,disableGutters:c,divider:u,selected:f}),w=wke(y),x=jn(g,n);return be(lc.Provider,{value:b,children:be(xke,ie({ref:x,href:h.href||h.to,component:(h.href||h.to)&&o==="div"?"button":o,focusVisibleClassName:yt(w.focusVisible,d),ownerState:y,className:yt(w.root,p)},h,{classes:w,children:s}))})}),X$=Eke;function Ske(t){return Et("MuiListItemSecondaryAction",t)}St("MuiListItemSecondaryAction",["root","disableGutters"]);const Cke=["className"],Tke=t=>{const{disableGutters:e,classes:n}=t;return xt({root:["root",e&&"disableGutters"]},Ske,n)},Ake=He("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})(({ownerState:t})=>ie({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})),Mte=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=wt(r,Cke),o=C.useContext(lc),s=ie({},r,{disableGutters:o.disableGutters}),l=Tke(s);return be(Ake,ie({className:yt(l.root,i),ownerState:s,ref:n},a))});Mte.muiName="ListItemSecondaryAction";const Ike=Mte,Mke=["className"],Dke=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Pke=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.button&&e.button,n.hasSecondaryAction&&e.secondaryAction]},Rke=t=>{const{alignItems:e,button:n,classes:r,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=t;return xt({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",e==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},mke,r)},Oke=He("div",{name:"MuiListItem",slot:"Root",overridesResolver:Pke})(({theme:t,ownerState:e})=>ie({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!e.disablePadding&&ie({paddingTop:8,paddingBottom:8},e.dense&&{paddingTop:4,paddingBottom:4},!e.disableGutters&&{paddingLeft:16,paddingRight:16},!!e.secondaryAction&&{paddingRight:48}),!!e.secondaryAction&&{[`& > .${gg.root}`]:{paddingRight:48}},{[`&.${mg.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${mg.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:yn(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${mg.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:yn(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${mg.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.alignItems==="flex-start"&&{alignItems:"flex-start"},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mg.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:yn(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:yn(t.palette.primary.main,t.palette.action.selectedOpacity)}}},e.hasSecondaryAction&&{paddingRight:48})),Nke=He("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),Lke=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:p}={},dense:h=!1,disabled:v=!1,disableGutters:b=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:x,selected:S=!1,slotProps:T={},slots:I={}}=r,P=wt(r.ContainerProps,Mke),M=wt(r,Dke),N=C.useContext(lc),R=C.useMemo(()=>({dense:h||N.dense||!1,alignItems:i,disableGutters:b}),[i,N.dense,h,b]),O=C.useRef(null);xi(()=>{a&&O.current&&O.current.focus()},[a]);const D=C.Children.toArray(s),L=D.length&&av(D[D.length-1],["ListItemSecondaryAction"]),k=ie({},r,{alignItems:i,autoFocus:a,button:o,dense:R.dense,disabled:v,disableGutters:b,disablePadding:g,divider:y,hasSecondaryAction:L,selected:S}),B=Rke(k),H=jn(O,n),$=I.root||u.Root||Oke,W=T.root||d.root||{},K=ie({className:yt(B.root,W.className,l),disabled:v},M);let le=c||"li";return o&&(K.component=c||"div",K.focusVisibleClassName=yt(mg.focusVisible,w),le=Cs),L?(le=!K.component&&!c?"div":le,f==="li"&&(le==="li"?le="div":K.component==="li"&&(K.component="div")),be(lc.Provider,{value:R,children:Vt(Nke,ie({as:f,className:yt(B.container,p),ref:H,ownerState:k},P,{children:[be($,ie({},W,!Nv($)&&{as:le,ownerState:ie({},k,W.ownerState)},K,{children:D})),D.pop()]}))})):be(lc.Provider,{value:R,children:Vt($,ie({},W,{as:le,ref:H},!Nv($)&&{ownerState:ie({},k,W.ownerState)},K,{children:[D,x&&be(Ike,{children:x})]}))})}),Z$=Lke;function kke(t){return Et("MuiListItemIcon",t)}const Fke=St("MuiListItemIcon",["root","alignItemsFlexStart"]),KG=Fke,$ke=["className"],Bke=t=>{const{alignItems:e,classes:n}=t;return xt({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},kke,n)},Uke=He("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(({theme:t,ownerState:e})=>ie({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},e.alignItems==="flex-start"&&{marginTop:8})),Hke=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiListItemIcon"}),{className:i}=r,a=wt(r,$ke),o=C.useContext(lc),s=ie({},r,{alignItems:o.alignItems}),l=Bke(s);return be(Uke,ie({className:yt(l.root,i),ownerState:s,ref:n},a))}),eB=Hke;function Vke(t){return Et("MuiListItemText",t)}const zke=St("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),BT=zke,jke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Gke=t=>{const{classes:e,inset:n,primary:r,secondary:i,dense:a}=t;return xt({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Vke,e)},Wke=He("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${BT.primary}`]:e.primary},{[`& .${BT.secondary}`]:e.secondary},e.root,n.inset&&e.inset,n.primary&&n.secondary&&e.multiline,n.dense&&e.dense]}})(({ownerState:t})=>ie({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})),qke=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiListItemText"}),{children:i,className:a,disableTypography:o=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,f=wt(r,jke),{dense:p}=C.useContext(lc);let h=l??i,v=u;const b=ie({},r,{disableTypography:o,inset:s,primary:!!h,secondary:!!v,dense:p}),g=Gke(b);return h!=null&&h.type!==$i&&!o&&(h=be($i,ie({variant:p?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:h}))),v!=null&&v.type!==$i&&!o&&(v=be($i,ie({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:v}))),Vt(Wke,ie({className:yt(g.root,a),ownerState:b,ref:n},f,{children:[h,v]}))}),fs=qke,Yke=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hO(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function XG(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function Dte(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.indexOf(e.keys.join(""))===0}function $y(t,e,n,r,i,a){let o=!1,s=i(t,e,e?n:!1);for(;s;){if(s===t.firstChild){if(o)return!1;o=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Dte(s,a)||l)s=i(t,s,n);else return s.focus(),!0}return!1}const Jke=C.forwardRef(function(e,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,f=wt(e,Yke),p=C.useRef(null),h=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xi(()=>{i&&p.current.focus()},[i]),C.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:x})=>{const S=!p.current.style.width;if(w.clientHeight{const x=p.current,S=w.key,T=Vi(x).activeElement;if(S==="ArrowDown")w.preventDefault(),$y(x,T,c,l,hO);else if(S==="ArrowUp")w.preventDefault(),$y(x,T,c,l,XG);else if(S==="Home")w.preventDefault(),$y(x,null,c,l,hO);else if(S==="End")w.preventDefault(),$y(x,null,c,l,XG);else if(S.length===1){const I=h.current,P=S.toLowerCase(),M=performance.now();I.keys.length>0&&(M-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&P!==I.keys[0]&&(I.repeating=!1)),I.lastTime=M,I.keys.push(P);const N=T&&!I.repeating&&Dte(T,I);I.previousKeyMatched&&(N||$y(x,T,!1,l,hO,I))?w.preventDefault():I.previousKeyMatched=!1}u&&u(w)},b=jn(p,n);let g=-1;C.Children.forEach(o,(w,x)=>{if(!C.isValidElement(w)){g===x&&(g+=1,g>=o.length&&(g=-1));return}w.props.disabled||(d==="selectedMenu"&&w.props.selected||g===-1)&&(g=x),g===x&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=o.length&&(g=-1))});const y=C.Children.map(o,(w,x)=>{if(x===g){const S={};return a&&(S.autoFocus=!0),w.props.tabIndex===void 0&&d==="selectedMenu"&&(S.tabIndex=0),C.cloneElement(w,S)}return w});return be(S0,ie({role:"menu",ref:b,className:s,onKeyDown:v,tabIndex:i?0:-1},f,{children:y}))}),Qke=Jke;function Kke(t){return Et("MuiPopover",t)}St("MuiPopover",["root","paper"]);const Xke=["onEntering"],Zke=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],e3e=["slotProps"];function ZG(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function eW(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function tW(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function mO(t){return typeof t=="function"?t():t}const t3e=t=>{const{classes:e}=t;return xt({root:["root"],paper:["paper"]},Kke,e)},n3e=He(Q$,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Pte=He(Va,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),r3e=C.forwardRef(function(e,n){var r,i,a;const o=kt({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:p,container:h,elevation:v=8,marginThreshold:b=16,open:g,PaperProps:y={},slots:w,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:T=Tte,transitionDuration:I="auto",TransitionProps:{onEntering:P}={},disableScrollLock:M=!1}=o,N=wt(o.TransitionProps,Xke),R=wt(o,Zke),O=(r=x==null?void 0:x.paper)!=null?r:y,D=C.useRef(),L=jn(D,O.ref),k=ie({},o,{anchorOrigin:c,anchorReference:d,elevation:v,marginThreshold:b,externalPaperSlotProps:O,transformOrigin:S,TransitionComponent:T,transitionDuration:I,TransitionProps:N}),B=t3e(k),H=C.useCallback(()=>{if(d==="anchorPosition")return u;const me=mO(l),_e=(me&&me.nodeType===1?me:Vi(D.current).body).getBoundingClientRect();return{top:_e.top+ZG(_e,c.vertical),left:_e.left+eW(_e,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),$=C.useCallback(me=>({vertical:ZG(me,S.vertical),horizontal:eW(me,S.horizontal)}),[S.horizontal,S.vertical]),W=C.useCallback(me=>{const Z={width:me.offsetWidth,height:me.offsetHeight},_e=$(Z);if(d==="none")return{top:null,left:null,transformOrigin:tW(_e)};const Me=H();let Ne=Me.top-_e.vertical,ge=Me.left-_e.horizontal;const ee=Ne+Z.height,Q=ge+Z.width,V=wl(mO(l)),j=V.innerHeight-b,ye=V.innerWidth-b;if(b!==null&&Nej){const ae=ee-j;Ne-=ae,_e.vertical+=ae}if(b!==null&&geye){const ae=Q-ye;ge-=ae,_e.horizontal+=ae}return{top:`${Math.round(Ne)}px`,left:`${Math.round(ge)}px`,transformOrigin:tW(_e)}},[l,d,H,$,b]),[K,le]=C.useState(g),U=C.useCallback(()=>{const me=D.current;if(!me)return;const Z=W(me);Z.top!==null&&(me.style.top=Z.top),Z.left!==null&&(me.style.left=Z.left),me.style.transformOrigin=Z.transformOrigin,le(!0)},[W]);C.useEffect(()=>(M&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,M,U]);const q=(me,Z)=>{P&&P(me,Z),U()},z=()=>{le(!1)};C.useEffect(()=>{g&&U()}),C.useImperativeHandle(s,()=>g?{updatePosition:()=>{U()}}:null,[g,U]),C.useEffect(()=>{if(!g)return;const me=y0(()=>{U()}),Z=wl(l);return Z.addEventListener("resize",me),()=>{me.clear(),Z.removeEventListener("resize",me)}},[l,g,U]);let ne=I;I==="auto"&&!T.muiSupportAuto&&(ne=void 0);const G=h||(l?Vi(mO(l)).body:void 0),te=(i=w==null?void 0:w.root)!=null?i:n3e,Y=(a=w==null?void 0:w.paper)!=null?a:Pte,fe=mc({elementType:Y,externalSlotProps:ie({},O,{style:K?O.style:ie({},O.style,{opacity:0})}),additionalProps:{elevation:v,ref:L},ownerState:k,className:yt(B.paper,O==null?void 0:O.className)}),pe=mc({elementType:te,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:R,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:G,open:g},ownerState:k,className:yt(B.root,p)}),{slotProps:de}=pe,se=wt(pe,e3e);return be(te,ie({},se,!Nv(te)&&{slotProps:de,disableScrollLock:M},{children:be(T,ie({appear:!0,in:g,onEntering:q,onExited:z,timeout:ne},N,{children:be(Y,ie({},fe,{children:f}))}))}))}),i3e=r3e;function a3e(t){return Et("MuiMenu",t)}St("MuiMenu",["root","paper","list"]);const o3e=["onEntering"],s3e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],l3e={vertical:"top",horizontal:"right"},c3e={vertical:"top",horizontal:"left"},u3e=t=>{const{classes:e}=t;return xt({root:["root"],paper:["paper"],list:["list"]},a3e,e)},d3e=He(i3e,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),f3e=He(Pte,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),p3e=He(Qke,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),h3e=C.forwardRef(function(e,n){var r,i;const a=kt({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:p={},PopoverClasses:h,transitionDuration:v="auto",TransitionProps:{onEntering:b}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,x=wt(a.TransitionProps,o3e),S=wt(a,s3e),T=_w(),I=ie({},a,{autoFocus:o,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:p,transitionDuration:v,TransitionProps:x,variant:g}),P=u3e(I),M=o&&!c&&f,N=C.useRef(null),R=($,W)=>{N.current&&N.current.adjustStyleForScrollbar($,{direction:T?"rtl":"ltr"}),b&&b($,W)},O=$=>{$.key==="Tab"&&($.preventDefault(),d&&d($,"tabKeyDown"))};let D=-1;C.Children.map(s,($,W)=>{C.isValidElement($)&&($.props.disabled||(g==="selectedMenu"&&$.props.selected||D===-1)&&(D=W))});const L=(r=y.paper)!=null?r:f3e,k=(i=w.paper)!=null?i:p,B=mc({elementType:y.root,externalSlotProps:w.root,ownerState:I,className:[P.root,l]}),H=mc({elementType:L,externalSlotProps:k,ownerState:I,className:P.paper});return be(d3e,ie({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?l3e:c3e,slots:{paper:L,root:y.root},slotProps:{root:B,paper:H},open:f,ref:n,transitionDuration:v,TransitionProps:ie({onEntering:R},x),ownerState:I},S,{classes:h,children:be(p3e,ie({onKeyDown:O,actions:N,autoFocus:o&&(D===-1||c),autoFocusItem:M,variant:g},u,{className:yt(P.list,u.className),children:s}))}))}),Rte=h3e;function m3e(t){return Et("MuiMenuItem",t)}const g3e=St("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),By=g3e,v3e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],y3e=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},b3e=t=>{const{disabled:e,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=t,l=xt({root:["root",n&&"dense",e&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},m3e,o);return ie({},o,l)},_3e=He(Cs,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:y3e})(({theme:t,ownerState:e})=>ie({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${By.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:yn(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${By.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:yn(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${By.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:yn(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:yn(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${By.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${By.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${jG.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${jG.inset}`]:{marginLeft:52},[`& .${BT.root}`]:{marginTop:0,marginBottom:0},[`& .${BT.inset}`]:{paddingLeft:36},[`& .${KG.root}`]:{minWidth:36}},!e.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},e.dense&&ie({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${KG.root} svg`]:{fontSize:"1.25rem"}}))),w3e=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:o=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f}=r,p=wt(r,v3e),h=C.useContext(lc),v=C.useMemo(()=>({dense:o||h.dense||!1,disableGutters:l}),[h.dense,o,l]),b=C.useRef(null);xi(()=>{i&&b.current&&b.current.focus()},[i]);const g=ie({},r,{dense:v.dense,divider:s,disableGutters:l}),y=b3e(r),w=jn(b,n);let x;return r.disabled||(x=d!==void 0?d:-1),be(lc.Provider,{value:v,children:be(_3e,ie({ref:w,role:u,tabIndex:x,component:a,focusVisibleClassName:yt(y.focusVisible,c),className:yt(y.root,f)},p,{ownerState:g,classes:y}))})}),jc=w3e;function x3e(t){return Et("MuiNativeSelect",t)}const E3e=St("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tB=E3e,S3e=["className","disabled","error","IconComponent","inputRef","variant"],C3e=t=>{const{classes:e,variant:n,disabled:r,multiple:i,open:a,error:o}=t,s={select:["select",n,r&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${st(n)}`,a&&"iconOpen",r&&"disabled"]};return xt(s,x3e,e)},Ote=({ownerState:t,theme:e})=>ie({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ie({},e.vars?{backgroundColor:`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${tB.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},t.variant==="filled"&&{"&&&":{paddingRight:32}},t.variant==="outlined"&&{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}),T3e=He("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ha,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${tB.multiple}`]:e.multiple}]}})(Ote),Nte=({ownerState:t,theme:e})=>ie({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${tB.disabled}`]:{color:(e.vars||e).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},t.variant==="filled"&&{right:7},t.variant==="outlined"&&{right:7}),A3e=He("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${st(n.variant)}`],n.open&&e.iconOpen]}})(Nte),I3e=C.forwardRef(function(e,n){const{className:r,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=e,c=wt(e,S3e),u=ie({},e,{disabled:i,variant:l,error:a}),d=C3e(u);return Vt(C.Fragment,{children:[be(T3e,ie({ownerState:u,className:yt(d.select,r),disabled:i,ref:s||n},c)),e.multiple?null:be(A3e,{as:o,ownerState:u,className:d.icon})]})}),M3e=I3e;var nW;const D3e=["children","classes","className","label","notched"],P3e=He("fieldset",{shouldForwardProp:Ha})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),R3e=He("legend",{shouldForwardProp:Ha})(({ownerState:t,theme:e})=>ie({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},t.withLabel&&ie({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));function O3e(t){const{className:e,label:n,notched:r}=t,i=wt(t,D3e),a=n!=null&&n!=="",o=ie({},t,{notched:r,withLabel:a});return be(P3e,ie({"aria-hidden":!0,className:e,ownerState:o},i,{children:be(R3e,{ownerState:o,children:a?be("span",{children:n}):nW||(nW=be("span",{className:"notranslate",children:""}))})}))}const N3e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],L3e=t=>{const{classes:e}=t,r=xt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},hOe,e);return ie({},e,r)},k3e=He(SM,{shouldForwardProp:t=>Ha(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:xM})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ie({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Ud.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ud.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ud.focused} .${Ud.notchedOutline}`]:{borderColor:(t.vars||t).palette[e.color].main,borderWidth:2},[`&.${Ud.error} .${Ud.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Ud.disabled} .${Ud.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&ie({padding:"16.5px 14px"},e.size==="small"&&{padding:"8.5px 14px"}))}),F3e=He(O3e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),$3e=He(CM,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:EM})(({theme:t,ownerState:e})=>ie({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),Lte=C.forwardRef(function(e,n){var r,i,a,o,s;const l=kt({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:h,slots:v={},type:b="text"}=l,g=wt(l,N3e),y=L3e(l),w=hu(),x=lp({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ie({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:w,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:b}),T=(r=(i=v.root)!=null?i:c.Root)!=null?r:k3e,I=(a=(o=v.input)!=null?o:c.Input)!=null?a:$3e;return be(Y$,ie({slots:{root:T,input:I},renderSuffix:P=>be(F3e,{ownerState:S,className:y.notchedOutline,label:f!=null&&f!==""&&x.required?s||(s=Vt(C.Fragment,{children:[f,"","*"]})):f,notched:typeof h<"u"?h:Boolean(P.startAdornment||P.filled||P.focused)}),fullWidth:u,inputComponent:d,multiline:p,ref:n,type:b},g,{classes:ie({},y,{notchedOutline:null})}))});Lte.muiName="Input";const ul=Lte;function B3e(t){return Et("MuiPagination",t)}St("MuiPagination",["root","ul","outlined","text"]);const U3e=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function H3e(t={}){const{boundaryCount:e=1,componentName:n="usePagination",count:r=1,defaultPage:i=1,disabled:a=!1,hideNextButton:o=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:f=1}=t,p=wt(t,U3e),[h,v]=Wo({controlled:c,default:i,name:n,state:"page"}),b=(M,N)=>{c||v(N),l&&l(M,N)},g=(M,N)=>{const R=N-M+1;return Array.from({length:R},(O,D)=>M+D)},y=g(1,Math.min(e,r)),w=g(Math.max(r-e+1,e+1),r),x=Math.max(Math.min(h-f,r-e-f*2-1),e+2),S=Math.min(Math.max(h+f,e+f*2+2),w.length>0?w[0]-2:r-1),T=[...u?["first"]:[],...s?[]:["previous"],...y,...x>e+2?["start-ellipsis"]:e+1e?[r-e]:[],...w,...o?[]:["next"],...d?["last"]:[]],I=M=>{switch(M){case"first":return 1;case"previous":return h-1;case"next":return h+1;case"last":return r;default:return null}},P=T.map(M=>typeof M=="number"?{onClick:N=>{b(N,M)},type:"page",page:M,selected:M===h,disabled:a,"aria-current":M===h?"true":void 0}:{onClick:N=>{b(N,I(M))},type:M,page:I(M),selected:!1,disabled:a||M.indexOf("ellipsis")===-1&&(M==="next"||M==="last"?h>=r:h<=1)});return ie({items:P},p)}function V3e(t){return Et("MuiPaginationItem",t)}const z3e=St("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),el=z3e,rW=Gi(be("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),iW=Gi(be("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),aW=Gi(be("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),oW=Gi(be("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),j3e=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],kte=(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${st(n.size)}`],n.variant==="text"&&e[`text${st(n.color)}`],n.variant==="outlined"&&e[`outlined${st(n.color)}`],n.shape==="rounded"&&e.rounded,n.type==="page"&&e.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&e.ellipsis,(n.type==="previous"||n.type==="next")&&e.previousNext,(n.type==="first"||n.type==="last")&&e.firstLast]},G3e=t=>{const{classes:e,color:n,disabled:r,selected:i,size:a,shape:o,type:s,variant:l}=t,c={root:["root",`size${st(a)}`,l,o,n!=="standard"&&`color${st(n)}`,n!=="standard"&&`${l}${st(n)}`,r&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return xt(c,V3e,e)},W3e=He("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:kte})(({theme:t,ownerState:e})=>ie({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${el.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)})),q3e=He(Cs,{name:"MuiPaginationItem",slot:"Root",overridesResolver:kte})(({theme:t,ownerState:e})=>ie({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${el.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${el.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${el.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:yn(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${el.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:yn(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},[`&.${el.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},e.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)},e.shape==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius}),({theme:t,ownerState:e})=>ie({},e.variant==="text"&&{[`&.${el.selected}`]:ie({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}},[`&.${el.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}},{[`&.${el.disabled}`]:{color:(t.vars||t).palette.action.disabled}})},e.variant==="outlined"&&{border:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${el.selected}`]:ie({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:yn(t.palette[e.color].main,.5)}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.activatedOpacity})`:yn(t.palette[e.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:yn(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${el.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:yn(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{[`&.${el.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})),Y3e=He("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,e)=>e.icon})(({theme:t,ownerState:e})=>ie({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},e.size==="small"&&{fontSize:t.typography.pxToRem(18)},e.size==="large"&&{fontSize:t.typography.pxToRem(22)})),J3e=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiPaginationItem"}),{className:i,color:a="standard",component:o,components:s={},disabled:l=!1,page:c,selected:u=!1,shape:d="circular",size:f="medium",slots:p={},type:h="page",variant:v="text"}=r,b=wt(r,j3e),g=ie({},r,{color:a,disabled:l,selected:u,shape:d,size:f,type:h,variant:v}),y=_w(),w=G3e(g),S=(y?{previous:p.next||s.next||oW,next:p.previous||s.previous||aW,last:p.first||s.first||rW,first:p.last||s.last||iW}:{previous:p.previous||s.previous||aW,next:p.next||s.next||oW,first:p.first||s.first||rW,last:p.last||s.last||iW})[h];return h==="start-ellipsis"||h==="end-ellipsis"?be(W3e,{ref:n,ownerState:g,className:yt(w.root,i),children:"…"}):Vt(q3e,ie({ref:n,ownerState:g,component:o,disabled:l,className:yt(w.root,i)},b,{children:[h==="page"&&c,S?be(Y3e,{as:S,ownerState:g,className:w.icon}):null]}))}),Q3e=J3e,K3e=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],X3e=t=>{const{classes:e,variant:n}=t;return xt({root:["root",n],ul:["ul"]},B3e,e)},Z3e=He("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant]]}})({}),eFe=He("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,e)=>e.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function tFe(t,e,n){return t==="page"?`${n?"":"Go to "}page ${e}`:`Go to ${t} page`}const nFe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiPagination"}),{boundaryCount:i=1,className:a,color:o="standard",count:s=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=tFe,hideNextButton:d=!1,hidePrevButton:f=!1,renderItem:p=P=>be(Q3e,ie({},P)),shape:h="circular",showFirstButton:v=!1,showLastButton:b=!1,siblingCount:g=1,size:y="medium",variant:w="text"}=r,x=wt(r,K3e),{items:S}=H3e(ie({},r,{componentName:"Pagination"})),T=ie({},r,{boundaryCount:i,color:o,count:s,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:d,hidePrevButton:f,renderItem:p,shape:h,showFirstButton:v,showLastButton:b,siblingCount:g,size:y,variant:w}),I=X3e(T);return be(Z3e,ie({"aria-label":"pagination navigation",className:yt(I.root,a),ownerState:T,ref:n},x,{children:be(eFe,{className:I.ul,ownerState:T,children:S.map((P,M)=>be("li",{children:p(ie({},P,{color:o,"aria-label":u(P.type,P.page,P.selected),shape:h,size:y,variant:w}))},M))})}))}),PM=nFe;function rFe(t){return Et("MuiSelect",t)}const iFe=St("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Uy=iFe;var sW;const aFe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],oFe=He("div",{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${Uy.select}`]:e.select},{[`&.${Uy.select}`]:e[n.variant]},{[`&.${Uy.error}`]:e.error},{[`&.${Uy.multiple}`]:e.multiple}]}})(Ote,{[`&.${Uy.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),sFe=He("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${st(n.variant)}`],n.open&&e.iconOpen]}})(Nte),lFe=He("input",{shouldForwardProp:t=>Nee(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lW(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function cFe(t){return t==null||typeof t=="string"&&!t.trim()}const uFe=t=>{const{classes:e,variant:n,disabled:r,multiple:i,open:a,error:o}=t,s={select:["select",n,r&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${st(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return xt(s,rFe,e)},dFe=C.forwardRef(function(e,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:p,error:h=!1,IconComponent:v,inputRef:b,labelId:g,MenuProps:y={},multiple:w,name:x,onBlur:S,onChange:T,onClose:I,onFocus:P,onOpen:M,open:N,readOnly:R,renderValue:O,SelectDisplayProps:D={},tabIndex:L,value:k,variant:B="standard"}=e,H=wt(e,aFe),[$,W]=Wo({controlled:k,default:d,name:"Select"}),[K,le]=Wo({controlled:N,default:u,name:"Select"}),U=C.useRef(null),q=C.useRef(null),[z,ne]=C.useState(null),{current:G}=C.useRef(N!=null),[te,Y]=C.useState(),fe=jn(n,b),pe=C.useCallback(Je=>{q.current=Je,Je&&ne(Je)},[]),de=z==null?void 0:z.parentNode;C.useImperativeHandle(fe,()=>({focus:()=>{q.current.focus()},node:U.current,value:$}),[$]),C.useEffect(()=>{u&&K&&z&&!G&&(Y(s?null:de.clientWidth),q.current.focus())},[z,s]),C.useEffect(()=>{o&&q.current.focus()},[o]),C.useEffect(()=>{if(!g)return;const Je=Vi(q.current).getElementById(g);if(Je){const nt=()=>{getSelection().isCollapsed&&q.current.focus()};return Je.addEventListener("click",nt),()=>{Je.removeEventListener("click",nt)}}},[g]);const se=(Je,nt)=>{Je?M&&M(nt):I&&I(nt),G||(Y(s?null:de.clientWidth),le(Je))},me=Je=>{Je.button===0&&(Je.preventDefault(),q.current.focus(),se(!0,Je))},Z=Je=>{se(!1,Je)},_e=C.Children.toArray(l),Me=Je=>{const nt=_e.find(je=>je.props.value===Je.target.value);nt!==void 0&&(W(nt.props.value),T&&T(Je,nt))},Ne=Je=>nt=>{let je;if(nt.currentTarget.hasAttribute("tabindex")){if(w){je=Array.isArray($)?$.slice():[];const Ue=$.indexOf(Je.props.value);Ue===-1?je.push(Je.props.value):je.splice(Ue,1)}else je=Je.props.value;if(Je.props.onClick&&Je.props.onClick(nt),$!==je&&(W(je),T)){const Ue=nt.nativeEvent||nt,at=new Ue.constructor(Ue.type,Ue);Object.defineProperty(at,"target",{writable:!0,value:{value:je,name:x}}),T(at,Je)}w||se(!1,nt)}},ge=Je=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Je.key)!==-1&&(Je.preventDefault(),se(!0,Je))},ee=z!==null&&K,Q=Je=>{!ee&&S&&(Object.defineProperty(Je,"target",{writable:!0,value:{value:$,name:x}}),S(Je))};delete H["aria-invalid"];let V,j;const ye=[];let ae=!1;($T({value:$})||p)&&(O?V=O($):ae=!0);const Ee=_e.map(Je=>{if(!C.isValidElement(Je))return null;let nt;if(w){if(!Array.isArray($))throw new Error(pd(2));nt=$.some(je=>lW(je,Je.props.value)),nt&&ae&&ye.push(Je.props.children)}else nt=lW($,Je.props.value),nt&&ae&&(j=Je.props.children);return C.cloneElement(Je,{"aria-selected":nt?"true":"false",onClick:Ne(Je),onKeyUp:je=>{je.key===" "&&je.preventDefault(),Je.props.onKeyUp&&Je.props.onKeyUp(je)},role:"option",selected:nt,value:void 0,"data-value":Je.props.value})});ae&&(w?ye.length===0?V=null:V=ye.reduce((Je,nt,je)=>(Je.push(nt),je{const{classes:e}=t;return e},nB={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Ha(t)&&t!=="variant",slot:"Root"},gFe=He(Ite,nB)(""),vFe=He(ul,nB)(""),yFe=He(Ste,nB)(""),Fte=C.forwardRef(function(e,n){const r=kt({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=yOe,id:d,input:f,inputProps:p,label:h,labelId:v,MenuProps:b,multiple:g=!1,native:y=!1,onClose:w,onOpen:x,open:S,renderValue:T,SelectDisplayProps:I,variant:P="outlined"}=r,M=wt(r,pFe),N=y?M3e:fFe,R=hu(),O=lp({props:r,muiFormControl:R,states:["variant","error"]}),D=O.variant||P,L=ie({},r,{variant:D,classes:o}),k=mFe(L),B=wt(k,hFe),H=f||{standard:be(gFe,{ownerState:L}),outlined:be(vFe,{label:h,ownerState:L}),filled:be(yFe,{ownerState:L})}[D],$=jn(n,H.ref);return be(C.Fragment,{children:C.cloneElement(H,ie({inputComponent:N,inputProps:ie({children:a,error:O.error,IconComponent:u,variant:D,type:void 0,multiple:g},y?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:b,onClose:w,onOpen:x,open:S,renderValue:T,SelectDisplayProps:ie({id:d},I)},p,{classes:p?yo(B,p.classes):B},f?f.props.inputProps:{})},(g&&y||c)&&D==="outlined"?{notched:!0}:{},{ref:$,className:yt(H.props.className,s,k.root)},!f&&{variant:D},M))})});Fte.muiName="Select";const dl=Fte;function bFe(t){return Et("MuiTab",t)}const _Fe=St("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Vd=_Fe,wFe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],xFe=t=>{const{classes:e,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:l}=t,c={root:["root",a&&o&&"labelIcon",`textColor${st(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return xt(c,bFe,e)},EFe=He(Cs,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.label&&n.icon&&e.labelIcon,e[`textColor${st(n.textColor)}`],n.fullWidth&&e.fullWidth,n.wrapped&&e.wrapped,{[`& .${Vd.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>ie({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Vd.iconWrapper}`]:ie({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Vd.selected}`]:{opacity:1},[`&.${Vd.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${Vd.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Vd.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${Vd.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Vd.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),SFe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:p,onFocus:h,selected:v,selectionFollowsFocus:b,textColor:g="inherit",value:y,wrapped:w=!1}=r,x=wt(r,wFe),S=ie({},r,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:g,wrapped:w}),T=xFe(S),I=l&&d&&C.isValidElement(l)?C.cloneElement(l,{className:yt(T.iconWrapper,l.props.className)}):l,P=N=>{!v&&f&&f(N,y),p&&p(N)},M=N=>{b&&!v&&f&&f(N,y),h&&h(N)};return Vt(EFe,ie({focusRipple:!o,className:yt(T.root,i),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:P,onFocus:M,ownerState:S,tabIndex:v?0:-1},x,{children:[c==="top"||c==="start"?Vt(C.Fragment,{children:[I,d]}):Vt(C.Fragment,{children:[d,I]}),u]}))}),cW=SFe;function CFe(t){return Et("MuiToolbar",t)}St("MuiToolbar",["root","gutters","regular","dense"]);const TFe=["className","component","disableGutters","variant"],AFe=t=>{const{classes:e,disableGutters:n,variant:r}=t;return xt({root:["root",!n&&"gutters",r]},CFe,e)},IFe=He("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableGutters&&e.gutters,e[n.variant]]}})(({theme:t,ownerState:e})=>ie({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},e.variant==="dense"&&{minHeight:48}),({theme:t,ownerState:e})=>e.variant==="regular"&&t.mixins.toolbar),MFe=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=r,l=wt(r,TFe),c=ie({},r,{component:a,disableGutters:o,variant:s}),u=AFe(c);return be(IFe,ie({as:a,className:yt(u.root,i),ref:n,ownerState:c},l))}),a1=MFe,DFe=Gi(be("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),PFe=Gi(be("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function RFe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function OFe(t,e,n,r={},i=()=>{}){const{ease:a=RFe,duration:o=300}=r;let s=null;const l=e[t];let c=!1;const u=()=>{c=!0},d=f=>{if(c){i(new Error("Animation cancelled"));return}s===null&&(s=f);const p=Math.min(1,(f-s)/o);if(e[t]=a(p)*(n-l)+l,p>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const NFe=["onChange"],LFe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function kFe(t){const{onChange:e}=t,n=wt(t,NFe),r=C.useRef(),i=C.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return xi(()=>{const o=y0(()=>{const l=r.current;a(),l!==r.current&&e(r.current)}),s=wl(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[e]),C.useEffect(()=>{a(),e(r.current)},[e]),be("div",ie({style:LFe,ref:i},n))}function FFe(t){return Et("MuiTabScrollButton",t)}const $Fe=St("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),BFe=$Fe,UFe=["className","slots","slotProps","direction","orientation","disabled"],HFe=t=>{const{classes:e,orientation:n,disabled:r}=t;return xt({root:["root",n,r&&"disabled"]},FFe,e)},VFe=He(Cs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.orientation&&e[n.orientation]]}})(({ownerState:t})=>ie({width:40,flexShrink:0,opacity:.8,[`&.${BFe.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),zFe=C.forwardRef(function(e,n){var r,i;const a=kt({props:e,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:c}=a,u=wt(a,UFe),d=_w(),f=ie({isRtl:d},a),p=HFe(f),h=(r=s.StartScrollButtonIcon)!=null?r:DFe,v=(i=s.EndScrollButtonIcon)!=null?i:PFe,b=mc({elementType:h,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),g=mc({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return be(VFe,ie({component:"div",className:yt(p.root,o),ref:n,role:null,ownerState:f,tabIndex:null},u,{children:c==="left"?be(h,ie({},b)):be(v,ie({},g))}))}),jFe=zFe;function GFe(t){return Et("MuiTabs",t)}const WFe=St("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),CC=WFe,qFe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],uW=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,dW=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,UE=(t,e,n)=>{let r=!1,i=n(t,e);for(;i;){if(i===t.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(t,i);else{i.focus();return}}},YFe=t=>{const{vertical:e,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=t;return xt({root:["root",e&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},GFe,l)},JFe=He("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${CC.scrollButtons}`]:e.scrollButtons},{[`& .${CC.scrollButtons}`]:n.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,n.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>ie({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${CC.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),QFe=He("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.scroller,n.fixed&&e.fixed,n.hideScrollbar&&e.hideScrollbar,n.scrollableX&&e.scrollableX,n.scrollableY&&e.scrollableY]}})(({ownerState:t})=>ie({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),KFe=He("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.flexContainer,n.vertical&&e.flexContainerVertical,n.centered&&e.centered]}})(({ownerState:t})=>ie({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),XFe=He("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>ie({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),ZFe=He(kFe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),fW={},e$e=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiTabs"}),i=Os(),a=_w(),{"aria-label":o,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:v,orientation:b="horizontal",ScrollButtonComponent:g=jFe,scrollButtons:y="auto",selectionFollowsFocus:w,slots:x={},slotProps:S={},TabIndicatorProps:T={},TabScrollButtonProps:I={},textColor:P="primary",value:M,variant:N="standard",visibleScrollbar:R=!1}=r,O=wt(r,qFe),D=N==="scrollable",L=b==="vertical",k=L?"scrollTop":"scrollLeft",B=L?"top":"left",H=L?"bottom":"right",$=L?"clientHeight":"clientWidth",W=L?"height":"width",K=ie({},r,{component:f,allowScrollButtonsMobile:p,indicatorColor:h,orientation:b,vertical:L,scrollButtons:y,textColor:P,variant:N,visibleScrollbar:R,fixed:!D,hideScrollbar:D&&!R,scrollableX:D&&!L,scrollableY:D&&L,centered:c&&!D,scrollButtonsHideMobile:!p}),le=YFe(K),U=mc({elementType:x.StartScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:K}),q=mc({elementType:x.EndScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:K}),[z,ne]=C.useState(!1),[G,te]=C.useState(fW),[Y,fe]=C.useState(!1),[pe,de]=C.useState(!1),[se,me]=C.useState(!1),[Z,_e]=C.useState({overflow:"hidden",scrollbarWidth:0}),Me=new Map,Ne=C.useRef(null),ge=C.useRef(null),ee=()=>{const je=Ne.current;let Ue;if(je){const vt=je.getBoundingClientRect();Ue={clientWidth:je.clientWidth,scrollLeft:je.scrollLeft,scrollTop:je.scrollTop,scrollLeftNormalized:BCe(je,a?"rtl":"ltr"),scrollWidth:je.scrollWidth,top:vt.top,bottom:vt.bottom,left:vt.left,right:vt.right}}let at;if(je&&M!==!1){const vt=ge.current.children;if(vt.length>0){const At=vt[Me.get(M)];at=At?At.getBoundingClientRect():null}}return{tabsMeta:Ue,tabMeta:at}},Q=Lt(()=>{const{tabsMeta:je,tabMeta:Ue}=ee();let at=0,vt;if(L)vt="top",Ue&&je&&(at=Ue.top-je.top+je.scrollTop);else if(vt=a?"right":"left",Ue&&je){const Xt=a?je.scrollLeftNormalized+je.clientWidth-je.scrollWidth:je.scrollLeft;at=(a?-1:1)*(Ue[vt]-je[vt]+Xt)}const At={[vt]:at,[W]:Ue?Ue[W]:0};if(isNaN(G[vt])||isNaN(G[W]))te(At);else{const Xt=Math.abs(G[vt]-At[vt]),on=Math.abs(G[W]-At[W]);(Xt>=1||on>=1)&&te(At)}}),V=(je,{animation:Ue=!0}={})=>{Ue?OFe(k,Ne.current,je,{duration:i.transitions.duration.standard}):Ne.current[k]=je},j=je=>{let Ue=Ne.current[k];L?Ue+=je:(Ue+=je*(a?-1:1),Ue*=a&&oee()==="reverse"?-1:1),V(Ue)},ye=()=>{const je=Ne.current[$];let Ue=0;const at=Array.from(ge.current.children);for(let vt=0;vtje){vt===0&&(Ue=je);break}Ue+=At[$]}return Ue},ae=()=>{j(-1*ye())},Ee=()=>{j(ye())},Pe=C.useCallback(je=>{_e({overflow:null,scrollbarWidth:je})},[]),We=()=>{const je={};je.scrollbarSizeListener=D?be(ZFe,{onChange:Pe,className:yt(le.scrollableX,le.hideScrollbar)}):null;const at=D&&(y==="auto"&&(Y||pe)||y===!0);return je.scrollButtonStart=at?be(g,ie({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:b,direction:a?"right":"left",onClick:ae,disabled:!Y},I,{className:yt(le.scrollButtons,I.className)})):null,je.scrollButtonEnd=at?be(g,ie({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:b,direction:a?"left":"right",onClick:Ee,disabled:!pe},I,{className:yt(le.scrollButtons,I.className)})):null,je},Fe=Lt(je=>{const{tabsMeta:Ue,tabMeta:at}=ee();if(!(!at||!Ue)){if(at[B]Ue[H]){const vt=Ue[k]+(at[H]-Ue[H]);V(vt,{animation:je})}}}),Ae=Lt(()=>{D&&y!==!1&&me(!se)});C.useEffect(()=>{const je=y0(()=>{Ne.current&&Q()});let Ue;const at=Xt=>{Xt.forEach(on=>{on.removedNodes.forEach(X=>{var ce;(ce=Ue)==null||ce.unobserve(X)}),on.addedNodes.forEach(X=>{var ce;(ce=Ue)==null||ce.observe(X)})}),je(),Ae()},vt=wl(Ne.current);vt.addEventListener("resize",je);let At;return typeof ResizeObserver<"u"&&(Ue=new ResizeObserver(je),Array.from(ge.current.children).forEach(Xt=>{Ue.observe(Xt)})),typeof MutationObserver<"u"&&(At=new MutationObserver(at),At.observe(ge.current,{childList:!0})),()=>{var Xt,on;je.clear(),vt.removeEventListener("resize",je),(Xt=At)==null||Xt.disconnect(),(on=Ue)==null||on.disconnect()}},[Q,Ae]),C.useEffect(()=>{const je=Array.from(ge.current.children),Ue=je.length;if(typeof IntersectionObserver<"u"&&Ue>0&&D&&y!==!1){const at=je[0],vt=je[Ue-1],At={root:Ne.current,threshold:.99},Xt=we=>{fe(!we[0].isIntersecting)},on=new IntersectionObserver(Xt,At);on.observe(at);const X=we=>{de(!we[0].isIntersecting)},ce=new IntersectionObserver(X,At);return ce.observe(vt),()=>{on.disconnect(),ce.disconnect()}}},[D,y,se,u==null?void 0:u.length]),C.useEffect(()=>{ne(!0)},[]),C.useEffect(()=>{Q()}),C.useEffect(()=>{Fe(fW!==G)},[Fe,G]),C.useImperativeHandle(l,()=>({updateIndicator:Q,updateScrollButtons:Ae}),[Q,Ae]);const he=be(XFe,ie({},T,{className:yt(le.indicator,T.className),ownerState:K,style:ie({},G,T.style)}));let Ye=0;const Ke=C.Children.map(u,je=>{if(!C.isValidElement(je))return null;const Ue=je.props.value===void 0?Ye:je.props.value;Me.set(Ue,Ye);const at=Ue===M;return Ye+=1,C.cloneElement(je,ie({fullWidth:N==="fullWidth",indicator:at&&!z&&he,selected:at,selectionFollowsFocus:w,onChange:v,textColor:P,value:Ue},Ye===1&&M===!1&&!je.props.tabIndex?{tabIndex:0}:{}))}),Je=je=>{const Ue=ge.current,at=Vi(Ue).activeElement;if(at.getAttribute("role")!=="tab")return;let At=b==="horizontal"?"ArrowLeft":"ArrowUp",Xt=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&a&&(At="ArrowRight",Xt="ArrowLeft"),je.key){case At:je.preventDefault(),UE(Ue,at,dW);break;case Xt:je.preventDefault(),UE(Ue,at,uW);break;case"Home":je.preventDefault(),UE(Ue,null,uW);break;case"End":je.preventDefault(),UE(Ue,null,dW);break}},nt=We();return Vt(JFe,ie({className:yt(le.root,d),ownerState:K,ref:n,as:f},O,{children:[nt.scrollButtonStart,nt.scrollbarSizeListener,Vt(QFe,{className:le.scroller,ownerState:K,style:{overflow:Z.overflow,[L?`margin${a?"Left":"Right"}`:"marginBottom"]:R?void 0:-Z.scrollbarWidth},ref:Ne,children:[be(KFe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":b==="vertical"?"vertical":null,className:le.flexContainer,ownerState:K,onKeyDown:Je,ref:ge,role:"tablist",children:Ke}),z&&he]}),nt.scrollButtonEnd]}))}),t$e=e$e;function n$e(t){return Et("MuiTextField",t)}St("MuiTextField",["root"]);const r$e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],i$e={standard:Ite,filled:Ste,outlined:ul},a$e=t=>{const{classes:e}=t;return xt({root:["root"]},n$e,e)},o$e=He(ic,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),s$e=C.forwardRef(function(e,n){const r=kt({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:h,id:v,InputLabelProps:b,inputProps:g,InputProps:y,inputRef:w,label:x,maxRows:S,minRows:T,multiline:I=!1,name:P,onBlur:M,onChange:N,onFocus:R,placeholder:O,required:D=!1,rows:L,select:k=!1,SelectProps:B,type:H,value:$,variant:W="outlined"}=r,K=wt(r,r$e),le=ie({},r,{autoFocus:a,color:l,disabled:u,error:d,fullWidth:p,multiline:I,required:D,select:k,variant:W}),U=a$e(le),q={};W==="outlined"&&(b&&typeof b.shrink<"u"&&(q.notched=b.shrink),q.label=x),k&&((!B||!B.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const z=ap(v),ne=h&&z?`${z}-helper-text`:void 0,G=x&&z?`${z}-label`:void 0,te=i$e[W],Y=be(te,ie({"aria-describedby":ne,autoComplete:i,autoFocus:a,defaultValue:c,fullWidth:p,multiline:I,name:P,rows:L,maxRows:S,minRows:T,type:H,value:$,id:z,inputRef:w,onBlur:M,onChange:N,onFocus:R,placeholder:O,inputProps:g},q,y));return Vt(o$e,ie({className:yt(U.root,s),disabled:u,error:d,fullWidth:p,ref:n,required:D,color:l,variant:W,ownerState:le},K,{children:[x!=null&&x!==""&&be(zc,ie({htmlFor:z,id:G},b,{children:x})),k?be(dl,ie({"aria-describedby":ne,id:z,labelId:G,value:$,input:Y},B,{children:o})):Y,h&&be(i1,ie({id:ne},f,{children:h}))]}))}),su=s$e,l$e=({snackbarKey:t})=>{const{closeSnackbar:e}=RI();return E(ir,{onClick:()=>e(t),children:E(op,{style:{color:"white"}})})},$te="/alpha/api",Bte="/alpha/admin/history",Hv="/alpha/admin/login",Ute="/auth/login",Hte="/auth/regenerateToken",sk="/auth/validateToken",c$e="/auth/logout",Vte="/trs/getUntranslatedCarInfoList",kf="/alpha/admin/translate",rB="/alpha/admin/translate/details",u$e="/trs/getUntranslatedCarInfo",zte="/std/getInspectImage",d$e="/trs/registerUntranslatedCarInfo",f$e="/trs/updateUntranslatedCarInfo",p$e="/trs/getCarNameEnInfo",jte="/trs/listMaker",Gte="/std/getSearchResultOfSellInfo",Wte="/alpha/admin/history/details",h$e="/std/getBiddingResult",qte="/std/getBiddingHistory",Yte="/std/getSellInfoHistory",Jte="/std/getCarImages",iB="/alpha/admin/changepassword",Qte="/auth/changepassword",ea="/alpha/jadmin",bs="/alpha/user",Iw="/alpha/jadmin/login",Mw="/alpha/user/login",m$e="/alpha/user/infodetail",Kte="/alpha/user/panorama",g$e=ct.div` width: max-content; `,dh=t=>typeof t=="string"?t:E(C.Fragment,{children:t.map((e,n)=>E(g$e,{children:e},n))}),Xte=(t,e)=>{const n=t.replace(/rgba?|\(|\)/g,"").split(",");return`rgba(${e.red||n[0]}, ${e.green||n[1]}, ${e.blue||n[2]}, ${e.opacity||n[3]||1})`};function Dw(t){const e=fr(t.queryKey,{enabled:!1,...t.initial!==void 0?{initialData:t.initial}:{}}).data,n=Dl();return[e,i=>{let a;if(typeof i=="function"){const o=n.getQueryData(t.queryKey);a=i(o)}else a=i;n.setQueryData(t.queryKey,a)},n]}const fl=t=>`${t.getFullYear()}/${`0${t.getMonth()+1}`.slice(-2)}/${`0${t.getDate()}`.slice(-2)}`,lk=t=>`${fl(t)} ${`0${t.getHours()}`.slice(-2)}:${`0${t.getMinutes()}`.slice(-2)}`,aB=(t,e)=>(t.setDate(t.getDate()+e),t),u_=(t,e)=>{const n=new Date(t);return e==="start"?n.setHours(0,0,0,0):e==="end"&&n.setHours(23,59,59,999),n},Zte=C.createContext(void 0),v$e=({children:t})=>{const e={request:{limit:100,offset:0},searchOption:null,sortOrder:[]},[n,r]=C.useState(null),i={venue:[],maker:[],car:[],plan:[],year:[],model:[],color:[],shift:[],score:[]},[a,o]=C.useState(i),s=u_(new Date,"end"),l=u_(aB(new Date,-7),"start"),c=u_(new Date,"start"),u=window.location.href.includes(ea)?c:l,d={request:{limit:100,offset:0},searchOption:{startDate:u,endDate:s,userId:[],status:[],notification:[],carry:[]},sortOrder:null},[f,p]=C.useState(null),h={startDate:u,endDate:s,userId:[],status:[],notification:[],carry:[]},[v,b]=C.useState(h),[g,y]=C.useState(void 0),w={venueList:[],maker:[],car:[],plan:[],year:[],model:[],color:[],shift:[],score:[],result:{code:0}},[x,S]=C.useState(w),[T,I]=C.useState(void 0),[P,M]=C.useState(!1);return E(Zte.Provider,{value:{vehicleEditFilter:n,setVehicleEditFilter:r,initialSearchData:e,setIsMobile:y,isMobile:g,setSelectedOptionsNames:o,selectedOptionNames:a,initialSelectedOptions:i,vehicleFilterData:x,setVehicleFilterData:S,initialOfferSearchData:d,offerEditFilter:f,setOfferEditFilter:p,selectedOfferOptionNames:v,setSelectedOfferOptionsNames:b,initialOfferSelectedOptions:h,setIsAdmin:I,isAdmin:T,isDownloadingPDF:P,setIsDownloadingPDF:M},children:t})},ui=()=>{const t=C.useContext(Zte);if(t===void 0)throw new Error("useMyContext must be used within a MyProvider");return t};var oB=Object.defineProperty,y$e=Object.getOwnPropertyDescriptor,b$e=Object.getOwnPropertyNames,_$e=Object.prototype.hasOwnProperty,w$e=(t,e)=>{for(var n in e)oB(t,n,{get:e[n],enumerable:!0})},x$e=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of b$e(e))!_$e.call(t,i)&&i!==n&&oB(t,i,{get:()=>e[i],enumerable:!(r=y$e(e,i))||r.enumerable});return t},E$e=t=>x$e(oB({},"__esModule",{value:!0}),t),ene={};w$e(ene,{Headers:()=>Pw,flattenHeadersList:()=>R$e,flattenHeadersObject:()=>O$e,headersToList:()=>tne,headersToObject:()=>I$e,headersToString:()=>T$e,listToHeaders:()=>D$e,objectToHeaders:()=>P$e,reduceHeadersObject:()=>sB,stringToHeaders:()=>M$e});var Nl=E$e(ene),S$e=/[^a-z0-9\-#$%&'*+.^_`|~]/i;function Hy(t){if(typeof t!="string"&&(t=String(t)),S$e.test(t)||t.trim()==="")throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function C$e(t){return typeof t!="string"&&(t=String(t)),t}var qs=Symbol("normalizedHeaders"),HE=Symbol("rawHeaderNames"),pW,hW,Pw=class{constructor(t){this[pW]={},this[hW]=new Map,["Headers","HeadersPolyfill"].includes(t==null?void 0:t.constructor.name)||t instanceof Pw?t.forEach((n,r)=>{this.append(r,n)},this):Array.isArray(t)?t.forEach(([e,n])=>{this.append(e,Array.isArray(n)?n.join(", "):n)}):t&&Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e];this.append(e,Array.isArray(n)?n.join(", "):n)})}[(pW=qs,hW=HE,Symbol.iterator)](){return this.entries()}*keys(){for(const t of Object.keys(this[qs]))yield t}*values(){for(const t of Object.values(this[qs]))yield t}*entries(){for(const t of Object.keys(this[qs]))yield[t,this.get(t)]}get(t){return this[qs][Hy(t)]||null}set(t,e){const n=Hy(t);this[qs][n]=C$e(e),this[HE].set(n,t)}append(t,e){const n=Hy(t);let r=this.has(n)?`${this.get(n)}, ${e}`:e;this.set(t,r)}delete(t){if(!this.has(t))return;const e=Hy(t);delete this[qs][e],this[HE].delete(e)}all(){return this[qs]}raw(){const t={};for(const[e,n]of this.entries())t[this[HE].get(e)]=n;return t}has(t){return this[qs].hasOwnProperty(Hy(t))}forEach(t,e){for(const n in this[qs])this[qs].hasOwnProperty(n)&&t.call(e,this[qs][n],n,this)}};function tne(t){const e=[];return t.forEach((n,r)=>{const i=n.includes(",")?n.split(",").map(a=>a.trim()):n;e.push([r,i])}),e}function T$e(t){return tne(t).map(([r,i])=>{const a=[].concat(i);return`${r}: ${a.join(", ")}`}).join(`\r `)}var A$e=["user-agent"];function I$e(t){const e={};return t.forEach((n,r)=>{const i=!A$e.includes(r.toLowerCase())&&n.includes(",");e[r]=i?n.split(",").map(a=>a.trim()):n}),e}function M$e(t){return t.trim().split(/[\r\n]+/).reduce((n,r)=>{if(r.trim()==="")return n;const i=r.split(": "),a=i.shift(),o=i.join(": ");return n.append(a,o),n},new Pw)}function D$e(t){const e=new Pw;return t.forEach(([n,r])=>{[].concat(r).forEach(a=>{e.append(n,a)})}),e}function sB(t,e,n){return Object.keys(t).reduce((r,i)=>e(r,i,t[i]),n)}function P$e(t){return sB(t,(e,n,r)=>([].concat(r).filter(Boolean).forEach(a=>{e.append(n,a)}),e),new Pw)}function R$e(t){return t.map(([e,n])=>[e,[].concat(n).join(", ")])}function O$e(t){return sB(t,(e,n,r)=>(e[n]=[].concat(r).join(", "),e),{})}var Rw={};/*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */Rw.parse=k$e;Rw.serialize=F$e;var N$e=decodeURIComponent,L$e=encodeURIComponent,VE=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function k$e(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=t.split(";"),a=r.decode||N$e,o=0;o{try{return[null,await t().catch(n=>{throw n})]}catch(e){return[e,null]}};Object.defineProperty(tm,"__esModule",{value:!0});var G$e=lB;tm.until=G$e.until;var Nw={},C0={};Object.defineProperty(C0,"__esModule",{value:!0});C0.IS_PATCHED_MODULE=void 0;C0.IS_PATCHED_MODULE=Symbol("isPatchedModule");var Lw={},o1={},W$e={get exports(){return o1},set exports(t){o1=t}},gO,gW;function q$e(){if(gW)return gO;gW=1;var t=1e3,e=t*60,n=e*60,r=n*24,i=r*7,a=r*365.25;gO=function(u,d){d=d||{};var f=typeof u;if(f==="string"&&u.length>0)return o(u);if(f==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var f=parseFloat(d[1]),p=(d[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return f*a;case"weeks":case"week":case"w":return f*i;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*e;case"seconds":case"second":case"secs":case"sec":case"s":return f*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=e?Math.round(u/e)+"m":d>=t?Math.round(u/t)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=e?c(u,d,e,"minute"):d>=t?c(u,d,t,"second"):u+" ms"}function c(u,d,f,p){var h=d>=f*1.5;return Math.round(u/f)+" "+p+(h?"s":"")}return gO}function Y$e(t){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=q$e(),n.destroy=c,Object.keys(t).forEach(u=>{n[u]=t[u]}),n.names=[],n.skips=[],n.formatters={};function e(u){let d=0;for(let f=0;f{if(T==="%%")return"%";x++;const P=n.formatters[I];if(typeof P=="function"){const M=b[x];T=P.call(g,M),b.splice(x,1),x--}return T}),n.formatArgs.call(g,b),(g.log||n.log).apply(g,b)}return v.namespace=u,v.useColors=n.useColors(),v.color=n.selectColor(u),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==n.namespaces&&(p=n.namespaces,h=n.enabled(u)),h),set:b=>{f=b}}),typeof n.init=="function"&&n.init(v),v}function r(u,d){const f=n(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const f=(typeof u=="string"?u:"").split(/[\s,]+/),p=f.length;for(d=0;d"-"+d)].join(",");return n.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let d,f;for(d=0,f=n.skips.length;d{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function a(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l={CI_COMMIT_SHORT_SHA:"dddfaefe",CI_SERVER_REVISION:"4fcd588b89f",CI_BUILD_ID:"24430",CI_SERVER_VERSION_PATCH:"9",GITLAB_USER_LOGIN:"chen.wang",CI_BUILD_TAG:"integ_prd_1.0.13",MAIL:"/var/mail/gitlab-runner",USER:"gitlab-runner",CI_BUILD_REF:"dddfaefe6d3cba935ce108cd70fd5c2d60e14161",LC_TIME:"ja_JP.UTF-8",npm_config_user_agent:"npm/8.19.3 node/v16.19.0 linux x64 workspaces/false ci/gitlab",CI_SHARED_ENVIRONMENT:"true",CI:"true",CI_PROJECT_NAME:"alpha",CI_COMMIT_DESCRIPTION:` TTCA_UNNYOHOSHU-125 出品情報履歴一覧(個別画面)AAの不在申込履歴が複数行表示される See merge request nexty_aa/alpha!469`,CI_JOB_STAGE:"build",npm_node_execpath:"/usr/local/bin/node",CI_SERVER_VERSION:"12.3.9",SHLVL:"2",npm_config_noproxy:"",OLDPWD:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha",HOME:"/var/lib/gitlab-runner",CI_SERVER_HOST:"linux758sv",CI_COMMIT_REF_NAME:"integ_prd_1.0.13",CI_JOB_ID:"24430",npm_package_json:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources/package.json",CI_PIPELINE_SOURCE:"push",DAEMON_ARGS:"run --working-directory /var/lib/gitlab-runner --config /etc/gitlab-runner/config.toml --service gitlab-runner --syslog --user gitlab-runner",GRADLE_HOME:"/usr/lib/gradle/default-gradle",CI_SERVER_VERSION_MAJOR:"12",CI_REGISTRY_PASSWORD:"h1knme8gKBuwEE1qDiy_",CI_COMMIT_REF_PROTECTED:"false",LC_MONETARY:"ja_JP.UTF-8",CI_BUILD_TOKEN:"h1knme8gKBuwEE1qDiy_",ALPHA_ENV:"prd",npm_config_userconfig:"/var/lib/gitlab-runner/.npmrc",npm_config_local_prefix:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources",CI_PROJECT_ID:"68",GITLAB_FEATURES:"",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/127/bus",GITLAB_CI:"true",CI_COMMIT_SHA:"dddfaefe6d3cba935ce108cd70fd5c2d60e14161",CI_COMMIT_TAG:"integ_prd_1.0.13",COLOR:"0",npm_config_metrics_registry:"https://registry.npmjs.org/",ENV_MODULE:"management_aa",CI_REGISTRY_USER:"gitlab-ci-token",CI_PROJECT_PATH:"nexty_aa/alpha",LOGNAME:"gitlab-runner",CI_PROJECT_DIR:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha",JOURNAL_STREAM:"9:34413",CI_PROJECT_NAMESPACE:"nexty_aa",_:"/usr/local/bin/npm",npm_config_prefix:"/usr/local",CI_JOB_TOKEN:"h1knme8gKBuwEE1qDiy_",CI_SERVER_NAME:"GitLab",CI_NODE_TOTAL:"1",XDG_SESSION_ID:"c3138",npm_config_cache:"/var/lib/gitlab-runner/.npm",CI_PIPELINE_URL:"http://linux758sv/gitlab/nexty_aa/alpha/pipelines/1941",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/node_modules/.bin:/var/lib/gitlab-runner/builds/node_modules/.bin:/var/lib/gitlab-runner/node_modules/.bin:/var/lib/node_modules/.bin:/var/node_modules/.bin:/node_modules/.bin:/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/lib/gradle/default-gradle/bin:/usr/lib/jvm/default-java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",INVOCATION_ID:"49b579301d4b4a8e8725bdc3da7e462f",CONFIG_FILE:"/etc/gitlab-runner/config.toml",CI_SERVER_VERSION_MINOR:"3",CI_RUNNER_DESCRIPTION:"Linux758sv",NODE:"/usr/local/bin/node",npm_package_name:"ttc-alpha-front",CI_COMMIT_TITLE:"Merge branch 'TTCA_UNNYOHOSHU-125' into 'develop'",CI_PROJECT_VISIBILITY:"private",S_COLORS:"auto",GITLAB_USER_EMAIL:"chen.wang@nsw.co.jp",LC_ADDRESS:"ja_JP.UTF-8",XDG_RUNTIME_DIR:"/run/user/127",CI_BUILD_REF_SLUG:"integ-prd-1-0-13",ALPHA_APP_VERSION:"1.0.13",CI_SERVER:"yes",npm_config_legacy_peer_deps:"true",LANG:"en_US.UTF-8",LC_TELEPHONE:"ja_JP.UTF-8",CI_PAGES_URL:"http://nexty_aa.example.com/alpha",CI_BUILD_BEFORE_SHA:"0000000000000000000000000000000000000000",CI_PROJECT_REPOSITORY_LANGUAGES:"java,typescript,shell,sqlpl,css",npm_lifecycle_script:"tsc && vite build",CI_PAGES_DOMAIN:"example.com",LC_NAME:"ja_JP.UTF-8",CI_REPOSITORY_URL:"http://gitlab-ci-token:h1knme8gKBuwEE1qDiy_@linux758sv/gitlab/nexty_aa/alpha.git",SHELL:"/bin/bash",npm_package_version:"prd-1.0.13",npm_lifecycle_event:"build",CI_RUNNER_ID:"6",GITLAB_USER_NAME:"王宸",CI_API_V4_URL:"http://linux758sv/gitlab/api/v4",LC_MEASUREMENT:"ja_JP.UTF-8",CI_PIPELINE_IID:"1588",CI_BUILD_NAME:"management_aa",CI_JOB_URL:"http://linux758sv/gitlab/nexty_aa/alpha/-/jobs/24430",LC_IDENTIFICATION:"ja_JP.UTF-8",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_config_init_module:"/var/lib/gitlab-runner/.npm-init.js",JAVA_HOME:"/usr/lib/jvm/default-java",CI_COMMIT_REF_SLUG:"integ-prd-1-0-13",PWD:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",CI_RUNNER_TAGS:"shared",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/usr/local",CI_BUILD_REF_NAME:"integ_prd_1.0.13",CI_PROJECT_URL:"http://linux758sv/gitlab/nexty_aa/alpha",CI_PIPELINE_ID:"1941",CI_COMMIT_BEFORE_SHA:"0000000000000000000000000000000000000000",CI_PROJECT_PATH_SLUG:"nexty-aa-alpha",LC_NUMERIC:"ja_JP.UTF-8",CI_CONFIG_PATH:".gitlab-ci.yml",npm_command:"run-script",LC_PAPER:"ja_JP.UTF-8",CI_COMMIT_MESSAGE:`Merge branch 'TTCA_UNNYOHOSHU-125' into 'develop' TTCA_UNNYOHOSHU-125 出品情報履歴一覧(個別画面)AAの不在申込履歴が複数行表示される See merge request nexty_aa/alpha!469`,CI_BUILD_STAGE:"build",GITLAB_USER_ID:"68",CI_JOB_NAME:"management_aa",INIT_CWD:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources",EDITOR:"vi",NODE_ENV:"production",COMMAND:"build"}.DEBUG),l}function o(){try{return localStorage}catch{}}t.exports=J$e(e);const{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(W$e,o1);var rne={},ine={},RM={},UT={},Q$e={get exports(){return UT},set exports(t){UT=t}},sv=typeof Reflect=="object"?Reflect:null,vW=sv&&typeof sv.apply=="function"?sv.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},TC;sv&&typeof sv.ownKeys=="function"?TC=sv.ownKeys:Object.getOwnPropertySymbols?TC=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:TC=function(e){return Object.getOwnPropertyNames(e)};function K$e(t){console&&console.warn&&console.warn(t)}var ane=Number.isNaN||function(e){return e!==e};function pr(){pr.init.call(this)}Q$e.exports=pr;UT.once=tBe;pr.EventEmitter=pr;pr.prototype._events=void 0;pr.prototype._eventsCount=0;pr.prototype._maxListeners=void 0;var yW=10;function OM(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(pr,"defaultMaxListeners",{enumerable:!0,get:function(){return yW},set:function(t){if(typeof t!="number"||t<0||ane(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");yW=t}});pr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};pr.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||ane(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function one(t){return t._maxListeners===void 0?pr.defaultMaxListeners:t._maxListeners}pr.prototype.getMaxListeners=function(){return one(this)};pr.prototype.emit=function(e){for(var n=[],r=1;r0&&(o=n[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(l===void 0)return!1;if(typeof l=="function")vW(l,this,n);else for(var c=l.length,u=dne(l,c),r=0;r0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=o.length,K$e(s)}return t}pr.prototype.addListener=function(e,n){return sne(this,e,n,!1)};pr.prototype.on=pr.prototype.addListener;pr.prototype.prependListener=function(e,n){return sne(this,e,n,!0)};function X$e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function lne(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=X$e.bind(r);return i.listener=n,r.wrapFn=i,i}pr.prototype.once=function(e,n){return OM(n),this.on(e,lne(this,e,n)),this};pr.prototype.prependOnceListener=function(e,n){return OM(n),this.prependListener(e,lne(this,e,n)),this};pr.prototype.removeListener=function(e,n){var r,i,a,o,s;if(OM(n),i=this._events,i===void 0)return this;if(r=i[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(a=-1,o=r.length-1;o>=0;o--)if(r[o]===n||r[o].listener===n){s=r[o].listener,a=o;break}if(a<0)return this;a===0?r.shift():Z$e(r,a),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,s||n)}return this};pr.prototype.off=pr.prototype.removeListener;pr.prototype.removeAllListeners=function(e){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var a=Object.keys(r),o;for(i=0;i=0;i--)this.removeListener(e,n[i]);return this};function cne(t,e,n){var r=t._events;if(r===void 0)return[];var i=r[e];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?eBe(i):dne(i,i.length)}pr.prototype.listeners=function(e){return cne(this,e,!0)};pr.prototype.rawListeners=function(e){return cne(this,e,!1)};pr.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):une.call(t,e)};pr.prototype.listenerCount=une;function une(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}pr.prototype.eventNames=function(){return this._eventsCount>0?TC(this._events):[]};function dne(t,e){for(var n=new Array(e),r=0;r0&&b[b.length-1])&&(x[0]===6||x[0]===2)){p=0;continue}if(x[0]===3&&(!b||x[1]>b[0]&&x[1]0)&&!(v=h.next()).done;)b.push(v.value)}catch(y){g={error:y}}finally{try{v&&!v.done&&(p=h.return)&&p.call(h)}finally{if(g)throw g.error}}return b},a=mt&&mt.__spreadArray||function(d,f){for(var p=0,h=f.length,v=d.length;p=u.length&&(u=void 0),{value:u&&u[p++],done:!u}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Interceptor=t.InterceptorReadyState=t.deleteGlobalSymbol=t.getGlobalSymbol=void 0;var n=o1,r=rne,i=Oh;function a(u){return globalThis[u]||void 0}t.getGlobalSymbol=a;function o(u,d){globalThis[u]=d}function s(u){delete globalThis[u]}t.deleteGlobalSymbol=s;var l;(function(u){u.IDLE="IDLE",u.APPLYING="APPLYING",u.APPLIED="APPLIED",u.DISPOSING="DISPOSING",u.DISPOSED="DISPOSED"})(l=t.InterceptorReadyState||(t.InterceptorReadyState={}));var c=function(){function u(d){this.symbol=d,this.readyState=l.IDLE,this.emitter=new r.AsyncEventEmitter,this.subscriptions=[],this.log=n.debug(d.description),this.emitter.setMaxListeners(0),this.log("constructing the interceptor...")}return u.prototype.checkEnvironment=function(){return!0},u.prototype.apply=function(){var d=this,f=this.log.extend("apply");if(f("applying the interceptor..."),this.readyState===l.APPLIED){f("intercepted already applied!");return}var p=this.checkEnvironment();if(!p){f("the interceptor cannot be applied in this environment!");return}this.readyState=l.APPLYING,this.emitter.activate(),f("activated the emiter!",this.emitter.readyState);var h=this.getInstance();if(h){f("found a running instance, reusing..."),this.on=function(v,b){f('proxying the "%s" listener',v),h.emitter.addListener(v,b),d.subscriptions.push(function(){h.emitter.removeListener(v,b),f('removed proxied "%s" listener!',v)})},i.nextTick(function(){d.readyState=l.APPLIED});return}f("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),i.nextTick(function(){d.readyState=l.APPLIED})},u.prototype.setup=function(){},u.prototype.on=function(d,f){var p=this.log.extend("on");if(this.readyState===l.DISPOSING||this.readyState===l.DISPOSED){p("cannot listen to events, already disposed!");return}p('adding "%s" event listener:',d,f.name),this.emitter.on(d,f)},u.prototype.dispose=function(){var d,f,p=this,h=this.log.extend("dispose");if(this.readyState===l.DISPOSED){h("cannot dispose, already disposed!");return}if(h("disposing the interceptor..."),this.readyState=l.DISPOSING,!this.getInstance()){h("no interceptors running, skipping dispose...");return}if(this.clearInstance(),h("global symbol deleted:",a(this.symbol)),this.subscriptions.length>0){h("disposing of %d subscriptions...",this.subscriptions.length);try{for(var v=e(this.subscriptions),b=v.next();!b.done;b=v.next()){var g=b.value;g()}}catch(y){d={error:y}}finally{try{b&&!b.done&&(f=v.return)&&f.call(v)}finally{if(d)throw d.error}}this.subscriptions=[],h("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.deactivate(),h("destroyed the listener!"),i.nextTick(function(){p.readyState=l.DISPOSED})},u.prototype.getInstance=function(){var d,f=a(this.symbol);return this.log("retrieved global instance:",(d=f==null?void 0:f.constructor)===null||d===void 0?void 0:d.name),f},u.prototype.setInstance=function(){o(this.symbol,this),this.log("set global instance!",this.symbol.description)},u.prototype.clearInstance=function(){s(this.symbol),this.log("cleared global instance!",this.symbol.description)},u}();t.Interceptor=c})(Lw);var NM={},cBe=mt&&mt.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uBe=mt&&mt.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(NM,"__esModule",{value:!0});NM.BatchInterceptor=void 0;var dBe=Lw,fBe=function(t){cBe(e,t);function e(n){var r=this;return e.symbol=Symbol(n.name),r=t.call(this,e.symbol)||this,r.interceptors=n.interceptors,r}return e.prototype.setup=function(){var n,r,i=this.log.extend("setup");i("applying all %d interceptors...",this.interceptors.length);var a=function(u){i('applying "%s" interceptor...',u.constructor.name),u.apply(),i("adding interceptor dispose subscription"),o.subscriptions.push(function(){return u.dispose()})},o=this;try{for(var s=uBe(this.interceptors),l=s.next();!l.done;l=s.next()){var c=l.value;a(c)}}catch(u){n={error:u}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},e.prototype.on=function(n,r){this.interceptors.forEach(function(i){i.on(n,r)})},e}(dBe.Interceptor);NM.BatchInterceptor=fBe;var nm={},cc={},cB={},vO={},yO={},pne=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,n);if(o.value!==i||o.enumerable!==!0)return!1}return!0},bO,bW;function LM(){if(bW)return bO;bW=1;var t=pne;return bO=function(){return t()&&!!Symbol.toStringTag},bO}var _W=typeof Symbol<"u"&&Symbol,pBe=pne,hBe=function(){return typeof _W!="function"||typeof Symbol!="function"||typeof _W("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:pBe()},mBe="Function.prototype.bind called on incompatible ",_O=Array.prototype.slice,gBe=Object.prototype.toString,vBe="[object Function]",yBe=function(e){var n=this;if(typeof n!="function"||gBe.call(n)!==vBe)throw new TypeError(mBe+n);for(var r=_O.call(arguments,1),i,a=function(){if(this instanceof i){var u=n.apply(this,r.concat(_O.call(arguments)));return Object(u)===u?u:this}else return n.apply(e,r.concat(_O.call(arguments)))},o=Math.max(0,n.length-r.length),s=[],l=0;l"u"?Rn:cf(Uint8Array),cv={"%AggregateError%":typeof AggregateError>"u"?Rn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Rn:ArrayBuffer,"%ArrayIteratorPrototype%":jm?cf([][Symbol.iterator]()):Rn,"%AsyncFromSyncIteratorPrototype%":Rn,"%AsyncFunction%":vg,"%AsyncGenerator%":vg,"%AsyncGeneratorFunction%":vg,"%AsyncIteratorPrototype%":vg,"%Atomics%":typeof Atomics>"u"?Rn:Atomics,"%BigInt%":typeof BigInt>"u"?Rn:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Rn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Rn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Rn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Rn:FinalizationRegistry,"%Function%":hne,"%GeneratorFunction%":vg,"%Int8Array%":typeof Int8Array>"u"?Rn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Rn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Rn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":jm?cf(cf([][Symbol.iterator]())):Rn,"%JSON%":typeof JSON=="object"?JSON:Rn,"%Map%":typeof Map>"u"?Rn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!jm?Rn:cf(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Rn:Promise,"%Proxy%":typeof Proxy>"u"?Rn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Rn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Rn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!jm?Rn:cf(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Rn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":jm?cf(""[Symbol.iterator]()):Rn,"%Symbol%":jm?Symbol:Rn,"%SyntaxError%":zv,"%ThrowTypeError%":xBe,"%TypedArray%":EBe,"%TypeError%":lv,"%Uint8Array%":typeof Uint8Array>"u"?Rn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Rn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Rn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Rn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Rn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Rn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Rn:WeakSet},SBe=function t(e){var n;if(e==="%AsyncFunction%")n=wO("async function () {}");else if(e==="%GeneratorFunction%")n=wO("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=wO("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&(n=cf(i.prototype))}return cv[e]=n,n},wW={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},kw=uB,HT=wBe,CBe=kw.call(Function.call,Array.prototype.concat),TBe=kw.call(Function.apply,Array.prototype.splice),xW=kw.call(Function.call,String.prototype.replace),VT=kw.call(Function.call,String.prototype.slice),ABe=kw.call(Function.call,RegExp.prototype.exec),IBe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,MBe=/\\(\\)?/g,DBe=function(e){var n=VT(e,0,1),r=VT(e,-1);if(n==="%"&&r!=="%")throw new zv("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new zv("invalid intrinsic syntax, expected opening `%`");var i=[];return xW(e,IBe,function(a,o,s,l){i[i.length]=s?xW(l,MBe,"$1"):o||a}),i},PBe=function(e,n){var r=e,i;if(HT(wW,r)&&(i=wW[r],r="%"+i[0]+"%"),HT(cv,r)){var a=cv[r];if(a===vg&&(a=SBe(r)),typeof a>"u"&&!n)throw new lv("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:a}}throw new zv("intrinsic "+e+" does not exist!")},kM=function(e,n){if(typeof e!="string"||e.length===0)throw new lv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new lv('"allowMissing" argument must be a boolean');if(ABe(/^%?[^%]*%?$/,e)===null)throw new zv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=DBe(e),i=r.length>0?r[0]:"",a=PBe("%"+i+"%",n),o=a.name,s=a.value,l=!1,c=a.alias;c&&(i=c[0],TBe(r,CBe([0,1],c)));for(var u=1,d=!0;u=r.length){var v=gh(s,f);d=!!v,d&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[f]}else d=HT(s,f),s=s[f];d&&!l&&(cv[o]=s)}}return s},ck={},RBe={get exports(){return ck},set exports(t){ck=t}};(function(t){var e=uB,n=kM,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||e.call(i,r),o=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(d){var f=a(e,i,arguments);if(o&&s){var p=o(f,"length");p.configurable&&s(f,"length",{value:1+l(0,d.length-(arguments.length-1))})}return f};var c=function(){return a(e,r,arguments)};s?s(t.exports,"apply",{value:c}):t.exports.apply=c})(RBe);var mne=kM,gne=ck,OBe=gne(mne("String.prototype.indexOf")),FM=function(e,n){var r=mne(e,!!n);return typeof r=="function"&&OBe(e,".prototype.")>-1?gne(r):r},EO,EW;function NBe(){if(EW)return EO;EW=1;var t=LM()(),e=FM,n=e("Object.prototype.toString"),r=function(s){return t&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:n(s)==="[object Arguments]"},i=function(s){return r(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&n(s)!=="[object Array]"&&n(s.callee)==="[object Function]"},a=function(){return r(arguments)}();return r.isLegacyArguments=i,EO=a?r:i,EO}var SO,SW;function LBe(){if(SW)return SO;SW=1;var t=Object.prototype.toString,e=Function.prototype.toString,n=/^\s*(?:function)?\*/,r=LM()(),i=Object.getPrototypeOf,a=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},o;return SO=function(l){if(typeof l!="function")return!1;if(n.test(e.call(l)))return!0;if(!r){var c=t.call(l);return c==="[object GeneratorFunction]"}if(!i)return!1;if(typeof o>"u"){var u=a();o=u?i(u):!1}return i(l)===o},SO}var CO,CW;function kBe(){if(CW)return CO;CW=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,r;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw r}}),r={},e(function(){throw 42},null,n)}catch(y){y!==r&&(e=null)}else e=null;var i=/^\s*class\b/,a=function(w){try{var x=t.call(w);return i.test(x)}catch{return!1}},o=function(w){try{return a(w)?!1:(t.call(w),!0)}catch{return!1}},s=Object.prototype.toString,l="[object Object]",c="[object Function]",u="[object GeneratorFunction]",d="[object HTMLAllCollection]",f="[object HTML document.all class]",p="[object HTMLCollection]",h=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var g=document.all;s.call(g)===s.call(document.all)&&(b=function(w){if((v||!w)&&(typeof w>"u"||typeof w=="object"))try{var x=s.call(w);return(x===d||x===f||x===p||x===l)&&w("")==null}catch{}return!1})}return CO=e?function(w){if(b(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;try{e(w,null,n)}catch(x){if(x!==r)return!1}return!a(w)&&o(w)}:function(w){if(b(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;if(h)return o(w);if(a(w))return!1;var x=s.call(w);return x!==c&&x!==u&&!/^\[object HTML/.test(x)?!1:o(w)},CO}var TO,TW;function vne(){if(TW)return TO;TW=1;var t=kBe(),e=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=function(l,c,u){for(var d=0,f=l.length;d=3&&(d=u),e.call(l)==="[object Array]"?r(l,c,d):typeof l=="string"?i(l,c,d):a(l,c,d)};return TO=o,TO}var AO,AW;function yne(){if(AW)return AO;AW=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?mt:globalThis;return AO=function(){for(var r=[],i=0;i"u"?mt:globalThis,s=e(),l=n("Array.prototype.indexOf",!0)||function(h,v){for(var b=0;b-1}return a?f(h):!1},MO}var DO,DW;function FBe(){if(DW)return DO;DW=1;var t=vne(),e=yne(),n=FM,r=bne(),i=n("Object.prototype.toString"),a=LM()(),o=typeof globalThis>"u"?mt:globalThis,s=e(),l=n("String.prototype.slice"),c={},u=Object.getPrototypeOf;a&&r&&u&&t(s,function(p){if(typeof o[p]=="function"){var h=new o[p];if(Symbol.toStringTag in h){var v=u(h),b=r(v,Symbol.toStringTag);if(!b){var g=u(v);b=r(g,Symbol.toStringTag)}c[p]=b.get}}});var d=function(h){var v=!1;return t(c,function(b,g){if(!v)try{var y=b.call(h);y===g&&(v=y)}catch{}}),v},f=_ne();return DO=function(h){return f(h)?!a||!(Symbol.toStringTag in h)?l(i(h),8,-1):d(h):!1},DO}var PW;function $Be(){return PW||(PW=1,function(t){var e=NBe(),n=LBe(),r=FBe(),i=_ne();function a(ee){return ee.call.bind(ee)}var o=typeof BigInt<"u",s=typeof Symbol<"u",l=a(Object.prototype.toString),c=a(Number.prototype.valueOf),u=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(o)var f=a(BigInt.prototype.valueOf);if(s)var p=a(Symbol.prototype.valueOf);function h(ee,Q){if(typeof ee!="object")return!1;try{return Q(ee),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=n,t.isTypedArray=i;function v(ee){return typeof Promise<"u"&&ee instanceof Promise||ee!==null&&typeof ee=="object"&&typeof ee.then=="function"&&typeof ee.catch=="function"}t.isPromise=v;function b(ee){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ee):i(ee)||q(ee)}t.isArrayBufferView=b;function g(ee){return r(ee)==="Uint8Array"}t.isUint8Array=g;function y(ee){return r(ee)==="Uint8ClampedArray"}t.isUint8ClampedArray=y;function w(ee){return r(ee)==="Uint16Array"}t.isUint16Array=w;function x(ee){return r(ee)==="Uint32Array"}t.isUint32Array=x;function S(ee){return r(ee)==="Int8Array"}t.isInt8Array=S;function T(ee){return r(ee)==="Int16Array"}t.isInt16Array=T;function I(ee){return r(ee)==="Int32Array"}t.isInt32Array=I;function P(ee){return r(ee)==="Float32Array"}t.isFloat32Array=P;function M(ee){return r(ee)==="Float64Array"}t.isFloat64Array=M;function N(ee){return r(ee)==="BigInt64Array"}t.isBigInt64Array=N;function R(ee){return r(ee)==="BigUint64Array"}t.isBigUint64Array=R;function O(ee){return l(ee)==="[object Map]"}O.working=typeof Map<"u"&&O(new Map);function D(ee){return typeof Map>"u"?!1:O.working?O(ee):ee instanceof Map}t.isMap=D;function L(ee){return l(ee)==="[object Set]"}L.working=typeof Set<"u"&&L(new Set);function k(ee){return typeof Set>"u"?!1:L.working?L(ee):ee instanceof Set}t.isSet=k;function B(ee){return l(ee)==="[object WeakMap]"}B.working=typeof WeakMap<"u"&&B(new WeakMap);function H(ee){return typeof WeakMap>"u"?!1:B.working?B(ee):ee instanceof WeakMap}t.isWeakMap=H;function $(ee){return l(ee)==="[object WeakSet]"}$.working=typeof WeakSet<"u"&&$(new WeakSet);function W(ee){return $(ee)}t.isWeakSet=W;function K(ee){return l(ee)==="[object ArrayBuffer]"}K.working=typeof ArrayBuffer<"u"&&K(new ArrayBuffer);function le(ee){return typeof ArrayBuffer>"u"?!1:K.working?K(ee):ee instanceof ArrayBuffer}t.isArrayBuffer=le;function U(ee){return l(ee)==="[object DataView]"}U.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&U(new DataView(new ArrayBuffer(1),0,1));function q(ee){return typeof DataView>"u"?!1:U.working?U(ee):ee instanceof DataView}t.isDataView=q;var z=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ne(ee){return l(ee)==="[object SharedArrayBuffer]"}function G(ee){return typeof z>"u"?!1:(typeof ne.working>"u"&&(ne.working=ne(new z)),ne.working?ne(ee):ee instanceof z)}t.isSharedArrayBuffer=G;function te(ee){return l(ee)==="[object AsyncFunction]"}t.isAsyncFunction=te;function Y(ee){return l(ee)==="[object Map Iterator]"}t.isMapIterator=Y;function fe(ee){return l(ee)==="[object Set Iterator]"}t.isSetIterator=fe;function pe(ee){return l(ee)==="[object Generator]"}t.isGeneratorObject=pe;function de(ee){return l(ee)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=de;function se(ee){return h(ee,c)}t.isNumberObject=se;function me(ee){return h(ee,u)}t.isStringObject=me;function Z(ee){return h(ee,d)}t.isBooleanObject=Z;function _e(ee){return o&&h(ee,f)}t.isBigIntObject=_e;function Me(ee){return s&&h(ee,p)}t.isSymbolObject=Me;function Ne(ee){return se(ee)||me(ee)||Z(ee)||_e(ee)||Me(ee)}t.isBoxedPrimitive=Ne;function ge(ee){return typeof Uint8Array<"u"&&(le(ee)||G(ee))}t.isAnyArrayBuffer=ge,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ee){Object.defineProperty(t,ee,{enumerable:!1,value:function(){throw new Error(ee+" is not supported in userland")}})})}(yO)),yO}var PO,RW;function BBe(){return RW||(RW=1,PO=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),PO}var zT={},OW={get exports(){return zT},set exports(t){zT=t}},NW;function UBe(){return NW||(NW=1,typeof Object.create=="function"?OW.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:OW.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}),zT}var LW;function wne(){return LW||(LW=1,function(t){var e=Object.getOwnPropertyDescriptors||function(q){for(var z=Object.keys(q),ne={},G=0;G=G)return fe;switch(fe){case"%s":return String(ne[z++]);case"%d":return Number(ne[z++]);case"%j":try{return JSON.stringify(ne[z++])}catch{return"[Circular]"}default:return fe}}),Y=ne[z];z"u")return function(){return t.deprecate(U,q).apply(this,arguments)};var z=!1;function ne(){if(!z){if(process.throwDeprecation)throw new Error(q);process.traceDeprecation?console.trace(q):console.error(q),z=!0}return U.apply(this,arguments)}return ne};var r={},i=/^$/;if({CI_COMMIT_SHORT_SHA:"dddfaefe",CI_SERVER_REVISION:"4fcd588b89f",CI_BUILD_ID:"24430",CI_SERVER_VERSION_PATCH:"9",GITLAB_USER_LOGIN:"chen.wang",CI_BUILD_TAG:"integ_prd_1.0.13",MAIL:"/var/mail/gitlab-runner",USER:"gitlab-runner",CI_BUILD_REF:"dddfaefe6d3cba935ce108cd70fd5c2d60e14161",LC_TIME:"ja_JP.UTF-8",npm_config_user_agent:"npm/8.19.3 node/v16.19.0 linux x64 workspaces/false ci/gitlab",CI_SHARED_ENVIRONMENT:"true",CI:"true",CI_PROJECT_NAME:"alpha",CI_COMMIT_DESCRIPTION:` TTCA_UNNYOHOSHU-125 出品情報履歴一覧(個別画面)AAの不在申込履歴が複数行表示される See merge request nexty_aa/alpha!469`,CI_JOB_STAGE:"build",npm_node_execpath:"/usr/local/bin/node",CI_SERVER_VERSION:"12.3.9",SHLVL:"2",npm_config_noproxy:"",OLDPWD:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha",HOME:"/var/lib/gitlab-runner",CI_SERVER_HOST:"linux758sv",CI_COMMIT_REF_NAME:"integ_prd_1.0.13",CI_JOB_ID:"24430",npm_package_json:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources/package.json",CI_PIPELINE_SOURCE:"push",DAEMON_ARGS:"run --working-directory /var/lib/gitlab-runner --config /etc/gitlab-runner/config.toml --service gitlab-runner --syslog --user gitlab-runner",GRADLE_HOME:"/usr/lib/gradle/default-gradle",CI_SERVER_VERSION_MAJOR:"12",CI_REGISTRY_PASSWORD:"h1knme8gKBuwEE1qDiy_",CI_COMMIT_REF_PROTECTED:"false",LC_MONETARY:"ja_JP.UTF-8",CI_BUILD_TOKEN:"h1knme8gKBuwEE1qDiy_",ALPHA_ENV:"prd",npm_config_userconfig:"/var/lib/gitlab-runner/.npmrc",npm_config_local_prefix:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources",CI_PROJECT_ID:"68",GITLAB_FEATURES:"",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/127/bus",GITLAB_CI:"true",CI_COMMIT_SHA:"dddfaefe6d3cba935ce108cd70fd5c2d60e14161",CI_COMMIT_TAG:"integ_prd_1.0.13",COLOR:"0",npm_config_metrics_registry:"https://registry.npmjs.org/",ENV_MODULE:"management_aa",CI_REGISTRY_USER:"gitlab-ci-token",CI_PROJECT_PATH:"nexty_aa/alpha",LOGNAME:"gitlab-runner",CI_PROJECT_DIR:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha",JOURNAL_STREAM:"9:34413",CI_PROJECT_NAMESPACE:"nexty_aa",_:"/usr/local/bin/npm",npm_config_prefix:"/usr/local",CI_JOB_TOKEN:"h1knme8gKBuwEE1qDiy_",CI_SERVER_NAME:"GitLab",CI_NODE_TOTAL:"1",XDG_SESSION_ID:"c3138",npm_config_cache:"/var/lib/gitlab-runner/.npm",CI_PIPELINE_URL:"http://linux758sv/gitlab/nexty_aa/alpha/pipelines/1941",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/node_modules/.bin:/var/lib/gitlab-runner/builds/node_modules/.bin:/var/lib/gitlab-runner/node_modules/.bin:/var/lib/node_modules/.bin:/var/node_modules/.bin:/node_modules/.bin:/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/lib/gradle/default-gradle/bin:/usr/lib/jvm/default-java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",INVOCATION_ID:"49b579301d4b4a8e8725bdc3da7e462f",CONFIG_FILE:"/etc/gitlab-runner/config.toml",CI_SERVER_VERSION_MINOR:"3",CI_RUNNER_DESCRIPTION:"Linux758sv",NODE:"/usr/local/bin/node",npm_package_name:"ttc-alpha-front",CI_COMMIT_TITLE:"Merge branch 'TTCA_UNNYOHOSHU-125' into 'develop'",CI_PROJECT_VISIBILITY:"private",S_COLORS:"auto",GITLAB_USER_EMAIL:"chen.wang@nsw.co.jp",LC_ADDRESS:"ja_JP.UTF-8",XDG_RUNTIME_DIR:"/run/user/127",CI_BUILD_REF_SLUG:"integ-prd-1-0-13",ALPHA_APP_VERSION:"1.0.13",CI_SERVER:"yes",npm_config_legacy_peer_deps:"true",LANG:"en_US.UTF-8",LC_TELEPHONE:"ja_JP.UTF-8",CI_PAGES_URL:"http://nexty_aa.example.com/alpha",CI_BUILD_BEFORE_SHA:"0000000000000000000000000000000000000000",CI_PROJECT_REPOSITORY_LANGUAGES:"java,typescript,shell,sqlpl,css",npm_lifecycle_script:"tsc && vite build",CI_PAGES_DOMAIN:"example.com",LC_NAME:"ja_JP.UTF-8",CI_REPOSITORY_URL:"http://gitlab-ci-token:h1knme8gKBuwEE1qDiy_@linux758sv/gitlab/nexty_aa/alpha.git",SHELL:"/bin/bash",npm_package_version:"prd-1.0.13",npm_lifecycle_event:"build",CI_RUNNER_ID:"6",GITLAB_USER_NAME:"王宸",CI_API_V4_URL:"http://linux758sv/gitlab/api/v4",LC_MEASUREMENT:"ja_JP.UTF-8",CI_PIPELINE_IID:"1588",CI_BUILD_NAME:"management_aa",CI_JOB_URL:"http://linux758sv/gitlab/nexty_aa/alpha/-/jobs/24430",LC_IDENTIFICATION:"ja_JP.UTF-8",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_config_init_module:"/var/lib/gitlab-runner/.npm-init.js",JAVA_HOME:"/usr/lib/jvm/default-java",CI_COMMIT_REF_SLUG:"integ-prd-1-0-13",PWD:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",CI_RUNNER_TAGS:"shared",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/usr/local",CI_BUILD_REF_NAME:"integ_prd_1.0.13",CI_PROJECT_URL:"http://linux758sv/gitlab/nexty_aa/alpha",CI_PIPELINE_ID:"1941",CI_COMMIT_BEFORE_SHA:"0000000000000000000000000000000000000000",CI_PROJECT_PATH_SLUG:"nexty-aa-alpha",LC_NUMERIC:"ja_JP.UTF-8",CI_CONFIG_PATH:".gitlab-ci.yml",npm_command:"run-script",LC_PAPER:"ja_JP.UTF-8",CI_COMMIT_MESSAGE:`Merge branch 'TTCA_UNNYOHOSHU-125' into 'develop' TTCA_UNNYOHOSHU-125 出品情報履歴一覧(個別画面)AAの不在申込履歴が複数行表示される See merge request nexty_aa/alpha!469`,CI_BUILD_STAGE:"build",GITLAB_USER_ID:"68",CI_JOB_NAME:"management_aa",INIT_CWD:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources",EDITOR:"vi",NODE_ENV:"production",COMMAND:"build"}.NODE_DEBUG){var a={CI_COMMIT_SHORT_SHA:"dddfaefe",CI_SERVER_REVISION:"4fcd588b89f",CI_BUILD_ID:"24430",CI_SERVER_VERSION_PATCH:"9",GITLAB_USER_LOGIN:"chen.wang",CI_BUILD_TAG:"integ_prd_1.0.13",MAIL:"/var/mail/gitlab-runner",USER:"gitlab-runner",CI_BUILD_REF:"dddfaefe6d3cba935ce108cd70fd5c2d60e14161",LC_TIME:"ja_JP.UTF-8",npm_config_user_agent:"npm/8.19.3 node/v16.19.0 linux x64 workspaces/false ci/gitlab",CI_SHARED_ENVIRONMENT:"true",CI:"true",CI_PROJECT_NAME:"alpha",CI_COMMIT_DESCRIPTION:` TTCA_UNNYOHOSHU-125 出品情報履歴一覧(個別画面)AAの不在申込履歴が複数行表示される See merge request nexty_aa/alpha!469`,CI_JOB_STAGE:"build",npm_node_execpath:"/usr/local/bin/node",CI_SERVER_VERSION:"12.3.9",SHLVL:"2",npm_config_noproxy:"",OLDPWD:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha",HOME:"/var/lib/gitlab-runner",CI_SERVER_HOST:"linux758sv",CI_COMMIT_REF_NAME:"integ_prd_1.0.13",CI_JOB_ID:"24430",npm_package_json:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources/package.json",CI_PIPELINE_SOURCE:"push",DAEMON_ARGS:"run --working-directory /var/lib/gitlab-runner --config /etc/gitlab-runner/config.toml --service gitlab-runner --syslog --user gitlab-runner",GRADLE_HOME:"/usr/lib/gradle/default-gradle",CI_SERVER_VERSION_MAJOR:"12",CI_REGISTRY_PASSWORD:"h1knme8gKBuwEE1qDiy_",CI_COMMIT_REF_PROTECTED:"false",LC_MONETARY:"ja_JP.UTF-8",CI_BUILD_TOKEN:"h1knme8gKBuwEE1qDiy_",ALPHA_ENV:"prd",npm_config_userconfig:"/var/lib/gitlab-runner/.npmrc",npm_config_local_prefix:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources",CI_PROJECT_ID:"68",GITLAB_FEATURES:"",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/127/bus",GITLAB_CI:"true",CI_COMMIT_SHA:"dddfaefe6d3cba935ce108cd70fd5c2d60e14161",CI_COMMIT_TAG:"integ_prd_1.0.13",COLOR:"0",npm_config_metrics_registry:"https://registry.npmjs.org/",ENV_MODULE:"management_aa",CI_REGISTRY_USER:"gitlab-ci-token",CI_PROJECT_PATH:"nexty_aa/alpha",LOGNAME:"gitlab-runner",CI_PROJECT_DIR:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha",JOURNAL_STREAM:"9:34413",CI_PROJECT_NAMESPACE:"nexty_aa",_:"/usr/local/bin/npm",npm_config_prefix:"/usr/local",CI_JOB_TOKEN:"h1knme8gKBuwEE1qDiy_",CI_SERVER_NAME:"GitLab",CI_NODE_TOTAL:"1",XDG_SESSION_ID:"c3138",npm_config_cache:"/var/lib/gitlab-runner/.npm",CI_PIPELINE_URL:"http://linux758sv/gitlab/nexty_aa/alpha/pipelines/1941",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/0/node_modules/.bin:/var/lib/gitlab-runner/builds/xQ5soHoq/node_modules/.bin:/var/lib/gitlab-runner/builds/node_modules/.bin:/var/lib/gitlab-runner/node_modules/.bin:/var/lib/node_modules/.bin:/var/node_modules/.bin:/node_modules/.bin:/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/lib/gradle/default-gradle/bin:/usr/lib/jvm/default-java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",INVOCATION_ID:"49b579301d4b4a8e8725bdc3da7e462f",CONFIG_FILE:"/etc/gitlab-runner/config.toml",CI_SERVER_VERSION_MINOR:"3",CI_RUNNER_DESCRIPTION:"Linux758sv",NODE:"/usr/local/bin/node",npm_package_name:"ttc-alpha-front",CI_COMMIT_TITLE:"Merge branch 'TTCA_UNNYOHOSHU-125' into 'develop'",CI_PROJECT_VISIBILITY:"private",S_COLORS:"auto",GITLAB_USER_EMAIL:"chen.wang@nsw.co.jp",LC_ADDRESS:"ja_JP.UTF-8",XDG_RUNTIME_DIR:"/run/user/127",CI_BUILD_REF_SLUG:"integ-prd-1-0-13",ALPHA_APP_VERSION:"1.0.13",CI_SERVER:"yes",npm_config_legacy_peer_deps:"true",LANG:"en_US.UTF-8",LC_TELEPHONE:"ja_JP.UTF-8",CI_PAGES_URL:"http://nexty_aa.example.com/alpha",CI_BUILD_BEFORE_SHA:"0000000000000000000000000000000000000000",CI_PROJECT_REPOSITORY_LANGUAGES:"java,typescript,shell,sqlpl,css",npm_lifecycle_script:"tsc && vite build",CI_PAGES_DOMAIN:"example.com",LC_NAME:"ja_JP.UTF-8",CI_REPOSITORY_URL:"http://gitlab-ci-token:h1knme8gKBuwEE1qDiy_@linux758sv/gitlab/nexty_aa/alpha.git",SHELL:"/bin/bash",npm_package_version:"prd-1.0.13",npm_lifecycle_event:"build",CI_RUNNER_ID:"6",GITLAB_USER_NAME:"王宸",CI_API_V4_URL:"http://linux758sv/gitlab/api/v4",LC_MEASUREMENT:"ja_JP.UTF-8",CI_PIPELINE_IID:"1588",CI_BUILD_NAME:"management_aa",CI_JOB_URL:"http://linux758sv/gitlab/nexty_aa/alpha/-/jobs/24430",LC_IDENTIFICATION:"ja_JP.UTF-8",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_config_init_module:"/var/lib/gitlab-runner/.npm-init.js",JAVA_HOME:"/usr/lib/jvm/default-java",CI_COMMIT_REF_SLUG:"integ-prd-1-0-13",PWD:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",CI_RUNNER_TAGS:"shared",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/usr/local",CI_BUILD_REF_NAME:"integ_prd_1.0.13",CI_PROJECT_URL:"http://linux758sv/gitlab/nexty_aa/alpha",CI_PIPELINE_ID:"1941",CI_COMMIT_BEFORE_SHA:"0000000000000000000000000000000000000000",CI_PROJECT_PATH_SLUG:"nexty-aa-alpha",LC_NUMERIC:"ja_JP.UTF-8",CI_CONFIG_PATH:".gitlab-ci.yml",npm_command:"run-script",LC_PAPER:"ja_JP.UTF-8",CI_COMMIT_MESSAGE:`Merge branch 'TTCA_UNNYOHOSHU-125' into 'develop' TTCA_UNNYOHOSHU-125 出品情報履歴一覧(個別画面)AAの不在申込履歴が複数行表示される See merge request nexty_aa/alpha!469`,CI_BUILD_STAGE:"build",GITLAB_USER_ID:"68",CI_JOB_NAME:"management_aa",INIT_CWD:"/var/lib/gitlab-runner/builds/xQ5soHoq/0/gitlab/nexty_aa/alpha/management_aa/src/main/resources",EDITOR:"vi",NODE_ENV:"production",COMMAND:"build"}.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+a+"$","i")}t.debuglog=function(U){if(U=U.toUpperCase(),!r[U])if(i.test(U)){var q=process.pid;r[U]=function(){var z=t.format.apply(t,arguments);console.error("%s %d: %s",U,q,z)}}else r[U]=function(){};return r[U]};function o(U,q){var z={seen:[],stylize:l};return arguments.length>=3&&(z.depth=arguments[2]),arguments.length>=4&&(z.colors=arguments[3]),g(q)?z.showHidden=q:q&&t._extend(z,q),I(z.showHidden)&&(z.showHidden=!1),I(z.depth)&&(z.depth=2),I(z.colors)&&(z.colors=!1),I(z.customInspect)&&(z.customInspect=!0),z.colors&&(z.stylize=s),u(z,U,z.depth)}t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(U,q){var z=o.styles[q];return z?"\x1B["+o.colors[z][0]+"m"+U+"\x1B["+o.colors[z][1]+"m":U}function l(U,q){return U}function c(U){var q={};return U.forEach(function(z,ne){q[z]=!0}),q}function u(U,q,z){if(U.customInspect&&q&&O(q.inspect)&&q.inspect!==t.inspect&&!(q.constructor&&q.constructor.prototype===q)){var ne=q.inspect(z,U);return S(ne)||(ne=u(U,ne,z)),ne}var G=d(U,q);if(G)return G;var te=Object.keys(q),Y=c(te);if(U.showHidden&&(te=Object.getOwnPropertyNames(q)),R(q)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return f(q);if(te.length===0){if(O(q)){var fe=q.name?": "+q.name:"";return U.stylize("[Function"+fe+"]","special")}if(P(q))return U.stylize(RegExp.prototype.toString.call(q),"regexp");if(N(q))return U.stylize(Date.prototype.toString.call(q),"date");if(R(q))return f(q)}var pe="",de=!1,se=["{","}"];if(b(q)&&(de=!0,se=["[","]"]),O(q)){var me=q.name?": "+q.name:"";pe=" [Function"+me+"]"}if(P(q)&&(pe=" "+RegExp.prototype.toString.call(q)),N(q)&&(pe=" "+Date.prototype.toUTCString.call(q)),R(q)&&(pe=" "+f(q)),te.length===0&&(!de||q.length==0))return se[0]+pe+se[1];if(z<0)return P(q)?U.stylize(RegExp.prototype.toString.call(q),"regexp"):U.stylize("[Object]","special");U.seen.push(q);var Z;return de?Z=p(U,q,z,Y,te):Z=te.map(function(_e){return h(U,q,z,Y,_e,de)}),U.seen.pop(),v(Z,pe,se)}function d(U,q){if(I(q))return U.stylize("undefined","undefined");if(S(q)){var z="'"+JSON.stringify(q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(z,"string")}if(x(q))return U.stylize(""+q,"number");if(g(q))return U.stylize(""+q,"boolean");if(y(q))return U.stylize("null","null")}function f(U){return"["+Error.prototype.toString.call(U)+"]"}function p(U,q,z,ne,G){for(var te=[],Y=0,fe=q.length;Y-1&&(te?fe=fe.split(` `).map(function(de){return" "+de}).join(` `).slice(2):fe=` `+fe.split(` `).map(function(de){return" "+de}).join(` `))):fe=U.stylize("[Circular]","special")),I(Y)){if(te&&G.match(/^\d+$/))return fe;Y=JSON.stringify(""+G),Y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Y=Y.slice(1,-1),Y=U.stylize(Y,"name")):(Y=Y.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Y=U.stylize(Y,"string"))}return Y+": "+fe}function v(U,q,z){var ne=U.reduce(function(G,te){return te.indexOf(` `)>=0,G+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ne>60?z[0]+(q===""?"":q+` `)+" "+U.join(`, `)+" "+z[1]:z[0]+q+" "+U.join(", ")+" "+z[1]}t.types=$Be();function b(U){return Array.isArray(U)}t.isArray=b;function g(U){return typeof U=="boolean"}t.isBoolean=g;function y(U){return U===null}t.isNull=y;function w(U){return U==null}t.isNullOrUndefined=w;function x(U){return typeof U=="number"}t.isNumber=x;function S(U){return typeof U=="string"}t.isString=S;function T(U){return typeof U=="symbol"}t.isSymbol=T;function I(U){return U===void 0}t.isUndefined=I;function P(U){return M(U)&&L(U)==="[object RegExp]"}t.isRegExp=P,t.types.isRegExp=P;function M(U){return typeof U=="object"&&U!==null}t.isObject=M;function N(U){return M(U)&&L(U)==="[object Date]"}t.isDate=N,t.types.isDate=N;function R(U){return M(U)&&(L(U)==="[object Error]"||U instanceof Error)}t.isError=R,t.types.isNativeError=R;function O(U){return typeof U=="function"}t.isFunction=O;function D(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||typeof U>"u"}t.isPrimitive=D,t.isBuffer=BBe();function L(U){return Object.prototype.toString.call(U)}function k(U){return U<10?"0"+U.toString(10):U.toString(10)}var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H(){var U=new Date,q=[k(U.getHours()),k(U.getMinutes()),k(U.getSeconds())].join(":");return[U.getDate(),B[U.getMonth()],q].join(" ")}t.log=function(){console.log("%s - %s",H(),t.format.apply(t,arguments))},t.inherits=UBe(),t._extend=function(U,q){if(!q||!M(q))return U;for(var z=Object.keys(q),ne=z.length;ne--;)U[z[ne]]=q[z[ne]];return U};function $(U,q){return Object.prototype.hasOwnProperty.call(U,q)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&q[W]){var z=q[W];if(typeof z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(z,W,{value:z,enumerable:!1,writable:!1,configurable:!0}),z}function z(){for(var ne,G,te=new Promise(function(pe,de){ne=pe,G=de}),Y=[],fe=0;fe0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]=t.maxCalls&&((s=t.maxCallsCallback)===null||s===void 0||s.call(t)),i(l),n++};return o.invoked=function(){return qBe(e,void 0,void 0,function(){return YBe(this,function(s){return r=setTimeout(function(){i([])},0),[2,a]})})},o}BM.createLazyCallback=JBe;var QBe=mt&&mt.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(T0,"__esModule",{value:!0});T0.InteractiveIsomorphicRequest=void 0;var KBe=Sd,XBe=nm,ZBe=BM,eUe=function(t){QBe(e,t);function e(n){var r=t.call(this,n)||this;return r.respondWith=ZBe.createLazyCallback({maxCalls:1,maxCallsCallback:function(){KBe.invariant(!1,'Failed to respond to "%s %s" request: the "request" event has already been responded to.',r.method,r.url.href)}}),r}return e}(XBe.IsomorphicRequest);T0.InteractiveIsomorphicRequest=eUe;var Fw={};Object.defineProperty(Fw,"__esModule",{value:!0});Fw.getCleanUrl=void 0;function tUe(t,e){return e===void 0&&(e=!0),[e&&t.origin,t.pathname].filter(Boolean).join("")}Fw.getCleanUrl=tUe;(function(t){var e=mt&&mt.__createBinding||(Object.create?function(a,o,s,l){l===void 0&&(l=s),Object.defineProperty(a,l,{enumerable:!0,get:function(){return o[s]}})}:function(a,o,s,l){l===void 0&&(l=s),a[l]=o[s]}),n=mt&&mt.__exportStar||function(a,o){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&e(o,a,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBuffer=t.encodeBuffer=t.getCleanUrl=void 0,n(C0,t),n(Lw,t),n(NM,t),n(nm,t),n(T0,t);var r=Fw;Object.defineProperty(t,"getCleanUrl",{enumerable:!0,get:function(){return r.getCleanUrl}});var i=cc;Object.defineProperty(t,"encodeBuffer",{enumerable:!0,get:function(){return i.encodeBuffer}}),Object.defineProperty(t,"decodeBuffer",{enumerable:!0,get:function(){return i.decodeBuffer}})})(Nw);var dB={},Sne={},jv={},nUe={get exports(){return jv},set exports(t){jv=t}},Bg={decodeValues:!0,map:!1,silent:!1};function uk(t){return typeof t=="string"&&!!t.trim()}function dk(t,e){var n=t.split(";").filter(uk),r=n.shift(),i=rUe(r),a=i.name,o=i.value;e=e?Object.assign({},Bg,e):Bg;try{o=e.decodeValues?decodeURIComponent(o):o}catch(l){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+o+"'. Set options.decodeValues to false to disable this feature.",l)}var s={name:a,value:o};return n.forEach(function(l){var c=l.split("="),u=c.shift().trimLeft().toLowerCase(),d=c.join("=");u==="expires"?s.expires=new Date(d):u==="max-age"?s.maxAge=parseInt(d,10):u==="secure"?s.secure=!0:u==="httponly"?s.httpOnly=!0:u==="samesite"?s.sameSite=d:s[u]=d}),s}function rUe(t){var e="",n="",r=t.split("=");return r.length>1?(e=r.shift(),n=r.join("=")):n=t,{name:e,value:n}}function Cne(t,e){if(e=e?Object.assign({},Bg,e):Bg,!t)return e.map?{}:[];if(t.headers&&t.headers["set-cookie"])t=t.headers["set-cookie"];else if(t.headers){var n=t.headers[Object.keys(t.headers).find(function(i){return i.toLowerCase()==="set-cookie"})];!n&&t.headers.cookie&&!e.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),t=n}if(Array.isArray(t)||(t=[t]),e=e?Object.assign({},Bg,e):Bg,e.map){var r={};return t.filter(uk).reduce(function(i,a){var o=dk(a,e);return i[o.name]=o,i},r)}else return t.filter(uk).map(function(i){return dk(i,e)})}function iUe(t){if(Array.isArray(t))return t;if(typeof t!="string")return[];var e=[],n=0,r,i,a,o,s;function l(){for(;n=t.length)&&e.push(t.substring(r,t.length))}return e}nUe.exports=Cne;jv.parse=Cne;jv.parseString=dk;jv.splitCookiesString=iUe;(function(t){var e=mt&&mt.__rest||function(a,o){var s={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&o.indexOf(l)<0&&(s[l]=a[l]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(a);c{var{maxAge:h}=p,v=e(p,["maxAge"]);return Object.assign(Object.assign({},v),{expires:h===void 0?v.expires:new Date(u+h*1e3),maxAge:h})}),f=this.store.get(l.origin)||new Map;d.forEach(p=>{this.store.set(l.origin,f.set(p.name,p))})}get(o){this.deleteExpiredCookies();const s=new URL(o.url),l=this.store.get(s.origin)||new Map;switch(o.credentials){case"include":return typeof document>"u"||n.parse(document.cookie).forEach(u=>{l.set(u.name,u)}),l;case"same-origin":return l;default:return new Map}}getAll(){return this.deleteExpiredCookies(),this.store}deleteAll(o){const s=new URL(o.url);this.store.delete(s.origin)}clear(){this.store.clear()}hydrate(){if(!r())return;const o=localStorage.getItem(t.PERSISTENCY_KEY);if(o)try{JSON.parse(o).forEach(([l,c])=>{this.store.set(l,new Map(c.map(u=>{var[d,f]=u,{expires:p}=f,h=e(f,["expires"]);return[d,p===void 0?h:Object.assign(Object.assign({},h),{expires:new Date(p)})]})))})}catch(s){console.warn(` [virtual-cookie] Failed to parse a stored cookie from the localStorage (key "${t.PERSISTENCY_KEY}"). Stored value: ${localStorage.getItem(t.PERSISTENCY_KEY)} Thrown exception: ${s} Invalid value has been removed from localStorage to prevent subsequent failed parsing attempts.`),localStorage.removeItem(t.PERSISTENCY_KEY)}}persist(){if(!r())return;const o=Array.from(this.store.entries()).map(([s,l])=>[s,Array.from(l.entries())]);localStorage.setItem(t.PERSISTENCY_KEY,JSON.stringify(o))}deleteExpiredCookies(){const o=Date.now();this.store.forEach((s,l)=>{s.forEach(({expires:c,name:u})=>{c!==void 0&&c.getTime()<=o&&s.delete(u)}),s.size===0&&this.store.delete(l)})}}t.store=new i})(Sne);(function(t){var e=mt&&mt.__createBinding||(Object.create?function(r,i,a,o){o===void 0&&(o=a),Object.defineProperty(r,o,{enumerable:!0,get:function(){return i[a]}})}:function(r,i,a,o){o===void 0&&(o=a),r[o]=i[a]}),n=mt&&mt.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&e(i,r,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(Sne,t)})(dB);var LO,FW;function aUe(){return FW||(FW=1,LO=function(){function t(e,n,r,i,a){return er?r+1:e+1:i===a?n:n+1}return function(e,n){if(e===n)return 0;if(e.length>n.length){var r=e;e=n,n=r}for(var i=e.length,a=n.length;i>0&&e.charCodeAt(i-1)===n.charCodeAt(a-1);)i--,a--;for(var o=0;o=e)break;n=i.index+i[0].length,r+=1}return{line:r,column:e+1-n}}function Tne(t){return fB(t.source,jT(t.source,t.start))}function fB(t,e){const n=t.locationOffset.column-1,r="".padStart(n)+t.body,i=e.line-1,a=t.locationOffset.line-1,o=e.line+a,s=e.line===1?n:0,l=e.column+s,c=`${t.name}:${o}:${l} `,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){const f=Math.floor(l/80),p=l%80,h=[];for(let v=0;v["|",v]),["|","^".padStart(p)],["|",h[f+1]]])}return c+$W([[`${o-1} |`,u[i-1]],[`${o} |`,d],["|","^".padStart(l)],[`${o+1} |`,u[i+1]]])}function $W(t){const e=t.filter(([r,i])=>i!==void 0),n=Math.max(...e.map(([r])=>r.length));return e.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` `)}function cUe(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class Qe extends Error{constructor(e,...n){var r,i,a;const{nodes:o,source:s,positions:l,path:c,originalError:u,extensions:d}=cUe(n);super(e),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=BW(Array.isArray(o)?o:o?[o]:void 0);const f=BW((r=this.nodes)===null||r===void 0?void 0:r.map(h=>h.loc).filter(h=>h!=null));this.source=s??(f==null||(i=f[0])===null||i===void 0?void 0:i.source),this.positions=l??(f==null?void 0:f.map(h=>h.start)),this.locations=l&&s?l.map(h=>jT(s,h)):f==null?void 0:f.map(h=>jT(h.source,h.start));const p=Is(u==null?void 0:u.extensions)?u==null?void 0:u.extensions:void 0;this.extensions=(a=d??p)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Qe):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+=` `+Tne(n.loc));else if(this.source&&this.locations)for(const n of this.locations)e+=` `+fB(this.source,n);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function BW(t){return t===void 0||t.length===0?void 0:t}function uUe(t){return t.toString()}function dUe(t){return t.toJSON()}function Ki(t,e,n){return new Qe(`Syntax Error: ${n}`,{source:t,positions:[e]})}class Ane{constructor(e,n,r){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class pB{constructor(e,n,r,i,a,o){this.kind=e,this.start=n,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ine={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},fUe=new Set(Object.keys(Ine));function fk(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&fUe.has(e)}var Zi;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Zi||(Zi={}));var Gt;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Gt||(Gt={}));var Se;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Se||(Se={}));function pk(t){return t===9||t===32}function s1(t){return t>=48&&t<=57}function Mne(t){return t>=97&&t<=122||t>=65&&t<=90}function hB(t){return Mne(t)||t===95}function Dne(t){return Mne(t)||s1(t)||t===95}function pUe(t){var e;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;os===0?o:o.slice(n)).slice((e=r)!==null&&e!==void 0?e:0,i+1)}function hUe(t){let e=0;for(;e1&&r.slice(1).every(p=>p.length===0||pk(p.charCodeAt(0))),o=n.endsWith('\\"""'),s=t.endsWith('"')&&!o,l=t.endsWith("\\"),c=s||l,u=!(e!=null&&e.minimize)&&(!i||t.length>70||c||a||o);let d="";const f=i&&pk(t.charCodeAt(0));return(u&&!f||a)&&(d+=` `),d+=n,(u||c)&&(d+=` `),'"""'+d+'"""'}var Ze;(function(t){t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(Ze||(Ze={}));class mB{constructor(e){const n=new pB(Ze.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==Ze.EOF)do if(e.next)e=e.next;else{const n=gUe(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===Ze.COMMENT);return e}}function Rne(t){return t===Ze.BANG||t===Ze.DOLLAR||t===Ze.AMP||t===Ze.PAREN_L||t===Ze.PAREN_R||t===Ze.SPREAD||t===Ze.COLON||t===Ze.EQUALS||t===Ze.AT||t===Ze.BRACKET_L||t===Ze.BRACKET_R||t===Ze.BRACE_L||t===Ze.PIPE||t===Ze.BRACE_R}function A0(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function UM(t,e){return One(t.charCodeAt(e))&&Nne(t.charCodeAt(e+1))}function One(t){return t>=55296&&t<=56319}function Nne(t){return t>=56320&&t<=57343}function Nh(t,e){const n=t.source.body.codePointAt(e);if(n===void 0)return Ze.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Ai(t,e,n,r,i){const a=t.line,o=1+n-t.lineStart;return new pB(e,n,r,a,o,i)}function gUe(t,e){const n=t.source.body,r=n.length;let i=e;for(;i=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function xUe(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Ki(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function EUe(t,e){const n=t.source.body,r=n.length;let i=t.lineStart,a=e+3,o=a,s="";const l=[];for(;aLne?"["+DUe(t)+"]":"{ "+n.map(([i,a])=>i+": "+HM(a,e)).join(", ")+" }"}function MUe(t,e){if(t.length===0)return"[]";if(e.length>Lne)return"[Array]";const n=Math.min(CUe,t.length),r=t.length-n,i=[];for(let a=0;a1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function DUe(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}const bc=function(e,n){return e instanceof n};class VM{constructor(e,n="GraphQL request",r={line:1,column:1}){typeof e=="string"||pn(!1,`Body must be a string. Received: ${et(e)}.`),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||pn(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||pn(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function kne(t){return bc(t,VM)}function zM(t,e){return new jM(t,e).parseDocument()}function Fne(t,e){const n=new jM(t,e);n.expectToken(Ze.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(Ze.EOF),r}function PUe(t,e){const n=new jM(t,e);n.expectToken(Ze.SOF);const r=n.parseConstValueLiteral();return n.expectToken(Ze.EOF),r}function RUe(t,e){const n=new jM(t,e);n.expectToken(Ze.SOF);const r=n.parseTypeReference();return n.expectToken(Ze.EOF),r}let jM=class{constructor(e,n={}){const r=kne(e)?e:new VM(e);this._lexer=new mB(r),this._options=n,this._tokenCounter=0}parseName(){const e=this.expectToken(Ze.NAME);return this.node(e,{kind:Se.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Se.DOCUMENT,definitions:this.many(Ze.SOF,this.parseDefinition,Ze.EOF)})}parseDefinition(){if(this.peek(Ze.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===Ze.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Ki(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(Ze.BRACE_L))return this.node(e,{kind:Se.OPERATION_DEFINITION,operation:Zi.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(Ze.NAME)&&(r=this.parseName()),this.node(e,{kind:Se.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Ze.NAME);switch(e.value){case"query":return Zi.QUERY;case"mutation":return Zi.MUTATION;case"subscription":return Zi.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Ze.PAREN_L,this.parseVariableDefinition,Ze.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Se.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ze.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ze.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Ze.DOLLAR),this.node(e,{kind:Se.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Se.SELECTION_SET,selections:this.many(Ze.BRACE_L,this.parseSelection,Ze.BRACE_R)})}parseSelection(){return this.peek(Ze.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(Ze.COLON)?(r=n,i=this.parseName()):i=n,this.node(e,{kind:Se.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ze.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ze.PAREN_L,n,Ze.PAREN_R)}parseArgument(e=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(Ze.COLON),this.node(n,{kind:Se.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(Ze.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(Ze.NAME)?this.node(e,{kind:Se.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Se.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:Se.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:Se.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const n=this._lexer.token;switch(n.kind){case Ze.BRACKET_L:return this.parseList(e);case Ze.BRACE_L:return this.parseObject(e);case Ze.INT:return this.advanceLexer(),this.node(n,{kind:Se.INT,value:n.value});case Ze.FLOAT:return this.advanceLexer(),this.node(n,{kind:Se.FLOAT,value:n.value});case Ze.STRING:case Ze.BLOCK_STRING:return this.parseStringLiteral();case Ze.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Se.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Se.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Se.NULL});default:return this.node(n,{kind:Se.ENUM,value:n.value})}case Ze.DOLLAR:if(e)if(this.expectToken(Ze.DOLLAR),this._lexer.token.kind===Ze.NAME){const r=this._lexer.token.value;throw Ki(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:Se.STRING,value:e.value,block:e.kind===Ze.BLOCK_STRING})}parseList(e){const n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:Se.LIST,values:this.any(Ze.BRACKET_L,n,Ze.BRACKET_R)})}parseObject(e){const n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:Se.OBJECT,fields:this.any(Ze.BRACE_L,n,Ze.BRACE_R)})}parseObjectField(e){const n=this._lexer.token,r=this.parseName();return this.expectToken(Ze.COLON),this.node(n,{kind:Se.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const n=[];for(;this.peek(Ze.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const n=this._lexer.token;return this.expectToken(Ze.AT),this.node(n,{kind:Se.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let n;if(this.expectOptionalToken(Ze.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(Ze.BRACKET_R),n=this.node(e,{kind:Se.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Ze.BANG)?this.node(e,{kind:Se.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Se.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Ze.STRING)||this.peek(Ze.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(Ze.BRACE_L,this.parseOperationTypeDefinition,Ze.BRACE_R);return this.node(e,{kind:Se.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,n=this.parseOperationType();this.expectToken(Ze.COLON);const r=this.parseNamedType();return this.node(e,{kind:Se.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:Se.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Se.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Ze.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Ze.BRACE_L,this.parseFieldDefinition,Ze.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Ze.COLON);const a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:Se.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(Ze.PAREN_L,this.parseInputValueDef,Ze.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Ze.COLON);const i=this.parseTypeReference();let a;this.expectOptionalToken(Ze.EQUALS)&&(a=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:Se.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Se.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:Se.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(Ze.EQUALS)?this.delimitedMany(Ze.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:Se.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(Ze.BRACE_L,this.parseEnumValueDefinition,Ze.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:Se.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Ki(this._lexer.source,this._lexer.token.start,`${zE(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:Se.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(Ze.BRACE_L,this.parseInputValueDef,Ze.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Ze.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(Ze.BRACE_L,this.parseOperationTypeDefinition,Ze.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:Se.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(e,{kind:Se.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:Se.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:Se.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:Se.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:Se.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:Se.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ze.AT);const r=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:Se.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Ze.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Gt,n.value))return n;throw this.unexpected(e)}node(e,n){return this._options.noLocation!==!0&&(n.loc=new Ane(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){const n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw Ki(this._lexer.source,n.start,`Expected ${$ne(e)}, found ${zE(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const n=this._lexer.token;if(n.kind===Ze.NAME&&n.value===e)this.advanceLexer();else throw Ki(this._lexer.source,n.start,`Expected "${e}", found ${zE(n)}.`)}expectOptionalKeyword(e){const n=this._lexer.token;return n.kind===Ze.NAME&&n.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const n=e??this._lexer.token;return Ki(this._lexer.source,n.start,`Unexpected ${zE(n)}.`)}any(e,n,r){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(e,n,r){if(this.expectOptionalToken(e)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(e,n,r){this.expectToken(e);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(e,n){this.expectOptionalToken(e);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,n=this._lexer.advance();if(e!==void 0&&n.kind!==Ze.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Ki(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function zE(t){const e=t.value;return $ne(t.kind)+(e!=null?` "${e}"`:"")}function $ne(t){return Rne(t)?`"${t}"`:t}const OUe=5;function gd(t,e){const[n,r]=e?[t,e]:[void 0,t];let i=" Did you mean ";n&&(i+=n+" ");const a=r.map(l=>`"${l}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}const o=a.slice(0,OUe),s=o.pop();return i+o.join(", ")+", or "+s+"?"}function HW(t){return t}function vd(t,e){const n=Object.create(null);for(const r of t)n[e(r)]=r;return n}function bf(t,e,n){const r=Object.create(null);for(const i of t)r[e(i)]=n(i);return r}function Ku(t,e){const n=Object.create(null);for(const r of Object.keys(t))n[r]=e(t[r],r);return n}function $w(t,e){let n=0,r=0;for(;n0);let s=0;do++r,s=s*10+a-hk,a=e.charCodeAt(r);while(jE(a)&&s>0);if(os)return 1}else{if(ia)return 1;++n,++r}}return t.length-e.length}const hk=48,NUe=57;function jE(t){return!isNaN(t)&&hk<=t&&t<=NUe}function cp(t,e){const n=Object.create(null),r=new LUe(t),i=Math.floor(t.length*.4)+1;for(const a of e){const o=r.measure(a,i);o!==void 0&&(n[a]=o)}return Object.keys(n).sort((a,o)=>{const s=n[a]-n[o];return s!==0?s:$w(a,o)})}class LUe{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=VW(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,n){if(this._input===e)return 0;const r=e.toLowerCase();if(this._inputLowerCase===r)return 1;let i=VW(r),a=this._inputArray;if(i.lengthn)return;const l=this._rows;for(let u=0;u<=s;u++)l[0][u]=u;for(let u=1;u<=o;u++){const d=l[(u-1)%3],f=l[u%3];let p=f[0]=u;for(let h=1;h<=s;h++){const v=i[u-1]===a[h-1]?0:1;let b=Math.min(d[h]+1,f[h-1]+1,d[h-1]+v);if(u>1&&h>1&&i[u-1]===a[h-2]&&i[u-2]===a[h-1]){const g=l[(u-2)%3][h-2];b=Math.min(b,g+1)}bn)return}const c=l[o%3][s];return c<=n?c:void 0}}function VW(t){const e=t.length,n=new Array(e);for(let r=0;rt.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Rt(t.definitions,` `)},OperationDefinition:{leave(t){const e=An("(",Rt(t.variableDefinitions,", "),")"),n=Rt([t.operation,Rt([t.name,e]),Rt(t.directives," ")]," ");return(n==="query"?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:r})=>t+": "+e+An(" = ",n)+An(" ",Rt(r," "))},SelectionSet:{leave:({selections:t})=>zl(t)},Field:{leave({alias:t,name:e,arguments:n,directives:r,selectionSet:i}){const a=An("",t,": ")+e;let o=a+An("(",Rt(n,", "),")");return o.length>HUe&&(o=a+An(`( `,AC(Rt(n,` `)),` )`)),Rt([o,Rt(r," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+An(" ",Rt(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>Rt(["...",An("on ",t),Rt(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${t}${An("(",Rt(n,", "),")")} on ${e} ${An("",Rt(r," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?Pne(t):kUe(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Rt(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Rt(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+An("(",Rt(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>An("",t,` `)+Rt(["schema",Rt(e," "),zl(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>An("",t,` `)+Rt(["scalar",e,Rt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>An("",t,` `)+Rt(["type",e,An("implements ",Rt(n," & ")),Rt(r," "),zl(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:r,directives:i})=>An("",t,` `)+e+(zW(n)?An(`( `,AC(Rt(n,` `)),` )`):An("(",Rt(n,", "),")"))+": "+r+An(" ",Rt(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:r,directives:i})=>An("",t,` `)+Rt([e+": "+n,An("= ",r),Rt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>An("",t,` `)+Rt(["interface",e,An("implements ",Rt(n," & ")),Rt(r," "),zl(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:n,types:r})=>An("",t,` `)+Rt(["union",e,Rt(n," "),An("= ",Rt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:n,values:r})=>An("",t,` `)+Rt(["enum",e,Rt(n," "),zl(r)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>An("",t,` `)+Rt([e,Rt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:r})=>An("",t,` `)+Rt(["input",e,Rt(n," "),zl(r)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,repeatable:r,locations:i})=>An("",t,` `)+"directive @"+e+(zW(n)?An(`( `,AC(Rt(n,` `)),` )`):An("(",Rt(n,", "),")"))+(r?" repeatable":"")+" on "+Rt(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>Rt(["extend schema",Rt(t," "),zl(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>Rt(["extend scalar",t,Rt(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>Rt(["extend type",t,An("implements ",Rt(e," & ")),Rt(n," "),zl(r)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>Rt(["extend interface",t,An("implements ",Rt(e," & ")),Rt(n," "),zl(r)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>Rt(["extend union",t,Rt(e," "),An("= ",Rt(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>Rt(["extend enum",t,Rt(e," "),zl(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>Rt(["extend input",t,Rt(e," "),zl(n)]," ")}};function Rt(t,e=""){var n;return(n=t==null?void 0:t.filter(r=>r).join(e))!==null&&n!==void 0?n:""}function zl(t){return An(`{ `,AC(Rt(t,` `)),` }`)}function An(t,e,n=""){return e!=null&&e!==""?t+e+n:""}function AC(t){return An(" ",t.replace(/\n/g,` `))}function zW(t){var e;return(e=t==null?void 0:t.some(n=>n.includes(` `)))!==null&&e!==void 0?e:!1}function GT(t,e){switch(t.kind){case Se.NULL:return null;case Se.INT:return parseInt(t.value,10);case Se.FLOAT:return parseFloat(t.value);case Se.STRING:case Se.ENUM:case Se.BOOLEAN:return t.value;case Se.LIST:return t.values.map(n=>GT(n,e));case Se.OBJECT:return bf(t.fields,n=>n.name.value,n=>GT(n.value,e));case Se.VARIABLE:return e==null?void 0:e[t.name.value]}}function Ns(t){if(t!=null||pn(!1,"Must provide name."),typeof t=="string"||pn(!1,"Expected name to be a string."),t.length===0)throw new Qe("Expected name to be a non-empty string.");for(let e=1;eo(GT(s,l)),this.extensions=Ll(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[],e.specifiedByURL==null||typeof e.specifiedByURL=="string"||pn(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${et(e.specifiedByURL)}.`),e.serialize==null||typeof e.serialize=="function"||pn(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&(typeof e.parseValue=="function"&&typeof e.parseLiteral=="function"||pn(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Cl{constructor(e){var n;this.name=Ns(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Ll(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>jne(e),this._interfaces=()=>zne(e),e.isTypeOf==null||typeof e.isTypeOf=="function"||pn(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${et(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Wne(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function zne(t){var e;const n=bB((e=t.interfaces)!==null&&e!==void 0?e:[]);return Array.isArray(n)||pn(!1,`${t.name} interfaces must be an Array or a function which returns an Array.`),n}function jne(t){const e=_B(t.fields);return uv(e)||pn(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),Ku(e,(n,r)=>{var i;uv(n)||pn(!1,`${t.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||pn(!1,`${t.name}.${r} field resolver must be a function if provided, but got: ${et(n.resolve)}.`);const a=(i=n.args)!==null&&i!==void 0?i:{};return uv(a)||pn(!1,`${t.name}.${r} args must be an object with argument names as keys.`),{name:Ns(r),description:n.description,type:n.type,args:Gne(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Ll(n.extensions),astNode:n.astNode}})}function Gne(t){return Object.entries(t).map(([e,n])=>({name:Ns(e),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ll(n.extensions),astNode:n.astNode}))}function uv(t){return Is(t)&&!Array.isArray(t)}function Wne(t){return Ku(t,e=>({description:e.description,type:e.type,args:qne(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function qne(t){return bf(t,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function up(t){return nn(t.type)&&t.defaultValue===void 0}class Wv{constructor(e){var n;this.name=Ns(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Ll(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=jne.bind(void 0,e),this._interfaces=zne.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||pn(!1,`${this.name} must provide "resolveType" as a function, but got: ${et(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Wne(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class qv{constructor(e){var n;this.name=Ns(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Ll(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=r4e.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||pn(!1,`${this.name} must provide "resolveType" as a function, but got: ${et(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function r4e(t){const e=bB(t.types);return Array.isArray(e)||pn(!1,`Must provide Array of types or a function which returns such an array for Union ${t.name}.`),e}class Qf{constructor(e){var n;this.name=Ns(e.name),this.description=e.description,this.extensions=Ll(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=i4e(this.name,e.values),this._valueLookup=new Map(this._values.map(r=>[r.value,r])),this._nameLookup=vd(this._values,r=>r.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const n=this._valueLookup.get(e);if(n===void 0)throw new Qe(`Enum "${this.name}" cannot represent value: ${et(e)}`);return n.name}parseValue(e){if(typeof e!="string"){const r=et(e);throw new Qe(`Enum "${this.name}" cannot represent non-string value: ${r}.`+GE(this,r))}const n=this.getValue(e);if(n==null)throw new Qe(`Value "${e}" does not exist in "${this.name}" enum.`+GE(this,e));return n.value}parseLiteral(e,n){if(e.kind!==Se.ENUM){const i=Or(e);throw new Qe(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+GE(this,i),{nodes:e})}const r=this.getValue(e.value);if(r==null){const i=Or(e);throw new Qe(`Value "${i}" does not exist in "${this.name}" enum.`+GE(this,i),{nodes:e})}return r.value}toConfig(){const e=bf(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function GE(t,e){const n=t.getValues().map(i=>i.name),r=cp(e,n);return gd("the enum value",r)}function i4e(t,e){return uv(e)||pn(!1,`${t} values must be an object with value names as keys.`),Object.entries(e).map(([n,r])=>(uv(r)||pn(!1,`${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${et(r)}.`),{name:Bne(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:Ll(r.extensions),astNode:r.astNode}))}class Yv{constructor(e){var n;this.name=Ns(e.name),this.description=e.description,this.extensions=Ll(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=a4e.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const e=Ku(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function a4e(t){const e=_B(t.fields);return uv(e)||pn(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),Ku(e,(n,r)=>(!("resolve"in n)||pn(!1,`${t.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Ns(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ll(n.extensions),astNode:n.astNode}))}function GM(t){return nn(t.type)&&t.defaultValue===void 0}function WT(t,e){return t===e?!0:nn(t)&&nn(e)||Nr(t)&&Nr(e)?WT(t.ofType,e.ofType):!1}function vh(t,e,n){return e===n?!0:nn(n)?nn(e)?vh(t,e.ofType,n.ofType):!1:nn(e)?vh(t,e.ofType,n):Nr(n)?Nr(e)?vh(t,e.ofType,n.ofType):!1:Nr(e)?!1:Zc(n)&&(Zn(e)||Nn(e))&&t.isSubType(n,e)}function mk(t,e,n){return e===n?!0:Zc(e)?Zc(n)?t.getPossibleTypes(e).some(r=>t.isSubType(n,r)):t.isSubType(e,n):Zc(n)?t.isSubType(n,e):!1}const IC=2147483647,MC=-2147483648,Yne=new uu({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(t){const e=zw(t);if(typeof e=="boolean")return e?1:0;let n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),typeof n!="number"||!Number.isInteger(n))throw new Qe(`Int cannot represent non-integer value: ${et(e)}`);if(n>IC||nIC||tIC||et.name===e)}function zw(t){if(Is(t)){if(typeof t.valueOf=="function"){const e=t.valueOf();if(!Is(e))return e}if(typeof t.toJSON=="function")return t.toJSON()}return t}function qM(t){return bc(t,du)}function o4e(t){if(!qM(t))throw new Error(`Expected ${et(t)} to be a GraphQL directive.`);return t}class du{constructor(e){var n,r;this.name=Ns(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=(n=e.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=Ll(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||pn(!1,`@${e.name} locations must be an Array.`);const i=(r=e.args)!==null&&r!==void 0?r:{};Is(i)&&!Array.isArray(i)||pn(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Gne(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:qne(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const xB=new du({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Gt.FIELD,Gt.FRAGMENT_SPREAD,Gt.INLINE_FRAGMENT],args:{if:{type:new fn(_s),description:"Included when true."}}}),EB=new du({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Gt.FIELD,Gt.FRAGMENT_SPREAD,Gt.INLINE_FRAGMENT],args:{if:{type:new fn(_s),description:"Skipped when true."}}}),SB="No longer supported",YM=new du({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Gt.FIELD_DEFINITION,Gt.ARGUMENT_DEFINITION,Gt.INPUT_FIELD_DEFINITION,Gt.ENUM_VALUE],args:{reason:{type:si,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:SB}}}),CB=new du({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Gt.SCALAR],args:{url:{type:new fn(si),description:"The URL that specifies the behavior of this scalar."}}}),dp=Object.freeze([xB,EB,YM,CB]);function TB(t){return dp.some(({name:e})=>e===t.name)}function AB(t){return typeof t=="object"&&typeof(t==null?void 0:t[Symbol.iterator])=="function"}function _f(t,e){if(nn(e)){const n=_f(t,e.ofType);return(n==null?void 0:n.kind)===Se.NULL?null:n}if(t===null)return{kind:Se.NULL};if(t===void 0)return null;if(Nr(e)){const n=e.ofType;if(AB(t)){const r=[];for(const i of t){const a=_f(i,n);a!=null&&r.push(a)}return{kind:Se.LIST,values:r}}return _f(t,n)}if(Lr(e)){if(!Is(t))return null;const n=[];for(const r of Object.values(e.getFields())){const i=_f(t[r.name],r.type);i&&n.push({kind:Se.OBJECT_FIELD,name:{kind:Se.NAME,value:r.name},value:i})}return{kind:Se.OBJECT,fields:n}}if(lu(e)){const n=e.serialize(t);if(n==null)return null;if(typeof n=="boolean")return{kind:Se.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const r=String(n);return jW.test(r)?{kind:Se.INT,value:r}:{kind:Se.FLOAT,value:r}}if(typeof n=="string")return ji(e)?{kind:Se.ENUM,value:n}:e===wB&&jW.test(n)?{kind:Se.INT,value:n}:{kind:Se.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${et(n)}.`)}_i(!1,"Unexpected input type: "+et(e))}const jW=/^-?(?:0|[1-9][0-9]*)$/,JM=new Cl({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:si,resolve:t=>t.description},types:{description:"A list of all types supported by this server.",type:new fn(new Na(new fn(pl))),resolve(t){return Object.values(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new fn(pl),resolve:t=>t.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:pl,resolve:t=>t.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:pl,resolve:t=>t.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new fn(new Na(new fn(IB))),resolve:t=>t.getDirectives()}})}),IB=new Cl({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new fn(si),resolve:t=>t.name},description:{type:si,resolve:t=>t.description},isRepeatable:{type:new fn(_s),resolve:t=>t.isRepeatable},locations:{type:new fn(new Na(new fn(MB))),resolve:t=>t.locations},args:{type:new fn(new Na(new fn(jw))),args:{includeDeprecated:{type:_s,defaultValue:!1}},resolve(t,{includeDeprecated:e}){return e?t.args:t.args.filter(n=>n.deprecationReason==null)}}})}),MB=new Qf({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Gt.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Gt.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Gt.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Gt.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Gt.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Gt.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Gt.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Gt.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Gt.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Gt.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Gt.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Gt.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Gt.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Gt.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Gt.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Gt.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Gt.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Gt.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Gt.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),pl=new Cl({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new fn(RB),resolve(t){if(Ls(t))return ur.SCALAR;if(Nn(t))return ur.OBJECT;if(Zn(t))return ur.INTERFACE;if(na(t))return ur.UNION;if(ji(t))return ur.ENUM;if(Lr(t))return ur.INPUT_OBJECT;if(Nr(t))return ur.LIST;if(nn(t))return ur.NON_NULL;_i(!1,`Unexpected type: "${et(t)}".`)}},name:{type:si,resolve:t=>"name"in t?t.name:void 0},description:{type:si,resolve:t=>"description"in t?t.description:void 0},specifiedByURL:{type:si,resolve:t=>"specifiedByURL"in t?t.specifiedByURL:void 0},fields:{type:new Na(new fn(DB)),args:{includeDeprecated:{type:_s,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(Nn(t)||Zn(t)){const n=Object.values(t.getFields());return e?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Na(new fn(pl)),resolve(t){if(Nn(t)||Zn(t))return t.getInterfaces()}},possibleTypes:{type:new Na(new fn(pl)),resolve(t,e,n,{schema:r}){if(Zc(t))return r.getPossibleTypes(t)}},enumValues:{type:new Na(new fn(PB)),args:{includeDeprecated:{type:_s,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(ji(t)){const n=t.getValues();return e?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Na(new fn(jw)),args:{includeDeprecated:{type:_s,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(Lr(t)){const n=Object.values(t.getFields());return e?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:pl,resolve:t=>"ofType"in t?t.ofType:void 0}})}),DB=new Cl({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new fn(si),resolve:t=>t.name},description:{type:si,resolve:t=>t.description},args:{type:new fn(new Na(new fn(jw))),args:{includeDeprecated:{type:_s,defaultValue:!1}},resolve(t,{includeDeprecated:e}){return e?t.args:t.args.filter(n=>n.deprecationReason==null)}},type:{type:new fn(pl),resolve:t=>t.type},isDeprecated:{type:new fn(_s),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:si,resolve:t=>t.deprecationReason}})}),jw=new Cl({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new fn(si),resolve:t=>t.name},description:{type:si,resolve:t=>t.description},type:{type:new fn(pl),resolve:t=>t.type},defaultValue:{type:si,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(t){const{type:e,defaultValue:n}=t,r=_f(n,e);return r?Or(r):null}},isDeprecated:{type:new fn(_s),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:si,resolve:t=>t.deprecationReason}})}),PB=new Cl({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new fn(si),resolve:t=>t.name},description:{type:si,resolve:t=>t.description},isDeprecated:{type:new fn(_s),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:si,resolve:t=>t.deprecationReason}})});var ur;(function(t){t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.INPUT_OBJECT="INPUT_OBJECT",t.LIST="LIST",t.NON_NULL="NON_NULL"})(ur||(ur={}));const RB=new Qf({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ur.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ur.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ur.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ur.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ur.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ur.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ur.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ur.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),l1={name:"__schema",type:new fn(JM),description:"Access the current type schema of this server.",args:[],resolve:(t,e,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},c1={name:"__type",type:pl,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new fn(si),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(t,{name:e},n,{schema:r})=>r.getType(e),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},u1={name:"__typename",type:new fn(si),description:"The name of the current Object type at runtime.",args:[],resolve:(t,e,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Gw=Object.freeze([JM,IB,MB,pl,DB,jw,PB,RB]);function rm(t){return Gw.some(({name:e})=>t.name===e)}function Qne(t){return bc(t,M0)}function OB(t){if(!Qne(t))throw new Error(`Expected ${et(t)} to be a GraphQL schema.`);return t}class M0{constructor(e){var n,r;this.__validationErrors=e.assumeValid===!0?[]:void 0,Is(e)||pn(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||pn(!1,`"types" must be Array if provided but got: ${et(e.types)}.`),!e.directives||Array.isArray(e.directives)||pn(!1,`"directives" must be Array if provided but got: ${et(e.directives)}.`),this.description=e.description,this.extensions=Ll(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=(r=e.directives)!==null&&r!==void 0?r:dp;const i=new Set(e.types);if(e.types!=null)for(const a of e.types)i.delete(a),tc(a,i);this._queryType!=null&&tc(this._queryType,i),this._mutationType!=null&&tc(this._mutationType,i),this._subscriptionType!=null&&tc(this._subscriptionType,i);for(const a of this._directives)if(qM(a))for(const o of a.args)tc(o.type,i);tc(JM,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const a of i){if(a==null)continue;const o=a.name;if(o||pn(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=a,Zn(a)){for(const s of a.getInterfaces())if(Zn(s)){let l=this._implementationsMap[s.name];l===void 0&&(l=this._implementationsMap[s.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if(Nn(a)){for(const s of a.getInterfaces())if(Zn(s)){let l=this._implementationsMap[s.name];l===void 0&&(l=this._implementationsMap[s.name]={objects:[],interfaces:[]}),l.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case Zi.QUERY:return this.getQueryType();case Zi.MUTATION:return this.getMutationType();case Zi.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return na(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const n=this._implementationsMap[e.name];return n??{objects:[],interfaces:[]}}isSubType(e,n){let r=this._subTypeMap[e.name];if(r===void 0){if(r=Object.create(null),na(e))for(const i of e.getTypes())r[i.name]=!0;else{const i=this.getImplementations(e);for(const a of i.objects)r[a.name]=!0;for(const a of i.interfaces)r[a.name]=!0}this._subTypeMap[e.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(n=>n.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function tc(t,e){const n=go(t);if(!e.has(n)){if(e.add(n),na(n))for(const r of n.getTypes())tc(r,e);else if(Nn(n)||Zn(n)){for(const r of n.getInterfaces())tc(r,e);for(const r of Object.values(n.getFields())){tc(r.type,e);for(const i of r.args)tc(i.type,e)}}else if(Lr(n))for(const r of Object.values(n.getFields()))tc(r.type,e)}return e}function NB(t){if(OB(t),t.__validationErrors)return t.__validationErrors;const e=new s4e(t);l4e(e),c4e(e),u4e(e);const n=e.getErrors();return t.__validationErrors=n,n}function LB(t){const e=NB(t);if(e.length!==0)throw new Error(e.map(n=>n.message).join(` `))}class s4e{constructor(e){this._errors=[],this.schema=e}reportError(e,n){const r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Qe(e,{nodes:r}))}getErrors(){return this._errors}}function l4e(t){const e=t.schema,n=e.getQueryType();if(!n)t.reportError("Query root type must be provided.",e.astNode);else if(!Nn(n)){var r;t.reportError(`Query root type must be Object type, it cannot be ${et(n)}.`,(r=FO(e,Zi.QUERY))!==null&&r!==void 0?r:n.astNode)}const i=e.getMutationType();if(i&&!Nn(i)){var a;t.reportError(`Mutation root type must be Object type if provided, it cannot be ${et(i)}.`,(a=FO(e,Zi.MUTATION))!==null&&a!==void 0?a:i.astNode)}const o=e.getSubscriptionType();if(o&&!Nn(o)){var s;t.reportError(`Subscription root type must be Object type if provided, it cannot be ${et(o)}.`,(s=FO(e,Zi.SUBSCRIPTION))!==null&&s!==void 0?s:o.astNode)}}function FO(t,e){var n;return(n=[t.astNode,...t.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===e))===null||n===void 0?void 0:n.type}function c4e(t){for(const n of t.schema.getDirectives()){if(!qM(n)){t.reportError(`Expected directive but got: ${et(n)}.`,n==null?void 0:n.astNode);continue}Lh(t,n);for(const r of n.args)if(Lh(t,r),Ro(r.type)||t.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${et(r.type)}.`,r.astNode),up(r)&&r.deprecationReason!=null){var e;t.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[kB(r.astNode),(e=r.astNode)===null||e===void 0?void 0:e.type])}}}function Lh(t,e){e.name.startsWith("__")&&t.reportError(`Name "${e.name}" must not begin with "__", which is reserved by GraphQL introspection.`,e.astNode)}function u4e(t){const e=g4e(t),n=t.schema.getTypeMap();for(const r of Object.values(n)){if(!Hw(r)){t.reportError(`Expected GraphQL named type but got: ${et(r)}.`,r.astNode);continue}rm(r)||Lh(t,r),Nn(r)||Zn(r)?(GW(t,r),WW(t,r)):na(r)?p4e(t,r):ji(r)?h4e(t,r):Lr(r)&&(m4e(t,r),e(r))}}function GW(t,e){const n=Object.values(e.getFields());n.length===0&&t.reportError(`Type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const o of n){if(Lh(t,o),!Ff(o.type)){var r;t.reportError(`The type of ${e.name}.${o.name} must be Output Type but got: ${et(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(const s of o.args){const l=s.name;if(Lh(t,s),!Ro(s.type)){var i;t.reportError(`The type of ${e.name}.${o.name}(${l}:) must be Input Type but got: ${et(s.type)}.`,(i=s.astNode)===null||i===void 0?void 0:i.type)}if(up(s)&&s.deprecationReason!=null){var a;t.reportError(`Required argument ${e.name}.${o.name}(${l}:) cannot be deprecated.`,[kB(s.astNode),(a=s.astNode)===null||a===void 0?void 0:a.type])}}}}function WW(t,e){const n=Object.create(null);for(const r of e.getInterfaces()){if(!Zn(r)){t.reportError(`Type ${et(e)} must only implement Interface types, it cannot implement ${et(r)}.`,f_(e,r));continue}if(e===r){t.reportError(`Type ${e.name} cannot implement itself because it would create a circular reference.`,f_(e,r));continue}if(n[r.name]){t.reportError(`Type ${e.name} can only implement ${r.name} once.`,f_(e,r));continue}n[r.name]=!0,f4e(t,e,r),d4e(t,e,r)}}function d4e(t,e,n){const r=e.getFields();for(const l of Object.values(n.getFields())){const c=l.name,u=r[c];if(!u){t.reportError(`Interface field ${n.name}.${c} expected but ${e.name} does not provide it.`,[l.astNode,e.astNode,...e.extensionASTNodes]);continue}if(!vh(t.schema,u.type,l.type)){var i,a;t.reportError(`Interface field ${n.name}.${c} expects type ${et(l.type)} but ${e.name}.${c} is type ${et(u.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=u.astNode)===null||a===void 0?void 0:a.type])}for(const d of l.args){const f=d.name,p=u.args.find(h=>h.name===f);if(!p){t.reportError(`Interface field argument ${n.name}.${c}(${f}:) expected but ${e.name}.${c} does not provide it.`,[d.astNode,u.astNode]);continue}if(!WT(d.type,p.type)){var o,s;t.reportError(`Interface field argument ${n.name}.${c}(${f}:) expects type ${et(d.type)} but ${e.name}.${c}(${f}:) is type ${et(p.type)}.`,[(o=d.astNode)===null||o===void 0?void 0:o.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}}for(const d of u.args){const f=d.name;!l.args.find(h=>h.name===f)&&up(d)&&t.reportError(`Object field ${e.name}.${c} includes required argument ${f} that is missing from the Interface field ${n.name}.${c}.`,[d.astNode,l.astNode])}}}function f4e(t,e,n){const r=e.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||t.reportError(i===e?`Type ${e.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${e.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...f_(n,i),...f_(e,n)])}function p4e(t,e){const n=e.getTypes();n.length===0&&t.reportError(`Union type ${e.name} must define one or more member types.`,[e.astNode,...e.extensionASTNodes]);const r=Object.create(null);for(const i of n){if(r[i.name]){t.reportError(`Union type ${e.name} can only include type ${i.name} once.`,qW(e,i.name));continue}r[i.name]=!0,Nn(i)||t.reportError(`Union type ${e.name} can only include Object types, it cannot include ${et(i)}.`,qW(e,String(i)))}}function h4e(t,e){const n=e.getValues();n.length===0&&t.reportError(`Enum type ${e.name} must define one or more values.`,[e.astNode,...e.extensionASTNodes]);for(const r of n)Lh(t,r)}function m4e(t,e){const n=Object.values(e.getFields());n.length===0&&t.reportError(`Input Object type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const a of n){if(Lh(t,a),!Ro(a.type)){var r;t.reportError(`The type of ${e.name}.${a.name} must be Input Type but got: ${et(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if(GM(a)&&a.deprecationReason!=null){var i;t.reportError(`Required input field ${e.name}.${a.name} cannot be deprecated.`,[kB(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}}}function g4e(t){const e=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(e[a.name])return;e[a.name]=!0,r[a.name]=n.length;const o=Object.values(a.getFields());for(const s of o)if(nn(s.type)&&Lr(s.type.ofType)){const l=s.type.ofType,c=r[l.name];if(n.push(s),c===void 0)i(l);else{const u=n.slice(c),d=u.map(f=>f.name).join(".");t.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${d}".`,u.map(f=>f.astNode))}n.pop()}r[a.name]=void 0}}function f_(t,e){const{astNode:n,extensionASTNodes:r}=t;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===e.name)}function qW(t,e){const{astNode:n,extensionASTNodes:r}=t;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===e)}function kB(t){var e;return t==null||(e=t.directives)===null||e===void 0?void 0:e.find(n=>n.name.value===YM.name)}function qo(t,e){switch(e.kind){case Se.LIST_TYPE:{const n=qo(t,e.type);return n&&new Na(n)}case Se.NON_NULL_TYPE:{const n=qo(t,e.type);return n&&new fn(n)}case Se.NAMED_TYPE:return t.getType(e.name.value)}}class FB{constructor(e,n,r){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??v4e,n&&(Ro(n)&&this._inputTypeStack.push(n),cu(n)&&this._parentTypeStack.push(n),Ff(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const n=this._schema;switch(e.kind){case Se.SELECTION_SET:{const i=go(this.getType());this._parentTypeStack.push(cu(i)?i:void 0);break}case Se.FIELD:{const i=this.getParentType();let a,o;i&&(a=this._getFieldDef(n,i,e),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push(Ff(o)?o:void 0);break}case Se.DIRECTIVE:this._directive=n.getDirective(e.name.value);break;case Se.OPERATION_DEFINITION:{const i=n.getRootType(e.operation);this._typeStack.push(Nn(i)?i:void 0);break}case Se.INLINE_FRAGMENT:case Se.FRAGMENT_DEFINITION:{const i=e.typeCondition,a=i?qo(n,i):go(this.getType());this._typeStack.push(Ff(a)?a:void 0);break}case Se.VARIABLE_DEFINITION:{const i=qo(n,e.type);this._inputTypeStack.push(Ro(i)?i:void 0);break}case Se.ARGUMENT:{var r;let i,a;const o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(s=>s.name===e.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(Ro(a)?a:void 0);break}case Se.LIST:{const i=yB(this.getInputType()),a=Nr(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Ro(a)?a:void 0);break}case Se.OBJECT_FIELD:{const i=go(this.getInputType());let a,o;Lr(i)&&(o=i.getFields()[e.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(Ro(a)?a:void 0);break}case Se.ENUM:{const i=go(this.getInputType());let a;ji(i)&&(a=i.getValue(e.value)),this._enumValue=a;break}}}leave(e){switch(e.kind){case Se.SELECTION_SET:this._parentTypeStack.pop();break;case Se.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Se.DIRECTIVE:this._directive=null;break;case Se.OPERATION_DEFINITION:case Se.INLINE_FRAGMENT:case Se.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Se.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Se.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Se.LIST:case Se.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Se.ENUM:this._enumValue=null;break}}}function v4e(t,e,n){const r=n.name.value;if(r===l1.name&&t.getQueryType()===e)return l1;if(r===c1.name&&t.getQueryType()===e)return c1;if(r===u1.name&&cu(e))return u1;if(Nn(e)||Zn(e))return e.getFields()[r]}function $B(t,e){return{enter(...n){const r=n[0];t.enter(r);const i=Gv(e,r.kind).enter;if(i){const a=i.apply(e,n);return a!==void 0&&(t.leave(r),fk(a)&&t.enter(a)),a}},leave(...n){const r=n[0],i=Gv(e,r.kind).leave;let a;return i&&(a=i.apply(e,n)),t.leave(r),a}}}function y4e(t){return BB(t)||UB(t)||HB(t)}function BB(t){return t.kind===Se.OPERATION_DEFINITION||t.kind===Se.FRAGMENT_DEFINITION}function b4e(t){return t.kind===Se.FIELD||t.kind===Se.FRAGMENT_SPREAD||t.kind===Se.INLINE_FRAGMENT}function Kne(t){return t.kind===Se.VARIABLE||t.kind===Se.INT||t.kind===Se.FLOAT||t.kind===Se.STRING||t.kind===Se.BOOLEAN||t.kind===Se.NULL||t.kind===Se.ENUM||t.kind===Se.LIST||t.kind===Se.OBJECT}function gk(t){return Kne(t)&&(t.kind===Se.LIST?t.values.some(gk):t.kind===Se.OBJECT?t.fields.some(e=>gk(e.value)):t.kind!==Se.VARIABLE)}function _4e(t){return t.kind===Se.NAMED_TYPE||t.kind===Se.LIST_TYPE||t.kind===Se.NON_NULL_TYPE}function UB(t){return t.kind===Se.SCHEMA_DEFINITION||D0(t)||t.kind===Se.DIRECTIVE_DEFINITION}function D0(t){return t.kind===Se.SCALAR_TYPE_DEFINITION||t.kind===Se.OBJECT_TYPE_DEFINITION||t.kind===Se.INTERFACE_TYPE_DEFINITION||t.kind===Se.UNION_TYPE_DEFINITION||t.kind===Se.ENUM_TYPE_DEFINITION||t.kind===Se.INPUT_OBJECT_TYPE_DEFINITION}function HB(t){return t.kind===Se.SCHEMA_EXTENSION||QM(t)}function QM(t){return t.kind===Se.SCALAR_TYPE_EXTENSION||t.kind===Se.OBJECT_TYPE_EXTENSION||t.kind===Se.INTERFACE_TYPE_EXTENSION||t.kind===Se.UNION_TYPE_EXTENSION||t.kind===Se.ENUM_TYPE_EXTENSION||t.kind===Se.INPUT_OBJECT_TYPE_EXTENSION}function Xne(t){return{Document(e){for(const n of e.definitions)if(!BB(n)){const r=n.kind===Se.SCHEMA_DEFINITION||n.kind===Se.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';t.reportError(new Qe(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function Zne(t){return{Field(e){const n=t.getParentType();if(n&&!t.getFieldDef()){const i=t.getSchema(),a=e.name.value;let o=gd("to use an inline fragment on",w4e(i,n,a));o===""&&(o=gd(x4e(n,a))),t.reportError(new Qe(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:e}))}}}}function w4e(t,e,n){if(!Zc(e))return[];const r=new Set,i=Object.create(null);for(const o of t.getPossibleTypes(e))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(const s of o.getInterfaces()){var a;s.getFields()[n]&&(r.add(s),i[s.name]=((a=i[s.name])!==null&&a!==void 0?a:0)+1)}}return[...r].sort((o,s)=>{const l=i[s.name]-i[o.name];return l!==0?l:Zn(o)&&t.isSubType(o,s)?-1:Zn(s)&&t.isSubType(s,o)?1:$w(o.name,s.name)}).map(o=>o.name)}function x4e(t,e){if(Nn(t)||Zn(t)){const n=Object.keys(t.getFields());return cp(e,n)}return[]}function ere(t){return{InlineFragment(e){const n=e.typeCondition;if(n){const r=qo(t.getSchema(),n);if(r&&!cu(r)){const i=Or(n);t.reportError(new Qe(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(e){const n=qo(t.getSchema(),e.typeCondition);if(n&&!cu(n)){const r=Or(e.typeCondition);t.reportError(new Qe(`Fragment "${e.name.value}" cannot condition on non composite type "${r}".`,{nodes:e.typeCondition}))}}}}function tre(t){return{...nre(t),Argument(e){const n=t.getArgument(),r=t.getFieldDef(),i=t.getParentType();if(!n&&r&&i){const a=e.name.value,o=r.args.map(l=>l.name),s=cp(a,o);t.reportError(new Qe(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+gd(s),{nodes:e}))}}}}function nre(t){const e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():dp;for(const o of r)e[o.name]=o.args.map(s=>s.name);const i=t.getDocument().definitions;for(const o of i)if(o.kind===Se.DIRECTIVE_DEFINITION){var a;const s=(a=o.arguments)!==null&&a!==void 0?a:[];e[o.name.value]=s.map(l=>l.name.value)}return{Directive(o){const s=o.name.value,l=e[s];if(o.arguments&&l)for(const c of o.arguments){const u=c.name.value;if(!l.includes(u)){const d=cp(u,l);t.reportError(new Qe(`Unknown argument "${u}" on directive "@${s}".`+gd(d),{nodes:c}))}}return!1}}}function VB(t){const e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():dp;for(const a of r)e[a.name]=a.locations;const i=t.getDocument().definitions;for(const a of i)a.kind===Se.DIRECTIVE_DEFINITION&&(e[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,s,l,c){const u=a.name.value,d=e[u];if(!d){t.reportError(new Qe(`Unknown directive "@${u}".`,{nodes:a}));return}const f=E4e(c);f&&!d.includes(f)&&t.reportError(new Qe(`Directive "@${u}" may not be used on ${f}.`,{nodes:a}))}}}function E4e(t){const e=t[t.length-1];switch("kind"in e||_i(!1),e.kind){case Se.OPERATION_DEFINITION:return S4e(e.operation);case Se.FIELD:return Gt.FIELD;case Se.FRAGMENT_SPREAD:return Gt.FRAGMENT_SPREAD;case Se.INLINE_FRAGMENT:return Gt.INLINE_FRAGMENT;case Se.FRAGMENT_DEFINITION:return Gt.FRAGMENT_DEFINITION;case Se.VARIABLE_DEFINITION:return Gt.VARIABLE_DEFINITION;case Se.SCHEMA_DEFINITION:case Se.SCHEMA_EXTENSION:return Gt.SCHEMA;case Se.SCALAR_TYPE_DEFINITION:case Se.SCALAR_TYPE_EXTENSION:return Gt.SCALAR;case Se.OBJECT_TYPE_DEFINITION:case Se.OBJECT_TYPE_EXTENSION:return Gt.OBJECT;case Se.FIELD_DEFINITION:return Gt.FIELD_DEFINITION;case Se.INTERFACE_TYPE_DEFINITION:case Se.INTERFACE_TYPE_EXTENSION:return Gt.INTERFACE;case Se.UNION_TYPE_DEFINITION:case Se.UNION_TYPE_EXTENSION:return Gt.UNION;case Se.ENUM_TYPE_DEFINITION:case Se.ENUM_TYPE_EXTENSION:return Gt.ENUM;case Se.ENUM_VALUE_DEFINITION:return Gt.ENUM_VALUE;case Se.INPUT_OBJECT_TYPE_DEFINITION:case Se.INPUT_OBJECT_TYPE_EXTENSION:return Gt.INPUT_OBJECT;case Se.INPUT_VALUE_DEFINITION:{const n=t[t.length-3];return"kind"in n||_i(!1),n.kind===Se.INPUT_OBJECT_TYPE_DEFINITION?Gt.INPUT_FIELD_DEFINITION:Gt.ARGUMENT_DEFINITION}default:_i(!1,"Unexpected kind: "+et(e.kind))}}function S4e(t){switch(t){case Zi.QUERY:return Gt.QUERY;case Zi.MUTATION:return Gt.MUTATION;case Zi.SUBSCRIPTION:return Gt.SUBSCRIPTION}}function rre(t){return{FragmentSpread(e){const n=e.name.value;t.getFragment(n)||t.reportError(new Qe(`Unknown fragment "${n}".`,{nodes:e.name}))}}}function zB(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);for(const a of t.getDocument().definitions)D0(a)&&(r[a.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,s,l,c){const u=a.name.value;if(!n[u]&&!r[u]){var d;const f=(d=c[2])!==null&&d!==void 0?d:s,p=f!=null&&C4e(f);if(p&&YW.includes(u))return;const h=cp(u,p?YW.concat(i):i);t.reportError(new Qe(`Unknown type "${u}".`+gd(h),{nodes:a}))}}}}const YW=[...Vw,...Gw].map(t=>t.name);function C4e(t){return"kind"in t&&(UB(t)||HB(t))}function ire(t){let e=0;return{Document(n){e=n.definitions.filter(r=>r.kind===Se.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&e>1&&t.reportError(new Qe("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function are(t){var e,n,r;const i=t.getSchema(),a=(e=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&e!==void 0?e:i==null?void 0:i.getSubscriptionType();let o=0;return{SchemaDefinition(s){if(a){t.reportError(new Qe("Cannot define a new schema within a schema extension.",{nodes:s}));return}o>0&&t.reportError(new Qe("Must provide only one schema definition.",{nodes:s})),++o}}}function ore(t){const e=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(e[a.name.value])return;const o=a.name.value;e[o]=!0;const s=t.getFragmentSpreads(a.selectionSet);if(s.length!==0){r[o]=n.length;for(const l of s){const c=l.name.value,u=r[c];if(n.push(l),u===void 0){const d=t.getFragment(c);d&&i(d)}else{const d=n.slice(u),f=d.slice(0,-1).map(p=>'"'+p.name.value+'"').join(", ");t.reportError(new Qe(`Cannot spread fragment "${c}" within itself`+(f!==""?` via ${f}.`:"."),{nodes:d}))}n.pop()}r[o]=void 0}}}function sre(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const r=t.getRecursiveVariableUsages(n);for(const{node:i}of r){const a=i.name.value;e[a]!==!0&&t.reportError(new Qe(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){e[n.variable.name.value]=!0}}}function lre(t){const e=[],n=[];return{OperationDefinition(r){return e.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){const r=Object.create(null);for(const i of e)for(const a of t.getRecursivelyReferencedFragments(i))r[a.name.value]=!0;for(const i of n){const a=i.name.value;r[a]!==!0&&t.reportError(new Qe(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}function cre(t){let e=[];return{OperationDefinition:{enter(){e=[]},leave(n){const r=Object.create(null),i=t.getRecursiveVariableUsages(n);for(const{node:a}of i)r[a.name.value]=!0;for(const a of e){const o=a.variable.name.value;r[o]!==!0&&t.reportError(new Qe(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(n){e.push(n)}}}function KM(t){switch(t.kind){case Se.OBJECT:return{...t,fields:T4e(t.fields)};case Se.LIST:return{...t,values:t.values.map(KM)};case Se.INT:case Se.FLOAT:case Se.STRING:case Se.BOOLEAN:case Se.NULL:case Se.ENUM:case Se.VARIABLE:return t}}function T4e(t){return t.map(e=>({...e,value:KM(e.value)})).sort((e,n)=>$w(e.name.value,n.name.value))}function ure(t){return Array.isArray(t)?t.map(([e,n])=>`subfields "${e}" conflict because `+ure(n)).join(" and "):t}function dre(t){const e=new P4e,n=new Map;return{SelectionSet(r){const i=A4e(t,n,e,t.getParentType(),r);for(const[[a,o],s,l]of i){const c=ure(o);t.reportError(new Qe(`Fields "${a}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:s.concat(l)}))}}}}function A4e(t,e,n,r,i){const a=[],[o,s]=JT(t,e,r,i);if(M4e(t,a,e,n,o),s.length!==0)for(let l=0;l1)for(let s=0;s({kind:Se.OBJECT_FIELD,name:i.name,value:i.value}))};return Or(KM(r))}function vk(t,e){return Nr(t)?Nr(e)?vk(t.ofType,e.ofType):!0:Nr(e)?!0:nn(t)?nn(e)?vk(t.ofType,e.ofType):!0:nn(e)?!0:lu(t)||lu(e)?t!==e:!1}function JT(t,e,n,r){const i=e.get(r);if(i)return i;const a=Object.create(null),o=Object.create(null);pre(t,n,r,a,o);const s=[a,Object.keys(o)];return e.set(r,s),s}function yk(t,e,n){const r=e.get(n.selectionSet);if(r)return r;const i=qo(t.getSchema(),n.typeCondition);return JT(t,e,i,n.selectionSet)}function pre(t,e,n,r,i){for(const a of n.selections)switch(a.kind){case Se.FIELD:{const o=a.name.value;let s;(Nn(e)||Zn(e))&&(s=e.getFields()[o]);const l=a.alias?a.alias.value:o;r[l]||(r[l]=[]),r[l].push([e,a,s]);break}case Se.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case Se.INLINE_FRAGMENT:{const o=a.typeCondition,s=o?qo(t.getSchema(),o):e;pre(t,s,a.selectionSet,r,i);break}}}function D4e(t,e,n,r){if(t.length>0)return[[e,t.map(([i])=>i)],[n,...t.map(([,i])=>i).flat()],[r,...t.map(([,,i])=>i).flat()]]}class P4e{constructor(){this._data=new Map}has(e,n,r){var i;const[a,o]=ea.name.value));for(const a of r.args)if(!i.has(a.name)&&up(a)){const o=et(a.type);t.reportError(new Qe(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:e}))}}}}}function vre(t){var e;const n=Object.create(null),r=t.getSchema(),i=(e=r==null?void 0:r.getDirectives())!==null&&e!==void 0?e:dp;for(const s of i)n[s.name]=vd(s.args.filter(up),l=>l.name);const a=t.getDocument().definitions;for(const s of a)if(s.kind===Se.DIRECTIVE_DEFINITION){var o;const l=(o=s.arguments)!==null&&o!==void 0?o:[];n[s.name.value]=vd(l.filter(k4e),c=>c.name.value)}return{Directive:{leave(s){const l=s.name.value,c=n[l];if(c){var u;const d=(u=s.arguments)!==null&&u!==void 0?u:[],f=new Set(d.map(p=>p.name.value));for(const[p,h]of Object.entries(c))if(!f.has(p)){const v=Bw(h.type)?et(h.type):Or(h.type);t.reportError(new Qe(`Directive "@${l}" argument "${p}" of type "${v}" is required, but it was not provided.`,{nodes:s}))}}}}}}function k4e(t){return t.type.kind===Se.NON_NULL_TYPE&&t.defaultValue==null}function yre(t){return{Field(e){const n=t.getType(),r=e.selectionSet;if(n){if(lu(go(n))){if(r){const i=e.name.value,a=et(n);t.reportError(new Qe(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){const i=e.name.value,a=et(n);t.reportError(new Qe(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:e}))}}}}}function bre(t){return t.map(e=>typeof e=="number"?"["+e.toString()+"]":"."+e).join("")}function Jv(t,e,n){return{prev:t,key:e,typename:n}}function as(t){const e=[];let n=t;for(;n;)e.push(n.key),n=n.prev;return e.reverse()}function _re(t,e,n=F4e){return $b(t,e,n,void 0)}function F4e(t,e,n){let r="Invalid value "+et(e);throw t.length>0&&(r+=` at "value${bre(t)}"`),n.message=r+": "+n.message,n}function $b(t,e,n,r){if(nn(e)){if(t!=null)return $b(t,e.ofType,n,r);n(as(r),t,new Qe(`Expected non-nullable type "${et(e)}" not to be null.`));return}if(t==null)return null;if(Nr(e)){const i=e.ofType;return AB(t)?Array.from(t,(a,o)=>{const s=Jv(r,o,void 0);return $b(a,i,n,s)}):[$b(t,i,n,r)]}if(Lr(e)){if(!Is(t)){n(as(r),t,new Qe(`Expected type "${e.name}" to be an object.`));return}const i={},a=e.getFields();for(const o of Object.values(a)){const s=t[o.name];if(s===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if(nn(o.type)){const l=et(o.type);n(as(r),t,new Qe(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=$b(s,o.type,n,Jv(r,o.name,e.name))}for(const o of Object.keys(t))if(!a[o]){const s=cp(o,Object.keys(e.getFields()));n(as(r),t,new Qe(`Field "${o}" is not defined by type "${e.name}".`+gd(s)))}return i}if(lu(e)){let i;try{i=e.parseValue(t)}catch(a){a instanceof Qe?n(as(r),t,a):n(as(r),t,new Qe(`Expected type "${e.name}". `+a.message,{originalError:a}));return}return i===void 0&&n(as(r),t,new Qe(`Expected type "${e.name}".`)),i}_i(!1,"Unexpected input type: "+et(e))}function Gc(t,e,n){if(t){if(t.kind===Se.VARIABLE){const r=t.name.value;if(n==null||n[r]===void 0)return;const i=n[r];return i===null&&nn(e)?void 0:i}if(nn(e))return t.kind===Se.NULL?void 0:Gc(t,e.ofType,n);if(t.kind===Se.NULL)return null;if(Nr(e)){const r=e.ofType;if(t.kind===Se.LIST){const a=[];for(const o of t.values)if(QW(o,n)){if(nn(r))return;a.push(null)}else{const s=Gc(o,r,n);if(s===void 0)return;a.push(s)}return a}const i=Gc(t,r,n);return i===void 0?void 0:[i]}if(Lr(e)){if(t.kind!==Se.OBJECT)return;const r=Object.create(null),i=vd(t.fields,a=>a.name.value);for(const a of Object.values(e.getFields())){const o=i[a.name];if(!o||QW(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if(nn(a.type))return;continue}const s=Gc(o.value,a.type,n);if(s===void 0)return;r[a.name]=s}return r}if(lu(e)){let r;try{r=e.parseLiteral(t,n)}catch{return}return r===void 0?void 0:r}_i(!1,"Unexpected input type: "+et(e))}}function QW(t,e){return t.kind===Se.VARIABLE&&(e==null||e[t.name.value]===void 0)}function wre(t,e,n,r){const i=[],a=r==null?void 0:r.maxErrors;try{const o=$4e(t,e,n,s=>{if(a!=null&&i.length>=a)throw new Qe("Too many errors processing variables, error limit reached. Execution aborted.");i.push(s)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function $4e(t,e,n,r){const i={};for(const a of e){const o=a.variable.name.value,s=qo(t,a.type);if(!Ro(s)){const c=Or(a.type);r(new Qe(`Variable "$${o}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!xre(n,o)){if(a.defaultValue)i[o]=Gc(a.defaultValue,s);else if(nn(s)){const c=et(s);r(new Qe(`Variable "$${o}" of required type "${c}" was not provided.`,{nodes:a}))}continue}const l=n[o];if(l===null&&nn(s)){const c=et(s);r(new Qe(`Variable "$${o}" of non-null type "${c}" must not be null.`,{nodes:a}));continue}i[o]=_re(l,s,(c,u,d)=>{let f=`Variable "$${o}" got invalid value `+et(u);c.length>0&&(f+=` at "${o}${bre(c)}"`),r(new Qe(f+"; "+d.message,{nodes:a,originalError:d.originalError}))})}return i}function XM(t,e,n){var r;const i={},a=(r=e.arguments)!==null&&r!==void 0?r:[],o=vd(a,s=>s.name.value);for(const s of t.args){const l=s.name,c=s.type,u=o[l];if(!u){if(s.defaultValue!==void 0)i[l]=s.defaultValue;else if(nn(c))throw new Qe(`Argument "${l}" of required type "${et(c)}" was not provided.`,{nodes:e});continue}const d=u.value;let f=d.kind===Se.NULL;if(d.kind===Se.VARIABLE){const h=d.name.value;if(n==null||!xre(n,h)){if(s.defaultValue!==void 0)i[l]=s.defaultValue;else if(nn(c))throw new Qe(`Argument "${l}" of required type "${et(c)}" was provided the variable "$${h}" which was not provided a runtime value.`,{nodes:d});continue}f=n[h]==null}if(f&&nn(c))throw new Qe(`Argument "${l}" of non-null type "${et(c)}" must not be null.`,{nodes:d});const p=Gc(d,c,n);if(p===void 0)throw new Qe(`Argument "${l}" has invalid value ${Or(d)}.`,{nodes:d});i[l]=p}return i}function d1(t,e,n){var r;const i=(r=e.directives)===null||r===void 0?void 0:r.find(a=>a.name.value===t.name);if(i)return XM(t,i,n)}function xre(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function GB(t,e,n,r,i){const a=new Map;return QT(t,e,n,r,i,a,new Set),a}function B4e(t,e,n,r,i){const a=new Map,o=new Set;for(const s of i)s.selectionSet&&QT(t,e,n,r,s.selectionSet,a,o);return a}function QT(t,e,n,r,i,a,o){for(const s of i.selections)switch(s.kind){case Se.FIELD:{if(!$O(n,s))continue;const l=U4e(s),c=a.get(l);c!==void 0?c.push(s):a.set(l,[s]);break}case Se.INLINE_FRAGMENT:{if(!$O(n,s)||!KW(t,s,r))continue;QT(t,e,n,r,s.selectionSet,a,o);break}case Se.FRAGMENT_SPREAD:{const l=s.name.value;if(o.has(l)||!$O(n,s))continue;o.add(l);const c=e[l];if(!c||!KW(t,c,r))continue;QT(t,e,n,r,c.selectionSet,a,o);break}}}function $O(t,e){const n=d1(EB,e,t);if((n==null?void 0:n.if)===!0)return!1;const r=d1(xB,e,t);return(r==null?void 0:r.if)!==!1}function KW(t,e,n){const r=e.typeCondition;if(!r)return!0;const i=qo(t,r);return i===n?!0:Zc(i)?t.isSubType(i,n):!1}function U4e(t){return t.alias?t.alias.value:t.name.value}function Ere(t){return{OperationDefinition(e){if(e.operation==="subscription"){const n=t.getSchema(),r=n.getSubscriptionType();if(r){const i=e.name?e.name.value:null,a=Object.create(null),o=t.getDocument(),s=Object.create(null);for(const c of o.definitions)c.kind===Se.FRAGMENT_DEFINITION&&(s[c.name.value]=c);const l=GB(n,s,a,r,e.selectionSet);if(l.size>1){const d=[...l.values()].slice(1).flat();t.reportError(new Qe(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(const c of l.values())c[0].name.value.startsWith("__")&&t.reportError(new Qe(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}function WB(t,e){const n=new Map;for(const r of t){const i=e(r),a=n.get(i);a===void 0?n.set(i,[r]):a.push(r)}return n}function Sre(t){return{DirectiveDefinition(r){var i;const a=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,a)},InterfaceTypeDefinition:e,InterfaceTypeExtension:e,ObjectTypeDefinition:e,ObjectTypeExtension:e};function e(r){var i;const a=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(const l of o){var s;const c=l.name.value,u=(s=l.arguments)!==null&&s!==void 0?s:[];n(`${a}.${c}`,u)}return!1}function n(r,i){const a=WB(i,o=>o.name.value);for(const[o,s]of a)s.length>1&&t.reportError(new Qe(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:s.map(l=>l.name)}));return!1}}function qB(t){return{Field:e,Directive:e};function e(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],a=WB(i,o=>o.name.value);for(const[o,s]of a)s.length>1&&t.reportError(new Qe(`There can be only one argument named "${o}".`,{nodes:s.map(l=>l.name)}))}}function Cre(t){const e=Object.create(null),n=t.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(n!=null&&n.getDirective(i)){t.reportError(new Qe(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return e[i]?t.reportError(new Qe(`There can be only one directive named "@${i}".`,{nodes:[e[i],r.name]})):e[i]=r.name,!1}}}function YB(t){const e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():dp;for(const s of r)e[s.name]=!s.isRepeatable;const i=t.getDocument().definitions;for(const s of i)s.kind===Se.DIRECTIVE_DEFINITION&&(e[s.name.value]=!s.repeatable);const a=Object.create(null),o=Object.create(null);return{enter(s){if(!("directives"in s)||!s.directives)return;let l;if(s.kind===Se.SCHEMA_DEFINITION||s.kind===Se.SCHEMA_EXTENSION)l=a;else if(D0(s)||QM(s)){const c=s.name.value;l=o[c],l===void 0&&(o[c]=l=Object.create(null))}else l=Object.create(null);for(const c of s.directives){const u=c.name.value;e[u]&&(l[u]?t.reportError(new Qe(`The directive "@${u}" can only be used once at this location.`,{nodes:[l[u],c]})):l[u]=c)}}}}function Tre(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;const s=a.name.value;r[s]||(r[s]=Object.create(null));const l=(o=a.values)!==null&&o!==void 0?o:[],c=r[s];for(const u of l){const d=u.name.value,f=n[s];ji(f)&&f.getValue(d)?t.reportError(new Qe(`Enum value "${s}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):c[d]?t.reportError(new Qe(`Enum value "${s}.${d}" can only be defined once.`,{nodes:[c[d],u.name]})):c[d]=u.name}return!1}}function Are(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var o;const s=a.name.value;r[s]||(r[s]=Object.create(null));const l=(o=a.fields)!==null&&o!==void 0?o:[],c=r[s];for(const u of l){const d=u.name.value;H4e(n[s],d)?t.reportError(new Qe(`Field "${s}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):c[d]?t.reportError(new Qe(`Field "${s}.${d}" can only be defined once.`,{nodes:[c[d],u.name]})):c[d]=u.name}return!1}}function H4e(t,e){return Nn(t)||Zn(t)||Lr(t)?t.getFields()[e]!=null:!1}function Ire(t){const e=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return e[r]?t.reportError(new Qe(`There can be only one fragment named "${r}".`,{nodes:[e[r],n.name]})):e[r]=n.name,!1}}}function JB(t){const e=[];let n=Object.create(null);return{ObjectValue:{enter(){e.push(n),n=Object.create(null)},leave(){const r=e.pop();r||_i(!1),n=r}},ObjectField(r){const i=r.name.value;n[i]?t.reportError(new Qe(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function Mre(t){const e=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(e[r.value]?t.reportError(new Qe(`There can be only one operation named "${r.value}".`,{nodes:[e[r.value],r]})):e[r.value]=r),!1},FragmentDefinition:()=>!1}}function Dre(t){const e=t.getSchema(),n=Object.create(null),r=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var o;const s=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(const l of s){const c=l.operation,u=n[c];r[c]?t.reportError(new Qe(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:l})):u?t.reportError(new Qe(`There can be only one ${c} type in schema.`,{nodes:[u,l]})):n[c]=l}return!1}}function Pre(t){const e=Object.create(null),n=t.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){const a=i.name.value;if(n!=null&&n.getType(a)){t.reportError(new Qe(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return e[a]?t.reportError(new Qe(`There can be only one type named "${a}".`,{nodes:[e[a],i.name]})):e[a]=i.name,!1}}function Rre(t){return{OperationDefinition(e){var n;const r=(n=e.variableDefinitions)!==null&&n!==void 0?n:[],i=WB(r,a=>a.variable.name.value);for(const[a,o]of i)o.length>1&&t.reportError(new Qe(`There can be only one variable named "$${a}".`,{nodes:o.map(s=>s.variable.name)}))}}}function Ore(t){return{ListValue(e){const n=yB(t.getParentInputType());if(!Nr(n))return Dp(t,e),!1},ObjectValue(e){const n=go(t.getInputType());if(!Lr(n))return Dp(t,e),!1;const r=vd(e.fields,i=>i.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&GM(i)){const o=et(i.type);t.reportError(new Qe(`Field "${n.name}.${i.name}" of required type "${o}" was not provided.`,{nodes:e}))}},ObjectField(e){const n=go(t.getParentInputType());if(!t.getInputType()&&Lr(n)){const i=cp(e.name.value,Object.keys(n.getFields()));t.reportError(new Qe(`Field "${e.name.value}" is not defined by type "${n.name}".`+gd(i),{nodes:e}))}},NullValue(e){const n=t.getInputType();nn(n)&&t.reportError(new Qe(`Expected value of type "${et(n)}", found ${Or(e)}.`,{nodes:e}))},EnumValue:e=>Dp(t,e),IntValue:e=>Dp(t,e),FloatValue:e=>Dp(t,e),StringValue:e=>Dp(t,e),BooleanValue:e=>Dp(t,e)}}function Dp(t,e){const n=t.getInputType();if(!n)return;const r=go(n);if(!lu(r)){const i=et(n);t.reportError(new Qe(`Expected value of type "${i}", found ${Or(e)}.`,{nodes:e}));return}try{if(r.parseLiteral(e,void 0)===void 0){const a=et(n);t.reportError(new Qe(`Expected value of type "${a}", found ${Or(e)}.`,{nodes:e}))}}catch(i){const a=et(n);i instanceof Qe?t.reportError(i):t.reportError(new Qe(`Expected value of type "${a}", found ${Or(e)}; `+i.message,{nodes:e,originalError:i}))}}function Nre(t){return{VariableDefinition(e){const n=qo(t.getSchema(),e.type);if(n!==void 0&&!Ro(n)){const r=e.variable.name.value,i=Or(e.type);t.reportError(new Qe(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:e.type}))}}}}function Lre(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const r=t.getRecursiveVariableUsages(n);for(const{node:i,type:a,defaultValue:o}of r){const s=i.name.value,l=e[s];if(l&&a){const c=t.getSchema(),u=qo(c,l.type);if(u&&!V4e(c,u,l.defaultValue,a,o)){const d=et(u),f=et(a);t.reportError(new Qe(`Variable "$${s}" of type "${d}" used in position expecting type "${f}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){e[n.variable.name.value]=n}}}function V4e(t,e,n,r,i){if(nn(r)&&!nn(e)){if(!(n!=null&&n.kind!==Se.NULL)&&!(i!==void 0))return!1;const s=r.ofType;return vh(t,e,s)}return vh(t,e,r)}const kre=Object.freeze([Xne,Mre,ire,Ere,zB,ere,Nre,yre,Zne,Ire,rre,lre,hre,ore,Rre,sre,cre,VB,YB,tre,qB,Ore,gre,Lre,dre,JB]),z4e=Object.freeze([are,Dre,Pre,Tre,Are,Sre,Cre,zB,VB,YB,mre,nre,qB,JB,vre]);class Fre{constructor(e,n){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const r of this.getDocument().definitions)r.kind===Se.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[e]}getFragmentSpreads(e){let n=this._fragmentSpreads.get(e);if(!n){n=[];const r=[e];let i;for(;i=r.pop();)for(const a of i.selections)a.kind===Se.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&r.push(a.selectionSet);this._fragmentSpreads.set(e,n)}return n}getRecursivelyReferencedFragments(e){let n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];const r=Object.create(null),i=[e.selectionSet];let a;for(;a=i.pop();)for(const o of this.getFragmentSpreads(a)){const s=o.name.value;if(r[s]!==!0){r[s]=!0;const l=this.getFragment(s);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n}}class j4e extends Fre{constructor(e,n,r){super(e,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class $re extends Fre{constructor(e,n,r,i){super(n,i),this._schema=e,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let n=this._variableUsages.get(e);if(!n){const r=[],i=new FB(this._schema);I0(e,$B(i,{VariableDefinition:()=>!1,Variable(a){r.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(e,n)}return n}getRecursiveVariableUsages(e){let n=this._recursiveVariableUsages.get(e);if(!n){n=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(e,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function Bre(t,e,n=kre,r,i=new FB(t)){var a;const o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;e||pn(!1,"Must provide document."),LB(t);const s=Object.freeze({}),l=[],c=new $re(t,e,i,d=>{if(l.length>=o)throw l.push(new Qe("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(d)}),u=gB(n.map(d=>d(c)));try{I0(e,$B(i,u))}catch(d){if(d!==s)throw d}return l}function Ure(t,e,n=z4e){const r=[],i=new j4e(t,e,o=>{r.push(o)}),a=n.map(o=>o(i));return I0(t,gB(a)),r}function G4e(t){const e=Ure(t);if(e.length!==0)throw new Error(e.map(n=>n.message).join(` `))}function W4e(t,e){const n=Ure(t,e);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` `))}function q4e(t){let e;return function(r,i,a){e===void 0&&(e=new WeakMap);let o=e.get(r);o===void 0&&(o=new WeakMap,e.set(r,o));let s=o.get(i);s===void 0&&(s=new WeakMap,o.set(i,s));let l=s.get(a);return l===void 0&&(l=t(r,i,a),s.set(a,l)),l}}function Y4e(t){return Promise.all(Object.values(t)).then(e=>{const n=Object.create(null);for(const[r,i]of Object.keys(t).entries())n[i]=e[r];return n})}function J4e(t,e,n){let r=n;for(const i of t)r=As(r)?r.then(a=>e(a,i)):e(r,i);return r}function Q4e(t){return t instanceof Error?t:new K4e(t)}class K4e extends Error{constructor(e){super("Unexpected error value: "+et(e)),this.name="NonErrorThrown",this.thrownValue=e}}function Qv(t,e,n){var r;const i=Q4e(t);return X4e(i)?i:new Qe(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:e,source:i.source,positions:i.positions,path:n,originalError:i})}function X4e(t){return Array.isArray(t.path)}const Z4e=q4e((t,e,n)=>B4e(t.schema,t.fragments,t.variableValues,e,n));function ZM(t){arguments.length<2||pn(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,document:n,variableValues:r,rootValue:i}=t;Vre(e,n,r);const a=zre(t);if(!("schema"in a))return{errors:a};try{const{operation:o}=a,s=e5e(a,o,i);return As(s)?s.then(l=>WE(l,a.errors),l=>(a.errors.push(l),WE(null,a.errors))):WE(s,a.errors)}catch(o){return a.errors.push(o),WE(null,a.errors)}}function Hre(t){const e=ZM(t);if(As(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function WE(t,e){return e.length===0?{data:t}:{errors:e,data:t}}function Vre(t,e,n){e||pn(!1,"Must provide document."),LB(t),n==null||Is(n)||pn(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function zre(t){var e,n;const{schema:r,document:i,rootValue:a,contextValue:o,variableValues:s,operationName:l,fieldResolver:c,typeResolver:u,subscribeFieldResolver:d}=t;let f;const p=Object.create(null);for(const b of i.definitions)switch(b.kind){case Se.OPERATION_DEFINITION:if(l==null){if(f!==void 0)return[new Qe("Must provide operation name if query contains multiple operations.")];f=b}else((e=b.name)===null||e===void 0?void 0:e.value)===l&&(f=b);break;case Se.FRAGMENT_DEFINITION:p[b.name.value]=b;break}if(!f)return l!=null?[new Qe(`Unknown operation named "${l}".`)]:[new Qe("Must provide an operation.")];const h=(n=f.variableDefinitions)!==null&&n!==void 0?n:[],v=wre(r,h,s??{},{maxErrors:50});return v.errors?v.errors:{schema:r,fragments:p,rootValue:a,contextValue:o,operation:f,variableValues:v.coerced,fieldResolver:c??_k,typeResolver:u??Wre,subscribeFieldResolver:d??_k,errors:[]}}function e5e(t,e,n){const r=t.schema.getRootType(e.operation);if(r==null)throw new Qe(`Schema is not configured to execute ${e.operation} operation.`,{nodes:e});const i=GB(t.schema,t.fragments,t.variableValues,r,e.selectionSet),a=void 0;switch(e.operation){case Zi.QUERY:return KT(t,r,n,a,i);case Zi.MUTATION:return t5e(t,r,n,a,i);case Zi.SUBSCRIPTION:return KT(t,r,n,a,i)}}function t5e(t,e,n,r,i){return J4e(i.entries(),(a,[o,s])=>{const l=Jv(r,o,e.name),c=jre(t,e,n,s,l);return c===void 0?a:As(c)?c.then(u=>(a[o]=u,a)):(a[o]=c,a)},Object.create(null))}function KT(t,e,n,r,i){const a=Object.create(null);let o=!1;for(const[s,l]of i.entries()){const c=Jv(r,s,e.name),u=jre(t,e,n,l,c);u!==void 0&&(a[s]=u,As(u)&&(o=!0))}return o?Y4e(a):a}function jre(t,e,n,r,i){var a;const o=qre(t.schema,e,r[0]);if(!o)return;const s=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:t.fieldResolver,c=Gre(t,o,r,e,i);try{const u=XM(o,r[0],t.variableValues),d=t.contextValue,f=l(n,u,d,c);let p;return As(f)?p=f.then(h=>f1(t,s,r,c,i,h)):p=f1(t,s,r,c,i,f),As(p)?p.then(void 0,h=>{const v=Qv(h,r,as(i));return XT(v,s,t)}):p}catch(u){const d=Qv(u,r,as(i));return XT(d,s,t)}}function Gre(t,e,n,r,i){return{fieldName:e.name,fieldNodes:n,returnType:e.type,parentType:r,path:i,schema:t.schema,fragments:t.fragments,rootValue:t.rootValue,operation:t.operation,variableValues:t.variableValues}}function XT(t,e,n){if(nn(e))throw t;return n.errors.push(t),null}function f1(t,e,n,r,i,a){if(a instanceof Error)throw a;if(nn(e)){const o=f1(t,e.ofType,n,r,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(a==null)return null;if(Nr(e))return n5e(t,e,n,r,i,a);if(lu(e))return r5e(e,a);if(Zc(e))return i5e(t,e,n,r,i,a);if(Nn(e))return bk(t,e,n,r,i,a);_i(!1,"Cannot complete value of unexpected output type: "+et(e))}function n5e(t,e,n,r,i,a){if(!AB(a))throw new Qe(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const o=e.ofType;let s=!1;const l=Array.from(a,(c,u)=>{const d=Jv(i,u,void 0);try{let f;return As(c)?f=c.then(p=>f1(t,o,n,r,d,p)):f=f1(t,o,n,r,d,c),As(f)?(s=!0,f.then(void 0,p=>{const h=Qv(p,n,as(d));return XT(h,o,t)})):f}catch(f){const p=Qv(f,n,as(d));return XT(p,o,t)}});return s?Promise.all(l):l}function r5e(t,e){const n=t.serialize(e);if(n==null)throw new Error(`Expected \`${et(t)}.serialize(${et(e)})\` to return non-nullable value, returned: ${et(n)}`);return n}function i5e(t,e,n,r,i,a){var o;const s=(o=e.resolveType)!==null&&o!==void 0?o:t.typeResolver,l=t.contextValue,c=s(a,l,r,e);return As(c)?c.then(u=>bk(t,XW(u,t,e,n,r,a),n,r,i,a)):bk(t,XW(c,t,e,n,r,a),n,r,i,a)}function XW(t,e,n,r,i,a){if(t==null)throw new Qe(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(Nn(t))throw new Qe("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof t!="string")throw new Qe(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${et(a)}, received "${et(t)}".`);const o=e.schema.getType(t);if(o==null)throw new Qe(`Abstract type "${n.name}" was resolved to a type "${t}" that does not exist inside the schema.`,{nodes:r});if(!Nn(o))throw new Qe(`Abstract type "${n.name}" was resolved to a non-object type "${t}".`,{nodes:r});if(!e.schema.isSubType(n,o))throw new Qe(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function bk(t,e,n,r,i,a){const o=Z4e(t,e,n);if(e.isTypeOf){const s=e.isTypeOf(a,t.contextValue,r);if(As(s))return s.then(l=>{if(!l)throw ZW(e,a,n);return KT(t,e,a,i,o)});if(!s)throw ZW(e,a,n)}return KT(t,e,a,i,o)}function ZW(t,e,n){return new Qe(`Expected value of type "${t.name}" but got: ${et(e)}.`,{nodes:n})}const Wre=function(t,e,n,r){if(Is(t)&&typeof t.__typename=="string")return t.__typename;const i=n.schema.getPossibleTypes(r),a=[];for(let o=0;o{for(let s=0;se(Yre(t)))}function o5e(t){const e=Yre(t);if(As(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function Yre(t){arguments.length<2||pn(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,source:n,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:s,typeResolver:l}=t,c=NB(e);if(c.length>0)return{errors:c};let u;try{u=zM(n)}catch(f){return{errors:[f]}}const d=Bre(e,u);return d.length>0?{errors:d}:ZM({schema:e,document:u,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:s,typeResolver:l})}function Jre(t){return typeof(t==null?void 0:t[Symbol.asyncIterator])=="function"}function s5e(t,e){const n=t[Symbol.asyncIterator]();async function r(i){if(i.done)return i;try{return{value:await e(i.value),done:!1}}catch(a){if(typeof n.return=="function")try{await n.return()}catch{}throw a}}return{async next(){return r(await n.next())},async return(){return typeof n.return=="function"?r(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return r(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function l5e(t){arguments.length<2||pn(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const e=await Qre(t);return Jre(e)?s5e(e,r=>ZM({...t,rootValue:r})):e}function c5e(t){const e=t[0];return e&&"document"in e?e:{schema:e,document:t[1],rootValue:t[2],contextValue:t[3],variableValues:t[4],operationName:t[5],subscribeFieldResolver:t[6]}}async function Qre(...t){const e=c5e(t),{schema:n,document:r,variableValues:i}=e;Vre(n,r,i);const a=zre(e);if(!("schema"in a))return{errors:a};try{const o=await u5e(a);if(!Jre(o))throw new Error(`Subscription field must return Async Iterable. Received: ${et(o)}.`);return o}catch(o){if(o instanceof Qe)return{errors:[o]};throw o}}async function u5e(t){const{schema:e,fragments:n,operation:r,variableValues:i,rootValue:a}=t,o=e.getSubscriptionType();if(o==null)throw new Qe("Schema is not configured to execute subscription operation.",{nodes:r});const s=GB(e,n,i,o,r.selectionSet),[l,c]=[...s.entries()][0],u=qre(e,o,c[0]);if(!u){const h=c[0].name.value;throw new Qe(`The subscription field "${h}" is not defined.`,{nodes:c})}const d=Jv(void 0,l,o.name),f=Gre(t,u,c,o,d);try{var p;const h=XM(u,c[0],i),v=t.contextValue,g=await((p=u.subscribe)!==null&&p!==void 0?p:t.subscribeFieldResolver)(a,h,v,f);if(g instanceof Error)throw g;return g}catch(h){throw Qv(h,c,as(d))}}function d5e(t){return{Field(e){const n=t.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=t.getParentType();i!=null||_i(!1),t.reportError(new Qe(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:e}))}},Argument(e){const n=t.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=t.getDirective();if(i!=null)t.reportError(new Qe(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:e}));else{const a=t.getParentType(),o=t.getFieldDef();a!=null&&o!=null||_i(!1),t.reportError(new Qe(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:e}))}}},ObjectField(e){const n=go(t.getParentInputType());if(Lr(n)){const r=n.getFields()[e.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&t.reportError(new Qe(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:e}))}},EnumValue(e){const n=t.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=go(t.getInputType());i!=null||_i(!1),t.reportError(new Qe(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:e}))}}}}function f5e(t){return{Field(e){const n=go(t.getType());n&&rm(n)&&t.reportError(new Qe(`GraphQL introspection has been disabled, but the requested query contained the field "${e.name.value}".`,{nodes:e}))}}}function Kre(t){const e={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...t},n=e.descriptions?"description":"",r=e.specifiedByUrl?"specifiedByURL":"",i=e.directiveIsRepeatable?"isRepeatable":"",a=e.schemaDescription?n:"";function o(s){return e.inputValueDeprecation?s:""}return` query IntrospectionQuery { __schema { ${a} queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name ${n} ${i} locations args${o("(includeDeprecated: true)")} { ...InputValue } } } } fragment FullType on __Type { kind name ${n} ${r} fields(includeDeprecated: true) { name ${n} args${o("(includeDeprecated: true)")} { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields${o("(includeDeprecated: true)")} { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name ${n} isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name ${n} type { ...TypeRef } defaultValue ${o("isDeprecated")} ${o("deprecationReason")} } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } } `}function p5e(t,e){let n=null;for(const i of t.definitions)if(i.kind===Se.OPERATION_DEFINITION){var r;if(e==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===e)return i}return n}function h5e(t,e){if(e.operation==="query"){const n=t.getQueryType();if(!n)throw new Qe("Schema does not define the required query root type.",{nodes:e});return n}if(e.operation==="mutation"){const n=t.getMutationType();if(!n)throw new Qe("Schema is not configured for mutations.",{nodes:e});return n}if(e.operation==="subscription"){const n=t.getSubscriptionType();if(!n)throw new Qe("Schema is not configured for subscriptions.",{nodes:e});return n}throw new Qe("Can only have query, mutation and subscription operations.",{nodes:e})}function m5e(t,e){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...e},r=zM(Kre(n)),i=Hre({schema:t,document:r});return!i.errors&&i.data||_i(!1),i.data}function g5e(t,e){Is(t)&&Is(t.__schema)||pn(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${et(t)}.`);const n=t.__schema,r=bf(n.types,M=>M.name,M=>f(M));for(const M of[...Vw,...Gw])r[M.name]&&(r[M.name]=M);const i=n.queryType?u(n.queryType):null,a=n.mutationType?u(n.mutationType):null,o=n.subscriptionType?u(n.subscriptionType):null,s=n.directives?n.directives.map(P):[];return new M0({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:s,assumeValid:e==null?void 0:e.assumeValid});function l(M){if(M.kind===ur.LIST){const N=M.ofType;if(!N)throw new Error("Decorated type deeper than introspection query.");return new Na(l(N))}if(M.kind===ur.NON_NULL){const N=M.ofType;if(!N)throw new Error("Decorated type deeper than introspection query.");const R=l(N);return new fn(Vne(R))}return c(M)}function c(M){const N=M.name;if(!N)throw new Error(`Unknown type reference: ${et(M)}.`);const R=r[N];if(!R)throw new Error(`Invalid or incomplete schema, unknown type: ${N}. Ensure that a full introspection query is used in order to build a client schema.`);return R}function u(M){return Une(c(M))}function d(M){return Hne(c(M))}function f(M){if(M!=null&&M.name!=null&&M.kind!=null)switch(M.kind){case ur.SCALAR:return p(M);case ur.OBJECT:return v(M);case ur.INTERFACE:return b(M);case ur.UNION:return g(M);case ur.ENUM:return y(M);case ur.INPUT_OBJECT:return w(M)}const N=et(M);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${N}.`)}function p(M){return new uu({name:M.name,description:M.description,specifiedByURL:M.specifiedByURL})}function h(M){if(M.interfaces===null&&M.kind===ur.INTERFACE)return[];if(!M.interfaces){const N=et(M);throw new Error(`Introspection result missing interfaces: ${N}.`)}return M.interfaces.map(d)}function v(M){return new Cl({name:M.name,description:M.description,interfaces:()=>h(M),fields:()=>x(M)})}function b(M){return new Wv({name:M.name,description:M.description,interfaces:()=>h(M),fields:()=>x(M)})}function g(M){if(!M.possibleTypes){const N=et(M);throw new Error(`Introspection result missing possibleTypes: ${N}.`)}return new qv({name:M.name,description:M.description,types:()=>M.possibleTypes.map(u)})}function y(M){if(!M.enumValues){const N=et(M);throw new Error(`Introspection result missing enumValues: ${N}.`)}return new Qf({name:M.name,description:M.description,values:bf(M.enumValues,N=>N.name,N=>({description:N.description,deprecationReason:N.deprecationReason}))})}function w(M){if(!M.inputFields){const N=et(M);throw new Error(`Introspection result missing inputFields: ${N}.`)}return new Yv({name:M.name,description:M.description,fields:()=>T(M.inputFields)})}function x(M){if(!M.fields)throw new Error(`Introspection result missing fields: ${et(M)}.`);return bf(M.fields,N=>N.name,S)}function S(M){const N=l(M.type);if(!Ff(N)){const R=et(N);throw new Error(`Introspection must provide output type for fields, but received: ${R}.`)}if(!M.args){const R=et(M);throw new Error(`Introspection result missing field args: ${R}.`)}return{description:M.description,deprecationReason:M.deprecationReason,type:N,args:T(M.args)}}function T(M){return bf(M,N=>N.name,I)}function I(M){const N=l(M.type);if(!Ro(N)){const O=et(N);throw new Error(`Introspection must provide input type for arguments, but received: ${O}.`)}const R=M.defaultValue!=null?Gc(Fne(M.defaultValue),N):void 0;return{description:M.description,type:N,defaultValue:R,deprecationReason:M.deprecationReason}}function P(M){if(!M.args){const N=et(M);throw new Error(`Introspection result missing directive args: ${N}.`)}if(!M.locations){const N=et(M);throw new Error(`Introspection result missing directive locations: ${N}.`)}return new du({name:M.name,description:M.description,isRepeatable:M.isRepeatable,locations:M.locations.slice(),args:T(M.args)})}}function v5e(t,e,n){OB(t),e!=null&&e.kind===Se.DOCUMENT||pn(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&W4e(e,t);const r=t.toConfig(),i=Xre(r,e,n);return r===i?t:new M0(i)}function Xre(t,e,n){var r,i,a,o;const s=[],l=Object.create(null),c=[];let u;const d=[];for(const U of e.definitions)if(U.kind===Se.SCHEMA_DEFINITION)u=U;else if(U.kind===Se.SCHEMA_EXTENSION)d.push(U);else if(D0(U))s.push(U);else if(QM(U)){const q=U.name.value,z=l[q];l[q]=z?z.concat([U]):[U]}else U.kind===Se.DIRECTIVE_DEFINITION&&c.push(U);if(Object.keys(l).length===0&&s.length===0&&c.length===0&&d.length===0&&u==null)return t;const f=Object.create(null);for(const U of t.types)f[U.name]=y(U);for(const U of s){var p;const q=U.name.value;f[q]=(p=e6[q])!==null&&p!==void 0?p:le(U)}const h={query:t.query&&b(t.query),mutation:t.mutation&&b(t.mutation),subscription:t.subscription&&b(t.subscription),...u&&R([u]),...R(d)};return{description:(r=u)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...h,types:Object.values(f),directives:[...t.directives.map(g),...c.map(L)],extensions:Object.create(null),astNode:(a=u)!==null&&a!==void 0?a:t.astNode,extensionASTNodes:t.extensionASTNodes.concat(d),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1};function v(U){return Nr(U)?new Na(v(U.ofType)):nn(U)?new fn(v(U.ofType)):b(U)}function b(U){return f[U.name]}function g(U){const q=U.toConfig();return new du({...q,args:Ku(q.args,N)})}function y(U){if(rm(U)||WM(U))return U;if(Ls(U))return S(U);if(Nn(U))return T(U);if(Zn(U))return I(U);if(na(U))return P(U);if(ji(U))return x(U);if(Lr(U))return w(U);_i(!1,"Unexpected type: "+et(U))}function w(U){var q;const z=U.toConfig(),ne=(q=l[z.name])!==null&&q!==void 0?q:[];return new Yv({...z,fields:()=>({...Ku(z.fields,G=>({...G,type:v(G.type)})),...H(ne)}),extensionASTNodes:z.extensionASTNodes.concat(ne)})}function x(U){var q;const z=U.toConfig(),ne=(q=l[U.name])!==null&&q!==void 0?q:[];return new Qf({...z,values:{...z.values,...$(ne)},extensionASTNodes:z.extensionASTNodes.concat(ne)})}function S(U){var q;const z=U.toConfig(),ne=(q=l[z.name])!==null&&q!==void 0?q:[];let G=z.specifiedByURL;for(const Y of ne){var te;G=(te=t6(Y))!==null&&te!==void 0?te:G}return new uu({...z,specifiedByURL:G,extensionASTNodes:z.extensionASTNodes.concat(ne)})}function T(U){var q;const z=U.toConfig(),ne=(q=l[z.name])!==null&&q!==void 0?q:[];return new Cl({...z,interfaces:()=>[...U.getInterfaces().map(b),...W(ne)],fields:()=>({...Ku(z.fields,M),...k(ne)}),extensionASTNodes:z.extensionASTNodes.concat(ne)})}function I(U){var q;const z=U.toConfig(),ne=(q=l[z.name])!==null&&q!==void 0?q:[];return new Wv({...z,interfaces:()=>[...U.getInterfaces().map(b),...W(ne)],fields:()=>({...Ku(z.fields,M),...k(ne)}),extensionASTNodes:z.extensionASTNodes.concat(ne)})}function P(U){var q;const z=U.toConfig(),ne=(q=l[z.name])!==null&&q!==void 0?q:[];return new qv({...z,types:()=>[...U.getTypes().map(b),...K(ne)],extensionASTNodes:z.extensionASTNodes.concat(ne)})}function M(U){return{...U,type:v(U.type),args:U.args&&Ku(U.args,N)}}function N(U){return{...U,type:v(U.type)}}function R(U){const q={};for(const ne of U){var z;const G=(z=ne.operationTypes)!==null&&z!==void 0?z:[];for(const te of G)q[te.operation]=O(te.type)}return q}function O(U){var q;const z=U.name.value,ne=(q=e6[z])!==null&&q!==void 0?q:f[z];if(ne===void 0)throw new Error(`Unknown type: "${z}".`);return ne}function D(U){return U.kind===Se.LIST_TYPE?new Na(D(U.type)):U.kind===Se.NON_NULL_TYPE?new fn(D(U.type)):O(U)}function L(U){var q;return new du({name:U.name.value,description:(q=U.description)===null||q===void 0?void 0:q.value,locations:U.locations.map(({value:z})=>z),isRepeatable:U.repeatable,args:B(U.arguments),astNode:U})}function k(U){const q=Object.create(null);for(const G of U){var z;const te=(z=G.fields)!==null&&z!==void 0?z:[];for(const Y of te){var ne;q[Y.name.value]={type:D(Y.type),description:(ne=Y.description)===null||ne===void 0?void 0:ne.value,args:B(Y.arguments),deprecationReason:qE(Y),astNode:Y}}}return q}function B(U){const q=U??[],z=Object.create(null);for(const G of q){var ne;const te=D(G.type);z[G.name.value]={type:te,description:(ne=G.description)===null||ne===void 0?void 0:ne.value,defaultValue:Gc(G.defaultValue,te),deprecationReason:qE(G),astNode:G}}return z}function H(U){const q=Object.create(null);for(const G of U){var z;const te=(z=G.fields)!==null&&z!==void 0?z:[];for(const Y of te){var ne;const fe=D(Y.type);q[Y.name.value]={type:fe,description:(ne=Y.description)===null||ne===void 0?void 0:ne.value,defaultValue:Gc(Y.defaultValue,fe),deprecationReason:qE(Y),astNode:Y}}}return q}function $(U){const q=Object.create(null);for(const G of U){var z;const te=(z=G.values)!==null&&z!==void 0?z:[];for(const Y of te){var ne;q[Y.name.value]={description:(ne=Y.description)===null||ne===void 0?void 0:ne.value,deprecationReason:qE(Y),astNode:Y}}}return q}function W(U){return U.flatMap(q=>{var z,ne;return(z=(ne=q.interfaces)===null||ne===void 0?void 0:ne.map(O))!==null&&z!==void 0?z:[]})}function K(U){return U.flatMap(q=>{var z,ne;return(z=(ne=q.types)===null||ne===void 0?void 0:ne.map(O))!==null&&z!==void 0?z:[]})}function le(U){var q;const z=U.name.value,ne=(q=l[z])!==null&&q!==void 0?q:[];switch(U.kind){case Se.OBJECT_TYPE_DEFINITION:{var G;const se=[U,...ne];return new Cl({name:z,description:(G=U.description)===null||G===void 0?void 0:G.value,interfaces:()=>W(se),fields:()=>k(se),astNode:U,extensionASTNodes:ne})}case Se.INTERFACE_TYPE_DEFINITION:{var te;const se=[U,...ne];return new Wv({name:z,description:(te=U.description)===null||te===void 0?void 0:te.value,interfaces:()=>W(se),fields:()=>k(se),astNode:U,extensionASTNodes:ne})}case Se.ENUM_TYPE_DEFINITION:{var Y;const se=[U,...ne];return new Qf({name:z,description:(Y=U.description)===null||Y===void 0?void 0:Y.value,values:$(se),astNode:U,extensionASTNodes:ne})}case Se.UNION_TYPE_DEFINITION:{var fe;const se=[U,...ne];return new qv({name:z,description:(fe=U.description)===null||fe===void 0?void 0:fe.value,types:()=>K(se),astNode:U,extensionASTNodes:ne})}case Se.SCALAR_TYPE_DEFINITION:{var pe;return new uu({name:z,description:(pe=U.description)===null||pe===void 0?void 0:pe.value,specifiedByURL:t6(U),astNode:U,extensionASTNodes:ne})}case Se.INPUT_OBJECT_TYPE_DEFINITION:{var de;const se=[U,...ne];return new Yv({name:z,description:(de=U.description)===null||de===void 0?void 0:de.value,fields:()=>H(se),astNode:U,extensionASTNodes:ne})}}}}const e6=vd([...Vw,...Gw],t=>t.name);function qE(t){const e=d1(YM,t);return e==null?void 0:e.reason}function t6(t){const e=d1(CB,t);return e==null?void 0:e.url}function Zre(t,e){t!=null&&t.kind===Se.DOCUMENT||pn(!1,"Must provide valid Document AST."),(e==null?void 0:e.assumeValid)!==!0&&(e==null?void 0:e.assumeValidSDL)!==!0&&G4e(t);const r=Xre({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t,e);if(r.astNode==null)for(const a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}const i=[...r.directives,...dp.filter(a=>r.directives.every(o=>o.name!==a.name))];return new M0({...r,directives:i})}function y5e(t,e){const n=zM(t,{noLocation:e==null?void 0:e.noLocation,allowLegacyFragmentVariables:e==null?void 0:e.allowLegacyFragmentVariables});return Zre(n,{assumeValidSDL:e==null?void 0:e.assumeValidSDL,assumeValid:e==null?void 0:e.assumeValid})}function b5e(t){const e=t.toConfig(),n=bf(BO(e.types),f=>f.name,d);return new M0({...e,types:Object.values(n),directives:BO(e.directives).map(o),query:a(e.query),mutation:a(e.mutation),subscription:a(e.subscription)});function r(f){return Nr(f)?new Na(r(f.ofType)):nn(f)?new fn(r(f.ofType)):i(f)}function i(f){return n[f.name]}function a(f){return f&&i(f)}function o(f){const p=f.toConfig();return new du({...p,locations:eie(p.locations,h=>h),args:s(p.args)})}function s(f){return YE(f,p=>({...p,type:r(p.type)}))}function l(f){return YE(f,p=>({...p,type:r(p.type),args:p.args&&s(p.args)}))}function c(f){return YE(f,p=>({...p,type:r(p.type)}))}function u(f){return BO(f).map(i)}function d(f){if(Ls(f)||rm(f))return f;if(Nn(f)){const p=f.toConfig();return new Cl({...p,interfaces:()=>u(p.interfaces),fields:()=>l(p.fields)})}if(Zn(f)){const p=f.toConfig();return new Wv({...p,interfaces:()=>u(p.interfaces),fields:()=>l(p.fields)})}if(na(f)){const p=f.toConfig();return new qv({...p,types:()=>u(p.types)})}if(ji(f)){const p=f.toConfig();return new Qf({...p,values:YE(p.values,h=>h)})}if(Lr(f)){const p=f.toConfig();return new Yv({...p,fields:()=>c(p.fields)})}_i(!1,"Unexpected type: "+et(f))}}function YE(t,e){const n=Object.create(null);for(const r of Object.keys(t).sort($w))n[r]=e(t[r]);return n}function BO(t){return eie(t,e=>e.name)}function eie(t,e){return t.slice().sort((n,r)=>{const i=e(n),a=e(r);return $w(i,a)})}function _5e(t){return tie(t,e=>!TB(e),x5e)}function w5e(t){return tie(t,TB,rm)}function x5e(t){return!WM(t)&&!rm(t)}function tie(t,e,n){const r=t.getDirectives().filter(e),i=Object.values(t.getTypeMap()).filter(n);return[E5e(t),...r.map(a=>P5e(a)),...i.map(a=>nie(a))].filter(Boolean).join(` `)}function E5e(t){if(t.description==null&&S5e(t))return;const e=[],n=t.getQueryType();n&&e.push(` query: ${n.name}`);const r=t.getMutationType();r&&e.push(` mutation: ${r.name}`);const i=t.getSubscriptionType();return i&&e.push(` subscription: ${i.name}`),Tl(t)+`schema { ${e.join(` `)} }`}function S5e(t){const e=t.getQueryType();if(e&&e.name!=="Query")return!1;const n=t.getMutationType();if(n&&n.name!=="Mutation")return!1;const r=t.getSubscriptionType();return!(r&&r.name!=="Subscription")}function nie(t){if(Ls(t))return C5e(t);if(Nn(t))return T5e(t);if(Zn(t))return A5e(t);if(na(t))return I5e(t);if(ji(t))return M5e(t);if(Lr(t))return D5e(t);_i(!1,"Unexpected type: "+et(t))}function C5e(t){return Tl(t)+`scalar ${t.name}`+R5e(t)}function rie(t){const e=t.getInterfaces();return e.length?" implements "+e.map(n=>n.name).join(" & "):""}function T5e(t){return Tl(t)+`type ${t.name}`+rie(t)+iie(t)}function A5e(t){return Tl(t)+`interface ${t.name}`+rie(t)+iie(t)}function I5e(t){const e=t.getTypes(),n=e.length?" = "+e.join(" | "):"";return Tl(t)+"union "+t.name+n}function M5e(t){const e=t.getValues().map((n,r)=>Tl(n," ",!r)+" "+n.name+KB(n.deprecationReason));return Tl(t)+`enum ${t.name}`+QB(e)}function D5e(t){const e=Object.values(t.getFields()).map((n,r)=>Tl(n," ",!r)+" "+wk(n));return Tl(t)+`input ${t.name}`+QB(e)}function iie(t){const e=Object.values(t.getFields()).map((n,r)=>Tl(n," ",!r)+" "+n.name+aie(n.args," ")+": "+String(n.type)+KB(n.deprecationReason));return QB(e)}function QB(t){return t.length!==0?` { `+t.join(` `)+` }`:""}function aie(t,e=""){return t.length===0?"":t.every(n=>!n.description)?"("+t.map(wk).join(", ")+")":`( `+t.map((n,r)=>Tl(n," "+e,!r)+" "+e+wk(n)).join(` `)+` `+e+")"}function wk(t){const e=_f(t.defaultValue,t.type);let n=t.name+": "+String(t.type);return e&&(n+=` = ${Or(e)}`),n+KB(t.deprecationReason)}function P5e(t){return Tl(t)+"directive @"+t.name+aie(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}function KB(t){return t==null?"":t!==SB?` @deprecated(reason: ${Or({kind:Se.STRING,value:t})})`:" @deprecated"}function R5e(t){return t.specifiedByURL==null?"":` @specifiedBy(url: ${Or({kind:Se.STRING,value:t.specifiedByURL})})`}function Tl(t,e="",n=!0){const{description:r}=t;if(r==null)return"";const i=Or({kind:Se.STRING,value:r,block:mUe(r)});return(e&&!n?` `+e:e)+i.replace(/\n/g,` `+e)+` `}function O5e(t){const e=[];for(const n of t)e.push(...n.definitions);return{kind:Se.DOCUMENT,definitions:e}}function N5e(t){const e=[],n=Object.create(null);for(const i of t.definitions)switch(i.kind){case Se.OPERATION_DEFINITION:e.push(i);break;case Se.FRAGMENT_DEFINITION:n[i.name.value]=n6(i.selectionSet);break}const r=Object.create(null);for(const i of e){const a=new Set;for(const s of n6(i.selectionSet))oie(a,n,s);const o=i.name?i.name.value:"";r[o]={kind:Se.DOCUMENT,definitions:t.definitions.filter(s=>s===i||s.kind===Se.FRAGMENT_DEFINITION&&a.has(s.name.value))}}return r}function oie(t,e,n){if(!t.has(n)){t.add(n);const r=e[n];if(r!==void 0)for(const i of r)oie(t,e,i)}}function n6(t){const e=[];return I0(t,{FragmentSpread(n){e.push(n.name.value)}}),e}function L5e(t){const e=kne(t)?t:new VM(t),n=e.body,r=new mB(e);let i="",a=!1;for(;r.advance().kind!==Ze.EOF;){const o=r.token,s=o.kind,l=!Rne(o.kind);a&&(l||o.kind===Ze.SPREAD)&&(i+=" ");const c=n.slice(o.start,o.end);s===Ze.BLOCK_STRING?i+=Pne(o.value,{minimize:!0}):i+=c,a=l}return i}function k5e(t){const e=sie(t);if(e)throw e;return t}function sie(t){if(typeof t=="string"||pn(!1,"Expected name to be a string."),t.startsWith("__"))return new Qe(`Name "${t}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Ns(t)}catch(e){return e}}var ai;(function(t){t.TYPE_REMOVED="TYPE_REMOVED",t.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",t.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",t.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",t.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",t.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",t.FIELD_REMOVED="FIELD_REMOVED",t.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",t.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",t.ARG_REMOVED="ARG_REMOVED",t.ARG_CHANGED_KIND="ARG_CHANGED_KIND",t.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",t.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",t.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",t.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",t.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(ai||(ai={}));var uc;(function(t){t.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",t.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",t.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",t.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",t.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",t.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(uc||(uc={}));function F5e(t,e){return lie(t,e).filter(n=>n.type in ai)}function $5e(t,e){return lie(t,e).filter(n=>n.type in uc)}function lie(t,e){return[...U5e(t,e),...B5e(t,e)]}function B5e(t,e){const n=[],r=yd(t.getDirectives(),e.getDirectives());for(const i of r.removed)n.push({type:ai.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,a]of r.persisted){const o=yd(i.args,a.args);for(const s of o.added)up(s)&&n.push({type:ai.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${s.name} on directive ${i.name} was added.`});for(const s of o.removed)n.push({type:ai.DIRECTIVE_ARG_REMOVED,description:`${s.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:ai.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const s of i.locations)a.locations.includes(s)||n.push({type:ai.DIRECTIVE_LOCATION_REMOVED,description:`${s} was removed from ${i.name}.`})}return n}function U5e(t,e){const n=[],r=yd(Object.values(t.getTypeMap()),Object.values(e.getTypeMap()));for(const i of r.removed)n.push({type:ai.TYPE_REMOVED,description:WM(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,a]of r.persisted)ji(i)&&ji(a)?n.push(...z5e(i,a)):na(i)&&na(a)?n.push(...V5e(i,a)):Lr(i)&&Lr(a)?n.push(...H5e(i,a)):Nn(i)&&Nn(a)?n.push(...i6(i,a),...r6(i,a)):Zn(i)&&Zn(a)?n.push(...i6(i,a),...r6(i,a)):i.constructor!==a.constructor&&n.push({type:ai.TYPE_CHANGED_KIND,description:`${i.name} changed from ${a6(i)} to ${a6(a)}.`});return n}function H5e(t,e){const n=[],r=yd(Object.values(t.getFields()),Object.values(e.getFields()));for(const i of r.added)GM(i)?n.push({type:ai.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${t.name} was added.`}):n.push({type:uc.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${t.name} was added.`});for(const i of r.removed)n.push({type:ai.FIELD_REMOVED,description:`${t.name}.${i.name} was removed.`});for(const[i,a]of r.persisted)p_(i.type,a.type)||n.push({type:ai.FIELD_CHANGED_KIND,description:`${t.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function V5e(t,e){const n=[],r=yd(t.getTypes(),e.getTypes());for(const i of r.added)n.push({type:uc.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${t.name}.`});for(const i of r.removed)n.push({type:ai.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${t.name}.`});return n}function z5e(t,e){const n=[],r=yd(t.getValues(),e.getValues());for(const i of r.added)n.push({type:uc.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${t.name}.`});for(const i of r.removed)n.push({type:ai.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${t.name}.`});return n}function r6(t,e){const n=[],r=yd(t.getInterfaces(),e.getInterfaces());for(const i of r.added)n.push({type:uc.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${t.name}.`});for(const i of r.removed)n.push({type:ai.IMPLEMENTED_INTERFACE_REMOVED,description:`${t.name} no longer implements interface ${i.name}.`});return n}function i6(t,e){const n=[],r=yd(Object.values(t.getFields()),Object.values(e.getFields()));for(const i of r.removed)n.push({type:ai.FIELD_REMOVED,description:`${t.name}.${i.name} was removed.`});for(const[i,a]of r.persisted)n.push(...j5e(t,i,a)),Bb(i.type,a.type)||n.push({type:ai.FIELD_CHANGED_KIND,description:`${t.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function j5e(t,e,n){const r=[],i=yd(e.args,n.args);for(const a of i.removed)r.push({type:ai.ARG_REMOVED,description:`${t.name}.${e.name} arg ${a.name} was removed.`});for(const[a,o]of i.persisted)if(!p_(a.type,o.type))r.push({type:ai.ARG_CHANGED_KIND,description:`${t.name}.${e.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(o.type)}.`});else if(a.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:uc.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${a.name} defaultValue was removed.`});else{const l=o6(a.defaultValue,a.type),c=o6(o.defaultValue,o.type);l!==c&&r.push({type:uc.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${a.name} has changed defaultValue from ${l} to ${c}.`})}for(const a of i.added)up(a)?r.push({type:ai.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${t.name}.${e.name} was added.`}):r.push({type:uc.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${t.name}.${e.name} was added.`});return r}function Bb(t,e){return Nr(t)?Nr(e)&&Bb(t.ofType,e.ofType)||nn(e)&&Bb(t,e.ofType):nn(t)?nn(e)&&Bb(t.ofType,e.ofType):Hw(e)&&t.name===e.name||nn(e)&&Bb(t,e.ofType)}function p_(t,e){return Nr(t)?Nr(e)&&p_(t.ofType,e.ofType):nn(t)?nn(e)&&p_(t.ofType,e.ofType)||!nn(e)&&p_(t.ofType,e):Hw(e)&&t.name===e.name}function a6(t){if(Ls(t))return"a Scalar type";if(Nn(t))return"an Object type";if(Zn(t))return"an Interface type";if(na(t))return"a Union type";if(ji(t))return"an Enum type";if(Lr(t))return"an Input type";_i(!1,"Unexpected type: "+et(t))}function o6(t,e){const n=_f(t,e);return n!=null||_i(!1),Or(KM(n))}function yd(t,e){const n=[],r=[],i=[],a=vd(t,({name:s})=>s),o=vd(e,({name:s})=>s);for(const s of t){const l=o[s.name];l===void 0?r.push(s):i.push([s,l])}for(const s of e)a[s.name]===void 0&&n.push(s);return{added:n,persisted:i,removed:r}}const G5e=Object.freeze(Object.defineProperty({__proto__:null,BREAK:Ug,get BreakingChangeType(){return ai},DEFAULT_DEPRECATION_REASON:SB,get DangerousChangeType(){return uc},get DirectiveLocation(){return Gt},ExecutableDefinitionsRule:Xne,FieldsOnCorrectTypeRule:Zne,FragmentsOnCompositeTypesRule:ere,GRAPHQL_MAX_INT:IC,GRAPHQL_MIN_INT:MC,GraphQLBoolean:_s,GraphQLDeprecatedDirective:YM,GraphQLDirective:du,GraphQLEnumType:Qf,GraphQLError:Qe,GraphQLFloat:Jne,GraphQLID:wB,GraphQLIncludeDirective:xB,GraphQLInputObjectType:Yv,GraphQLInt:Yne,GraphQLInterfaceType:Wv,GraphQLList:Na,GraphQLNonNull:fn,GraphQLObjectType:Cl,GraphQLScalarType:uu,GraphQLSchema:M0,GraphQLSkipDirective:EB,GraphQLSpecifiedByDirective:CB,GraphQLString:si,GraphQLUnionType:qv,get Kind(){return Se},KnownArgumentNamesRule:tre,KnownDirectivesRule:VB,KnownFragmentNamesRule:rre,KnownTypeNamesRule:zB,Lexer:mB,Location:Ane,LoneAnonymousOperationRule:ire,LoneSchemaDefinitionRule:are,NoDeprecatedCustomRule:d5e,NoFragmentCyclesRule:ore,NoSchemaIntrospectionCustomRule:f5e,NoUndefinedVariablesRule:sre,NoUnusedFragmentsRule:lre,NoUnusedVariablesRule:cre,get OperationTypeNode(){return Zi},OverlappingFieldsCanBeMergedRule:dre,PossibleFragmentSpreadsRule:hre,PossibleTypeExtensionsRule:mre,ProvidedRequiredArgumentsRule:gre,ScalarLeafsRule:yre,SchemaMetaFieldDef:l1,SingleFieldSubscriptionsRule:Ere,Source:VM,Token:pB,get TokenKind(){return Ze},TypeInfo:FB,get TypeKind(){return ur},TypeMetaFieldDef:c1,TypeNameMetaFieldDef:u1,UniqueArgumentDefinitionNamesRule:Sre,UniqueArgumentNamesRule:qB,UniqueDirectiveNamesRule:Cre,UniqueDirectivesPerLocationRule:YB,UniqueEnumValueNamesRule:Tre,UniqueFieldDefinitionNamesRule:Are,UniqueFragmentNamesRule:Ire,UniqueInputFieldNamesRule:JB,UniqueOperationNamesRule:Mre,UniqueOperationTypesRule:Dre,UniqueTypeNamesRule:Pre,UniqueVariableNamesRule:Rre,ValidationContext:$re,ValuesOfCorrectTypeRule:Ore,VariablesAreInputTypesRule:Nre,VariablesInAllowedPositionRule:Lre,__Directive:IB,__DirectiveLocation:MB,__EnumValue:PB,__Field:DB,__InputValue:jw,__Schema:JM,__Type:pl,__TypeKind:RB,assertAbstractType:e4e,assertCompositeType:ZUe,assertDirective:o4e,assertEnumType:WUe,assertEnumValueName:Bne,assertInputObjectType:qUe,assertInputType:QUe,assertInterfaceType:Hne,assertLeafType:XUe,assertListType:YUe,assertName:Ns,assertNamedType:n4e,assertNonNullType:JUe,assertNullableType:Vne,assertObjectType:Une,assertOutputType:KUe,assertScalarType:jUe,assertSchema:OB,assertType:zUe,assertUnionType:GUe,assertValidName:k5e,assertValidSchema:LB,assertWrappingType:t4e,astFromValue:_f,buildASTSchema:Zre,buildClientSchema:g5e,buildSchema:y5e,coerceInputValue:_re,concatAST:O5e,createSourceEventStream:Qre,defaultFieldResolver:_k,defaultTypeResolver:Wre,doTypesOverlap:mk,execute:ZM,executeSync:Hre,extendSchema:v5e,findBreakingChanges:F5e,findDangerousChanges:$5e,formatError:dUe,getArgumentValues:XM,getDirectiveValues:d1,getEnterLeaveForKind:Gv,getIntrospectionQuery:Kre,getLocation:jT,getNamedType:go,getNullableType:yB,getOperationAST:p5e,getOperationRootType:h5e,getVariableValues:wre,getVisitFn:UUe,graphql:a5e,graphqlSync:o5e,introspectionFromSchema:m5e,introspectionTypes:Gw,isAbstractType:Zc,isCompositeType:cu,isConstValueNode:gk,isDefinitionNode:y4e,isDirective:qM,isEnumType:ji,isEqualType:WT,isExecutableDefinitionNode:BB,isInputObjectType:Lr,isInputType:Ro,isInterfaceType:Zn,isIntrospectionType:rm,isLeafType:lu,isListType:Nr,isNamedType:Hw,isNonNullType:nn,isNullableType:vB,isObjectType:Nn,isOutputType:Ff,isRequiredArgument:up,isRequiredInputField:GM,isScalarType:Ls,isSchema:Qne,isSelectionNode:b4e,isSpecifiedDirective:TB,isSpecifiedScalarType:WM,isType:Bw,isTypeDefinitionNode:D0,isTypeExtensionNode:QM,isTypeNode:_4e,isTypeSubTypeOf:vh,isTypeSystemDefinitionNode:UB,isTypeSystemExtensionNode:HB,isUnionType:na,isValidNameError:sie,isValueNode:Kne,isWrappingType:Uw,lexicographicSortSchema:b5e,locatedError:Qv,parse:zM,parseConstValue:PUe,parseType:RUe,parseValue:Fne,print:Or,printError:uUe,printIntrospectionSchema:w5e,printLocation:Tne,printSchema:_5e,printSourceLocation:fB,printType:nie,resolveObjMapThunk:_B,resolveReadonlyArrayThunk:bB,responsePathAsArray:as,separateOperations:N5e,specifiedDirectives:dp,specifiedRules:kre,specifiedScalarTypes:Vw,stripIgnoredCharacters:L5e,subscribe:l5e,syntaxError:Ki,typeFromAST:qo,validate:Bre,validateSchema:NB,valueFromAST:Gc,valueFromASTUntyped:GT,version:oUe,versionInfo:sUe,visit:I0,visitInParallel:gB,visitWithTypeInfo:$B},Symbol.toStringTag,{value:"Module"})),W5e=Ms(G5e);function q5e(t){for(var e=[],n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=t[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:i}),n=a;continue}if(r==="("){var s=1,l="",a=n+1;if(t[a]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a)?(?!\?)/g,r=0,i=n.exec(t.source);i;)e.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=n.exec(t.source);return t}function K5e(t,e,n){var r=t.map(function(i){return eU(i,e,n).source});return new RegExp("(?:".concat(r.join("|"),")"),ZB(n))}function X5e(t,e,n){return die(XB(t,n),e,n)}function die(t,e,n){n===void 0&&(n={});for(var r=n.strict,i=r===void 0?!1:r,a=n.start,o=a===void 0?!0:a,s=n.end,l=s===void 0?!0:s,c=n.encode,u=c===void 0?function(N){return N}:c,d=n.delimiter,f=d===void 0?"/#?":d,p=n.endsWith,h=p===void 0?"":p,v="[".concat(yg(h),"]|$"),b="[".concat(yg(f),"]"),g=o?"^":"",y=0,w=t;y-1:P===void 0;i||(g+="(?:".concat(b,"(?=").concat(v,"))?")),M||(g+="(?=".concat(b,"|").concat(v,")"))}return new RegExp(g,ZB(n))}function eU(t,e,n){return t instanceof RegExp?Q5e(t,e):Array.isArray(t)?K5e(t,e,n):X5e(t,e,n)}const Z5e=Object.freeze(Object.defineProperty({__proto__:null,compile:Y5e,match:J5e,parse:XB,pathToRegexp:eU,regexpToFunction:uie,tokensToFunction:cie,tokensToRegexp:die},Symbol.toStringTag,{value:"Module"})),eHe=Ms(Z5e);var Vy={},zy={},s6;function fie(){if(s6)return zy;s6=1,Object.defineProperty(zy,"__esModule",{value:!0}),zy.toIsoResponse=void 0;var t=Nl;function e(n){var r;return{status:(r=n.status)!==null&&r!==void 0?r:200,statusText:n.statusText||"OK",headers:t.objectToHeaders(n.headers||{}),body:n.body}}return zy.toIsoResponse=e,zy}var l6;function tHe(){if(l6)return Vy;l6=1;var t=mt&&mt.__extends||function(){var h=function(v,b){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(g[w]=y[w])},h(v,b)};return function(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");h(v,b);function g(){this.constructor=v}v.prototype=b===null?Object.create(b):(g.prototype=b.prototype,new g)}}(),e=mt&&mt.__assign||function(){return e=Object.assign||function(h){for(var v,b=1,g=arguments.length;b0&&w[w.length-1])&&(I[0]===6||I[0]===2)){b=0;continue}if(I[0]===3&&(!w||I[1]>w[0]&&I[1]0)&&!(y=g.next()).done;)w.push(y.value)}catch(S){x={error:S}}finally{try{y&&!y.done&&(b=g.return)&&b.call(g)}finally{if(x)throw x.error}}return w};Object.defineProperty(Vy,"__esModule",{value:!0}),Vy.FetchInterceptor=void 0;var a=Nl,o=Sd,s=nm,l=C0,c=Lw,u=fie(),d=T0,f=function(h){t(v,h);function v(){return h.call(this,v.symbol)||this}return v.prototype.checkEnvironment=function(){return typeof globalThis<"u"&&typeof globalThis.fetch<"u"},v.prototype.setup=function(){var b=this,g=globalThis.fetch;o.invariant(!g[l.IS_PATCHED_MODULE],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=function(y,w){return n(b,void 0,void 0,function(){var x,S,T,I,P,M,N,R,O,D,L=this;return r(this,function(k){switch(k.label){case 0:return x=new Request(y,w),S=typeof y=="string"?y:y.url,T=x.method,this.log("[%s] %s",T,S),[4,x.clone().arrayBuffer()];case 1:return I=k.sent(),P=new s.IsomorphicRequest(new URL(S,location.origin),{body:I,method:T,headers:new a.Headers(x.headers),credentials:x.credentials}),M=new d.InteractiveIsomorphicRequest(P),this.log("isomorphic request",M),this.log('emitting the "request" event for %d listener(s)...',this.emitter.listenerCount("request")),this.emitter.emit("request",M),this.log("awaiting for the mocked response..."),[4,this.emitter.untilIdle("request",function(B){var H=i(B.args,1),$=H[0];return $.id===M.id})];case 2:return k.sent(),this.log("all request listeners have been resolved!"),[4,M.respondWith.invoked()];case 3:return N=i.apply(void 0,[k.sent(),1]),R=N[0],this.log("event.respondWith called with:",R),R?(this.log("received mocked response:",R),O=u.toIsoResponse(R),this.log("derived isomorphic response:",O),this.emitter.emit("response",M,O),D=new Response(R.body,e(e({},O),{headers:a.flattenHeadersObject(R.headers||{})})),Object.defineProperty(D,"url",{writable:!1,enumerable:!0,configurable:!1,value:M.url.href}),[2,D]):(this.log("no mocked response received!"),[2,g(x).then(function(B){return n(L,void 0,void 0,function(){var H,$,W,K;return r(this,function(le){switch(le.label){case 0:return H=B.clone(),this.log("original fetch performed",H),W=($=this.emitter).emit,K=["response",M],[4,p(H)];case 1:return W.apply($,K.concat([le.sent()])),[2,B]}})})})])}})})},Object.defineProperty(globalThis.fetch,l.IS_PATCHED_MODULE,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push(function(){Object.defineProperty(globalThis.fetch,l.IS_PATCHED_MODULE,{value:void 0}),globalThis.fetch=g,b.log('restored native "globalThis.fetch"!',globalThis.fetch.name)})},v.symbol=Symbol("fetch"),v}(c.Interceptor);Vy.FetchInterceptor=f;function p(h){return n(this,void 0,void 0,function(){var v;return r(this,function(b){switch(b.label){case 0:return v={status:h.status,statusText:h.statusText,headers:a.objectToHeaders(a.headersToObject(h.headers))},[4,h.text()];case 1:return[2,(v.body=b.sent(),v)]}})})}return Vy}var jy={},Gy={},Wy={},Du={},Pp={},c6;function eD(){if(c6)return Pp;c6=1;function t(a,o,s){if(s===void 0&&(s=Array.prototype),a&&typeof s.find=="function")return s.find.call(a,o);for(var l=0;l=0){for(var pt=ce.length-1;Be0},lookupPrefix:function(X){for(var ce=this;ce;){var we=ce._nsMap;if(we){for(var Be in we)if(Object.prototype.hasOwnProperty.call(we,Be)&&we[Be]===X)return Be}ce=ce.nodeType==f?ce.ownerDocument:ce.parentNode}return null},lookupNamespaceURI:function(X){for(var ce=this;ce;){var we=ce._nsMap;if(we&&Object.prototype.hasOwnProperty.call(we,X))return we[X];ce=ce.nodeType==f?ce.ownerDocument:ce.parentNode}return null},isDefaultNamespace:function(X){var ce=this.lookupPrefix(X);return ce==null}};function U(X){return X=="<"&&"<"||X==">"&&">"||X=="&"&&"&"||X=='"'&&"""||"&#"+X.charCodeAt()+";"}l(u,le),l(u,le.prototype);function q(X,ce){if(ce(X))return!0;if(X=X.firstChild)do if(q(X,ce))return!0;while(X=X.nextSibling)}function z(){this.ownerDocument=this}function ne(X,ce,we){X&&X._inc++;var Be=we.namespaceURI;Be===n.XMLNS&&(ce._nsMap[we.prefix?we.localName:""]=we.value)}function G(X,ce,we,Be){X&&X._inc++;var pt=we.namespaceURI;pt===n.XMLNS&&delete ce._nsMap[we.prefix?we.localName:""]}function te(X,ce,we){if(X&&X._inc){X._inc++;var Be=ce.childNodes;if(we)Be[Be.length++]=we;else{for(var pt=ce.firstChild,Ot=0;pt;)Be[Ot++]=pt,pt=pt.nextSibling;Be.length=Ot,delete Be[Be.length]}}}function Y(X,ce){var we=ce.previousSibling,Be=ce.nextSibling;return we?we.nextSibling=Be:X.firstChild=Be,Be?Be.previousSibling=we:X.lastChild=we,ce.parentNode=null,ce.previousSibling=null,ce.nextSibling=null,te(X.ownerDocument,X),ce}function fe(X){return X&&(X.nodeType===le.DOCUMENT_NODE||X.nodeType===le.DOCUMENT_FRAGMENT_NODE||X.nodeType===le.ELEMENT_NODE)}function pe(X){return X&&(se(X)||me(X)||de(X)||X.nodeType===le.DOCUMENT_FRAGMENT_NODE||X.nodeType===le.COMMENT_NODE||X.nodeType===le.PROCESSING_INSTRUCTION_NODE)}function de(X){return X&&X.nodeType===le.DOCUMENT_TYPE_NODE}function se(X){return X&&X.nodeType===le.ELEMENT_NODE}function me(X){return X&&X.nodeType===le.TEXT_NODE}function Z(X,ce){var we=X.childNodes||[];if(e(we,se)||de(ce))return!1;var Be=e(we,de);return!(ce&&Be&&we.indexOf(Be)>we.indexOf(ce))}function _e(X,ce){var we=X.childNodes||[];function Be(Ot){return se(Ot)&&Ot!==ce}if(e(we,Be))return!1;var pt=e(we,de);return!(ce&&pt&&we.indexOf(pt)>we.indexOf(ce))}function Me(X,ce,we){if(!fe(X))throw new O(M,"Unexpected parent node type "+X.nodeType);if(we&&we.parentNode!==X)throw new O(N,"child not in parent");if(!pe(ce)||de(ce)&&X.nodeType!==le.DOCUMENT_NODE)throw new O(M,"Unexpected node type "+ce.nodeType+" for parent node type "+X.nodeType)}function Ne(X,ce,we){var Be=X.childNodes||[],pt=ce.childNodes||[];if(ce.nodeType===le.DOCUMENT_FRAGMENT_NODE){var Ot=pt.filter(se);if(Ot.length>1||e(pt,me))throw new O(M,"More than one element or text in fragment");if(Ot.length===1&&!Z(X,we))throw new O(M,"Element in fragment can not be inserted before doctype")}if(se(ce)&&!Z(X,we))throw new O(M,"Only one element can be added and only after doctype");if(de(ce)){if(e(Be,de))throw new O(M,"Only one doctype is allowed");var Gn=e(Be,se);if(we&&Be.indexOf(Gn)1||e(pt,me))throw new O(M,"More than one element or text in fragment");if(Ot.length===1&&!_e(X,we))throw new O(M,"Element in fragment can not be inserted before doctype")}if(se(ce)&&!_e(X,we))throw new O(M,"Only one element can be added and only after doctype");if(de(ce)){let Yo=function(wa){return de(wa)&&wa!==we};var oa=Yo;if(e(Be,Yo))throw new O(M,"Only one doctype is allowed");var Gn=e(Be,se);if(we&&Be.indexOf(Gn)0&&q(we.documentElement,function(pt){if(pt!==we&&pt.nodeType===d){var Ot=pt.getAttribute("class");if(Ot){var Gn=X===Ot;if(!Gn){var oa=o(Ot);Gn=ce.every(s(oa))}Gn&&Be.push(pt)}}}),Be})},createElement:function(X){var ce=new V;ce.ownerDocument=this,ce.nodeName=X,ce.tagName=X,ce.localName=X,ce.childNodes=new D;var we=ce.attributes=new B;return we._ownerElement=ce,ce},createDocumentFragment:function(){var X=new Ye;return X.ownerDocument=this,X.childNodes=new D,X},createTextNode:function(X){var ce=new ae;return ce.ownerDocument=this,ce.appendData(X),ce},createComment:function(X){var ce=new Ee;return ce.ownerDocument=this,ce.appendData(X),ce},createCDATASection:function(X){var ce=new Pe;return ce.ownerDocument=this,ce.appendData(X),ce},createProcessingInstruction:function(X,ce){var we=new Ke;return we.ownerDocument=this,we.tagName=we.target=X,we.nodeValue=we.data=ce,we},createAttribute:function(X){var ce=new j;return ce.ownerDocument=this,ce.name=X,ce.nodeName=X,ce.localName=X,ce.specified=!0,ce},createEntityReference:function(X){var ce=new he;return ce.ownerDocument=this,ce.nodeName=X,ce},createElementNS:function(X,ce){var we=new V,Be=ce.split(":"),pt=we.attributes=new B;return we.childNodes=new D,we.ownerDocument=this,we.nodeName=ce,we.tagName=ce,we.namespaceURI=X,Be.length==2?(we.prefix=Be[0],we.localName=Be[1]):we.localName=ce,pt._ownerElement=we,we},createAttributeNS:function(X,ce){var we=new j,Be=ce.split(":");return we.ownerDocument=this,we.nodeName=ce,we.name=ce,we.namespaceURI=X,we.specified=!0,Be.length==2?(we.prefix=Be[0],we.localName=Be[1]):we.localName=ce,we}},c(z,le);function V(){this._nsMap={}}V.prototype={nodeType:d,hasAttribute:function(X){return this.getAttributeNode(X)!=null},getAttribute:function(X){var ce=this.getAttributeNode(X);return ce&&ce.value||""},getAttributeNode:function(X){return this.attributes.getNamedItem(X)},setAttribute:function(X,ce){var we=this.ownerDocument.createAttribute(X);we.value=we.nodeValue=""+ce,this.setAttributeNode(we)},removeAttribute:function(X){var ce=this.getAttributeNode(X);ce&&this.removeAttributeNode(ce)},appendChild:function(X){return X.nodeType===S?this.insertBefore(X,null):Q(this,X)},setAttributeNode:function(X){return this.attributes.setNamedItem(X)},setAttributeNodeNS:function(X){return this.attributes.setNamedItemNS(X)},removeAttributeNode:function(X){return this.attributes.removeNamedItem(X.nodeName)},removeAttributeNS:function(X,ce){var we=this.getAttributeNodeNS(X,ce);we&&this.removeAttributeNode(we)},hasAttributeNS:function(X,ce){return this.getAttributeNodeNS(X,ce)!=null},getAttributeNS:function(X,ce){var we=this.getAttributeNodeNS(X,ce);return we&&we.value||""},setAttributeNS:function(X,ce,we){var Be=this.ownerDocument.createAttributeNS(X,ce);Be.value=Be.nodeValue=""+we,this.setAttributeNode(Be)},getAttributeNodeNS:function(X,ce){return this.attributes.getNamedItemNS(X,ce)},getElementsByTagName:function(X){return new L(this,function(ce){var we=[];return q(ce,function(Be){Be!==ce&&Be.nodeType==d&&(X==="*"||Be.tagName==X)&&we.push(Be)}),we})},getElementsByTagNameNS:function(X,ce){return new L(this,function(we){var Be=[];return q(we,function(pt){pt!==we&&pt.nodeType===d&&(X==="*"||pt.namespaceURI===X)&&(ce==="*"||pt.localName==ce)&&Be.push(pt)}),Be})}},z.prototype.getElementsByTagName=V.prototype.getElementsByTagName,z.prototype.getElementsByTagNameNS=V.prototype.getElementsByTagNameNS,c(V,le);function j(){}j.prototype.nodeType=f,c(j,le);function ye(){}ye.prototype={data:"",substringData:function(X,ce){return this.data.substring(X,X+ce)},appendData:function(X){X=this.data+X,this.nodeValue=this.data=X,this.length=X.length},insertData:function(X,ce){this.replaceData(X,0,ce)},appendChild:function(X){throw new Error(P[M])},deleteData:function(X,ce){this.replaceData(X,ce,"")},replaceData:function(X,ce,we){var Be=this.data.substring(0,X),pt=this.data.substring(X+ce);we=Be+we+pt,this.nodeValue=this.data=we,this.length=we.length}},c(ye,le);function ae(){}ae.prototype={nodeName:"#text",nodeType:p,splitText:function(X){var ce=this.data,we=ce.substring(X);ce=ce.substring(0,X),this.data=this.nodeValue=ce,this.length=ce.length;var Be=this.ownerDocument.createTextNode(we);return this.parentNode&&this.parentNode.insertBefore(Be,this.nextSibling),Be}},c(ae,ye);function Ee(){}Ee.prototype={nodeName:"#comment",nodeType:y},c(Ee,ye);function Pe(){}Pe.prototype={nodeName:"#cdata-section",nodeType:h},c(Pe,ye);function We(){}We.prototype.nodeType=x,c(We,le);function Fe(){}Fe.prototype.nodeType=T,c(Fe,le);function Ae(){}Ae.prototype.nodeType=b,c(Ae,le);function he(){}he.prototype.nodeType=v,c(he,le);function Ye(){}Ye.prototype.nodeName="#document-fragment",Ye.prototype.nodeType=S,c(Ye,le);function Ke(){}Ke.prototype.nodeType=g,c(Ke,le);function Je(){}Je.prototype.serializeToString=function(X,ce,we){return nt.call(X,ce,we)},le.prototype.toString=nt;function nt(X,ce){var we=[],Be=this.nodeType==9&&this.documentElement||this,pt=Be.prefix,Ot=Be.namespaceURI;if(Ot&&pt==null){var pt=Be.lookupPrefix(Ot);if(pt==null)var Gn=[{namespace:Ot,prefix:null}]}return at(this,we,X,ce,Gn),we.join("")}function je(X,ce,we){var Be=X.prefix||"",pt=X.namespaceURI;if(!pt||Be==="xml"&&pt===n.XML||pt===n.XMLNS)return!1;for(var Ot=we.length;Ot--;){var Gn=we[Ot];if(Gn.prefix===Be)return Gn.namespace!==pt}return!0}function Ue(X,ce,we){X.push(" ",ce,'="',we.replace(/[<>&"\t\n\r]/g,U),'"')}function at(X,ce,we,Be,pt){if(pt||(pt=[]),Be)if(X=Be(X),X){if(typeof X=="string"){ce.push(X);return}}else return;switch(X.nodeType){case d:var Ot=X.attributes,Gn=Ot.length,Nt=X.firstChild,oa=X.tagName;we=n.isHTML(X.namespaceURI)||we;var Yo=oa;if(!we&&!X.prefix&&X.namespaceURI){for(var wa,Jo=0;Jo=0;ve--){var $e=pt[ve];if($e.prefix===""&&$e.namespace===X.namespaceURI){wa=$e.namespace;break}}if(wa!==X.namespaceURI)for(var ve=pt.length-1;ve>=0;ve--){var $e=pt[ve];if($e.namespace===X.namespaceURI){$e.prefix&&(Yo=$e.prefix+":"+oa);break}}}ce.push("<",Yo);for(var qe=0;qe"),we&&/^script$/i.test(oa))for(;Nt;)Nt.data?ce.push(Nt.data):at(Nt,ce,we,Be,pt.slice()),Nt=Nt.nextSibling;else for(;Nt;)at(Nt,ce,we,Be,pt.slice()),Nt=Nt.nextSibling;ce.push("")}else ce.push("/>");return;case w:case S:for(var Nt=X.firstChild;Nt;)at(Nt,ce,we,Be,pt.slice()),Nt=Nt.nextSibling;return;case f:return Ue(ce,X.name,X.value);case p:return ce.push(X.data.replace(/[<&>]/g,U));case h:return ce.push("");case y:return ce.push("");case x:var rn=X.publicId,jt=X.systemId;if(ce.push("");else if(jt&&jt!=".")ce.push(" SYSTEM ",jt,">");else{var mn=X.internalSubset;mn&&ce.push(" [",mn,"]"),ce.push(">")}return;case g:return ce.push("");case v:return ce.push("&",X.nodeName,";");default:ce.push("??",X.nodeName)}}function vt(X,ce,we){var Be;switch(ce.nodeType){case d:Be=ce.cloneNode(!1),Be.ownerDocument=X;case S:break;case f:we=!0;break}if(Be||(Be=ce.cloneNode(!1)),Be.ownerDocument=X,Be.parentNode=null,we)for(var pt=ce.firstChild;pt;)Be.appendChild(vt(X,pt,we)),pt=pt.nextSibling;return Be}function At(X,ce,we){var Be=new ce.constructor;for(var pt in ce)if(Object.prototype.hasOwnProperty.call(ce,pt)){var Ot=ce[pt];typeof Ot!="object"&&Ot!=Be[pt]&&(Be[pt]=Ot)}switch(ce.childNodes&&(Be.childNodes=new D),Be.ownerDocument=X,Be.nodeType){case d:var Gn=ce.attributes,oa=Be.attributes=new B,Yo=Gn.length;oa._ownerElement=Be;for(var wa=0;wa",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"",Aacute:"",Acirc:"",Atilde:"",Auml:"",Aring:"",AElig:"",Ccedil:"",Egrave:"",Eacute:"",Ecirc:"",Euml:"",Igrave:"",Iacute:"",Icirc:"",Iuml:"",ETH:"",Ntilde:"",Ograve:"",Oacute:"",Ocirc:"",Otilde:"",Ouml:"",Oslash:"",Ugrave:"",Uacute:"",Ucirc:"",Uuml:"",Yacute:"",THORN:"",szlig:"",agrave:"",aacute:"",acirc:"",atilde:"",auml:"",aring:"",aelig:"",ccedil:"",egrave:"",eacute:"",ecirc:"",euml:"",igrave:"",iacute:"",icirc:"",iuml:"",eth:"",ntilde:"",ograve:"",oacute:"",ocirc:"",otilde:"",ouml:"",oslash:"",ugrave:"",uacute:"",ucirc:"",uuml:"",yacute:"",thorn:"",yuml:"",nbsp:"",iexcl:"",cent:"¢",pound:"£",curren:"",yen:"\",brvbar:"",sect:"§",uml:"¨",copy:"",ordf:"",laquo:"",not:"¬",shy:"",reg:"",macr:"",deg:"°",plusmn:"±",sup2:"",sup3:"",acute:"´",micro:"",para:"¶",middot:"",cedil:"",sup1:"",ordm:"",raquo:"",frac14:"",frac12:"",frac34:"",iquest:"",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"",nabla:"∇",isin:"∈",notin:"",ni:"∋",prod:"",sum:"∑",minus:"-",lowast:"",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"",cong:"",asymp:"",ne:"≠",equiv:"≡",le:"",ge:"",sub:"⊂",sup:"⊃",nsub:"",sube:"⊆",supe:"⊇",oplus:"",otimes:"",perp:"⊥",sdot:"",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"",upsih:"",piv:"",OElig:"",oelig:"",Scaron:"",scaron:"",Yuml:"",fnof:"",circ:"",tilde:"",ensp:"",emsp:"",thinsp:"",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"",mdash:"―",lsquo:"‘",rsquo:"’",sbquo:"",ldquo:"“",rdquo:"”",bdquo:"",dagger:"†",Dagger:"‡",bull:"",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"",rsaquo:"",oline:"~",euro:"",trade:"",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"",crarr:"",lceil:"",rceil:"",lfloor:"",rfloor:"",loz:"",spades:"",clubs:"",hearts:"",diams:""}),t.entityMap=t.HTML_ENTITIES}(UO)),UO}var JE={},f6;function rHe(){if(f6)return JE;f6=1;var t=eD().NAMESPACE,e=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+e.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),r=new RegExp("^"+e.source+n.source+"*(?::"+e.source+n.source+"*)?$"),i=0,a=1,o=2,s=3,l=4,c=5,u=6,d=7;function f(M,N){this.message=M,this.locator=N,Error.captureStackTrace&&Error.captureStackTrace(this,f)}f.prototype=new Error,f.prototype.name=f.name;function p(){}p.prototype={parse:function(M,N,R){var O=this.domBuilder;O.startDocument(),x(N,N={}),h(M,N,R,O,this.errorHandler),O.endDocument()}};function h(M,N,R,O,D){function L(V){if(V>65535){V-=65536;var j=55296+(V>>10),ye=56320+(V&1023);return String.fromCharCode(j,ye)}else return String.fromCharCode(V)}function k(V){var j=V.slice(1,-1);return Object.hasOwnProperty.call(R,j)?R[j]:j.charAt(0)==="#"?L(parseInt(j.substr(1).replace("x","0x"))):(D.error("entity not found:"+V),V)}function B(V){if(V>z){var j=M.substring(z,V).replace(/&#?\w+;/g,k);le&&H(z),O.characters(j,0,V-z),z=V}}function H(V,j){for(;V>=W&&(j=K.exec(M));)$=j.index,W=$+j[0].length,le.lineNumber++;le.columnNumber=V-$+1}for(var $=0,W=0,K=/.*(?:\r\n?|\n)|.*$/g,le=O.locator,U=[{currentNSMap:N}],q={},z=0;;){try{var ne=M.indexOf("<",z);if(ne<0){if(!M.substr(z).match(/^\s*$/)){var G=O.doc,te=G.createTextNode(M.substr(z));G.appendChild(te),O.currentElement=te}return}switch(ne>z&&B(ne),M.charAt(ne+1)){case"/":var Me=M.indexOf(">",ne+3),Y=M.substring(ne+2,Me).replace(/[ \t\n\r]+$/g,""),fe=U.pop();Me<0?(Y=M.substring(ne+2).replace(/[\s<].*/,""),D.error("end tag name: "+Y+" is not complete:"+fe.tagName),Me=ne+1+Y.length):Y.match(/\sz?z=Me:B(Math.max(ne,z)+1)}}function v(M,N){return N.lineNumber=M.lineNumber,N.columnNumber=M.columnNumber,N}function b(M,N,R,O,D,L){function k(le,U,q){R.attributeNames.hasOwnProperty(le)&&L.fatalError("Attribute "+le+" redefined"),R.addValue(le,U.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,D),q)}for(var B,H,$=++N,W=i;;){var K=M.charAt($);switch(K){case"=":if(W===a)B=M.slice(N,$),W=s;else if(W===o)W=s;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(W===s||W===a)if(W===a&&(L.warning('attribute value must after "="'),B=M.slice(N,$)),N=$+1,$=M.indexOf(K,N),$>0)H=M.slice(N,$),k(B,H,N-1),W=c;else throw new Error("attribute value no end '"+K+"' match");else if(W==l)H=M.slice(N,$),k(B,H,N),L.warning('attribute "'+B+'" missed start quot('+K+")!!"),N=$+1,W=c;else throw new Error('attribute value must after "="');break;case"/":switch(W){case i:R.setTagName(M.slice(N,$));case c:case u:case d:W=d,R.closed=!0;case l:case a:case o:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return L.error("unexpected end of input"),W==i&&R.setTagName(M.slice(N,$)),$;case">":switch(W){case i:R.setTagName(M.slice(N,$));case c:case u:case d:break;case l:case a:H=M.slice(N,$),H.slice(-1)==="/"&&(R.closed=!0,H=H.slice(0,-1));case o:W===o&&(H=B),W==l?(L.warning('attribute "'+H+'" missed quot(")!'),k(B,H,N)):((!t.isHTML(O[""])||!H.match(/^(?:disabled|checked|selected)$/i))&&L.warning('attribute "'+H+'" missed value!! "'+H+'" instead!!'),k(H,H,N));break;case s:throw new Error("attribute value missed!!")}return $;case"":K=" ";default:if(K<=" ")switch(W){case i:R.setTagName(M.slice(N,$)),W=u;break;case a:B=M.slice(N,$),W=o;break;case l:var H=M.slice(N,$);L.warning('attribute "'+H+'" missed quot(")!!'),k(B,H,N);case c:W=u;break}else switch(W){case o:R.tagName,(!t.isHTML(O[""])||!B.match(/^(?:disabled|checked|selected)$/i))&&L.warning('attribute "'+B+'" missed value!! "'+B+'" instead2!!'),k(B,B,N),N=$,W=a;break;case c:L.warning('attribute space is required"'+B+'"!!');case u:W=a,N=$;break;case s:W=l,N=$;break;case d:throw new Error("elements closed character '/' and '>' must be connected to")}}$++}}function g(M,N,R){for(var O=M.tagName,D=null,K=M.length;K--;){var L=M[K],k=L.qName,B=L.value,le=k.indexOf(":");if(le>0)var H=L.prefix=k.slice(0,le),$=k.slice(le+1),W=H==="xmlns"&&$;else $=k,H=null,W=k==="xmlns"&&"";L.localName=$,W!==!1&&(D==null&&(D={},x(R,R={})),R[W]=D[W]=B,L.uri=t.XMLNS,N.startPrefixMapping(W,B))}for(var K=M.length;K--;){L=M[K];var H=L.prefix;H&&(H==="xml"&&(L.uri=t.XML),H!=="xmlns"&&(L.uri=R[H||""]))}var le=O.indexOf(":");le>0?(H=M.prefix=O.slice(0,le),$=M.localName=O.slice(le+1)):(H=null,$=M.localName=O);var U=M.uri=R[H||""];if(N.startElement(U,$,O,M),M.closed){if(N.endElement(U,$,O),D)for(H in D)Object.prototype.hasOwnProperty.call(D,H)&&N.endPrefixMapping(H)}else return M.currentNSMap=R,M.localNSMap=D,!0}function y(M,N,R,O,D){if(/^(?:script|textarea)$/i.test(R)){var L=M.indexOf("",N),k=M.substring(N+1,L);if(/[&<]/.test(k))return/^script$/i.test(R)?(D.characters(k,0,k.length),L):(k=k.replace(/&#?\w+;/g,O),D.characters(k,0,k.length),L)}return N+1}function w(M,N,R,O){var D=O[R];return D==null&&(D=M.lastIndexOf(""),D",N+4);return L>N?(R.comment(M,N+4,L-N-4),L+3):(O.error("Unclosed comment"),-1)}else return-1;default:if(M.substr(N+3,6)=="CDATA["){var L=M.indexOf("]]>",N+9);return R.startCDATA(),R.characters(M,N+9,L-N-9),R.endCDATA(),L+3}var k=P(M,N),B=k.length;if(B>1&&/!doctype/i.test(k[0][0])){var H=k[1][0],$=!1,W=!1;B>3&&(/^public$/i.test(k[2][0])?($=k[3][0],W=B>4&&k[4][0]):/^system$/i.test(k[2][0])&&(W=k[3][0]));var K=k[B-1];return R.startDTD(H,$,W),R.endDTD(),K.index+K[0].length}}return-1}function T(M,N,R){var O=M.indexOf("?>",N);if(O){var D=M.substring(N,O).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return D?(D[0].length,R.processingInstruction(D[1],D[2]),O+2):-1}return-1}function I(){this.attributeNames={}}I.prototype={setTagName:function(M){if(!r.test(M))throw new Error("invalid tagName:"+M);this.tagName=M},addValue:function(M,N,R){if(!r.test(M))throw new Error("invalid attribute:"+M);this.attributeNames[M]=this.length,this[this.length++]={qName:M,value:N,offset:R}},length:0,getLocalName:function(M){return this[M].localName},getLocator:function(M){return this[M].locator},getQName:function(M){return this[M].qName},getURI:function(M){return this[M].uri},getValue:function(M){return this[M].value}};function P(M,N){var R,O=[],D=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(D.lastIndex=N,D.exec(M);R=D.exec(M);)if(O.push(R),R[1])return O}return JE.XMLReader=p,JE.ParseError=f,JE}var p6;function iHe(){if(p6)return qy;p6=1;var t=eD(),e=pie(),n=nHe(),r=rHe(),i=e.DOMImplementation,a=t.NAMESPACE,o=r.ParseError,s=r.XMLReader;function l(b){return b.replace(/\r[\n\u0085]/g,` `).replace(/[\r\u0085\u2028]/g,` `)}function c(b){this.options=b||{locator:{}}}c.prototype.parseFromString=function(b,g){var y=this.options,w=new s,x=y.domBuilder||new d,S=y.errorHandler,T=y.locator,I=y.xmlns||{},P=/\/x?html?$/.test(g),M=P?n.HTML_ENTITIES:n.XML_ENTITIES;T&&x.setDocumentLocator(T),w.errorHandler=u(S,x,T),w.domBuilder=y.domBuilder||x,P&&(I[""]=a.HTML),I.xml=I.xml||a.XML;var N=y.normalizeLineEndings||l;return b&&typeof b=="string"?w.parse(N(b),I,M):w.errorHandler.error("invalid doc source"),x.doc};function u(b,g,y){if(!b){if(g instanceof d)return g;b=g}var w={},x=b instanceof Function;y=y||{};function S(T){var I=b[T];!I&&x&&(I=b.length==2?function(P){b(T,P)}:b),w[T]=I&&function(P){I("[xmldom "+T+"] "+P+p(y))}||function(){}}return S("warning"),S("error"),S("fatalError"),w}function d(){this.cdata=!1}function f(b,g){g.lineNumber=b.lineNumber,g.columnNumber=b.columnNumber}d.prototype={startDocument:function(){this.doc=new i().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(b,g,y,w){var x=this.doc,S=x.createElementNS(b,y||g),T=w.length;v(this,S),this.currentElement=S,this.locator&&f(this.locator,S);for(var I=0;I=g+y||g?new java.lang.String(b,g,y)+"":b}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(b){d.prototype[b]=function(){return null}});function v(b,g){b.currentElement?b.currentElement.appendChild(g):b.doc.appendChild(g)}return qy.__DOMHandler=d,qy.normalizeLineEndings=l,qy.DOMParser=c,qy}var h6;function aHe(){if(h6)return Wy;h6=1;var t=pie();return Wy.DOMImplementation=t.DOMImplementation,Wy.XMLSerializer=t.XMLSerializer,Wy.DOMParser=iHe().DOMParser,Wy}var Yy={},m6;function oHe(){if(m6)return Yy;m6=1,Object.defineProperty(Yy,"__esModule",{value:!0}),Yy.parseJson=void 0;function t(e){try{var n=JSON.parse(e);return n}catch{return null}}return Yy.parseJson=t,Yy}var Jy={},g6;function sHe(){if(g6)return Jy;g6=1,Object.defineProperty(Jy,"__esModule",{value:!0}),Jy.bufferFrom=void 0;function t(e){var n=encodeURIComponent(e),r=n.replace(/%([0-9A-F]{2})/g,function(a,o){return String.fromCharCode("0x"+o)}),i=new Uint8Array(r.length);return Array.prototype.forEach.call(r,function(a,o){i[o]=a.charCodeAt(0)}),i}return Jy.bufferFrom=t,Jy}var Qy={},Ky={},v6;function hie(){if(v6)return Ky;v6=1,Object.defineProperty(Ky,"__esModule",{value:!0}),Ky.EventPolyfill=void 0;var t=function(){function e(n,r){this.AT_TARGET=0,this.BUBBLING_PHASE=0,this.CAPTURING_PHASE=0,this.NONE=0,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=n,this.target=(r==null?void 0:r.target)||null,this.currentTarget=(r==null?void 0:r.currentTarget)||null,this.timeStamp=Date.now()}return e.prototype.composedPath=function(){return[]},e.prototype.initEvent=function(n,r,i){this.type=n,this.bubbles=!!r,this.cancelable=!!i},e.prototype.preventDefault=function(){this.defaultPrevented=!0},e.prototype.stopPropagation=function(){},e.prototype.stopImmediatePropagation=function(){},e}();return Ky.EventPolyfill=t,Ky}var Xy={},y6;function lHe(){if(y6)return Xy;y6=1;var t=mt&&mt.__extends||function(){var r=function(i,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o[l]=s[l])},r(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");r(i,a);function o(){this.constructor=i}i.prototype=a===null?Object.create(a):(o.prototype=a.prototype,new o)}}();Object.defineProperty(Xy,"__esModule",{value:!0}),Xy.ProgressEventPolyfill=void 0;var e=hie(),n=function(r){t(i,r);function i(a,o){var s=r.call(this,a)||this;return s.lengthComputable=(o==null?void 0:o.lengthComputable)||!1,s.composed=(o==null?void 0:o.composed)||!1,s.loaded=(o==null?void 0:o.loaded)||0,s.total=(o==null?void 0:o.total)||0,s}return i}(e.EventPolyfill);return Xy.ProgressEventPolyfill=n,Xy}var b6;function cHe(){if(b6)return Qy;b6=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.createEvent=void 0;var t=hie(),e=lHe(),n=typeof ProgressEvent<"u";function r(i,a,o){var s=["error","progress","loadstart","loadend","load","timeout","abort"],l=n?ProgressEvent:e.ProgressEventPolyfill,c=s.includes(a)?new l(a,{lengthComputable:!0,loaded:(o==null?void 0:o.loaded)||0,total:(o==null?void 0:o.total)||0}):new t.EventPolyfill(a,{target:i,currentTarget:i});return c}return Qy.createEvent=r,Qy}var _6;function uHe(){if(_6)return Gy;_6=1;var t=mt&&mt.__awaiter||function(v,b,g,y){function w(x){return x instanceof g?x:new g(function(S){S(x)})}return new(g||(g=Promise))(function(x,S){function T(M){try{P(y.next(M))}catch(N){S(N)}}function I(M){try{P(y.throw(M))}catch(N){S(N)}}function P(M){M.done?x(M.value):w(M.value).then(T,I)}P((y=y.apply(v,b||[])).next())})},e=mt&&mt.__generator||function(v,b){var g={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]},y,w,x,S;return S={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function T(P){return function(M){return I([P,M])}}function I(P){if(y)throw new TypeError("Generator is already executing.");for(;g;)try{if(y=1,w&&(x=P[0]&2?w.return:P[0]?w.throw||((x=w.return)&&x.call(w),0):w.next)&&!(x=x.call(w,P[1])).done)return x;switch(w=0,x&&(P=[P[0]&2,x.value]),P[0]){case 0:case 1:x=P;break;case 4:return g.label++,{value:P[1],done:!1};case 5:g.label++,w=P[1],P=[0];continue;case 7:P=g.ops.pop(),g.trys.pop();continue;default:if(x=g.trys,!(x=x.length>0&&x[x.length-1])&&(P[0]===6||P[0]===2)){g=0;continue}if(P[0]===3&&(!x||P[1]>x[0]&&P[1]=v.length&&(v=void 0),{value:v&&v[y++],done:!v}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},r=mt&&mt.__read||function(v,b){var g=typeof Symbol=="function"&&v[Symbol.iterator];if(!g)return v;var y=g.call(v),w,x=[],S;try{for(;(b===void 0||b-- >0)&&!(w=y.next()).done;)x.push(w.value)}catch(T){S={error:T}}finally{try{w&&!w.done&&(g=y.return)&&g.call(y)}finally{if(S)throw S.error}}return x};Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.createXMLHttpRequestOverride=void 0;var i=tm,a=Nl,o=aHe(),s=oHe(),l=fie(),c=sHe(),u=cHe(),d=nm,f=cc,p=T0,h=function(v){var b,g=v.XMLHttpRequest,y=v.emitter,w=v.log;return b=function(){function x(){this._events=[],this.log=w,this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.onreadystatechange=null,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this.url="",this.method="GET",this.readyState=this.UNSENT,this.withCredentials=!1,this.status=200,this.statusText="OK",this.response="",this.responseType="text",this.responseText="",this.responseXML=null,this.responseURL="",this.upload={},this.timeout=0,this._requestHeaders=new a.Headers,this._responseHeaders=new a.Headers}return x.prototype.setReadyState=function(S){S!==this.readyState&&(this.log("readyState change %d -> %d",this.readyState,S),this.readyState=S,S!==this.UNSENT&&(this.log("triggering readystate change..."),this.trigger("readystatechange")))},x.prototype.trigger=function(S,T){var I,P;this.log('trigger "%s" (%d)',S,this.readyState),this.log('resolve listener for event "%s"',S);var M=this["on"+S];M==null||M.call(this,u.createEvent(this,S,T));try{for(var N=n(this._events),R=N.next();!R.done;R=N.next()){var O=R.value;O.name===S&&(w('calling mock event listener "%s" (%d)',S,this.readyState),O.listener.call(this,u.createEvent(this,S,T)))}}catch(D){I={error:D}}finally{try{R&&!R.done&&(P=N.return)&&P.call(N)}finally{if(I)throw I.error}}return this},x.prototype.reset=function(){this.log("reset"),this.setReadyState(this.UNSENT),this.status=200,this.statusText="OK",this.response=null,this.responseText=null,this.responseXML=null,this._requestHeaders=new a.Headers,this._responseHeaders=new a.Headers},x.prototype.open=function(S,T,I,P,M){return I===void 0&&(I=!0),t(this,void 0,void 0,function(){return e(this,function(N){return this.log=this.log.extend("request "+S+" "+T),this.log("open",{method:S,url:T,async:I,user:P,password:M}),this.reset(),this.setReadyState(this.OPENED),typeof T>"u"?(this.url=S,this.method="GET"):(this.url=T,this.method=S,this.async=I,this.user=P,this.password=M),[2]})})},x.prototype.send=function(S){var T=this;this.log("send %s %s",this.method,this.url);var I;typeof S=="string"?I=f.encodeBuffer(S):I=S||new ArrayBuffer(0);var P;try{P=new URL(this.url)}catch{P=new URL(this.url,window.location.href)}this.log("request headers",this._requestHeaders);var M=new d.IsomorphicRequest(P,{body:I,method:this.method,headers:this._requestHeaders,credentials:this.withCredentials?"include":"omit"}),N=new p.InteractiveIsomorphicRequest(M);this.log('emitting the "request" event for %d listener(s)...',y.listenerCount("request")),y.emit("request",N),this.log("awaiting mocked response..."),Promise.resolve(i.until(function(){return t(T,void 0,void 0,function(){var R,O;return e(this,function(D){switch(D.label){case 0:return[4,y.untilIdle("request",function(L){var k=r(L.args,1),B=k[0];return B.id===N.id})];case 1:return D.sent(),this.log("all request listeners have been resolved!"),[4,N.respondWith.invoked()];case 2:return R=r.apply(void 0,[D.sent(),1]),O=R[0],this.log("event.respondWith called with:",O),[2,O]}})})})).then(function(R){var O,D,L=r(R,2),k=L[0],B=L[1];if(k){T.log("middleware function threw an exception!",k),T.trigger("error"),T.abort();return}if(B){if(T.log("received mocked response",B),T.trigger("loadstart"),T.status=(O=B.status)!==null&&O!==void 0?O:200,T.statusText=B.statusText||"OK",T._responseHeaders=B.headers?a.objectToHeaders(B.headers):new a.Headers,T.log("set response status",T.status,T.statusText),T.log("set response headers",T._responseHeaders),T.setReadyState(T.HEADERS_RECEIVED),T.log("response type",T.responseType),T.response=T.getResponseBody(B.body),T.responseURL=T.url,T.responseText=B.body||"",T.responseXML=T.getResponseXML(),T.log("set response body",T.response),B.body&&T.response){T.setReadyState(T.LOADING);var H=c.bufferFrom(B.body);T.trigger("progress",{loaded:H.length,total:H.length})}T.setReadyState(T.DONE),T.trigger("load"),T.trigger("loadend"),y.emit("response",M,l.toIsoResponse(B))}else{T.log("no mocked response received!");var $=new g;T.log("opening an original request %s %s",T.method,T.url),$.open(T.method,T.url,(D=T.async)!==null&&D!==void 0?D:!0,T.user,T.password),$.addEventListener("load",function(){T.log('original "onload"'),T.status=$.status,T.statusText=$.statusText,T.responseURL=$.responseURL,T.responseType=$.responseType,T.response=$.response,T.responseText=$.responseText,T.responseXML=$.responseXML,T.log("set mock request readyState to DONE"),T.setReadyState(T.DONE),T.log("received original response",T.status,T.statusText),T.log("original response body:",T.response);var W=$.getAllResponseHeaders();T.log(`original response headers: `,W),T._responseHeaders=a.stringToHeaders(W),T.log("original response headers (normalized)",T._responseHeaders),T.log("original response finished"),y.emit("response",M,{status:$.status,statusText:$.statusText,headers:T._responseHeaders,body:$.response})}),T.propagateCallbacks($),T.propagateListeners($),T.propagateHeaders($,T._requestHeaders),T.async&&($.timeout=T.timeout),T.log("send",S),$.send(S)}})},x.prototype.abort=function(){this.log("abort"),this.readyState>this.UNSENT&&this.readyState-1&&r.splice(a,1),[]}_wrapOnceListener(r,i){const a=(...o)=>{this.removeListener(r,a),i.apply(this,o)};return a}setMaxListeners(r){return this.maxListeners=r,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(r,...i){const a=this._getListeners(r);return a.forEach(o=>{o.apply(this,i)}),a.length>0}addListener(r,i){this._emitInternalEvent("newListener",r,i);const a=this._getListeners(r).concat(i);if(this.events.set(r,a),this.maxListeners>0&&this.listenerCount(r)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const o=new t.MemoryLeakError(this,r,this.listenerCount(r));console.warn(o)}return this}on(r,i){return this.addListener(r,i)}once(r,i){return this.addListener(r,this._wrapOnceListener(r,i))}prependListener(r,i){const a=this._getListeners(r);if(a.length>0){const o=[i].concat(a);this.events.set(r,o)}else this.events.set(r,a.concat(i));return this}prependOnceListener(r,i){return this.prependListener(r,this._wrapOnceListener(r,i))}removeListener(r,i){const a=this._getListeners(r);return a.length>0&&(this._removeListener(a,i),this.events.set(r,a),this._emitInternalEvent("removeListener",r,i)),this}off(r,i){return this.removeListener(r,i)}removeAllListeners(r){return r?this.events.delete(r):this.events.clear(),this}listeners(r){return Array.from(this._getListeners(r))}listenerCount(r){return this._getListeners(r).length}rawListeners(r){return this.listeners(r)}};return Zy.Emitter=e,e.defaultMaxListeners=10,Zy}var S6;function pHe(){return S6||(S6=1,function(t){var e=mt&&mt.__createBinding||(Object.create?function(r,i,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,o,s)}:function(r,i,a,o){o===void 0&&(o=a),r[o]=i[a]}),n=mt&&mt.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&e(i,r,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(fHe(),t),n(mie(),t)}(HO)),HO}var hHe=Object.create,Ww=Object.defineProperty,mHe=Object.defineProperties,gHe=Object.getOwnPropertyDescriptor,vHe=Object.getOwnPropertyDescriptors,yHe=Object.getOwnPropertyNames,ZT=Object.getOwnPropertySymbols,bHe=Object.getPrototypeOf,tU=Object.prototype.hasOwnProperty,gie=Object.prototype.propertyIsEnumerable,C6=(t,e,n)=>e in t?Ww(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ki=(t,e)=>{for(var n in e||(e={}))tU.call(e,n)&&C6(t,n,e[n]);if(ZT)for(var n of ZT(e))gie.call(e,n)&&C6(t,n,e[n]);return t},eo=(t,e)=>mHe(t,vHe(e)),_He=(t,e)=>{var n={};for(var r in t)tU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ZT)for(var r of ZT(t))e.indexOf(r)<0&&gie.call(t,r)&&(n[r]=t[r]);return n},vie=(t,e)=>{for(var n in e)Ww(t,n,{get:e[n],enumerable:!0})},yie=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of yHe(e))!tU.call(t,i)&&i!==n&&Ww(t,i,{get:()=>e[i],enumerable:!(r=gHe(e,i))||r.enumerable});return t},qw=(t,e,n)=>(n=t!=null?hHe(bHe(t)):{},yie(e||!t||!t.__esModule?Ww(n,"default",{value:t,enumerable:!0}):n,t)),wHe=t=>yie(Ww({},"__esModule",{value:!0}),t),bie={};vie(bie,{GraphQLHandler:()=>nD,MockedRequest:()=>Yw,RESTMethods:()=>jie,RequestHandler:()=>sU,RestHandler:()=>lU,SetupApi:()=>Kie,cleanUrl:()=>aU,compose:()=>Hie,context:()=>_ie,createResponseComposition:()=>xk,defaultContext:()=>tD,defaultResponse:()=>Vie,graphql:()=>mje,graphqlContext:()=>qie,handleRequest:()=>cU,matchRequestUrl:()=>oU,response:()=>zie,rest:()=>fje,restContext:()=>Gie,setupWorker:()=>dje});var un=wHe(bie),_ie={};vie(_ie,{body:()=>Eie,cookie:()=>nU,data:()=>Sie,delay:()=>Tie,errors:()=>Aie,extensions:()=>Cie,fetch:()=>Iie,json:()=>R0,set:()=>xie,status:()=>wie,text:()=>Mie,xml:()=>Die});var xHe="Continue",EHe="Switching Protocols",SHe="Processing",CHe="Early Hints",THe="OK",AHe="Created",IHe="Accepted",MHe="Non-Authoritative Information",DHe="No Content",PHe="Reset Content",RHe="Partial Content",OHe="Multi-Status",NHe="Already Reported",LHe="IM Used",kHe="Multiple Choices",FHe="Moved Permanently",$He="Found",BHe="See Other",UHe="Not Modified",HHe="Use Proxy",VHe="Temporary Redirect",zHe="Permanent Redirect",jHe="Bad Request",GHe="Unauthorized",WHe="Payment Required",qHe="Forbidden",YHe="Not Found",JHe="Method Not Allowed",QHe="Not Acceptable",KHe="Proxy Authentication Required",XHe="Request Timeout",ZHe="Conflict",eVe="Gone",tVe="Length Required",nVe="Precondition Failed",rVe="Payload Too Large",iVe="URI Too Long",aVe="Unsupported Media Type",oVe="Range Not Satisfiable",sVe="Expectation Failed",lVe="I'm a Teapot",cVe="Misdirected Request",uVe="Unprocessable Entity",dVe="Locked",fVe="Failed Dependency",pVe="Too Early",hVe="Upgrade Required",mVe="Precondition Required",gVe="Too Many Requests",vVe="Request Header Fields Too Large",yVe="Unavailable For Legal Reasons",bVe="Internal Server Error",_Ve="Not Implemented",wVe="Bad Gateway",xVe="Service Unavailable",EVe="Gateway Timeout",SVe="HTTP Version Not Supported",CVe="Variant Also Negotiates",TVe="Insufficient Storage",AVe="Loop Detected",IVe="Bandwidth Limit Exceeded",MVe="Not Extended",DVe="Network Authentication Required",PVe={100:xHe,101:EHe,102:SHe,103:CHe,200:THe,201:AHe,202:IHe,203:MHe,204:DHe,205:PHe,206:RHe,207:OHe,208:NHe,226:LHe,300:kHe,301:FHe,302:$He,303:BHe,304:UHe,305:HHe,307:VHe,308:zHe,400:jHe,401:GHe,402:WHe,403:qHe,404:YHe,405:JHe,406:QHe,407:KHe,408:XHe,409:ZHe,410:eVe,411:tVe,412:nVe,413:rVe,414:iVe,415:aVe,416:oVe,417:sVe,418:lVe,421:cVe,422:uVe,423:dVe,424:fVe,425:pVe,426:hVe,428:mVe,429:gVe,431:vVe,451:yVe,500:bVe,501:_Ve,502:wVe,503:xVe,504:EVe,505:SVe,506:CVe,507:TVe,508:AVe,509:IVe,510:MVe,511:DVe},wie=(t,e)=>n=>(n.status=t,n.statusText=e||PVe[String(t)],n),RVe=Nl;function xie(...t){return e=>{const[n,r]=t;return typeof n=="string"?e.headers.append(n,r):(0,RVe.objectToHeaders)(n).forEach((a,o)=>{e.headers.append(o,a)}),e}}var OVe=qw(Rw),nU=(t,e,n)=>r=>{const i=OVe.serialize(t,e,n);return r.headers.append("Set-Cookie",i),typeof document<"u"&&(document.cookie=i),r},Eie=t=>e=>(e.body=t,e);function $f(t){try{return JSON.parse(t)}catch{return}}function T6(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function P0(t,e){return Object.entries(e).reduce((n,[r,i])=>{const a=n[r];return Array.isArray(a)&&Array.isArray(i)?(n[r]=a.concat(i),n):T6(a)&&T6(i)?(n[r]=P0(a,i),n):(n[r]=i,n)},Object.assign({},t))}var R0=t=>e=>(e.headers.set("Content-Type","application/json"),e.body=JSON.stringify(t),e),Sie=t=>e=>{const n=$f(e.body)||{},r=P0(n,{data:t});return R0(r)(e)},Cie=t=>e=>{const n=$f(e.body)||{},r=P0(n,{extensions:t});return R0(r)(e)},NVe=Vv,VO=2147483647,A6=100,LVe=400,kVe=5,I6=()=>(0,NVe.isNodeProcess)()?kVe:Math.floor(Math.random()*(LVe-A6)+A6),Tie=t=>e=>{let n;if(typeof t=="string")switch(t){case"infinite":{n=VO;break}case"real":{n=I6();break}default:throw new Error(`Failed to delay a response: unknown delay mode "${t}". Please make sure you provide one of the supported modes ("real", "infinite") or a number to "ctx.delay".`)}else if(typeof t>"u")n=I6();else{if(t>VO)throw new Error(`Failed to delay a response: provided delay duration (${t}) exceeds the maximum allowed duration for "setTimeout" (${VO}). This will cause the response to be returned immediately. Please use a number within the allowed range to delay the response by exact duration, or consider the "infinite" delay mode to delay the response indefinitely.`);n=t}return e.delay=n,e},Aie=t=>e=>{if(t==null)return e;const n=$f(e.body)||{},r=P0(n,{errors:t});return R0(r)(e)},FVe=Vv,$Ve=Nl,M6=(0,FVe.isNodeProcess)()?(t,e)=>Promise.resolve().then(()=>qw(H$e())).then(({default:n})=>n(t,e)):globalThis.fetch,D6=t=>{const e=new $Ve.Headers(t.headers);return e.set("x-msw-bypass","true"),eo(ki({},t),{headers:e.all()})},BVe=t=>{const{body:e,method:n}=t,r=eo(ki({},t),{body:void 0});return["GET","HEAD"].includes(n)||(typeof e=="object"||typeof e=="number"||typeof e=="boolean"?r.body=JSON.stringify(e):r.body=e),r},Iie=(t,e={})=>{if(typeof t=="string")return M6(t,D6(e));const n=BVe(t),r=D6(n);return M6(t.url.href,r)},Mie=t=>e=>(e.headers.set("Content-Type","text/plain"),e.body=t,e),Die=t=>e=>(e.headers.set("Content-Type","text/xml"),e.body=t,e),UVe=Sd,HVe=Vv,VVe=tm,zVe=tm,zO=(t,e,n)=>[t.active,t.installing,t.waiting].filter(Boolean).find(o=>n(o.scriptURL,e))||null;function jVe(t){return new URL(t,location.href).href}var GVe=Sd,WVe="[MSW]";function rU(t,...e){const n=(0,GVe.format)(t,...e);return`${WVe} ${n}`}function qVe(t,...e){console.warn(rU(t,...e))}function YVe(t,...e){console.error(rU(t,...e))}var dr={formatMessage:rU,warn:qVe,error:YVe},JVe=async(t,e={},n)=>{const r=jVe(t),i=await navigator.serviceWorker.getRegistrations().then(l=>l.filter(c=>zO(c,r,n)));!navigator.serviceWorker.controller&&i.length>0&&location.reload();const[a]=i;if(a)return a.update().then(()=>[zO(a,r,n),a]);const[o,s]=await(0,zVe.until)(async()=>{const l=await navigator.serviceWorker.register(t,e);return[zO(l,r,n),l]});if(o){if(o.message.includes("(404)")){const c=new URL((e==null?void 0:e.scope)||"/",location.href);throw new Error(dr.formatMessage(`Failed to register a Service Worker for scope ('${c.href}') with script ('${r}'): Service Worker script does not exist at the given path. Did you forget to run "npx msw init "? Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/init`))}throw new Error(dr.formatMessage(`Failed to register the Service Worker: %s`,o.message))}return s};function Pie(t={}){if(t.quiet)return;const e=t.message||"Mocking enabled.";console.groupCollapsed(`%c${dr.formatMessage(e)}`,"color:orangered;font-weight:bold;"),console.log("%cDocumentation: %chttps://mswjs.io/docs","font-weight:bold","font-weight:normal"),console.log("Found an issue? https://github.com/mswjs/msw/issues"),t.workerUrl&&console.log("Worker script URL:",t.workerUrl),t.workerScope&&console.log("Worker scope:",t.workerScope),console.groupEnd()}async function QVe(t,e){var n,r;if(t.workerChannel.send("MOCK_ACTIVATE"),await t.events.once("MOCKING_ENABLED"),t.isMockingEnabled){dr.warn('Found a redundant "worker.start()" call. Note that starting the worker while mocking is already enabled will have no effect. Consider removing this "worker.start()" call.');return}t.isMockingEnabled=!0,Pie({quiet:e.quiet,workerScope:(n=t.registration)==null?void 0:n.scope,workerUrl:(r=t.worker)==null?void 0:r.scriptURL})}var KVe=class{constructor(t){this.port=t}postMessage(t,...e){const[n,r]=e;this.port.postMessage({type:t,data:n},{transfer:r})}},Rie=class extends Error{constructor(t){super(t),this.name="NetworkError"}},XVe=Nw,ZVe=Nl,eze=qw(Rw),P6=dB,tze=Nw,nze=cc,rze=Nl,ize=qw(Rw);function R6(){return ize.parse(document.cookie)}function aze(t){if(typeof document>"u"||typeof location>"u")return{};switch(t.credentials){case"same-origin":return location.origin===t.url.origin?R6():{};case"include":return R6();default:return{}}}var oze=Nl;function sze(t){var e,n;const r=(0,oze.stringToHeaders)(t),i=r.get("content-type")||"text/plain",a=r.get("content-disposition");if(!a)throw new Error('"Content-Disposition" header is required.');const o=a.split(";").reduce((c,u)=>{const[d,...f]=u.trim().split("=");return c[d]=f.join("="),c},{}),s=(e=o.name)==null?void 0:e.slice(1,-1),l=(n=o.filename)==null?void 0:n.slice(1,-1);return{name:s,filename:l,contentType:i}}function lze(t,e){const n=e==null?void 0:e.get("content-type");if(!n)return;const[,...r]=n.split(/; */),i=r.filter(l=>l.startsWith("boundary=")).map(l=>l.replace(/^boundary=/,""))[0];if(!i)return;const a=new RegExp(`--+${i}`),o=t.split(a).filter(l=>l.startsWith(`\r `)&&l.endsWith(`\r `)).map(l=>l.trimStart().replace(/\r\n$/,""));if(!o.length)return;const s={};try{for(const l of o){const[c,...u]=l.split(`\r \r `),d=u.join(`\r \r `),{contentType:f,filename:p,name:h}=sze(c),v=p===void 0?d:new File([d],p,{type:f}),b=s[h];b===void 0?s[h]=v:Array.isArray(b)?s[h]=[...b,v]:s[h]=[b,v]}return s}catch{return}}function Oie(t,e){var n;if(!t)return t;const r=((n=e==null?void 0:e.get("content-type"))==null?void 0:n.toLowerCase())||"";return r.startsWith("multipart/form-data")&&typeof t!="object"?lze(t.toString(),e)||t:r.includes("json")&&typeof t!="object"&&$f(t.toString())||t}function iU(t,e){return t.toLowerCase()===e.toLowerCase()}var Yw=class extends tze.IsomorphicRequest{constructor(t,e={}){super(t,e),e.id&&(this.id=e.id),this.cache=e.cache||"default",this.destination=e.destination||"",this.integrity=e.integrity||"",this.keepalive=e.keepalive||!1,this.mode=e.mode||"cors",this.priority=e.priority||"auto",this.redirect=e.redirect||"follow",this.referrer=e.referrer||"",this.referrerPolicy=e.referrerPolicy||"no-referrer",this.cookies=e.cookies||this.getCookies()}get body(){const t=(0,nze.decodeBuffer)(this._body),e=Oie(t,this.headers);if(!(iU(this.method,"GET")&&e===""))return e}passthrough(){return{status:101,statusText:"Continue",headers:new rze.Headers,body:null,passthrough:!0,once:!1}}getCookies(){var t;const e=this.headers.get("cookie"),n=e?eze.parse(e):{};P6.store.hydrate();const r=Array.from((t=P6.store.get(eo(ki({},this),{url:this.url.href})))==null?void 0:t.entries()).reduce((o,[s,{value:l}])=>Object.assign(o,{[s.trim()]:l}),{}),i=aze(this),a=ki(ki({},i),r);for(const[o,s]of Object.entries(a))this.headers.append("cookie",`${o}=${s}`);return ki(ki({},a),n)}};function cze(t){const e=new URL(t.url),n=new ZVe.Headers(t.headers);return new Yw(e,eo(ki({},t),{body:(0,XVe.encodeBuffer)(t.body||""),headers:n}))}var uze=tm,dze=async(t,e,n)=>{const r=e.filter(a=>a.test(t,n));if(r.length===0)return{handler:void 0,response:void 0};const i=await r.reduce(async(a,o)=>{const s=await a;if(s!=null&&s.response)return a;const l=await o.run(t,n);return l===null||l.handler.shouldSkip?null:l.response?(l.response.once&&o.markAsSkipped(!0),l):{request:l.request,handler:l.handler,response:void 0,parsedResult:l.parsedResult}},Promise.resolve(null));return i?{handler:i.handler,publicRequest:i.request,parsedRequest:i.parsedResult,response:i.response}:{handler:void 0,response:void 0}},Nie=qw(aUe()),fze=W5e,Jw=t=>t.referrer.startsWith(t.url.origin)?t.url.pathname:new URL(t.url.pathname,`${t.url.protocol}//${t.url.host}`).href;function Lie(t){var e;const n=t.definitions.find(r=>r.kind==="OperationDefinition");return{operationType:n==null?void 0:n.operation,operationName:(e=n==null?void 0:n.name)==null?void 0:e.value}}function pze(t){try{const e=(0,fze.parse)(t);return Lie(e)}catch(e){return e}}function hze(t,e,n){const r={variables:t};for(const[i,a]of Object.entries(e)){if(!(i in n))throw new Error(`Given files do not have a key '${i}' .`);for(const o of a){const[s,...l]=o.split(".").reverse(),c=l.reverse();let u=r;for(const d of c){if(!(d in u))throw new Error(`Property '${c}' is not in operations.`);u=u[d]}u[s]=n[i]}}return r.variables}function mze(t){var e,n;switch(t.method){case"GET":{const r=t.url.searchParams.get("query"),i=t.url.searchParams.get("variables")||"";return{query:r,variables:$f(i)}}case"POST":{if((e=t.body)!=null&&e.query){const{query:r,variables:i}=t.body;return{query:r,variables:i}}if((n=t.body)!=null&&n.operations){const r=t.body,{operations:i,map:a}=r,o=_He(r,["operations","map"]),s=$f(i)||{};if(!s.query)return null;const l=$f(a||"")||{},c=s.variables?hze(s.variables,l,o):{};return{query:s.query,variables:c}}}default:return null}}function kie(t){const e=mze(t);if(!e||!e.query)return;const{query:n,variables:r}=e,i=pze(n);if(i instanceof Error){const a=Jw(t);throw new Error(dr.formatMessage(`Failed to intercept a GraphQL request to "%s %s": cannot parse query. See the error message from the parser below. %s`,t.method,a,i.message))}return{operationType:i.operationType,operationName:i.operationName,variables:r}}function Fie(t){return t<300?"#69AB32":t<400?"#F0BB4B":"#E95F5D"}function $ie(){const t=new Date;return[t.getHours(),t.getMinutes(),t.getSeconds()].map(String).map(e=>e.slice(0,2)).map(e=>e.padStart(2,"0")).join(":")}function Bie(t){return eo(ki({},t),{body:t.body,headers:t.headers.all()})}var gze=Nl;function Uie(t){const e=(0,gze.objectToHeaders)(t.headers);return eo(ki({},t),{body:Oie(t.body,e)})}var vze=eHe,yze=Fw,bze=/[\?|#].*$/g;function _ze(t){return new URL(`/${t}`,"http://localhost").searchParams}function aU(t){return t.replace(bze,"")}function wze(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}function xze(t,e){if(wze(t)||t.startsWith("*"))return t;const n=e||typeof document<"u"&&document.baseURI;return n?decodeURI(new URL(encodeURI(t),n).href):t}function Eze(t,e){if(t instanceof RegExp)return t;const n=xze(t,e);return aU(n)}function Sze(t){return t.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(e,n,r)=>{const i="(.*)";return n?n.startsWith(":")?`${n}${r}`:`${n}${i}`:i}).replace(/([^\/])(:)(?=\d+)/,"$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/,"$1\\$2")}function oU(t,e,n){const r=Eze(e,n),i=typeof r=="string"?Sze(r):r,a=(0,yze.getCleanUrl)(t),o=(0,vze.match)(i,{decode:decodeURIComponent})(a),s=o&&o.params||{};return{matches:o!==!1,params:s}}var Cze=Nl;function Hie(...t){return(...e)=>t.reduceRight((n,r)=>n instanceof Promise?Promise.resolve(n).then(r):r(n),e[0])}var Vie={status:200,statusText:"OK",body:null,delay:0,once:!1,passthrough:!1},Tze=[];function xk(t,e=Tze){return async(...n)=>{const r=Object.assign({},Vie,{headers:new Cze.Headers({"x-powered-by":"msw"})},t),i=[...e,...n].filter(Boolean);return i.length>0?Hie(...i)(r):r}}var zie=Object.assign(xk(),{once:xk({once:!0}),networkError(t){throw new Rie(t)}}),Aze=/[\/\\]msw[\/\\]src[\/\\](.+)/,Ize=/(node_modules)?[\/\\]lib[\/\\](umd|esm|iief|cjs)[\/\\]|^[^\/\\]*$/;function Mze(t){const e=t.stack;if(!e)return;const r=e.split(` `).slice(1).find(a=>!(Aze.test(a)||Ize.test(a)));return r?r.replace(/\s*at [^()]*\(([^)]+)\)/,"$1").replace(/^@/,""):void 0}function Dze(t){return t?typeof t[Symbol.iterator]=="function":!1}var tD={status:wie,set:xie,delay:Tie,fetch:Iie},sU=class{constructor(t){this.shouldSkip=!1,this.ctx=t.ctx||tD,this.resolver=t.resolver;const e=Mze(new Error);this.info=eo(ki({},t.info),{callFrame:e})}parse(t,e){return null}test(t,e){return this.predicate(t,this.parse(t,e),e)}getPublicRequest(t,e){return t}markAsSkipped(t=!0){this.shouldSkip=t}async run(t,e){if(this.shouldSkip)return null;const n=this.parse(t,e);if(!this.predicate(t,n,e))return null;const i=this.getPublicRequest(t,n),o=await this.wrapResolver(this.resolver)(i,zie,this.ctx);return this.createExecutionResult(n,i,o)}wrapResolver(t){return async(e,n,r)=>{const i=this.resolverGenerator||await t(e,n,r);if(Dze(i)){const{value:a,done:o}=i[Symbol.iterator]().next(),s=await a;return!s&&o?this.resolverGeneratorResult:(this.resolverGenerator||(this.resolverGenerator=i),this.resolverGeneratorResult=s,s)}return i}}createExecutionResult(t,e,n){return{handler:this,parsedResult:t||null,request:e,response:n||null}}},jie=(t=>(t.HEAD="HEAD",t.GET="GET",t.POST="POST",t.PUT="PUT",t.PATCH="PATCH",t.OPTIONS="OPTIONS",t.DELETE="DELETE",t))(jie||{}),Gie=eo(ki({},tD),{cookie:nU,body:Eie,text:Mie,json:R0,xml:Die}),Pze=class extends Yw{constructor(t,e){super(t.url,eo(ki({},t),{body:t._body})),this.params=e,this.id=t.id}},lU=class extends sU{constructor(t,e,n){super({info:{header:`${t} ${e}`,path:e,method:t},ctx:Gie,resolver:n}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:t,path:e}=this.info;if(e instanceof RegExp||aU(e)===e)return;_ze(e).forEach((i,a)=>{}),dr.warn(`Found a redundant usage of query parameters in the request handler URL for "${t} ${e}". Please match against a path instead and access query parameters in the response resolver function using "req.url.searchParams".`)}parse(t,e){return oU(t.url,this.info.path,e==null?void 0:e.baseUrl)}getPublicRequest(t,e){return new Pze(t,e.params||{})}predicate(t,e){return(this.info.method instanceof RegExp?this.info.method.test(t.method):iU(this.info.method,t.method))&&e.matches}log(t,e){const n=Jw(t),r=Bie(t),i=Uie(e),a=Fie(e.status);console.groupCollapsed(dr.formatMessage("%s %s %s (%c%s%c)"),$ie(),t.method,n,`color:${a}`,`${e.status} ${e.statusText}`,"color:inherit"),console.log("Request",r),console.log("Handler:",this),console.log("Response",i),console.groupEnd()}},QE=Sd,Rze=(t,e)=>n=>{Oze(t);const r=$f(n.body)||{},i=P0(r,{[t]:e});return R0(i)(n)};function Oze(t){(0,QE.invariant)(t.trim()!=="",dr.formatMessage("Failed to set a custom field on a GraphQL response: field name cannot be empty.")),(0,QE.invariant)(t!=="data",dr.formatMessage('Failed to set a custom "%s" field on a mocked GraphQL response: forbidden field name. Did you mean to call "ctx.data()" instead?',t)),(0,QE.invariant)(t!=="errors",dr.formatMessage('Failed to set a custom "%s" field on a mocked GraphQL response: forbidden field name. Did you mean to call "ctx.errors()" instead?',t)),(0,QE.invariant)(t!=="extensions",dr.formatMessage('Failed to set a custom "%s" field on a mocked GraphQL response: forbidden field name. Did you mean to call "ctx.extensions()" instead?',t))}function Wie(t,e){try{return t()}catch(n){e==null||e(n)}}var qie=eo(ki({},tD),{data:Sie,extensions:Cie,errors:Aie,cookie:nU,field:Rze});function Nze(t){return t==null?!1:typeof t=="object"&&"kind"in t&&"definitions"in t}var Lze=class extends Yw{constructor(t,e){super(t.url,eo(ki({},t),{body:t._body})),this.variables=e}},nD=class extends sU{constructor(t,e,n,r){let i=e;if(Nze(e)){const o=Lie(e);if(o.operationType!==t)throw new Error(`Failed to create a GraphQL handler: provided a DocumentNode with a mismatched operation type (expected "${t}", but got "${o.operationType}").`);if(!o.operationName)throw new Error("Failed to create a GraphQL handler: provided a DocumentNode with no operation name.");i=o.operationName}const a=t==="all"?`${t} (origin: ${n.toString()})`:`${t} ${i} (origin: ${n.toString()})`;super({info:{header:a,operationType:t,operationName:i},ctx:qie,resolver:r}),this.endpoint=n}parse(t){return Wie(()=>kie(t),e=>console.error(e.message))}getPublicRequest(t,e){return new Lze(t,(e==null?void 0:e.variables)||{})}predicate(t,e){if(!e)return!1;if(!e.operationName&&this.info.operationType!=="all"){const a=Jw(t);return dr.warn(`Failed to intercept a GraphQL request at "${t.method} ${a}": anonymous GraphQL operations are not supported. Consider naming this operation or using "graphql.operation" request handler to intercept GraphQL requests regardless of their operation name/type. Read more: https://mswjs.io/docs/api/graphql/operation `),!1}const n=oU(t.url,this.endpoint),r=this.info.operationType==="all"||e.operationType===this.info.operationType,i=this.info.operationName instanceof RegExp?this.info.operationName.test(e.operationName||""):e.operationName===this.info.operationName;return n.matches&&r&&i}log(t,e,n){const r=Bie(t),i=Uie(e),a=Fie(e.status),o=n!=null&&n.operationName?`${n==null?void 0:n.operationType} ${n==null?void 0:n.operationName}`:`anonymous ${n==null?void 0:n.operationType}`;console.groupCollapsed(dr.formatMessage("%s %s (%c%s%c)"),$ie(),`${o}`,`color:${a}`,`${e.status} ${e.statusText}`,"color:inherit"),console.log("Request:",r),console.log("Handler:",this),console.log("Response:",i),console.groupEnd()}},kze=3,Fze=4,Yie=.5;function $ze(t){return t.reduce((e,n)=>(n instanceof lU&&e.rest.push(n),n instanceof nD&&e.graphql.push(n),e),{rest:[],graphql:[]})}function Bze(){return(t,e)=>{const{path:n,method:r}=e.info;if(n instanceof RegExp||r instanceof RegExp)return 1/0;const a=iU(t.method,r)?Yie:0,o=Jw(t);return(0,Nie.default)(o,n)-a}}function Uze(t){return(e,n)=>{if(typeof t.operationName>"u")return 1/0;const{operationType:r,operationName:i}=n.info;if(typeof i!="string")return 1/0;const o=t.operationType===r?Yie:0;return(0,Nie.default)(t.operationName,i)-o}}function Hze(t,e,n){return e.reduce((i,a)=>{const o=n(t,a);return i.concat([[o,a]])},[]).sort(([i],[a])=>i-a).filter(([i])=>i<=kze).slice(0,Fze).map(([,i])=>i)}function Vze(t){return t.length>1?`Did you mean to request one of the following resources instead? ${t.map(e=>` ${e.info.header}`).join(` `)}`:`Did you mean to request "${t[0].info.header}" instead?`}function zze(t,e,n="warn"){const r=Wie(()=>kie(t));function i(){const s=$ze(e),l=r?s.graphql:s.rest,c=Hze(t,l,r?Uze(r):Bze());return c.length>0?Vze(c):""}function a(){const s=Jw(t),l=r?`${r.operationType} ${r.operationName} (${t.method} ${s})`:`${t.method} ${s}`,c=i();return["captured a request without a matching request handler:",` ${l}`,c,`If you still wish to intercept this unhandled request, please create a request handler for it. Read more: https://mswjs.io/docs/getting-started/mocks`].filter(Boolean).join(` `)}function o(s){const l=a();switch(s){case"error":throw dr.error("Error: %s",l),new Error(dr.formatMessage('Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'));case"warn":{dr.warn("Warning: %s",l);break}case"bypass":break;default:throw new Error(dr.formatMessage('Failed to react to an unhandled request: unknown strategy "%s". Please provide one of the supported strategies ("bypass", "warn", "error") or a custom callback function as the value of the "onUnhandledRequest" option.',s))}}if(typeof n=="function"){n(t,{warning:o.bind(null,"warn"),error:o.bind(null,"error")});return}o(n)}var O6=dB;function jze(t,e){O6.store.add(eo(ki({},t),{url:t.url.toString()}),e),O6.store.persist()}async function cU(t,e,n,r,i){var a,o,s,l,c,u;if(r.emit("request:start",t),t.headers.get("x-msw-bypass")==="true"){r.emit("request:end",t),(a=i==null?void 0:i.onPassthroughResponse)==null||a.call(i,t);return}const[d,f]=await(0,uze.until)(()=>dze(t,e,i==null?void 0:i.resolutionContext));if(d)throw r.emit("unhandledException",d,t),d;const{handler:p,response:h}=f;if(!p){zze(t,e,n.onUnhandledRequest),r.emit("request:unhandled",t),r.emit("request:end",t),(o=i==null?void 0:i.onPassthroughResponse)==null||o.call(i,t);return}if(!h){dr.warn(`Expected response resolver to return a mocked response Object, but got %s. The original response is going to be used instead. %s %s`,h,p.info.header,p.info.callFrame),r.emit("request:end",t),(s=i==null?void 0:i.onPassthroughResponse)==null||s.call(i,t);return}if(h.passthrough){r.emit("request:end",t),(l=i==null?void 0:i.onPassthroughResponse)==null||l.call(i,t);return}jze(t,h),r.emit("request:match",t);const v=f,b=((c=i==null?void 0:i.transformResponse)==null?void 0:c.call(i,h))||h;return(u=i==null?void 0:i.onMockedResponse)==null||u.call(i,b,v),r.emit("request:end",t),b}var N6=Nl;function Jie(t){return{status:t.status,statusText:t.statusText,headers:(0,N6.flattenHeadersObject)((0,N6.headersToObject)(t.headers)),body:t.body}}var Gze=(t,e)=>async(n,r)=>{var i;const a=new KVe(n.ports[0]),o=cze(r.payload);try{await cU(o,t.requestHandlers,e,t.emitter,{transformResponse:Wze,onPassthroughResponse(){a.postMessage("NOT_FOUND")},async onMockedResponse(s,{handler:l,publicRequest:c,parsedRequest:u}){if(s.body instanceof ReadableStream)throw new Error(dr.formatMessage('Failed to construct a mocked response with a "ReadableStream" body: mocked streams are not supported. Follow https://github.com/mswjs/msw/issues/1336 for more details.'));const f=await new Response(s.body,s).arrayBuffer(),p=s.body==null?null:f;a.postMessage("MOCK_RESPONSE",eo(ki({},s),{body:p}),[f]),e.quiet||t.emitter.once("response:mocked",h=>{l.log(c,Jie(h),u)})}})}catch(s){if(s instanceof Rie){a.postMessage("NETWORK_ERROR",{name:s.name,message:s.message});return}s instanceof Error&&(dr.error(`Uncaught exception in the request handler for "%s %s": %s This exception has been gracefully handled as a 500 response, however, it's strongly recommended to resolve this error, as it indicates a mistake in your code. If you wish to mock an error response, please see this guide: https://mswjs.io/docs/recipes/mocking-error-responses`,o.method,o.url,(i=s.stack)!=null?i:s),a.postMessage("MOCK_RESPONSE",{status:500,statusText:"Request Handler Error",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:s.name,message:s.message,stack:s.stack})}))}};function Wze(t){return{status:t.status,statusText:t.statusText,headers:t.headers.all(),body:t.body,delay:t.delay}}async function qze(t,e){t.workerChannel.send("INTEGRITY_CHECK_REQUEST");const{payload:n}=await t.events.once("INTEGRITY_CHECK_RESPONSE");if(n!=="3d6b9f06410d179a7f7404d4bf4c3c70")throw new Error(`Currently active Service Worker (${n}) is behind the latest published one (3d6b9f06410d179a7f7404d4bf4c3c70).`);return e}var L6=tm;function Yze(t){const e=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.send=function(...r){(0,L6.until)(()=>t).then(()=>{window.XMLHttpRequest.prototype.send=e,this.send(...r)})};const n=window.fetch;window.fetch=async(...r)=>(await(0,L6.until)(()=>t),window.fetch=n,window.fetch(...r))}function Jze(t){return(e,n)=>{var r;const{payload:i}=n;if((r=i.type)!=null&&r.includes("opaque"))return;const a=new Response(i.body||null,i);a.headers.get("x-powered-by")==="msw"?t.emitter.emit("response:mocked",a,i.requestId):t.emitter.emit("response:bypass",a,i.requestId)}}function Qze(t,e){!(e!=null&&e.quiet)&&!location.href.startsWith(t.scope)&&dr.warn(`Cannot intercept requests on this page because it's outside of the worker's scope ("${t.scope}"). If you wish to mock API requests on this page, you must resolve this scope issue. - (Recommended) Register the worker at the root level ("/") of your application. - Set the "Service-Worker-Allowed" response header to allow out-of-scope workers.`)}var Kze=t=>function(n,r){const a=(async()=>{t.events.removeAllListeners(),t.workerChannel.on("REQUEST",Gze(t,n)),t.workerChannel.on("RESPONSE",Jze(t));const o=await JVe(n.serviceWorker.url,n.serviceWorker.options,n.findWorker),[s,l]=o;if(!s){const u=r!=null&&r.findWorker?dr.formatMessage(`Failed to locate the Service Worker registration using a custom "findWorker" predicate. Please ensure that the custom predicate properly locates the Service Worker registration at "%s". More details: https://mswjs.io/docs/api/setup-worker/start#findworker `,n.serviceWorker.url):dr.formatMessage(`Failed to locate the Service Worker registration. This most likely means that the worker script URL "%s" cannot resolve against the actual public hostname (%s). This may happen if your application runs behind a proxy, or has a dynamic hostname. Please consider using a custom "serviceWorker.url" option to point to the actual worker script location, or a custom "findWorker" option to resolve the Service Worker registration manually. More details: https://mswjs.io/docs/api/setup-worker/start`,n.serviceWorker.url,location.host);throw new Error(u)}t.worker=s,t.registration=l,t.events.addListener(window,"beforeunload",()=>{s.state!=="redundant"&&t.workerChannel.send("CLIENT_CLOSED"),window.clearInterval(t.keepAliveInterval)});const[c]=await(0,VVe.until)(()=>qze(t,s));return c&&dr.error(`Detected outdated Service Worker: ${c.message} The mocking is still enabled, but it's highly recommended that you update your Service Worker by running: $ npx msw init This is necessary to ensure that the Service Worker is in sync with the library to guarantee its stability. If this message still persists after updating, please report an issue: https://github.com/open-draft/msw/issues `),t.keepAliveInterval=window.setInterval(()=>t.workerChannel.send("KEEPALIVE_REQUEST"),5e3),Qze(l,t.startOptions),l})().then(async o=>{const s=o.installing||o.waiting;return s&&await new Promise(l=>{s.addEventListener("statechange",()=>{if(s.state==="activated")return l()})}),await QVe(t,n).catch(l=>{throw new Error(`Failed to enable mocking: ${l==null?void 0:l.message}`)}),o});return n.waitUntilReady&&Yze(a),a};function Qie(t={}){t.quiet||console.log(`%c${dr.formatMessage("Mocking disabled.")}`,"color:orangered;font-weight:bold;")}var Xze=t=>function(){var n;if(!t.isMockingEnabled){dr.warn('Found a redundant "worker.stop()" call. Note that stopping the worker while mocking already stopped has no effect. Consider removing this "worker.stop()" call.');return}t.workerChannel.send("MOCK_DEACTIVATE"),t.isMockingEnabled=!1,window.clearInterval(t.keepAliveInterval),Qie({quiet:(n=t.startOptions)==null?void 0:n.quiet})},Zze={serviceWorker:{url:"/mockServiceWorker.js",options:null},quiet:!1,waitUntilReady:!0,onUnhandledRequest:"warn",findWorker(t,e){return t===e}},eje=Nw,tje=tHe(),nje=dHe(),rje=Nw,jO=()=>{throw new Error("Not implemented")};function ije(t){return eo(ki({},t),{ok:t.status>=200&&t.status<300,url:"",type:"default",status:t.status,statusText:t.statusText,headers:t.headers,body:new ReadableStream,redirected:t.headers.get("Location")!=null,async text(){return t.body||""},async json(){return JSON.parse(t.body||"")},async arrayBuffer(){return(0,rje.encodeBuffer)(t.body||"")},bodyUsed:!1,formData:jO,blob:jO,clone:jO})}function aje(t,e){const n=new eje.BatchInterceptor({name:"fallback",interceptors:[new tje.FetchInterceptor,new nje.XMLHttpRequestInterceptor]});return n.on("request",async r=>{const i=new Yw(r.url,eo(ki({},r),{body:await r.arrayBuffer()})),a=await cU(i,t.requestHandlers,e,t.emitter,{transformResponse(o){return{status:o.status,statusText:o.statusText,headers:o.headers.all(),body:o.body,delay:o.delay}},onMockedResponse(o,{handler:s,publicRequest:l,parsedRequest:c}){e.quiet||t.emitter.once("response:mocked",u=>{s.log(l,Jie(u),c)})}});a&&r.respondWith(a)}),n.on("response",(r,i)=>{if(!r.id)return;const a=ije(i);i.headers.get("x-powered-by")==="msw"?t.emitter.emit("response:mocked",a,r.id):t.emitter.emit("response:bypass",a,r.id)}),n.apply(),n}function oje(t){return async function(n){t.fallbackInterceptor=aje(t,n),Pie({message:"Mocking enabled (fallback mode).",quiet:n.quiet})}}function sje(t){return function(){var n,r;(n=t.fallbackInterceptor)==null||n.dispose(),Qie({quiet:(r=t.startOptions)==null?void 0:r.quiet})}}var lje=Sd,k6=pHe();function cje(t,e){const n=t.emit;n._isPiped||(t.emit=function(r,...i){return e.emit(r,...i),n.call(this,r,...i)},t.emit._isPiped=!0)}function F6(t){const e=[...t];return Object.freeze(e),e}var Kie=class{constructor(...t){this.validateHandlers(...t),this.initialHandlers=F6(t),this.currentHandlers=[...t],this.emitter=new k6.Emitter,this.publicEmitter=new k6.Emitter,cje(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents()}validateHandlers(...t){for(const e of t)(0,lje.invariant)(!Array.isArray(e),dr.formatMessage('Failed to construct "%s" given an Array of request handlers. Make sure you spread the request handlers when calling the respective setup function.'),this.constructor.name)}dispose(){this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()}use(...t){this.currentHandlers.unshift(...t)}restoreHandlers(){this.currentHandlers.forEach(t=>{t.markAsSkipped(!1)})}resetHandlers(...t){this.currentHandlers=t.length>0?[...t]:[...this.initialHandlers]}listHandlers(){return F6(this.currentHandlers)}createLifeCycleEvents(){return{on:(...t)=>this.publicEmitter.on(...t),removeListener:(...t)=>this.publicEmitter.removeListener(...t),removeAllListeners:(...t)=>this.publicEmitter.removeAllListeners(...t)}}},uje=class extends Kie{constructor(...t){super(...t),this.startHandler=null,this.stopHandler=null,(0,UVe.invariant)(!(0,HVe.isNodeProcess)(),dr.formatMessage("Failed to execute `setupWorker` in a non-browser environment. Consider using `setupServer` for Node.js environment instead.")),this.listeners=[],this.context=this.createWorkerContext()}createWorkerContext(){const t={isMockingEnabled:!1,startOptions:null,worker:null,registration:null,requestHandlers:this.currentHandlers,emitter:this.emitter,workerChannel:{on:(e,n)=>{this.context.events.addListener(navigator.serviceWorker,"message",r=>{if(r.source!==this.context.worker)return;const i=r.data;i&&i.type===e&&n(r,i)})},send:e=>{var n;(n=this.context.worker)==null||n.postMessage(e)}},events:{addListener:(e,n,r)=>(e.addEventListener(n,r),this.listeners.push({eventType:n,target:e,callback:r}),()=>{e.removeEventListener(n,r)}),removeAllListeners:()=>{for(const{target:e,eventType:n,callback:r}of this.listeners)e.removeEventListener(n,r);this.listeners=[]},once:e=>{const n=[];return new Promise((r,i)=>{const a=o=>{try{const s=o.data;s.type===e&&r(s)}catch(s){i(s)}};n.push(this.context.events.addListener(navigator.serviceWorker,"message",a),this.context.events.addListener(navigator.serviceWorker,"messageerror",i))}).finally(()=>{n.forEach(r=>r())})}},useFallbackMode:!("serviceWorker"in navigator)||location.protocol==="file:"};return Object.defineProperties(t,{requestHandlers:{get:()=>this.currentHandlers}}),this.startHandler=t.useFallbackMode?oje(t):Kze(t),this.stopHandler=t.useFallbackMode?sje(t):Xze(t),t}async start(t={}){return this.context.startOptions=P0(Zze,t),await this.startHandler(this.context.startOptions,t)}printHandlers(){this.listHandlers().forEach(e=>{const{header:n,callFrame:r}=e.info,i=e.info.hasOwnProperty("operationType")?"[graphql]":"[rest]";console.groupCollapsed(`${i} ${n}`),r&&console.log(`Declaration: ${r}`),console.log("Handler:",e),console.groupEnd()})}stop(){super.dispose(),this.context.events.removeAllListeners(),this.context.emitter.removeAllListeners(),this.stopHandler()}};function dje(...t){return new uje(...t)}function zd(t){return(e,n)=>new lU(t,e,n)}var fje={all:zd(/.+/),head:zd("HEAD"),get:zd("GET"),post:zd("POST"),put:zd("PUT"),delete:zd("DELETE"),patch:zd("PATCH"),options:zd("OPTIONS")};function eA(t,e){return(n,r)=>new nD(t,n,e,r)}function Xie(t){return e=>new nD("all",new RegExp(".*"),t,e)}var pje={operation:Xie("*"),query:eA("query","*"),mutation:eA("mutation","*")};function hje(t){return{operation:Xie(t),query:eA("query",t),mutation:eA("mutation",t)}}var mje=eo(ki({},pje),{link:hje});const gje=0,vje=1,yje=2,bje=3,_je=4,wje=98,tA=99,xje=96,Eje=async(t,e,n)=>{const r=await t.json(),{userId:i,currentPassword:a,newPassword:o}=(r==null?void 0:r.userInfo)||{userId:"",currentPassword:"",newPassword:""};let s=tA;i?s=xje:s=tA,console.log(i,a,o);const l={result:{code:s}};return e(n.status(200),n.json(l))},Sje={handler:Eje};let KE;const Cje=new Uint8Array(16);function Tje(){if(!KE&&(KE=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!KE))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return KE(Cje)}const Ca=[];for(let t=0;t<256;++t)Ca.push((t+256).toString(16).slice(1));function Aje(t,e=0){return(Ca[t[e+0]]+Ca[t[e+1]]+Ca[t[e+2]]+Ca[t[e+3]]+"-"+Ca[t[e+4]]+Ca[t[e+5]]+"-"+Ca[t[e+6]]+Ca[t[e+7]]+"-"+Ca[t[e+8]]+Ca[t[e+9]]+"-"+Ca[t[e+10]]+Ca[t[e+11]]+Ca[t[e+12]]+Ca[t[e+13]]+Ca[t[e+14]]+Ca[t[e+15]]).toLowerCase()}const Ije=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$6={randomUUID:Ije};function nA(t,e,n){if($6.randomUUID&&!e&&!t)return $6.randomUUID();t=t||{};const r=t.random||(t.rng||Tje)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let i=0;i<16;++i)e[n+i]=r[i];return e}return Aje(r)}const Mje=async(t,e,n)=>{const r=t.cookies.TCCA_REFRESH_TOKEN,i={result:{code:r?0:1}};r&&(i.userInfo={loginID:"XXXXXXXX"});const a=[];return r&&a.push(n.cookie("TCCA_ACCESS_TOKEN",nA(),{httpOnly:!0,expires:new Date(Date.now()+1800*1e3)}),n.cookie("TCCA_REFRESH_TOKEN",nA(),{httpOnly:!0,expires:new Date(Date.now()+86400*1e3)})),a.push(n.status(200),n.json(i)),e(...a)},Dje={handler:Mje},Pje=async(t,e,n)=>new Promise(r=>{setTimeout(async()=>{if(t.cookies.TCCA_ACCESS_TOKEN){const a=await t.json(),o={biddingHistoryList:new Array(10).fill("").map(s=>({userId:`${a.biddingInfo.controlNumber}`,correctCount:a.biddingInfo.controlNumber,offeredPrice:2e3,offeredResult:0,offeredResultName:"結果コード内容",receptDatetime:new Date().getTime(),winBidPrice:2e3})),result:{code:0}};return r(e(n.status(200),n.json(o)))}else return r(e(n.status(200),n.json({result:{code:1}})))},500)}),Rje={handler:Pje},Oje={userInfo:["admin","auth","userInfo"]},XE="-!\"#$%&'()=^~\\\\|,@`\\[{;+:*\\]},<.>/?_",p1=new RegExp(`^((?=.*[a-z])(?=.*[A-Z])|(?=.*[a-z])(?=.*[0-9])|(?=.*[a-z])(?=.*[${XE}])|(?=.*[A-Z])(?=.*[0-9])|(?=.*[A-Z])(?=.*[${XE}])|(?=.*[0-9])(?=.*[${XE}]))([a-zA-Z0-9${XE}]){8,20}$`),Zie="TTC-Alpha",eu={110:"TAA 関東",115:"TAA 北海道",120:"TAA 近畿",130:"TAA 中部",135:"TAA 四国",145:"TAA 兵庫",150:"TAA 東北",155:"TAA 広島",160:"TAA 九州",170:"TAA 横浜",180:"TAA 南九州",1:"CAA 中部",2:"CAA 東京",3:"CAA 岐阜",4:"CAA 東北"},kh={0:"該当なし",1:"トヨタ",2:"レクサス",3:"日産",4:"ホンダ",5:"マツダ",6:"三菱",7:"三菱ふそう",8:"スバル",9:"ダイハツ",10:"スズキ",11:"いすゞ",12:"日野",13:"ミツオカ",14:"日産UD",19:"その他 国産車",20:"アウディ",21:"BMW",22:"ベンツ",23:"VW",24:"オペル",25:"ポルシェ",26:"スマート",27:"ジャガー",28:"デイムラー",29:"ローバー",30:"MG",31:"ロールスロイス",32:"MINI",33:"ベントレー",34:"ロータス",35:"ランドローバー",36:"フェラーリ",37:"マセラティ",38:"アルファロメオ",39:"フィアット",40:"ランボルギーニ",41:"ランチア",42:"アバルト",43:"シトロエン",44:"ルノー",45:"プジョー",46:"ボルボ",47:"サーブ",48:"キャデラック",49:"ポンテアック",50:"シボレー",51:"リンカーン",52:"ジープ",53:"フォード",54:"クライスラー",55:"米国レクサス",56:"GMC",57:"ダッジ",58:"ヒュンダイ",59:"サンヨン",99:"その他 輸入車"},B6={createdDatetime:"作成日時",updatedDatetime:"更新日時",version:"バージョン",outputAuctionSheetVersion:"出力済状態票バージョン",currentAcutionSheetVersion:"現在状態票バージョン",currentAuctionSheetVersion:"現在状態票バージョン",venueCode:"提携会場コード",aaCount:"AA回数",exhibitCode:"出品番号",lane:"レーン",block:"ブロック番号",auctionTime:"せり予定時刻",auctionOrder:"せり順番号",makerCode:"メーカーコード",carName:"車名",doorShape:"ドア形状",grade:"グレード",model:"型式",displacement:"排気量",fuel:"燃料区分",hybrid:"ハイブリッド区分",drive:"駆動区分",repair:"修復歴",yearAd:"年式(西暦)",yearEraName:"年式(元号)",yearJapanese:"年式(和暦)",registMonth:"登録月",totalScore:"評価点",interiorScore:"内装評価点",exteriorScore:"外装評価点",inspectMonth:"車検",inspectionMonth:"車検",licenseLandAffairs:"登録番号 陸事",licenseNumber:"登録番号 ナンバー",mileage:"走行距離",driveType:"走行区分",colorName:"色名称",colorCode:"カラーNo.",recoloring:"色替区分",shiftName:"シフト名",shiftType:"シフト区分",airConditioner:"エアコン",capacity:"定員",loadCapacity:"積載量",equip1Ps:"装備1(PS)",equip2Pw:"装備2(PW)",equip3Air:"装備3(エアバック)",equip4Aba:"装備4(ABA)",equip5Aw:"装備5(AW)",equip6Sr:"装備6(SR)",equip7Navi:"装備7(ナビ)",equip8Tv:"装備8(TV)",equip9Leather:"装備9(革)",equip10Warranty:"装備10(保証書)",equip11Manual:"装備11(取扱説明書)",equipInfo:"装備文字列",importedCarType:"輸入車区分",handleType:"ハンドル区分",chassis:"車台番号",usedAs:"車歴",location:"車輛所在地",dataCheckType:"データチェック区分",correctCount:"訂正回数",correction:"訂正文",shopCode:"出品店番号",startPrice:"スタート価格",askingPrice:"希望価格",agencyPrice:"調整/代行価格",recycleFee:"リサイクル預託金",resultType:"結果区分",winBidPrice:"落札価格",winBidPriceTax:"落札価格(消費税)",selfTaxType:"自税区分",carTax:"自動車税額",listingFee:"出品料",listingFeeTax:"出品料 消費税",closingFee:"成約料",closingFeeTax:"成約料 消費税",winBidFee:"落札料",winBidFeeTax:"落札料 消費税",winBidShopCode:"落札店番号",meeting:"商談受付可否",negotiation:"価格交渉可否",lowestMeetingPrice:"最低商談受付価格",postAveragePrice:"相場掲載可否",length:"諸元 長さ",width:"諸元 幅",height:"諸元 高さ",netType:"展開図区分",onepriceType:"ワンプラ結果区分",provideFlag:"データ提供フラグ",activeFlag:"有効フラグ",deleteType:"データ削除区分",postCode:"掲載番号",vehicleVersion:"車両バージョン",sourceCode:"掲載元コード",gasSignal:"排ガス記号",inspectCode:"検査実施コード",inspectDate:"検査実施日",inspectionYear:"車検:年(西暦)",licenseClass:"登録番号:分類番号",licenseBuisiness:"登録番号:事業用区分",licenseSpecify:"登録番号:一覧指定番号",capacity1:"定員1",capacity2:"定員2",loadCapacity1:"積載量1",loadCapacity2:"積載量2",welfareType:"福祉車両区分",salesTaxType:"消費税区分",address1:"車輛所在地-住所1",address2:"車輛所在地-住所2",documentDeadline:"書類期限日",price:"掲載価格",lowestPrice:"最低受付価格",salesMethod:"販売方法",status:"掲載ステータス",startDate:"掲載開始日",endDate:"掲載終了日",sheetType:"掲載票区分",salesPoint1:"セールスポイント1",salesPoint2:"セールスポイント2",salesPoint3:"セールスポイント3",salesPoint4:"セールスポイント4",salesPoint5:"セールスポイント5",salesPoint6:"セールスポイント6",attention1:"注意事項1",attention2:"注意事項2",attention3:"注意事項3",remarks1:"特記事項1",remarks2:"特記事項2",remarks3:"特記事項3",remarks4:"特記事項4",remarks5:"特記事項5",remarks6:"特記事項6",remarks7:"特記事項7",remarks8:"特記事項8",remarks9:"特記事項9",remarks10:"特記事項10",remarks11:"特記事項11",remarks12:"特記事項12",remarks13:"特記事項13",remarks14:"特記事項14",remarks15:"特記事項15",remarks16:"特記事項16",remarks17:"特記事項17",remarks18:"特記事項18",remarks19:"特記事項19",remarks20:"特記事項20",remarks21:"特記事項21",remarks22:"特記事項22",remarks23:"特記事項23",symbols:"展開図記号1~68",storingType:"会場入庫区分",yardCode:"入庫ヤードコード",currentVersion:"出品情報バージョン(現在)",outputVersion:"出品情報バージョン(出力済)",sheetLatestUpdate:"状態票画像 最終更新日時",door:"ドア",shapeName:"車両形状名",frameNumber:"フレームNo.",scoreCode:"評価点コード",modifyDeadline:"名変期限日",mileageReal:"実走行距離",mileageUnit:"走行単位",exteriorColor:"外装色コード",interiorColor:"内装色",vehicleStatus:"車両ステータス(T-value)",taxType:"車両課税区分",planCode:"企画コード",startDatetime:"掲載開始日時",endDatetime:"掲載終了日時",doInspection:"検査実施",postMember:"掲載店-会員名",zipCode:"車両所在地-郵便番号",prefecturesCode:"車両所在地-都道府県コード",prefectures:"車両所在地-都道府県",winBidDatetime:"落札日時秒",outputConditionVersion:"出力済状態票バージョン",currentConditionVersion:"現在状態票バージョン",modelYear:"モデル年式",landAffairs:"陸事名",outputAuctionSheetDate:"状態表バージョン(出力済)",currentAuctionSheetDate:"状態表バージョン(現在)",inspection:"車検",equip4Abs:"装備4(ABS)",carTaxType:"自税区分",WinBidTax:"落札価格消費税",WinBidMember:"落札店会員番号"},Nje=async(t,e,n)=>new Promise(r=>{setTimeout(async()=>{var a,o;if(t.cookies.TCCA_ACCESS_TOKEN){const s=await t.json();if(s&&typeof s=="object"&&typeof s.searchOption=="object"&&s.searchOption&&[1,2,3,4].some(c=>c===s.searchOption.aaType)&&/^\d{4}-\d{2}-\d{2}$/.test(s.searchOption.startDate||"")&&/^\d{4}-\d{2}-\d{2}$/.test(s.searchOption.endDate||"")&&typeof s.searchOption=="object"&&s.listInfo&&typeof s.listInfo.offset=="number"&&typeof s.listInfo.limit=="number"){if(((a=s.searchOption)==null?void 0:a.aaType)===4)return r(e(n.status(500)));if(((o=s.searchOption)==null?void 0:o.aaType)===2&&s.searchOption.controlNumber===7)return r(e(n.status(200),n.json({result:{code:99}})));const c=s.searchOption.aaType===3?s.searchOption.controlNumber===7?0:333:99,u=Math.min(c-s.listInfo.offset*s.listInfo.limit,s.listInfo.limit),d={sellInfoList:new Array(u).fill("").map((f,p)=>{const h=s.searchOption.aaType,v=s.searchOption.aaType===1?p+s.listInfo.offset*s.listInfo.limit:null,b=s.searchOption.aaType?Number(Object.keys(eu)[p%(Object.keys(eu).length-1)]):null,g=String(p+s.listInfo.offset*s.listInfo.limit);return{id:p+s.listInfo.offset*s.listInfo.limit,aaType:h,aaCount:v,aaVenue:b,eventDate:new Date().getTime(),controlNumber:g,url:`${Wte}?aaType=${h}&number=${g}${h===1?`&aaCount=${v}&aaVenue=${b}`:""}`,userId:String(p),makerCode:Number(Object.keys(kh)[p%(Object.keys(kh).length-1)]),carName:`車${p+s.listInfo.offset*s.listInfo.limit}ああああああああああああああああああああああああああああああああああああああ`,model:`型式${p+s.listInfo.offset*s.listInfo.limit}`,grade:`グレード${p+s.listInfo.offset*s.listInfo.limit}ああああああああああああああああああああああああああああああああああああああああああ`}}),listInfo:{limit:s.listInfo.limit,offset:s.listInfo.offset,count:u,totalCount:c},result:{code:0}};r(e(n.status(200),n.json(d)))}else r(e(n.status(200),n.json({result:{code:1}})))}else r(e(n.status(401)))},500)}),Lje={handler:Nje},kje={0:"ガソリン",1:"ディーゼル",2:"ハイブリッド",3:"LPG",4:"CNG",5:"電気",6:"水素",9:"その他"},Fje=async(t,e,n)=>new Promise(r=>{setTimeout(async()=>{if(t.cookies.TCCA_ACCESS_TOKEN){const a=new Date,o={sellInfoHistoryList:new Array(5).fill("").map((s,l)=>({carTax:l===1?2e3:void 0,length:250+l%2*10,width:150+(l+1)%2*10,height:100,fuel:Object.values(kje)[Math.floor(l/2)],carName:"車あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああい",updatedDateTime:a.getTime()-864e5*(l+1),winBidFee:0,winBidFeeTax:0,winBidPrice:0,winBidPriceTax:0,drive:0})),result:{code:0},isCurrentActive:!0};return r(e(n.status(200),n.json(o)))}else return r(e(n.status(200),n.json({result:{code:1},isCurrentActive:!0})))},500)}),$je={handler:Fje},Bje=async(t,e,n)=>new Promise(r=>{setTimeout(async()=>{if(t.cookies.TCCA_ACCESS_TOKEN){const a=await t.json();if(a&&typeof a=="object"&&[0,1,2,3,4].some(s=>s===a.aaType)&&a.listInfo&&typeof a.listInfo=="object"&&typeof a.listInfo.offset=="number"&&typeof a.listInfo.limit=="number"){a.aaType===2&&r(e(n.status(500)));const s=Math.min(222-a.listInfo.offset*a.listInfo.limit,a.listInfo.limit),l={untranslatedCarInfoList:new Array(s).fill("").map((c,u)=>{let d=a.aaType;a.aaType===0&&(d=u%4+1);let f="";u+a.listInfo.offset*a.listInfo.limit%4===0&&(f=`Car${u+a.listInfo.offset*a.listInfo.limit}`);let p="";u+a.listInfo.offset*a.listInfo.limit%4===1&&(p=`Grade${u+a.listInfo.offset*a.listInfo.limit}`);const h=parseInt(Object.keys(eu)[u%15]),v=u+a.listInfo.offset*a.listInfo.limit;return{id:u,aaType:d,eventDate:new Date().toUTCString(),startDate:new Date().toUTCString(),endDate:new Date().toUTCString(),aaVenue:d<=2?parseInt(Object.keys(eu)[u%15]):void 0,venueName:d<=2?Object.values(eu)[u%15]:void 0,aaCount:d<=2?u:null,controlNumber:v,makerCode:u+40,url:`${rB}?aaType=${d}&number=${v}${d===1?`&aaCount=${u}&aaVenue=${h}`:""}`,carName:`車${u/4+a.listInfo.offset*a.listInfo.limit}あああああああああああああああああああああああああああああああああああああああああああああああ`,carNameEn:f,grade:`グレード${u/4+a.listInfo.offset*a.listInfo.limit}あああああああああああああああああああああああああああああああああああああああああああああああ`,gradeEn:p,carNameRegistFlag:null,correctCurrentVersionJp:null,correctCurrentVersionEn:null}}),listInfo:{offset:a.listInfo.offset,count:s,limit:a.listInfo.limit,totalCount:222},result:{code:0}};r(e(n.status(200),n.json(l)))}else r(e(n.status(200),n.json({result:{code:1}})))}else r(e(n.status(200),n.json({result:{code:10}})))},500)}),Uje={handler:Bje},Hje="/alpha",fp="/api/auth",eae=fp+"/userLogin",tae=fp+"/jadminLogin",nae=fp+"/changePasswordUser",rae=fp+"/changePasswordJAdmin",iae=fp+"/logout",aae=fp+"/logout",Vje=fp+"/regenerateToken",zje=fp+"/validateToken",Qw="/api/information",oae=Qw+"/listInfo",sae=Qw+"/listFaq",jje=Qw+"/saveFaq",lae=Qw+"/saveInfo",cae=Qw+"/attachment",uae="/api/vehicle/list",dae="/api/vehicle/info",fae="/ulocator/vehicleFilter",pae="/ulocator/offerInfo",hae="/ulocator/bid",mae="/ulocator/listAll",gae="/ulocator/list",uU="/api/deal",vae=uU+"/outNotification",Gje=uU+"/carryOut",yae=uU+"/listTrade",bae="/api/user/list",_ae="/api/master/venueList",Wje="/api/user/save",wae="/api/user/listUser",xae="/api/deal/listFee",Eae="/ulocator/feeFilter",qje="/api/deal/savePlanFee",Yje="/api/deal/saveUserFee",Sae="/api/deal/notification",Cae="/api/deal/saveNotification",Tae="/api/monitoring/listAchievements",Jje=0,U6={code:Jje},Qje=0,Kje={code:Qje},Xje=["/assets/car_sample/D00006.JPG","/assets/car_sample/E00006.JPG","/assets/car_sample/F00006.JPG","/assets/car_sample/G00006.JPG","/assets/car_sample/H00006.JPG","/assets/car_sample/I00006.JPG","/assets/car_sample/J00007.JPG","/assets/car_sample/L00007.JPG","/assets/car_sample/M00007.JPG","/assets/car_sample/N00007.JPG","/assets/car_sample/O00007.JPG","/assets/car_sample/P00007.JPG"],Zje={code:0},e8e={filePathList:Xje,result:Zje},t8e=[{userId:"jaraUser01",userName:"JARA企業01"},{userId:"jaraUser02",userName:"JARA企業02"},{userId:"jaraUser03",userName:"JARA企業03"},{userId:"jaraUser04",userName:"JARA企業04"},{userId:"A101",userName:"株式会社マテック"},{userId:"jaraUser09",userName:"株式会社イマイ自動車 "},{userId:"jaraUser10",userName:"有限会社サトウサービス"},{userId:"jaraUser11",userName:"東日本資源リサイクル株式会社"},{userId:"jaraUser12",userName:"株式会社大橋商店"},{userId:"jaraUser13",userName:"京葉自動車工業株式会社"},{userId:"jaraUser14",userName:"株式会社 エコアール"},{userId:"jaraUser15",userName:"沖縄パーツセンター"},{userId:"jaraUser16",userName:"会宝産業株式会社"},{userId:"jaraUser17",userName:"有限会社メタルオート北陸"},{userId:"jaraUser18",userName:"株式会社ハセ川自動車"},{userId:"jaraUser19",userName:"国際オートパーツ株式会社"},{userId:"jaraUser20",userName:"有限会社近松商会 "},{userId:"jaraUser21",userName:"株式会社カーグリーコマゼン"},{userId:"jaraUser22",userName:"株式会社テラダパーツ 半田営業所"},{userId:"jaraUser23",userName:"株式会社マーク・コーポレーション"},{userId:"jaraUser24",userName:"株式会社 福山セコ"},{userId:"jaraUser25",userName:"株式会社 荒谷商会"},{userId:"jaraUser26",userName:"株式会社ヤツヅカ"},{userId:"jaraUser27",userName:"岡山オートリサイクルセンター(有)宇野自工"},{userId:"jaraUser28",userName:"株式会社オートパーツ伊地知"},{userId:"jaraUser29",userName:"株式会社井上商店"},{userId:"jaraUser30",userName:"株式会社光栄"},{userId:"A1002",userName:"テスト企業1115-3"},{userId:"A3001",userName:"テスト企業1115-7"}],n8e={code:0},r8e={user:t8e,result:n8e},i8e=[{userId:"ABC110",userName:"株式会社光栄"},{userId:"ABC111",userName:"株式会社井上商店A"},{userId:"ABC112",userName:"文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社"},{userId:"ABC113",userName:"株式会社井上商店B"},{userId:"ABC114",userName:"株式オートパーツ伊地知"}],a8e=[{planCode:80010,planName:"会場買取E年式",limitEndTime:"aaa",startTime:"bbb",endTime:"ccc"},{planCode:80011,planName:"通常企画",limitEndTime:"aaa",startTime:"bbb",endTime:"ccc"},{planCode:80012,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",limitEndTime:"aaa",startTime:"bbb",endTime:"ccc"},{planCode:80013,planName:"プロマックス企画",limitEndTime:"aaa",startTime:"bbb",endTime:"ccc"},{planCode:80014,planName:"会場買取BBB年式",limitEndTime:"aaa",startTime:"bbb",endTime:"ccc"}],o8e=[2e3,3e3,4e3,5e3],s8e={code:0},l8e={user:i8e,plan:a8e,fee:o8e,result:s8e},c8e={pathJP:"/assets/inspect_sample/GNULC0201144443S1_006548460.jpg",pathEN:"/assets/inspect_sample/GNULC0201144443S1_006553740.jpg",correctionJP:"訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文訂正文",correctionEN:"Teisei Teisei Teisei Teisei Teisei Teisei Teisei Teisei "},u8e={code:0},d8e={fileInfo:c8e,result:u8e},f8e=111111,p8e=11111111,h8e="2023/10/27 18:59:59",m8e=1e3,g8e={code:0,resultCode:56},v8e={lotNumber:f8e,version:p8e,latestUpdate:h8e,price:m8e,result:g8e},y8e=[{categoryId:111,categoryOrder:1,categoryName:"落札",faqList:[{id:101,question:"直接落札って何ですか?",answer:"これを“直接落札”といいます。 "},{id:102,question:"代行落札って何ですか??",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:103,question:"当日キャンセルは、受付できますか??",answer:"二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字二五五文字"}]},{categoryId:222,categoryOrder:2,categoryName:"搬出・輸送",faqList:[{id:201,question:"落札車両の搬出はどうすればよいですか?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:202,question:"落札車両の輸送はどうすればよいですか?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:203,question:"長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `}]},{categoryId:333,categoryOrder:3,categoryName:"搬出・輸送2",faqList:[{id:201,question:"ああああああああああああああああ?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:202,question:"いいいいいいいいいいいいいいいい?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:203,question:"ううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううううう",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `}]},{categoryId:444,categoryOrder:4,categoryName:"搬出・輸送3",faqList:[{id:201,question:"ああああああああああああああああ落札車両の搬出はどうすればよいですか?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:202,question:"んんんんんんんんんんんんんんんんんんんn落札車両の輸送はどうすればよいですか?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:203,question:"おおおおおおおおおおおおおおおおおおおおおおおおおおおおお長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `}]},{categoryId:555,categoryOrder:5,categoryName:"搬出・輸送4",faqList:[{id:201,question:"( ,,`・ω・´)ンンン?( ,,`・ω・´)ンンン?( ,,`・ω・´)ンンン?( ,,`・ω・´)ンンン?( ,,`・ω・´)ンンン?( ,,`・ω・´)ンンン?落札車両の搬出はどうすればよいですか?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:202,question:"ふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁふぁ落札車両の輸送はどうすればよいですか?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:203,question:"ここここここここここここここ長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `}]},{categoryId:666,categoryOrder:5,categoryName:"搬出・輸送5",faqList:[{id:201,question:"びびびびびびびびびびびびびびびb落札車両の搬出はどうすればよいですか?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:202,question:"えええええええええええええええ落札車両の輸送はどうすればよいですか?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `},{id:203,question:"アアアアアアアアアアアアアアアアアアアアアアアアアアアアアアアアア長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列長い文字列?",answer:`提携会場に会員登録があり、TC-webΣで参加登録を済ませていただければ、 TC-webΣを通じて落札いただいても、その会場との直接取引をした場合と同じになり、代金決済や書類・クレームなども会場とお客様で直接行っていただきます。これを“直接落札”といいます。 `}]}],b8e={categoryList:y8e},_8e=[{planCode:8002,planName:"会場買取E年式",salesFee:2e3,winBidFee:3e4,tax:10},{planCode:8003,planName:"通常企画",salesFee:1500,winBidFee:12e3,tax:10},{planCode:0,planName:"通常企画",salesFee:1500,winBidFee:12e3,tax:10},{planCode:1,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:1500,winBidFee:12e3,tax:10},{planCode:1,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:1500,winBidFee:12e3,tax:10},{planCode:1,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:1500,winBidFee:12e3,tax:10},{planCode:1,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:1500,winBidFee:12e3,tax:10},{planCode:1,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:1500,winBidFee:12e3,tax:10},{planCode:12345678,planName:"プロマックス企画",salesFee:6e3,winBidFee:1e5,tax:10}],w8e=[{userId:"ABC147",userName:"株式会社光栄",planCode:10001,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10002,planName:"通常企画",salesFee:3e3},{userId:"ABC146",userName:"文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社",planCode:10003,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC146",userName:"株式会社井上商店",planCode:10004,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:3e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10005,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10006,planName:"通常企画",salesFee:3e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10007,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10008,planName:"通常企画",salesFee:3e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10009,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10010,planName:"通常企画",salesFee:3e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10001,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10002,planName:"通常企画",salesFee:3e3},{userId:"ABC146",userName:"文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社",planCode:10003,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC146",userName:"株式会社井上商店",planCode:10004,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:3e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10005,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10006,planName:"通常企画",salesFee:3e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10007,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10008,planName:"通常企画",salesFee:3e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10009,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10010,planName:"通常企画",salesFee:3e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10001,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10002,planName:"通常企画",salesFee:3e3},{userId:"ABC146",userName:"文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社",planCode:10003,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC146",userName:"株式会社井上商店",planCode:10004,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:3e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10005,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10006,planName:"通常企画",salesFee:3e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10007,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10008,planName:"通常企画",salesFee:3e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10009,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10010,planName:"通常企画",salesFee:3e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10001,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10002,planName:"通常企画",salesFee:3e3},{userId:"ABC146",userName:"文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社",planCode:10003,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC146",userName:"株式会社井上商店",planCode:10004,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:3e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10005,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10006,planName:"通常企画",salesFee:3e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10007,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10008,planName:"通常企画",salesFee:3e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10009,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10010,planName:"通常企画",salesFee:3e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10001,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10002,planName:"通常企画",salesFee:3e3},{userId:"ABC146",userName:"文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社",planCode:10003,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC146",userName:"株式会社井上商店",planCode:10004,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:3e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10005,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10006,planName:"通常企画",salesFee:3e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10007,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10008,planName:"通常企画",salesFee:3e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10009,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10010,planName:"通常企画",salesFee:3e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10001,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC147",userName:"株式会社光栄",planCode:10002,planName:"通常企画",salesFee:3e3},{userId:"ABC146",userName:"文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社文字長い会社",planCode:10003,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC146",userName:"株式会社井上商店",planCode:10004,planName:"文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画文字長い企画",salesFee:3e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10005,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC145",userName:"株式オートパーツ伊地知",planCode:10006,planName:"通常企画",salesFee:3e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10007,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC144",userName:"岡山オートリサイクルセンター(有)",planCode:10008,planName:"通常企画",salesFee:3e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10009,planName:"会場買取E年式",salesFee:2e3},{userId:"ABC143",userName:"株式会社ヤツヅカ",planCode:10010,planName:"通常企画",salesFee:3e3}],x8e=230,E8e={code:0},S8e={planFeeList:_8e,userFeeList:w8e,totalCount:x8e,result:E8e},C8e=[{id:111,whatsNew:!0,date:"2023/07/18",title:"★★ ユーロケ掲載予定リスト ★7/19AM11時~スタート",content:`会員各位 いつも『TTC-α』をご利用いただき誠にありがとうございます。 JU群馬につきまして、開催変更がございますので、下記ご案内致します。 記 休催・・・8/3(木) 次開催・・・8/10(木) 会員の皆様にはご不便をお掛け致しますが、ご理解賜りますようお願い申し上げます。`,fileName:null},{id:222,whatsNew:!1,date:"2023/07/17",title:"ユーロケ通信6月号【5月実績版】",content:`あああ会員各位 いつも『TTC-α』をご利用いただき誠にありがとうございます。 JU群馬につきまして、開催変更がございますので、下記ご案内致します。 記 休催・・・8/3(木) 次開催・・・8/10(木) 会員の皆様にはご不便をお掛け致しますが、ご理解賜りますようお願い申し上げます。`,fileName:"20230701_臨時休催のお知らせ.pdf"},{id:333,whatsNew:!1,date:"2023/06/17",title:"ユーロケ通信5月号【4月実績版】",content:`いいい会員各位 いつも『TTC-α』をご利用いただき誠にありがとうございます。 JU群馬につきまして、開催変更がございますので、下記ご案内致します。 記 休催・・・8/3(木) 次開催・・・8/10(木) 会員の皆様にはご不便をお掛け致しますが、ご理解賜りますようお願い申し上げます。`,fileName:"20230601_臨時休催のお知らせ.pdf"},{id:444,whatsNew:!1,date:"2023/05/17",title:"ユーロケ通信4月号【3月実績版】",content:`ううう会員各位 いつも『TTC-α』をご利用いただき誠にありがとうございます。 JU群馬につきまして、開催変更がございますので、下記ご案内致します。 記 休催・・・8/3(木) 次開催・・・8/10(木) 会員の皆様にはご不便をお掛け致しますが、ご理解賜りますようお願い申し上げます。`,fileName:"20230501_臨時休催のお知らせ.pdf"}],T8e={noticeList:C8e},A8e="/assets/files/TTCα利用規約(2024年1月1日施行).pdf",I8e={code:0},H6={s3key:A8e,result:I8e},M8e=[{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:null,winBidTime:null,notifDlTime:null,carryTime:null},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",chassis:"ZVW30-2222",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"申込中",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:null,notifDlTime:null,carryTime:null},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",chassis:"ZYX10-3333",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"落札",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:null,carryTime:null},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"他社商談中",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:null},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"掲載予定",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",chassis:"ZYX10-4444",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",chassis:"ZVW30-1111",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",chassis:"ZYX10-2222",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"申込中",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:1,maker:2,venue:"TAA近畿",postMember:"トヨタカローラ愛媛(株)",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,planName:"通常企画2",vehicleVersion:2,sheetLatestUpdate:"2023-08-09T16:21:30",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"},{postCode:2,maker:9,venue:"TAA近畿",postMember:"ネッツトヨタゾナ神戸(株)",yearEra:"H",yearJa:24,registMonth:5,name:"プリウス",grade:"S",model:"ZVW30",displacement:"1800",mileage:64,inspection:"0年0月",colorCode:"202",color:"シロ",shift:"IAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"C",interiorScore:"C",status:"エラー",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11820,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-06-14T11:00:00",endTime:"2024-06-15T13:00:00",originalPrice:580,price:653,planName:"通常企画",vehicleVersion:8,sheetLatestUpdate:"2023-02-17T11:31:18",imagePath:"/assets/car_sample/D00006.JPG",corpName:"テスト企業",offeredTime:"2023-02-17T11:31:18",winBidTime:"2023-02-17T11:31:18",notifDlTime:"2023-02-17T11:31:18",carryTime:"2023-02-17T11:31:18"}],D8e=190,P8e={code:0},V6={vehicleList:M8e,totalCount:D8e,result:P8e},R8e={code:0},O8e=[{userId:"jaraUser01",corpName:"企業01",venueCode:135,yardCode:1,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"},{userId:"jaraUser02",corpName:"企業02",venueCode:136,yardCode:0,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札済み",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"},{userId:"jaraUser03",corpName:"企業03",venueCode:137,yardCode:1,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札済み",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"},{userId:"jaraUser04",corpName:"企業04",venueCode:138,yardCode:1,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札済み",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"},{userId:"jaraUser05",corpName:"企業05",venueCode:139,yardCode:1,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札済み",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"},{userId:"jaraUser06",corpName:"企業06",venueCode:140,yardCode:1,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札済み",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"},{userId:"jaraUser07",corpName:"企業07",venueCode:141,yardCode:1,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札済み",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"},{userId:"jaraUser08",corpName:"企業08",venueCode:142,yardCode:1,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札済み",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"},{userId:"jaraUser09",corpName:"企業09",venueCode:143,yardCode:1,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札済み",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"},{userId:"jaraUser10",corpName:"企業10",venueCode:144,yardCode:1,postCode:9001,maker:"1:トヨタ",year:"H10",carName:"パッソ",grade:"Jスタイル2",chassis:"MR41S-231027",displacement:"660",license:"愛媛501モ3101",mileage:24586,equip10Warranty:0,equip11Manual:0,welfareType:0,taxType:0,endDateTime:"2023/12/14 23:59:00",price:950,totalPrice:1056900,status:"落札済み",offeredDateTime:"2023/11/13 00:00:02",winBidDateTime:"2023/10/17 21:21:00",winBidPrice:0,carTaxType:0,carTax:0,recycleFee:8400,winBidFee:2e3,salesFee:1500,tax:10,downloadDateTime:"2023/11/13 23:59:58",carryOutDateTime:"2023/11/13 23:59:59"}],N8e={result:R8e,tradeList:O8e},L8e=[{postCode:7216400,maker:3,venue:"愛媛松山特設ヤード",planName:"通常企画",yearEra:"R",yearJa:1,registMonth:9,name:"パッソ",grade:"X LパッケージS",model:"M700A",displacement:"1000",mileage:23,inspection:"3年10月",colorCode:"G58",color:"ミドリ",shift:"IAT",airCon:"AAC",totalScore:"4",exteriorScore:"B",interiorScore:"A",status:"申込中",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:8190,length:0,width:0,height:0,equip7Navi:0,equip8Tv:0,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-11T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:800,price:869,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:1,maker:2,venue:"TAA四国 愛媛松山特設ヤード",planName:"通常企画",yearEra:"H",yearJa:29,registMonth:0,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"掲載予定",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:7216402,maker:2,venue:"TAA四国",planName:"通常企画",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"0年0月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"掲載中",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-21T11:00:00",endTime:"2023-10-27T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:7216403,maker:2,venue:"TAA四国",planName:"通常企画",yearEra:"",yearJa:29,registMonth:0,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"商談中",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-22T11:00:00",endTime:"2023-10-28T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:2,maker:2,venue:"TAA四国",planName:"通常企画",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"申込中",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:7216405,maker:2,venue:"TAA四国",planName:"通常企画",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"落札",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:7216406,maker:2,venue:"TAA四国",planName:"通常企画",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"他社商談中",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:7216407,maker:2,venue:"TAA四国",planName:"通常企画",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"掲載予定",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:7216408,maker:2,venue:"TAA四国",planName:"通常企画",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"掲載予定",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:7216409,maker:2,venue:"TAA四国",planName:"通常企画",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"掲載予定",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"},{postCode:7216410,maker:2,venue:"TAA四国",planName:"通常企画",yearEra:"H",yearJa:29,registMonth:2,name:"C-HR",grade:"G",model:"ZYX10",displacement:"1800",mileage:73,inspection:"6年2月",colorCode:"1K0",color:"グレー",shift:"FAT",airCon:"AAC",totalScore:"4.5",exteriorScore:"B",interiorScore:"C",status:"掲載予定",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:11270,length:0,width:0,height:0,equip7Navi:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-20T11:00:00",endTime:"2023-10-26T13:00:00",originalPrice:1350,price:1501,imagePath:"/assets/car_sample/D00006.JPG"}],k8e=150,F8e={code:0},$8e={vehicleList:L8e,totalCount:k8e,result:F8e},B8e=[{venueCode:2,venueNameJa:"CAA東京",yardCode:0,yardName:null},{venueCode:3,venueNameJa:"CAA岐阜",yardCode:0,yardName:null},{venueCode:120,venueNameJa:"TAA近畿",yardCode:0,yardName:null},{venueCode:135,venueNameJa:"TAA四国",yardCode:0,yardName:null},{venueCode:135,venueNameJa:"TAA四国",yardCode:1,yardName:"愛媛松山特設ヤード"},{venueCode:155,venueNameJa:"TAA広島",yardCode:0,yardName:null},{venueCode:160,venueNameJa:"TAA九州",yardCode:0,yardName:null},{venueCode:180,venueNameJa:"TAA南九州",yardCode:0,yardName:null},{venueCode:180,venueNameJa:"TAA南九州",yardCode:1,yardName:"鹿児島特設"}],U8e=[{makerCode:1,makerName:"Toyota"},{makerCode:2,makerName:"Honda"},{makerCode:3,makerName:"Benz"},{makerCode:4,makerName:"Tiger"},{makerCode:5,makerName:"Suzuki"}],H8e=["AW","BDF","DHG","CCL"],V8e=[{planCode:1,planName:"TC"},{planCode:2,planName:"EEE"},{planCode:3,planName:"TER"}],z8e=[{yearEra:"H",yearJa:5},{yearEra:"B",yearJa:6},{yearEra:"D",yearJa:7},{yearEra:"Q",yearJa:9}],j8e=["DDHH","GGRR","DDCC","AAEE"],G8e=[{colorName:"YY"},{colorName:"JJ"},{colorName:"SS"},{colorName:"RR"}],W8e=[{shiftName:"YY"},{shiftName:"JJ"},{shiftName:"SS"},{shiftName:"RR"}],q8e=["YY","JJ","SS","RR"],Y8e={code:0},J8e={venueList:B8e,maker:U8e,car:H8e,plan:V8e,year:z8e,model:j8e,color:G8e,shift:W8e,score:q8e,result:Y8e},Q8e="テスト企業",K8e="cpdmUser",X8e="落札",Z8e="2023-10-19T19:27:52",eGe="2023-10-17T20:09:20",tGe="2023-10-12T19:29:55",nGe="2023-10-21T19:30:51",rGe={code:0},iGe={corpName:Q8e,userId:K8e,status:X8e,offeredDatetime:Z8e,winBidDatetime:eGe,downloadDatetime:tGe,carryOutDatetime:nGe,result:rGe},aGe={postCode:7400009,maker:1,venue:"TAA近畿 京都ヤード",postMember:"トヨタカローラ愛媛(株)",yearEra:"R",yearJa:1,registMonth:9,name:"ルーミー",grade:"カスタムG",model:"M900A",displacement:"1000",mileage:12,inspection:"6年9月",colorCode:"B82",color:"アオ",shift:"IAT",airCon:"AAC",totalScore:"4",exteriorScore:"C",interiorScore:"C",status:"掲載中",usedAs:"自家用",capacity:5,loadCapacity:0,recycleFee:9130,length:0,width:0,height:0,equip7Navi:1,equip5Aw:1,equip8Tv:1,equip6Sr:0,equip9Leather:0,equip3Air:1,equip1Ps:1,equip2Pw:1,equip4Abs:1,equip10Warranty:0,equip11Manual:0,startTime:"2023-10-13T11:00:00",endTime:"2023-12-28T13:00:00",originalPrice:1e3,price:1162005,planName:"通常企画",vehicleVersion:2,sheetLatestUpdate:"2023-08-23T13:44:40",imagePath:"/assets/car_sample/D00006.JPG"},oGe={code:0},sGe={vehicleInfo:aGe,result:oGe},lGe={result:{code:0},achievementsInfo:[{venueName:"横浜会場ABCDEFG",dayGroups:0,yardList:[{yardName:"横浜ヤード12345678",countByYard:120,memberInfo:[{name:"東日本資源リサイクル",applyCount:20,dealCount:1},{name:"エコアール",applyCount:30,dealCount:0},{name:"大橋商店",applyCount:20,dealCount:7},{name:"京葉自動車工業",applyCount:10,dealCount:2}]},{yardName:"ヤードB",countByYard:80,memberInfo:[{name:"会員A",applyCount:6,dealCount:1},{name:"会員B",applyCount:7,dealCount:0},{name:"会員C",applyCount:9,dealCount:7},{name:"会員D",applyCount:30,dealCount:2},{name:"会員D",applyCount:10,dealCount:2}]}]},{venueName:"会場B",dayGroups:0,yardList:[{yardName:"ヤードA",countByYard:150,memberInfo:[{name:"会員XXXX",applyCount:15,dealCount:0},{name:"大橋商店",applyCount:60,dealCount:20}]}]},{venueName:"会場C",dayGroups:1,yardList:[{yardName:"ヤードC",countByYard:6,memberInfo:[{name:"会員GGG",applyCount:20,dealCount:1},{name:"会員JJJJJJJ",applyCount:11,dealCount:5}]}]}]},cGe=`【重要連絡事項】 会場が指定する引取日までに引き取りをお願いします。`,uGe={code:0},dGe={content:cGe,result:uGe},fGe=[{id:100000001,userId:"JARA0001ああああああああああああ",name:"株式会社○○○1いいいいいいいいいいいいい",feeList:[{planCode:1001,planName:"E年式あああああ",fee:1e4},{planCode:1002,planName:"通常",fee:2e4},{planCode:1003,planName:"A年式",fee:3e4}],venueList:[{venueCode:1001,venueName:"通常aaaaaaaa"},{venueCode:1002,venueName:"A年式"},{venueCode:1003,venueName:"E年式"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000002,userId:"JARA0002",name:"株式会社○○○2",feeList:[{planCode:1001,planName:"A年式",fee:1e4},{planCode:1002,planName:"E年式",fee:2e4},{planCode:1003,planName:"通常",fee:3e4},{planCode:1004,planName:"通常",fee:3e4},{planCode:1005,planName:"通常",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000003,userId:"JARA0003",name:"株式会社○○○3",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1003,venueName:"V0002"},{venueCode:1004,venueName:"V0003"},{venueCode:1005,venueName:"V0004"},{venueCode:1006,venueName:"V0005"},{venueCode:1007,venueName:"V0006"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000004,userId:"JARA0004",name:"株式会社○○○4",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000005,userId:"JARA0005",name:"株式会社○○○5",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"},{id:100000006,userId:"JARA0006",name:"株式会社○○○6",feeList:[{planCode:1001,planName:"P0001",fee:1e4},{planCode:1002,planName:"P0002",fee:2e4},{planCode:1003,planName:"P0003",fee:3e4}],venueList:[{venueCode:1001,venueName:"V0001"},{venueCode:1002,venueName:"V0002"},{venueCode:1003,venueName:"V0003"}],zipCode:"123-1234",address1:"○○県○○市○○区○○町1-1-1",address2:"○○○ビル ○○○号室",tel:"080-1234-5678"}],pGe=223,hGe={code:0},mGe={venueList:fGe,totalCount:pGe,result:hGe},gGe=[{venueCode:1001,venueNameJa:"○○○会場NN"},{venueCode:1002,venueNameJa:"○○○会場T"},{venueCode:1003,venueNameJa:"○○○会場AAAA"},{venueCode:1004,venueNameJa:"○○○会場G"},{venueCode:1005,venueNameJa:"○○○会場YU"},{venueCode:1006,venueNameJa:"○○○会場ASSS"},{venueCode:1007,venueNameJa:"○○○会場HHR"},{venueCode:1008,venueNameJa:"○○○会場RYH"},{venueCode:1009,venueNameJa:"○○○会場RETW"},{venueCode:1010,venueNameJa:"○○○会場ERTYYH"}],vGe={code:0},yGe={venueList:gGe,result:vGe},bGe=0,_Ge="user-001",wGe=1,z6={code:bGe,id:_Ge,loginFirst:wGe},xGe={code:0},j6={result:xGe},EGe={code:0},SGe={result:EGe},CGe={code:0},TGe=[],AGe={result:CGe,resultList:TGe},IGe={code:0},MGe={result:IGe},DGe={test_user_admin:{loginID:"test_user_admin",password:"abcABC123_"},test_user_account_locked_error:{loginID:"test_user_account_locked_error",password:"abcABC123_"},test_user_system_error:{loginID:"test_user_system_error",password:"abcABC123_"}},PGe=async(t,e,n)=>{const r=await t.json(),{id:i,password:a}=(r==null?void 0:r.userInfo)||{id:"",password:""};let o=tA;if(!i)o=vje;else if(!a)o=yje;else if(!p1.test(a))o=bje;else{const c=DGe[i];!c||c.password!==a?o=_je:i==="test_user_account_locked_error"?o=wje:i==="test_user_system_error"?o=tA:o=gje}const s={accessToken:nA(),refreshToken:nA()},l={result:{code:o},userInfo:{loginID:i,loginFirst:1}};return e(n.set("hogehoge","fugafuga"),n.cookie("TCCA_REFRESH_TOKEN",s.refreshToken,{httpOnly:!0,expires:new Date(Date.now()+86400*1e3)}),n.cookie("TCCA_ACCESS_TOKEN",s.accessToken,{httpOnly:!0,expires:new Date(Date.now()+1800*1e3)}),n.status(200),n.json(l))},RGe={handler:PGe},OGe={code:0},NGe=[{makerCode:-1,makerName:"不明"},{makerCode:1,makerName:"トヨタ"},{makerCode:2,makerName:"レクサス"},{makerCode:3,makerName:"日産"},{makerCode:4,makerName:"ホンダ"},{makerCode:5,makerName:"マツダ"},{makerCode:6,makerName:"三菱"},{makerCode:7,makerName:"三菱ふそう"},{makerCode:8,makerName:"スバル"},{makerCode:9,makerName:"ダイハツ"},{makerCode:10,makerName:"スズキ"},{makerCode:11,makerName:"いすゞ"},{makerCode:12,makerName:"日野"},{makerCode:13,makerName:"ミツオカ"},{makerCode:14,makerName:"日産UD"},{makerCode:19,makerName:"その他 国産車"},{makerCode:20,makerName:"アウディ"},{makerCode:21,makerName:"BMW"},{makerCode:22,makerName:"ベンツ"},{makerCode:23,makerName:"VW"},{makerCode:24,makerName:"オペル"},{makerCode:25,makerName:"ポルシェ"},{makerCode:26,makerName:"スマート"},{makerCode:27,makerName:"ジャガー"},{makerCode:28,makerName:"デイムラー"},{makerCode:29,makerName:"ローバー"},{makerCode:30,makerName:"MG"},{makerCode:31,makerName:"ロールスロイス"},{makerCode:32,makerName:"MINI"},{makerCode:33,makerName:"ベントレー"},{makerCode:34,makerName:"ロータス"},{makerCode:35,makerName:"ランドローバー"},{makerCode:36,makerName:"フェラーリ"},{makerCode:37,makerName:"マセラティ"},{makerCode:38,makerName:"アルファロメオ"},{makerCode:39,makerName:"フィアット"},{makerCode:40,makerName:"ランボルギーニ"},{makerCode:41,makerName:"ランチア"},{makerCode:42,makerName:"アバルト"},{makerCode:43,makerName:"シトロエン"},{makerCode:44,makerName:"ルノー"},{makerCode:45,makerName:"プジョー"},{makerCode:46,makerName:"ボルボ"},{makerCode:47,makerName:"サーブ"},{makerCode:48,makerName:"キャデラック"},{makerCode:49,makerName:"ポンテアック"},{makerCode:50,makerName:"シボレー"},{makerCode:51,makerName:"リンカーン"},{makerCode:52,makerName:"ジープ"},{makerCode:53,makerName:"フォード"},{makerCode:54,makerName:"クライスラー"},{makerCode:55,makerName:"米国レクサス"},{makerCode:56,makerName:"GMC"},{makerCode:57,makerName:"ダッジ"},{makerCode:58,makerName:"ヒュンダイ"},{makerCode:59,makerName:"サンヨン"},{makerCode:99,makerName:"その他 輸入車"}],LGe={result:OGe,makerList:NGe},jl=t=>`*/alpha/api${t}`,mr=t=>`/alpha${t}`,kGe=[un.rest.post(jl(Ute),RGe.handler),un.rest.post(jl(Hte),Dje.handler),un.rest.post(jl(Vte),Uje.handler),un.rest.post(jl(Gte),Lje.handler),un.rest.post(jl(qte),Rje.handler),un.rest.post(jl(Yte),$je.handler),un.rest.post(jl(Qte),Sje.handler),un.rest.post(jl(jte),(t,e,n)=>e(n.status(200),n.json(LGe))),un.rest.post(jl(sk),(t,e,n)=>e(n.status(200),n.json(MGe))),un.rest.post(mr(tae),(t,e,n)=>e(n.status(200),n.json(z6))),un.rest.post(mr(rae),(t,e,n)=>e(n.status(200),n.json(U6))),un.rest.post(mr(iae),(t,e,n)=>e(n.status(200),n.json(j6))),un.rest.post(mr(eae),(t,e,n)=>e(n.status(200),n.json(z6))),un.rest.post(mr(nae),(t,e,n)=>e(n.status(200),n.json(U6))),un.rest.post(mr(aae),(t,e,n)=>e(n.status(200),n.json(j6))),un.rest.post(mr(oae),(t,e,n)=>e(n.status(200),n.json(T8e))),un.rest.post(mr(cae),(t,e,n)=>e(n.status(200),n.json(H6),n.delay(1e3))),un.rest.post(mr(vae),(t,e,n)=>e(n.status(200),n.json(H6),n.delay(1e3))),un.rest.post(mr(lae),(t,e,n)=>e(n.status(200),n.json(AGe))),un.rest.post(mr(sae),(t,e,n)=>e(n.status(200),n.json(b8e))),un.rest.post(mr(uae),(t,e,n)=>e(n.status(200),n.json($8e),n.delay(3e3))),un.rest.post(mr(dae),(t,e,n)=>e(n.status(200),n.json(sGe),n.delay(1e3))),un.rest.post(mr(fae),(t,e,n)=>e(n.status(200),n.json(J8e))),un.rest.post(jl(zte),(t,e,n)=>e(n.status(200),n.json(d8e))),un.rest.post(jl(Jte),(t,e,n)=>e(n.status(200),n.json(e8e))),un.rest.post(mr(pae),(t,e,n)=>e(n.status(200),n.json(iGe))),un.rest.post(mr(hae),(t,e,n)=>e(n.status(200),n.json(v8e),n.delay(1e3))),un.rest.post(mr(mae),(t,e,n)=>e(n.status(200),n.json(V6),n.delay(1e3))),un.rest.post(mr(gae),(t,e,n)=>e(n.status(200),n.json(V6),n.delay(1e3))),un.rest.post(mr(bae),(t,e,n)=>e(n.status(200),n.json(mGe))),un.rest.post(mr(_ae),(t,e,n)=>e(n.status(200),n.json(yGe))),un.rest.post(mr(xae),(t,e,n)=>e(n.status(200),n.json(S8e))),un.rest.post(mr(Eae),(t,e,n)=>e(n.status(200),n.json(l8e))),un.rest.post(mr(Sae),(t,e,n)=>e(n.status(200),n.json(dGe),n.delay(1e3))),un.rest.post(mr(Cae),(t,e,n)=>e(n.status(200),n.json(SGe),n.delay(2e3))),un.rest.post(mr(yae),(t,e,n)=>e(n.status(200),n.json(N8e))),un.rest.post(mr(wae),(t,e,n)=>e(n.status(200),n.json(r8e))),un.rest.post(sk,(t,e,n)=>e(n.status(200),n.json(Kje))),un.rest.post(mr(Tae),(t,e,n)=>e(n.status(200),n.json(lGe)))];un.setupWorker(...kGe);/** * React Router DOM v6.6.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function h1(){return h1=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function FGe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function $Ge(t,e){return t.button===0&&(!e||e==="_self")&&!FGe(t)}function Ek(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function BGe(t,e){let n=Ek(t);for(let r of e.keys())n.has(r)||e.getAll(r).forEach(i=>{n.append(r,i)});return n}const UGe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],HGe=["aria-current","caseSensitive","className","end","style","to","children"];function VGe(t,e){return Lxe({basename:e==null?void 0:e.basename,history:txe({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||zGe(),routes:bZ(t)}).initialize()}function zGe(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=h1({},e,{errors:jGe(e.errors)})),e}function jGe(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")n[r]=new NI(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let a=new Error(i.message);a.stack="",n[r]=a}else n[r]=i;return n}const GGe=C.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u}=e,d=Aae(e,UGe),f=tEe(c,{relative:i}),p=qGe(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i});function h(v){r&&r(v),v.defaultPrevented||p(v)}return C.createElement("a",h1({},d,{href:f,onClick:a?r:h,ref:n,target:l}))}),WGe=C.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:l,children:c}=e,u=Aae(e,HGe),d=i$(l,{relative:u.relative}),f=Eo(),p=C.useContext(LI),{navigator:h}=C.useContext(tw),v=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,b=f.pathname,g=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;i||(b=b.toLowerCase(),g=g?g.toLowerCase():null,v=v.toLowerCase());let y=b===v||!o&&b.startsWith(v)&&b.charAt(v.length)==="/",w=g!=null&&(g===v||!o&&g.startsWith(v)&&g.charAt(v.length)==="/"),x=y?r:void 0,S;typeof a=="function"?S=a({isActive:y,isPending:w}):S=[a,y?"active":null,w?"pending":null].filter(Boolean).join(" ");let T=typeof s=="function"?s({isActive:y,isPending:w}):s;return C.createElement(GGe,h1({},u,{"aria-current":x,className:S,ref:n,style:T,to:l}),typeof c=="function"?c({isActive:y,isPending:w}):c)});var G6;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(G6||(G6={}));var W6;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(W6||(W6={}));function qGe(t,e){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o}=e===void 0?{}:e,s=_r(),l=Eo(),c=i$(t,{relative:o});return C.useCallback(u=>{if($Ge(u,n)){u.preventDefault();let d=r!==void 0?r:iu(l)===iu(c);s(t,{replace:d,state:i,preventScrollReset:a,relative:o})}},[l,s,c,r,i,n,t,a,o])}function Wi(t){let e=C.useRef(Ek(t)),n=Eo(),r=C.useMemo(()=>BGe(n.search,e.current),[n.search]),i=_r(),a=C.useCallback((o,s)=>{const l=Ek(typeof o=="function"?o(r):o);i("?"+l,s)},[i,r]);return[r,a]}const YGe={headerError:["front","headerError"]},rD=t=>Dw({queryKey:YGe.headerError,initial:t}),ZE="primary",ho=ct.button` border-radius: 4px; border: ${({border:t})=>t?"":"none"}; padding: ${({componentSize:t})=>t==="small"?"2px":"8px"}; width: ${({componentSize:t})=>t==="small"?"8em":"10em"}; background-color: ${({color:t,theme:e})=>e.palette[t||ZE][e.mode]}; color: ${({theme:t,color:e})=>t.palette[e||ZE].buttonText}; border-color: ${({theme:t,color:e})=>t.palette[e||ZE].buttonText}; transition-duration: 0.2s; &:disabled { background-color: ${({color:t,theme:e})=>Xte(e.palette[t||ZE][e.mode],{opacity:.4})}; &:hover { opacity: unset; cursor: initial; } } &:hover { cursor: pointer; opacity: 0.8; } `,JGe=ct(ho)` border: none; border-radius: 4px; height: 2.5em; width: 100%; `,Iae=t=>E(JGe,{...t}),QGe=({component:t,...e})=>E(t,{...e}),li=ct(QGe)` font-weight: ${({variant:t,theme:e})=>e.typography[t].fontWeight}; font-size: ${({variant:t,theme:e})=>e.typography[t].fontSize}; line-height: ${({variant:t,theme:e})=>e.typography[t].lineHeight}; letter-spacing: ${({variant:t,theme:e})=>e.typography[t].letterSpacing}; color: ${({theme:t,color:e})=>{var n;return(n=t.palette[e])==null?void 0:n[t.mode]}}; `;li.defaultProps={variant:"subtitle1",component:"div"};const KGe=ct.input` padding: ${({componentSize:t})=>t==="small"?"4px":"8px"}; width: ${({componentSize:t})=>t==="small"?"8em":"16em"}; `,Mae=C.forwardRef((t,e)=>E(KGe,{...t,ref:e})),XGe={},ZGe=ct.div` display: flex; flex-direction: column; width: fit-content; & > input:focus-visible { outline: ${({error:t})=>t?"none":"1px solid #0000FF"}; } `,eWe=ct(Mae)` height: 2.5em; width: 100%; border-radius: 4px; border-width: 1px; border-image: none; border-color: ${({theme:t,error:e})=>e?"#FF0000":t.palette.grey[t.mode]}; border-style: solid; &::placeholder { text-align: center; } `,tWe=ct.div` margin: 2px 0 0 8px; min-height: ${({type:t})=>t==="password"?"6em":"3em"}; `,dv=C.forwardRef(({helperText:t,error:e,...n},r)=>re(ZGe,{error:e,children:[E(eWe,{...n,ref:r,error:e,helperText:t}),E(tWe,{...n,children:E(li,{color:e?"error":void 0,children:e?t:""})})]}));dv.defaultProps=XGe;const nWe="300px",rWe="25em",iWe=ct.form` display: flex; flex-direction: column; width: ${nWe}; align-items: center; & > *:not(:last-child) { margin-bottom: 2em; } `,aWe=ct.div` display: flex; flex-direction: column; width: ${rWe}; position: relative; & > *:not(:last-child) { margin-bottom: 1em; width: 100%; } `,Dae=({alert:t,children:e,...n})=>E(iWe,{...n,children:E(aWe,{children:e})}),oWe="IDを入力してください。",sWe="パスワードを入力してください。",lWe=["パスワードは以下の条件を満たす必要があります。","・8~20文字","・「半角英大文字」「半角英小文字」「数字」「記号」を2種以上"],cWe="ログインできませんでした。ID、またはパスワードに誤りがあります。",uWe="ログインできませんでした。現在ロックされています。しばらく時間をおいてから再度ログインしてください。",dWe="システムエラーが発生しました。しばらく時間をおいてから再度ログインしてください。",ps="システムエラーが発生しました。しばらく時間をおいてから実行してください。",wf="システムエラーが発生しました。しばらく時間をおいてから画面を更新してください。",fWe="すでに変更されたデータの可能性があります。",q6="検索できませんでした。しばらく時間をおいてから実行してください。",pWe="号車が検索できませんでした。検索条件を変更して実行してください。",hWe="該当する号車が100件を超えました。検索条件を変更して実行してください。",mWe="パスワードを入力してください。",gWe=["パスワードは以下の条件を満たす必要があります。","・8~20文字","・「半角英大文字」「半角英小文字」「数字」「記号」を2種以上"],vWe="パスワードが変更できませんでした。過去3回以内に利用したパスワードは登録できません。",yWe="パスワードが変更できませんでした。現在のパスワードに誤りがあります。",bWe="パスワードが一致しておりません。",_We="パスワードが変更できませんでした。しばらく時間をおいてからパスワードを変更してください。",wWe="システムエラーが発生しました。しばらく時間をおいてからパスワードを変更してください。",xWe="ログインIDを入力してください",EWe="パスワードを入力してください",SWe="現在のパスワードを入力してください",CWe="新しいパスワードを入力してください",TWe="新しいパスワードを再度入力してください",Ys={1:oWe,2:sWe,3:lWe,4:cWe,98:uWe,99:dWe},jd={1:mWe,2:gWe,3:bWe,95:yWe,96:vWe,98:_We,99:wWe},h_={1:xWe,2:EWe,3:SWe,4:CWe,5:TWe};var Y6=Array.isArray,J6=Object.keys,AWe=Object.prototype.hasOwnProperty,IWe=typeof Element<"u";function Sk(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Y6(t),r=Y6(e),i,a,o;if(n&&r){if(a=t.length,a!=e.length)return!1;for(i=a;i--!==0;)if(!Sk(t[i],e[i]))return!1;return!0}if(n!=r)return!1;var s=t instanceof Date,l=e instanceof Date;if(s!=l)return!1;if(s&&l)return t.getTime()==e.getTime();var c=t instanceof RegExp,u=e instanceof RegExp;if(c!=u)return!1;if(c&&u)return t.toString()==e.toString();var d=J6(t);if(a=d.length,a!==J6(e).length)return!1;for(i=a;i--!==0;)if(!AWe.call(e,d[i]))return!1;if(IWe&&t instanceof Element&&e instanceof Element)return t===e;for(i=a;i--!==0;)if(o=d[i],!(o==="_owner"&&t.$$typeof)&&!Sk(t[o],e[o]))return!1;return!0}return t!==t&&e!==e}var uf=function(e,n){try{return Sk(e,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}},MWe=function(e){return DWe(e)&&!PWe(e)};function DWe(t){return!!t&&typeof t=="object"}function PWe(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||NWe(t)}var RWe=typeof Symbol=="function"&&Symbol.for,OWe=RWe?Symbol.for("react.element"):60103;function NWe(t){return t.$$typeof===OWe}function LWe(t){return Array.isArray(t)?[]:{}}function rA(t,e){return e.clone!==!1&&e.isMergeableObject(t)?m1(LWe(t),t,e):t}function kWe(t,e,n){return t.concat(e).map(function(r){return rA(r,n)})}function FWe(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach(function(i){r[i]=rA(t[i],n)}),Object.keys(e).forEach(function(i){!n.isMergeableObject(e[i])||!t[i]?r[i]=rA(e[i],n):r[i]=m1(t[i],e[i],n)}),r}function m1(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||kWe,n.isMergeableObject=n.isMergeableObject||MWe;var r=Array.isArray(e),i=Array.isArray(t),a=r===i;return a?r?n.arrayMerge(t,e,n):FWe(t,e,n):rA(e,n)}m1.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return m1(r,i,n)},{})};var Ck=m1,$We=typeof global=="object"&&global&&global.Object===Object&&global;const Pae=$We;var BWe=typeof self=="object"&&self&&self.Object===Object&&self,UWe=Pae||BWe||Function("return this")();const mu=UWe;var HWe=mu.Symbol;const Kf=HWe;var Rae=Object.prototype,VWe=Rae.hasOwnProperty,zWe=Rae.toString,tb=Kf?Kf.toStringTag:void 0;function jWe(t){var e=VWe.call(t,tb),n=t[tb];try{t[tb]=void 0;var r=!0}catch{}var i=zWe.call(t);return r&&(e?t[tb]=n:delete t[tb]),i}var GWe=Object.prototype,WWe=GWe.toString;function qWe(t){return WWe.call(t)}var YWe="[object Null]",JWe="[object Undefined]",Q6=Kf?Kf.toStringTag:void 0;function im(t){return t==null?t===void 0?JWe:YWe:Q6&&Q6 in Object(t)?jWe(t):qWe(t)}function Oae(t,e){return function(n){return t(e(n))}}var QWe=Oae(Object.getPrototypeOf,Object);const dU=QWe;function am(t){return t!=null&&typeof t=="object"}var KWe="[object Object]",XWe=Function.prototype,ZWe=Object.prototype,Nae=XWe.toString,e6e=ZWe.hasOwnProperty,t6e=Nae.call(Object);function K6(t){if(!am(t)||im(t)!=KWe)return!1;var e=dU(t);if(e===null)return!0;var n=e6e.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Nae.call(n)==t6e}function n6e(){this.__data__=[],this.size=0}function Lae(t,e){return t===e||t!==t&&e!==e}function iD(t,e){for(var n=t.length;n--;)if(Lae(t[n][0],e))return n;return-1}var r6e=Array.prototype,i6e=r6e.splice;function a6e(t){var e=this.__data__,n=iD(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():i6e.call(e,n,1),--this.size,!0}function o6e(t){var e=this.__data__,n=iD(e,t);return n<0?void 0:e[n][1]}function s6e(t){return iD(this.__data__,t)>-1}function l6e(t,e){var n=this.__data__,r=iD(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Cd(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=m9e}var g9e="[object Arguments]",v9e="[object Array]",y9e="[object Boolean]",b9e="[object Date]",_9e="[object Error]",w9e="[object Function]",x9e="[object Map]",E9e="[object Number]",S9e="[object Object]",C9e="[object RegExp]",T9e="[object Set]",A9e="[object String]",I9e="[object WeakMap]",M9e="[object ArrayBuffer]",D9e="[object DataView]",P9e="[object Float32Array]",R9e="[object Float64Array]",O9e="[object Int8Array]",N9e="[object Int16Array]",L9e="[object Int32Array]",k9e="[object Uint8Array]",F9e="[object Uint8ClampedArray]",$9e="[object Uint16Array]",B9e="[object Uint32Array]",Dr={};Dr[P9e]=Dr[R9e]=Dr[O9e]=Dr[N9e]=Dr[L9e]=Dr[k9e]=Dr[F9e]=Dr[$9e]=Dr[B9e]=!0;Dr[g9e]=Dr[v9e]=Dr[M9e]=Dr[y9e]=Dr[D9e]=Dr[b9e]=Dr[_9e]=Dr[w9e]=Dr[x9e]=Dr[E9e]=Dr[S9e]=Dr[C9e]=Dr[T9e]=Dr[A9e]=Dr[I9e]=!1;function U9e(t){return am(t)&&Vae(t.length)&&!!Dr[im(t)]}function fU(t){return function(e){return t(e)}}var zae=typeof ms=="object"&&ms&&!ms.nodeType&&ms,m_=zae&&typeof gs=="object"&&gs&&!gs.nodeType&&gs,H9e=m_&&m_.exports===zae,WO=H9e&&Pae.process,V9e=function(){try{var t=m_&&m_.require&&m_.require("util").types;return t||WO&&WO.binding&&WO.binding("util")}catch{}}();const Kv=V9e;var r9=Kv&&Kv.isTypedArray,z9e=r9?fU(r9):U9e;const j9e=z9e;var G9e=Object.prototype,W9e=G9e.hasOwnProperty;function jae(t,e){var n=Xw(t),r=!n&&o9e(t),i=!n&&!r&&Hae(t),a=!n&&!r&&!i&&j9e(t),o=n||r||i||a,s=o?t9e(t.length,String):[],l=s.length;for(var c in t)(e||W9e.call(t,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||h9e(c,l)))&&s.push(c);return s}var q9e=Object.prototype;function pU(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||q9e;return t===n}var Y9e=Oae(Object.keys,Object);const J9e=Y9e;var Q9e=Object.prototype,K9e=Q9e.hasOwnProperty;function X9e(t){if(!pU(t))return J9e(t);var e=[];for(var n in Object(t))K9e.call(t,n)&&n!="constructor"&&e.push(n);return e}function Gae(t){return t!=null&&Vae(t.length)&&!kae(t)}function hU(t){return Gae(t)?jae(t):X9e(t)}function Z9e(t,e){return t&&oD(e,hU(e),t)}function eqe(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var tqe=Object.prototype,nqe=tqe.hasOwnProperty;function rqe(t){if(!Kw(t))return eqe(t);var e=pU(t),n=[];for(var r in t)r=="constructor"&&(e||!nqe.call(t,r))||n.push(r);return n}function mU(t){return Gae(t)?jae(t,!0):rqe(t)}function iqe(t,e){return t&&oD(e,mU(e),t)}var Wae=typeof ms=="object"&&ms&&!ms.nodeType&&ms,i9=Wae&&typeof gs=="object"&&gs&&!gs.nodeType&&gs,aqe=i9&&i9.exports===Wae,a9=aqe?mu.Buffer:void 0,o9=a9?a9.allocUnsafe:void 0;function oqe(t,e){if(e)return t.slice();var n=t.length,r=o9?o9(n):new t.constructor(n);return t.copy(r),r}function qae(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=0)&&(n[i]=t[i]);return n}function x9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var E9=function(e){return Array.isArray(e)&&e.length===0},tl=function(e){return typeof e=="function"},sD=function(e){return e!==null&&typeof e=="object"},iYe=function(e){return String(Math.floor(Number(e)))===e},qO=function(e){return Object.prototype.toString.call(e)==="[object String]"},aYe=function(e){return C.Children.count(e)===0},YO=function(e){return sD(e)&&tl(e.then)};function Pa(t,e,n,r){r===void 0&&(r=0);for(var i=roe(e);t&&r=0?[]:{}}}return(a===0?t:i)[o[a]]===n?t:(n===void 0?delete i[o[a]]:i[o[a]]=n,a===0&&n===void 0&&delete r[o[a]],r)}function ioe(t,e,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,a=Object.keys(t);i0?V.map(function(ye){return P(ye,Pa(Q,ye))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(j).then(function(ye){return ye.reduce(function(ae,Ee,Pe){return Ee==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ee&&(ae=tu(ae,V[Pe],Ee)),ae},{})})},[P]),N=C.useCallback(function(Q){return Promise.all([M(Q),f.validationSchema?I(Q):{},f.validate?T(Q):{}]).then(function(V){var j=V[0],ye=V[1],ae=V[2],Ee=Ck.all([j,ye,ae],{arrayMerge:uYe});return Ee})},[f.validate,f.validationSchema,M,T,I]),R=Js(function(Q){return Q===void 0&&(Q=x.values),S({type:"SET_ISVALIDATING",payload:!0}),N(Q).then(function(V){return g.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:V})),V})});C.useEffect(function(){o&&g.current===!0&&uf(p.current,f.initialValues)&&R(p.current)},[o,R]);var O=C.useCallback(function(Q){var V=Q&&Q.values?Q.values:p.current,j=Q&&Q.errors?Q.errors:h.current?h.current:f.initialErrors||{},ye=Q&&Q.touched?Q.touched:v.current?v.current:f.initialTouched||{},ae=Q&&Q.status?Q.status:b.current?b.current:f.initialStatus;p.current=V,h.current=j,v.current=ye,b.current=ae;var Ee=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!Q&&!!Q.isSubmitting,errors:j,touched:ye,status:ae,values:V,isValidating:!!Q&&!!Q.isValidating,submitCount:Q&&Q.submitCount&&typeof Q.submitCount=="number"?Q.submitCount:0}})};if(f.onReset){var Pe=f.onReset(x.values,de);YO(Pe)?Pe.then(Ee):Ee()}else Ee()},[f.initialErrors,f.initialStatus,f.initialTouched]);C.useEffect(function(){g.current===!0&&!uf(p.current,f.initialValues)&&(c&&(p.current=f.initialValues,O()),o&&R(p.current))},[c,f.initialValues,O,o,R]),C.useEffect(function(){c&&g.current===!0&&!uf(h.current,f.initialErrors)&&(h.current=f.initialErrors||Rp,S({type:"SET_ERRORS",payload:f.initialErrors||Rp}))},[c,f.initialErrors]),C.useEffect(function(){c&&g.current===!0&&!uf(v.current,f.initialTouched)&&(v.current=f.initialTouched||eS,S({type:"SET_TOUCHED",payload:f.initialTouched||eS}))},[c,f.initialTouched]),C.useEffect(function(){c&&g.current===!0&&!uf(b.current,f.initialStatus)&&(b.current=f.initialStatus,S({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var D=Js(function(Q){if(y.current[Q]&&tl(y.current[Q].validate)){var V=Pa(x.values,Q),j=y.current[Q].validate(V);return YO(j)?(S({type:"SET_ISVALIDATING",payload:!0}),j.then(function(ye){return ye}).then(function(ye){S({type:"SET_FIELD_ERROR",payload:{field:Q,value:ye}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:Q,value:j}}),Promise.resolve(j))}else if(f.validationSchema)return S({type:"SET_ISVALIDATING",payload:!0}),I(x.values,Q).then(function(ye){return ye}).then(function(ye){S({type:"SET_FIELD_ERROR",payload:{field:Q,value:ye[Q]}}),S({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),L=C.useCallback(function(Q,V){var j=V.validate;y.current[Q]={validate:j}},[]),k=C.useCallback(function(Q){delete y.current[Q]},[]),B=Js(function(Q,V){S({type:"SET_TOUCHED",payload:Q});var j=V===void 0?i:V;return j?R(x.values):Promise.resolve()}),H=C.useCallback(function(Q){S({type:"SET_ERRORS",payload:Q})},[]),$=Js(function(Q,V){var j=tl(Q)?Q(x.values):Q;S({type:"SET_VALUES",payload:j});var ye=V===void 0?n:V;return ye?R(j):Promise.resolve()}),W=C.useCallback(function(Q,V){S({type:"SET_FIELD_ERROR",payload:{field:Q,value:V}})},[]),K=Js(function(Q,V,j){S({type:"SET_FIELD_VALUE",payload:{field:Q,value:V}});var ye=j===void 0?n:j;return ye?R(tu(x.values,Q,V)):Promise.resolve()}),le=C.useCallback(function(Q,V){var j=V,ye=Q,ae;if(!qO(Q)){Q.persist&&Q.persist();var Ee=Q.target?Q.target:Q.currentTarget,Pe=Ee.type,We=Ee.name,Fe=Ee.id,Ae=Ee.value,he=Ee.checked,Ye=Ee.outerHTML,Ke=Ee.options,Je=Ee.multiple;j=V||We||Fe,ye=/number|range/.test(Pe)?(ae=parseFloat(Ae),isNaN(ae)?"":ae):/checkbox/.test(Pe)?fYe(Pa(x.values,j),he,Ae):Ke&&Je?dYe(Ke):Ae}j&&K(j,ye)},[K,x.values]),U=Js(function(Q){if(qO(Q))return function(V){return le(V,Q)};le(Q)}),q=Js(function(Q,V,j){V===void 0&&(V=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:Q,value:V}});var ye=j===void 0?i:j;return ye?R(x.values):Promise.resolve()}),z=C.useCallback(function(Q,V){Q.persist&&Q.persist();var j=Q.target,ye=j.name,ae=j.id,Ee=j.outerHTML,Pe=V||ye||ae;q(Pe,!0)},[q]),ne=Js(function(Q){if(qO(Q))return function(V){return z(V,Q)};z(Q)}),G=C.useCallback(function(Q){tl(Q)?S({type:"SET_FORMIK_STATE",payload:Q}):S({type:"SET_FORMIK_STATE",payload:function(){return Q}})},[]),te=C.useCallback(function(Q){S({type:"SET_STATUS",payload:Q})},[]),Y=C.useCallback(function(Q){S({type:"SET_ISSUBMITTING",payload:Q})},[]),fe=Js(function(){return S({type:"SUBMIT_ATTEMPT"}),R().then(function(Q){var V=Q instanceof Error,j=!V&&Object.keys(Q).length===0;if(j){var ye;try{if(ye=se(),ye===void 0)return}catch(ae){throw ae}return Promise.resolve(ye).then(function(ae){return g.current&&S({type:"SUBMIT_SUCCESS"}),ae}).catch(function(ae){if(g.current)throw S({type:"SUBMIT_FAILURE"}),ae})}else if(g.current&&(S({type:"SUBMIT_FAILURE"}),V))throw Q})}),pe=Js(function(Q){Q&&Q.preventDefault&&tl(Q.preventDefault)&&Q.preventDefault(),Q&&Q.stopPropagation&&tl(Q.stopPropagation)&&Q.stopPropagation(),fe().catch(function(V){console.warn("Warning: An unhandled error was caught from submitForm()",V)})}),de={resetForm:O,validateForm:R,validateField:D,setErrors:H,setFieldError:W,setFieldTouched:q,setFieldValue:K,setStatus:te,setSubmitting:Y,setTouched:B,setValues:$,setFormikState:G,submitForm:fe},se=Js(function(){return u(x.values,de)}),me=Js(function(Q){Q&&Q.preventDefault&&tl(Q.preventDefault)&&Q.preventDefault(),Q&&Q.stopPropagation&&tl(Q.stopPropagation)&&Q.stopPropagation(),O()}),Z=C.useCallback(function(Q){return{value:Pa(x.values,Q),error:Pa(x.errors,Q),touched:!!Pa(x.touched,Q),initialValue:Pa(p.current,Q),initialTouched:!!Pa(v.current,Q),initialError:Pa(h.current,Q)}},[x.errors,x.touched,x.values]),_e=C.useCallback(function(Q){return{setValue:function(j,ye){return K(Q,j,ye)},setTouched:function(j,ye){return q(Q,j,ye)},setError:function(j){return W(Q,j)}}},[K,q,W]),Me=C.useCallback(function(Q){var V=sD(Q),j=V?Q.name:Q,ye=Pa(x.values,j),ae={name:j,value:ye,onChange:U,onBlur:ne};if(V){var Ee=Q.type,Pe=Q.value,We=Q.as,Fe=Q.multiple;Ee==="checkbox"?Pe===void 0?ae.checked=!!ye:(ae.checked=!!(Array.isArray(ye)&&~ye.indexOf(Pe)),ae.value=Pe):Ee==="radio"?(ae.checked=ye===Pe,ae.value=Pe):We==="select"&&Fe&&(ae.value=ae.value||[],ae.multiple=!0)}return ae},[ne,U,x.values]),Ne=C.useMemo(function(){return!uf(p.current,x.values)},[p.current,x.values]),ge=C.useMemo(function(){return typeof s<"u"?Ne?x.errors&&Object.keys(x.errors).length===0:s!==!1&&tl(s)?s(f):s:x.errors&&Object.keys(x.errors).length===0},[s,Ne,x.errors,f]),ee=Ii({},x,{initialValues:p.current,initialErrors:h.current,initialTouched:v.current,initialStatus:b.current,handleBlur:ne,handleChange:U,handleReset:me,handleSubmit:pe,resetForm:O,setErrors:H,setFormikState:G,setFieldTouched:q,setFieldValue:K,setFieldError:W,setStatus:te,setSubmitting:Y,setTouched:B,setValues:$,submitForm:fe,validateForm:R,validateField:D,isValid:ge,dirty:Ne,unregisterField:k,registerField:L,getFieldProps:Me,getFieldMeta:Z,getFieldHelpers:_e,validateOnBlur:i,validateOnChange:n,validateOnMount:o});return ee}function lYe(t){var e={};if(t.inner){if(t.inner.length===0)return tu(e,t.path,t.message);for(var i=t.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var a;if(n){if(r>=i.length)break;a=i[r++]}else{if(r=i.next(),r.done)break;a=r.value}var o=a;Pa(e,o.path)||(e=tu(e,o.path,o.message))}}return e}function cYe(t,e,n,r){n===void 0&&(n=!1),r===void 0&&(r={});var i=Dk(t);return e[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}function Dk(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);Array.isArray(t[r])===!0?e[r]=t[r].map(function(i){return Array.isArray(i)===!0||K6(i)?Dk(i):i!==""?i:void 0}):K6(t[r])?e[r]=Dk(t[r]):e[r]=t[r]!==""?t[r]:void 0}return e}function uYe(t,e,n){var r=t.slice();return e.forEach(function(a,o){if(typeof r[o]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(a);r[o]=l?Ck(Array.isArray(a)?[]:{},a,n):a}else n.isMergeableObject(a)?r[o]=Ck(t[o],a,n):t.indexOf(a)===-1&&r.push(a)}),r}function dYe(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function fYe(t,e,n){if(typeof t=="boolean")return Boolean(e);var r=[],i=!1,a=-1;if(Array.isArray(t))r=t,a=t.indexOf(n),i=a>=0;else if(!n||n=="true"||n=="false")return Boolean(e);return e&&n&&!i?r.concat(n):i?r.slice(0,a).concat(r.slice(a+1)):r}var pYe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function Js(t){var e=C.useRef(t);return pYe(function(){e.current=t}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;ir?i:r},0);return Array.from(Ii({},e,{length:n+1}))}else return[]},yYe=function(t){rYe(e,t);function e(r){var i;return i=t.call(this,r)||this,i.updateArrayField=function(a,o,s){var l=i.props,c=l.name,u=l.formik.setFormikState;u(function(d){var f=typeof s=="function"?s:a,p=typeof o=="function"?o:a,h=tu(d.values,c,a(Pa(d.values,c))),v=s?f(Pa(d.errors,c)):void 0,b=o?p(Pa(d.touched,c)):void 0;return E9(v)&&(v=void 0),E9(b)&&(b=void 0),Ii({},d,{values:h,errors:s?tu(d.errors,c,v):d.errors,touched:o?tu(d.touched,c,b):d.touched})})},i.push=function(a){return i.updateArrayField(function(o){return[].concat(Xv(o),[nYe(a)])},!1,!1)},i.handlePush=function(a){return function(){return i.push(a)}},i.swap=function(a,o){return i.updateArrayField(function(s){return gYe(s,a,o)},!0,!0)},i.handleSwap=function(a,o){return function(){return i.swap(a,o)}},i.move=function(a,o){return i.updateArrayField(function(s){return mYe(s,a,o)},!0,!0)},i.handleMove=function(a,o){return function(){return i.move(a,o)}},i.insert=function(a,o){return i.updateArrayField(function(s){return JO(s,a,o)},function(s){return JO(s,a,null)},function(s){return JO(s,a,null)})},i.handleInsert=function(a,o){return function(){return i.insert(a,o)}},i.replace=function(a,o){return i.updateArrayField(function(s){return vYe(s,a,o)},!1,!1)},i.handleReplace=function(a,o){return function(){return i.replace(a,o)}},i.unshift=function(a){var o=-1;return i.updateArrayField(function(s){var l=s?[a].concat(s):[a];return o<0&&(o=l.length),l},function(s){var l=s?[null].concat(s):[null];return o<0&&(o=l.length),l},function(s){var l=s?[null].concat(s):[null];return o<0&&(o=l.length),l}),o},i.handleUnshift=function(a){return function(){return i.unshift(a)}},i.handleRemove=function(a){return function(){return i.remove(a)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(x9(i)),i.pop=i.pop.bind(x9(i)),i}var n=e.prototype;return n.componentDidUpdate=function(i){this.props.validateOnChange&&this.props.formik.validateOnChange&&!uf(Pa(i.formik.values,i.name),Pa(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(i){var a;return this.updateArrayField(function(o){var s=o?Xv(o):[];return a||(a=s[i]),tl(s.splice)&&s.splice(i,1),s},!0,!0),a},n.pop=function(){var i;return this.updateArrayField(function(a){var o=a;return i||(i=o&&o.pop&&o.pop()),o},!0,!0),i},n.render=function(){var i={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},a=this.props,o=a.component,s=a.render,l=a.children,c=a.name,u=a.formik,d=wU(u,["validate","validationSchema"]),f=Ii({},i,{form:d,name:c});return o?C.createElement(o,f):s?s(f):l?typeof l=="function"?l(f):aYe(l)?null:C.Children.only(l):null},e}(C.Component);yYe.defaultProps={validateOnChange:!0};function aoe(t,e){return function(){return t.apply(e,arguments)}}const{toString:ooe}=Object.prototype,{getPrototypeOf:xU}=Object,EU=(t=>e=>{const n=ooe.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Td=t=>(t=t.toLowerCase(),e=>EU(e)===t),uD=t=>e=>typeof e===t,{isArray:N0}=Array,y1=uD("undefined");function bYe(t){return t!==null&&!y1(t)&&t.constructor!==null&&!y1(t.constructor)&&$h(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const soe=Td("ArrayBuffer");function _Ye(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&soe(t.buffer),e}const wYe=uD("string"),$h=uD("function"),loe=uD("number"),SU=t=>t!==null&&typeof t=="object",xYe=t=>t===!0||t===!1,DC=t=>{if(EU(t)!=="object")return!1;const e=xU(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},EYe=Td("Date"),SYe=Td("File"),CYe=Td("Blob"),TYe=Td("FileList"),AYe=t=>SU(t)&&$h(t.pipe),IYe=t=>{const e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||ooe.call(t)===e||$h(t.toString)&&t.toString()===e)},MYe=Td("URLSearchParams"),DYe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zw(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),N0(t))for(r=0,i=t.length;r0;)if(i=n[r],e===i.toLowerCase())return i;return null}const uoe=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),doe=t=>!y1(t)&&t!==uoe;function Pk(){const{caseless:t}=doe(this)&&this||{},e={},n=(r,i)=>{const a=t&&coe(e,i)||i;DC(e[a])&&DC(r)?e[a]=Pk(e[a],r):DC(r)?e[a]=Pk({},r):N0(r)?e[a]=r.slice():e[a]=r};for(let r=0,i=arguments.length;r(Zw(e,(i,a)=>{n&&$h(i)?t[a]=aoe(i,n):t[a]=i},{allOwnKeys:r}),t),RYe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),OYe=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},NYe=(t,e,n,r)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&xU(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},LYe=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},kYe=t=>{if(!t)return null;if(N0(t))return t;let e=t.length;if(!loe(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},FYe=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xU(Uint8Array)),$Ye=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},BYe=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},UYe=Td("HTMLFormElement"),HYe=t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),S9=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),VYe=Td("RegExp"),foe=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Zw(n,(i,a)=>{e(i,a,t)!==!1&&(r[a]=i)}),Object.defineProperties(t,r)},zYe=t=>{foe(t,(e,n)=>{if($h(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if($h(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jYe=(t,e)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return N0(t)?r(t):r(String(t).split(e)),n},GYe=()=>{},WYe=(t,e)=>(t=+t,Number.isFinite(t)?t:e),qYe=t=>{const e=new Array(10),n=(r,i)=>{if(SU(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const a=N0(r)?[]:{};return Zw(r,(o,s)=>{const l=n(o,i+1);!y1(l)&&(a[s]=l)}),e[i]=void 0,a}}return r};return n(t,0)},rt={isArray:N0,isArrayBuffer:soe,isBuffer:bYe,isFormData:IYe,isArrayBufferView:_Ye,isString:wYe,isNumber:loe,isBoolean:xYe,isObject:SU,isPlainObject:DC,isUndefined:y1,isDate:EYe,isFile:SYe,isBlob:CYe,isRegExp:VYe,isFunction:$h,isStream:AYe,isURLSearchParams:MYe,isTypedArray:FYe,isFileList:TYe,forEach:Zw,merge:Pk,extend:PYe,trim:DYe,stripBOM:RYe,inherits:OYe,toFlatObject:NYe,kindOf:EU,kindOfTest:Td,endsWith:LYe,toArray:kYe,forEachEntry:$Ye,matchAll:BYe,isHTMLForm:UYe,hasOwnProperty:S9,hasOwnProp:S9,reduceDescriptors:foe,freezeMethods:zYe,toObjectSet:jYe,toCamelCase:HYe,noop:GYe,toFiniteNumber:WYe,findKey:coe,global:uoe,isContextDefined:doe,toJSONObject:qYe};function kn(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}rt.inherits(kn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:rt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const poe=kn.prototype,hoe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{hoe[t]={value:t}});Object.defineProperties(kn,hoe);Object.defineProperty(poe,"isAxiosError",{value:!0});kn.from=(t,e,n,r,i,a)=>{const o=Object.create(poe);return rt.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),kn.call(o,t.message,e,n,r,i),o.cause=t,o.name=t.name,a&&Object.assign(o,a),o};var YYe=typeof self=="object"?self.FormData:window.FormData;const JYe=YYe;function Rk(t){return rt.isPlainObject(t)||rt.isArray(t)}function moe(t){return rt.endsWith(t,"[]")?t.slice(0,-2):t}function C9(t,e,n){return t?t.concat(e).map(function(i,a){return i=moe(i),!n&&a?"["+i+"]":i}).join(n?".":""):e}function QYe(t){return rt.isArray(t)&&!t.some(Rk)}const KYe=rt.toFlatObject(rt,{},null,function(e){return/^is[A-Z]/.test(e)});function XYe(t){return t&&rt.isFunction(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator]}function dD(t,e,n){if(!rt.isObject(t))throw new TypeError("target must be an object");e=e||new(JYe||FormData),n=rt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!rt.isUndefined(b[v])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&XYe(e);if(!rt.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(rt.isDate(h))return h.toISOString();if(!l&&rt.isBlob(h))throw new kn("Blob is not supported. Use a Buffer instead.");return rt.isArrayBuffer(h)||rt.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,v,b){let g=h;if(h&&!b&&typeof h=="object"){if(rt.endsWith(v,"{}"))v=r?v:v.slice(0,-2),h=JSON.stringify(h);else if(rt.isArray(h)&&QYe(h)||rt.isFileList(h)||rt.endsWith(v,"[]")&&(g=rt.toArray(h)))return v=moe(v),g.forEach(function(w,x){!(rt.isUndefined(w)||w===null)&&e.append(o===!0?C9([v],x,a):o===null?v:v+"[]",c(w))}),!1}return Rk(h)?!0:(e.append(C9(b,v,a),c(h)),!1)}const d=[],f=Object.assign(KYe,{defaultVisitor:u,convertValue:c,isVisitable:Rk});function p(h,v){if(!rt.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(h),rt.forEach(h,function(g,y){(!(rt.isUndefined(g)||g===null)&&i.call(e,g,rt.isString(y)?y.trim():y,v,f))===!0&&p(g,v?v.concat(y):[y])}),d.pop()}}if(!rt.isObject(t))throw new TypeError("data must be an object");return p(t),e}function T9(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function CU(t,e){this._pairs=[],t&&dD(t,this,e)}const goe=CU.prototype;goe.append=function(e,n){this._pairs.push([e,n])};goe.toString=function(e){const n=e?function(r){return e.call(this,r,T9)}:T9;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function ZYe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function voe(t,e,n){if(!e)return t;const r=n&&n.encode||ZYe,i=n&&n.serialize;let a;if(i?a=i(e,n):a=rt.isURLSearchParams(e)?e.toString():new CU(e,n).toString(r),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class eJe{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rt.forEach(this.handlers,function(r){r!==null&&e(r)})}}const A9=eJe,yoe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tJe=typeof URLSearchParams<"u"?URLSearchParams:CU,nJe=FormData,rJe=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),iJe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Wc={isBrowser:!0,classes:{URLSearchParams:tJe,FormData:nJe,Blob},isStandardBrowserEnv:rJe,isStandardBrowserWebWorkerEnv:iJe,protocols:["http","https","file","blob","url","data"]};function aJe(t,e){return dD(t,new Wc.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Wc.isNode&&rt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function oJe(t){return rt.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function sJe(t){const e={},n=Object.keys(t);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&rt.isArray(i)?i.length:o,l?(rt.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!rt.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],a)&&rt.isArray(i[o])&&(i[o]=sJe(i[o])),!s)}if(rt.isFormData(t)&&rt.isFunction(t.entries)){const n={};return rt.forEachEntry(t,(r,i)=>{e(oJe(r),i,n,0)}),n}return null}const lJe={"Content-Type":void 0};function cJe(t,e,n){if(rt.isString(t))try{return(e||JSON.parse)(t),rt.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const fD={transitional:yoe,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=rt.isObject(e);if(a&&rt.isHTMLForm(e)&&(e=new FormData(e)),rt.isFormData(e))return i&&i?JSON.stringify(boe(e)):e;if(rt.isArrayBuffer(e)||rt.isBuffer(e)||rt.isStream(e)||rt.isFile(e)||rt.isBlob(e))return e;if(rt.isArrayBufferView(e))return e.buffer;if(rt.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return aJe(e,this.formSerializer).toString();if((s=rt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return dD(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),cJe(e)):e}],transformResponse:[function(e){const n=this.transitional||fD.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(e&&rt.isString(e)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?kn.from(s,kn.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wc.classes.FormData,Blob:Wc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};rt.forEach(["delete","get","head"],function(e){fD.headers[e]={}});rt.forEach(["post","put","patch"],function(e){fD.headers[e]=rt.merge(lJe)});const TU=fD,uJe=rt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dJe=t=>{const e={};let n,r,i;return t&&t.split(` `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||e[n]&&uJe[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},I9=Symbol("internals");function nb(t){return t&&String(t).trim().toLowerCase()}function PC(t){return t===!1||t==null?t:rt.isArray(t)?t.map(PC):String(t)}function fJe(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}function pJe(t){return/^[-_a-zA-Z]+$/.test(t.trim())}function M9(t,e,n,r){if(rt.isFunction(r))return r.call(this,e,n);if(rt.isString(e)){if(rt.isString(r))return e.indexOf(r)!==-1;if(rt.isRegExp(r))return r.test(e)}}function hJe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function mJe(t,e){const n=rt.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,a,o){return this[r].call(this,e,i,a,o)},configurable:!0})})}class pD{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function a(s,l,c){const u=nb(l);if(!u)throw new Error("header name must be a non-empty string");const d=rt.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=PC(s))}const o=(s,l)=>rt.forEach(s,(c,u)=>a(c,u,l));return rt.isPlainObject(e)||e instanceof this.constructor?o(e,n):rt.isString(e)&&(e=e.trim())&&!pJe(e)?o(dJe(e),n):e!=null&&a(n,e,r),this}get(e,n){if(e=nb(e),e){const r=rt.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return fJe(i);if(rt.isFunction(n))return n.call(this,i,r);if(rt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=nb(e),e){const r=rt.findKey(this,e);return!!(r&&(!n||M9(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function a(o){if(o=nb(o),o){const s=rt.findKey(r,o);s&&(!n||M9(r,r[s],s,n))&&(delete r[s],i=!0)}}return rt.isArray(e)?e.forEach(a):a(e),i}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(e){const n=this,r={};return rt.forEach(this,(i,a)=>{const o=rt.findKey(r,a);if(o){n[o]=PC(i),delete n[a];return}const s=e?hJe(a):String(a).trim();s!==a&&delete n[a],n[s]=PC(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return rt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&rt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[I9]=this[I9]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=nb(o);r[s]||(mJe(i,o),r[s]=!0)}return rt.isArray(e)?e.forEach(a):a(e),this}}pD.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);rt.freezeMethods(pD.prototype);rt.freezeMethods(pD);const rd=pD;function QO(t,e){const n=this||TU,r=e||n,i=rd.from(r.headers);let a=r.data;return rt.forEach(t,function(s){a=s.call(n,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function _oe(t){return!!(t&&t.__CANCEL__)}function ex(t,e,n){kn.call(this,t??"canceled",kn.ERR_CANCELED,e,n),this.name="CanceledError"}rt.inherits(ex,kn,{__CANCEL__:!0});const gJe=null;function vJe(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new kn("Request failed with status code "+n.status,[kn.ERR_BAD_REQUEST,kn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const yJe=Wc.isStandardBrowserEnv?function(){return{write:function(n,r,i,a,o,s){const l=[];l.push(n+"="+encodeURIComponent(r)),rt.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),rt.isString(a)&&l.push("path="+a),rt.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function bJe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function _Je(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function woe(t,e){return t&&!bJe(e)?_Je(t,e):e}const wJe=Wc.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let o=a;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const s=rt.isString(o)?i(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function xJe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function EJe(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let d=a,f=0;for(;d!==i;)f+=n[d++],d=d%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),c-o{const a=i.loaded,o=i.lengthComputable?i.total:void 0,s=a-n,l=r(s),c=a<=o;n=a;const u={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&c?(o-a)/l:void 0,event:i};u[e?"download":"upload"]=!0,t(u)}}const SJe=typeof XMLHttpRequest<"u",CJe=SJe&&function(t){return new Promise(function(n,r){let i=t.data;const a=rd.from(t.headers).normalize(),o=t.responseType;let s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}rt.isFormData(i)&&(Wc.isStandardBrowserEnv||Wc.isStandardBrowserWebWorkerEnv)&&a.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const p=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.set("Authorization","Basic "+btoa(p+":"+h))}const u=woe(t.baseURL,t.url);c.open(t.method.toUpperCase(),voe(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function d(){if(!c)return;const p=rd.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:t,request:c};vJe(function(g){n(g),l()},function(g){r(g),l()},v),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new kn("Request aborted",kn.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new kn("Network Error",kn.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let h=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const v=t.transitional||yoe;t.timeoutErrorMessage&&(h=t.timeoutErrorMessage),r(new kn(h,v.clarifyTimeoutError?kn.ETIMEDOUT:kn.ECONNABORTED,t,c)),c=null},Wc.isStandardBrowserEnv){const p=(t.withCredentials||wJe(u))&&t.xsrfCookieName&&yJe.read(t.xsrfCookieName);p&&a.set(t.xsrfHeaderName,p)}i===void 0&&a.setContentType(null),"setRequestHeader"in c&&rt.forEach(a.toJSON(),function(h,v){c.setRequestHeader(v,h)}),rt.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),o&&o!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",D9(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",D9(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=p=>{c&&(r(!p||p.type?new ex(null,t,c):p),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const f=xJe(u);if(f&&Wc.protocols.indexOf(f)===-1){r(new kn("Unsupported protocol "+f+":",kn.ERR_BAD_REQUEST,t));return}c.send(i||null)})},RC={http:gJe,xhr:CJe};rt.forEach(RC,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const TJe={getAdapter:t=>{t=rt.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let i=0;it instanceof rd?t.toJSON():t;function Zv(t,e){e=e||{};const n={};function r(c,u,d){return rt.isPlainObject(c)&&rt.isPlainObject(u)?rt.merge.call({caseless:d},c,u):rt.isPlainObject(u)?rt.merge({},u):rt.isArray(u)?u.slice():u}function i(c,u,d){if(rt.isUndefined(u)){if(!rt.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function a(c,u){if(!rt.isUndefined(u))return r(void 0,u)}function o(c,u){if(rt.isUndefined(u)){if(!rt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in e)return r(c,u);if(d in t)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u)=>i(R9(c),R9(u),!0)};return rt.forEach(Object.keys(t).concat(Object.keys(e)),function(u){const d=l[u]||i,f=d(t[u],e[u],u);rt.isUndefined(f)&&d!==s||(n[u]=f)}),n}const xoe="1.2.3",AU={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{AU[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const O9={};AU.transitional=function(e,n,r){function i(a,o){return"[Axios v"+xoe+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(e===!1)throw new kn(i(o," has been removed"+(n?" in "+n:"")),kn.ERR_DEPRECATED);return n&&!O9[o]&&(O9[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,o,s):!0}};function AJe(t,e,n){if(typeof t!="object")throw new kn("options must be an object",kn.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const a=r[i],o=e[a];if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new kn("option "+a+" must be "+l,kn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new kn("Unknown option "+a,kn.ERR_BAD_OPTION)}}const Ok={assertOptions:AJe,validators:AU},Gd=Ok.validators;class iA{constructor(e){this.defaults=e,this.interceptors={request:new A9,response:new A9}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Zv(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Ok.assertOptions(r,{silentJSONParsing:Gd.transitional(Gd.boolean),forcedJSONParsing:Gd.transitional(Gd.boolean),clarifyTimeoutError:Gd.transitional(Gd.boolean)},!1),i!==void 0&&Ok.assertOptions(i,{encode:Gd.function,serialize:Gd.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=a&&rt.merge(a.common,a[n.method]),o&&rt.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=rd.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,d=0,f;if(!l){const h=[P9.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),f=h.length,u=Promise.resolve(n);d{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},e(function(a,o,s){r.reason||(r.reason=new ex(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new IU(function(i){e=i}),cancel:e}}}const IJe=IU;function MJe(t){return function(n){return t.apply(null,n)}}function DJe(t){return rt.isObject(t)&&t.isAxiosError===!0}const Nk={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nk).forEach(([t,e])=>{Nk[e]=t});const PJe=Nk;function Eoe(t){const e=new OC(t),n=aoe(OC.prototype.request,e);return rt.extend(n,OC.prototype,e,{allOwnKeys:!0}),rt.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Eoe(Zv(t,i))},n}const ra=Eoe(TU);ra.Axios=OC;ra.CanceledError=ex;ra.CancelToken=IJe;ra.isCancel=_oe;ra.VERSION=xoe;ra.toFormData=dD;ra.AxiosError=kn;ra.Cancel=ra.CanceledError;ra.all=function(e){return Promise.all(e)};ra.spread=MJe;ra.isAxiosError=DJe;ra.mergeConfig=Zv;ra.AxiosHeaders=rd;ra.formToJSON=t=>boe(rt.isHTMLForm(t)?new FormData(t):t);ra.HttpStatusCode=PJe;ra.default=ra;const MU=ra,Soe=async t=>{const{data:e}=await Coe.post(sk,{accountType:t});return e},DU=async()=>{const{data:t}=await Ua.post(Hte,{});return t},Coe=MU.create({baseURL:$te,withCredentials:!0}),Ua=MU.create({baseURL:$te,withCredentials:!0});Ua.interceptors.response.use(async t=>{var r,i;const e=t.data;if(((r=e==null?void 0:e.result)==null?void 0:r.code)===11||(e==null?void 0:e.code)===11){const a=t.config;return await DU(),Ua.request(a)}return[10,12,97,98].includes((i=e==null?void 0:e.result)==null?void 0:i.code)&&await Toe().then(a=>{a.result.code===0&&(localStorage.clear(),window.location.href=Hv)}),t});const N9=t=>typeof t.aaType=="number"&&typeof t.controlNumber=="number"&&(typeof t.aaVenue=="number"||t.aaVenue===void 0)&&(typeof t.aaCount=="number"||t.aaCount===void 0),RJe=async t=>{const{data:e}=await Ua.post(Ute,{userInfo:{id:t.loginID,password:t.password}});return e},Toe=async()=>{const{data:t}=await Coe.post(c$e,{});return t},OJe=async t=>{const{data:e}=await Ua.post(Qte,{userInfo:{userId:t.userInfo.userId,currentPassword:t.userInfo.currentPassword,newPassword:t.userInfo.newPassword}});return e},NJe={admin:["admin"]},tx=()=>{const[t,e,n]=Dw({queryKey:Oje.userInfo}),r=_r();return{userInfo:t,setUserInfo:e,login:async s=>{const l=await RJe(s);return l.result.code===0&&e({loginID:s.loginID}),l},logout:async()=>{r(Hv),await Promise.all([Toe(),localStorage.clear(),n.resetQueries({queryKey:NJe.admin},{cancelRefetch:!0})])},changePassword:s=>FI(OJe,Object.assign({retry:!1},s)),queryClient:n}},LJe={currentPassword:"",newPassword:"",newConfirmPassword:"",errors:{currentPassword:"",newPassword:"",newConfirmPassword:""},alert:""},kJe=()=>{const{changePassword:t,userInfo:e}=tx(),n={currentPassword:"",newPassword:"",newConfirmPassword:""},r=_r();let i="";const o=Eo().state,s=d=>{if(d.errors.currentPassword===""&&d.errors.newPassword===""&&d.errors.newConfirmPassword===""){const f={userInfo:{userId:(e==null?void 0:e.loginID)||"",currentPassword:d.currentPassword,newPassword:d.newPassword}};l.mutateAsync(f)}},l=t({retry:!1,onError:()=>{i=jd[99],u.setFieldValue("alert",i)},onSuccess:d=>{d.result.code==0?o.loginFirst==!0?r(kf):r(-1):(i=jd[d.result.code],u.setFieldValue("alert",i))}}),u=cD({initialValues:LJe,onSubmit:s,validate:d=>{let f=!1;return d.currentPassword?p1.test(d.currentPassword)||(n.currentPassword=jd[2],f=!0):(n.currentPassword=jd[1],f=!0),d.newPassword?p1.test(d.newPassword)||(n.newPassword=jd[2],f=!0):(n.newPassword=jd[1],f=!0),d.newConfirmPassword?d.newPassword!==d.newConfirmPassword&&(n.newConfirmPassword=jd[3],f=!0):(n.newConfirmPassword=jd[1],f=!0),f?n:{}}});return{...u,hundlesubmit:s}},FJe={error:"rgba(255, 204, 255, 1)",warning:"rgb(255, 230, 153)"},$Je=ct.div` border-style: solid; border-width: 2px; border-color: ${({severity:t,theme:e})=>e.palette[t][e.mode]}; border-radius: 4px; padding: 8px; background-color: ${({severity:t})=>FJe[t]}; color: ${({severity:t,theme:e})=>e.palette[t][e.mode]}; display: flex; align-items: center; `,lm=C.forwardRef((t,e)=>E($Je,{...t,ref:e})),XO=ct.div` `,Aoe=()=>{const{values:t,handleSubmit:e,handleChange:n,handleBlur:r,touched:i,setFieldTouched:a,errors:o}=kJe(),s=!t.currentPassword||!t.newPassword||!t.newConfirmPassword||!!o.currentPassword||!!o.newPassword||!!o.newConfirmPassword,l=C.useMemo(()=>E(XO,{children:dh(o.currentPassword||"")}),[o.currentPassword]),c=C.useMemo(()=>E(XO,{children:dh(o.newPassword||"")}),[o.newPassword]),u=C.useMemo(()=>E(XO,{children:dh(o.newConfirmPassword||"")}),[o.newConfirmPassword]),d=ct(lm)` visibility: ${({children:h})=>h?"visible":"hidden"}; min-height: 60px; position: absolute; bottom: 3em; &.errorTip { width: max-content; align-self: center; border: none; } `,f=C.useMemo(()=>dh(t.alert||""),[t.alert]),p=(h,v)=>{a(v,!0,!1),n(h)};return re(Dae,{onSubmit:e,alert:t.alert,children:[E(li,{children:"現在のパスワード"}),E(dv,{name:"currentPassword",onChange:h=>p(h,"currentPassword"),onBlur:r("currentPassword"),placeholder:h_[3],value:t.currentPassword,error:!!o.currentPassword&&i.currentPassword,helperText:l,type:"password"}),E(li,{children:"新しいパスワード"}),E(dv,{name:"newPassword",onChange:h=>p(h,"newPassword"),onBlur:r("newPassword"),placeholder:h_[4],value:t.newPassword,error:!!o.newPassword&&i.newPassword,helperText:c,type:"password"}),E(li,{children:"新しいパスワード(確認)"}),E(dv,{name:"newConfirmPassword",onChange:h=>p(h,"newConfirmPassword"),onBlur:r("newConfirmPassword"),placeholder:h_[5],value:t.newConfirmPassword,error:!!o.newConfirmPassword&&i.newConfirmPassword,helperText:u,type:"password"}),E(d,{severity:"error",className:"errorTip",children:f}),E(Iae,{type:"submit",color:"primary",disabled:s,children:E(li,{children:"パスワード変更"})})]})};Aoe.defaultProps={};const PU=({children:t})=>{const e=Eo();return C.useEffect(()=>{window.scrollTo(0,0)},[e.pathname]),E(C.Fragment,{children:t})},RU=()=>{const{logout:t}=tx(),e=Eo(),n=_r();C.useEffect(()=>{(async()=>{try{switch((await Soe(1)).result.code){case 0:{e.pathname==Hv&&n(kf);break}case 11:{try{const i=await DU();i.result.code===12?await t():i.result.code===0&&e.pathname==Hv&&n(kf)}catch{await t()}break}default:await t()}}catch{await t()}})()},[e.pathname,e.search])},BJe={loginID:"",password:"",errors:{loginID:"",password:""},alert:""},UJe=()=>{const{login:t}=tx(),e=_r(),[n,r]=C.useState(!1),i={loginID:"",password:""};let a="";const o=async({loginID:c,password:u})=>{if(!n){if(r(!0),c||(i.loginID=Ys[1]),u?p1.test(u)||(i.password=Ys[3]):i.password=Ys[2],i.loginID===""&&i.password==="")try{const d=await t({loginID:c,password:u}),{result:f,userInfo:p}=d;switch(f.code){case 0:{localStorage.setItem("userId",c),(p==null?void 0:p.loginFirst)==1?e(iB,{state:{loginFirst:!0}}):e(kf);break}case 1:{i.loginID=Ys[1];break}case 2:{i.password=Ys[2];break}case 3:{i.password=Ys[3];break}case 4:{a=Ys[4];break}default:a=Ys[f.code]}}catch{a=Ys[99]}l.setFieldValue("errors",i),l.setFieldValue("alert",a),r(!1)}},l=cD({initialValues:BJe,onSubmit:o,validate:c=>{let u=!1;return c.loginID||(i.loginID=Ys[1],u=!0),c.password?p1.test(c.password)||(i.password=Ys[3],u=!0):(i.password=Ys[2],u=!0),u?i:{}}});return{...l,handleSubmitLoginForm:o,processing:n,setProcessing:r}},HJe=ct.div` `,VJe=ct.div` `,zJe=ct.div` `,Ioe=()=>{const{values:t,handleSubmit:e,handleChange:n,handleBlur:r,processing:i,touched:a,errors:o,setFieldTouched:s}=UJe(),l=i||!t.loginID||!t.password||!!o.loginID||!!o.password||!!t.errors.loginID||!!t.errors.password,c=C.useMemo(()=>E(VJe,{children:dh(o.loginID||t.errors.loginID||"")}),[t.errors.loginID,o.loginID]),u=C.useMemo(()=>E(zJe,{children:dh(o.password||t.errors.password||"")}),[t.errors.password,o.password]),d=C.useRef(null);C.useEffect(()=>{d.current&&d.current.focus()},[]);const f=ct(lm)` visibility: ${({children:b})=>b?"visible":"hidden"}; min-height: 60px; position: absolute; bottom: 3em; &.errorTip { width: max-content; align-self: center; border: none; } `,p=C.useMemo(()=>dh(t.alert||""),[t.alert]),h=(b,g)=>{s(g,!0,!1),n(b)},v=b=>{(b.charCode||b.keyCode)===13&&(b.stopPropagation(),e())};return E(HJe,{children:re(Dae,{onSubmit:e,alert:t.alert,children:[E(dv,{name:"loginID",ref:d,onChange:b=>h(b,"loginID"),onBlur:r("loginID"),onKeyUp:b=>v(b),placeholder:h_[1],value:t.loginID,error:(Boolean(t.errors.loginID)||!!o.loginID)&&a.loginID,helperText:c}),E(dv,{name:"password",onChange:b=>h(b,"password"),onBlur:r("password"),onKeyUp:b=>v(b),placeholder:h_[2],value:t.password,error:(Boolean(t.errors.password)||!!o.password)&&a.password,helperText:u,type:"password"}),E(f,{severity:"error",className:"errorTip",children:p}),E(Iae,{type:"submit",color:"primary",disabled:l,children:E(li,{children:"ログイン"})})]})})};Ioe.defaultProps={};const jJe=ct.div` padding: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 100vh; min-width: ${({theme:t})=>t.breakpoints.values.sm}; `,Moe=({children:t})=>E(jJe,{children:t}),cm=({title:t,children:e})=>re(gC,{children:[E("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"}),e||E(C.Fragment,{children:E("title",{children:t||Zie})})]}),GJe=({children:t})=>{RU();const e=rD()[1],n=Eo();return C.useEffect(()=>{e("")},[n.pathname,n.search]),E(oi,{children:t})},WJe=()=>E(PU,{children:E(GJe,{children:re(Moe,{children:[E(cm,{title:Hfe.name}),E(Aoe,{})]})})}),qJe="prd-1.0.13",YJe=ct.div` color: ${({theme:t})=>t.palette.grey[t.mode]}; position: absolute; bottom: 20px; right: 20px; `,JJe=()=>{const t=C.useMemo(()=>{const e=qJe;return e?`v${e}`:""},[]);return RU(),C.useEffect(()=>{},[]),E(PU,{children:re(Moe,{children:[E(cm,{title:$fe.name}),E(Ioe,{}),E(li,{children:E(YJe,{children:t})})]})})},QJe=ct.div` padding: 2em; text-align: center; `,OU=()=>re(QJe,{children:[E(cm,{title:"404 ERROR - ページが存在しません。"}),E(li,{variant:"h3",component:"h1",children:"404 ERROR"}),E(li,{variant:"h4",component:"div",children:"ページが存在しません。"})]}),KJe=()=>{const t=_r();return C.useEffect(()=>{t(Hv,{replace:!0})},[]),E(oi,{})},Doe="4em",XJe="565px",L9={auto:1,onePrice:2,stock:3,usec:4},um=()=>{const{logout:t,setUserInfo:e}=tx();return{regenerateToken:async()=>{try{const r=await DU();r.result.code===12?await t():e(r.userInfo)}catch{await t()}}}},ZJe=async t=>{const{data:e}=await Ua.post(Jte,t);return e},eQe=t=>({aaType:t.fileInfo.aaType,aaCount:t.fileInfo.aaCount,aaVenue:t.fileInfo.aaVenue,controlNumber:t.fileInfo.controlNumber}),Poe={getGetCarImagesQueryKeys:t=>["admin","std","carImages",eQe(t)]},Roe=(t,e)=>fr(Poe.getGetCarImagesQueryKeys(t),()=>ZJe(t),Object.assign({refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1,cacheTime:0},e)),tQe=async t=>{const{data:e}=await Ua.post(zte,t);return e},nQe=t=>({aaType:t.fileInfo.aaType,aaCount:t.fileInfo.aaCount,aaVenue:t.fileInfo.aaVenue,controlNumber:t.fileInfo.controlNumber}),NU={getGetInspectImageQueryKeys:t=>["admin","trs","inspectImage",nQe(t)]},LU=(t,e)=>fr(NU.getGetInspectImageQueryKeys(t),()=>tQe(t),Object.assign({refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1,cacheTime:0},e)),rQe=async t=>{const{data:e}=await Ua.post(Yte,t);return e},Ooe={getGetSellHistoryDetailsQueryKeys:t=>["admin","std","sellHistoryList",t,"sellHistoryDetails"],getSellHistoryDetailsPageErrorQueryKeys:t=>["admin","std","sellHistoryList",t,"sellHistoryDetails","mainError"]},iQe=(t,e)=>fr(Ooe.getGetSellHistoryDetailsQueryKeys(t),()=>rQe(t),Object.assign({refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1,cacheTime:0},e)),hD=(t,e)=>Dw({queryKey:Ooe.getSellHistoryDetailsPageErrorQueryKeys(t),initial:e}),Noe={CREATE:0,EDIT:1};class Loe extends Error{}const aQe=(t,e)=>{switch(e.type){case"closeInspectPopup":return{...t,inspectPopupOpen:!1};case"openInspectPopup":return{...t,inspectPopupOpen:!0,focusedInspectPopup:e.payload};case"changeFocusedInspectPopup":return{...t,focusedInspectPopup:e.payload};case"closeCarImagePopup":return{...t,carImagePopupOpen:!1};case"openCarImagePopup":return{...t,carImagePopupOpen:!0,focusedCarImagePopup:e.payload};case"changeFocusedCarImagePopup":return{...t,focusedCarImagePopup:e.payload};default:throw new Loe}},oQe=()=>{const[t]=Wi(),e={aaType:parseInt(String(t.get("aaType"))),aaCount:t.get("aaCount")?parseInt(String(t.get("aaCount"))):void 0,aaVenue:t.get("aaVenue")?parseInt(String(t.get("aaVenue"))):void 0,controlNumber:parseInt(String(t.get("controlNumber")))},n=_r(),r=()=>{history.length>1?n(-1):n(Bte)},[i,a]=hD({sellHistoryInfo:e},""),o=()=>{n(`${rB}?aaType=${e.aaType}&aaCount=${e.aaCount}&aaVenue=${e.aaVenue}&controlNumber=${e.controlNumber}&editType=${Noe.EDIT}`)},s={inspectPopupOpen:!1,focusedInspectPopup:"JP",carImagePopupOpen:!1,focusedCarImagePopup:0},[l,c]=C.useReducer(aQe,s);C.useEffect(()=>{a("")},[]);const{regenerateToken:u}=um(),d=Dl(),f={fileInfo:e},p=LU(f,{onSuccess:async P=>{var M;(P==null?void 0:P.result.code)===11?(await u(),await d.refetchQueries(NU.getGetInspectImageQueryKeys(f))):(P==null?void 0:P.result.code)!==0&&!((M=P==null?void 0:P.errorCode)!=null&&M.includes("VALE"))&&a(wf)},onError:()=>{a(wf)},enabled:N9(e)}),h={fileInfo:e},v=Roe(h,{onSuccess:async P=>{var M;(P==null?void 0:P.result.code)===11?(await u(),await d.refetchQueries(Poe.getGetCarImagesQueryKeys(h))):(P==null?void 0:P.result.code)!==0&&!((M=P==null?void 0:P.errorCode)!=null&&M.includes("VALE"))&&a(wf)},onError:()=>{a(wf)},enabled:N9(e)}),b=P=>()=>{c({type:"openInspectPopup",payload:P})},g=P=>()=>{c({type:"openCarImagePopup",payload:P})},y=()=>{c({type:"closeInspectPopup"})},w=()=>{c({type:"changeFocusedInspectPopup",payload:l.focusedInspectPopup==="JP"?"EN":"JP"})},x=()=>{c({type:"closeCarImagePopup"})},S=(P,M)=>{c({type:"changeFocusedCarImagePopup",payload:M})},[T,I]=C.useState(!1);return{goBack:r,errorMessage:i,sellHhistoryQuery:e,inspectQueryResult:p,carImagesQueryResult:v,...l,handleClickInspectThumbnail:b,handleClickCarThumbnail:g,handleCloseInspectPopup:y,handleChangeInspectPopupPage:w,handleCloseCarImagePopup:x,handleChangeCarImagePopupPage:S,handleTranslateEditButton:o,isSellInfoActive:T,setIsSellInfoActive:I}},sQe=async t=>{const{data:e}=await Ua.post(qte,t);return e},koe={getGetBiddingHistoryQueryKeys:t=>["admin","trs","sellHistoryList",t,"biddingHistory"],mainError:["admin","std","sellHistoryList","biddingHistory"]},lQe=(t,e)=>fr(koe.getGetBiddingHistoryQueryKeys(t),()=>sQe(t),Object.assign({refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1,cacheTime:0},e)),cQe=t=>{const e={biddingInfo:t},n=hD({sellHistoryInfo:e.biddingInfo})[1],{regenerateToken:r}=um(),i=Dl();return lQe(e,{onSuccess:async o=>{var s;(o==null?void 0:o.result.code)===11?(await r(),await i.refetchQueries(koe.getGetBiddingHistoryQueryKeys(e))):(o==null?void 0:o.result.code)!==0&&!((s=o==null?void 0:o.errorCode)!=null&&s.includes("VALE"))&&n(ps)},onError:()=>{n(ps)}})},nu=ct.th` color: rgba(255, 255, 255, 1); background-color: ${({theme:t})=>t.palette.primary.light}; text-align: left; min-width: 7em; vertical-align: top; padding: 1px 2px; border: 1px solid ${({theme:t})=>t.palette.white.light}; position: ${t=>t.stickyHead?"-webkit-sticky":""}; position: ${t=>t.stickyHead?"sticky":""}; top: ${t=>t.stickyHead?"0":""}; white-space: nowrap; font-size: 12px; `,id=ct.td` background-color: rgba(232, 234, 246, 1); vertical-align: top; padding: 1px 2px; border: 1px solid ${({theme:t})=>t.palette.white.light}; position: ${t=>t.stickyHead?"relative":""}; `,uQe=({stickyHead:t,children:e,...n})=>{const[r,i]=C.useState(!1),a=C.useRef(null);return C.useEffect(()=>{const o=()=>{a.current&&i(a.current.clientWidth{i(l[0].target.clientWidth{a.current&&s.disconnect(),window.removeEventListener("resize",o)}},[]),E(id,{stickyHead:t,...n,ref:a,title:r&&typeof e=="string"?e:void 0,children:e})},hp=ct.table` border-spacing: 0; word-break: keep-all; & ${nu} { color: rgba(255, 255, 255, 1); background-color: ${({theme:t})=>t.palette.primary.light}; text-align: left; min-width: 7em; vertical-align: top; border: 1px solid ${({theme:t})=>t.palette.white.light}; } & ${id} { background-color: rgba(232, 234, 246, 1); vertical-align: top; border: 1px solid ${({theme:t})=>t.palette.white.light}; } `;ct.div` height: 440px; display: flex; align-items: center; justify-content: center; `;const dQe=ct.div` background-color: rgba(232, 234, 246, 1); text-align: center; padding: 1px 2px; border: 1px solid ${({theme:t})=>t.palette.white.light}; `,Bh=({columns:t,rows:e,isLoading:n,stickyHead:r,saleInfoTable:i})=>{const a=C.useMemo(()=>E("thead",{children:E("tr",{children:t.filter(s=>s.show===void 0||s.show).map((s,l)=>s.renderColumn?E(nu,{stickyHead:r,children:s.renderColumn(s.headerName)},l):E(nu,{stickyHead:r,children:s.headerName},l))})}),[t]);return re(oi,{children:[re(hp,{style:{display:i?"table":"",width:i?"100%":""},children:[a,re("tbody",{style:{position:"relative"},children:[e.map((s,l)=>E("tr",{children:t.filter(c=>c.show===void 0||c.show).map((c,u)=>c.isVerticalHeaderColumn?E(nu,{stickyHead:r,children:c.render?c.render(s[c.field],s,l):s[c.field]},u):E(uQe,{stickyHead:r,children:c.render?c.render(s[c.field],s,l):s[c.field]},u))},l)),E(TM,{sx:{bgcolor:"rgba(0, 0, 0, 0.0)",zIndex:s=>s.zIndex.drawer+1},open:n===!0&&!e.length,children:E(IM,{color:"primary",size:60})})]})]}),!n&&!e.length&&E(dQe,{children:"レコードなし"})]})},fQe=t=>[{field:"userId",headerName:"顧客ID"},{field:"offeredPrice",headerName:"申込価格"},{field:"correctCount",headerName:"訂正回数"},{field:"offeredResult",headerName:"申込結果",render:(e,n)=>{switch(t){case 1:case 2:return`${String(e).padStart(4,"0")}${n.offeredResultName?`:${n.offeredResultName}`:""}`;case 3:const i=String(n.responseType).padStart(2,"0"),a=String(n.responseDetail).padStart(2,"0");return`${i}${a}${n.offeredResultName?`:${n.offeredResultName}`:""}`;case 4:return`${String(e)}${n.offeredResultName?`:${n.offeredResultName}`:""}`}}},{field:"winBidPrice",headerName:"落札価格"},{field:"receptDatetime",headerName:"受付日時",show:!1},{field:"receptDate",headerName:"受付日付"},{field:"receptSeconds",headerName:"受付時刻"}],pQe=ct.div` width: 100%; height: 6.5em; overflow-y: auto; & > ${hp} { width: 100%; font-size: 1em; table-layout: fixed; & > thead { & > tr { & > th { text-align: center; position: sticky; top: 0; left: 0; z-index: 1; } } } & > tbody { & > tr { & > td { overflow-wrap: anywhere; } } } } `,hQe=({sellHhistoryQuery:t})=>{const{data:e}=cQe(t);return E(pQe,{children:E(Bh,{stickyHead:!0,columns:fQe(t.aaType),rows:e!=null&&e.biddingHistoryList?e.biddingHistoryList.sort((n,r)=>r.receptDatetime-n.receptDatetime).map(n=>({receptDate:n.receptDatetime?fl(new Date(n.receptDatetime)):null,receptSeconds:n.receptDatetime?new Date(n.receptDatetime).toLocaleTimeString():null,responseType:n.responseType?n.responseType:null,responseDetail:n.responseDetail?n.responseDetail:null,...n})):[]})})},mQe=async t=>{const{data:e}=await Ua.post(h$e,t);return e},Foe={getGetBiddingResultQueryKeys:t=>["admin","trs","sellHistoryList",t,"biddingResult"],mainError:["admin","std","sellHistoryList","biddingResult"]},gQe=(t,e)=>fr(Foe.getGetBiddingResultQueryKeys(t),()=>mQe(t),Object.assign({refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1,cacheTime:0},e)),vQe=t=>{const e={biddingInfo:t},n=hD({sellHistoryInfo:e.biddingInfo})[1],{regenerateToken:r}=um(),i=Dl();return gQe(e,{onSuccess:async o=>{var s;(o==null?void 0:o.result.code)===11?(await r(),await i.refetchQueries(Foe.getGetBiddingResultQueryKeys(e))):(o==null?void 0:o.result.code)!==0&&!((s=o==null?void 0:o.errorCode)!=null&&s.includes("VALE"))&&n(ps)},onError:()=>{n(ps)}})},k9=({children:t,...e})=>{const[n,r]=C.useState(!1),i=C.useRef(null);return C.useEffect(()=>{const a=()=>{i.current&&r(i.current.clientWidth{r(s[0].target.clientWidth{i.current&&o.disconnect(),window.removeEventListener("resize",a)}},[]),E("div",{ref:i,title:n&&typeof t=="string"?t:void 0,...e,children:t})},yQe=t=>[{field:"eventDate",headerName:"AA開催日",show:t===1,render:e=>fl(new Date(e))},{field:"startDateAndEndDate",headerName:"日時",renderColumn:()=>{switch(t){case 2:return re(C.Fragment,{children:["公開開始日",E("br",{}),"公開終了日"]});case 3:case 4:return re(C.Fragment,{children:["掲載開始日",E("br",{}),"掲載終了日"]});default:return E(oi,{})}},show:t!==1},{field:"startDate",headerName:"開始日",show:!1},{field:"endDate",headerName:"終了日",show:!1},{field:"aaVenueAndNumber",headerName:"会場 出品番号",renderColumn:()=>t===1||t===2?re(C.Fragment,{children:["会場",E("br",{}),"出品番号"]}):"掲載番号"},{field:"yearAdAndMonth",headerName:"年式"},{field:"carNameAndGrade",headerName:"車名 グレード",renderColumn:()=>re(C.Fragment,{children:["車名",E("br",{}),"グレード"]})},{field:t===1?"startPrice":"price",headerName:t===1?"スタート(千円)":t===2?"販売価格(千円)":"掲載価格(千円)"},{field:"correctCount",headerName:"訂正回数"},{field:"offeredPrice",headerName:t===1?"不在申込価格(千円)":"申込価格(千円)"},{field:t===2?"offeredPrice":"winBidPrice",headerName:"落札価格(千円)"},{field:"status",headerName:"ステータス"},{field:"userId",headerName:"α会員番号"}],bQe=ct.div` width: 100%; & > ${hp} { overflow-wrap: anywhere; width: 100%; table-layout: fixed; font-size: 12px; & > thead { & > tr { & > th { text-align: center; white-space: pre-wrap; } } } & > tbody { & > tr { & > td { text-align: center; &:nth-child(4) { text-align: left; & > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } & > div:not(:first-child) { margin-top: 4px; } } } } } `,_Qe=({sellHhistoryQuery:t})=>{const{data:e}=vQe(t);return E(bQe,{children:E(Bh,{stickyHead:!0,columns:yQe(t.aaType),rows:e!=null&&e.biddingResult?[{...e.biddingResult,winBidPrice:e.biddingResult.winBidPrice?e.biddingResult.winBidPrice/1e3:e.biddingResult.winBidPrice,startPrice:e.biddingResult.startPrice?e.biddingResult.startPrice/1e3:e.biddingResult.startPrice,offeredPrice:e.biddingResult.offeredPrice&&t.aaType===3?e.biddingResult.offeredPrice/1e3:e.biddingResult.offeredPrice,carNameAndGrade:re(C.Fragment,{children:[E(k9,{children:e.biddingResult.carName}),E(k9,{children:e.biddingResult.grade})]}),aaVenueAndNumber:re(C.Fragment,{children:[typeof t.aaVenue=="number"?E("div",{style:{whiteSpace:"nowrap"},children:eu[t.aaVenue]}):"",E("div",{children:t.controlNumber})]}),startDateAndEndDate:t.aaType===3&&e.biddingResult.startDate&&e.biddingResult.endDate?re(C.Fragment,{children:[E("div",{children:fl(new Date(e.biddingResult.startDate))}),E("div",{children:fl(new Date(e.biddingResult.endDate))})]}):(t.aaType===2||t.aaType===4)&&e.biddingResult.startDatetime&&e.biddingResult.endDatetime?re(C.Fragment,{children:[E("div",{children:lk(new Date(e.biddingResult.startDatetime)).slice(2)}),E("div",{children:lk(new Date(e.biddingResult.endDatetime)).slice(2)})]}):"",yearAdAndMonth:(t.aaType===1||t.aaType===2)&&e.biddingResult.yearEraName!=null&&e.biddingResult.yearJapanese!=null?re(C.Fragment,{children:[E("div",{children:`${e.biddingResult.yearEraName}${e.biddingResult.yearJapanese.toString()}`}),E("div",{children:e.biddingResult.registMonth?`${e.biddingResult.registMonth}月`:""})]}):re(C.Fragment,{children:[E("div",{children:e.biddingResult.yearAd?e.biddingResult.yearAd:""}),E("div",{children:e.biddingResult.registMonth?`${e.biddingResult.registMonth}月`:""})]})}]:[]})})},Lk=(t,e)=>(e||"row").startsWith("row")?`${t*8}px`:"revert",kk=(t,e)=>(e||"row").startsWith("column")?`${t*8}px`:"revert",aa=ct.div` display: flex; flex-direction: ${({direction:t})=>t}; & > *:not(:first-child) { margin-left: ${({spacing:t,direction:e})=>Lk(t,e)}; margin-top: ${({spacing:t,direction:e})=>kk(t,e)}; } `,b1=C.forwardRef((t,e)=>E(aa,{...t,ref:e}));b1.defaultProps={spacing:0,direction:"row"};const wQe=ct(li)` margin-top: 0; margin-right: 0; margin-bottom: 0; font-weight: bold; `,xQe=({children:t})=>E(wQe,{component:"h2",variant:"h5",children:t}),$oe=ct(aa)` max-width: 100%; `,Hg=({title:t,children:e})=>re($oe,{spacing:0,direction:"column",children:[E(xQe,{children:t}),e]}),EQe=ct.div` border: solid 1px ${({theme:t})=>t.palette.disabled.light}; width: 100%; height: 100%; border-radius: 4px; display: flex; justify-content: center; align-items: center; `,SQe=ct.div` width: fit-content; height: fit-content; color: ${({theme:t})=>t.palette.disabled.light}; font-size: ${({theme:t})=>t.typography.h3.fontSize}; font-weight: 700; &::before { content: attr(title); } `,Boe=C.forwardRef((t,e)=>E(EQe,{children:E(SQe,{title:"No Image",ref:e})})),CQe=ct(aa)` height: 100%; width: 100%; text-align: center; justify-content: start; align-items: center; `,TQe=ct.div` max-height: calc(100% - 8px - ${({wordHeight:t})=>t}px); max-width: 95vw; width: ${({image:t})=>t?"fit-content":"100%"}; `,AQe=ct.img` width: auto; height: auto; max-width: 100%; max-height: 100%; &:hover { cursor: ${({onClick:t})=>t?"pointer":"initial"}; } `,IQe=ct(lm)` color: ${({theme:t})=>t.palette.error.light}; font-size: ${({theme:t})=>t.typography.caption.fontSize}; margin-top: 1em; padding: 4px; text-align: left; ${({showAll:t})=>t?"":` min-height: 4.5em; max-height: 4.5em; overflow: hidden; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical;`} `,aA=({word:t,image:e,onClickImage:n,showAll:r})=>{const i="InspectImage"+Math.random(),a="wordId"+Math.random(),o=new Image,s=C.useRef(null),l=C.useRef(null),[c,u]=C.useState(void 0),[d,f]=C.useState(0),[p,h]=C.useState(0),[v,b]=C.useState({width:0,height:0}),g=y=>{const w=y.target;b({width:w.innerWidth,height:w.innerHeight})};return C.useEffect(()=>{let y=null;return s.current&&(y=new ResizeObserver(w=>{w[0].target.clientHeight{s.current&&y&&y.disconnect(),window.removeEventListener("resize",g)}},[]),e&&(o.src=e,o.onload=()=>{h(o.width)}),C.useEffect(()=>{var x;const y=(x=document.getElementById(i))==null?void 0:x.clientWidth,w=document.getElementById(a);w&&y&&(w.style.width=`${y}px`)},[p,i,v.width,v.height]),re(CQe,{id:"InspectInnerStack",direction:"column",spacing:1,children:[E(TQe,{id:"InspectImageBox",image:e,ref:l,wordHeight:d,children:e?E(AQe,{id:i,src:e,onClick:n}):E(Boe,{})}),E(IQe,{id:a,severity:"warning",title:c,showAll:Boolean(r),ref:s,children:t})]})},MQe=[{field:"updatedDatetime",headerName:"更新日時"},{field:"itemName",headerName:"項目名"},{field:"before",headerName:"更新前"},{field:"after",headerName:"更新後"}],DQe=(t,e)=>{const n=hD({sellHistoryInfo:t})[1],{data:r}=iQe({sellHistoryInfo:t},{onSuccess:s=>{e(s==null?void 0:s.isCurrentActive)},onError:()=>{n(ps)}}),{rows:i,rowIndexesUpdatedDatetimeExists:a}=C.useMemo(()=>{if(r!=null&&r.sellInfoHistoryList){const s=r.sellInfoHistoryList.sort((d,f)=>f.updatedDateTime-d.updatedDateTime),c=s.map((d,f)=>({differences:f===s.length-1?Object.entries(d).filter(([p])=>p!=="updatedDatetime").map(([p,h])=>[p,void 0,h]):Object.entries(d).filter(([p,h])=>p!=="updatedDatetime"&&h!==s[f+1][p]).map(([p,h])=>[p,s[f+1][p],h]),updatedDatetime:d.updatedDateTime})).reduce((d,f)=>(f.differences.forEach(([p,h,v],b)=>{!(h==null&&v==null)&&p!="id"&&p!="createdDateTime"&&p!="updatedDateTime"&&p!="latestFlag"&&d.push({itemName:B6[p]?B6[p]:p,before:h,after:v,updatedDatetime:b===3&&f.updatedDatetime?lk(new Date(f.updatedDatetime)):void 0})}),d),[]),u=c.reduce((d,f,p)=>(f.updatedDatetime&&d.push(p),d),[]);return{rows:c,rowIndexesUpdatedDatetimeExists:u}}else return{rows:[],rowIndexesUpdatedDatetimeExists:[]}},[r]),o=C.useRef(null);return C.useEffect(()=>{const s=new MutationObserver(l=>{l.forEach(c=>{c.target.nodeType===1&&c.type==="childList"&&Array.from(c.addedNodes).forEach(d=>{d.localName==="tr"&&d.querySelectorAll(":scope > td").forEach(f=>{f.clientWidth{s.disconnect()}},[]),{rows:i,columns:MQe,rowIndexesUpdatedDatetimeExists:a,tableContainerRef:o}},PQe=ct.div` width: 100%; overflow-y: scroll; max-height: 17em; & > ${hp} { width: 100%; table-layout: fixed; font-size: 1em; & > thead { & > tr { & > th { text-align: center; position: sticky; top: 0; left: 0; z-index: 1; &:first-child { } } } } & > tbody { & > tr { & > td { overflow-wrap: anywhere; &:first-child { border: 1px solid ${({theme:t})=>t.palette.white.light}; border-top: none; border-bottom: none; white-space: nowrap; } &:nth-child(3), :nth-child(4) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } &${({rowIndexesUpdatedDatetimeExists:t})=>t.map(e=>`:nth-child(${e+1})`).join(",")} { & > td { &:first-child { border: 1px solid ${({theme:t})=>t.palette.white.light}; border-bottom: none; } } } &${({rowIndexesUpdatedDatetimeExists:t})=>t.map(e=>`:nth-child(${e})`).join(",")} { & > td { &:first-child { border: 1px solid ${({theme:t})=>t.palette.white.light}; border-top: none; } } } } } } `,RQe=({sellHhistoryQuery:t,setIsSellInfoActive:e})=>{const{rows:n,columns:r,rowIndexesUpdatedDatetimeExists:i,tableContainerRef:a}=DQe(t,e);return E(PQe,{rowIndexesUpdatedDatetimeExists:i,ref:a,children:E(Bh,{columns:r,rows:n,stickyHead:!0})})},OQe=ct.div` background-image: url(${({image:t})=>t}); background-size: cover; background-position: 50%; &:hover { cursor: pointer; } `,NQe=C.forwardRef((t,e)=>E(OQe,{...t,ref:e})),LQe=ct.div` display: ${({open:t})=>t?"block":"none"}; top: 0; left: 0; position: fixed; width: 100%; height: 100%; `;var kU={},kQe=hn;Object.defineProperty(kU,"__esModule",{value:!0});var Uoe=kU.default=void 0,FQe=kQe(bn()),$Qe=_n;Uoe=kU.default=(0,FQe.default)((0,$Qe.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");var FU={},BQe=hn;Object.defineProperty(FU,"__esModule",{value:!0});var $U=FU.default=void 0,UQe=BQe(bn()),HQe=_n;$U=FU.default=(0,UQe.default)((0,HQe.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");const VQe=ct(LQe)` background-color: rgba(127, 127, 127, 0.9); padding: 1px 2.5em; display: ${({open:t})=>t?"flex":"none"}; flex-direction: row; justify-content: center; align-items: center; width: 100%; height: 100%; z-index: 1; `,zQe=ct.div` width: 100%; position: relative; display: flex; flex-direction: row; justify-content: center; align-items: center; `,jQe=ct.div` width: 100%; height: calc(100% - 5em); display: flex; justify-content: center; align-items: center; ${({show:t})=>t?"":"position: fixed;"} ${({show:t})=>t?"":"top: 200%;"}; `,GQe=ct.div` height: 95vh; `,BU=({open:t,showedChildIndex:e,children:n,onChangeShowedChildrenIndex:r,onClose:i,showCloseButton:a})=>{const o=C.Children.toArray(n),s=e===0?o.length-1:e-1,l=e===o.length-1?0:e+1;C.useEffect(()=>(document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}),[]);const c=u=>{var p;const f=u.target.id;(f.includes("content-box")||f.includes("StyledModal"))&&((p=document.getElementById("popup-closeButton"))==null||p.click())};return E(VQe,{id:"StyledModal",open:t,children:re(zQe,{id:"inner-box",children:[a&&E(ir,{"aria-label":"close",style:{color:"white",position:"absolute",top:"1px",right:"-1em"},id:"popup-closeButton",className:"material-symbols-outlined",onClick:i,title:"閉じる",children:E(op,{style:{fontSize:30}})}),E(ir,{id:"show-child-button-1",style:{color:"white",position:"absolute",top:"50%",left:"-1em"},disabled:o.length===1,onClick:r?u=>r(u,s):void 0,children:E(Uoe,{id:"ArrowBackIosNewIcon",style:{fontSize:30}})}),C.Children.map(n,(u,d)=>E(jQe,{id:"content-box "+d,show:e===d,children:E(GQe,{id:"content-box-child"+d,children:u})},d)),E(ir,{id:"show-child-button-2",style:{color:"white",position:"absolute",top:"50%",right:"-1em"},disabled:o.length===1,onClick:r?u=>r(u,l):void 0,children:E($U,{id:"ArrowForwardIosIcon",style:{fontSize:30}})})]})})},WQe=ct.div` height: 100%; display: flex; align-items: center; justify-content: center; `,Hoe=({inspectProps:t,...e})=>E(BU,{...e,children:t.map(({image:n,word:r},i)=>E(WQe,{children:E(aA,{image:n,word:r,showAll:!0})},i))}),Voe="11em",e0="4em",qQe=ct.header` background-color: ${({color:t,theme:e})=>e.palette[t][e.mode]}; color: ${({color:t,theme:e})=>t?e.palette.white.light:"inherit"}; height: ${e0}; width: 100%; position: absolute; top: 0px; left: 0px; padding: 0.5em 1.5em; display: flex; justify-content: space-between; `,zoe=t=>E(qQe,{...t});zoe.defaultProps={color:"primary"};const YQe=ct.ul` border-top: 1px solid ${({theme:t})=>t.palette.white.light}; width: ${Voe}; list-style: none; padding-inline-start: 0; margin-block-start: 0; margin-block-end: 0; padding: 1em 0; background-color: ${({theme:t,color:e})=>t.palette[e].light}; border-right: 1px solid ${({theme:t})=>t.palette.white.light}; min-height: calc(100vh - ${e0}); `,JQe=ct.li` width: 100%; transition-duration: 0.2s; background-color: ${({active:t,theme:e})=>t?"rgba(143, 170, 220, 0.5)":e.palette.primary.light}; &:hover { background-color: rgba(143, 170, 220, 0.5); } &:hover { opacity: 0.5; cursor: pointer; } `,QQe=ct.a` display: block; width: 100%; padding: 1em; color: ${({theme:t})=>t.palette.white.light}; text-decoration: none; `;ct.div` transition-duration: 0.2s; background-color: ${({active:t,theme:e})=>t?"rgba(143, 170, 220, 0.5)":e.palette.primary.light}; &:hover { background-color: rgba(143, 170, 220, 0.5); } `;const joe=({color:t})=>{const e=_r(),n=Eo(),r=i=>a=>{a.preventDefault(),e(i)};return E(YQe,{color:t,children:Vfe.map((i,a)=>E(C.Fragment,{children:i.showOnMenu&&E(JQe,{color:t,active:i.active?i.active(n):i.path===n.pathname,children:E(QQe,{href:i.path,onClick:r(i.path),children:E(li,{children:i.name})})})},a))})};joe.defaultProps={color:"primary"};const KQe=ct.div` height: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center; color: ${({theme:t})=>t.palette.white.light}; & > *:last-child { margin-left: 1em; } `,XQe=ct.img` height: 2em; `,Goe=({image:t,loginID:e,...n})=>re(KQe,{...n,children:[E(XQe,{src:t}),re(li,{children:["ID: ",e]})]}),ZQe="/alpha/static";Goe.defaultProps={image:`${ZQe}/assets/images/avatar.png`};const eKe=ct.li` background-color: ${({theme:t})=>t.palette.white.light}; `,Fk=t=>E(eKe,{...t});Fk.defaultProps={};const Woe=ct.div` width: fit-content; list-style: none; padding: 0; background-color: ${({theme:t})=>t.palette.white.light}; > *:not(:last-child) { border-bottom: 1px solid ${({theme:t})=>t.palette.grey.light}; } border: 1px solid ${({theme:t})=>t.palette.grey.light}; `;Woe.defaultProps={};const qoe=ct(ho)` width: fit-content; height: fit-content; background-color: inherit; border: none; &:hover { opacity: 0.5; } `,F9=ct(qoe)` color: ${({theme:t})=>t.palette.black.light}; &:hover { background-color: ${({theme:t})=>Xte(t.palette.grey.light,{opacity:.5})}; } `,tKe=ct.div` height: 100%; width: fit-content; display: flex; align-items: center; `,nKe=ct.div` display: ${({show:t})=>t?"block":"none"}; `,rKe=({id:t})=>{const{userInfo:e,logout:n,setUserInfo:r}=tx();e!=null&&e.loginID?localStorage.setItem("userId",(e==null?void 0:e.loginID)||""):r({loginID:localStorage.getItem("userId")||""});const[i,a]=C.useState(!1),o=()=>{a(l=>!l)},s=_r();return re(tKe,{children:[E(qoe,{id:t,onClick:o,style:{padding:"0px"},children:E(Goe,{loginID:(e==null?void 0:e.loginID)||""})}),E(nKe,{show:i,children:re(Woe,{children:[E(Fk,{children:E(F9,{"area-aria-labelledby":t,onClick:()=>n(),children:"ログアウト"})}),E(Fk,{children:E(F9,{"area-aria-labelledby":t,onClick:()=>s(iB,{state:{loginFirst:!1}}),children:"パスワード変更"})})]})})]})},iKe=ct(zoe)` height: ${e0}; `,aKe=ct.div` height: 100%; display: flex; align-items: center; `,oKe=ct.div` display: flex; justify-content: center; align-items: center; height: 2em; & img { height: 100%; } `,sKe=ct.img` display: block; height: 100%; margin-right: 1em; `,lKe=ct.div` height: fit-content; `,Yoe=()=>{const[t]=rD();return re(iKe,{children:[E(aKe,{children:re(oKe,{children:[E(sKe,{src:"/alpha/static/assets/images/logo.png"}),E(lKe,{children:"TTC-α管理者用"})]})}),t&&E(lm,{severity:"error",children:t}),E(rKe,{id:"userInfoButton"})]})};Yoe.defaultProps={color:"primary"};const cKe=ct.div` display: flex; width: 100%; min-height: calc(100% - ${e0}); margin-top: ${e0}; `,uKe=ct.main` padding: 0.8em; width: calc(100% - ${Voe}); overflow: auto; `,mD=({children:t})=>{RU();const e=rD()[1],n=Eo();return C.useEffect(()=>{e("")},[n.pathname,n.search]),re(cKe,{children:[E(Yoe,{}),E(joe,{}),E(uKe,{children:t})]})},dKe=ct(aa)` width: 100%; height: 100%; `,fKe=ct(aa)` width: 100%; min-height: ${Doe}; display: flex; align-items: center; justify-content: space-between; `,pKe=ct(lm)` width: fit-content; `,hKe=ct(aa)` justify-content: start; min-height: calc(100% - ${Doe} - 1em); `,mKe=ct(aa)` min-width: ${XJe}; width: 50%; `,gKe=ct(aa)` width: 50%; & > ${$oe} { & > *:nth-child(2) { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; & > *:not(:first-child) { margin: 0; } } & > *:nth-child(3) { height: calc((100% / 6 - 8px) / (1024 / 768) * 2); overflow-y: auto; } } `,vKe=ct(b1)` width: 100%; flex-wrap: wrap; justify-content: start; align-items: start; margin-top: 1em !important; & > * { margin: calc(${kk(1,"column")} / 2) !important; width: calc(100% / 6 - ${kk(1,"column")}); aspect-ratio: 1024 / 768; } `,yKe=ct.img` width: auto; max-height: 100%; `,bKe=()=>{var y,w,x,S,T,I,P,M,N,R,O,D,L,k,B,H,$,W;const{goBack:t,errorMessage:e,sellHhistoryQuery:n,inspectQueryResult:r,inspectPopupOpen:i,focusedInspectPopup:a,carImagePopupOpen:o,focusedCarImagePopup:s,carImagesQueryResult:l,handleClickInspectThumbnail:c,handleClickCarThumbnail:u,handleCloseInspectPopup:d,handleChangeInspectPopupPage:f,handleCloseCarImagePopup:p,handleChangeCarImagePopupPage:h,handleTranslateEditButton:v,isSellInfoActive:b,setIsSellInfoActive:g}=oQe();return E(PU,{children:re(mD,{children:[E(cm,{title:"出品情報履歴詳細"}),re(dKe,{spacing:2,direction:"column",children:[re(fKe,{spacing:1,children:[E(ho,{componentSize:"small",color:"lightGrey",onClick:t,children:"戻る"}),e&&E(pKe,{severity:"error",children:e}),b&&E(ho,{color:"primary",componentSize:"medium",onClick:v,children:"翻訳修正"})]}),re(hKe,{spacing:2,children:[re(mKe,{direction:"column",spacing:1,children:[E(Hg,{title:"申込結果",children:E(_Qe,{sellHhistoryQuery:n})}),E(Hg,{title:"申込履歴",children:E(hQe,{sellHhistoryQuery:n})}),E(Hg,{title:"出品情報履歴",children:E(RQe,{sellHhistoryQuery:n,setIsSellInfoActive:g})})]}),E(gKe,{spacing:1,direction:"column",children:re(Hg,{title:"状態票",children:[r.isFetched&&re(aa,{spacing:1,children:[E(aA,{image:(w=(y=r.data)==null?void 0:y.fileInfo)==null?void 0:w.pathJP,word:(S=(x=r.data)==null?void 0:x.fileInfo)==null?void 0:S.correctionJP,onClickImage:c("JP")}),E(aA,{image:(I=(T=r.data)==null?void 0:T.fileInfo)==null?void 0:I.pathEN,word:(M=(P=r.data)==null?void 0:P.fileInfo)==null?void 0:M.correctionEN,onClickImage:c("EN")})]}),l.isFetched&&E(vKe,{children:(N=l.data)!=null&&N.filePathList?l.data.filePathList.map((K,le)=>E(NQe,{image:K,onClick:u(le)},le)):[]})]})})]})]}),r.data&&i&&E(Hoe,{open:i,showedChildIndex:a==="JP"?0:1,inspectProps:[{image:(O=(R=r.data)==null?void 0:R.fileInfo)==null?void 0:O.pathJP,word:(L=(D=r.data)==null?void 0:D.fileInfo)==null?void 0:L.correctionJP},{image:(B=(k=r.data)==null?void 0:k.fileInfo)==null?void 0:B.pathEN,word:($=(H=r.data)==null?void 0:H.fileInfo)==null?void 0:$.correctionEN}],showCloseButton:!0,onClose:d,onChangeShowedChildrenIndex:f}),((W=l.data)==null?void 0:W.filePathList)&&o&&E(BU,{open:o,showedChildIndex:s,onClose:p,onChangeShowedChildrenIndex:h,showCloseButton:!0,children:l.data.filePathList.map((K,le)=>E(yKe,{src:K},le))})]})})};var UU={},_Ke=hn;Object.defineProperty(UU,"__esModule",{value:!0});var Joe=UU.default=void 0,wKe=_Ke(bn()),xKe=_n;Joe=UU.default=(0,wKe.default)((0,xKe.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft");var HU={},EKe=hn;Object.defineProperty(HU,"__esModule",{value:!0});var Qoe=HU.default=void 0,SKe=EKe(bn()),CKe=_n;Qoe=HU.default=(0,SKe.default)((0,CKe.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight");const TKe=ct.div` display: flex; align-items: center; height: fit-content; `,$9=ct.button` border: none; margin: 0; padding: 0; background-color: transparent; &:disabled { color: ${({theme:t})=>t.palette.disabled[t.mode]}; &:hover { opacity: unset; cursor: initial; } } &:hover { cursor: pointer; opacity: 0.8; } `,VU=({offset:t,limit:e,count:n,aatype:r,totalCount:i,onClick:a,previousPagerButtonProps:o,nextPagerButtonProps:s})=>{const l=t*e+1,c=Math.min(t*e+n,i);return re(TKe,{children:[E($9,{disabled:t===0,title:"前のページへ",onClick:u=>a(u,"previous"),...o||{},children:E(Joe,{children:"chevron_left"})}),re(li,{children:[l,"-",c,"/",i!==c&&r===1?"100+":i]}),E($9,{disabled:t*e+e>=i,title:"次のページへ",onClick:u=>a(u,"next"),...s||{},children:E(Qoe,{children:"chevron_right"})})]})};VU.defaultProps={onClick:()=>{}};const AKe=()=>{const t=_r();return{handleClick:n=>r=>{r.preventDefault(),n&&t(n)}}},IKe={href:"#",children:"TEXT"},MKe=({onClick:t,...e})=>{const{handleClick:n}=AKe();return E("a",{...e,onClick:t||n(e.href)})},zU=t=>E(MKe,{...t});zU.args=IKe;const Vg=100,DKe=0,PKe="1000px",RKe=10,OKe=50,NKe=50,LKe=20,kKe=50,Koe={1:"AA",2:"ワンプラ",3:"ストプラ",4:"ユーロケ"},FKe=(t,e)=>{t.ctrlKey?(t.preventDefault(),window.open(e,"_blank")):window.location.href=e},$Ke=[{field:"aaType",headerName:"AA種別",render:t=>t>0?Koe[t]:void 0},{field:"aaVenue",headerName:"AA会場",render:t=>eu[t]},{field:"aaCount",headerName:"AA回数"},{field:"eventDate",headerName:"開催日/掲載開始日",render:t=>fl(new Date(t))},{field:"controlNumber",headerName:"出品番号/掲載番号",render:(t,e)=>E(zU,{href:e.url,onClick:n=>{FKe(n,e.url)},children:t})},{field:"userId",headerName:"ユーザーID"},{field:"makerCode",headerName:"メーカー",render:t=>kh[t]},{field:"carName",headerName:"車名"},{field:"model",headerName:"型式"},{field:"grade",headerName:"グレード"}],BKe=t=>({rows:t||[],columns:$Ke}),UKe=ct.div` width: 100%; max-width: 100%; & ${hp} { table-layout: fixed; max-width: 100%; width: 100%; overflow-wrap: wrap; & tr { & > ${id}:nth-child(8), ${id}:nth-child(9), ${id}:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } } `,HKe=t=>{const{rows:e,columns:n}=BKe(t.sellInfoList||[]),r=t.isLoading;return E(UKe,{children:E(Bh,{columns:n,rows:e,isLoading:r})})},jU=ct.div` display: flex; flex-direction: column; width: fit-content; & > label${li} { margin-left: 1em; } `,Yp=C.forwardRef(({label:t,id:e,...n},r)=>re(jU,{children:[E(li,{component:"label",variant:"subtitle2",htmlFor:e,children:t}),E(Mae,{id:e,ref:r,...n})]})),VKe=()=>{const t=new Date;return fl(aB(t,-7))},zKe=()=>{const t=new Date;return fl(t)},Ql={searchOption:{aaType:1,startDate:VKe(),endDate:zKe()},listInfo:{limit:Vg,offset:DKe}},jKe=async t=>{const{data:e}=await Ua.post(Gte,t);return e},GKe=t=>({listInfo:{offset:t.listInfo.offset,limit:t.listInfo.limit},searchOption:{aaType:t.searchOption.aaType,aaVenue:t.searchOption.aaVenue,aaCount:t.searchOption.aaCount,startDate:t.searchOption.startDate,endDate:t.searchOption.endDate,controlNumber:t.searchOption.controlNumber,model:t.searchOption.model,chassis:t.searchOption.chassis,keyword:t.searchOption.keyword}}),v_={getGetSellHistoryListQueryKeys:t=>["admin","trs","sellHistoryList",GKe(t)],mainError:["admin","trs","sellHistoryList","mainError"]},WKe=(t,e)=>fr(v_.getGetSellHistoryListQueryKeys(t),()=>jKe(t),Object.assign({refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1,cacheTime:0},e)),Xoe=t=>Dw({queryKey:v_.mainError,initial:t}),qKe={},YKe=Object.freeze(Object.defineProperty({__proto__:null,default:qKe},Symbol.toStringTag,{value:"Module"})),JKe=Ms(YKe);var GU=typeof Map=="function"&&Map.prototype,ZO=Object.getOwnPropertyDescriptor&&GU?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,oA=GU&&ZO&&typeof ZO.get=="function"?ZO.get:null,B9=GU&&Map.prototype.forEach,WU=typeof Set=="function"&&Set.prototype,eN=Object.getOwnPropertyDescriptor&&WU?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,sA=WU&&eN&&typeof eN.get=="function"?eN.get:null,U9=WU&&Set.prototype.forEach,QKe=typeof WeakMap=="function"&&WeakMap.prototype,y_=QKe?WeakMap.prototype.has:null,KKe=typeof WeakSet=="function"&&WeakSet.prototype,b_=KKe?WeakSet.prototype.has:null,XKe=typeof WeakRef=="function"&&WeakRef.prototype,H9=XKe?WeakRef.prototype.deref:null,ZKe=Boolean.prototype.valueOf,eXe=Object.prototype.toString,tXe=Function.prototype.toString,nXe=String.prototype.match,qU=String.prototype.slice,xf=String.prototype.replace,rXe=String.prototype.toUpperCase,V9=String.prototype.toLowerCase,Zoe=RegExp.prototype.test,z9=Array.prototype.concat,Nc=Array.prototype.join,iXe=Array.prototype.slice,j9=Math.floor,$k=typeof BigInt=="function"?BigInt.prototype.valueOf:null,tN=Object.getOwnPropertySymbols,Bk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,t0=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Xa=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===t0||"symbol")?Symbol.toStringTag:null,ese=Object.prototype.propertyIsEnumerable,G9=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function W9(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Zoe.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-j9(-t):j9(t);if(r!==t){var i=String(r),a=qU.call(e,i.length+1);return xf.call(i,n,"$&_")+"."+xf.call(xf.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return xf.call(e,n,"$&_")}var Uk=JKe,q9=Uk.custom,Y9=nse(q9)?q9:null,aXe=function t(e,n,r,i){var a=n||{};if(df(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(df(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=df(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(df(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(df(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ise(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return s?W9(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return s?W9(e,c):c}var u=typeof a.depth>"u"?5:a.depth;if(typeof r>"u"&&(r=0),r>=u&&u>0&&typeof e=="object")return Hk(e)?"[Array]":"[Object]";var d=EXe(a,r);if(typeof i>"u")i=[];else if(rse(i,e)>=0)return"[Circular]";function f(D,L,k){if(L&&(i=iXe.call(i),i.push(L)),k){var B={depth:a.depth};return df(a,"quoteStyle")&&(B.quoteStyle=a.quoteStyle),t(D,B,r+1,i)}return t(D,a,r+1,i)}if(typeof e=="function"&&!J9(e)){var p=hXe(e),h=tS(e,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(h.length>0?" { "+Nc.call(h,", ")+" }":"")}if(nse(e)){var v=t0?xf.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Bk.call(e);return typeof e=="object"&&!t0?rb(v):v}if(_Xe(e)){for(var b="<"+V9.call(String(e.nodeName)),g=e.attributes||[],y=0;y",b}if(Hk(e)){if(e.length===0)return"[]";var w=tS(e,f);return d&&!xXe(w)?"["+Vk(w,d)+"]":"[ "+Nc.call(w,", ")+" ]"}if(lXe(e)){var x=tS(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!ese.call(e,"cause")?"{ ["+String(e)+"] "+Nc.call(z9.call("[cause]: "+f(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nc.call(x,", ")+" }"}if(typeof e=="object"&&o){if(Y9&&typeof e[Y9]=="function"&&Uk)return Uk(e,{depth:u-r});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(mXe(e)){var S=[];return B9&&B9.call(e,function(D,L){S.push(f(L,e,!0)+" => "+f(D,e))}),Q9("Map",oA.call(e),S,d)}if(yXe(e)){var T=[];return U9&&U9.call(e,function(D){T.push(f(D,e))}),Q9("Set",sA.call(e),T,d)}if(gXe(e))return nN("WeakMap");if(bXe(e))return nN("WeakSet");if(vXe(e))return nN("WeakRef");if(uXe(e))return rb(f(Number(e)));if(fXe(e))return rb(f($k.call(e)));if(dXe(e))return rb(ZKe.call(e));if(cXe(e))return rb(f(String(e)));if(!sXe(e)&&!J9(e)){var I=tS(e,f),P=G9?G9(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",N=!P&&Xa&&Object(e)===e&&Xa in e?qU.call(mp(e),8,-1):M?"Object":"",R=P||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",O=R+(N||M?"["+Nc.call(z9.call([],N||[],M||[]),": ")+"] ":"");return I.length===0?O+"{}":d?O+"{"+Vk(I,d)+"}":O+"{ "+Nc.call(I,", ")+" }"}return String(e)};function tse(t,e,n){var r=(n.quoteStyle||e)==="double"?'"':"'";return r+t+r}function oXe(t){return xf.call(String(t),/"/g,""")}function Hk(t){return mp(t)==="[object Array]"&&(!Xa||!(typeof t=="object"&&Xa in t))}function sXe(t){return mp(t)==="[object Date]"&&(!Xa||!(typeof t=="object"&&Xa in t))}function J9(t){return mp(t)==="[object RegExp]"&&(!Xa||!(typeof t=="object"&&Xa in t))}function lXe(t){return mp(t)==="[object Error]"&&(!Xa||!(typeof t=="object"&&Xa in t))}function cXe(t){return mp(t)==="[object String]"&&(!Xa||!(typeof t=="object"&&Xa in t))}function uXe(t){return mp(t)==="[object Number]"&&(!Xa||!(typeof t=="object"&&Xa in t))}function dXe(t){return mp(t)==="[object Boolean]"&&(!Xa||!(typeof t=="object"&&Xa in t))}function nse(t){if(t0)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Bk)return!1;try{return Bk.call(t),!0}catch{}return!1}function fXe(t){if(!t||typeof t!="object"||!$k)return!1;try{return $k.call(t),!0}catch{}return!1}var pXe=Object.prototype.hasOwnProperty||function(t){return t in this};function df(t,e){return pXe.call(t,e)}function mp(t){return eXe.call(t)}function hXe(t){if(t.name)return t.name;var e=nXe.call(tXe.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function rse(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ise(qU.call(t,0,e.maxStringLength),e)+r}var i=xf.call(xf.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,wXe);return tse(i,"single",e)}function wXe(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+rXe.call(e.toString(16))}function rb(t){return"Object("+t+")"}function nN(t){return t+" { ? }"}function Q9(t,e,n,r){var i=r?Vk(n,r):Nc.call(n,", ");return t+" ("+e+") {"+i+"}"}function xXe(t){for(var e=0;e=0)return!1;return!0}function EXe(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=Nc.call(Array(t.indent+1)," ");else return null;return{base:n,prev:Nc.call(Array(e+1),n)}}function Vk(t,e){if(t.length===0)return"";var n=` `+e.prev+e.base;return n+Nc.call(t,","+n)+` `+e.prev}function tS(t,e){var n=Hk(t),r=[];if(n){r.length=t.length;for(var i=0;i1;){var n=e.pop(),r=n.obj[n.prop];if(nh(r)){for(var i=[],a=0;a=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===$Xe.RFC1738&&(c===40||c===41)){s+=o.charAt(l);continue}if(c<128){s=s+Cc[c];continue}if(c<2048){s=s+(Cc[192|c>>6]+Cc[128|c&63]);continue}if(c<55296||c>=57344){s=s+(Cc[224|c>>12]+Cc[128|c>>6&63]+Cc[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|o.charCodeAt(l)&1023),s+=Cc[240|c>>18]+Cc[128|c>>12&63]+Cc[128|c>>6&63]+Cc[128|c&63]}return s},jXe=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],i=0;i"u"&&(w=0)}if(typeof l=="function"?g=l(n,g):g instanceof Date?g=d(g):r==="comma"&&qu(g)&&(g=zk.maybeMap(g,function(W){return W instanceof Date?d(W):W})),g===null){if(a)return s&&!h?s(n,Aa.encoder,v,"key",f):n;g=""}if(ZXe(g)||zk.isBuffer(g)){if(s){var T=h?n:s(n,Aa.encoder,v,"key",f);if(r==="comma"&&h){for(var I=QXe.call(String(g),","),P="",M=0;M"u")return N;var R;if(r==="comma"&&qu(g))R=[{value:g.length>0?g.join(",")||null:void 0}];else if(qu(l))R=l;else{var O=Object.keys(g);R=c?O.sort(c):O}for(var D=i&&qu(g)&&g.length===1?n+"[]":n,L=0;L"u"?Aa.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Aa.charsetSentinel,delimiter:typeof e.delimiter>"u"?Aa.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Aa.encode,encoder:typeof e.encoder=="function"?e.encoder:Aa.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Aa.encodeValuesOnly,filter:a,format:r,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Aa.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Aa.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Aa.strictNullHandling}},nZe=function(t,e){var n=t,r=tZe(e),i,a;typeof r.filter=="function"?(a=r.filter,n=a("",n)):qu(r.filter)&&(a=r.filter,i=a);var o=[];if(typeof n!="object"||n===null)return"";var s;e&&e.arrayFormat in K9?s=e.arrayFormat:e&&"indices"in e?s=e.indices?"indices":"repeat":s="indices";var l=K9[s];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&e&&e.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var u=sse(),d=0;d0?h+p:""},n0=ose,jk=Object.prototype.hasOwnProperty,rZe=Array.isArray,ua={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n0.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},iZe=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},cse=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},aZe="utf8=%26%2310003%3B",oZe="utf8=%E2%9C%93",sZe=function(e,n){var r={},i=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=n.parameterLimit===1/0?void 0:n.parameterLimit,o=i.split(n.delimiter,a),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(h=rZe(h)?[h]:h),jk.call(r,p)?r[p]=n0.combine(r[p],h):r[p]=h}return r},lZe=function(t,e,n,r){for(var i=r?e:cse(e,n),a=t.length-1;a>=0;--a){var o,s=t[a];if(s==="[]"&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=parseInt(l,10);!n.parseArrays&&l===""?o={0:i}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[],o[c]=i):l!=="__proto__"&&(o[l]=i)}i=o}return i},cZe=function(e,n,r,i){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&o.exec(a),c=l?a.slice(0,l.index):a,u=[];if(c){if(!r.plainObjects&&jk.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var d=0;r.depth>0&&(l=s.exec(a))!==null&&d"u"?ua.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?ua.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ua.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ua.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ua.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ua.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ua.comma,decoder:typeof e.decoder=="function"?e.decoder:ua.decoder,delimiter:typeof e.delimiter=="string"||n0.isRegExp(e.delimiter)?e.delimiter:ua.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ua.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ua.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ua.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ua.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ua.strictNullHandling}},dZe=function(t,e){var n=uZe(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof t=="string"?sZe(t,n):t,i=n.plainObjects?Object.create(null):{},a=Object.keys(r),o=0;o({searchOption:Object.assign({},Ql.searchOption,{aaType:Number(t.aaType),aaVenue:t.aaVenue===""||!(t.aaType===1||t.aaType===2)?void 0:Number(t.aaVenue),aaCount:typeof t.aaCount=="number"&&!(t.aaType===1||t.aaType===2)?void 0:t.aaCount,startDate:t.startDate.replaceAll("/","-"),endDate:t.endDate.replaceAll("/","-"),controlNumber:typeof t.controlNumber=="number"?t.controlNumber:void 0,model:t.model||void 0,chassis:t.chassis||void 0,userId:t.userId||void 0,keyword:t.keyword||void 0}),listInfo:{offset:0,limit:Vg}}),mZe=()=>{var R,O,D,L,k,B,H,$,W,K,le,U,q,z,ne,G,te;const t=Dl(),e=t.getQueryData(ib),n=t.getQueryData(oN),r=Eo(),i=_r(),a=cD({initialValues:{aaType:Ql.searchOption.aaType,startDate:Ql.searchOption.startDate,endDate:Ql.searchOption.endDate,controlNumber:Ql.searchOption.controlNumber||"",model:Ql.searchOption.model||"",chassis:Ql.searchOption.chassis||"",userId:Ql.searchOption.userId||"",keyword:Ql.searchOption.keyword||"",aaVenue:Ql.searchOption.aaVenue||"",aaCount:Ql.searchOption.aaCount||""},onSubmit:async Y=>{t.setQueryData(v_.getGetSellHistoryListQueryKeys(w),{result:{}}),Promise.resolve().then(()=>y(""));const fe=Z9(Y);Object.entries(w.searchOption).reduce((de,[se,me])=>de||me!==fe.searchOption[se]?!0:de,!1)&&(fe.listInfo.offset=0),t.setQueryData(ib,Y),i(`${r.pathname}?${Op.stringify(Y)}&${Op.stringify(fe.listInfo)}`),new Promise(de=>{x(()=>(de(1),fe))}).then(()=>{P.refetch()})}});C.useEffect(()=>{a.submitForm()},[]);const o=()=>{t.setQueryData(v_.getGetSellHistoryListQueryKeys(w),{result:{}}),Promise.resolve().then(()=>y("")),t.setQueryData(ib,""),i(r.pathname),a.resetForm()},s=Op.parse(r.search,{ignoreQueryPrefix:!0}),l=Object.keys(a.initialValues).reduce((Y,fe)=>({...Y,[fe]:s[fe]||""}),{});l.aaType=Number(l.aaType||0);const c={offset:Number(s.offset),limit:Number(s.limit)};C.useEffect(()=>{r.search&&T(!0),!e&&Object.keys(s).length&&(t.setQueryData(ib,l),a.setValues(l),t.setQueryData(oN,{listInfo:c}))},[r.search]);const u=Object.assign({},a.initialValues,e||l),d=Z9(u),{offset:f=0,limit:p=Vg,count:h,totalCount:v}=(n==null?void 0:n.listInfo)||c||{},b=Object.assign({},d,{listInfo:{offset:f,limit:p,count:h,totalCount:v}}),[g,y]=Xoe(),[w,x]=C.useState(b),[S,T]=C.useState(!1),{regenerateToken:I}=um();C.useEffect(()=>{T(!0)},[w]);const P=WKe(w,{onError:()=>{T(!1),y(ps)},onSuccess:async Y=>{var fe,pe,de;T(!1),((fe=Y==null?void 0:Y.result)==null?void 0:fe.code)===0?!(Y!=null&&Y.sellInfoList)||Y.sellInfoList.length===0?y(pWe):Y!=null&&Y.listInfo&&Y.listInfo.totalCount>100?y(hWe):y(""):((pe=Y==null?void 0:Y.result)==null?void 0:pe.code)===1||(((de=Y==null?void 0:Y.result)==null?void 0:de.code)===11?(await I(),await t.refetchQueries(v_.getGetSellHistoryListQueryKeys(w))):y(ps)),t.setQueryData(oN,Y)},enabled:!1,cacheTime:1/0,staleTime:1/0}),M=(Y,fe)=>{x(de=>({...de,listInfo:{...de.listInfo,offset:de.listInfo.offset+(fe==="next"?1:-1)}}));const pe={...w.listInfo,offset:w.listInfo.offset+(fe==="next"?1:-1)};i(`${r.pathname}?${Op.stringify(a.values)}&${Op.stringify(pe)}`)},N={aatype:u.aaType||0,offset:((O=(R=P.data)==null?void 0:R.listInfo)==null?void 0:O.offset)||0,limit:Vg,count:((L=(D=P.data)==null?void 0:D.sellInfoList)==null?void 0:L.length)||0,totalCount:((B=(k=P.data)==null?void 0:k.listInfo)==null?void 0:B.totalCount)||0,onClick:M,previousPagerButtonProps:{disabled:typeof(($=(H=P.data)==null?void 0:H.listInfo)==null?void 0:$.totalCount)!="number"||((K=(W=P.data)==null?void 0:W.listInfo)==null?void 0:K.offset)===0},nextPagerButtonProps:{disabled:typeof((U=(le=P.data)==null?void 0:le.listInfo)==null?void 0:U.totalCount)!="number"||typeof((z=(q=P.data)==null?void 0:q.listInfo)==null?void 0:z.offset)!="number"||typeof((ne=P.data)==null?void 0:ne.listInfo.totalCount)!="number"||((G=P.data)==null?void 0:G.listInfo.offset)*Vg+Vg>=((te=P.data)==null?void 0:te.listInfo.totalCount)}};return C.useEffect(()=>{Number.isNaN(w.listInfo.offset)?T(!1):(async()=>await P.refetch())()},[w.listInfo.offset]),C.useEffect(()=>{if(e){const Y=Object.assign({},a.initialValues,e);a.setValues(Y)}(e||n!=null&&n.listInfo)&&i(`${r.pathname}?${Op.stringify(e)}&${Op.stringify(n==null?void 0:n.listInfo)}`)},[t]),{isLoading:S,searchConditionFormik:a,getSellHhistoryListQueryResult:P,paginationProps:N,searchable:Boolean(typeof a.values.aaType=="number"&&a.values.startDate&&a.values.endDate),errorMessage:g,resetHandler:o,SEARCH_QUERY_KEY:ib}};var Gk={},gZe={get exports(){return Gk},set exports(t){Gk=t}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i1?"s":"")+" required, but only "+e.length+" present")}function KU(t){return ht(1,arguments),t instanceof Date||Al(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function bt(t){ht(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Al(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function XU(t){if(ht(1,arguments),!KU(t)&&typeof t!="number")return!1;var e=bt(t);return!isNaN(Number(e))}function en(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function gD(t,e){ht(2,arguments);var n=bt(t).getTime(),r=en(e);return new Date(n+r)}function use(t,e){ht(2,arguments);var n=en(e);return gD(t,-n)}var vZe=864e5;function yZe(t){ht(1,arguments);var e=bt(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/vZe)+1}function r0(t){ht(1,arguments);var e=1,n=bt(t),r=n.getUTCDay(),i=(r=i.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function bZe(t){ht(1,arguments);var e=dse(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=r0(n);return r}var _Ze=6048e5;function fse(t){ht(1,arguments);var e=bt(t),n=r0(e).getTime()-bZe(e).getTime();return Math.round(n/_Ze)+1}var wZe={};function gu(){return wZe}function Uh(t,e){var n,r,i,a,o,s,l,c;ht(1,arguments);var u=gu(),d=en((n=(r=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=bt(t),p=f.getUTCDay(),h=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var v=Uh(h,e),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var g=Uh(b,e);return u.getTime()>=v.getTime()?d+1:u.getTime()>=g.getTime()?d:d-1}function xZe(t,e){var n,r,i,a,o,s,l,c;ht(1,arguments);var u=gu(),d=en((n=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=ZU(t,e),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var h=Uh(p,e);return h}var EZe=6048e5;function pse(t,e){ht(1,arguments);var n=bt(t),r=Uh(n,e).getTime()-xZe(n,e).getTime();return Math.round(r/EZe)+1}function En(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?r:1-r;return En(n==="yy"?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):En(r+1,2)},d:function(e,n){return En(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return En(e.getUTCHours()%12||12,n.length)},H:function(e,n){return En(e.getUTCHours(),n.length)},m:function(e,n){return En(e.getUTCMinutes(),n.length)},s:function(e,n){return En(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return En(a,n.length)}};const Wd=SZe;var Gm={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},CZe={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return Wd.y(e,n)},Y:function(e,n,r,i){var a=ZU(e,i),o=a>0?a:1-a;if(n==="YY"){var s=o%100;return En(s,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):En(o,n.length)},R:function(e,n){var r=dse(e);return En(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return En(r,n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return En(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return En(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return Wd.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return En(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var a=pse(e,i);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):En(a,n.length)},I:function(e,n,r){var i=fse(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):En(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Wd.d(e,n)},D:function(e,n,r){var i=yZe(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):En(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return En(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return En(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),a=i===0?7:i;switch(n){case"i":return String(a);case"ii":return En(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,n,r){var i=e.getUTCHours(),a;switch(i===12?a=Gm.noon:i===0?a=Gm.midnight:a=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,n,r){var i=e.getUTCHours(),a;switch(i>=17?a=Gm.evening:i>=12?a=Gm.afternoon:i>=4?a=Gm.morning:a=Gm.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Wd.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Wd.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):En(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):En(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Wd.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Wd.s(e,n)},S:function(e,n){return Wd.S(e,n)},X:function(e,n,r,i){var a=i._originalDate||e,o=a.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return tq(o);case"XXXX":case"XX":return Jp(o);case"XXXXX":case"XXX":default:return Jp(o,":")}},x:function(e,n,r,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(n){case"x":return tq(o);case"xxxx":case"xx":return Jp(o);case"xxxxx":case"xxx":default:return Jp(o,":")}},O:function(e,n,r,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+eq(o,":");case"OOOO":default:return"GMT"+Jp(o,":")}},z:function(e,n,r,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+eq(o,":");case"zzzz":default:return"GMT"+Jp(o,":")}},t:function(e,n,r,i){var a=i._originalDate||e,o=Math.floor(a.getTime()/1e3);return En(o,n.length)},T:function(e,n,r,i){var a=i._originalDate||e,o=a.getTime();return En(o,n.length)}};function eq(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;if(a===0)return n+String(i);var o=e||"";return n+String(i)+o+En(a,2)}function tq(t,e){if(t%60===0){var n=t>0?"-":"+";return n+En(Math.abs(t)/60,2)}return Jp(t,e)}function Jp(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),a=En(Math.floor(i/60),2),o=En(i%60,2);return r+a+n+o}const TZe=CZe;var nq=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},hse=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},AZe=function(e,n){var r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return nq(e,n);var o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",nq(i,n)).replace("{{time}}",hse(a,n))},IZe={p:hse,P:AZe};const Wk=IZe;function lA(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var MZe=["D","DD"],DZe=["YY","YYYY"];function mse(t){return MZe.indexOf(t)!==-1}function gse(t){return DZe.indexOf(t)!==-1}function cA(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var PZe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},RZe=function(e,n,r){var i,a=PZe[e];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const OZe=RZe;function fv(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var NZe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LZe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kZe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FZe={date:fv({formats:NZe,defaultWidth:"full"}),time:fv({formats:LZe,defaultWidth:"full"}),dateTime:fv({formats:kZe,defaultWidth:"full"})};const $Ze=FZe;var BZe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},UZe=function(e,n,r,i){return BZe[e]};const HZe=UZe;function $c(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=t.formattingValues[o]||t.formattingValues[a]}else{var s=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[s]}var c=t.argumentCallback?t.argumentCallback(e):e;return i[c]}}var VZe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zZe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jZe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},GZe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},WZe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},qZe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},YZe=function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},JZe={ordinalNumber:YZe,era:$c({values:VZe,defaultWidth:"wide"}),quarter:$c({values:zZe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:$c({values:jZe,defaultWidth:"wide"}),day:$c({values:GZe,defaultWidth:"wide"}),dayPeriod:$c({values:WZe,defaultWidth:"wide",formattingValues:qZe,defaultFormattingWidth:"wide"})};const QZe=JZe;function Bc(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o=a[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?XZe(s,function(d){return d.test(o)}):KZe(s,function(d){return d.test(o)}),c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=e.slice(o.length);return{value:c,rest:u}}}function KZe(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function XZe(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],a=e.match(t.parsePattern);if(!a)return null;var o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=e.slice(i.length);return{value:o,rest:s}}}var ZZe=/^(\d+)(th|st|nd|rd)?/i,eet=/\d+/i,tet={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},net={any:[/^b/i,/^(a|c)/i]},ret={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iet={any:[/1/i,/2/i,/3/i,/4/i]},aet={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},oet={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},set={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cet={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},uet={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},det={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},fet={ordinalNumber:vse({matchPattern:ZZe,parsePattern:eet,valueCallback:function(e){return parseInt(e,10)}}),era:Bc({matchPatterns:tet,defaultMatchWidth:"wide",parsePatterns:net,defaultParseWidth:"any"}),quarter:Bc({matchPatterns:ret,defaultMatchWidth:"wide",parsePatterns:iet,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Bc({matchPatterns:aet,defaultMatchWidth:"wide",parsePatterns:oet,defaultParseWidth:"any"}),day:Bc({matchPatterns:set,defaultMatchWidth:"wide",parsePatterns:cet,defaultParseWidth:"any"}),dayPeriod:Bc({matchPatterns:uet,defaultMatchWidth:"any",parsePatterns:det,defaultParseWidth:"any"})};const pet=fet;var het={code:"en-US",formatDistance:OZe,formatLong:$Ze,formatRelative:HZe,localize:QZe,match:pet,options:{weekStartsOn:0,firstWeekContainsDate:1}};const e4=het;var met=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,get=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vet=/^'([^]*?)'?$/,yet=/''/g,bet=/[a-zA-Z]/;function _1(t,e,n){var r,i,a,o,s,l,c,u,d,f,p,h,v,b,g,y,w,x;ht(2,arguments);var S=String(e),T=gu(),I=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:T.locale)!==null&&r!==void 0?r:e4,P=en((a=(o=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&o!==void 0?o:(d=T.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=en((p=(h=(v=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(g=n.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&v!==void 0?v:T.weekStartsOn)!==null&&h!==void 0?h:(w=T.locale)===null||w===void 0||(x=w.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var N=bt(t);if(!XU(N))throw new RangeError("Invalid time value");var R=lA(N),O=use(N,R),D={firstWeekContainsDate:P,weekStartsOn:M,locale:I,_originalDate:N},L=S.match(get).map(function(k){var B=k[0];if(B==="p"||B==="P"){var H=Wk[B];return H(k,I.formatLong)}return k}).join("").match(met).map(function(k){if(k==="''")return"'";var B=k[0];if(B==="'")return _et(k);var H=TZe[B];if(H)return!(n!=null&&n.useAdditionalWeekYearTokens)&&gse(k)&&cA(k,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&mse(k)&&cA(k,e,String(t)),H(O,k,I.localize,D);if(B.match(bet))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return k}).join("");return L}function _et(t){var e=t.match(vet);return e?e[1].replace(yet,"'"):t}var wet=6e4;function uA(t,e){ht(2,arguments);var n=en(e);return gD(t,n*wet)}var xet=36e5;function yse(t,e){ht(2,arguments);var n=en(e);return gD(t,n*xet)}function ad(t,e){ht(2,arguments);var n=bt(t),r=en(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function vD(t,e){ht(2,arguments);var n=en(e),r=n*7;return ad(t,r)}function jo(t,e){ht(2,arguments);var n=bt(t),r=en(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+r+1,0);var o=a.getDate();return i>=o?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}function bse(t,e){ht(2,arguments);var n=en(e),r=n*3;return jo(t,r)}function Xf(t,e){ht(2,arguments);var n=en(e);return jo(t,n*12)}function Eet(t,e){ht(2,arguments);var n=en(e);return ad(t,-n)}function Cet(t,e){ht(2,arguments);var n=en(e);return vD(t,-n)}function i0(t,e){ht(2,arguments);var n=en(e);return jo(t,-n)}function Tet(t,e){ht(2,arguments);var n=en(e);return bse(t,-n)}function w1(t,e){ht(2,arguments);var n=en(e);return Xf(t,-n)}function NC(t){ht(1,arguments);var e=bt(t),n=e.getSeconds();return n}function Lo(t){ht(1,arguments);var e=bt(t),n=e.getMinutes();return n}function ko(t){ht(1,arguments);var e=bt(t),n=e.getHours();return n}function Aet(t){ht(1,arguments);var e=bt(t),n=e.getDay();return n}function qk(t){ht(1,arguments);var e=bt(t),n=e.getDate();return n}function od(t,e){var n,r,i,a,o,s,l,c;ht(1,arguments);var u=gu(),d=en((n=(r=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=bt(t),p=f.getDay(),h=(p=i.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function Met(t){ht(1,arguments);var e=Iet(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=dA(n);return r}var Det=6048e5;function Pet(t){ht(1,arguments);var e=bt(t),n=dA(e).getTime()-Met(e).getTime();return Math.round(n/Det)+1}function La(t){ht(1,arguments);var e=bt(t),n=e.getMonth();return n}function zg(t){ht(1,arguments);var e=bt(t),n=Math.floor(e.getMonth()/3)+1;return n}function Sn(t){return ht(1,arguments),bt(t).getFullYear()}function Yk(t){ht(1,arguments);var e=bt(t),n=e.getTime();return n}function _se(t,e){ht(2,arguments);var n=bt(t),r=en(e);return n.setSeconds(r),n}function pv(t,e){ht(2,arguments);var n=bt(t),r=en(e);return n.setMinutes(r),n}function hv(t,e){ht(2,arguments);var n=bt(t),r=en(e);return n.setHours(r),n}function wse(t){ht(1,arguments);var e=bt(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function ss(t,e){ht(2,arguments);var n=bt(t),r=en(e),i=n.getFullYear(),a=n.getDate(),o=new Date(0);o.setFullYear(i,r,15),o.setHours(0,0,0,0);var s=wse(o);return n.setMonth(r,Math.min(a,s)),n}function Ub(t,e){ht(2,arguments);var n=bt(t),r=en(e),i=Math.floor(n.getMonth()/3)+1,a=r-i;return ss(n,n.getMonth()+a*3)}function x1(t,e){ht(2,arguments);var n=bt(t),r=en(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function rq(t){ht(1,arguments);var e;if(t&&typeof t.forEach=="function")e=t;else if(Al(t)==="object"&&t!==null)e=Array.prototype.slice.call(t);else return new Date(NaN);var n;return e.forEach(function(r){var i=bt(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function iq(t){ht(1,arguments);var e;if(t&&typeof t.forEach=="function")e=t;else if(Al(t)==="object"&&t!==null)e=Array.prototype.slice.call(t);else return new Date(NaN);var n;return e.forEach(function(r){var i=bt(r);(n===void 0||n=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=bt(t),p=f.getDay(),h=(pr.getTime()}function Oo(t,e){ht(2,arguments);var n=bt(t),r=bt(e);return n.getTime()=r&&n<=i}function aq(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Let(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Dt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qk(t,e){return Qk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qk(t,e)}function Un(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qk(t,e)}function hA(t){return hA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hA(t)}function Tse(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tse=function(){return!!t})()}function ket(t,e){if(e&&(Al(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dt(t)}function Hn(t){var e=Tse();return function(){var n,r=hA(t);if(e){var i=hA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ket(this,n)}}function Dn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fet(t,e){if(Al(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ase(t){var e=Fet(t,"string");return Al(e)=="symbol"?e:e+""}function sq(t,e){for(var n=0;n0,r=n?e:1-e,i;if(r<=50)i=t||100;else{var a=r+50,o=Math.floor(a/100)*100,s=t>=a%100;i=t+o-(s?100:0)}return n?i:1-i}function Pse(t){return t%400===0||t%4===0&&t%100!==0}var zet=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0}},{key:"set",value:function(i,a,o){var s=i.getUTCFullYear();if(o.isTwoDigitYear){var l=Dse(o.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Qn),jet=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0}},{key:"set",value:function(i,a,o,s){var l=ZU(i,s);if(o.isTwoDigitYear){var c=Dse(o.year,l);return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Uh(i,s)}var u=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(u,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Uh(i,s)}}]),n}(Qn),Get=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Qn),Yet=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Qn),Jet=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),n}(Qn),Qet=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),n}(Qn);function Ket(t,e,n){ht(2,arguments);var r=bt(t),i=en(e),a=pse(r,n)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}var Xet=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=53}},{key:"set",value:function(i,a,o,s){return Uh(Ket(i,o,s),s)}}]),n}(Qn);function Zet(t,e){ht(2,arguments);var n=bt(t),r=en(e),i=fse(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var ett=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=53}},{key:"set",value:function(i,a,o){return r0(Zet(i,o))}}]),n}(Qn),ttt=[31,28,31,30,31,30,31,31,30,31,30,31],ntt=[31,29,31,30,31,30,31,31,30,31,30,31],rtt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=ntt[l]:a>=1&&a<=ttt[l]}},{key:"set",value:function(i,a,o){return i.setUTCDate(o),i.setUTCHours(0,0,0,0),i}}]),n}(Qn),itt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,o){return i.setUTCMonth(0,o),i.setUTCHours(0,0,0,0),i}}]),n}(Qn);function n4(t,e,n){var r,i,a,o,s,l,c,u;ht(2,arguments);var d=gu(),f=en((r=(i=(a=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:d.weekStartsOn)!==null&&i!==void 0?i:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=bt(t),h=en(e),v=p.getUTCDay(),b=h%7,g=(b+7)%7,y=(g=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=n4(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(Qn),ott=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=n4(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(Qn),stt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=n4(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(Qn);function ltt(t,e){ht(2,arguments);var n=en(e);n%7===0&&(n=n-7);var r=1,i=bt(t),a=i.getUTCDay(),o=n%7,s=(o+7)%7,l=(s=1&&a<=7}},{key:"set",value:function(i,a,o){return i=ltt(i,o),i.setUTCHours(0,0,0,0),i}}]),n}(Qn),utt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=12}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):!s&&o===12?i.setUTCHours(0,0,0,0):i.setUTCHours(o,0,0,0),i}}]),n}(Qn),htt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=23}},{key:"set",value:function(i,a,o){return i.setUTCHours(o,0,0,0),i}}]),n}(Qn),mtt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=11}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):i.setUTCHours(o,0,0,0),i}}]),n}(Qn),gtt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=24}},{key:"set",value:function(i,a,o){var s=o<=24?o%24:o;return i.setUTCHours(s,0,0,0),i}}]),n}(Qn),vtt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCMinutes(o,0,0),i}}]),n}(Qn),ytt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCSeconds(o,0),i}}]),n}(Qn),btt=function(t){Un(n,t);var e=Hn(n);function n(){var r;Dn(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=en((h=(v=(b=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(y=r.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&b!==void 0?b:P.weekStartsOn)!==null&&v!==void 0?v:(x=P.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(I==="")return T===""?bt(n):new Date(NaN);var O={firstWeekContainsDate:N,weekStartsOn:R,locale:M},D=[new Uet],L=I.match(Ttt).map(function(Y){var fe=Y[0];if(fe in Wk){var pe=Wk[fe];return pe(Y,M.formatLong)}return Y}).join("").match(Ctt),k=[],B=oq(L),H;try{var $=function(){var fe=H.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&gse(fe)&&cA(fe,I,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&mse(fe)&&cA(fe,I,t);var pe=fe[0],de=Stt[pe];if(de){var se=de.incompatibleTokens;if(Array.isArray(se)){var me=k.find(function(_e){return se.includes(_e.token)||_e.token===pe});if(me)throw new RangeError("The format string mustn't contain `".concat(me.fullToken,"` and `").concat(fe,"` at the same time"))}else if(de.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(fe,"` and any other token at the same time"));k.push({token:pe,fullToken:fe});var Z=de.run(T,fe,M.match,O);if(!Z)return{v:new Date(NaN)};D.push(Z.setter),T=Z.rest}else{if(pe.match(Dtt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pe+"`");if(fe==="''"?fe="'":pe==="'"&&(fe=Ptt(fe)),T.indexOf(fe)===0)T=T.slice(fe.length);else return{v:new Date(NaN)}}};for(B.s();!(H=B.n()).done;){var W=$();if(Al(W)==="object")return W.v}}catch(Y){B.e(Y)}finally{B.f()}if(T.length>0&&Mtt.test(T))return new Date(NaN);var K=D.map(function(Y){return Y.priority}).sort(function(Y,fe){return fe-Y}).filter(function(Y,fe,pe){return pe.indexOf(Y)===fe}).map(function(Y){return D.filter(function(fe){return fe.priority===Y}).sort(function(fe,pe){return pe.subPriority-fe.subPriority})}).map(function(Y){return Y[0]}),le=bt(n);if(isNaN(le.getTime()))return new Date(NaN);var U=use(le,lA(le)),q={},z=oq(K),ne;try{for(z.s();!(ne=z.n()).done;){var G=ne.value;if(!G.validate(U,O))return new Date(NaN);var te=G.set(U,q,O);Array.isArray(te)?(U=te[0],Let(q,te[1])):U=te}}catch(Y){z.e(Y)}finally{z.f()}return U}function Ptt(t){return t.match(Att)[1].replace(Itt,"'")}function Rse(t,e){var n;ht(1,arguments);var r=en((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=Ltt(t),a;if(i.date){var o=ktt(i.date,r);a=Ftt(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s=a.getTime(),l=0,c;if(i.time&&(l=$tt(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Btt(i.timezone),isNaN(c))return new Date(NaN)}else{var u=new Date(s+l),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return new Date(s+l+c)}var iS={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Rtt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ott=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ntt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ltt(t){var e={},n=t.split(iS.dateTimeDelimiter),r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],iS.timeZoneDelimiter.test(e.date)&&(e.date=t.split(iS.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){var i=iS.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function ktt(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function Ftt(t,e){if(e===null)return new Date(NaN);var n=t.match(Rtt);if(!n)return new Date(NaN);var r=!!n[4],i=ab(n[1]),a=ab(n[2])-1,o=ab(n[3]),s=ab(n[4]),l=ab(n[5])-1;if(r)return jtt(e,s,l)?Utt(e,s,l):new Date(NaN);var c=new Date(0);return!Vtt(e,a,o)||!ztt(e,i)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(i,o)),c)}function ab(t){return t?parseInt(t):1}function $tt(t){var e=t.match(Ott);if(!e)return NaN;var n=lN(e[1]),r=lN(e[2]),i=lN(e[3]);return Gtt(n,r,i)?n*bD+r*yD+i*1e3:NaN}function lN(t){return t&&parseFloat(t.replace(",","."))||0}function Btt(t){if(t==="Z")return 0;var e=t.match(Ntt);if(!e)return 0;var n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return Wtt(r,i)?n*(r*bD+i*yD):NaN}function Utt(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,a=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var Htt=[31,null,31,30,31,30,31,31,30,31,30,31];function Ose(t){return t%400===0||t%4===0&&t%100!==0}function Vtt(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Htt[e]||(Ose(t)?29:28))}function ztt(t,e){return e>=1&&e<=(Ose(t)?366:365)}function jtt(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Gtt(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Wtt(t,e){return e>=0&&e<=59}function qtt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Kk(t,e)}function Kk(t,e){return Kk=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Kk(t,e)}function Ytt(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a=0)&&(n[i]=t[i]);return n}function lq(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jtt(t,e,n){return t===e?!0:t.correspondingElement?t.correspondingElement.classList.contains(n):t.classList.contains(n)}function Qtt(t,e,n){if(t===e)return!0;for(;t.parentNode||t.host;){if(t.parentNode&&Jtt(t,e,n))return!0;t=t.parentNode||t.host}return t}function Ktt(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY}var Xtt=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,n=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),e}};function Ztt(t){return t===void 0&&(t=0),function(){return++t}}var ent=Ztt(),Xk,aS={},cN={},tnt=["touchstart","touchmove"],nnt="ignore-react-onclickoutside";function cq(t,e){var n=null,r=tnt.indexOf(e)!==-1;return r&&Xk&&(n={passive:!t.props.preventDefault}),n}function _D(t,e){var n,r,i=t.displayName||t.name||"Component";return r=n=function(a){qtt(o,a);function o(l){var c;return c=a.call(this,l)||this,c.__outsideClickHandler=function(u){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(u);return}var d=c.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(u);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(u);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var u=c.getInstance();return e&&typeof e.setClickOutsideRef=="function"?e.setClickOutsideRef()(u):typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():ld.findDOMNode(u)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||cN[c._uid])){typeof Xk>"u"&&(Xk=Xtt()),cN[c._uid]=!0;var u=c.props.eventTypes;u.forEach||(u=[u]),aS[c._uid]=function(d){if(c.componentNode!==null&&(c.props.preventDefault&&d.preventDefault(),c.props.stopPropagation&&d.stopPropagation(),!(c.props.excludeScrollbar&&Ktt(d)))){var f=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;Qtt(f,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(d)}},u.forEach(function(d){document.addEventListener(d,aS[c._uid],cq(lq(c),d))})}},c.disableOnClickOutside=function(){delete cN[c._uid];var u=aS[c._uid];if(u&&typeof document<"u"){var d=c.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(f){return document.removeEventListener(f,u,cq(lq(c),f))}),delete aS[c._uid]}},c.getRef=function(u){return c.instanceRef=u},c._uid=ent(),c}var s=o.prototype;return s.getInstance=function(){if(t.prototype&&!t.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var c=this.getInstance();if(e&&typeof e.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=e.handleClickOutside(c),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var u=Ytt(c,["excludeScrollbar"]);return t.prototype&&t.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,C.createElement(t,u)},o}(C.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:e&&e.excludeScrollbar||!1,outsideClickIgnoreClass:nnt,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return t.getClass?t.getClass():t},r}var Nse=C.createContext(),Lse=C.createContext();function rnt(t){var e=t.children,n=C.useState(null),r=n[0],i=n[1],a=C.useRef(!1);C.useEffect(function(){return function(){a.current=!0}},[]);var o=C.useCallback(function(s){a.current||i(s)},[]);return C.createElement(Nse.Provider,{value:r},C.createElement(Lse.Provider,{value:o},e))}var kse=function(e){return Array.isArray(e)?e[0]:e},Fse=function(e){if(typeof e=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=e3(t);if(e){var i=e3(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vnt(this,n)}}function t3(t){return function(e){if(Array.isArray(e))return uN(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return uN(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uN(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function uN(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,a=e.excludeDateIntervals,o=e.includeDates,s=e.includeDateIntervals,l=e.filterDate;return ED(t,{minDate:n,maxDate:r})||i&&i.some(function(c){return fo(t,c)})||a&&a.some(function(c){var u=c.start,d=c.end;return o0(t,{start:u,end:d})})||o&&!o.some(function(c){return fo(t,c)})||s&&!s.some(function(c){var u=c.start,d=c.end;return o0(t,{start:u,end:d})})||l&&!l(jr(t))||!1}function s4(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeDates,r=e.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var a=i.start,o=i.end;return o0(t,{start:a,end:o})}):n&&n.some(function(i){return fo(t,i)})||!1}function Vse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,a=e.includeDates,o=e.filterDate;return ED(t,{minDate:fA(n),maxDate:pA(r)})||i&&i.some(function(s){return Ef(t,s)})||a&&!a.some(function(s){return Ef(t,s)})||o&&!o(jr(t))||!1}function Cnt(t,e,n,r){var i=Sn(t),a=La(t),o=Sn(e),s=La(e),l=Sn(r);return i===o&&i===l?a<=n&&n<=s:i=n||li:void 0}function Tnt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,a=e.includeDates,o=e.filterDate;return ED(t,{minDate:n,maxDate:r})||i&&i.some(function(s){return vA(t,s)})||a&&!a.some(function(s){return vA(t,s)})||o&&!o(jr(t))||!1}function zse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,a=e.includeDates,o=e.filterDate,s=new Date(t,0,1);return ED(s,{minDate:jg(n),maxDate:LC(r)})||i&&i.some(function(l){return gA(s,l)})||a&&!a.some(function(l){return gA(s,l)})||o&&!o(jr(s))||!1}function Ant(t,e,n,r){var i=Sn(t),a=zg(t),o=Sn(e),s=zg(e),l=Sn(r);return i===o&&i===l?a<=n&&n<=s:i=n||li:void 0}function ED(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate;return n&&E1(t,n)<0||r&&E1(t,r)>0}function vq(t,e){return e.some(function(n){return ko(n)===ko(t)&&Lo(n)===Lo(t)})}function yq(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeTimes,r=e.includeTimes,i=e.filterTime;return n&&vq(t,n)||r&&!vq(t,r)||i&&!i(t)||!1}function bq(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,a=jr(),o=hv(pv(a,Lo(t)),ko(t)),s=hv(pv(a,Lo(n)),ko(n)),l=hv(pv(a,Lo(r)),ko(r));try{i=!o0(o,{start:s,end:l})}catch{i=!1}return i}function _q(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,i=i0(t,1);return n&&S1(n,i)>0||r&&r.every(function(a){return S1(a,i)>0})||!1}function wq(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,i=jo(t,1);return n&&S1(i,n)>0||r&&r.every(function(a){return S1(i,a)>0})||!1}function xq(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,i=w1(t,1);return n&&C1(n,i)>0||r&&r.every(function(a){return C1(a,i)>0})||!1}function Eq(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,i=Xf(t,1);return n&&C1(i,n)>0||r&&r.every(function(a){return C1(i,a)>0})||!1}function jse(t){var e=t.minDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return E1(i,e)>=0});return rq(r)}return n?rq(n):e}function Gse(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return E1(i,e)<=0});return iq(r)}return n?iq(n):e}function Sq(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=t.length;r1&&arguments[1]!==void 0?arguments[1]:12,n=Math.ceil(Sn(t)/e)*e,r=n-(e-1);return{startPeriod:r,endPeriod:n}}function Mnt(t,e,n,r){for(var i=[],a=0;a<2*e+1;a++){var o=t+e-a,s=!0;n&&(s=Sn(n)<=o),r&&s&&(s=Sn(r)>=o),s&&i.push(o)}return i}var Dnt=_D(function(t){ba(n,xe.Component);var e=_a(n);function n(r){var i;va(this,n),De(Oe(i=e.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(f){return xe.createElement("div",{className:l===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:i.onChange.bind(Oe(i),f),"aria-selected":l===f?"true":void 0},l===f?xe.createElement("span",{className:"react-datepicker__year-option--selected"},""):"",f)}),u=i.props.minDate?Sn(i.props.minDate):null,d=i.props.maxDate?Sn(i.props.maxDate):null;return d&&i.state.yearsList.find(function(f){return f===d})||c.unshift(xe.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},xe.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),u&&i.state.yearsList.find(function(f){return f===u})||c.push(xe.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},xe.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),De(Oe(i),"onChange",function(l){i.props.onChange(l)}),De(Oe(i),"handleClickOutside",function(){i.props.onCancel()}),De(Oe(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(u){return u+l});i.setState({yearsList:c})}),De(Oe(i),"incrementYears",function(){return i.shiftYears(1)}),De(Oe(i),"decrementYears",function(){return i.shiftYears(-1)});var a=r.yearDropdownItemNumber,o=r.scrollableYearDropdown,s=a||(o?10:5);return i.state={yearsList:Mnt(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=C.createRef(),i}return ya(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,a=i?i.find(function(o){return o.ariaSelected}):null;r.scrollTop=a?a.offsetTop+(a.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=zo({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return xe.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),Pnt=function(t){ba(n,xe.Component);var e=_a(n);function n(){var r;va(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!s.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0)),l&&r.dayEl.current.focus({preventScroll:!0})}),De(Oe(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(qk(r.props.day),r.props.day):qk(r.props.day)}),De(Oe(r),"render",function(){return xe.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()},r.renderDayContents())}),r}return ya(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),$nt=function(t){ba(n,xe.Component);var e=_a(n);function n(){var r;va(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=6,p=!l&&!r.isWeekInMonth(d);if(f||p){if(!r.props.peekNextMonth)break;u=!0}}return s}),De(Oe(r),"onMonthClick",function(s,l){r.handleDayClick(yh(ss(r.props.day,l)),s)}),De(Oe(r),"handleMonthNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())}),De(Oe(r),"onMonthKeyDown",function(s,l){s.preventDefault();var c=s.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onMonthClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,jo(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,i0(r.props.preSelection,1));break;case"ArrowUp":r.handleMonthNavigation(l>=0&&l<=2?l+9:l-3,i0(r.props.preSelection,3));break;case"ArrowDown":r.handleMonthNavigation(l>=9&&l<=11?l-9:l+3,jo(r.props.preSelection,3))}}),De(Oe(r),"onQuarterClick",function(s,l){r.handleDayClick(xnt(Ub(r.props.day,l)),s)}),De(Oe(r),"handleQuarterNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())}),De(Oe(r),"onQuarterKeyDown",function(s,l){var c=s.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onQuarterClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(l===4?1:l+1,bse(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(l===1?4:l-1,Tet(r.props.preSelection,1))}}),De(Oe(r),"getMonthClassNames",function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate,f=l.selected,p=l.minDate,h=l.maxDate,v=l.preSelection,b=l.monthClassName,g=l.excludeDates,y=l.includeDates,w=b?b(ss(c,s)):void 0,x=ss(c,s);return zo("react-datepicker__month-text","react-datepicker__month-".concat(s),w,{"react-datepicker__month--disabled":(p||h||g||y)&&Vse(x,r.props),"react-datepicker__month--selected":r.isSelectedMonth(c,s,f),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&La(v)===s,"react-datepicker__month--in-range":Cnt(u,d,s,c),"react-datepicker__month--range-start":r.isRangeStartMonth(s),"react-datepicker__month--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--today":r.isCurrentMonth(c,s)})}),De(Oe(r),"getTabIndex",function(s){var l=La(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),De(Oe(r),"getQuarterTabIndex",function(s){var l=zg(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),De(Oe(r),"getAriaLabel",function(s){var l=r.props,c=l.chooseDayAriaLabelPrefix,u=c===void 0?"Choose":c,d=l.disabledDayAriaLabelPrefix,f=d===void 0?"Not available":d,p=l.day,h=ss(p,s),v=r.isDisabled(h)||r.isExcluded(h)?f:u;return"".concat(v," ").concat(Bi(h,"MMMM yyyy"))}),De(Oe(r),"getQuarterClassNames",function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate,f=l.selected,p=l.minDate,h=l.maxDate,v=l.preSelection;return zo("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter--disabled":(p||h)&&Tnt(Ub(c,s),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(c,s,f),"react-datepicker__quarter-text--keyboard-selected":zg(v)===s,"react-datepicker__quarter--in-range":Ant(u,d,s,c),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(s)})}),De(Oe(r),"renderMonths",function(){var s=r.props,l=s.showFullMonthYearPicker,c=s.showTwoColumnMonthYearPicker,u=s.showFourColumnMonthYearPicker,d=s.locale,f=s.day,p=s.selected;return(u?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:c?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(h,v){return xe.createElement("div",{className:"react-datepicker__month-wrapper",key:v},h.map(function(b,g){return xe.createElement("div",{ref:r.MONTH_REFS[b],key:g,onClick:function(y){r.onMonthClick(y,b)},onKeyDown:function(y){r.onMonthKeyDown(y,b)},tabIndex:r.getTabIndex(b),className:r.getMonthClassNames(b),role:"option","aria-label":r.getAriaLabel(b),"aria-current":r.isCurrentMonth(f,b)?"date":void 0,"aria-selected":r.isSelectedMonth(f,b,p)},l?o4(b,d):Hse(b,d))}))})}),De(Oe(r),"renderQuarters",function(){var s=r.props,l=s.day,c=s.selected;return xe.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(u,d){return xe.createElement("div",{key:d,ref:r.QUARTER_REFS[d],role:"option",onClick:function(f){r.onQuarterClick(f,u)},onKeyDown:function(f){r.onQuarterKeyDown(f,u)},className:r.getQuarterClassNames(u),"aria-selected":r.isSelectedQuarter(l,u,c),tabIndex:r.getQuarterTabIndex(u),"aria-current":r.isCurrentQuarter(l,u)?"date":void 0},Snt(u,r.props.locale))}))}),De(Oe(r),"getClassNames",function(){var s=r.props;s.day;var l=s.selectingDate,c=s.selectsStart,u=s.selectsEnd,d=s.showMonthYearPicker,f=s.showQuarterYearPicker;return zo("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||u)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":f})}),r}return ya(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,a=r.showQuarterYearPicker,o=r.day,s=r.ariaLabelPrefix,l=s===void 0?"month ":s;return xe.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(Bi(o,"yyyy-MM")),role:"listbox"},i?this.renderMonths():a?this.renderQuarters():this.renderWeeks())}}]),n}(),Wse=function(t){ba(n,xe.Component);var e=_a(n);function n(){var r;va(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return jnt.some(function(s){return o.indexOf(s)>=0})})(a.target)&&i.props.onDropdownFocus()}),De(Oe(i),"getDateInView",function(){var a=i.props,o=a.preSelection,s=a.selected,l=a.openToDate,c=jse(i.props),u=Gse(i.props),d=jr(),f=l||s||o;return f||(c&&Oo(d,c)?c:u&&dc(d,u)?u:d)}),De(Oe(i),"increaseMonth",function(){i.setState(function(a){var o=a.date;return{date:jo(o,1)}},function(){return i.handleMonthChange(i.state.date)})}),De(Oe(i),"decreaseMonth",function(){i.setState(function(a){var o=a.date;return{date:i0(o,1)}},function(){return i.handleMonthChange(i.state.date)})}),De(Oe(i),"handleDayClick",function(a,o,s){i.props.onSelect(a,o,s),i.props.setPreSelection&&i.props.setPreSelection(a)}),De(Oe(i),"handleDayMouseEnter",function(a){i.setState({selectingDate:a}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(a)}),De(Oe(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),De(Oe(i),"handleYearChange",function(a){i.props.onYearChange&&(i.props.onYearChange(a),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(a),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(a)}),De(Oe(i),"handleMonthChange",function(a){i.props.onMonthChange&&(i.props.onMonthChange(a),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(a),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(a)}),De(Oe(i),"handleMonthYearChange",function(a){i.handleYearChange(a),i.handleMonthChange(a)}),De(Oe(i),"changeYear",function(a){i.setState(function(o){var s=o.date;return{date:x1(s,a)}},function(){return i.handleYearChange(i.state.date)})}),De(Oe(i),"changeMonth",function(a){i.setState(function(o){var s=o.date;return{date:ss(s,a)}},function(){return i.handleMonthChange(i.state.date)})}),De(Oe(i),"changeMonthYear",function(a){i.setState(function(o){var s=o.date;return{date:x1(ss(s,La(a)),Sn(a))}},function(){return i.handleMonthYearChange(i.state.date)})}),De(Oe(i),"header",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,o=a4(a,i.props.locale,i.props.calendarStartDay),s=[];return i.props.showWeekNumbers&&s.push(xe.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),s.concat([0,1,2,3,4,5,6].map(function(l){var c=ad(o,l),u=i.formatWeekday(c,i.props.locale),d=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return xe.createElement("div",{key:l,className:zo("react-datepicker__day-name",d)},u)}))}),De(Oe(i),"formatWeekday",function(a,o){return i.props.formatWeekDay?function(s,l,c){return typeof l=="function"?l(s,c):Bi(s,"EEEE",c)}(a,i.props.formatWeekDay,o):i.props.useWeekdaysShort?function(s,l){return Bi(s,"EEE",l)}(a,o):function(s,l){return Bi(s,"EEEEEE",l)}(a,o)}),De(Oe(i),"decreaseYear",function(){i.setState(function(a){var o=a.date;return{date:w1(o,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),De(Oe(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var a;switch(!0){case i.props.showMonthYearPicker:a=xq(i.state.date,i.props);break;case i.props.showYearPicker:a=function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=y.minDate,x=y.yearItemNumber,S=x===void 0?12:x,T=Gg(Hb(w1(g,S)),S).endPeriod,I=w&&Sn(w);return I&&I>T||!1}(i.state.date,i.props);break;default:a=_q(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!a)&&!i.props.showTimeSelectOnly){var o=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.decreaseYear),a&&i.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--previous--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,u=c.previousMonthButtonLabel,d=c.previousYearButtonLabel,f=i.props,p=f.previousMonthAriaLabel,h=p===void 0?typeof u=="string"?u:"Previous Month":p,v=f.previousYearAriaLabel,b=v===void 0?typeof d=="string"?d:"Previous Year":v;return xe.createElement("button",{type:"button",className:o.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?b:h},xe.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),De(Oe(i),"increaseYear",function(){i.setState(function(a){var o=a.date;return{date:Xf(o,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),De(Oe(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var a;switch(!0){case i.props.showMonthYearPicker:a=Eq(i.state.date,i.props);break;case i.props.showYearPicker:a=function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=y.maxDate,x=y.yearItemNumber,S=x===void 0?12:x,T=Gg(Xf(g,S),S).startPeriod,I=w&&Sn(w);return I&&I0&&arguments[0]!==void 0?arguments[0]:i.state.date,o=["react-datepicker__current-month"];return i.props.showYearDropdown&&o.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&o.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&o.push("react-datepicker__current-month--hasMonthYearDropdown"),xe.createElement("div",{className:o.join(" ")},Bi(a,i.props.dateFormat,i.props.locale))}),De(Oe(i),"renderYearDropdown",function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!a)return xe.createElement(Pnt,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:Sn(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),De(Oe(i),"renderMonthDropdown",function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!a)return xe.createElement(Ont,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:La(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),De(Oe(i),"renderMonthYearDropdown",function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!a)return xe.createElement(knt,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),De(Oe(i),"handleTodayButtonClick",function(a){i.props.onSelect(gq(),a),i.props.setPreSelection&&i.props.setPreSelection(gq())}),De(Oe(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return xe.createElement("div",{className:"react-datepicker__today-button",onClick:function(a){return i.handleTodayButtonClick(a)}},i.props.todayButton)}),De(Oe(i),"renderDefaultHeader",function(a){var o=a.monthDate,s=a.i;return xe.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(o),xe.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(s!==0),i.renderMonthYearDropdown(s!==0),i.renderYearDropdown(s!==0)),xe.createElement("div",{className:"react-datepicker__day-names"},i.header(o)))}),De(Oe(i),"renderCustomHeader",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=a.monthDate,s=a.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=_q(i.state.date,i.props),c=wq(i.state.date,i.props),u=xq(i.state.date,i.props),d=Eq(i.state.date,i.props),f=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return xe.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(pq(pq({},i.state),{},{customHeaderCount:s,monthDate:o,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:u,nextYearButtonDisabled:d})),f&&xe.createElement("div",{className:"react-datepicker__day-names"},i.header(o)))}),De(Oe(i),"renderYearHeader",function(){var a=i.state.date,o=i.props,s=o.showYearPicker,l=Gg(a,o.yearItemNumber),c=l.startPeriod,u=l.endPeriod;return xe.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(c," - ").concat(u):Sn(a))}),De(Oe(i),"renderHeader",function(a){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(a);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(a);default:return i.renderDefaultHeader(a)}}),De(Oe(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var a=[],o=i.props.showPreviousMonths?i.props.monthsShown-1:0,s=i0(i.state.date,o),l=0;l0;a.push(xe.createElement("div",{key:d,ref:function(h){i.monthContainer=h},className:"react-datepicker__month-container"},i.renderHeader({monthDate:u,i:l}),xe.createElement(Unt,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:u,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:f,monthShowsDuplicateDaysStart:p})))}return a}}),De(Oe(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?xe.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),xe.createElement(Hnt,wD({onDayClick:i.handleDayClick,date:i.state.date},i.props))):void 0}),De(Oe(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return xe.createElement(Wse,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),De(Oe(i),"renderInputTimeSection",function(){var a=new Date(i.props.selected),o=i4(a)&&Boolean(i.props.selected)?"".concat(Cq(a.getHours()),":").concat(Cq(a.getMinutes())):"";if(i.props.showTimeInput)return xe.createElement(Vnt,{date:a,timeString:o,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),De(Oe(i),"renderAriaLiveRegion",function(){var a,o=Gg(i.state.date,i.props.yearItemNumber),s=o.startPeriod,l=o.endPeriod;return a=i.props.showYearPicker?"".concat(s," - ").concat(l):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?Sn(i.state.date):"".concat(o4(La(i.state.date),i.props.locale)," ").concat(Sn(i.state.date)),xe.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&a)}),De(Oe(i),"renderChildren",function(){if(i.props.children)return xe.createElement("div",{className:"react-datepicker__children-container"},i.props.children)}),i.containerRef=xe.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return ya(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){!this.props.preSelection||fo(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn?this.props.openToDate&&!fo(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate}):this.setState({date:this.props.preSelection})}},{key:"render",value:function(){var r=this.props.container||znt;return xe.createElement("div",{ref:this.containerRef},xe.createElement(r,{className:zo("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),qse=function(t){ba(n,xe.Component);var e=_a(n);function n(r){var i;return va(this,n),(i=e.call(this,r)).el=document.createElement("div"),i}return ya(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return sh.createPortal(this.props.children,this.el)}}]),n}(),Wnt=function(t){return!t.disabled&&t.tabIndex!==-1},Yse=function(t){ba(n,xe.Component);var e=_a(n);function n(r){var i;return va(this,n),De(Oe(i=e.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Wnt)}),De(Oe(i),"handleFocusStart",function(a){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()}),De(Oe(i),"handleFocusEnd",function(a){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()}),i.tabLoopRef=xe.createRef(),i}return ya(n,[{key:"render",value:function(){return this.props.enableTabLoop?xe.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},xe.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,xe.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),qnt=function(t){ba(n,xe.Component);var e=_a(n);function n(){return va(this,n),e.apply(this,arguments)}return ya(n,[{key:"render",value:function(){var r,i=this.props,a=i.className,o=i.wrapperClassName,s=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,u=i.popperPlacement,d=i.popperProps,f=i.targetComponent,p=i.enableTabLoop,h=i.popperOnKeyDown,v=i.portalId,b=i.portalHost;if(!s){var g=zo("react-datepicker-popper",a);r=xe.createElement(hnt,wD({modifiers:c,placement:u},d),function(w){var x=w.ref,S=w.style,T=w.placement,I=w.arrowProps;return xe.createElement(Yse,{enableTabLoop:p},xe.createElement("div",{ref:x,style:S,className:g,"data-placement":T,onKeyDown:h},xe.cloneElement(l,{arrowProps:I})))})}this.props.popperContainer&&(r=xe.createElement(this.props.popperContainer,{},r)),v&&!s&&(r=xe.createElement(qse,{portalId:v,portalHost:b},r));var y=zo("react-datepicker-wrapper",o);return xe.createElement(rnt,{className:"react-datepicker-manager"},xe.createElement(mnt,null,function(w){var x=w.ref;return xe.createElement("div",{ref:x,className:y},f)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),Ynt=_D(Gnt),Jnt=function(t){ba(n,xe.Component);var e=_a(n);function n(r){var i;return va(this,n),De(Oe(i=e.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:jr()}),De(Oe(i),"calcInitialState",function(){var a,o=i.getPreSelection(),s=jse(i.props),l=Gse(i.props),c=s&&Oo(o,vl(s))?s:l&&dc(o,a0(l))?l:o;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(a=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&a!==void 0?a:c,highlightDates:Sq(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),De(Oe(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),De(Oe(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),De(Oe(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),De(Oe(i),"setOpen",function(a){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:a,preSelection:a&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:dN},function(){a||i.setState(function(s){return{focused:!!o&&s.focused}},function(){!o&&i.setBlur(),i.setState({inputValue:null})})})}),De(Oe(i),"inputOk",function(){return KU(i.state.preSelection)}),De(Oe(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),De(Oe(i),"handleFocus",function(a){i.state.preventFocus||(i.props.onFocus(a),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),De(Oe(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),De(Oe(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),De(Oe(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),De(Oe(i),"handleBlur",function(a){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(a),i.setState({focused:!1})}),De(Oe(i),"handleCalendarClickOutside",function(a){i.props.inline||i.setOpen(!1),i.props.onClickOutside(a),i.props.withPortal&&a.preventDefault()}),De(Oe(i),"handleChange",function(){for(var a=arguments.length,o=new Array(a),s=0;s0?i+"後":i+"前":i};const Znt=Xnt;var ert={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},trt={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},nrt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},rrt={date:fv({formats:ert,defaultWidth:"full"}),time:fv({formats:trt,defaultWidth:"full"}),dateTime:fv({formats:nrt,defaultWidth:"full"})};const irt=rrt;var art={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},ort=function(e,n,r,i){return art[e]};const srt=ort;var lrt={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},crt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},urt={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},drt={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},frt={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},prt={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},hrt=function(e,n){var r=Number(e),i=String(n==null?void 0:n.unit);switch(i){case"year":return"".concat(r,"年");case"quarter":return"第".concat(r,"四半期");case"month":return"".concat(r,"月");case"week":return"第".concat(r,"週");case"date":return"".concat(r,"日");case"hour":return"".concat(r,"時");case"minute":return"".concat(r,"分");case"second":return"".concat(r,"秒");default:return"".concat(r)}},mrt={ordinalNumber:hrt,era:$c({values:lrt,defaultWidth:"wide"}),quarter:$c({values:crt,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:$c({values:urt,defaultWidth:"wide"}),day:$c({values:drt,defaultWidth:"wide"}),dayPeriod:$c({values:frt,defaultWidth:"wide",formattingValues:prt,defaultFormattingWidth:"wide"})};const grt=mrt;var vrt=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,yrt=/\d+/i,brt={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},_rt={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},wrt={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},xrt={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},Ert={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Srt={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Crt={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},Trt={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},Art={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},Irt={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},Mrt={ordinalNumber:vse({matchPattern:vrt,parsePattern:yrt,valueCallback:function(e){return parseInt(e,10)}}),era:Bc({matchPatterns:brt,defaultMatchWidth:"wide",parsePatterns:_rt,defaultParseWidth:"any"}),quarter:Bc({matchPatterns:wrt,defaultMatchWidth:"wide",parsePatterns:xrt,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Bc({matchPatterns:Ert,defaultMatchWidth:"wide",parsePatterns:Srt,defaultParseWidth:"any"}),day:Bc({matchPatterns:Crt,defaultMatchWidth:"wide",parsePatterns:Trt,defaultParseWidth:"any"}),dayPeriod:Bc({matchPatterns:Art,defaultMatchWidth:"any",parsePatterns:Irt,defaultParseWidth:"any"})};const Drt=Mrt;var Prt={code:"ja",formatDistance:Znt,formatLong:irt,formatRelative:srt,localize:grt,match:Drt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const SD=Prt;Ent("ja",SD);const Rrt=ct.div` width: fit-content; `,Ort=ct.div` display: flex; align-items: center; padding: 4px; `,Tq=ct.button` &:hover { cursor: pointer; } `,Nrt=ct.div` flex-grow: 1; display: flex; justify-content: center; `,Aq=({componentSize:t,id:e,label:n,locale:r=SD,...i})=>{const a=C.useRef(null);return E(Rrt,{children:E(Jnt,{locale:r,customInput:E(Yp,{label:n,id:e,componentSize:t,ref:a}),renderCustomHeader:({date:o,decreaseMonth:s,increaseMonth:l})=>re(Ort,{className:"datepicker__header",children:[E(Tq,{className:"datepicker__button",onClick:s,children:"<"}),re(Nrt,{className:"datepicker__header-date",children:[re(li,{className:"datepicker__header-date__year",children:[o.getFullYear(),"年"]}),re(li,{className:"datepicker__header-date__month",children:[o.getMonth()+1,"月"]})]}),E(Tq,{className:"datepicker__button",onClick:l,children:">"})]}),...i})})},Lrt=ct.select` padding: ${({componentSize:t})=>t==="small"?"4px":"8px"}; width: ${({componentSize:t})=>t==="small"?"8em":"16em"}; `,Iq=C.forwardRef(({label:t,id:e,...n},r)=>re(jU,{children:[E(li,{component:"label",variant:"subtitle2",htmlFor:e,children:t}),E(Lrt,{...n,ref:r,id:e})]})),krt=ct(aa)` margin: calc( ${({spacing:t,direction:e})=>Lk(t,e)} / -2 ); align-items: end; flex-wrap: wrap; & > * { margin: calc( ${({spacing:t,direction:e})=>Lk(t,e)} / 2 ) !important; } `,Frt=ct(aa)` max-width: 100%; width: 100%; min-width: ${PKe}; `,$rt=ct(aa)` align-items: center; justify-content: space-between; `,Brt=ct(aa)` align-items: center; min-height: 38px; `,Urt=()=>{var d;const{searchConditionFormik:t,getSellHhistoryListQueryResult:e,paginationProps:n,searchable:r,errorMessage:i,resetHandler:a,SEARCH_QUERY_KEY:o,isLoading:s}=mZe(),l=f=>{(f.charCode||f.keyCode)===13&&(f.stopPropagation(),t.submitForm())},c=Dl(),u=({e:f,field:p,fieldValue:h})=>{if(!f)return;const v={...t.values,[p]:h||f.target.value};c.setQueryData(o,v)};return re(mD,{children:[E(cm,{title:Ufe.name}),E(b1,{spacing:1,direction:"column",children:re(b1,{spacing:1,direction:"column",children:[re(krt,{spacing:1,children:[E(Iq,{componentSize:"small",label:"AA種別",id:"aaType",name:"aaType",value:t.values.aaType,onChange:f=>{t.setFieldValue("aaType",Number(f.target.value)),u({e:f,field:"aaType"})},children:Object.entries(Koe).map(([f,p],h)=>E("option",{value:Number(f),children:p},h))}),E(Aq,{openToDate:new Date(t.values.startDate),label:"開催日/掲載開始日",componentSize:"small",id:"startDate",name:"startDate",value:t.values.startDate,onChange:(f,p)=>{t.setValues(h=>({...h,startDate:f?fl(f):t.initialValues.startDate})),u({e:p,field:"startDate",fieldValue:f?fl(f):t.initialValues.startDate})}}),E(li,{children:"~"}),E(Aq,{openToDate:new Date(t.values.endDate),selected:new Date(t.values.endDate),componentSize:"small",id:"endDate",name:"endDate",value:t.values.endDate,onChange:(f,p)=>{p&&p.preventDefault(),t.setValues(h=>({...h,endDate:f?fl(f):t.initialValues.endDate})),u({e:p,field:"endDate",fieldValue:f?fl(f):t.initialValues.endDate})}}),E(Yp,{label:"出品番号/掲載番号",componentSize:"small",id:"controlNumber",name:"controlNumber",value:t.values.controlNumber,onKeyUp:f=>l(f),onChange:f=>{t.setValues(p=>{const h=f.target.value===""?"":f.target.value.length>RKe||isNaN(parseInt(f.target.value))?p.controlNumber:parseInt(f.target.value);return{...p,controlNumber:h}}),u({e:f,field:"controlNumber"})}}),E(Yp,{label:"型式",componentSize:"small",id:"model",name:"model",value:t.values.model,onKeyUp:f=>l(f),onChange:f=>{t.setValues(p=>{const h=f.target.value.length>OKe?p.model:f.target.value;return{...p,model:h}}),u({e:f,field:"model"})}}),E(Yp,{label:"車台番号",componentSize:"small",id:"chassis",name:"chassis",value:t.values.chassis,onKeyUp:f=>l(f),onChange:f=>{t.setValues(p=>{const h=f.target.value.length>NKe?p.chassis:f.target.value;return{...p,chassis:h}}),u({e:f,field:"chassis"})}}),E(Yp,{label:"ユーザーID",componentSize:"small",id:"userId",name:"userId",value:t.values.userId,onKeyUp:f=>l(f),onChange:f=>{t.setValues(p=>{const h=f.target.value.length>LKe?p.userId:f.target.value;return{...p,userId:h}}),u({e:f,field:"userId"})}}),E(Yp,{label:"フリーワード検索",componentSize:"small",id:"keyword",name:"keyword",value:t.values.keyword,onKeyUp:f=>l(f),onChange:f=>{t.setValues(p=>{const h=f.target.value.length>kKe?p.keyword:f.target.value;return{...p,keyword:h}}),u({e:f,field:"keyword"})}}),re(Iq,{label:"AA会場",componentSize:"small",id:"aaVenue",name:"aaVenue",disabled:!(t.values.aaType===1||t.values.aaType===2),value:t.values.aaVenue,onChange:f=>{t.setFieldValue("aaVenue",f.target.value===""?"":Number(f.target.value)),u({e:f,field:"aaVenue"})},children:[E("option",{value:""}),Object.entries(eu).map(([f,p],h)=>E("option",{value:f,children:p},h))]}),E(Yp,{label:"AA回数",componentSize:"small",id:"aaCount",name:"aaCount",disabled:!(t.values.aaType===1||t.values.aaType===2),value:t.values.aaCount,onKeyUp:f=>l(f),onChange:f=>{t.setValues(p=>({...p,aaCount:parseInt(f.target.value)||""})),u({e:f,field:"aaCount"})}})]}),re(Frt,{direction:"column",spacing:1,children:[re($rt,{spacing:1,children:[re(Brt,{spacing:1,children:[E(ho,{componentSize:"small",color:"lightGrey",type:"button",onClick:()=>a(),children:"クリア"}),E(ho,{componentSize:"small",color:"primary",type:"button",disabled:!r,onClick:()=>{t.submitForm()},children:"検索"}),i&&E(lm,{severity:"error",children:i})]}),E(VU,{...n})]}),E(HKe,{isLoading:s,sellInfoList:((d=e.data)==null?void 0:d.sellInfoList)||[]})]})]})})]})},Hrt=ct(hp)` table-layout: fixed; width: 100%; `,Vrt=({columns:t,rows:e})=>E(Hrt,{children:E("tbody",{children:t.filter(n=>n.show===void 0||n.show).map((n,r)=>re("tr",{children:[E(nu,{children:n.headerName}),e.map((i,a)=>n.isVerticalHeaderColumn?E(nu,{children:n.render?n.render(i[n.field],i,a):i[n.field]},a):E(id,{children:n.render?n.render(i[n.field],i,a):i[n.field]},a))]},r))})}),zrt=t=>[{field:"venueCode",headerName:"会場",render:e=>eu[e],show:!(t===3||t===4)},{field:"eventDate",headerName:t===1?"開催日":"掲載開始日",render:e=>new Date(e).toLocaleDateString()},{field:"endDate",headerName:"掲載終了日",render:e=>(t===3||t===4)&&e?new Date(e).toLocaleDateString():void 0,show:t===3||t===4},{field:"aaCount",headerName:"回数",show:!(t===3||t===4)},{field:"controlNumber",headerName:"出品番号"}],jrt=ct.div` & tbody { & ${nu} { width: 9em; } } `,Grt=({untranslatedCarInfo:t})=>{const e=C.useMemo(()=>t?[{venueCode:t.aaVenue,eventDate:t.eventDate,startDate:t.startDate,endDate:t.endDate,aaCount:t.aaCount,controlNumber:t.controlNumber}]:[],[t]);return E(jrt,{children:t&&E(Vrt,{columns:zrt(t==null?void 0:t.aaType),rows:e})})};var l4={},Wrt=hn;Object.defineProperty(l4,"__esModule",{value:!0});var Jse=l4.default=void 0,qrt=Wrt(bn()),Yrt=_n;Jse=l4.default=(0,qrt.default)((0,Yrt.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");const Jrt=async t=>{const{data:e}=await Ua.post(u$e,t);return e},Qrt=t=>({aaType:t.untranslatedCarInfo.aaType,aaCount:t.untranslatedCarInfo.aaCount,aaVenue:t.untranslatedCarInfo.aaVenue,controlNumber:t.untranslatedCarInfo.controlNumber}),c4={getGetUntranslatedCarQueryKeys:t=>["admin","trs","untranslatedCarList","untranslatedCar",Qrt(t)],mainError:["admin","trs","untranslatedCarList","untranslatedCar","mainError"]},Krt=(t,e)=>fr(c4.getGetUntranslatedCarQueryKeys(t),()=>Jrt(t),Object.assign({refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,cacheTime:0,retry:!1},e)),u4=t=>Dw({queryKey:c4.mainError,initial:t}),Xrt=async t=>{const{data:e}=await Ua.post(p$e,t);return e},Zrt=t=>FI(Xrt,Object.assign({retry:!1},t)),eit=(t,e,n)=>{const r=u4("")[1],{regenerateToken:i}=um(),a=Zrt({retry:!1,onError:()=>{r(q6)},onSuccess:async s=>{var l,c,u,d,f,p;((l=s==null?void 0:s.result)==null?void 0:l.code)===0?((c=s==null?void 0:s.carInfoJPEN)!=null&&c.carNameEN&&((u=s==null?void 0:s.carInfoJPEN)==null?void 0:u.carNameEN)!==""&&t.setFieldValue("carNameEnValue",(d=s==null?void 0:s.carInfoJPEN)==null?void 0:d.carNameEN),s!=null&&s.carInfoJPEN.gradeEN&&s.carInfoJPEN.gradeEN!==""&&t.setFieldValue("gradeEnValue",(f=s==null?void 0:s.carInfoJPEN)==null?void 0:f.gradeEN),r("")):((p=s==null?void 0:s.result)==null?void 0:p.code)==11?(await i(),await o()):r(q6)}}),o=async()=>{const s={model:e.model,maker:e.makerCodeValue||0,carNameJP:n==null?void 0:n.carName,carNameEN:e.carNameEnValue,gradeJP:n==null?void 0:n.grade,gradeEN:e.gradeEnValue};a.mutateAsync(s)};return{handleSearchMaster:o}},tit=async t=>{const{data:e}=await Ua.post(d$e,t);return e},nit=t=>FI(tit,Object.assign({retry:!1},t)),rit=async t=>{const{data:e}=await Ua.post(f$e,t);return e},iit=t=>FI(rit,Object.assign({retry:!1},t)),Qse=ct.div` display: flex; vertical-align: middle; `,ait=ct.input` vertical-align:middle; `,oit=({type:t,label:e,id:n,...r})=>E(Qse,{children:re("span",{children:[E(ait,{type:"checkbox",id:n,...r}),e&&E("label",{htmlFor:n,style:{color:r.disabled===!0?"lightgray":"black"},children:e})]})}),sit=ct.select` padding: ${({componentSize:t})=>t==="small"?"4px":"8px"}; width: ${({componentSize:t})=>t==="small"?"8em":"16em"}; `,lit=C.forwardRef(({id:t,...e},n)=>E(jU,{children:E(sit,{...e,ref:n,id:t})})),cit=ct.textarea` padding: ${({componentSize:t})=>t==="small"?"4px":"8px"}; width: ${({componentSize:t})=>t==="small"?"8em":"16em"}; `,uit=C.forwardRef((t,e)=>E(cit,{...t,ref:e})),dit=0,Kse=0,Xse=25,fit=[],Ac={carName:{maxLength:40,errorMessage:"入力制限は40文字までです",rows:2},gradle:{maxLength:60,errorMessage:"入力制限は60文字までです",rows:3}},Mq="useUntranslatedCarListQuery",n3=t=>E(oit,{...t,label:"マスタ作成する"}),pit=ct.div` background-color: ${({value:t})=>t?"rgb(200, 200, 200)":"rgba(255, 102, 255)"}; padding: 4px; `,hit=ct(uit)` background-color: ${({value:t})=>t?"#fff":"rgba(255, 102, 255)"}; border-color: ${({value:t})=>t?"#1976d2":""}; resize: none; width: 100%; &:focus { outline: none; } `,Dq=ct.div` background-color: rgba(200, 200, 200); padding: 4px; height: 2.5em; `,Pq=({initialValue:t,error:e,...n})=>E(pit,{initialValue:t,value:n.value,children:E(hit,{...n,style:{borderColor:e?"red":""}})}),mit=[{field:"masterColumn",headerName:"項目",isVerticalHeaderColumn:!0},{field:"masterColumnID",headerName:"項目名ID",show:!1},{field:"japanese",headerName:"データ"},{field:"english",headerName:"翻訳"},{field:"createMaster",headerName:"",show:!1}],git=[{field:"masterColumn",headerName:"項目名",isVerticalHeaderColumn:!0},{field:"masterColumnID",headerName:"項目名ID",show:!1},{field:"japanese",headerName:"日本語"},{field:"english",headerName:"英語"}],vit=(t,e)=>{switch(e.type){case"changePopupOpen":return{...t,popupOpen:e.payload};case"changeUpdateProcessing":return{...t,updateProcessing:e.payload};case"changeManyKeys":return{...t,...JSON.parse(JSON.stringify(e.payload))};case"changeInputMaxLengthErrorMessage":return{...t,inputMaxLengthErrorMessage:e.payload};case"editingArea":return{...t,editingArea:e.payload};default:throw new Loe}},yit=(t,e)=>{var T,I;const n=Dl(),r=n.getQueryData(Mq),i={model:(t==null?void 0:t.model)||"",makerCodeValue:(t==null?void 0:t.makerCode)??"",carNameEnValue:(t==null?void 0:t.carNameEn)||"",carNameEnCreateMaster:e===!0,gradeEnValue:(t==null?void 0:t.gradeEn)||"",gradeEnCreateMaster:!0},[a,o]=C.useReducer(vit,{popupOpen:!1,updateProcessing:!1,inputMaxLengthErrorMessage:null,editingArea:null}),s=u4("")[1],l=_r(),{handleSubmit:c,...u}=cD({initialValues:i,onSubmit:()=>{o({type:"changePopupOpen",payload:!0})}}),d=()=>{o({type:"editingArea",payload:null}),o({type:"changeInputMaxLengthErrorMessage",payload:null})},f=P=>M=>{switch(o({type:"editingArea",payload:P}),P){case"carNameEn":o({type:"changeInputMaxLengthErrorMessage",payload:M.target.value.length===Ac.carName.maxLength?Ac.carName.errorMessage:null});break;case"gradeEn":o({type:"changeInputMaxLengthErrorMessage",payload:M.target.value.length===Ac.gradle.maxLength?Ac.gradle.errorMessage:null});break}u.setFieldValue(P==="carNameEn"?"carNameEnValue":"gradeEnValue",M.target.value)},p=P=>M=>{u.setFieldValue(P==="carNameEn"?"carNameEnCreateMaster":"gradeEnCreateMaster",M.target.checked)},h={retry:!1,onMutate:()=>{o({type:"changeUpdateProcessing",payload:!0})},onError:()=>{s(ps),o({type:"changeManyKeys",payload:{popupOpen:!1,updateProcessing:!1}})},onSuccess:P=>{if(P.code===0){switch(y){case"登録":if(r){const{aaType:N}=r;n.setQueryData(Mq,{offset:0,aaType:N})}break;case"修正":l(-1);break}s("");const M=window.localStorage.getItem("makerList");l(M?`${kf}?aaType=${t==null?void 0:t.aaType}&offset=${0}&list=${encodeURIComponent(M)}`:`${kf}?aaType=${t==null?void 0:t.aaType}&offset=${0}`)}else P.code===2?s(fWe):s(ps);o({type:"changeManyKeys",payload:{popupOpen:!1,updateProcessing:!1}})}},v=nit(h),b=iit(h),y=(()=>{const M=new URLSearchParams(window.location.search).get("editType");return M&&parseInt(M)===Noe.EDIT?"修正":"登録"})(),w=async()=>{if(t){const P={aaType:t.aaType,aaCount:t.aaCount,aaVenue:t.aaVenue,controlNumber:t.controlNumber,model:t.model||void 0,makerCode:u.values.makerCodeValue||void 0,carName:t.carName,carNameEn:u.values.carNameEnValue||void 0,carNameRegistFlag:u.values.carNameEnValue?u.values.carNameEnCreateMaster:!1,grade:t.grade,gradeEn:u.values.gradeEnValue||void 0,correctCurrentVersionJp:t.correctCurrentVersionJp,correctCurrentVersionEn:t.correctCurrentVersionEn};switch(y){case"登録":v.mutate(P);break;case"修正":b.mutate(P);break}}},x=[{masterColumn:"型式",masterColumnID:"modelOfCar",japanese:t==null?void 0:t.model,english:E(Dq,{}),createMaster:E(oi,{})},{masterColumn:"メーカー",masterColumnID:"makerCodeOfCar",japanese:((t==null?void 0:t.aaType)!==L9.usec||y==="登録")&&(t==null?void 0:t.makerCode)!==void 0&&(t==null?void 0:t.makerCode)!==null?kh[t==null?void 0:t.makerCode]:(t==null?void 0:t.aaType)===L9.usec&&(y==="修正"||y==="登録"&&((t==null?void 0:t.makerCode)===void 0||(t==null?void 0:t.makerCode)===null))?re(lit,{componentSize:"small",id:"makerCodeValue",name:"makerCodeValue",value:u.values.makerCodeValue,onChange:P=>{u.setFieldValue("makerCodeValue",P.target.value===""?"":Number(P.target.value))},style:{backgroundColor:y==="修正"&&(t==null?void 0:t.makerCode)!==void 0&&(t==null?void 0:t.makerCode)!==null?"white":"rgba(255, 102, 255)"},children:[E("option",{value:"",hidden:!0}),Object.entries(kh).map(([P,M],N)=>E("option",{value:P,children:M},N))]}):"",english:E(Dq,{}),createMaster:E(oi,{})},{masterColumn:"車名",masterColumnID:"nameOfCar",japanese:t==null?void 0:t.carName,english:i.carNameEnValue&&y==="登録"?i.carNameEnValue:E(Pq,{name:"carNameEn",autoFocus:!i.carNameEnValue,value:u.values.carNameEnValue,initialValue:i.carNameEnValue,onChange:f("carNameEn"),onFocus:f("carNameEn"),maxLength:Ac.carName.maxLength,rows:Ac.carName.rows,onBlur:d,error:((T=u.values.carNameEnValue)==null?void 0:T.length)===Ac.carName.maxLength&&a.inputMaxLengthErrorMessage!==null&&a.editingArea==="carNameEn"}),createMaster:i.carNameEnValue?E(oi,{}):E(n3,{id:"carEnCreateMaster",name:"carEnCreateMaster",checked:u.values.carNameEnCreateMaster,onChange:p("carNameEn"),disabled:!u.values.carNameEnValue})},{masterColumn:"グレード",masterColumnID:"grade",japanese:t==null?void 0:t.grade,english:i.gradeEnValue&&y==="登録"?i.gradeEnValue:E(Pq,{name:"gradeEn",autoFocus:!i.gradeEnValue,value:u.values.gradeEnValue,initialValue:i.gradeEnValue,onChange:f("gradeEn"),onFocus:f("gradeEn"),maxLength:Ac.gradle.maxLength,rows:Ac.gradle.rows,onBlur:d,error:((I=u.values.gradeEnValue)==null?void 0:I.length)===Ac.gradle.maxLength&&a.inputMaxLengthErrorMessage!==null&&a.editingArea==="gradeEn"}),createMaster:i.gradeEnValue?E(oi,{}):E(n3,{id:"gradeEnCreateMaster",name:"gradeEnCreateMaster",checked:u.values.gradeEnCreateMaster,onChange:p("gradeEn"),disabled:!u.values.gradeEnValue})}],S=[{masterColumn:"Name of Car",masterColumnID:"nameOfCar",japanese:t==null?void 0:t.carName,english:u.values.carNameEnValue},{masterColumn:"Grade",masterColumnID:"grade",japanese:t==null?void 0:t.grade,english:u.values.gradeEnValue}];return{tableProps:{rows:x,columns:mit},confirmationTableProps:{rows:S,columns:git},goBack:()=>{history.length>1?l(-1):l(kf)},otherState:a,otherStateDispatch:o,handleGoConfirmation:c,handleSubmit:w,handleChangeTextField:f,handleChangeCreateMasterCheckbox:p,editType:y,...b,...u,restFormik:u}},d4=["すべて","AA(ワンプラ)","ワンプラ","ストプラ","ユーロケ"],bit=(t,e)=>{t.ctrlKey?(t.preventDefault(),window.open(e,"_blank")):window.location.href=e},$C=ct.div` overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background-color: rgba(255, 102, 255); min-height: 18px; `,_it=[{field:"aaType",headerName:"AA種別",render:t=>t>0?d4[t]:void 0},{field:"eventDate",headerName:"開催日/掲載開始日",render:t=>t?new Date(t).toLocaleDateString():""},{field:"aaVenue",headerName:"会場",render:t=>E(C.Fragment,{children:eu[t]})},{field:"aaCount",headerName:"回数"},{field:"controlNumber",headerName:"出品番号/掲載番号",render:(t,e)=>E(zU,{href:e.url,onClick:n=>{bit(n,e.url)},children:t})},{field:"makerCode",headerName:"メーカー",render:t=>E(C.Fragment,{children:kh[t]?kh[t]:E($C,{})})},{field:"carName",headerName:"車名",render:(t,e)=>E(C.Fragment,{children:e.carNameEn?t:E($C,{children:t})})},{field:"grade",headerName:"グレード",render:(t,e)=>E(C.Fragment,{children:e.gradeEn?t:E($C,{children:t})})}],wit=ct.div` & > ${hp} { table-layout: fixed; max-width: 100%; width: 100%; & ${nu}:not(:nth-of-type(7),:last-of-type) { width: 9.5em; } & tr { & > ${id}:nth-child(7), ${id}:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: ${({mainSize:t})=>t.width?`${(t.width-470)/2}px`:"100%"}; } } } `,xit=t=>{const e=t.isLoading,n=C.useMemo(()=>t!=null&&t.untranslatedCarInfoList?t.untranslatedCarInfoList.map(({eventDate:a,startDate:o,...s})=>({aaVenue:null,...s,eventDate:a})):[],[t]),[r,i]=C.useState({width:0,height:0});return C.useEffect(()=>{const a=document.querySelector("main");if(a){i({width:a.clientWidth||0,height:a.clientHeight||0});const o=()=>{i({width:a.clientWidth||0,height:a.clientHeight||0})};window.addEventListener("resize",o)}return()=>{}},[]),E(wit,{mainSize:r,children:E(Bh,{columns:_it,rows:n,isLoading:e})})},Eit=ct.form` width: 100%; & ${hp} { & tbody { & ${nu} { width: 9em; } & ${id} { &:nth-of-type(2) { padding: 0; vertical-align: middle; } &:last-of-type { } } & ${$C} { overflow: revert; text-overflow: revert; } } & ${nu} { &:last-child { } } } & .wrapTableAndCheckbox { flex-wrap: no-wrap; align-items: center; & ${Qse} { display: flex; flex-direction: column; white-space: nowrap; align-items: flex-start; } } & .wrapCheckBoxAndSearchButton { // マスタから検索とチェックボックスを上下に等間隔で並べる display: flex; flex-flow: column; justify-content: space-evenly; height: 100px; padding: 4px; align-items: flex-end; & .maxLengthErrorMessage { color: red; } } `,Rq=ct(aa)` justify-content: end; width: 100%; margin-top: 1em; `,Sit=ct.div` background-color: ${({theme:t})=>t.palette.white.light}; padding: 2em; border-radius: 4px; `,Cit=t=>{const{tableProps:e,confirmationTableProps:n,otherState:r,otherStateDispatch:i,handleGoConfirmation:a,goBack:o,handleSubmit:s,initialValues:l,values:c,restFormik:u,handleChangeCreateMasterCheckbox:d,editType:f}=yit(t.untranslatedCarInfo,t.existGradeTranslations),{handleSearchMaster:p}=eit(u,c,t.untranslatedCarInfo),h=!l.carNameEnValue&&c.carNameEnValue===l.carNameEnValue;return re(C.Fragment,{children:[re(Eit,{onSubmit:a,children:[re("div",{className:"wrapTableAndCheckbox",children:[E("div",{children:E(Bh,{saleInfoTable:!0,...e})}),re("div",{className:"wrapCheckBoxAndSearchButton",children:[E("div",{className:"maxLengthErrorMessage",children:r.inputMaxLengthErrorMessage&&r.inputMaxLengthErrorMessage}),E(ds,{style:{color:"black",borderColor:"#4472C4",borderRadius:"inherit",marginBottom:"0.5em",borderWidth:"0.2em"},variant:"outlined",startIcon:E(Jse,{}),onClick:p,disabled:c.makerCodeValue==="",children:"マスタ検索"}),E(n3,{id:"carEnCreateMaster",name:"carEnCreateMaster",checked:c.carNameEnCreateMaster,onChange:d("carNameEn"),disabled:t.existGradeTranslations!==!0}),t.existGradeTranslations!==!0&&re($i,{color:"error",fontSize:11,children:["メーカーを自動判定できなかった車両のため",E("br",{}),"翻訳マスタ作成はできません。"]})]})]}),re(Rq,{spacing:2,children:[E(ho,{color:"lightGrey",componentSize:"medium",type:"button",onClick:o,children:"キャンセル"}),E(ho,{color:"primary",componentSize:"medium",type:"submit",disabled:h||c.makerCodeValue===""||c.makerCodeValue===0,children:f})]})]}),E(BU,{open:r.popupOpen,showedChildIndex:0,children:E(Sit,{children:re(b1,{spacing:2,direction:"column",children:[re("div",{children:[E(li,{component:"div",variant:"h5",children:"入力情報を登録しますか?"}),E(li,{component:"div",variant:"h5",children:"入力情報に誤りがないかご確認ください。"})]}),E(Bh,{...n}),re(Rq,{spacing:2,children:[E(ho,{color:"lightGrey",disabled:r.updateProcessing,onClick:()=>i({type:"changePopupOpen",payload:!1}),children:"キャンセル"}),E(ho,{color:"primary",disabled:r.updateProcessing,type:"button",onClick:s,children:f})]})]})})})]})},Tit=()=>{const[t]=Wi(),e=Xoe("")[1];C.useEffect(()=>{console.log(t.get("aaType")),e("")},[]);const n={aaType:parseInt(t.get("aaType")||""),aaCount:parseInt(t.get("aaCount")||""),aaVenue:parseInt(t.get("aaVenue")||""),controlNumber:parseInt(t.get("controlNumber")||"")},{regenerateToken:r}=um(),i=Dl(),a={untranslatedCarInfo:n},o=Krt(a,{onSuccess:async c=>{var u;(c==null?void 0:c.result.code)===11?(await r(),await i.refetchQueries(c4.getGetUntranslatedCarQueryKeys(a))):(c==null?void 0:c.result.code)!==0&&!((u=c==null?void 0:c.errorCode)!=null&&u.includes("VALE"))&&e(wf)},onError:()=>{e(wf)},enabled:t.get("aaType")!==null&&t.get("controlNumber")!==null}),s={fileInfo:n},l=LU(s,{onSuccess:async c=>{var u;(c==null?void 0:c.result.code)===11?(await r(),await i.refetchQueries(NU.getGetInspectImageQueryKeys(s))):(c==null?void 0:c.result.code)!==0&&!((u=c==null?void 0:c.errorCode)!=null&&u.includes("VALE"))&&e(wf)},onError:()=>{e(wf)},enabled:t.get("aaType")!==null&&t.get("controlNumber")!==null});return{getUntranslatedCar:o,getInspectImage:l}},Ait=ct(aa)` width: 100%; `,Iit=ct(aa)` min-width: 500px; width: calc(50% - 2em); `,Mit=ct(aa)` align-items: center; min-width: 300px; width: calc(50% - 2em); max-height: calc(100vh - ${e0} - 2em); `,Dit=()=>{var a,o,s,l,c,u,d,f,p;const{getUntranslatedCar:t,getInspectImage:e}=Tit(),[n,r]=C.useState(!1),[i]=u4("");return re(mD,{children:[E(cm,{}),re(Ait,{spacing:2,children:[re(Iit,{direction:"column",spacing:2,children:[((a=t.data)==null?void 0:a.untranslatedCarInfo)&&re(C.Fragment,{children:[E(Hg,{title:"開催情報",children:E(Grt,{untranslatedCarInfo:t.data.untranslatedCarInfo})}),E(Hg,{title:"出品情報",children:E(Cit,{untranslatedCarInfo:t.data.untranslatedCarInfo,existGradeTranslations:t.data.existGradeTranslations})})]}),i&&E(lm,{severity:"error",children:i})]}),E(Mit,{direction:"column",children:e.isFetched&&E(aA,{onClickImage:()=>r(!0),image:((s=(o=e.data)==null?void 0:o.fileInfo)==null?void 0:s.pathJP)||"",word:((c=(l=e.data)==null?void 0:l.fileInfo)==null?void 0:c.correctionJP)||""})})]}),n&&E(Hoe,{open:n,showedChildIndex:0,showCloseButton:!0,onClose:()=>r(!1),inspectProps:[{image:((d=(u=e.data)==null?void 0:u.fileInfo)==null?void 0:d.pathJP)||"",word:((p=(f=e.data)==null?void 0:f.fileInfo)==null?void 0:p.correctionJP)||""}]})]})};var f4={},Pit=hn;Object.defineProperty(f4,"__esModule",{value:!0});var Zse=f4.default=void 0,Rit=Pit(bn()),Oit=_n;Zse=f4.default=(0,Rit.default)((0,Oit.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var p4={},Nit=hn;Object.defineProperty(p4,"__esModule",{value:!0});var h4=p4.default=void 0,Lit=Nit(bn()),kit=_n;h4=p4.default=(0,Lit.default)((0,kit.jsx)("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune");var Fit=typeof mt=="object"&&mt&&mt.Object===Object&&mt,ele=Fit,$it=ele,Bit=typeof self=="object"&&self&&self.Object===Object&&self,Uit=$it||Bit||Function("return this")(),Ad=Uit,Hit=Ad,Vit=Hit.Symbol,m4=Vit,Oq=m4,tle=Object.prototype,zit=tle.hasOwnProperty,jit=tle.toString,ob=Oq?Oq.toStringTag:void 0;function Git(t){var e=zit.call(t,ob),n=t[ob];try{t[ob]=void 0;var r=!0}catch{}var i=jit.call(t);return r&&(e?t[ob]=n:delete t[ob]),i}var Wit=Git,qit=Object.prototype,Yit=qit.toString;function Jit(t){return Yit.call(t)}var Qit=Jit,Nq=m4,Kit=Wit,Xit=Qit,Zit="[object Null]",eat="[object Undefined]",Lq=Nq?Nq.toStringTag:void 0;function tat(t){return t==null?t===void 0?eat:Zit:Lq&&Lq in Object(t)?Kit(t):Xit(t)}var CD=tat;function nat(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var nle=nat,rat=CD,iat=nle,aat="[object AsyncFunction]",oat="[object Function]",sat="[object GeneratorFunction]",lat="[object Proxy]";function cat(t){if(!iat(t))return!1;var e=rat(t);return e==oat||e==sat||e==aat||e==lat}var rle=cat,uat=Ad,dat=uat["__core-js_shared__"],fat=dat,fN=fat,kq=function(){var t=/[^.]+$/.exec(fN&&fN.keys&&fN.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function pat(t){return!!kq&&kq in t}var hat=pat,mat=Function.prototype,gat=mat.toString;function vat(t){if(t!=null){try{return gat.call(t)}catch{}try{return t+""}catch{}}return""}var ile=vat,yat=rle,bat=hat,_at=nle,wat=ile,xat=/[\\^$.*+?()[\]{}|]/g,Eat=/^\[object .+?Constructor\]$/,Sat=Function.prototype,Cat=Object.prototype,Tat=Sat.toString,Aat=Cat.hasOwnProperty,Iat=RegExp("^"+Tat.call(Aat).replace(xat,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Mat(t){if(!_at(t)||bat(t))return!1;var e=yat(t)?Iat:Eat;return e.test(wat(t))}var Dat=Mat;function Pat(t,e){return t==null?void 0:t[e]}var Rat=Pat,Oat=Dat,Nat=Rat;function Lat(t,e){var n=Nat(t,e);return Oat(n)?n:void 0}var dm=Lat,kat=dm,Fat=kat(Object,"create"),TD=Fat,Fq=TD;function $at(){this.__data__=Fq?Fq(null):{},this.size=0}var Bat=$at;function Uat(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Hat=Uat,Vat=TD,zat="__lodash_hash_undefined__",jat=Object.prototype,Gat=jat.hasOwnProperty;function Wat(t){var e=this.__data__;if(Vat){var n=e[t];return n===zat?void 0:n}return Gat.call(e,t)?e[t]:void 0}var qat=Wat,Yat=TD,Jat=Object.prototype,Qat=Jat.hasOwnProperty;function Kat(t){var e=this.__data__;return Yat?e[t]!==void 0:Qat.call(e,t)}var Xat=Kat,Zat=TD,eot="__lodash_hash_undefined__";function tot(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Zat&&e===void 0?eot:e,this}var not=tot,rot=Bat,iot=Hat,aot=qat,oot=Xat,sot=not;function k0(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1}var Sot=Eot,Cot=AD;function Tot(t,e){var n=this.__data__,r=Cot(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Aot=Tot,Iot=uot,Mot=yot,Dot=wot,Pot=Sot,Rot=Aot;function F0(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1}var Ist=Ast;function Mst(t,e,n){for(var r=-1,i=t==null?0:t.length;++r=Hst&&(a=Ust,o=!1,e=new Lst(e));e:for(;++i0){if(++e>=alt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var clt=llt,ult=ilt,dlt=clt,flt=dlt(ult),plt=flt,hlt=ule,mlt=Jst,glt=plt;function vlt(t,e){return glt(mlt(t,e,hlt),t+"")}var ylt=vlt,blt=9007199254740991;function _lt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=blt}var dle=_lt,wlt=rle,xlt=dle;function Elt(t){return t!=null&&xlt(t.length)&&!wlt(t)}var fle=Elt;function Slt(t){return t!=null&&typeof t=="object"}var nx=Slt,Clt=fle,Tlt=nx;function Alt(t){return Tlt(t)&&Clt(t)}var Ilt=Alt,Mlt=zst,Dlt=ylt,Plt=Ilt,Rlt=Dlt(function(t,e){return Plt(t)?Mlt(t,e):[]}),Olt=Rlt;const Nlt=async t=>{const{data:e}=await Ua.post(jte,t);return e},Llt=async t=>{const{data:e}=await Ua.post(Vte,t);return e},klt=({offset:t,limit:e})=>({offset:t,limit:e}),Flt=({aaType:t,listInfo:e,makerCodeList:n})=>({aaType:t,listInfo:klt(e),makerCodeList:n}),ple={getGetUntranslatedCarListQueryKeys:t=>["admin","trs","untranslatedCarList",Flt(t)]},$lt=(t,e)=>fr(ple.getGetUntranslatedCarListQueryKeys(t),()=>Llt(t),{refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1,cacheTime:0,...e}),Blt={aaType:dit,offset:Kse,limit:Xse,makerCodeList:fit},sb="useUntranslatedCarListQuery",Ult=()=>{const[t,e]=C.useState(!1),[n,r]=C.useState(Blt),[i,a]=C.useState(d4.reduce((H,$,W)=>({...H,[W]:Kse}),{})),o=Eo(),s=_r();C.useEffect(()=>{const H=new URL(window.location.href).searchParams,$=H.get("aaType"),W=H.get("offset"),K=H.get("list"),le=K?JSON.parse(decodeURIComponent(K)):[],U=parseInt($||"0");o.search&&e(!0),r(q=>({...q,aaType:U,offset:Number(W)||0,makerCodeList:le})),p||(f.setQueryData(sb,{...n,aaType:U,offset:Number(W)||0,makerCodeList:le}),a({...i,[U]:Number(W)||0}))},[o.search]);const l=H=>()=>{s(`${o.pathname}?aaType=${H}&offset=${0}&list=${encodeURIComponent(JSON.stringify([]))}`),f.setQueryData(sb,{...n,aaType:H,offset:0})},{regenerateToken:c}=um(),u=rD()[1],d={aaType:n.aaType,listInfo:{offset:n.offset,limit:n.limit},makerCodeList:n.makerCodeList},f=Dl(),p=f.getQueryData(sb),h=$lt(d,{onSuccess:async H=>{e(!1),(H==null?void 0:H.result.code)===11?(await c(),await f.refetchQueries(ple.getGetUntranslatedCarListQueryKeys(d))):(H==null?void 0:H.result.code)!==0&&u(ps)},onError:()=>{e(!1),u(ps)}}),v=(H,$)=>{const W=n.offset+($==="next"?1:-1);s(`${o.pathname}?aaType=${n.aaType}&offset=${W}&list=${encodeURIComponent(JSON.stringify(n.makerCodeList))}`),f.setQueryData(sb,{...n,offset:W}),a({...i,[n.aaType]:W})},b=C.useMemo(()=>({offset:n.offset,limit:n.limit,totalCount:0,untranslatedCarInfoList:[]}),[]);C.useEffect(()=>{if(p){const{aaType:H,offset:$,makerCodeList:W}=p;s(`${o.pathname}?aaType=${H}&offset=${$}&list=${encodeURIComponent(JSON.stringify(W))}`),a({...i,[p.aaType]:p.offset})}},[f]);const[g,y]=C.useState(void 0),[w,x]=C.useState([]),S=async()=>{const $=new URL(window.location.href).searchParams.get("aaType")??"0";try{const W=await Nlt({aaType:Number($)});(W==null?void 0:W.result.code)!==0?u(ps):y(W)}catch{u(ps)}};C.useEffect(()=>{S()},[o.search]);const[T,I]=C.useState(!1),P=()=>{if(I(!0),!g)return;const H=g.makerList.filter($=>n.makerCodeList.includes($.makerCode)).map($=>$.makerName);x(H)},M=()=>{I(!1)},N=H=>{const{target:{value:$}}=H;x(typeof $=="string"?$.split(","):$)},R=(H,$)=>{H.preventDefault(),x(W=>Olt(W,$))},O=()=>{if(!g)return;const H=g.makerList.map($=>String($.makerName));x(H)},D=()=>{x([])},L=()=>{if(I(!1),!g)return;const H=g.makerList.filter($=>w.includes($.makerName)).map($=>$.makerCode);window.localStorage.setItem("makerList",JSON.stringify(H)),s(`${o.pathname}?aaType=${n.aaType}&offset=${0}&list=${encodeURIComponent(JSON.stringify(H))}`),f.setQueryData(sb,{...n,makerCodeList:H})},k=(H,$)=>{const W=$.map(U=>U.makerCode);let K=0;return H.forEach(U=>{W.includes(U)||K++}),K===0?void 0:H.filter(U=>W.includes(U))},B=()=>{if(g===void 0)return;const H=k(n.makerCodeList,g.makerList);H!==void 0&&s(`${o.pathname}?aaType=${n.aaType}&offset=${0}&list=${encodeURIComponent(JSON.stringify(H))}`)};return C.useEffect(()=>{B()},[g]),{paginationState:n,setPaginationState:r,handleClickChangePageButton:v,handleClickAATypeFilterButton:l,initialUntranslatedCarListTableProps:b,...h,isLoading:t,filterDialogOpen:T,handleFilterDialogOpen:P,handleFilterDialogClose:M,handleSelectBoxChange:N,selectedOption:w,handleDelete:R,makerList:g,handleFilter:L,handleSelectAll:O,handleClear:D}},Hlt=ct(aa)` flex-wrap: wrap; `,Vlt=ct.div` display: flex; justify-content: space-between; flex-wrap: wrap; align-items: end; `,zlt=ct(aa)` width: fit-content; `,jlt=150,Glt=8,Wlt={PaperProps:{style:{maxHeight:jlt*4.5+Glt,width:250}}},qlt=()=>{const{paginationState:t,data:e,handleClickChangePageButton:n,handleClickAATypeFilterButton:r,initialUntranslatedCarListTableProps:i,isLoading:a,handleFilterDialogOpen:o,handleFilterDialogClose:s,handleSelectBoxChange:l,selectedOption:c,handleDelete:u,filterDialogOpen:d,makerList:f,handleFilter:p,handleSelectAll:h,handleClear:v}=Ult();return re(mD,{children:[E(cm,{title:Bfe.name}),re(zlt,{spacing:2,direction:"column",children:[re(Vlt,{children:[re(Hlt,{spacing:1,children:[d4.map((b,g)=>E(ho,{componentSize:"small",disabled:t.aaType===g,hidden:g===2,onClick:r(g),children:b},g)),E(ho,{color:"lightBlue",border:"lightBlue",componentSize:"small",onClick:o,children:re("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:[E(h4,{}),"フィルタ"]})})]}),E(VU,{offset:t.offset,count:t.limit,limit:Xse,totalCount:e!=null&&e.listInfo?e.listInfo.totalCount:0,onClick:n})]}),E(xit,{isLoading:a,...e||i})]}),re(Tw,{open:d,onClose:s,PaperProps:{style:{width:"50vw",maxWidth:"unset",minWidth:"500px"}},sx:{"& .MuiDialog-container":{alignItems:"flex-start"}},children:[E(K$,{id:"untran-dialog-title",children:"メーカー フィルタリング"}),E(ir,{"aria-label":"close",onClick:s,sx:{position:"absolute",right:8,top:8},children:E(op,{})}),f&&re(MM,{sx:{display:"flex",gap:"10px"},children:[E(ho,{style:{height:"34px"},componentSize:"small",onClick:h,children:"全選択"}),E(ho,{style:{height:"34px"},componentSize:"small",onClick:v,children:"クリア"}),E(dl,{size:"small",sx:{width:"100%"},multiple:!0,value:c,onChange:l,input:E(ul,{id:"select-multiple-chip"}),renderValue:b=>E(zr,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:b.map(g=>{const y=f.makerList.find(w=>w.makerName===g);return E(dte,{size:"small",label:`${(y==null?void 0:y.makerCode)===-1?"":(y==null?void 0:y.makerCode.toString().padStart(2,"0"))+" "}${g}`,clickable:!0,deleteIcon:E(Zse,{onMouseDown:w=>w.stopPropagation()}),onDelete:w=>{u(w,g)}},g)})}),MenuProps:Wlt,children:f==null?void 0:f.makerList.map(b=>re(jc,{value:b.makerName,children:[E(mo,{checked:c.indexOf(b.makerName)>-1}),E(fs,{primary:`${b.makerCode===-1?"":b.makerCode.toString().padStart(2,"0")} ${b.makerName}`})]},b.makerName))}),E(ho,{style:{height:"34px"},componentSize:"small",onClick:p,children:"OK"})]})]})]})},Ylt="#ffffff",Jlt="#29a03b",Qlt="#c2d93d",Klt="#808080",Xlt="#D9D9D9",Zlt="#ccc",ect="rgba(242, 242, 242, 0.4588235294)",tct="2rem",nct="1.5rem",rct="14px",ict="65rem",act="_jaraMain_1wly9_19",oct="_main_1wly9_31",sct="_inputArea_1wly9_38",lct="_title_1wly9_45",cct="_copyright_1wly9_49",pN={baseColor:Ylt,primaryColor:Jlt,secondColor:Qlt,neutralColor:Klt,hatchingColor:Xlt,borderColor:Zlt,evevRowColor:ect,largeFont:tct,mediumFont:nct,smallFont:rct,pagePCMinWidth:ict,jaraMain:act,main:oct,inputArea:sct,title:lct,copyright:cct},hle=({...t})=>E("div",{...t,children:" JARA Corporation. All rights reserved 2023."}),uct="#ffffff",dct="#29a03b",fct="#c2d93d",pct="#808080",hct="#D9D9D9",mct="#ccc",gct="rgba(242, 242, 242, 0.4588235294)",vct="2rem",yct="1.5rem",bct="14px",_ct="65rem",wct="_jaraMain_dviaz_19",xct="_fogotHelpText_dviaz_31",Ect={baseColor:uct,primaryColor:dct,secondColor:fct,neutralColor:pct,hatchingColor:hct,borderColor:mct,evevRowColor:gct,largeFont:vct,mediumFont:yct,smallFont:bct,pagePCMinWidth:_ct,jaraMain:wct,fogotHelpText:xct},Hq={MOBILE_TEXT:`ID・パスワードをお忘れの場合は、お手数ですが下記までお問合せください。 株式会社JARA 仙台支店 Tel:022-390-9585 Mail:sendai@jara.co.jp`,PC_TEXT:`ID・パスワードをお忘れの場合は、お手数ですが下記までお問合せください。 株式会社JARA 仙台支店 Tel:022-390-9585 Mail:sendai@jara.co.jp`},mle=()=>window.innerWidth<=768,gle=()=>{const t=mle();return E("div",{className:Ect.fogotHelpText,children:t?Hq.MOBILE_TEXT:Hq.PC_TEXT})};var v4={},Sct=hn;Object.defineProperty(v4,"__esModule",{value:!0});var y4=v4.default=void 0,Cct=Sct(bn()),Tct=_n;y4=v4.default=(0,Cct.default)((0,Tct.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var b4={},Act=hn;Object.defineProperty(b4,"__esModule",{value:!0});var _4=b4.default=void 0,Ict=Act(bn()),Mct=_n;_4=b4.default=(0,Ict.default)((0,Mct.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function Dct(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function Vh(){return Vh=Object.assign?Object.assign.bind():function(t){for(var e=1;er.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function w4(t,e,n){return typeof t=="function"?t(e,n):t}function Nct(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function vle(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function Lct(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=t;if(!e){const p=Vq(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),h=nc({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=nc({},n,i,r);return p.length>0&&(v.className=p),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:void 0}}const o=Oct(nc({},i,r)),s=zq(r),l=zq(i),c=e(o),u=Vq(c==null?void 0:c.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),d=nc({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=nc({},c,n,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const kct=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ui(t){var e;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=t,o=Nct(t,kct),s=a?{}:w4(r,i),{props:l,internalRef:c}=Lct(nc({},o,{externalSlotProps:s})),u=jn(c,s==null?void 0:s.ref,(e=t.additionalProps)==null?void 0:e.ref);return Rct(n,nc({},l,{ref:u}),i)}function Fct(t){return Et("MuiLoadingButton",t)}const $ct=St("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Pu=$ct,Bct=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Uct=t=>{const{loading:e,loadingPosition:n,classes:r}=t,i={root:["root",e&&"loading"],startIcon:[e&&`startIconLoading${st(n)}`],endIcon:[e&&`endIconLoading${st(n)}`],loadingIndicator:["loadingIndicator",e&&`loadingIndicator${st(n)}`]},a=xt(i,Fct,r);return Vh({},r,a)},Hct=t=>t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"&&t!=="classes",Vct=He(ds,{shouldForwardProp:t=>Hct(t)||t==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(t,e)=>[e.root,e.startIconLoadingStart&&{[`& .${Pu.startIconLoadingStart}`]:e.startIconLoadingStart},e.endIconLoadingEnd&&{[`& .${Pu.endIconLoadingEnd}`]:e.endIconLoadingEnd}]})(({ownerState:t,theme:e})=>Vh({[`& .${Pu.startIconLoadingStart}, & .${Pu.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},t.loadingPosition==="center"&&{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Pu.loading}`]:{color:"transparent"}},t.loadingPosition==="start"&&t.fullWidth&&{[`& .${Pu.startIconLoadingStart}, & .${Pu.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginRight:-8}},t.loadingPosition==="end"&&t.fullWidth&&{[`& .${Pu.startIconLoadingStart}, & .${Pu.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginLeft:-8}})),zct=He("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.loadingIndicator,e[`loadingIndicator${st(n.loadingPosition)}`]]}})(({theme:t,ownerState:e})=>Vh({position:"absolute",visibility:"visible",display:"flex"},e.loadingPosition==="start"&&(e.variant==="outlined"||e.variant==="contained")&&{left:e.size==="small"?10:14},e.loadingPosition==="start"&&e.variant==="text"&&{left:6},e.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},e.loadingPosition==="end"&&(e.variant==="outlined"||e.variant==="contained")&&{right:e.size==="small"?10:14},e.loadingPosition==="end"&&e.variant==="text"&&{right:6},e.loadingPosition==="start"&&e.fullWidth&&{position:"relative",left:-10},e.loadingPosition==="end"&&e.fullWidth&&{position:"relative",right:-10})),jct=C.forwardRef(function(e,n){const r=C.useContext(pte),i=Ov(r,e),a=kt({props:i,name:"MuiLoadingButton"}),{children:o,disabled:s=!1,id:l,loading:c=!1,loadingIndicator:u,loadingPosition:d="center",variant:f="text"}=a,p=Dct(a,Bct),h=ap(l),v=u??be(IM,{"aria-labelledby":h,color:"inherit",size:16}),b=Vh({},a,{disabled:s,loading:c,loadingIndicator:v,loadingPosition:d,variant:f}),g=Uct(b),y=c?be(zct,{className:g.loadingIndicator,ownerState:b,children:v}):null;return Vt(Vct,Vh({disabled:s||c,id:h,ref:n},p,{variant:f,classes:g,ownerState:b,children:[b.loadingPosition==="end"?o:y,b.loadingPosition==="end"?y:o]}))}),B0=jct,Gct="#ffffff",Wct="#29a03b",qct="#c2d93d",Yct="#808080",Jct="#D9D9D9",Qct="#ccc",Kct="rgba(242, 242, 242, 0.4588235294)",Xct="2rem",Zct="1.5rem",eut="14px",tut="65rem",nut="_jaraMain_1lsb2_19",rut="_form_1lsb2_31",iut="_helperText_1lsb2_35",aut="_usernameArea_1lsb2_39",out="_passwordArea_1lsb2_43",sut="_input_1lsb2_47",lut="_loginItemsArea_1lsb2_54",cut="_agreeCheckAndButtonArea_1lsb2_60",uut="_checkBoxArea_1lsb2_65",dut="_loginButton_1lsb2_72",fut="_loginButtonText_1lsb2_79",Qs={baseColor:Gct,primaryColor:Wct,secondColor:qct,neutralColor:Yct,hatchingColor:Jct,borderColor:Qct,evevRowColor:Kct,largeFont:Xct,mediumFont:Zct,smallFont:eut,pagePCMinWidth:tut,jaraMain:nut,form:rut,helperText:iut,usernameArea:aut,passwordArea:out,input:sut,loginItemsArea:lut,agreeCheckAndButtonArea:cut,checkBoxArea:uut,loginButton:dut,loginButtonText:fut},$t={login:{4:"E-4 ログインできませんでした。ID、または、パスワードに誤りがあります。",12:`一定時間操作されなかったため、自動的にログアウトしました。 再度ログインしてください。`,90:"E-90 ログインできませんでした。しばらく時間をおいてから再度ログインしてください。",95:"E-95 ログインできませんでした。ID、または、パスワードに誤りがあります。",98:"E-98 ログインできませんでした。現在ロックされています。しばらく時間をおいてから再度ログインしてください。"},changePassword:{4:"E-4 パスワードが変更できませんでした。現在のパスワードに誤りがあります。",95:"E-95 パスワードが変更できませんでした。現在のパスワードに誤りがあります。",80:"E-80 パスワードが変更できませんでした。過去3回以内に利用したパスワードは登録できません。",90:"E-90 パスワードが変更できませんでした。しばらく時間をおいてからパスワードを変更してください。"},userBuy:{10:"車両が検索できませんでした。検索条件を変更して実行してください。",20:"並び替え可能な項目は5つまでです。",82:"E-82 会場が登録されておりません。"},offer:{10:"車両が検索できませんでした。検索条件を変更して実行してください。",82:"E-82 会場が登録されておりません。",90:"E-90 システムエラーが発生しました。しばらく時間をおいてからアクセスしてください。"},getMembers:{10:"表示設定に一致する会員はありません。表示設定を確認ください。",90:"E-90 会員情報の一覧取得に失敗しました。しばらく時間をおいてから実行してください。"},editMembers:{33:"入力したログインIDは現在使用されてます。",90:"E-90 会員情報の登録/変更/削除に失敗しました。しばらく時間をおいてから実行してください。"},getFee:{90:"E-90 口銭一覧の取得に失敗しました。しばらく時間をおいてから実行してください。"},saveFee:{90:"E-90 口銭の保存に失敗しました。しばらく時間をおいてから実行してください。"},getDoc:{90:"E-90 システムエラーが発生しました。しばらく時間をおいてからアクセスしてください。"},saveDoc:{0:"落札通知書情報を保存しました。",90:"E-90 システムエラーが発生しました。しばらく時間をおいてからアクセスしてください。"},editFaq:{0:"FAQ情報を保存しました。",10:"FAQ情報が保存されておりませんでした。",20:"E-20 一部情報が登録できませんでした。入力情報を確認して再度保存ください。",90:"E-90 よくあるご質問の保存に失敗しました。しばらく時間をおいてから実行してください。"},editInfo:{0:"お知らせ情報を保存しました。",10:"お知らせ情報が保存されておりませんでした。",20:"E-20 お知らせの保存に失敗しました。しばらく時間をおいてから実行してください。",90:"E-90 お知らせの保存に失敗しました。しばらく時間をおいてから実行してください。"},bid:{0:"申込実施しました。申込一覧画面で結果をご確認ください。",1:"購入申込みに失敗しました。しばらく時間をおいてから実行してください。",53:"申込できませんでした。掲載期間が過ぎております。",55:"申込できませんでした。別のユーザーがすでに購入申込しております。",57:"車両情報が更新されております。ご確認の上、再度申込をお願いします。",COME0001:"購入申込みに失敗しました。しばらく時間をおいてから実行してください。"},common:{ERROR_01:"システムエラーが発生しました、管理者に問い合わせをお願いします。"}},Kt={success:5e3,warning:5e3,error:null},yle=t=>{var e,n;if(((e=t.response)==null?void 0:e.status)===500){const r=t.response.data;Ut(`${r.errorCode}${r.errorMessage}`,{variant:"error",autoHideDuration:Kt.error})}else(n=t.response)!=null&&n.status&&Ut(`HTTP ${t.response.status}${$t.common.ERROR_01}`,{variant:"error",autoHideDuration:Kt.error})},vr={INFO:"info",INFO_DETAIL:"infodetail",BUY:"buy",BUY_DETAILS:"details",OFFERED:"offered",OFFERED_DETAIL:"details",CHANGE_PASSWORD:"changepassword",FAQ:"faq",LOGOUT:"logout"},tr={MEMBER:"member",EDIT_MEMBER:"editmember",MEMBER_OFFER:"memberoffer",MEMBER_OFFER_DETAIL:"details",EDIT_INFO:"editinfo",FAQ:"faq",DOC_EDIT:"docedit",COMMISSION:"commission",MONITORING:"monitoring",CHANGE_PASSWORD:"changepassword",LOGOUT:"logout"},rx=async t=>(await Bn.post(t?iae:aae)).data,put=async()=>(await Bn.post(Vje)).data,Bn=MU.create({baseURL:Hje,withCredentials:!0,timeout:15*1e3}),ble=window.location.href,hut=ea,hN=ble.includes(hut);Bn.interceptors.response.use(async t=>{var i,a,o;const e=t.data;if(((i=e==null?void 0:e.result)==null?void 0:i.code)===11||(e==null?void 0:e.code)===11){const s=t.config;return await put(),Bn.request(s)}const n=[99,"COME0001","VALE0001"];return[10,12,97,98].includes((a=e==null?void 0:e.result)==null?void 0:a.code)&&await rx(hN).then(s=>{s.result.code===0&&(window.location.href=hN?Iw:`${Mw}?showAdvice=1`)}),((o=e==null?void 0:e.result)==null?void 0:o.code)===94&&!ble.includes(vr.CHANGE_PASSWORD)&&(window.location.href=hN?`${ea}/${tr.CHANGE_PASSWORD}`:`${bs}/${vr.CHANGE_PASSWORD}`),n.includes(e==null?void 0:e.code)&&Ut(`E-${e==null?void 0:e.code}${$t.common.ERROR_01}`,{variant:"error",autoHideDuration:Kt.error}),t},t=>{yle(t)});const mut=async(t,e,n)=>(await Bn.post(n?tae:eae,{id:t,password:e})).data,Ei={VALIDATE_TOKEN:"validateToken",LIST_INFO:"ListInfo",LIST_INFO_DOWNLOAD:"ListInfoDownload",LIST_FAQ:"ListFaq",LIST_BUY:"ListBuy",LIST_BUY_SINGLE_INFO:"ListBuySingleInfo",LIST_INSPECT_IMAGE:"inspect-image",LIST_OFFER_INFO:"OfferInfo",LIST_BUY_FILTER:"ListBuyFilter",LIST_FEE:"ListFee",LIST_FEE_FILTER:"ListFeeFilter",USER_LIST:"userList",VENUE_LIST:"venueList",BIDDING:"Bidding",USER_LIST_OFFER_VEHICLE:"UserListOffer",ADMIN_LIST_OFFER_VEHICLE:"AdminListOffer",NOTIFICATION:"notification",CORP_LIST:"corpList"},oS=(t,e)=>{window.localStorage.setItem(t,e)},_le=t=>window.localStorage.getItem(t),wle=()=>{window.localStorage.clear()},x4=()=>{const t=i=>i===null||i.length===0,e=(i,a,o,s)=>!(a&&!a.test(i)||o&&i.lengths),n=i=>{const a=/[A-Z]/.test(i),o=/[a-z]/.test(i),s=/\d/.test(i),l=/[!@#$%^&*()_+{}\[\]:;<>,.?~\\/\-=]/.test(i);let c=0;return a&&c++,o&&c++,s&&c++,l&&c++,c};return{checkIsNull:t,validateInput:e,countValueType:n,checkPasswordValue:(i,a,o,s)=>{let l=!0;return e(a,i,8,20)&&n(a)>=2?s(null):(l=!1,s(o)),l}}},gut=t=>{const e=/^[a-zA-Z0-9!-/:-@\[-`{-~]*$/,[n,r]=C.useState(!1),[i,a]=C.useState(!1),[o,s]=C.useState(""),[l,c]=C.useState(""),[u,d]=C.useState(null),[f,p]=C.useState(null),[h,v]=C.useState(!1),b=_r(),{checkIsNull:g,validateInput:y,countValueType:w}=x4(),{enqueueSnackbar:x}=RI(),[S]=Wi();fr(Ei.VALIDATE_TOKEN,()=>Soe(t.isAdmin?2:3),{refetchOnWindowFocus:!1,onSuccess:D=>{switch(D.result.code){case 0:{t.isAdmin?b(`${ea}/${tr.MEMBER}`):b(`${bs}/${vr.INFO}`);break}}},onError:D=>{yle(D)}});const T=D=>{a(D.target.checked)},I=()=>{r(!n)},P=D=>{let L=!0;return y(D,e,8,20)&&w(D)>=2?p(null):(L=!1,p(`パスワードは以下の条件を満たす必要があります。 8~20文字, 「半角英大文字」、「半角英小文字」、「数字」、「記号」を2種以上`)),L},M=D=>{e.test(D.target.value)||(D.target.value="")},N=D=>{const L=D.target;switch(L.id){case"userId":s(L.value),g(L.value)?d("ユーザーIDを入力してください"):d(null);break;case"password":c(L.value),g(L.value)?p("パスワードを入力してください"):P(L.value);break}},R=D=>{v(!0),D.preventDefault();const L=new FormData(D.currentTarget),k=String(L.get("userId")),B=String(L.get("password"));(g(k)||g(B))&&(g(k)&&d("ユーザーIDを入力してください"),g(B)&&p("パスワードを入力してください"));const H=P(B);if(!u&&!f&&k&&B&&H){mut(k,B,t.isAdmin).then($=>{switch(v(!1),$.code){case 0:t.isAdmin?(oS("jAdminId",$.id),oS("jAdminLoginFirst",String($.loginFirst)),$.loginFirst===1?b(`${ea}/${tr.CHANGE_PASSWORD}?loginFirst=1`):b(`${ea}/${tr.MEMBER_OFFER}`)):(oS("jUserId",$.id),oS("jUserLoginFirst",String($.loginFirst)),$.loginFirst===1?b(`${bs}/${vr.CHANGE_PASSWORD}?loginFirst=1`):b(`${bs}/${vr.INFO}`));break;default:Object.hasOwn($t.login,$.code)&&x($t.login[$.code],{variant:"error",autoHideDuration:Kt.error});break}});return}},O=()=>!i||o.length===0||l.length===0||u!==null||f!==null;return C.useEffect(()=>{S.get("showAdvice")==="1"&&x($t.login[12],{variant:"warning",autoHideDuration:Kt.warning})},[window.location.href]),{showPassword:n,togglePassword:I,handleSubmit:R,checked:i,handleCheckBox:T,userIdError:u,passwordError:f,handleValueChange:N,handleUserIdInput:M,handleLoginBottonDisable:O,isLoading:h}},vut="#ffffff",yut="#29a03b",but="#c2d93d",_ut="#808080",wut="#D9D9D9",xut="#ccc",Eut="rgba(242, 242, 242, 0.4588235294)",Sut="2rem",Cut="1.5rem",Tut="14px",Aut="65rem",Iut="_jaraMain_191zt_19",ft={baseColor:vut,primaryColor:yut,secondColor:but,neutralColor:_ut,hatchingColor:wut,borderColor:xut,evevRowColor:Eut,largeFont:Sut,mediumFont:Cut,smallFont:Tut,pagePCMinWidth:Aut,jaraMain:Iut},xle=t=>{const{showPassword:e,togglePassword:n,handleSubmit:r,checked:i,handleCheckBox:a,userIdError:o,passwordError:s,handleValueChange:l,handleUserIdInput:c,handleLoginBottonDisable:u,isLoading:d}=gut(t),p="/alpha/static/assets/files/TTCα利用規約.pdf";return re("form",{className:Qs.form,onSubmit:r,children:[re("div",{className:Qs.usernameArea,children:[E(su,{onCompositionEnd:h=>{c(h)},onChange:h=>{l(h)},onBlur:h=>{l(h)},sx:{"& .MuiOutlinedInput-notchedOutline":{fontSize:"1.5rem"}},InputLabelProps:{sx:{fontSize:"1.5rem"},shrink:!0},className:Qs.input,label:"ログインID",type:"text",id:"userId",name:"userId",placeholder:"IDを入力してください",error:o!==null,inputProps:{maxLength:20}}),o&&E(i1,{error:!0,children:E("span",{className:Qs.helperText,children:o})})]}),re("div",{className:Qs.passwordArea,children:[E(su,{inputProps:{maxLength:20},onChange:h=>{l(h)},onBlur:h=>{l(h)},sx:{"& .MuiOutlinedInput-notchedOutline":{fontSize:"1.5rem"}},InputLabelProps:{sx:{fontSize:"1.5rem"},shrink:!0},className:Qs.input,label:"パスワード",type:e?"text":"password",id:"password",name:"password",placeholder:"パスワードを入力してください",error:s!==null,InputProps:{endAdornment:E(DM,{position:"end",children:E(ir,{"aria-label":"toggle password visibility",onClick:n,edge:"end",children:e?E(_4,{}):E(y4,{})})})}}),s&&E(i1,{error:!0,children:E("span",{className:Qs.helperText,children:s})})]}),E("div",{className:Qs.loginItemsArea,children:re("div",{className:Qs.agreeCheckAndButtonArea,children:[re("div",{className:Qs.checkBoxArea,children:[E(mo,{sx:{"& .MuiSvgIcon-root":{fontSize:"2.5rem"}},checked:i,onChange:a}),E("a",{href:p,target:"_blank",rel:"noreferrer",children:"利用規約"}),"に同意する"]}),E(B0,{className:Qs.loginButton,sx:{bgcolor:ft.primaryColor,"&:hover":{filter:"brightness(1.1)",bgcolor:ft.primaryColor}},disabled:u(),loading:d,variant:"contained",type:"submit",children:E("span",{className:Qs.loginButtonText,children:"ログイン"})})]})})]})},Mut=()=>E("div",{className:pN.main,children:re(gte,{component:"main",sx:{padding:"3rem",height:"100%"},children:[E(J$,{}),re(Va,{elevation:0,sx:{display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#ffffff95",height:"100%",borderRadius:"40px",padding:"2rem 1rem"},children:[re("div",{className:pN.title,children:["Welcome to TTCα!",E("br",{}),"(管理者向け)"]}),re("div",{className:pN.inputArea,children:[E(xle,{isAdmin:!0}),E(gle,{})]}),E(hle,{})]})]})});var E4={},Dut=hn;Object.defineProperty(E4,"__esModule",{value:!0});var mv=E4.default=void 0,Put=Dut(bn()),mN=_n;mv=E4.default=(0,Put.default)([(0,mN.jsx)("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8zM6.85 7h10.29l1.04 3H5.81zM19 17H5v-5h14z"},"0"),(0,mN.jsx)("circle",{cx:"7.5",cy:"14.5",r:"1.5"},"1"),(0,mN.jsx)("circle",{cx:"16.5",cy:"14.5",r:"1.5"},"2")],"DirectionsCarFilledOutlined");var S4={},Rut=hn;Object.defineProperty(S4,"__esModule",{value:!0});var bA=S4.default=void 0,Out=Rut(bn()),Nut=_n;bA=S4.default=(0,Out.default)((0,Nut.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var C4={},Lut=hn;Object.defineProperty(C4,"__esModule",{value:!0});var T4=C4.default=void 0,kut=Lut(bn()),Fut=_n;T4=C4.default=(0,kut.default)((0,Fut.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutlineOutlined");var A4={},$ut=hn;Object.defineProperty(A4,"__esModule",{value:!0});var I4=A4.default=void 0,But=$ut(bn()),Uut=_n;I4=A4.default=(0,But.default)((0,Uut.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9 0 .06.01.12.01.19l-1.84-1.84-1.41 1.41L5 16l4.24-4.24-1.41-1.41-1.82 1.82c0-.06-.01-.11-.01-.17 0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockResetOutlined");var M4={},Hut=hn;Object.defineProperty(M4,"__esModule",{value:!0});var D4=M4.default=void 0,Vut=Hut(bn()),zut=_n;D4=M4.default=(0,Vut.default)((0,zut.jsx)("path",{d:"m17 8-1.41 1.41L17.17 11H9v2h8.17l-1.58 1.58L17 16l4-4zM5 5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7v-2H5z"}),"LogoutOutlined");var P4={},jut=hn;Object.defineProperty(P4,"__esModule",{value:!0});var r3=P4.default=void 0,Gut=jut(bn()),Wut=_n;r3=P4.default=(0,Gut.default)((0,Wut.jsx)("path",{d:"M4 18v-.65c0-.34.16-.66.41-.81C6.1 15.53 8.03 15 10 15c.03 0 .05 0 .08.01.1-.7.3-1.37.59-1.98-.22-.02-.44-.03-.67-.03-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.42-.6-.75-1.28-.97-2zm6-6c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m10.75 10c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"ManageAccountsOutlined");var R4={},qut=hn;Object.defineProperty(R4,"__esModule",{value:!0});var Ele=R4.default=void 0,Yut=qut(bn()),Jut=_n;Ele=R4.default=(0,Yut.default)((0,Jut.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"ModeOutlined");var O4={},Qut=hn;Object.defineProperty(O4,"__esModule",{value:!0});var Sle=O4.default=void 0,Kut=Qut(bn()),Xut=_n;Sle=O4.default=(0,Kut.default)((0,Xut.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 13H4V5h16z"}),"Monitor");var N4={},Zut=hn;Object.defineProperty(N4,"__esModule",{value:!0});var Cle=N4.default=void 0,edt=Zut(bn()),tdt=_n;Cle=N4.default=(0,edt.default)((0,tdt.jsx)("path",{d:"M19 14V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2m-2 0H3V6h14zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3m13 0v11c0 1.1-.9 2-2 2H4v-2h17V7z"}),"PaymentsOutlined");var L4={},ndt=hn;Object.defineProperty(L4,"__esModule",{value:!0});var k4=L4.default=void 0,rdt=ndt(bn()),idt=_n;k4=L4.default=(0,rdt.default)((0,idt.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"}),"ShoppingBagOutlined");const adt="_formControl_1j9r4_3",odt="_selectBoxGroup_1j9r4_6",sdt="_selectArea_1j9r4_12",ldt="_inputFee_1j9r4_17",cdt="_revertButton_1j9r4_27",jq={formControl:adt,selectBoxGroup:odt,selectArea:sdt,inputFee:ldt,revertButton:cdt},udt=async()=>(await Bn.post(Eae)).data,Vc=({...t})=>E(su,{size:"small",id:"user-info-content",variant:"outlined",...t}),ddt="_formControl_7oep5_3",fdt={formControl:ddt},pdt=48,hdt=8,ed={PaperProps:{style:{maxHeight:pdt*4.5+hdt,width:250}}},gN=t=>{const{label:e,selectableItemList:n,selectedItemList:r,handleSelectChange:i}=t;return re(ic,{className:fdt.formControl,children:[E(zc,{id:`venu-list-checkbox-${e}`,children:e}),E(dl,{labelId:"venu-list-checkbox-label",id:"venu-list-checkbox",value:r,input:E(ul,{label:e}),renderValue:a=>a.join(", "),onChange:a=>{i(a)},multiple:!0,MenuProps:ed,children:n==null?void 0:n.map((a,o)=>re(jc,{value:a,children:[E(mo,{checked:r.indexOf(a)>-1}),E(fs,{primary:a})]},`option-venu-list-${o}`))})]})},mdt=t=>{var d,f,p;const{selectedItemList:e,setSelectedItemList:n,inputFeeValue:r,setInputFeeValue:i}=t,[a,o]=C.useState(void 0);fr(Ei.LIST_FEE_FILTER,()=>udt(),{refetchOnWindowFocus:!1,onSuccess:h=>{o(h)}});const s=(h,v)=>{const b=[];if(h)for(const g of v){const y=h.find(w=>w.planName===g);y&&b.push(y.planCode)}return b},l=(h,v)=>{const b=v.target.value;n(h==="planNameList"?{...e,planCodeList:s(a==null?void 0:a.plan,typeof b=="string"?b.split(","):b),[h]:typeof b=="string"?b.split(","):b}:{...e,[h]:typeof b=="string"?b.split(","):b})},c=()=>{i(null),n({userIdList:[],userNameList:[],planNameList:[],planCodeList:[]})},u=h=>{const v=h.replace(/^,+/g,"").replace(/,+/g,",").replace(/[^0-9,]/g,"");i(v)};return re(lt,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{maxWidth:"330px"},children:[E(lt,{xs:12,children:E("div",{className:jq.revertButton,children:E("a",{href:"",onClick:h=>{h.preventDefault(),c()},children:"絞りこみクリア"})})}),E(lt,{xs:12,children:E(gN,{label:"ログインID",selectableItemList:(d=a==null?void 0:a.user)==null?void 0:d.map(h=>h.userId),selectedItemList:e.userIdList,handleSelectChange:h=>{l("userIdList",h)}})}),E(lt,{xs:12,children:E(gN,{label:"会社名",selectableItemList:(f=a==null?void 0:a.user)==null?void 0:f.map(h=>h.userName),selectedItemList:e.userNameList,handleSelectChange:h=>{l("userNameList",h)}})}),E(lt,{xs:12,children:E(gN,{label:"企画名",selectableItemList:(p=a==null?void 0:a.plan)==null?void 0:p.map(h=>h.planName),selectedItemList:e.planNameList,handleSelectChange:h=>{l("planNameList",h)}})}),E(lt,{xs:12,children:E(Vc,{className:jq.inputFee,id:"口銭",label:"口銭",variant:"standard",value:r||"",onChange:h=>{u(h.target.value)}})})]})},gdt="#ffffff",vdt="#29a03b",ydt="#c2d93d",bdt="#808080",_dt="#D9D9D9",wdt="#ccc",xdt="rgba(242, 242, 242, 0.4588235294)",Edt="2rem",Sdt="1.5rem",Cdt="14px",Tdt="65rem",Adt="_jaraMain_9b6gk_19",Idt="_CommissionPreViewAreaMain_9b6gk_29",Mdt="_preViewTable_9b6gk_34",Gq={baseColor:gdt,primaryColor:vdt,secondColor:ydt,neutralColor:bdt,hatchingColor:_dt,borderColor:wdt,evevRowColor:xdt,largeFont:Edt,mediumFont:Sdt,smallFont:Cdt,pagePCMinWidth:Tdt,jaraMain:Adt,CommissionPreViewAreaMain:Idt,preViewTable:Mdt};var F4={},Ddt=hn;Object.defineProperty(F4,"__esModule",{value:!0});var Tle=F4.default=void 0,Pdt=Ddt(bn()),Rdt=_n;Tle=F4.default=(0,Pdt.default)((0,Rdt.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlankOutlined");var $4={},Odt=hn;Object.defineProperty($4,"__esModule",{value:!0});var Ale=$4.default=void 0,Ndt=Odt(bn()),Ldt=_n;Ale=$4.default=(0,Ndt.default)((0,Ldt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"}),"CheckBoxOutlined");var B4={},kdt=hn;Object.defineProperty(B4,"__esModule",{value:!0});var Ile=B4.default=void 0,Fdt=kdt(bn()),$dt=_n;Ile=B4.default=(0,Fdt.default)((0,$dt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM7 11h10v2H7z"}),"IndeterminateCheckBoxOutlined");const U4=({...t})=>E(mo,{style:{padding:"0px 0.5rem"},icon:E(Tle,{}),checkedIcon:E(Ale,{}),indeterminateIcon:E(Ile,{}),...t}),fc=t=>{if(t==null)return;const e=t.split("").reverse().join(""),n=e.length;let r="";if(n<=3)r=e;else for(let i=0;i0&&i%3===0&&(r+=","),r+=e[i];return r.split("").reverse().join("")},Mle=(t,e,n)=>{if(!n)return;const r=e.indexOf(t),i=[...e];r===-1?i.push(t):i.splice(r,1),i.sort((a,o)=>a-o),n(i)},Dle=t=>{const{planFeeList:e,checkedPlanFeeListIndex:n,setCheckedPlanFeeListIndex:r,onlyShowChecked:i,changedItems:a,...o}=t,s=l=>{Mle(l,n,r)};return E("tbody",{...o,children:e&&e.length>0?e.map((l,c)=>{const u=c%2===0,d=n.includes(c);return re("tr",{style:{backgroundColor:u?ft.evevRowColor:ft.baseColor},children:[E("td",{children:E(U4,{disabled:i,checked:i?!0:d,onChange:()=>{s(c)},sx:{"&.Mui-checked":{color:"black"}}})}),E("td",{children:l.planCode}),E("td",{title:l.planName,children:l.planName}),E("td",{style:{color:a!=null&&a.salesFee?"red":""},children:fc(l.salesFee.toString())}),E("td",{style:{color:a!=null&&a.winBidFee?"red":""},children:fc(l.winBidFee.toString())}),E("td",{style:{color:a!=null&&a.tax?"red":""},children:l.tax.toString()})]},`plan-list-${c}${l.planName}`)}):E("tr",{children:E("td",{colSpan:6})})})},Ple=t=>{const{userFeeList:e,checkedUserFeeListIndex:n,setCheckedUserFeeListIndex:r,onlyShowChecked:i,changedItems:a,...o}=t,s=l=>{Mle(l,n,r)};return E("tbody",{...o,children:e&&e.length>0?e.map((l,c)=>{const u=c%2===0,d=n.includes(c);return re("tr",{style:{backgroundColor:u?ft.evevRowColor:ft.baseColor},children:[E("td",{children:E(U4,{disabled:i,checked:i?!0:d,onChange:()=>{s(c)},sx:{"&.Mui-checked":{color:"black"}}})}),E("td",{children:l.userId}),E("td",{title:l.userName,children:l.userName}),E("td",{title:l.planName,children:l.planName}),E("td",{style:{color:a!=null&&a.salesFee?"red":""},children:fc(l.salesFee.toString())})]},`plan-list-${c}${l.planName}`)}):E("tr",{children:E("td",{colSpan:5})})})},Bdt="#ffffff",Udt="#29a03b",Hdt="#c2d93d",Vdt="#808080",zdt="#D9D9D9",jdt="#ccc",Gdt="rgba(242, 242, 242, 0.4588235294)",Wdt="2rem",qdt="1.5rem",Ydt="14px",Jdt="65rem",Qdt="_jaraMain_9j7fa_19",Kdt="_cardArea_9j7fa_29",Xdt={baseColor:Bdt,primaryColor:Udt,secondColor:Hdt,neutralColor:Vdt,hatchingColor:zdt,borderColor:jdt,evevRowColor:Gdt,largeFont:Wdt,mediumFont:qdt,smallFont:Ydt,pagePCMinWidth:Jdt,jaraMain:Qdt,cardArea:Kdt},Wq=({isChecked:t,children:e,...n})=>E(Cw,{sx:{border:t?`2px solid ${ft.primaryColor}`:"1px solid black"},className:Xdt.cardArea,variant:"outlined",...n,children:e}),Zdt="_tableMobileMain_8oesw_1",eft="_cardContentArea_8oesw_7",vN={tableMobileMain:Zdt,cardContentArea:eft},_A=t=>{const{planFeeList:e,userFeeList:n,checkedIndexList:r,setCheckedIndex:i,onlyShowChecked:a,changedItems:o}=t,s=l=>{if(!i||!r)return;const c=r==null?void 0:r.indexOf(l);if(c===-1)i([...r,l]);else{const u=[...r];u.splice(c,1),i(u)}};return re("div",{className:vN.tableMobileMain,children:[e&&e.map((l,c)=>{const u=r==null?void 0:r.includes(c);return E(Wq,{style:{display:a?u?"":"none":""},onClick:()=>{s(c)},isChecked:u,children:re("div",{className:vN.cardContentArea,children:[E("div",{children:l.planCode}),E("div",{children:l.planName}),E("div",{style:{color:o!=null&&o.winBidFee?"red":""},children:`口銭:${fc(l.winBidFee.toString())}`}),E("div",{style:{color:o!=null&&o.salesFee?"red":""},children:`落札手数料:${fc(l.salesFee.toString())}`}),E("div",{style:{color:o!=null&&o.tax?"red":""},children:`消費税(%):${l.tax}`})]})},`plan-card-${l.planName}${c}`)}),n&&n.map((l,c)=>{const u=r==null?void 0:r.includes(c);return E(Wq,{style:{display:a?u?"":"none":""},onClick:()=>{s(c)},isChecked:u,children:re("div",{className:vN.cardContentArea,children:[E("div",{children:l.userId}),E("div",{children:l.userName}),E("div",{children:`企画名:${l.planName}`}),E("div",{style:{color:o!=null&&o.salesFee?"red":""},children:`企画口銭:${fc(l.salesFee.toString())}`})]})},`user-card-${l.planName}${c}`)})]})},tft=t=>{const{checkedPlanFeeListIndex:e,checkedUserFeeListIndex:n,feeListResponseData:r,inputFeeValues:i}=t,{isMobile:a}=ui(),o=[];e.map(c=>{const u={planCode:r==null?void 0:r.planFeeList[c].planCode,planName:r==null?void 0:r.planFeeList[c].planName,salesFee:i.salesFee&&i.salesFee.length>0?Number(i.salesFee):r==null?void 0:r.planFeeList[c].salesFee,winBidFee:i.winBidFee&&i.winBidFee.length>0?Number(i.winBidFee):r==null?void 0:r.planFeeList[c].winBidFee,tax:i.tax&&i.tax.length>0?Number(i.tax):r==null?void 0:r.planFeeList[c].tax};o.push(u)});const s=[];n.map(c=>{const u={userId:r==null?void 0:r.userFeeList[c].userId,userName:r==null?void 0:r.userFeeList[c].userName,planCode:r==null?void 0:r.userFeeList[c].planCode,planName:r==null?void 0:r.userFeeList[c].planName,salesFee:i.salesFee&&i.salesFee.length>0?Number(i.salesFee):r==null?void 0:r.userFeeList[c].salesFee};s.push(u)});const l={salesFee:!!(i.salesFee&&i.salesFee.length>0),winBidFee:!!(i.winBidFee&&i.winBidFee.length>0),tax:!!(i.tax&&i.tax.length>0)};return re("div",{children:[!a&&e&&E("table",{className:Gq.preViewTable,children:E(Dle,{planFeeList:o,checkedPlanFeeListIndex:e,onlyShowChecked:!0,changedItems:l})}),!a&&e&&E("table",{className:Gq.preViewTable,children:E(Ple,{userFeeList:s,checkedUserFeeListIndex:n,onlyShowChecked:!0,changedItems:l})}),a&&e&&E(_A,{planFeeList:o,checkedIndexList:e,onlyShowChecked:!0,changedItems:l}),a&&n&&E(_A,{userFeeList:s,checkedIndexList:n,onlyShowChecked:!0,changedItems:l})]})},nft="#ffffff",rft="#29a03b",ift="#c2d93d",aft="#808080",oft="#D9D9D9",sft="#ccc",lft="rgba(242, 242, 242, 0.4588235294)",cft="2rem",uft="1.5rem",dft="14px",fft="65rem",pft="_jaraMain_110pq_19",hft="_titleAndButtonGroup_110pq_31",mft="_buttonGroup_110pq_36",gft="_commissionPage_110pq_44",vft="_areaWidthController_110pq_47",yft="_toolbarArea_110pq_56",bft="_tableWrapper_110pq_59",_ft="_planFeeTable_110pq_110",wft="_userFeeTable_110pq_124",xft="_commissionPageMainArea_110pq_136",Eft="_overLay_110pq_147",Sft="_panelPopper_110pq_157",Cft="_arrow_110pq_164",co={baseColor:nft,primaryColor:rft,secondColor:ift,neutralColor:aft,hatchingColor:oft,borderColor:sft,evevRowColor:lft,largeFont:cft,mediumFont:uft,smallFont:dft,pagePCMinWidth:fft,jaraMain:pft,titleAndButtonGroup:hft,buttonGroup:mft,commissionPage:gft,areaWidthController:vft,toolbarArea:yft,tableWrapper:bft,planFeeTable:_ft,userFeeTable:wft,commissionPageMainArea:xft,overLay:Eft,panelPopper:Sft,arrow:Cft},qq=t=>{const{children:e}=t;return E("div",{className:co.commissionPageMainArea,children:E("div",{className:co.areaWidthController,children:E("div",{className:co.commissionTableArea,children:e})})})},Tft="#ffffff",Aft="#29a03b",Ift="#c2d93d",Mft="#808080",Dft="#D9D9D9",Pft="#ccc",Rft="rgba(242, 242, 242, 0.4588235294)",Oft="2rem",Nft="1.5rem",Lft="14px",kft="65rem",Fft="_jaraMain_sh6gb_19",$ft="_editPanelMain_sh6gb_31",Bft="_editArea_sh6gb_36",Uft="_inputAndButtonArea_sh6gb_40",Hft="_inputGroup_sh6gb_45",Vft="_closeButtonAndCountTextArea_sh6gb_85",zft="_inputArea_sh6gb_94",jft="_primaryText_sh6gb_99",Ru={baseColor:Tft,primaryColor:Aft,secondColor:Ift,neutralColor:Mft,hatchingColor:Dft,borderColor:Pft,evevRowColor:Rft,largeFont:Oft,mediumFont:Nft,smallFont:Lft,pagePCMinWidth:kft,jaraMain:Fft,editPanelMain:$ft,editArea:Bft,inputAndButtonArea:Uft,inputGroup:Hft,closeButtonAndCountTextArea:Vft,inputArea:zft,primaryText:jft},DD=({children:t,isLoading:e,noMargin:n,...r})=>E(B0,{loading:e,variant:"contained",sx:{fontSize:"1rem",margin:n?0:"0px 5px",width:"10rem",border:2,borderColor:ft.primaryColor,bgcolor:ft.primaryColor,"&:hover":{filter:"brightness(1.1)",bgcolor:ft.primaryColor},"&.Mui-disabled":{borderColor:"unset"}},...r,children:t}),Gft=t=>{const{handlePanelClose:e,isPlanFeeEdit:n,count:r,inputFeeValues:i,setInputFeeValues:a,handleSaveFeeButton:o}=t;return E("div",{className:Ru.editPanelMain,children:re("div",{className:Ru.editArea,children:[re("div",{className:Ru.closeButtonAndCountTextArea,children:[E(ir,{"aria-label":"close",onClick:e,children:E(op,{style:{fontSize:"3rem"}})}),re("div",{className:Ru.primaryText,children:[r,"件選択中"]})]}),re("div",{className:Ru.inputAndButtonArea,children:[re("div",{className:Ru.inputGroup,children:[E(Vc,{className:Ru.inputArea,inputProps:{maxLength:1e3,placeholder:"口銭を入力してください"},id:"win-bid-fee",value:i==null?void 0:i.salesFee,onChange:s=>{/^\d*$/.test(s.target.value)&&a({...i,salesFee:s.target.value})}}),n&&re(oi,{children:[E(Vc,{className:Ru.inputArea,inputProps:{maxLength:1e3,placeholder:"落札手数料を入力してください"},id:"win-bid-fee",value:i==null?void 0:i.winBidFee,onChange:s=>{/^\d*$/.test(s.target.value)&&a({...i,winBidFee:s.target.value})}}),E(Vc,{className:Ru.inputArea,inputProps:{maxLength:1e3,placeholder:"消費税を入力してください"},id:"win-bid-fee",value:i==null?void 0:i.tax,onChange:s=>{/^\d*$/.test(s.target.value)&&a({...i,tax:s.target.value})}})]})]}),E("div",{children:E(DD,{onClick:o,disabled:!(i!=null&&i.salesFee)&&!(i!=null&&i.tax)&&!(i!=null&&i.winBidFee),children:"一括更新"})})]})]})})},Yq=t=>{const{tableHeaderItems:e,onSelectAll:n,checkedCount:r,rowCount:i,...a}=t,[o,s]=Wi(),[l,c]=C.useState({userSort:2});C.useEffect(()=>{const f=o.get("sortOption");let p;f?(p=JSON.parse(f),c(p)):(o.set("sortOption",JSON.stringify(l)),s(o))},[window.location.href]);const u=(f,p)=>{f.preventDefault();const h=l;h[p]=h[p]===0?1:0;const v=JSON.stringify(h);o.set("sortOption",v),s(o)},d=f=>{let p="";return p=l[f]===2?"":l[f]===1?"▼":"▲",p};return E("thead",{...a,children:re("tr",{children:[E("th",{children:re("div",{children:[E(U4,{sx:{color:"white","&.Mui-checked":{color:"white"},"&.MuiCheckbox-indeterminate":{color:"white"}},indeterminate:r>0&&r0&&r===i,onChange:()=>{n()}}),"一括"]})}),e.map((f,p)=>{switch(f){case"ログインID":return re("th",{children:[E("span",{className:co.arrow,children:d("userSort")}),E("a",{href:"#",onClick:h=>{u(h,"userSort")},children:f})]},`fee-table-header-${p}-${f}`);default:return E("th",{children:f},`fee-table-header-${p}-${f}`)}})]})})},Wft=async t=>(await Bn.post(xae,t)).data,qft=async t=>(await Bn.post(qje,t)).data,Yft=async t=>(await Bn.post(Yje,t)).data,PD=({children:t,isSelected:e,...n})=>E(ds,{startIcon:E(h4,{}),variant:"contained",sx:{margin:"0px 5px",fontSize:"1rem",width:"10rem",border:2,color:e?ft.baseColor:ft.primaryColor,borderColor:ft.primaryColor,bgcolor:e?ft.primaryColor:ft.baseColor,"&:hover":{filter:"brightness(1.1)",color:e?ft.baseColor:ft.primaryColor,borderColor:ft.primaryColor,bgcolor:e?ft.primaryColor:ft.baseColor},"&.Mui-disabled":{borderColor:"unset"}},...n,children:t});var H4={},Jft=hn;Object.defineProperty(H4,"__esModule",{value:!0});var Rle=H4.default=void 0,Qft=Jft(bn()),Kft=_n;Rle=H4.default=(0,Qft.default)((0,Kft.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff");const gp=({children:t,...e})=>E(ds,{startIcon:E(Rle,{}),variant:"contained",sx:{fontSize:"1rem",margin:"0px 5px",width:"10rem",whiteSpace:"nowrap",border:2,borderColor:ft.neutralColor,bgcolor:ft.baseColor,color:ft.neutralColor,"&:hover":{filter:"brightness(1.1)",bgcolor:ft.baseColor,color:ft.neutralColor},"&.Mui-disabled":{borderColor:"unset"}},...e,children:t}),Xft="_mainArea_qxaqe_3",Zft="_editPreviewButtonGroup_qxaqe_6",ept="_editPreviewDialogPaper_qxaqe_9",tpt="_editPreviewButtonSubGroup_qxaqe_12",npt="_editPreviewButton_qxaqe_6",rpt="_editPreviewArea_qxaqe_18",ipt="_editPreviewDialog_qxaqe_9",Ou={mainArea:Xft,editPreviewButtonGroup:Zft,editPreviewDialogPaper:ept,editPreviewButtonSubGroup:tpt,editPreviewButton:npt,editPreviewArea:rpt,editPreviewDialog:ipt};var V4={},apt=hn;Object.defineProperty(V4,"__esModule",{value:!0});var RD=V4.default=void 0,opt=apt(bn()),spt=_n;RD=V4.default=(0,opt.default)((0,spt.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined");const Ole=({children:t,isLoading:e,...n})=>E(B0,{loading:e,startIcon:E(RD,{sx:{transform:"scale(1.3)"}}),variant:"contained",sx:{margin:"0px 5px",width:"10rem",border:2,borderColor:"red",color:"red",bgcolor:ft.baseColor,"&:hover":{filter:"brightness(1.1)",color:"red",bgcolor:ft.baseColor},"&.MuiLoadingButton-loading":{borderColor:"unset"},"&.Mui-disabled":{borderColor:"unset"}},...n,children:t}),lpt=({children:t,isLoading:e,...n})=>E(B0,{loading:e,startIcon:E(k4,{}),variant:"contained",sx:{margin:"0px 5px",width:"10rem",border:2,borderColor:ft.primaryColor,bgcolor:ft.primaryColor,"&:hover":{filter:"brightness(1.1)",bgcolor:ft.primaryColor},"&.Mui-disabled":{borderColor:"unset"}},...n,children:t});var z4={},cpt=hn;Object.defineProperty(z4,"__esModule",{value:!0});var Nle=z4.default=void 0,upt=cpt(bn()),dpt=_n;Nle=z4.default=(0,upt.default)((0,dpt.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm2 16H5V5h11.17L19 7.83zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3M6 6h9v4H6z"}),"SaveOutlined");const s0=({children:t,isLoading:e,...n})=>E(B0,{loading:e,startIcon:E(Nle,{}),variant:"contained",sx:{margin:"0px 5px",width:"10rem",border:2,borderColor:ft.primaryColor,bgcolor:ft.primaryColor,"&:hover":{filter:"brightness(1.1)",bgcolor:ft.primaryColor},"&.Mui-disabled":{borderColor:"unset"}},...n,children:t}),fu=({open:t,dialogText:e,dialogTitle:n,children:r,handleClose:i,handleSave:a,handleDelete:o,handleChange:s,handlePurchase:l,KanjiCloseButton:c,transparent:u,border:d,isSaving:f,...p})=>E("div",{...p,children:re(Tw,{open:t,onClose:i,scroll:"paper",disableScrollLock:!0,sx:{"& .MuiBackdrop-root":{backgroundColor:u?"transparent":""},"& .MuiPaper-root":{border:d?"2px solid black":"",borderRadius:"1rem"}},children:[n&&E(K$,{id:"delete-dialog-title",children:n}),re(MM,{children:[e&&E(L2e,{id:"delete-dialog-description",style:{whiteSpace:"pre-wrap"},children:e}),r&&E("div",{className:Ou.editPreviewDialog,children:E("div",{className:Ou.editPreviewArea,children:r})})]}),E(bte,{sx:{justifyContent:"center !important"},children:E("div",{className:Ou.editPreviewButtonGroup,children:re("div",{className:Ou.editPreviewButtonSubGroup,children:[E(gp,{className:Ou.editPreviewButton,onClick:i,children:c?"閉じる":"キャンセル"}),l&&E(lpt,{className:Ou.editPreviewButton,onClick:l,isLoading:f,children:"購入申し込み"}),a&&E(s0,{className:Ou.editPreviewButton,onClick:a,isLoading:f,children:"保存"}),s&&E(s0,{className:Ou.editPreviewButton,onClick:s,children:"変更"}),o&&E(Ole,{className:Ou.editPreviewButton,onClick:()=>{o()},children:"削除"})]})})})]})}),Lle=()=>E(IM,{color:"primary",size:60}),zh=t=>{const{isLoading:e,isDownloadingPDF:n}=t;return E(TM,{open:e||n===!0,sx:{bgcolor:"rgba(0, 0, 0, 0.0)",zIndex:r=>r.zIndex.drawer+1},children:e&&E(Lle,{})})},fpt="#ffffff",ppt="#29a03b",hpt="#c2d93d",mpt="#808080",gpt="#D9D9D9",vpt="#ccc",ypt="rgba(242, 242, 242, 0.4588235294)",bpt="2rem",_pt="1.5rem",wpt="14px",xpt="65rem",Ept="_jaraMain_w8gcw_19",Spt="_dialogMain_w8gcw_35",Cpt="_title_w8gcw_39",Tpt="_dialogContent_w8gcw_46",yN={baseColor:fpt,primaryColor:ppt,secondColor:hpt,neutralColor:mpt,hatchingColor:gpt,borderColor:vpt,evevRowColor:ypt,largeFont:bpt,mediumFont:_pt,smallFont:wpt,pagePCMinWidth:xpt,jaraMain:Ept,dialogMain:Spt,title:Cpt,dialogContent:Tpt},Apt=({children:t,...e})=>E(ds,{variant:"contained",sx:{margin:"0px 5px",width:"10rem",whiteSpace:"nowrap",border:2,borderColor:ft.neutralColor,bgcolor:ft.baseColor,color:ft.neutralColor,"&:hover":{filter:"brightness(1.1)",bgcolor:ft.baseColor,color:ft.neutralColor},"&.Mui-disabled":{borderColor:"unset"}},...e,children:t}),OD=({open:t,dialogTitle:e,children:n,handleClose:r,handleLeftArrow:i,...a})=>E("div",{...a,children:re(Tw,{open:t,scroll:"paper",disableScrollLock:!0,className:yN.dialogMain,sx:{"& .MuiPaper-root":{overflow:"hidden"}},children:[E(K$,{className:yN.title,id:"delete-dialog-title",children:e}),!i&&E(ir,{"aria-label":"close",onClick:r,sx:{position:"absolute",right:8,top:12,color:"white",transform:"scale(1.5)"},children:E(op,{})}),E(MM,{dividers:!0,className:yN.dialogContent,children:E(Va,{elevation:0,children:n&&E("div",{style:{display:"flex",justifyContent:"center"},children:n})})}),re("div",{style:{margin:"8px",display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-around"},children:[E(Apt,{onClick:r,children:"キャンセル"}),E(DD,{onClick:i,children:"OK"})]})]})});var j4={},Ipt=hn;Object.defineProperty(j4,"__esModule",{value:!0});var U0=j4.default=void 0,Mpt=Ipt(bn()),Dpt=_n;U0=j4.default=(0,Mpt.default)((0,Dpt.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");const Ppt="#ffffff",Rpt="#29a03b",Opt="#c2d93d",Npt="#808080",Lpt="#D9D9D9",kpt="#ccc",Fpt="rgba(242, 242, 242, 0.4588235294)",$pt="2rem",Bpt="1.5rem",Upt="14px",Hpt="65rem",Vpt="_jaraMain_t6abx_19",zpt="_title_t6abx_31",jpt="_backArrow_t6abx_40",Jq={baseColor:Ppt,primaryColor:Rpt,secondColor:Opt,neutralColor:Npt,hatchingColor:Lpt,borderColor:kpt,evevRowColor:Fpt,largeFont:$pt,mediumFont:Bpt,smallFont:Upt,pagePCMinWidth:Hpt,jaraMain:Vpt,title:zpt,backArrow:jpt},jh=t=>{const{title:e,backArrow:n,displayOnMobile:r}=t,{isMobile:i}=ui(),a=_r();return E(oi,{children:(r?!0:!i)&&re("div",{className:Jq.title,children:[n&&E(ir,{onClick:()=>{a(-1)},sx:{marginRight:"3rem"},children:E(U0,{className:Jq.backArrow})}),E("div",{style:{fontSize:"2rem",fontWeight:"bolder",color:"gray",whiteSpace:"nowrap"},children:e})]})})},Gpt=["企画CD","企画名","口銭(円)","落札手数料(円)","消費税(%)"],Wpt=["ログインID","会社名","企画名","口銭(円)"],qpt=()=>{const[t]=Wi();let e={userId:null,userName:null,planCode:null,fee:null};const n=t.get("limit"),r=t.get("offset"),i=t.get("searchOption"),a=t.get("sortOption");return i&&(e=JSON.parse(i)),{request:{limit:n?JSON.parse(n):100,offset:r?JSON.parse(r):0},searchOption:e,sortOption:a?JSON.parse(a):{userSort:2}}},Ypt=t=>t.split(",").filter(r=>r.trim()!=="").map(r=>parseFloat(r)),Jpt=()=>{const[t,e]=Wi(),n=C.useRef(null),{isMobile:r}=ui(),[i,a]=C.useState(void 0);C.useEffect(()=>{I(),c()},[window.location.href]);const[o,s]=C.useState(void 0),l=qpt(),c=()=>{a(l)},{refetch:u,isFetching:d}=fr(Ei.LIST_FEE,()=>Wft(i),{enabled:i!==void 0,refetchOnWindowFocus:!1,onSuccess:ee=>{switch(ee.result.code){case 0:s(ee);break;case 11:break;case 12:Ut($t.login[12],{variant:"warning",autoHideDuration:null});break;case 90:Ut($t.getFee[90],{variant:"error",autoHideDuration:Kt.error});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}});C.useEffect(()=>{i!==void 0&&u()},[i]);const[f,p]=C.useState(1);let h=100;const v=t.get("limit");v&&(h=Number(v));const b=o!=null&&o.totalCount?Math.ceil(o.totalCount/h):1,g=ee=>{p(ee)};C.useEffect(()=>{t.set("offset",String(f-1)),e(t)},[f]);const y=()=>E("div",{children:E(Aw,{spacing:2,children:E(PM,{count:b,page:f,onChange:(ee,Q)=>{g(Q)}})})}),[w]=C.useState({userSort:2}),x=()=>{t.delete("limit"),t.delete("offset"),t.delete("searchOption"),t.set("sortOption",JSON.stringify(w)),e(t)},[S,T]=C.useState(!1),I=()=>{const ee=t.get("searchOption");T(ee!==null)},[P,M]=C.useState(null),[N,R]=C.useState({userIdList:[],userNameList:[],planNameList:[],planCodeList:[]}),[O,D]=C.useState(!1),L=()=>{D(!1);const ee={userId:N.userIdList.length>0?N.userIdList:null,userName:N.userNameList.length>0?N.userNameList:null,planCode:N.planNameList.length>0?N.planCodeList:null,fee:P?Ypt(P):null};ee.userId||ee.userName||ee.planCode||ee.fee?t.set("searchOption",JSON.stringify(ee)):t.delete("searchOption"),e(t)},k=()=>{D(!0)},[B,H]=C.useState([]),[$,W]=C.useState([]),K=()=>{if(B.length>0)H([]);else{const ee=[],Q=o==null?void 0:o.planFeeList.length;if(Q)for(let V=0;V<=Q-1;V++)ee.push(V);H(ee)}},le=()=>{if($.length>0)W([]);else{const ee=[],Q=o==null?void 0:o.userFeeList.length;if(Q)for(let V=0;V<=Q-1;V++)ee.push(V);W(ee)}},[U,q]=C.useState(null),[z,ne]=C.useState({winBidFee:"",tax:"",salesFee:""}),G=()=>{Ne(!1),H([]),W([]),ne({winBidFee:"",tax:"",salesFee:""})},te=Boolean(U);C.useEffect(()=>{$.length>0||B.length>0?q(n.current):(q(null),ne({winBidFee:"",tax:"",salesFee:""}))},[$,B]);const[Y,fe]=C.useState(!1),pe=()=>{if(B.length>0){const ee={planFeeList:[]};B.map(Q=>{const V={planCode:o==null?void 0:o.planFeeList[Q].planCode,winBidFee:(z==null?void 0:z.winBidFee.length)>0?Number(z==null?void 0:z.winBidFee):-1,tax:(z==null?void 0:z.tax.length)>0?Number(z==null?void 0:z.tax):-1,salesFee:(z==null?void 0:z.salesFee.length)>0?Number(z==null?void 0:z.salesFee):-1};ee.planFeeList.push(V)}),me(ee)}else{const ee={userFeeList:[]};$.map(Q=>{const V={userId:o==null?void 0:o.userFeeList[Q].userId,planCode:o==null?void 0:o.userFeeList[Q].planCode,fee:(z==null?void 0:z.salesFee.length)>0?Number(z==null?void 0:z.salesFee):-1};ee.userFeeList.push(V)}),_e(ee)}fe(!0)},de=()=>{fe(!1),me(void 0),_e(void 0)},[se,me]=C.useState(void 0),[Z,_e]=C.useState(void 0),[Me,Ne]=C.useState(!1),ge=()=>{Ne(!0),se&&B.length>0?qft(se).then(ee=>{switch(Ne(!1),ee.result.code){case 0:u(),G(),de();break;case 11:case 12:break;case 90:Ut($t.saveFee[90],{variant:"error",autoHideDuration:Kt.error});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}).catch(()=>{Ne(!1)}):Z&&Yft(Z).then(ee=>{switch(Ne(!1),ee.result.code){case 0:u(),G(),de();break;case 90:Ut($t.saveFee[90],{variant:"error",autoHideDuration:Kt.error});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}).catch(()=>{Ne(!1)})};return re("div",{id:"jara-admin-commission-page",className:co.commissionPage,children:[te&&E(B$,{position:"fixed",sx:{top:"auto",backgroundColor:"white",left:r?"":"20rem"},children:E(a1,{sx:{border:"1px solid black"},className:co.toolbarArea,children:E(Gft,{handlePanelClose:G,isPlanFeeEdit:B.length>0,count:B.length>0?B.length:$.length,inputFeeValues:z,setInputFeeValues:ne,handleSaveFeeButton:pe})})}),E("div",{children:re(qq,{children:[E("div",{className:co.titleAndButtonGroup,ref:n,children:E(jh,{displayOnMobile:!0,title:"企画口銭編集"})}),$.length>0&&E("div",{className:co.overLay}),r?E("div",{children:E(_A,{planFeeList:o==null?void 0:o.planFeeList,checkedIndexList:B,setCheckedIndex:H})}):E("div",{className:co.tableWrapper,style:{height:"110px"},children:re("table",{className:co.planFeeTable,children:[E(Yq,{tableHeaderItems:Gpt,onSelectAll:K,rowCount:o!=null&&o.planFeeList?o==null?void 0:o.planFeeList.length:0,checkedCount:B.length}),E(Dle,{planFeeList:o==null?void 0:o.planFeeList,checkedPlanFeeListIndex:B,setCheckedPlanFeeListIndex:H})]})})]})}),E("br",{}),re(qq,{children:[B.length>0&&E("div",{className:co.overLay}),re("div",{className:co.titleAndButtonGroup,children:[E(jh,{displayOnMobile:!0,title:"会員口銭編集"}),re("div",{className:co.buttonGroup,children:[re("div",{children:[E(gp,{onClick:x,children:"ソートクリア"}),E(PD,{isSelected:S,onClick:k,children:"絞込み"})]}),E(y,{})]})]}),r?E("div",{children:E(_A,{userFeeList:o==null?void 0:o.userFeeList,checkedIndexList:$,setCheckedIndex:W})}):E("div",{className:co.tableWrapper,style:{maxHeight:"calc(100vh - 260px)"},children:re("table",{className:co.userFeeTable,children:[E(Yq,{tableHeaderItems:Wpt,onSelectAll:le,rowCount:o!=null&&o.userFeeList?o==null?void 0:o.userFeeList.length:0,checkedCount:$.length}),E(Ple,{userFeeList:o==null?void 0:o.userFeeList,checkedUserFeeListIndex:$,setCheckedUserFeeListIndex:W})]})})]}),E(zh,{isLoading:d}),E(OD,{open:O,handleClose:L,handleLeftArrow:L,dialogTitle:"絞込み設定",children:E(mdt,{selectedItemList:N,setSelectedItemList:R,inputFeeValue:P,setInputFeeValue:M})}),E(fu,{open:Y,dialogTitle:"口銭を保存しますか?",handleClose:de,handleSave:ge,isSaving:Me,children:E(tft,{inputFeeValues:z,checkedPlanFeeListIndex:B,checkedUserFeeListIndex:$,feeListResponseData:o})})]})},Qpt="#ffffff",Kpt="#29a03b",Xpt="#c2d93d",Zpt="#808080",eht="#D9D9D9",tht="#ccc",nht="rgba(242, 242, 242, 0.4588235294)",rht="2rem",iht="1.5rem",aht="14px",oht="65rem",sht="_jaraMain_1vena_19",lht="_mobilePagination_1vena_31",cht="_areaWidthController_1vena_38",uht="_membersPage_1vena_42",dht="_tableBodyWrapper_1vena_45",fht="_jaraAdminMembersPageMainArea_1vena_57",pht="_topButtonGroupArea_1vena_68",hht="_memBersTableBodyMobile_1vena_74",qd={baseColor:Qpt,primaryColor:Kpt,secondColor:Xpt,neutralColor:Zpt,hatchingColor:eht,borderColor:tht,evevRowColor:nht,largeFont:rht,mediumFont:iht,smallFont:aht,pagePCMinWidth:oht,jaraMain:sht,mobilePagination:lht,areaWidthController:cht,membersPage:uht,tableBodyWrapper:dht,jaraAdminMembersPageMainArea:fht,topButtonGroupArea:pht,memBersTableBodyMobile:hht},mht="_formControl_14twh_1",ght="_selectBoxGroup_14twh_10",vht="_revertButton_14twh_16",yht={formControl:mht,selectBoxGroup:ght,revertButton:vht},kle=async()=>(await Bn.post(_ae)).data,bht=t=>{const{setVenueCodeList:e}=t,[n,r]=C.useState([]),[i,a]=C.useState([]),o=(c,u)=>{const d=[];for(const f of u){const p=c.find(h=>h.venueNameJa===f);p&&d.push(p.venueCode)}return d},s=c=>{const u=c.target.value;a(typeof u=="string"?u.split(","):u);const f=o(n,typeof u=="string"?[u]:u);e(f)};fr(Ei.VENUE_LIST,()=>kle(),{refetchOnWindowFocus:!1,onSuccess:c=>{r(c.venueList)}});const l=()=>{a([]),e([])};return re(lt,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{width:"380px"},children:[E(lt,{xs:2,sx:{fontWeight:"600"},children:"絞込み"}),E(lt,{xs:10,children:E("a",{href:"#",onClick:()=>{l()},children:"絞込みのクリア"})}),E(lt,{xs:12,children:E(lt,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",sx:{maxHeight:"30rem",overflow:"auto"},children:re(ic,{sx:{margin:1},className:yht.formControl,children:[E(zc,{id:"venu-list-checkbox-label",children:"会場"}),E(dl,{labelId:"venu-list-checkbox-label",id:"venu-list-checkbox",value:i,input:E(ul,{label:"会場"}),renderValue:c=>c.join(", "),onChange:c=>{s(c)},multiple:!0,MenuProps:ed,children:n==null?void 0:n.map((c,u)=>re(jc,{value:c.venueNameJa,children:[E(mo,{checked:i.indexOf(c.venueNameJa)>-1}),E(fs,{primary:c.venueNameJa})]},`option-venu-list-${u}`))})]})})})]})};var G4={},_ht=hn;Object.defineProperty(G4,"__esModule",{value:!0});var ND=G4.default=void 0,wht=_ht(bn()),xht=_n;ND=G4.default=(0,wht.default)((0,xht.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");const Eht="#ffffff",Sht="#29a03b",Cht="#c2d93d",Tht="#808080",Aht="#D9D9D9",Iht="#ccc",Mht="rgba(242, 242, 242, 0.4588235294)",Dht="2rem",Pht="1.5rem",Rht="14px",Oht="65rem",Nht="_jaraMain_13vx8_19",Lht="_oddRow_13vx8_29",kht="_evenRow_13vx8_35",Fht="_userId_13vx8_41",$ht="_name_13vx8_47",Bht="_planFeeGroup_13vx8_53",Uht="_planName_13vx8_59",Hht="_tel_13vx8_72",Vht="_ArrowForwardIconButton_13vx8_76",zht="_ArrowForwardIcon_13vx8_76",Nu={baseColor:Eht,primaryColor:Sht,secondColor:Cht,neutralColor:Tht,hatchingColor:Aht,borderColor:Iht,evevRowColor:Mht,largeFont:Dht,mediumFont:Pht,smallFont:Rht,pagePCMinWidth:Oht,jaraMain:Nht,oddRow:Lht,evenRow:kht,userId:Fht,name:$ht,planFeeGroup:Bht,planName:Uht,tel:Hht,ArrowForwardIconButton:Vht,ArrowForwardIcon:zht},Fle=()=>{const[t]=Wi(),e=_r();return{handleOnClick:r=>{const i=t.toString();e(`${ea}/${tr.MEMBER}/${tr.EDIT_MEMBER}?${i}&listIndex=${r}`)}}},jht=t=>{const{handleOnClick:e}=Fle(),{userListResponseData:n}=t;return E(oi,{children:n==null?void 0:n.venueList.map((r,i)=>{var o,s;const a=i%2===0;return E(lt,{xs:12,className:a?Nu.evenRow:Nu.oddRow,onClick:()=>{e(i)},children:re(lt,{container:!0,textAlign:"left",children:[E(lt,{xs:2,className:Nu.userId,children:r.userId}),E(lt,{xs:2,className:Nu.name,children:r.name}),E(lt,{xs:2,children:(o=r.feeList)==null?void 0:o.map((l,c)=>re("div",{className:Nu.planFeeGroup,children:[E("span",{className:Nu.planName,children:l.planName}),E("span",{style:{whiteSpace:"nowrap"},children:`${fc(l.fee.toString())}円`})]},`fee-list-${c}`))}),E(lt,{xs:1,children:(s=r.venueList)==null?void 0:s.map((l,c)=>E("div",{children:l.venueName},`venue-list-${c}`))}),re(lt,{xs:3,children:[re("div",{children:["〒",r.zipCode]}),E("div",{children:r.address1}),E("div",{children:r.address2})]}),E(lt,{xs:1,className:Nu.tel,children:r.tel}),E(lt,{xs:1,children:E(ir,{className:Nu.ArrowForwardIconButton,disabled:!0,children:E(ND,{className:Nu.ArrowForwardIcon})})})]})},`venue-list-${i}`)})})},Ght="#ffffff",Wht="#29a03b",qht="#c2d93d",Yht="#808080",Jht="#D9D9D9",Qht="#ccc",Kht="rgba(242, 242, 242, 0.4588235294)",Xht="2rem",Zht="1.5rem",emt="14px",tmt="65rem",nmt="_jaraMain_1ww83_19",rmt="_cardArea_1ww83_29",imt="_cardHeader_1ww83_37",amt="_userId_1ww83_41",omt="_name_1ww83_45",smt="_fee_1ww83_50",lmt="_planName_1ww83_54",cmt="_venueList_1ww83_64",umt="_address_1ww83_68",Lu={baseColor:Ght,primaryColor:Wht,secondColor:qht,neutralColor:Yht,hatchingColor:Jht,borderColor:Qht,evevRowColor:Kht,largeFont:Xht,mediumFont:Zht,smallFont:emt,pagePCMinWidth:tmt,jaraMain:nmt,cardArea:rmt,cardHeader:imt,userId:amt,name:omt,fee:smt,planName:lmt,venueList:cmt,address:umt},dmt=t=>{const{handleOnClick:e}=Fle(),{userListResponseData:n}=t;return E("div",{children:n==null?void 0:n.venueList.map((r,i)=>E(Cw,{variant:"outlined",className:Lu.cardArea,onClick:()=>{e(i)},children:re(mte,{children:[re("div",{className:Lu.cardHeader,children:[E("span",{className:Lu.userId,children:r.userId}),E("span",{className:Lu.name,children:r.name})]}),E("div",{className:Lu.fee,children:r.feeList.map((a,o)=>re("div",{children:[E("span",{className:Lu.planName,children:a.planName}),E("span",{children:`${a.fee}円`}),";"]},`fee-list-${o}`))}),E("div",{className:Lu.venueList,children:E(lt,{container:!0,children:r.venueList.map((a,o)=>E(lt,{xs:3,children:a.venueName},`${a.venueName}${o}`))})}),re("div",{className:Lu.address,children:[re("div",{children:["〒",r.zipCode]}),E("div",{children:r.address1}),E("div",{children:r.address2})]}),E("div",{className:Lu.tel,children:r.tel})]})},`${r.name}${r.id}${i}`))})};var Xn={},fmt={get exports(){return Xn},set exports(t){Xn=t}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(t,e){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,f=2,p=4,h=1,v=2,b=1,g=2,y=4,w=8,x=16,S=32,T=64,I=128,P=256,M=512,N=30,R="...",O=800,D=16,L=1,k=2,B=3,H=1/0,$=9007199254740991,W=17976931348623157e292,K=0/0,le=4294967295,U=le-1,q=le>>>1,z=[["ary",I],["bind",b],["bindKey",g],["curry",w],["curryRight",x],["flip",M],["partial",S],["partialRight",T],["rearg",P]],ne="[object Arguments]",G="[object Array]",te="[object AsyncFunction]",Y="[object Boolean]",fe="[object Date]",pe="[object DOMException]",de="[object Error]",se="[object Function]",me="[object GeneratorFunction]",Z="[object Map]",_e="[object Number]",Me="[object Null]",Ne="[object Object]",ge="[object Promise]",ee="[object Proxy]",Q="[object RegExp]",V="[object Set]",j="[object String]",ye="[object Symbol]",ae="[object Undefined]",Ee="[object WeakMap]",Pe="[object WeakSet]",We="[object ArrayBuffer]",Fe="[object DataView]",Ae="[object Float32Array]",he="[object Float64Array]",Ye="[object Int8Array]",Ke="[object Int16Array]",Je="[object Int32Array]",nt="[object Uint8Array]",je="[object Uint8ClampedArray]",Ue="[object Uint16Array]",at="[object Uint32Array]",vt=/\b__p \+= '';/g,At=/\b(__p \+=) '' \+/g,Xt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,on=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,ce=RegExp(on.source),we=RegExp(X.source),Be=/<%-([\s\S]+?)%>/g,pt=/<%([\s\S]+?)%>/g,Ot=/<%=([\s\S]+?)%>/g,Gn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oa=/^\w*$/,Yo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wa=/[\\^$.*+?()[\]{}|]/g,Jo=RegExp(wa.source),ve=/^\s+/,$e=/\s/,qe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ve=/\{\n\/\* \[wrapped with (.+)\] \*/,tt=/,? & /,Wt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nt=/[()=,{}\[\]\/\s]/,rn=/\\(\\)?/g,jt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mn=/\w*$/,ln=/^[-+]0x[0-9a-f]+$/i,Cn=/^0b[01]+$/i,Fr=/^\[object .+?Constructor\]$/,yu=/^0o[0-7]+$/i,Id=/^(?:0|[1-9]\d*)$/,Ln=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,no=/($^)/,di=/['\n\r\u2028\u2029\\]/g,ro="\\ud800-\\udfff",vm="\\u0300-\\u036f",Fs="\\ufe20-\\ufe2f",Fl="\\u20d0-\\u20ff",qi=vm+Fs+Fl,Md="\\u2700-\\u27bf",So="a-z\\xdf-\\xf6\\xf8-\\xff",zfe="\\xac\\xb1\\xd7\\xf7",jfe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gfe="\\u2000-\\u206f",Wfe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",uH="A-Z\\xc0-\\xd6\\xd8-\\xde",dH="\\ufe0e\\ufe0f",fH=zfe+jfe+Gfe+Wfe,sP="['’]",qfe="["+ro+"]",pH="["+fH+"]",bx="["+qi+"]",hH="\\d+",Yfe="["+Md+"]",mH="["+So+"]",gH="[^"+ro+fH+hH+Md+So+uH+"]",lP="\\ud83c[\\udffb-\\udfff]",Jfe="(?:"+bx+"|"+lP+")",vH="[^"+ro+"]",cP="(?:\\ud83c[\\udde6-\\uddff]){2}",uP="[\\ud800-\\udbff][\\udc00-\\udfff]",ym="["+uH+"]",yH="\\u200d",bH="(?:"+mH+"|"+gH+")",Qfe="(?:"+ym+"|"+gH+")",_H="(?:"+sP+"(?:d|ll|m|re|s|t|ve))?",wH="(?:"+sP+"(?:D|LL|M|RE|S|T|VE))?",xH=Jfe+"?",EH="["+dH+"]?",Kfe="(?:"+yH+"(?:"+[vH,cP,uP].join("|")+")"+EH+xH+")*",Xfe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zfe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",SH=EH+xH+Kfe,epe="(?:"+[Yfe,cP,uP].join("|")+")"+SH,tpe="(?:"+[vH+bx+"?",bx,cP,uP,qfe].join("|")+")",npe=RegExp(sP,"g"),rpe=RegExp(bx,"g"),dP=RegExp(lP+"(?="+lP+")|"+tpe+SH,"g"),ipe=RegExp([ym+"?"+mH+"+"+_H+"(?="+[pH,ym,"$"].join("|")+")",Qfe+"+"+wH+"(?="+[pH,ym+bH,"$"].join("|")+")",ym+"?"+bH+"+"+_H,ym+"+"+wH,Zfe,Xfe,hH,epe].join("|"),"g"),ape=RegExp("["+yH+ro+qi+dH+"]"),ope=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,spe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lpe=-1,Ir={};Ir[Ae]=Ir[he]=Ir[Ye]=Ir[Ke]=Ir[Je]=Ir[nt]=Ir[je]=Ir[Ue]=Ir[at]=!0,Ir[ne]=Ir[G]=Ir[We]=Ir[Y]=Ir[Fe]=Ir[fe]=Ir[de]=Ir[se]=Ir[Z]=Ir[_e]=Ir[Ne]=Ir[Q]=Ir[V]=Ir[j]=Ir[Ee]=!1;var xr={};xr[ne]=xr[G]=xr[We]=xr[Fe]=xr[Y]=xr[fe]=xr[Ae]=xr[he]=xr[Ye]=xr[Ke]=xr[Je]=xr[Z]=xr[_e]=xr[Ne]=xr[Q]=xr[V]=xr[j]=xr[ye]=xr[nt]=xr[je]=xr[Ue]=xr[at]=!0,xr[de]=xr[se]=xr[Ee]=!1;var cpe={:"A",:"A",:"A",:"A",:"A",:"A",:"a",:"a",:"a",:"a",:"a",:"a",:"C",:"c",:"D",:"d",:"E",:"E",:"E",:"E",:"e",:"e",:"e",:"e",:"I",:"I",:"I",:"I",:"i",:"i",:"i",:"i",:"N",:"n",:"O",:"O",:"O",:"O",:"O",:"O",:"o",:"o",:"o",:"o",:"o",:"o",:"U",:"U",:"U",:"U",:"u",:"u",:"u",:"u",:"Y",:"y",:"y",:"Ae",:"ae",:"Th",:"th",:"ss",:"A",:"A",:"A",:"a",:"a",:"a",:"C",:"C",:"C",:"C",:"c",:"c",:"c",:"c",:"D",:"D",:"d",:"d",:"E",:"E",:"E",:"E",:"E",:"e",:"e",:"e",:"e",:"e",:"G",:"G",:"G",:"G",:"g",:"g",:"g",:"g",:"H",:"H",:"h",:"h",:"I",:"I",:"I",:"I",:"I",:"i",:"i",:"i",:"i",:"i",:"J",:"j",:"K",:"k",:"k",:"L",:"L",:"L",:"L",:"L",:"l",:"l",:"l",:"l",:"l",:"N",:"N",:"N",:"N",:"n",:"n",:"n",:"n",:"O",:"O",:"O",:"o",:"o",:"o",:"R",:"R",:"R",:"r",:"r",:"r",:"S",:"S",:"S",:"S",:"s",:"s",:"s",:"s",:"T",:"T",:"T",:"t",:"t",:"t",:"U",:"U",:"U",:"U",:"U",:"U",:"u",:"u",:"u",:"u",:"u",:"u",:"W",:"w",:"Y",:"y",:"Y",:"Z",:"Z",:"Z",:"z",:"z",:"z",:"IJ",:"ij",:"Oe",:"oe",:"'n",:"s"},upe={"&":"&","<":"<",">":">",'"':""","'":"'"},dpe={"&":"&","<":"<",">":">",""":'"',"'":"'"},fpe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ppe=parseFloat,hpe=parseInt,CH=typeof mt=="object"&&mt&&mt.Object===Object&&mt,mpe=typeof self=="object"&&self&&self.Object===Object&&self,xa=CH||mpe||Function("return this")(),fP=e&&!e.nodeType&&e,_p=fP&&!0&&t&&!t.nodeType&&t,TH=_p&&_p.exports===fP,pP=TH&&CH.process,$s=function(){try{var Le=_p&&_p.require&&_p.require("util").types;return Le||pP&&pP.binding&&pP.binding("util")}catch{}}(),AH=$s&&$s.isArrayBuffer,IH=$s&&$s.isDate,MH=$s&&$s.isMap,DH=$s&&$s.isRegExp,PH=$s&&$s.isSet,RH=$s&&$s.isTypedArray;function Qo(Le,Xe,Ge){switch(Ge.length){case 0:return Le.call(Xe);case 1:return Le.call(Xe,Ge[0]);case 2:return Le.call(Xe,Ge[0],Ge[1]);case 3:return Le.call(Xe,Ge[0],Ge[1],Ge[2])}return Le.apply(Xe,Ge)}function gpe(Le,Xe,Ge,Mt){for(var tn=-1,Wn=Le==null?0:Le.length;++tn-1}function hP(Le,Xe,Ge){for(var Mt=-1,tn=Le==null?0:Le.length;++Mt-1;);return Ge}function UH(Le,Xe){for(var Ge=Le.length;Ge--&&bm(Xe,Le[Ge],0)>-1;);return Ge}function Cpe(Le,Xe){for(var Ge=Le.length,Mt=0;Ge--;)Le[Ge]===Xe&&++Mt;return Mt}var Tpe=yP(cpe),Ape=yP(upe);function Ipe(Le){return"\\"+fpe[Le]}function Mpe(Le,Xe){return Le==null?n:Le[Xe]}function _m(Le){return ape.test(Le)}function Dpe(Le){return ope.test(Le)}function Ppe(Le){for(var Xe,Ge=[];!(Xe=Le.next()).done;)Ge.push(Xe.value);return Ge}function xP(Le){var Xe=-1,Ge=Array(Le.size);return Le.forEach(function(Mt,tn){Ge[++Xe]=[tn,Mt]}),Ge}function HH(Le,Xe){return function(Ge){return Le(Xe(Ge))}}function Rd(Le,Xe){for(var Ge=-1,Mt=Le.length,tn=0,Wn=[];++Ge-1}function yhe(m,_){var A=this.__data__,F=Fx(A,m);return F<0?(++this.size,A.push([m,_])):A[F][1]=_,this}bu.prototype.clear=hhe,bu.prototype.delete=mhe,bu.prototype.get=ghe,bu.prototype.has=vhe,bu.prototype.set=yhe;function _u(m){var _=-1,A=m==null?0:m.length;for(this.clear();++_=_?m:_)),m}function Vs(m,_,A,F,J,ue){var Te,Re=_&d,ke=_&f,it=_&p;if(A&&(Te=J?A(m,F,J,ue):A(m)),Te!==n)return Te;if(!Gr(m))return m;var ot=an(m);if(ot){if(Te=xme(m),!Re)return Co(m,Te)}else{var ut=ja(m),Ct=ut==se||ut==me;if($d(m))return EV(m,Re);if(ut==Ne||ut==ne||Ct&&!J){if(Te=ke||Ct?{}:VV(m),!Re)return ke?dme(m,Nhe(Te,m)):ume(m,ZH(Te,m))}else{if(!xr[ut])return J?m:{};Te=Eme(m,ut,Re)}}ue||(ue=new Bl);var Ft=ue.get(m);if(Ft)return Ft;ue.set(m,Te),vz(m)?m.forEach(function(Jt){Te.add(Vs(Jt,_,A,Jt,m,ue))}):mz(m)&&m.forEach(function(Jt,wn){Te.set(wn,Vs(Jt,_,A,wn,m,ue))});var Yt=it?ke?YP:qP:ke?Ao:sa,cn=ot?n:Yt(m);return Bs(cn||m,function(Jt,wn){cn&&(wn=Jt,Jt=m[wn]),cy(Te,wn,Vs(Jt,_,A,wn,m,ue))}),Te}function Lhe(m){var _=sa(m);return function(A){return eV(A,m,_)}}function eV(m,_,A){var F=A.length;if(m==null)return!F;for(m=hr(m);F--;){var J=A[F],ue=_[J],Te=m[J];if(Te===n&&!(J in m)||!ue(Te))return!1}return!0}function tV(m,_,A){if(typeof m!="function")throw new Us(o);return gy(function(){m.apply(n,A)},_)}function uy(m,_,A,F){var J=-1,ue=_x,Te=!0,Re=m.length,ke=[],it=_.length;if(!Re)return ke;A&&(_=$r(_,Ko(A))),F?(ue=hP,Te=!1):_.length>=i&&(ue=ry,Te=!1,_=new Ep(_));e:for(;++JJ?0:J+A),F=F===n||F>J?J:sn(F),F<0&&(F+=J),F=A>F?0:bz(F);A0&&A(Re)?_>1?Ea(Re,_-1,A,F,J):Pd(J,Re):F||(J[J.length]=Re)}return J}var MP=MV(),iV=MV(!0);function wc(m,_){return m&&MP(m,_,sa)}function DP(m,_){return m&&iV(m,_,sa)}function Bx(m,_){return Dd(_,function(A){return Cu(m[A])})}function Cp(m,_){_=kd(_,m);for(var A=0,F=_.length;m!=null&&A_}function $he(m,_){return m!=null&&er.call(m,_)}function Bhe(m,_){return m!=null&&_ in hr(m)}function Uhe(m,_,A){return m>=za(_,A)&&m=120&&ot.length>=120)?new Ep(Te&&ot):n}ot=m[0];var ut=-1,Ct=Re[0];e:for(;++ut-1;)Re!==m&&Dx.call(Re,ke,1),Dx.call(m,ke,1);return m}function mV(m,_){for(var A=m?_.length:0,F=A-1;A--;){var J=_[A];if(A==F||J!==ue){var ue=J;Su(J)?Dx.call(m,J,1):UP(m,J)}}return m}function FP(m,_){return m+Ox(JH()*(_-m+1))}function Zhe(m,_,A,F){for(var J=-1,ue=Ji(Rx((_-m)/(A||1)),0),Te=Ge(ue);ue--;)Te[F?ue:++J]=m,m+=A;return Te}function $P(m,_){var A="";if(!m||_<1||_>$)return A;do _%2&&(A+=m),_=Ox(_/2),_&&(m+=m);while(_);return A}function gn(m,_){return tR(GV(m,_,Io),m+"")}function eme(m){return XH(Pm(m))}function tme(m,_){var A=Pm(m);return Qx(A,Sp(_,0,A.length))}function py(m,_,A,F){if(!Gr(m))return m;_=kd(_,m);for(var J=-1,ue=_.length,Te=ue-1,Re=m;Re!=null&&++JJ?0:J+_),A=A>J?J:A,A<0&&(A+=J),J=_>A?0:A-_>>>0,_>>>=0;for(var ue=Ge(J);++F>>1,Te=m[ue];Te!==null&&!Zo(Te)&&(A?Te<=_:Te<_)?F=ue+1:J=ue}return J}return BP(m,_,Io,A)}function BP(m,_,A,F){var J=0,ue=m==null?0:m.length;if(ue===0)return 0;_=A(_);for(var Te=_!==_,Re=_===null,ke=Zo(_),it=_===n;J=i){var it=_?null:mme(m);if(it)return xx(it);Te=!1,J=ry,ke=new Ep}else ke=_?[]:Re;e:for(;++F=F?m:zs(m,_,A)}var xV=Wpe||function(m){return xa.clearTimeout(m)};function EV(m,_){if(_)return m.slice();var A=m.length,F=jH?jH(A):new m.constructor(A);return m.copy(F),F}function jP(m){var _=new m.constructor(m.byteLength);return new Ix(_).set(new Ix(m)),_}function ome(m,_){var A=_?jP(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.byteLength)}function sme(m){var _=new m.constructor(m.source,mn.exec(m));return _.lastIndex=m.lastIndex,_}function lme(m){return ly?hr(ly.call(m)):{}}function SV(m,_){var A=_?jP(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.length)}function CV(m,_){if(m!==_){var A=m!==n,F=m===null,J=m===m,ue=Zo(m),Te=_!==n,Re=_===null,ke=_===_,it=Zo(_);if(!Re&&!it&&!ue&&m>_||ue&&Te&&ke&&!Re&&!it||F&&Te&&ke||!A&&ke||!J)return 1;if(!F&&!ue&&!it&&m<_||it&&A&&J&&!F&&!ue||Re&&A&&J||!Te&&J||!ke)return-1}return 0}function cme(m,_,A){for(var F=-1,J=m.criteria,ue=_.criteria,Te=J.length,Re=A.length;++F=Re)return ke;var it=A[F];return ke*(it=="desc"?-1:1)}}return m.index-_.index}function TV(m,_,A,F){for(var J=-1,ue=m.length,Te=A.length,Re=-1,ke=_.length,it=Ji(ue-Te,0),ot=Ge(ke+it),ut=!F;++Re1?A[J-1]:n,Te=J>2?A[2]:n;for(ue=m.length>3&&typeof ue=="function"?(J--,ue):n,Te&&ao(A[0],A[1],Te)&&(ue=J<3?n:ue,J=1),_=hr(_);++F-1?J[ue?_[Te]:Te]:n}}function RV(m){return Eu(function(_){var A=_.length,F=A,J=Hs.prototype.thru;for(m&&_.reverse();F--;){var ue=_[F];if(typeof ue!="function")throw new Us(o);if(J&&!Te&&Yx(ue)=="wrapper")var Te=new Hs([],!0)}for(F=Te?F:A;++F1&&Mn.reverse(),ot&&keRe))return!1;var it=ue.get(m),ot=ue.get(_);if(it&&ot)return it==_&&ot==m;var ut=-1,Ct=!0,Ft=A&v?new Ep:n;for(ue.set(m,_),ue.set(_,m);++ut1?"& ":"")+_[F],_=_.join(A>2?", ":" "),m.replace(qe,`{ /* [wrapped with `+_+`] */ `)}function Cme(m){return an(m)||Ip(m)||!!(qH&&m&&m[qH])}function Su(m,_){var A=typeof m;return _=_??$,!!_&&(A=="number"||A!="symbol"&&Id.test(m))&&m>-1&&m%1==0&&m<_}function ao(m,_,A){if(!Gr(A))return!1;var F=typeof _;return(F=="number"?To(A)&&Su(_,A.length):F=="string"&&_ in A)?Ul(A[_],m):!1}function XP(m,_){if(an(m))return!1;var A=typeof m;return A=="number"||A=="symbol"||A=="boolean"||m==null||Zo(m)?!0:oa.test(m)||!Gn.test(m)||_!=null&&m in hr(_)}function Tme(m){var _=typeof m;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?m!=="__proto__":m===null}function ZP(m){var _=Yx(m),A=oe[_];if(typeof A!="function"||!(_ in Tn.prototype))return!1;if(m===A)return!0;var F=JP(A);return!!F&&m===F[0]}function Ame(m){return!!zH&&zH in m}var Ime=Sx?Cu:gR;function my(m){var _=m&&m.constructor,A=typeof _=="function"&&_.prototype||Em;return m===A}function zV(m){return m===m&&!Gr(m)}function jV(m,_){return function(A){return A==null?!1:A[m]===_&&(_!==n||m in hr(A))}}function Mme(m){var _=eE(m,function(F){return A.size===c&&A.clear(),F}),A=_.cache;return _}function Dme(m,_){var A=m[1],F=_[1],J=A|F,ue=J<(b|g|I),Te=F==I&&A==w||F==I&&A==P&&m[7].length<=_[8]||F==(I|P)&&_[7].length<=_[8]&&A==w;if(!(ue||Te))return m;F&b&&(m[2]=_[2],J|=A&b?0:y);var Re=_[3];if(Re){var ke=m[3];m[3]=ke?TV(ke,Re,_[4]):Re,m[4]=ke?Rd(m[3],u):_[4]}return Re=_[5],Re&&(ke=m[5],m[5]=ke?AV(ke,Re,_[6]):Re,m[6]=ke?Rd(m[5],u):_[6]),Re=_[7],Re&&(m[7]=Re),F&I&&(m[8]=m[8]==null?_[8]:za(m[8],_[8])),m[9]==null&&(m[9]=_[9]),m[0]=_[0],m[1]=J,m}function Pme(m){var _=[];if(m!=null)for(var A in hr(m))_.push(A);return _}function Rme(m){return Tx.call(m)}function GV(m,_,A){return _=Ji(_===n?m.length-1:_,0),function(){for(var F=arguments,J=-1,ue=Ji(F.length-_,0),Te=Ge(ue);++J0){if(++_>=O)return arguments[0]}else _=0;return m.apply(n,arguments)}}function Qx(m,_){var A=-1,F=m.length,J=F-1;for(_=_===n?F:_;++A<_;){var ue=FP(A,J),Te=m[ue];m[ue]=m[A],m[A]=Te}return m.length=_,m}var QV=Mme(function(m){var _=[];return m.charCodeAt(0)===46&&_.push(""),m.replace(Yo,function(A,F,J,ue){_.push(J?ue.replace(rn,"$1"):F||A)}),_});function Ec(m){if(typeof m=="string"||Zo(m))return m;var _=m+"";return _=="0"&&1/m==-H?"-0":_}function Ap(m){if(m!=null){try{return Cx.call(m)}catch{}try{return m+""}catch{}}return""}function Nme(m,_){return Bs(z,function(A){var F="_."+A[0];_&A[1]&&!_x(m,F)&&m.push(F)}),m.sort()}function KV(m){if(m instanceof Tn)return m.clone();var _=new Hs(m.__wrapped__,m.__chain__);return _.__actions__=Co(m.__actions__),_.__index__=m.__index__,_.__values__=m.__values__,_}function Lme(m,_,A){(A?ao(m,_,A):_===n)?_=1:_=Ji(sn(_),0);var F=m==null?0:m.length;if(!F||_<1)return[];for(var J=0,ue=0,Te=Ge(Rx(F/_));J1?m[_-1]:n;return A=typeof A=="function"?(m.pop(),A):n,rz(m,A)});function iz(m){var _=oe(m);return _.__chain__=!0,_}function kge(m,_){return _(m),m}function Kx(m,_){return _(m)}var Fge=Eu(function(m){var _=m.length,A=_?m[0]:0,F=this.__wrapped__,J=function(ue){return IP(ue,m)};return _>1||this.__actions__.length||!(F instanceof Tn)||!Su(A)?this.thru(J):(F=F.slice(A,+A+(_?1:0)),F.__actions__.push({func:Kx,args:[J],thisArg:n}),new Hs(F,this.__chain__).thru(function(ue){return _&&!ue.length&&ue.push(n),ue}))});function $ge(){return iz(this)}function Bge(){return new Hs(this.value(),this.__chain__)}function Uge(){this.__values__===n&&(this.__values__=yz(this.value()));var m=this.__index__>=this.__values__.length,_=m?n:this.__values__[this.__index__++];return{done:m,value:_}}function Hge(){return this}function Vge(m){for(var _,A=this;A instanceof kx;){var F=KV(A);F.__index__=0,F.__values__=n,_?J.__wrapped__=F:_=F;var J=F;A=A.__wrapped__}return J.__wrapped__=m,_}function zge(){var m=this.__wrapped__;if(m instanceof Tn){var _=m;return this.__actions__.length&&(_=new Tn(this)),_=_.reverse(),_.__actions__.push({func:Kx,args:[nR],thisArg:n}),new Hs(_,this.__chain__)}return this.thru(nR)}function jge(){return _V(this.__wrapped__,this.__actions__)}var Gge=zx(function(m,_,A){er.call(m,A)?++m[A]:wu(m,A,1)});function Wge(m,_,A){var F=an(m)?OH:khe;return A&&ao(m,_,A)&&(_=n),F(m,qt(_,3))}function qge(m,_){var A=an(m)?Dd:rV;return A(m,qt(_,3))}var Yge=PV(XV),Jge=PV(ZV);function Qge(m,_){return Ea(Xx(m,_),1)}function Kge(m,_){return Ea(Xx(m,_),H)}function Xge(m,_,A){return A=A===n?1:sn(A),Ea(Xx(m,_),A)}function az(m,_){var A=an(m)?Bs:Nd;return A(m,qt(_,3))}function oz(m,_){var A=an(m)?vpe:nV;return A(m,qt(_,3))}var Zge=zx(function(m,_,A){er.call(m,A)?m[A].push(_):wu(m,A,[_])});function eve(m,_,A,F){m=To(m)?m:Pm(m),A=A&&!F?sn(A):0;var J=m.length;return A<0&&(A=Ji(J+A,0)),rE(m)?A<=J&&m.indexOf(_,A)>-1:!!J&&bm(m,_,A)>-1}var tve=gn(function(m,_,A){var F=-1,J=typeof _=="function",ue=To(m)?Ge(m.length):[];return Nd(m,function(Te){ue[++F]=J?Qo(_,Te,A):dy(Te,_,A)}),ue}),nve=zx(function(m,_,A){wu(m,A,_)});function Xx(m,_){var A=an(m)?$r:cV;return A(m,qt(_,3))}function rve(m,_,A,F){return m==null?[]:(an(_)||(_=_==null?[]:[_]),A=F?n:A,an(A)||(A=A==null?[]:[A]),pV(m,_,A))}var ive=zx(function(m,_,A){m[A?0:1].push(_)},function(){return[[],[]]});function ave(m,_,A){var F=an(m)?mP:FH,J=arguments.length<3;return F(m,qt(_,4),A,J,Nd)}function ove(m,_,A){var F=an(m)?ype:FH,J=arguments.length<3;return F(m,qt(_,4),A,J,nV)}function sve(m,_){var A=an(m)?Dd:rV;return A(m,tE(qt(_,3)))}function lve(m){var _=an(m)?XH:eme;return _(m)}function cve(m,_,A){(A?ao(m,_,A):_===n)?_=1:_=sn(_);var F=an(m)?Phe:tme;return F(m,_)}function uve(m){var _=an(m)?Rhe:rme;return _(m)}function dve(m){if(m==null)return 0;if(To(m))return rE(m)?wm(m):m.length;var _=ja(m);return _==Z||_==V?m.size:NP(m).length}function fve(m,_,A){var F=an(m)?gP:ime;return A&&ao(m,_,A)&&(_=n),F(m,qt(_,3))}var pve=gn(function(m,_){if(m==null)return[];var A=_.length;return A>1&&ao(m,_[0],_[1])?_=[]:A>2&&ao(_[0],_[1],_[2])&&(_=[_[0]]),pV(m,Ea(_,1),[])}),Zx=qpe||function(){return xa.Date.now()};function hve(m,_){if(typeof _!="function")throw new Us(o);return m=sn(m),function(){if(--m<1)return _.apply(this,arguments)}}function sz(m,_,A){return _=A?n:_,_=m&&_==null?m.length:_,xu(m,I,n,n,n,n,_)}function lz(m,_){var A;if(typeof _!="function")throw new Us(o);return m=sn(m),function(){return--m>0&&(A=_.apply(this,arguments)),m<=1&&(_=n),A}}var iR=gn(function(m,_,A){var F=b;if(A.length){var J=Rd(A,Mm(iR));F|=S}return xu(m,F,_,A,J)}),cz=gn(function(m,_,A){var F=b|g;if(A.length){var J=Rd(A,Mm(cz));F|=S}return xu(_,F,m,A,J)});function uz(m,_,A){_=A?n:_;var F=xu(m,w,n,n,n,n,n,_);return F.placeholder=uz.placeholder,F}function dz(m,_,A){_=A?n:_;var F=xu(m,x,n,n,n,n,n,_);return F.placeholder=dz.placeholder,F}function fz(m,_,A){var F,J,ue,Te,Re,ke,it=0,ot=!1,ut=!1,Ct=!0;if(typeof m!="function")throw new Us(o);_=Gs(_)||0,Gr(A)&&(ot=!!A.leading,ut="maxWait"in A,ue=ut?Ji(Gs(A.maxWait)||0,_):ue,Ct="trailing"in A?!!A.trailing:Ct);function Ft(pi){var Hl=F,Au=J;return F=J=n,it=pi,Te=m.apply(Au,Hl),Te}function Yt(pi){return it=pi,Re=gy(wn,_),ot?Ft(pi):Te}function cn(pi){var Hl=pi-ke,Au=pi-it,Pz=_-Hl;return ut?za(Pz,ue-Au):Pz}function Jt(pi){var Hl=pi-ke,Au=pi-it;return ke===n||Hl>=_||Hl<0||ut&&Au>=ue}function wn(){var pi=Zx();if(Jt(pi))return Mn(pi);Re=gy(wn,cn(pi))}function Mn(pi){return Re=n,Ct&&F?Ft(pi):(F=J=n,Te)}function es(){Re!==n&&xV(Re),it=0,F=ke=J=Re=n}function oo(){return Re===n?Te:Mn(Zx())}function ts(){var pi=Zx(),Hl=Jt(pi);if(F=arguments,J=this,ke=pi,Hl){if(Re===n)return Yt(ke);if(ut)return xV(Re),Re=gy(wn,_),Ft(ke)}return Re===n&&(Re=gy(wn,_)),Te}return ts.cancel=es,ts.flush=oo,ts}var mve=gn(function(m,_){return tV(m,1,_)}),gve=gn(function(m,_,A){return tV(m,Gs(_)||0,A)});function vve(m){return xu(m,M)}function eE(m,_){if(typeof m!="function"||_!=null&&typeof _!="function")throw new Us(o);var A=function(){var F=arguments,J=_?_.apply(this,F):F[0],ue=A.cache;if(ue.has(J))return ue.get(J);var Te=m.apply(this,F);return A.cache=ue.set(J,Te)||ue,Te};return A.cache=new(eE.Cache||_u),A}eE.Cache=_u;function tE(m){if(typeof m!="function")throw new Us(o);return function(){var _=arguments;switch(_.length){case 0:return!m.call(this);case 1:return!m.call(this,_[0]);case 2:return!m.call(this,_[0],_[1]);case 3:return!m.call(this,_[0],_[1],_[2])}return!m.apply(this,_)}}function yve(m){return lz(2,m)}var bve=ame(function(m,_){_=_.length==1&&an(_[0])?$r(_[0],Ko(qt())):$r(Ea(_,1),Ko(qt()));var A=_.length;return gn(function(F){for(var J=-1,ue=za(F.length,A);++J=_}),Ip=oV(function(){return arguments}())?oV:function(m){return ei(m)&&er.call(m,"callee")&&!WH.call(m,"callee")},an=Ge.isArray,Nve=AH?Ko(AH):Vhe;function To(m){return m!=null&&nE(m.length)&&!Cu(m)}function fi(m){return ei(m)&&To(m)}function Lve(m){return m===!0||m===!1||ei(m)&&io(m)==Y}var $d=Jpe||gR,kve=IH?Ko(IH):zhe;function Fve(m){return ei(m)&&m.nodeType===1&&!vy(m)}function $ve(m){if(m==null)return!0;if(To(m)&&(an(m)||typeof m=="string"||typeof m.splice=="function"||$d(m)||Dm(m)||Ip(m)))return!m.length;var _=ja(m);if(_==Z||_==V)return!m.size;if(my(m))return!NP(m).length;for(var A in m)if(er.call(m,A))return!1;return!0}function Bve(m,_){return fy(m,_)}function Uve(m,_,A){A=typeof A=="function"?A:n;var F=A?A(m,_):n;return F===n?fy(m,_,n,A):!!F}function oR(m){if(!ei(m))return!1;var _=io(m);return _==de||_==pe||typeof m.message=="string"&&typeof m.name=="string"&&!vy(m)}function Hve(m){return typeof m=="number"&&YH(m)}function Cu(m){if(!Gr(m))return!1;var _=io(m);return _==se||_==me||_==te||_==ee}function hz(m){return typeof m=="number"&&m==sn(m)}function nE(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=$}function Gr(m){var _=typeof m;return m!=null&&(_=="object"||_=="function")}function ei(m){return m!=null&&typeof m=="object"}var mz=MH?Ko(MH):Ghe;function Vve(m,_){return m===_||OP(m,_,QP(_))}function zve(m,_,A){return A=typeof A=="function"?A:n,OP(m,_,QP(_),A)}function jve(m){return gz(m)&&m!=+m}function Gve(m){if(Ime(m))throw new tn(a);return sV(m)}function Wve(m){return m===null}function qve(m){return m==null}function gz(m){return typeof m=="number"||ei(m)&&io(m)==_e}function vy(m){if(!ei(m)||io(m)!=Ne)return!1;var _=Mx(m);if(_===null)return!0;var A=er.call(_,"constructor")&&_.constructor;return typeof A=="function"&&A instanceof A&&Cx.call(A)==zpe}var sR=DH?Ko(DH):Whe;function Yve(m){return hz(m)&&m>=-$&&m<=$}var vz=PH?Ko(PH):qhe;function rE(m){return typeof m=="string"||!an(m)&&ei(m)&&io(m)==j}function Zo(m){return typeof m=="symbol"||ei(m)&&io(m)==ye}var Dm=RH?Ko(RH):Yhe;function Jve(m){return m===n}function Qve(m){return ei(m)&&ja(m)==Ee}function Kve(m){return ei(m)&&io(m)==Pe}var Xve=qx(LP),Zve=qx(function(m,_){return m<=_});function yz(m){if(!m)return[];if(To(m))return rE(m)?$l(m):Co(m);if(iy&&m[iy])return Ppe(m[iy]());var _=ja(m),A=_==Z?xP:_==V?xx:Pm;return A(m)}function Tu(m){if(!m)return m===0?m:0;if(m=Gs(m),m===H||m===-H){var _=m<0?-1:1;return _*W}return m===m?m:0}function sn(m){var _=Tu(m),A=_%1;return _===_?A?_-A:_:0}function bz(m){return m?Sp(sn(m),0,le):0}function Gs(m){if(typeof m=="number")return m;if(Zo(m))return K;if(Gr(m)){var _=typeof m.valueOf=="function"?m.valueOf():m;m=Gr(_)?_+"":_}if(typeof m!="string")return m===0?m:+m;m=$H(m);var A=Cn.test(m);return A||yu.test(m)?hpe(m.slice(2),A?2:8):ln.test(m)?K:+m}function _z(m){return xc(m,Ao(m))}function e0e(m){return m?Sp(sn(m),-$,$):m===0?m:0}function Kn(m){return m==null?"":Xo(m)}var t0e=Am(function(m,_){if(my(_)||To(_)){xc(_,sa(_),m);return}for(var A in _)er.call(_,A)&&cy(m,A,_[A])}),wz=Am(function(m,_){xc(_,Ao(_),m)}),iE=Am(function(m,_,A,F){xc(_,Ao(_),m,F)}),n0e=Am(function(m,_,A,F){xc(_,sa(_),m,F)}),r0e=Eu(IP);function i0e(m,_){var A=Tm(m);return _==null?A:ZH(A,_)}var a0e=gn(function(m,_){m=hr(m);var A=-1,F=_.length,J=F>2?_[2]:n;for(J&&ao(_[0],_[1],J)&&(F=1);++A1),ue}),xc(m,YP(m),A),F&&(A=Vs(A,d|f|p,gme));for(var J=_.length;J--;)UP(A,_[J]);return A});function E0e(m,_){return Ez(m,tE(qt(_)))}var S0e=Eu(function(m,_){return m==null?{}:Khe(m,_)});function Ez(m,_){if(m==null)return{};var A=$r(YP(m),function(F){return[F]});return _=qt(_),hV(m,A,function(F,J){return _(F,J[0])})}function C0e(m,_,A){_=kd(_,m);var F=-1,J=_.length;for(J||(J=1,m=n);++F_){var F=m;m=_,_=F}if(A||m%1||_%1){var J=JH();return za(m+J*(_-m+ppe("1e-"+((J+"").length-1))),_)}return FP(m,_)}var k0e=Im(function(m,_,A){return _=_.toLowerCase(),m+(A?Tz(_):_)});function Tz(m){return uR(Kn(m).toLowerCase())}function Az(m){return m=Kn(m),m&&m.replace(Ln,Tpe).replace(rpe,"")}function F0e(m,_,A){m=Kn(m),_=Xo(_);var F=m.length;A=A===n?F:Sp(sn(A),0,F);var J=A;return A-=_.length,A>=0&&m.slice(A,J)==_}function $0e(m){return m=Kn(m),m&&we.test(m)?m.replace(X,Ape):m}function B0e(m){return m=Kn(m),m&&Jo.test(m)?m.replace(wa,"\\$&"):m}var U0e=Im(function(m,_,A){return m+(A?"-":"")+_.toLowerCase()}),H0e=Im(function(m,_,A){return m+(A?" ":"")+_.toLowerCase()}),V0e=DV("toLowerCase");function z0e(m,_,A){m=Kn(m),_=sn(_);var F=_?wm(m):0;if(!_||F>=_)return m;var J=(_-F)/2;return Wx(Ox(J),A)+m+Wx(Rx(J),A)}function j0e(m,_,A){m=Kn(m),_=sn(_);var F=_?wm(m):0;return _&&F<_?m+Wx(_-F,A):m}function G0e(m,_,A){m=Kn(m),_=sn(_);var F=_?wm(m):0;return _&&F<_?Wx(_-F,A)+m:m}function W0e(m,_,A){return A||_==null?_=0:_&&(_=+_),Zpe(Kn(m).replace(ve,""),_||0)}function q0e(m,_,A){return(A?ao(m,_,A):_===n)?_=1:_=sn(_),$P(Kn(m),_)}function Y0e(){var m=arguments,_=Kn(m[0]);return m.length<3?_:_.replace(m[1],m[2])}var J0e=Im(function(m,_,A){return m+(A?"_":"")+_.toLowerCase()});function Q0e(m,_,A){return A&&typeof A!="number"&&ao(m,_,A)&&(_=A=n),A=A===n?le:A>>>0,A?(m=Kn(m),m&&(typeof _=="string"||_!=null&&!sR(_))&&(_=Xo(_),!_&&_m(m))?Fd($l(m),0,A):m.split(_,A)):[]}var K0e=Im(function(m,_,A){return m+(A?" ":"")+uR(_)});function X0e(m,_,A){return m=Kn(m),A=A==null?0:Sp(sn(A),0,m.length),_=Xo(_),m.slice(A,A+_.length)==_}function Z0e(m,_,A){var F=oe.templateSettings;A&&ao(m,_,A)&&(_=n),m=Kn(m),_=iE({},_,F,FV);var J=iE({},_.imports,F.imports,FV),ue=sa(J),Te=wP(J,ue),Re,ke,it=0,ot=_.interpolate||no,ut="__p += '",Ct=EP((_.escape||no).source+"|"+ot.source+"|"+(ot===Ot?jt:no).source+"|"+(_.evaluate||no).source+"|$","g"),Ft="//# sourceURL="+(er.call(_,"sourceURL")?(_.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lpe+"]")+` `;m.replace(Ct,function(Jt,wn,Mn,es,oo,ts){return Mn||(Mn=es),ut+=m.slice(it,ts).replace(di,Ipe),wn&&(Re=!0,ut+=`' + __e(`+wn+`) + '`),oo&&(ke=!0,ut+=`'; `+oo+`; __p += '`),Mn&&(ut+=`' + ((__t = (`+Mn+`)) == null ? '' : __t) + '`),it=ts+Jt.length,Jt}),ut+=`'; `;var Yt=er.call(_,"variable")&&_.variable;if(!Yt)ut=`with (obj) { `+ut+` } `;else if(Nt.test(Yt))throw new tn(s);ut=(ke?ut.replace(vt,""):ut).replace(At,"$1").replace(Xt,"$1;"),ut="function("+(Yt||"obj")+`) { `+(Yt?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(Re?", __e = _.escape":"")+(ke?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+ut+`return __p }`;var cn=Mz(function(){return Wn(ue,Ft+"return "+ut).apply(n,Te)});if(cn.source=ut,oR(cn))throw cn;return cn}function eye(m){return Kn(m).toLowerCase()}function tye(m){return Kn(m).toUpperCase()}function nye(m,_,A){if(m=Kn(m),m&&(A||_===n))return $H(m);if(!m||!(_=Xo(_)))return m;var F=$l(m),J=$l(_),ue=BH(F,J),Te=UH(F,J)+1;return Fd(F,ue,Te).join("")}function rye(m,_,A){if(m=Kn(m),m&&(A||_===n))return m.slice(0,VH(m)+1);if(!m||!(_=Xo(_)))return m;var F=$l(m),J=UH(F,$l(_))+1;return Fd(F,0,J).join("")}function iye(m,_,A){if(m=Kn(m),m&&(A||_===n))return m.replace(ve,"");if(!m||!(_=Xo(_)))return m;var F=$l(m),J=BH(F,$l(_));return Fd(F,J).join("")}function aye(m,_){var A=N,F=R;if(Gr(_)){var J="separator"in _?_.separator:J;A="length"in _?sn(_.length):A,F="omission"in _?Xo(_.omission):F}m=Kn(m);var ue=m.length;if(_m(m)){var Te=$l(m);ue=Te.length}if(A>=ue)return m;var Re=A-wm(F);if(Re<1)return F;var ke=Te?Fd(Te,0,Re).join(""):m.slice(0,Re);if(J===n)return ke+F;if(Te&&(Re+=ke.length-Re),sR(J)){if(m.slice(Re).search(J)){var it,ot=ke;for(J.global||(J=EP(J.source,Kn(mn.exec(J))+"g")),J.lastIndex=0;it=J.exec(ot);)var ut=it.index;ke=ke.slice(0,ut===n?Re:ut)}}else if(m.indexOf(Xo(J),Re)!=Re){var Ct=ke.lastIndexOf(J);Ct>-1&&(ke=ke.slice(0,Ct))}return ke+F}function oye(m){return m=Kn(m),m&&ce.test(m)?m.replace(on,Lpe):m}var sye=Im(function(m,_,A){return m+(A?" ":"")+_.toUpperCase()}),uR=DV("toUpperCase");function Iz(m,_,A){return m=Kn(m),_=A?n:_,_===n?Dpe(m)?$pe(m):wpe(m):m.match(_)||[]}var Mz=gn(function(m,_){try{return Qo(m,n,_)}catch(A){return oR(A)?A:new tn(A)}}),lye=Eu(function(m,_){return Bs(_,function(A){A=Ec(A),wu(m,A,iR(m[A],m))}),m});function cye(m){var _=m==null?0:m.length,A=qt();return m=_?$r(m,function(F){if(typeof F[1]!="function")throw new Us(o);return[A(F[0]),F[1]]}):[],gn(function(F){for(var J=-1;++J<_;){var ue=m[J];if(Qo(ue[0],this,F))return Qo(ue[1],this,F)}})}function uye(m){return Lhe(Vs(m,d))}function dR(m){return function(){return m}}function dye(m,_){return m==null||m!==m?_:m}var fye=RV(),pye=RV(!0);function Io(m){return m}function fR(m){return lV(typeof m=="function"?m:Vs(m,d))}function hye(m){return uV(Vs(m,d))}function mye(m,_){return dV(m,Vs(_,d))}var gye=gn(function(m,_){return function(A){return dy(A,m,_)}}),vye=gn(function(m,_){return function(A){return dy(m,A,_)}});function pR(m,_,A){var F=sa(_),J=Bx(_,F);A==null&&!(Gr(_)&&(J.length||!F.length))&&(A=_,_=m,m=this,J=Bx(_,sa(_)));var ue=!(Gr(A)&&"chain"in A)||!!A.chain,Te=Cu(m);return Bs(J,function(Re){var ke=_[Re];m[Re]=ke,Te&&(m.prototype[Re]=function(){var it=this.__chain__;if(ue||it){var ot=m(this.__wrapped__),ut=ot.__actions__=Co(this.__actions__);return ut.push({func:ke,args:arguments,thisArg:m}),ot.__chain__=it,ot}return ke.apply(m,Pd([this.value()],arguments))})}),m}function yye(){return xa._===this&&(xa._=jpe),this}function hR(){}function bye(m){return m=sn(m),gn(function(_){return fV(_,m)})}var _ye=GP($r),wye=GP(OH),xye=GP(gP);function Dz(m){return XP(m)?vP(Ec(m)):Xhe(m)}function Eye(m){return function(_){return m==null?n:Cp(m,_)}}var Sye=NV(),Cye=NV(!0);function mR(){return[]}function gR(){return!1}function Tye(){return{}}function Aye(){return""}function Iye(){return!0}function Mye(m,_){if(m=sn(m),m<1||m>$)return[];var A=le,F=za(m,le);_=qt(_),m-=le;for(var J=_P(F,_);++A0||_<0)?new Tn(A):(m<0?A=A.takeRight(-m):m&&(A=A.drop(m)),_!==n&&(_=sn(_),A=_<0?A.dropRight(-_):A.take(_-m)),A)},Tn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Tn.prototype.toArray=function(){return this.take(le)},wc(Tn.prototype,function(m,_){var A=/^(?:filter|find|map|reject)|While$/.test(_),F=/^(?:head|last)$/.test(_),J=oe[F?"take"+(_=="last"?"Right":""):_],ue=F||/^find/.test(_);J&&(oe.prototype[_]=function(){var Te=this.__wrapped__,Re=F?[1]:arguments,ke=Te instanceof Tn,it=Re[0],ot=ke||an(Te),ut=function(wn){var Mn=J.apply(oe,Pd([wn],Re));return F&&Ct?Mn[0]:Mn};ot&&A&&typeof it=="function"&&it.length!=1&&(ke=ot=!1);var Ct=this.__chain__,Ft=!!this.__actions__.length,Yt=ue&&!Ct,cn=ke&&!Ft;if(!ue&&ot){Te=cn?Te:new Tn(this);var Jt=m.apply(Te,Re);return Jt.__actions__.push({func:Kx,args:[ut],thisArg:n}),new Hs(Jt,Ct)}return Yt&&cn?m.apply(this,Re):(Jt=this.thru(ut),Yt?F?Jt.value()[0]:Jt.value():Jt)})}),Bs(["pop","push","shift","sort","splice","unshift"],function(m){var _=Ex[m],A=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",F=/^(?:pop|shift)$/.test(m);oe.prototype[m]=function(){var J=arguments;if(F&&!this.__chain__){var ue=this.value();return _.apply(an(ue)?ue:[],J)}return this[A](function(Te){return _.apply(an(Te)?Te:[],J)})}}),wc(Tn.prototype,function(m,_){var A=oe[_];if(A){var F=A.name+"";er.call(Cm,F)||(Cm[F]=[]),Cm[F].push({name:_,func:A})}}),Cm[jx(n,g).name]=[{name:"wrapper",func:n}],Tn.prototype.clone=ohe,Tn.prototype.reverse=she,Tn.prototype.value=lhe,oe.prototype.at=Fge,oe.prototype.chain=$ge,oe.prototype.commit=Bge,oe.prototype.next=Uge,oe.prototype.plant=Vge,oe.prototype.reverse=zge,oe.prototype.toJSON=oe.prototype.valueOf=oe.prototype.value=jge,oe.prototype.first=oe.prototype.head,iy&&(oe.prototype[iy]=Hge),oe},xm=Bpe();_p?((_p.exports=xm)._=xm,fP._=xm):xa._=xm}).call(mt)})(fmt,Xn);const pmt="#ffffff",hmt="#29a03b",mmt="#c2d93d",gmt="#808080",vmt="#D9D9D9",ymt="#ccc",bmt="rgba(242, 242, 242, 0.4588235294)",_mt="2rem",wmt="1.5rem",xmt="14px",Emt="65rem",Smt="_jaraMain_15w39_19",Cmt="_headerItem_15w39_29",Tmt="_arrow_15w39_39",Gl={baseColor:pmt,primaryColor:hmt,secondColor:mmt,neutralColor:gmt,hatchingColor:vmt,borderColor:ymt,evevRowColor:bmt,largeFont:_mt,mediumFont:wmt,smallFont:xmt,pagePCMinWidth:Emt,jaraMain:Smt,headerItem:Cmt,arrow:Tmt},Amt=()=>{const[t,e]=Wi(),[n,r]=C.useState(void 0);C.useEffect(()=>{const o=t.get("sortOption");let s;o?(s=JSON.parse(o),r(s)):r(void 0)},[window.location.href]);const i=o=>{let s=Xn.cloneDeep(n);(s==null?void 0:s.column)===o?s.order=s.order===0?1:0:s={column:o,order:0};const l=JSON.stringify(s);t.set("sortOption",l),e(t)},a=o=>{let s="";return(n==null?void 0:n.column)===o&&(s=n.order===1?"▼":"▲"),n===void 0&&(s=""),s};return re(oi,{children:[re(lt,{xs:2,className:Gl.headerItem,children:[E("a",{href:"#",onClick:()=>{i(1)},children:"ログインID"}),E("span",{className:Gl.arrow,children:a(1)})]}),re(lt,{xs:2,className:Gl.headerItem,children:[E("a",{href:"#",onClick:()=>{i(2)},children:"会社名"}),E("span",{className:Gl.arrow,children:a(2)})]}),E(lt,{xs:2,className:Gl.headerItem,children:"口銭"}),E(lt,{xs:1,className:Gl.headerItem,children:"登録会場"}),re(lt,{xs:3,className:Gl.headerItem,children:[E("a",{href:"#",onClick:()=>{i(3)},children:"住所"}),E("span",{className:Gl.arrow,children:a(3)})]}),re(lt,{xs:1,className:Gl.headerItem,children:[E("a",{href:"#",onClick:()=>{i(4)},children:"電話番号"}),E("span",{className:Gl.arrow,children:a(4)})]}),E(lt,{xs:1,className:Gl.headerItem})]})},$le=async t=>(await Bn.post(bae,t)).data;var W4={},Imt=hn;Object.defineProperty(W4,"__esModule",{value:!0});var Ble=W4.default=void 0,Mmt=Imt(bn()),Qq=_n;Ble=W4.default=(0,Mmt.default)([(0,Qq.jsx)("path",{d:"M17 19.22H5V7h7V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-7h-2z"},"0"),(0,Qq.jsx)("path",{d:"M19 2h-2v3h-3c.01.01 0 2 0 2h3v2.99c.01.01 2 0 2 0V7h3V5h-3zM7 9h8v2H7zm0 3v2h8v-2h-3zm0 3h8v2H7z"},"1")],"PostAdd");const q4=({children:t,...e})=>E(ds,{startIcon:E(Ble,{}),variant:"contained",sx:{fontSize:"1rem",margin:"0px 5px",width:"10rem",border:2,borderColor:ft.primaryColor,color:ft.primaryColor,bgcolor:ft.baseColor,"&:hover":{filter:"brightness(1.1)",color:ft.primaryColor,bgcolor:ft.baseColor},whiteSpace:"nowrap"},...e,children:t}),Ule=()=>{const[t]=Wi();let e=100,n=0,r=[],i=null;const a=t.get("venueCode"),o=t.get("sortOption"),s=t.get("limit"),l=t.get("offset");return a&&(r=JSON.parse(a)),o&&(i=JSON.parse(o)),s&&(e=Number(t.get("limit"))),l&&(n=Number(t.get("offset"))),{request:{limit:e,offset:n},searchOption:{venueCode:r},sortOption:i}},Dmt=()=>{const{isMobile:t}=ui(),[e,n]=Wi(),r=_r();C.useEffect(()=>{O(),c()},[window.location.href]);const[i,a]=C.useState(void 0),[o,s]=C.useState(void 0),l=Ule(),c=()=>{a(l)},{refetch:u,isFetching:d}=fr(Ei.USER_LIST,()=>$le(i),{enabled:i!==void 0,refetchOnWindowFocus:!1,onSuccess:H=>{switch(H.result.code){case 0:s(H),H.venueList.length===0&&Ut($t.getMembers[10],{variant:"warning",autoHideDuration:Kt.warning});break;case 11:break;case 12:Ut($t.login[12],{variant:"warning",autoHideDuration:null});break;case 90:Ut($t.getMembers[90],{variant:"error",autoHideDuration:Kt.error});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}});C.useEffect(()=>{i!==void 0&&u()},[i]);const[f,p]=C.useState(1);let h=100;const v=e.get("limit");v&&(h=Number(v));const b=o!=null&&o.totalCount?Math.ceil(o.totalCount/h):1,g=H=>{p(H)};C.useEffect(()=>{e.set("offset",String(f-1)),n(e)},[f]);const y=()=>E("div",{children:E(Aw,{spacing:2,children:E(PM,{count:b,page:f,onChange:(H,$)=>{g($)}})})}),[w,x]=C.useState(!1),[S,T]=C.useState(null),I=()=>{x(!1),(D==null?void 0:D.length)>0?e.set("venueCode",JSON.stringify(D)):e.delete("venueCode"),n(e)},P=()=>{L(S??[]),x(!1)},M=()=>{T(D),x(!0)},[N,R]=C.useState(!1),O=()=>{let H=[];const $=e.get("venueCode");$&&(H=JSON.parse($)),(H==null?void 0:H.length)===0?R(!1):R(!0)},[D,L]=C.useState([]),k=()=>{e.delete("sortOption"),e.delete("venueCode"),e.delete("limit"),e.delete("offset"),n(e)},B=()=>{r(`${ea}/${tr.MEMBER}/${tr.EDIT_MEMBER}`)};return re("div",{id:"jara-admin-members-page",className:qd.membersPage,children:[E(jh,{title:"会員マスタ編集"}),E("div",{className:qd.jaraAdminMembersPageMainArea,children:re("div",{className:qd.areaWidthController,children:[re("div",{className:qd.topButtonGroupArea,children:[re("div",{children:[E(q4,{onClick:B,children:"新規追加"}),E(PD,{isSelected:N,onClick:M,children:"絞込み"}),E(gp,{onClick:k,children:"ソートクリア"})]}),!t&&E(y,{})]}),t&&E("div",{className:qd.mobilePagination,children:E(y,{})}),!t&&re("div",{className:qd.tableArea,style:{position:"relative"},children:[re(lt,{container:!0,spacing:1,textAlign:"center",children:[E(Amt,{}),E("div",{className:qd.tableBodyWrapper,children:E(jht,{userListResponseData:o})})]}),E(zh,{isMobile:t??!1,isLoading:d,top:"30vh"})]}),t&&re("div",{className:qd.memBersTableBodyMobile,children:[E(dmt,{userListResponseData:o}),E(zh,{isMobile:t,isLoading:d})]})]})}),E(OD,{open:w,handleClose:P,handleLeftArrow:I,dialogTitle:"表示設定",children:E(bht,{setVenueCodeList:L})})]})},Hle=Roe,Pmt=LU,Rmt=async t=>(await Bn.post(pae,t)).data,Omt=async t=>(await Bn.post(dae,t)).data,Nmt="#ffffff",Lmt="#29a03b",kmt="#c2d93d",Fmt="#808080",$mt="#D9D9D9",Bmt="#ccc",Umt="rgba(242, 242, 242, 0.4588235294)",Hmt="2rem",Vmt="1.5rem",zmt="14px",jmt="65rem",Gmt="_jaraMain_1xxzx_19",Wmt="_tableWrapper_1xxzx_29",qmt="_table_1xxzx_29",Ymt="_styledThead_1xxzx_55",Jmt="_styledDetailThead_1xxzx_65",Qmt="_tableHeadText_1xxzx_76",Kmt="_arrow_1xxzx_83",Xmt="_bottomIconBarEnabled_1xxzx_88",Zmt="_bottomIconBarUnabled_1xxzx_95",Gu={baseColor:Nmt,primaryColor:Lmt,secondColor:kmt,neutralColor:Fmt,hatchingColor:$mt,borderColor:Bmt,evevRowColor:Umt,largeFont:Hmt,mediumFont:Vmt,smallFont:zmt,pagePCMinWidth:jmt,jaraMain:Gmt,tableWrapper:Wmt,table:qmt,styledThead:Ymt,styledDetailThead:Jmt,tableHeadText:Qmt,arrow:Kmt,bottomIconBarEnabled:Xmt,bottomIconBarUnabled:Zmt},Vle=[[{code:1,name:"企画"},{code:2,name:"車両所在地"}],[{code:3,name:"掲載番号"}],[{code:4,name:"年式"}],[{code:5,name:"型式"},{code:6,name:"排気/燃料"}],[{code:7,name:"走行距離"},{code:8,name:"車検"}],[{code:9,name:"カラーNo"},{code:10,name:"色"}],[{code:11,name:"シフト"},{code:12,name:"エアコン"}],[{code:13,name:"評価"},{code:14,name:"外/内"}],[{code:15,name:"購入車両総額"}],[{code:16,name:"ステータス"},{code:-1,name:"掲載開始/終了日時"}]],Kq=[[{code:5,name:"ステータス"},{code:-1,name:"掲載終了日時"}],[{code:1,name:"申込日時"}],[{code:2,name:"落札日時"}],[{code:3,name:"DL完了日"}],[{code:4,name:"搬出完了日"}]],zle=t=>{const{enqueueSnackbar:e}=RI(),[n,r]=Wi(),{isDetailPage:i,isOfferedDetail:a}=t,{vehicleEditFilter:o}=ui(),s=p=>{var g;let h=!1;const v=Xn.cloneDeep(o);if(!v||!v.sortOrder)return;if((g=v.sortOrder)==null||g.map((y,w)=>{y.column===p&&v.sortOrder&&(h=!0,v.sortOrder[w].order=y.order===0?1:0)}),!h)if(v.sortOrder.length<=4)v==null||v.sortOrder.push({column:p,order:0});else{e($t.userBuy[20],{variant:"warning",autoHideDuration:Kt.warning});return}const b=encodeURIComponent(JSON.stringify(v));n.set("filters",b),r(n)},l=p=>{o&&o.sortOrder&&!i&&s(p)},c=p=>{var v;let h="";return o&&!i&&((v=o.sortOrder)==null||v.map((b,g)=>{b.column===p&&(h=b.order===1?"▼":"▲",h+=(g+1).toString()+"")})),h},u=window.location.href,d=u.includes(tr.MEMBER_OFFER)||u.includes(vr.OFFERED)||a,f=Xn.cloneDeep(Vle);return i&&d&&f[1].push({code:-1,name:"車台番号"}),re("thead",{className:i?Gu.styledDetailThead:Gu.styledThead,children:[!i&&re("tr",{children:[E("th",{rowSpan:2,style:{width:"115px"},children:E("div",{})}),re("th",{colSpan:2,style:{textAlign:"left"},children:[E("span",{className:Gu.arrow,children:c(0)}),c(0).length>0?"":"",E("a",{href:"#",onClick:p=>{p.preventDefault(),l(0)},className:Gu.tableHeadText,style:{fontSize:"14px"},children:"メーカー・車名・グレード"})]}),E("th",{colSpan:f.length-2})]}),E("tr",{children:f.map((p,h)=>E("th",{align:"center",children:p.map((v,b)=>re("div",{children:[E("span",{className:Gu.arrow,children:c(v.code)}),v.code==-1?E("span",{className:Gu.tableHeadText,children:v.name}):re("span",{children:[c(v.code).length>0?"":"",E("a",{className:Gu.tableHeadText,href:"#",onClick:g=>{g.preventDefault(),l(v.code)},children:v.name}),c(v.code).length>0?"":""]})]},`pc-vehicle-table-head-row-${b}`))},`pc-vehicle-table-head-cell-${h}`))})]})},egt="#ffffff",tgt="#29a03b",ngt="#c2d93d",rgt="#808080",igt="#D9D9D9",agt="#ccc",ogt="rgba(242, 242, 242, 0.4588235294)",sgt="2rem",lgt="1.5rem",cgt="14px",ugt="65rem",dgt="_jaraMain_17jph_19",fgt="_label_17jph_29",pgt={baseColor:egt,primaryColor:tgt,secondColor:ngt,neutralColor:rgt,hatchingColor:igt,borderColor:agt,evevRowColor:ogt,largeFont:sgt,mediumFont:lgt,smallFont:cgt,pagePCMinWidth:ugt,jaraMain:dgt,label:fgt},ri=({children:t,isEnabled:e})=>E("span",{style:e===1?{color:"black",border:"1px solid black"}:{color:ft.neutralColor,border:`1px solid ${ft.neutralColor}`,filter:"brightness(1.3)"},className:pgt.label,children:t}),hgt=t=>{const{vehicleList:e}=t;return re("div",{children:[E(ri,{isEnabled:e==null?void 0:e.equip7Navi,children:"ナビ"}),E(ri,{isEnabled:e==null?void 0:e.equip5Aw,children:"AW"}),E(ri,{isEnabled:e==null?void 0:e.equip8Tv,children:"TV"}),E(ri,{isEnabled:e==null?void 0:e.equip6Sr,children:"SR"}),E(ri,{isEnabled:e==null?void 0:e.equip9Leather,children:"革"}),E(ri,{isEnabled:e==null?void 0:e.equip3Air,children:"エアB"}),E(ri,{isEnabled:e==null?void 0:e.equip1Ps,children:"PS"}),E(ri,{isEnabled:e==null?void 0:e.equip2Pw,children:"PW"}),E(ri,{isEnabled:e==null?void 0:e.equip4Abs,children:"ABS"}),E(ri,{isEnabled:e==null?void 0:e.equip10Warranty,children:"保証書"}),E(ri,{isEnabled:e==null?void 0:e.equip11Manual,children:"取説"})]})},mgt="#ffffff",ggt="#29a03b",vgt="#c2d93d",ygt="#808080",bgt="#D9D9D9",_gt="#ccc",wgt="rgba(242, 242, 242, 0.4588235294)",xgt="2rem",Egt="1.5rem",Sgt="14px",Cgt="65rem",Tgt="_jaraMain_153jp_19",Agt="_makerNameGrade_153jp_29",Igt="_oddRowStyle_153jp_36",Mgt="_evenRowStyle_153jp_40",Np={baseColor:mgt,primaryColor:ggt,secondColor:vgt,neutralColor:ygt,hatchingColor:bgt,borderColor:_gt,evevRowColor:wgt,largeFont:xgt,mediumFont:Egt,smallFont:Sgt,pagePCMinWidth:Cgt,jaraMain:Tgt,makerNameGrade:Agt,oddRowStyle:Igt,evenRowStyle:Mgt},jle=t=>{const{yearEra:e,yearJa:n,registMonth:r,Spacer:i}=t;return re("div",{children:[E("div",{children:e===""?"":`${e}${n}年`}),E(i,{}),E("div",{style:{textAlign:"right"},children:Number(r)===0?"":`${r}月`})]})},Y4=(t,e)=>{if(t==="0年0月")return"";if(e===0){const n=t.slice(0,t.indexOf("年")),r=2;return n.slice(0,r),`${n}年`}return t},br=(t,e)=>{let n;typeof t=="string"?n=new Date(t):n=t;const r=n.getFullYear().toString(),i=(n.getMonth()+1).toString().padStart(2,"0"),a=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),l=n.getSeconds().toString().padStart(2,"0");return e.replace(/YYYY/g,r).replace(/MM/g,i).replace(/DD/g,a).replace(/hh/g,o).replace(/mm/g,s).replace(/ss/g,l)},Gle=(t,e)=>{const n=new Date(t),r=new Date(e);return new Date<=n?E("div",{children:`${br(n,"MM/DD hh:mm")}から`}):E("div",{children:`${br(r,"MM/DD hh:mm")}まで`})},Wle=t=>{const{vItem:e,vIndex:n,handleClick:r,isDetailPage:i=!1}=t,a=()=>E("div",{style:{height:"0rem"}}),o=v=>{const b=v.split("").reverse().join(""),g=b.length;let y="";if(g<=5)y=b;else for(let w=0;w0&&w%5===0&&(y+="-"),y+=b[w];return y.split("").reverse().join("")},[s,l]=C.useState(!1),c="#F2F2F2",u="background-color 0.1s ease",d=()=>{i||l(!0)},f=()=>{l(!1)},p=n%2===0,h=v=>{switch(v){case"落札":return"red";case"申込中":case"他社商談中":return"#1976d2";case"掲載中":return"black";case"掲載予定":return"gray";default:return"black"}};return re(oi,{children:[!i&&re("tr",{onMouseEnter:d,onMouseLeave:f,style:{backgroundColor:s?c:"",transition:s?u:"",cursor:i?"":"pointer"},onClick:()=>{r&&r(e.postCode)},className:p?Np.oddRowStyle:Np.evenRowStyle,children:[E("td",{style:{paddingRight:"10px"},rowSpan:3,children:e.imagePath?E("div",{style:{display:"flex"},children:E("img",{src:e.imagePath,alt:"car-thumbnail"})}):""}),!i&&E("td",{className:Np.makerNameGrade,colSpan:10,children:`${e.name}${e.grade}`})]}),re("tr",{onMouseEnter:d,onMouseLeave:f,style:{backgroundColor:s?c:"",transition:s?u:"",cursor:i?"":"pointer"},onClick:()=>{r&&r(e.postCode)},className:p?Np.oddRowStyle:Np.evenRowStyle,children:[re("td",{children:[E("div",{children:e.planName}),E(a,{}),E("div",{children:e.venue})]}),re("td",{children:[o(e.postCode.toString()),E(a,{}),e.chassis]}),E("td",{children:E(jle,{yearEra:e.yearEra,yearJa:e.yearJa,registMonth:e.registMonth,Spacer:a})}),re("td",{children:[E("div",{children:e.model}),E(a,{}),E("div",{children:e.displacement})]}),re("td",{children:[E("div",{children:`${e.mileage}千km${e.driveType??""}`}),E(a,{}),E("div",{children:Y4(e.inspection,Number(e.registMonth))})]}),re("td",{children:[E("div",{children:e.colorCode}),E(a,{}),E("div",{children:e.color})]}),re("td",{children:[E("div",{children:e.shift}),E(a,{}),E("div",{children:e.airCon})]}),re("td",{children:[E("div",{children:e.totalScore}),E(a,{}),E("div",{children:`${e.exteriorScore}/${e.interiorScore}`})]}),E("td",{style:{textAlign:"right"},children:`${fc(e.price.toString())}`}),re("td",{children:[E("div",{style:{color:h(e.status)},children:e.status}),E(a,{}),E("div",{children:Gle(e.startTime,e.endTime)})]})]}),E("tr",{onMouseEnter:d,onMouseLeave:f,style:{height:"2rem",backgroundColor:s?c:"",transition:s?u:"",cursor:i?"":"pointer"},onClick:()=>{r&&r(e.postCode)},className:p?Np.oddRowStyle:Np.evenRowStyle,children:E("td",{colSpan:10,style:{textAlign:"left"},children:E(hgt,{vehicleList:e})})})]})};function Xq(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function J4(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:Xq(e[n])&&Xq(t[n])&&Object.keys(e[n]).length>0&&J4(t[n],e[n])})}const qle={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function H0(){const t=typeof document<"u"?document:{};return J4(t,qle),t}const Dgt={document:qle,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function ks(){const t=typeof window<"u"?window:{};return J4(t,Dgt),t}function Pgt(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Rgt(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function i3(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function wA(){return Date.now()}function Ogt(t){const e=ks();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function Ngt(t,e){e===void 0&&(e="x");const n=ks();let r,i,a;const o=Ogt(t);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(s=>s.replace(",",".")).join(", ")),a=new n.WebKitCSSMatrix(i==="none"?"":i)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=a.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?i=a.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),e==="y"&&(n.WebKitCSSMatrix?i=a.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function sS(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Lgt(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function os(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;ne.indexOf(a)<0);for(let a=0,o=i.length;aa?"next":"prev",u=(f,p)=>c==="next"&&f>=p||c==="prev"&&f<=p,d=()=>{s=new Date().getTime(),o===null&&(o=s);const f=Math.max(Math.min((s-o)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let h=a+p*(n-a);if(u(h,n)&&(h=n),e.wrapperEl.scrollTo({[r]:h}),u(h,n)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:h})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(d)};d()}function qc(t,e){e===void 0&&(e="");const n=[...t.children];return t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter(r=>r.matches(e)):n}function kgt(t,e){const n=e.contains(t);return!n&&e instanceof HTMLSlotElement?[...e.assignedElements()].includes(t):n}function xA(t){try{console.warn(t);return}catch{}}function EA(t,e){e===void 0&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:Pgt(e)),n}function Fgt(t,e){const n=[];for(;t.previousElementSibling;){const r=t.previousElementSibling;e?r.matches(e)&&n.push(r):n.push(r),t=r}return n}function $gt(t,e){const n=[];for(;t.nextElementSibling;){const r=t.nextElementSibling;e?r.matches(e)&&n.push(r):n.push(r),t=r}return n}function Cf(t,e){return ks().getComputedStyle(t,null).getPropertyValue(e)}function SA(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function Jle(t,e){const n=[];let r=t.parentElement;for(;r;)e?r.matches(e)&&n.push(r):n.push(r),r=r.parentElement;return n}function a3(t,e,n){const r=ks();return n?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function da(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Qle(t,e,n,r){return t.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let a=qc(t.el,`.${r[i]}`)[0];a||(a=EA("div",r[i]),a.className=r[i],t.el.append(a)),n[i]=a,e[i]=a}}),n}function Bgt(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function a(h){let v;return h&&typeof h=="string"&&e.isElement&&(v=e.el.querySelector(h)||e.hostEl.querySelector(h),v)?v:(h&&(typeof h=="string"&&(v=[...document.querySelectorAll(h)]),e.params.uniqueNavElements&&typeof h=="string"&&v&&v.length>1&&e.el.querySelectorAll(h).length===1?v=e.el.querySelector(h):v&&v.length===1&&(v=v[0])),h&&!v?h:v)}function o(h,v){const b=e.params.navigation;h=da(h),h.forEach(g=>{g&&(g.classList[v?"add":"remove"](...b.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=v),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](b.lockClass))})}function s(){const{nextEl:h,prevEl:v}=e.navigation;if(e.params.loop){o(v,!1),o(h,!1);return}o(v,e.isBeginning&&!e.params.rewind),o(h,e.isEnd&&!e.params.rewind)}function l(h){h.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(h){h.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function u(){const h=e.params.navigation;if(e.params.navigation=Qle(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let v=a(h.nextEl),b=a(h.prevEl);Object.assign(e.navigation,{nextEl:v,prevEl:b}),v=da(v),b=da(b);const g=(y,w)=>{y&&y.addEventListener("click",w==="next"?c:l),!e.enabled&&y&&y.classList.add(...h.lockClass.split(" "))};v.forEach(y=>g(y,"next")),b.forEach(y=>g(y,"prev"))}function d(){let{nextEl:h,prevEl:v}=e.navigation;h=da(h),v=da(v);const b=(g,y)=>{g.removeEventListener("click",y==="next"?c:l),g.classList.remove(...e.params.navigation.disabledClass.split(" "))};h.forEach(g=>b(g,"next")),v.forEach(g=>b(g,"prev"))}r("init",()=>{e.params.navigation.enabled===!1?p():(u(),s())}),r("toEdge fromEdge lock unlock",()=>{s()}),r("destroy",()=>{d()}),r("enable disable",()=>{let{nextEl:h,prevEl:v}=e.navigation;if(h=da(h),v=da(v),e.enabled){s();return}[...h,...v].filter(b=>!!b).forEach(b=>b.classList.add(e.params.navigation.lockClass))}),r("click",(h,v)=>{let{nextEl:b,prevEl:g}=e.navigation;b=da(b),g=da(g);const y=v.target;let w=g.includes(y)||b.includes(y);if(e.isElement&&!w){const x=v.path||v.composedPath&&v.composedPath();x&&(w=x.find(S=>b.includes(S)||g.includes(S)))}if(e.params.navigation.hideOnClick&&!w){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===y||e.pagination.el.contains(y)))return;let x;b.length?x=b[0].classList.contains(e.params.navigation.hiddenClass):g.length&&(x=g[0].classList.contains(e.params.navigation.hiddenClass)),i(x===!0?"navigationShow":"navigationHide"),[...b,...g].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),s()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:p,update:s,init:u,destroy:d})}function lb(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ugt(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const a="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:y=>y,formatFractionTotal:y=>y,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let o,s=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(y,w){const{bulletActiveClass:x}=e.params.pagination;y&&(y=y[`${w==="prev"?"previous":"next"}ElementSibling`],y&&(y.classList.add(`${x}-${w}`),y=y[`${w==="prev"?"previous":"next"}ElementSibling`],y&&y.classList.add(`${x}-${w}-${w}`)))}function u(y,w,x){if(y=y%x,w=w%x,w===y+1)return"next";if(w===y-1)return"previous"}function d(y){const w=y.target.closest(lb(e.params.pagination.bulletClass));if(!w)return;y.preventDefault();const x=SA(w)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===x)return;const S=u(e.realIndex,x,e.slides.length);S==="next"?e.slideNext():S==="previous"?e.slidePrev():e.slideToLoop(x)}else e.slideTo(x)}function f(){const y=e.rtl,w=e.params.pagination;if(l())return;let x=e.pagination.el;x=da(x);let S,T;const I=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,P=e.params.loop?Math.ceil(I/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(T=e.previousRealIndex||0,S=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(S=e.snapIndex,T=e.previousSnapIndex):(T=e.previousIndex||0,S=e.activeIndex||0),w.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const M=e.pagination.bullets;let N,R,O;if(w.dynamicBullets&&(o=a3(M[0],e.isHorizontal()?"width":"height",!0),x.forEach(D=>{D.style[e.isHorizontal()?"width":"height"]=`${o*(w.dynamicMainBullets+4)}px`}),w.dynamicMainBullets>1&&T!==void 0&&(s+=S-(T||0),s>w.dynamicMainBullets-1?s=w.dynamicMainBullets-1:s<0&&(s=0)),N=Math.max(S-s,0),R=N+(Math.min(M.length,w.dynamicMainBullets)-1),O=(R+N)/2),M.forEach(D=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(k=>`${w.bulletActiveClass}${k}`)].map(k=>typeof k=="string"&&k.includes(" ")?k.split(" "):k).flat();D.classList.remove(...L)}),x.length>1)M.forEach(D=>{const L=SA(D);L===S?D.classList.add(...w.bulletActiveClass.split(" ")):e.isElement&&D.setAttribute("part","bullet"),w.dynamicBullets&&(L>=N&&L<=R&&D.classList.add(...`${w.bulletActiveClass}-main`.split(" ")),L===N&&c(D,"prev"),L===R&&c(D,"next"))});else{const D=M[S];if(D&&D.classList.add(...w.bulletActiveClass.split(" ")),e.isElement&&M.forEach((L,k)=>{L.setAttribute("part",k===S?"bullet-active":"bullet")}),w.dynamicBullets){const L=M[N],k=M[R];for(let B=N;B<=R;B+=1)M[B]&&M[B].classList.add(...`${w.bulletActiveClass}-main`.split(" "));c(L,"prev"),c(k,"next")}}if(w.dynamicBullets){const D=Math.min(M.length,w.dynamicMainBullets+4),L=(o*D-o)/2-O*o,k=y?"right":"left";M.forEach(B=>{B.style[e.isHorizontal()?k:"top"]=`${L}px`})}}x.forEach((M,N)=>{if(w.type==="fraction"&&(M.querySelectorAll(lb(w.currentClass)).forEach(R=>{R.textContent=w.formatFractionCurrent(S+1)}),M.querySelectorAll(lb(w.totalClass)).forEach(R=>{R.textContent=w.formatFractionTotal(P)})),w.type==="progressbar"){let R;w.progressbarOpposite?R=e.isHorizontal()?"vertical":"horizontal":R=e.isHorizontal()?"horizontal":"vertical";const O=(S+1)/P;let D=1,L=1;R==="horizontal"?D=O:L=O,M.querySelectorAll(lb(w.progressbarFillClass)).forEach(k=>{k.style.transform=`translate3d(0,0,0) scaleX(${D}) scaleY(${L})`,k.style.transitionDuration=`${e.params.speed}ms`})}w.type==="custom"&&w.renderCustom?(M.innerHTML=w.renderCustom(e,S+1,P),N===0&&i("paginationRender",M)):(N===0&&i("paginationRender",M),i("paginationUpdate",M)),e.params.watchOverflow&&e.enabled&&M.classList[e.isLocked?"add":"remove"](w.lockClass)})}function p(){const y=e.params.pagination;if(l())return;const w=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let x=e.pagination.el;x=da(x);let S="";if(y.type==="bullets"){let T=e.params.loop?Math.ceil(w/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&T>w&&(T=w);for(let I=0;I`}y.type==="fraction"&&(y.renderFraction?S=y.renderFraction.call(e,y.currentClass,y.totalClass):S=` / `),y.type==="progressbar"&&(y.renderProgressbar?S=y.renderProgressbar.call(e,y.progressbarFillClass):S=``),e.pagination.bullets=[],x.forEach(T=>{y.type!=="custom"&&(T.innerHTML=S||""),y.type==="bullets"&&e.pagination.bullets.push(...T.querySelectorAll(lb(y.bulletClass)))}),y.type!=="custom"&&i("paginationRender",x[0])}function h(){e.params.pagination=Qle(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const y=e.params.pagination;if(!y.el)return;let w;typeof y.el=="string"&&e.isElement&&(w=e.el.querySelector(y.el)),!w&&typeof y.el=="string"&&(w=[...document.querySelectorAll(y.el)]),w||(w=y.el),!(!w||w.length===0)&&(e.params.uniqueNavElements&&typeof y.el=="string"&&Array.isArray(w)&&w.length>1&&(w=[...e.el.querySelectorAll(y.el)],w.length>1&&(w=w.filter(x=>Jle(x,".swiper")[0]===e.el)[0])),Array.isArray(w)&&w.length===1&&(w=w[0]),Object.assign(e.pagination,{el:w}),w=da(w),w.forEach(x=>{y.type==="bullets"&&y.clickable&&x.classList.add(...(y.clickableClass||"").split(" ")),x.classList.add(y.modifierClass+y.type),x.classList.add(e.isHorizontal()?y.horizontalClass:y.verticalClass),y.type==="bullets"&&y.dynamicBullets&&(x.classList.add(`${y.modifierClass}${y.type}-dynamic`),s=0,y.dynamicMainBullets<1&&(y.dynamicMainBullets=1)),y.type==="progressbar"&&y.progressbarOpposite&&x.classList.add(y.progressbarOppositeClass),y.clickable&&x.addEventListener("click",d),e.enabled||x.classList.add(y.lockClass)}))}function v(){const y=e.params.pagination;if(l())return;let w=e.pagination.el;w&&(w=da(w),w.forEach(x=>{x.classList.remove(y.hiddenClass),x.classList.remove(y.modifierClass+y.type),x.classList.remove(e.isHorizontal()?y.horizontalClass:y.verticalClass),y.clickable&&(x.classList.remove(...(y.clickableClass||"").split(" ")),x.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(x=>x.classList.remove(...y.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const y=e.params.pagination;let{el:w}=e.pagination;w=da(w),w.forEach(x=>{x.classList.remove(y.horizontalClass,y.verticalClass),x.classList.add(e.isHorizontal()?y.horizontalClass:y.verticalClass)})}),r("init",()=>{e.params.pagination.enabled===!1?g():(h(),p(),f())}),r("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),r("snapIndexChange",()=>{f()}),r("snapGridLengthChange",()=>{p(),f()}),r("destroy",()=>{v()}),r("enable disable",()=>{let{el:y}=e.pagination;y&&(y=da(y),y.forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),r("lock unlock",()=>{f()}),r("click",(y,w)=>{const x=w.target,S=da(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&S&&S.length>0&&!x.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&x===e.navigation.nextEl||e.navigation.prevEl&&x===e.navigation.prevEl))return;const T=S[0].classList.contains(e.params.pagination.hiddenClass);i(T===!0?"paginationShow":"paginationHide"),S.forEach(I=>I.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:y}=e.pagination;y&&(y=da(y),y.forEach(w=>w.classList.remove(e.params.pagination.paginationDisabledClass))),h(),p(),f()},g=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:y}=e.pagination;y&&(y=da(y),y.forEach(w=>w.classList.add(e.params.pagination.paginationDisabledClass))),v()};Object.assign(e.pagination,{enable:b,disable:g,render:p,update:f,init:h,destroy:v})}let bN;function Hgt(){const t=ks(),e=H0();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Kle(){return bN||(bN=Hgt()),bN}let _N;function Vgt(t){let{userAgent:e}=t===void 0?{}:t;const n=Kle(),r=ks(),i=r.navigator.platform,a=e||r.navigator.userAgent,o={ios:!1,android:!1},s=r.screen.width,l=r.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=i==="Win32";let h=i==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&h&&n.touch&&v.indexOf(`${s}x${l}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),h=!1),c&&!p&&(o.os="android",o.android=!0),(u||f||d)&&(o.os="ios",o.ios=!0),o}function Xle(t){return t===void 0&&(t={}),_N||(_N=Vgt(t)),_N}let wN;function zgt(){const t=ks(),e=Xle();let n=!1;function r(){const s=t.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(r()){const s=String(t.navigator.userAgent);if(s.includes("Version/")){const[l,c]=s.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));n=l<16||l===16&&c<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),a=r(),o=a||i&&e.ios;return{isSafari:n||a,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function jgt(){return wN||(wN=zgt()),wN}function Ggt(t){let{swiper:e,on:n,emit:r}=t;const i=ks();let a=null,o=null;const s=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(d=>{o=i.requestAnimationFrame(()=>{const{width:f,height:p}=e;let h=f,v=p;d.forEach(b=>{let{contentBoxSize:g,contentRect:y,target:w}=b;w&&w!==e.el||(h=y?y.width:(g[0]||g).inlineSize,v=y?y.height:(g[0]||g).blockSize)}),(h!==f||v!==p)&&s()})}),a.observe(e.el))},c=()=>{o&&i.cancelAnimationFrame(o),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},u=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};n("init",()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",s),i.addEventListener("orientationchange",u)}),n("destroy",()=>{c(),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",u)})}function Wgt(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const a=[],o=ks(),s=function(u,d){d===void 0&&(d={});const f=o.MutationObserver||o.WebkitMutationObserver,p=new f(h=>{if(e.__preventObserver__)return;if(h.length===1){i("observerUpdate",h[0]);return}const v=function(){i("observerUpdate",h[0])};o.requestAnimationFrame?o.requestAnimationFrame(v):o.setTimeout(v,0)});p.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:e.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),a.push(p)},l=()=>{if(e.params.observer){if(e.params.observeParents){const u=Jle(e.hostEl);for(let d=0;d{a.forEach(u=>{u.disconnect()}),a.splice(0,a.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",c)}var qgt={on(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const i=n?"unshift":"push";return t.split(" ").forEach(a=>{r.eventsListeners[a]||(r.eventsListeners[a]=[]),r.eventsListeners[a][i](e)}),r},once(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;function i(){r.off(t,i),i.__emitterProxy&&delete i.__emitterProxy;for(var a=arguments.length,o=new Array(a),s=0;s=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(r=>{typeof e>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,a)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[r].splice(a,1)})}),n},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,r;for(var i=arguments.length,a=new Array(i),o=0;o{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(r,[l,...n])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(r,n)})}),t}};function Ygt(){const t=this;let e,n;const r=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=r.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=r.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(Cf(r,"padding-left")||0,10)-parseInt(Cf(r,"padding-right")||0,10),n=n-parseInt(Cf(r,"padding-top")||0,10)-parseInt(Cf(r,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function Jgt(){const t=this;function e(N,R){return parseFloat(N.getPropertyValue(t.getDirectionLabel(R))||0)}const n=t.params,{wrapperEl:r,slidesEl:i,size:a,rtlTranslate:o,wrongRTL:s}=t,l=t.virtual&&n.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=qc(i,`.${t.params.slideClass}, swiper-slide`),d=l?t.virtual.slides.length:u.length;let f=[];const p=[],h=[];let v=n.slidesOffsetBefore;typeof v=="function"&&(v=n.slidesOffsetBefore.call(t));let b=n.slidesOffsetAfter;typeof b=="function"&&(b=n.slidesOffsetAfter.call(t));const g=t.snapGrid.length,y=t.slidesGrid.length;let w=n.spaceBetween,x=-v,S=0,T=0;if(typeof a>"u")return;typeof w=="string"&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*a:typeof w=="string"&&(w=parseFloat(w)),t.virtualSize=-w,u.forEach(N=>{o?N.style.marginLeft="":N.style.marginRight="",N.style.marginBottom="",N.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(lS(r,"--swiper-centered-offset-before",""),lS(r,"--swiper-centered-offset-after",""));const I=n.grid&&n.grid.rows>1&&t.grid;I?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let P;const M=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(N=>typeof n.breakpoints[N].slidesPerView<"u").length>0;for(let N=0;N1&&f.push(t.virtualSize-a)}if(l&&n.loop){const N=h[0]+w;if(n.slidesPerGroup>1){const R=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),O=N*n.slidesPerGroup;for(let D=0;D!n.cssMode||n.loop?!0:O!==u.length-1).forEach(R=>{R.style[N]=`${w}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let N=0;h.forEach(O=>{N+=O+(w||0)}),N-=w;const R=N>a?N-a:0;f=f.map(O=>O<=0?-v:O>R?R+b:O)}if(n.centerInsufficientSlides){let N=0;h.forEach(O=>{N+=O+(w||0)}),N-=w;const R=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(N+R{f[L]=D-O}),p.forEach((D,L)=>{p[L]=D+O})}}if(Object.assign(t,{slides:u,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){lS(r,"--swiper-centered-offset-before",`${-f[0]}px`),lS(r,"--swiper-centered-offset-after",`${t.size/2-h[h.length-1]/2}px`);const N=-t.snapGrid[0],R=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(O=>O+N),t.slidesGrid=t.slidesGrid.map(O=>O+R)}if(d!==c&&t.emit("slidesLengthChange"),f.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==y&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const N=`${n.containerModifierClass}backface-hidden`,R=t.el.classList.contains(N);d<=n.maxBackfaceHiddenSlides?R||t.el.classList.add(N):R&&t.el.classList.remove(N)}}function Qgt(t){const e=this,n=[],r=e.virtual&&e.params.virtual.enabled;let i=0,a;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=s=>r?e.slides[e.getSlideIndexByData(s)]:e.slides[s];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(s=>{n.push(s)});else for(a=0;ae.slides.length&&!r)break;n.push(o(s))}else n.push(o(e.activeIndex));for(a=0;ai?s:i}(i||i===0)&&(e.wrapperEl.style.height=`${i}px`)}function Kgt(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function Xgt(t){t===void 0&&(t=this&&this.translate||0);const e=this,n=e.params,{slides:r,rtlTranslate:i,snapGrid:a}=e;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-t;i&&(o=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let s=n.spaceBetween;typeof s=="string"&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*e.size:typeof s=="string"&&(s=parseFloat(s));for(let l=0;l=0&&p<=e.size-e.slidesSizesGrid[l],b=p>=0&&p1&&h<=e.size||p<=0&&h>=e.size;b&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l)),Zq(c,b,n.slideVisibleClass),Zq(c,v,n.slideFullyVisibleClass),c.progress=i?-d:d,c.originalProgress=i?-f:f}}function Zgt(t){const e=this;if(typeof t>"u"){const u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}const n=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:a,isEnd:o,progressLoop:s}=e;const l=a,c=o;if(r===0)i=0,a=!0,o=!0;else{i=(t-e.minTranslate())/r;const u=Math.abs(t-e.minTranslate())<1,d=Math.abs(t-e.maxTranslate())<1;a=u||i<=0,o=d||i>=1,u&&(i=0),d&&(i=1)}if(n.loop){const u=e.getSlideIndexByData(0),d=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[u],p=e.slidesGrid[d],h=e.slidesGrid[e.slidesGrid.length-1],v=Math.abs(t);v>=f?s=(v-f)/h:s=(v+h-p)/h,s>1&&(s-=1)}Object.assign(e,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),a&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!a||c&&!o)&&e.emit("fromEdge"),e.emit("progress",i)}const xN=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function evt(){const t=this,{slides:e,params:n,slidesEl:r,activeIndex:i}=t,a=t.virtual&&n.virtual.enabled,o=t.grid&&n.grid&&n.grid.rows>1,s=d=>qc(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,c,u;if(a)if(n.loop){let d=i-t.virtual.slidesBefore;d<0&&(d=t.virtual.slides.length+d),d>=t.virtual.slides.length&&(d-=t.virtual.slides.length),l=s(`[data-swiper-slide-index="${d}"]`)}else l=s(`[data-swiper-slide-index="${i}"]`);else o?(l=e.filter(d=>d.column===i)[0],u=e.filter(d=>d.column===i+1)[0],c=e.filter(d=>d.column===i-1)[0]):l=e[i];l&&(o||(u=$gt(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=e[0]),c=Fgt(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(d=>{xN(d,d===l,n.slideActiveClass),xN(d,d===u,n.slideNextClass),xN(d,d===c,n.slidePrevClass)}),t.emitSlidesClasses()}const BC=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,r=e.closest(n());if(r){let i=r.querySelector(`.${t.params.lazyPreloaderClass}`);!i&&t.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},EN=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},o3=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const r=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),i=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=i,s=[o-e];s.push(...Array.from({length:e}).map((l,c)=>o+r+c)),t.slides.forEach((l,c)=>{s.includes(l.column)&&EN(t,c)});return}const a=i+r-1;if(t.params.rewind||t.params.loop)for(let o=i-e;o<=a+e;o+=1){const s=(o%n+n)%n;(sa)&&EN(t,s)}else for(let o=Math.max(i-e,0);o<=Math.min(a+e,n-1);o+=1)o!==i&&(o>a||o=e[a]&&r=e[a]&&r=e[a]&&(i=a);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function nvt(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:o,snapIndex:s}=e;let l=t,c;const u=p=>{let h=p-e.virtual.slidesBefore;return h<0&&(h=e.virtual.slides.length+h),h>=e.virtual.slides.length&&(h-=e.virtual.slides.length),h};if(typeof l>"u"&&(l=tvt(e)),r.indexOf(n)>=0)c=r.indexOf(n);else{const p=Math.min(i.slidesPerGroupSkip,l);c=p+Math.floor((l-p)/i.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===a&&!e.params.loop){c!==s&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===a&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(l);return}const d=e.grid&&i.grid&&i.grid.rows>1;let f;if(e.virtual&&i.virtual.enabled&&i.loop)f=u(l);else if(d){const p=e.slides.filter(v=>v.column===l)[0];let h=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(e.slides.indexOf(p),0)),f=Math.floor(h/i.grid.rows)}else if(e.slides[l]){const p=e.slides[l].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=l}else f=l;Object.assign(e,{previousSnapIndex:s,snapIndex:c,previousRealIndex:o,realIndex:f,previousIndex:a,activeIndex:l}),e.initialized&&o3(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function rvt(t,e){const n=this,r=n.params;let i=t.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(s=>{!i&&s.matches&&s.matches(`.${r.slideClass}, swiper-slide`)&&(i=s)});let a=!1,o;if(i){for(let s=0;sl?u=l:r&&to?s="next":a"u"&&(e=a.params.speed);const v=Math.min(a.params.slidesPerGroupSkip,o);let b=v+Math.floor((o-v)/a.params.slidesPerGroup);b>=l.length&&(b=l.length-1);const g=-l[b];if(s.normalizeSlideIndex)for(let S=0;S=I&&T=I&&T=I&&(o=S)}if(a.initialized&&o!==d&&(!a.allowSlideNext&&(f?g>a.translate&&g>a.minTranslate():ga.translate&&g>a.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(g);let y;o>d?y="next":o0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[S?"scrollLeft":"scrollTop"]=T})):p[S?"scrollLeft":"scrollTop"]=T,w&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return Yle({swiper:a,targetPosition:T,side:S?"left":"top"}),!0;p.scrollTo({[S?"left":"top"]:T,behavior:"smooth"})}return!0}return a.setTransition(e),a.setTranslate(g),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",e,r),a.transitionStart(n,y),e===0?a.transitionEnd(n,y):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(T){!a||a.destroyed||T.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,y))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0}function gvt(t,e,n,r){t===void 0&&(t=0),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);const a=i.grid&&i.params.grid&&i.params.grid.rows>1;let o=t;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o=o+i.virtual.slidesBefore;else{let s;if(a){const f=o*i.params.grid.rows;s=i.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else s=i.getSlideIndexByData(o);const l=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:c}=i.params;let u=i.params.slidesPerView;u==="auto"?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),c&&u%2===0&&(u=u+1));let d=l-sp.getAttribute("data-swiper-slide-index")*1===f)[0].column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,e,n,r)}),i}function vvt(t,e,n){e===void 0&&(e=!0);const r=this,{enabled:i,params:a,animating:o}=r;if(!i||r.destroyed)return r;typeof t>"u"&&(t=r.params.speed);let s=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex{r.slideTo(r.activeIndex+l,t,e,n)}),!0}return a.rewind&&r.isEnd?r.slideTo(0,t,e,n):r.slideTo(r.activeIndex+l,t,e,n)}function yvt(t,e,n){e===void 0&&(e=!0);const r=this,{params:i,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;typeof t>"u"&&(t=r.params.speed);const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=s?r.translate:-r.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(d),h=a.map(g=>f(g));let v=a[h.indexOf(p)-1];if(typeof v>"u"&&i.cssMode){let g;a.forEach((y,w)=>{p>=y&&(g=w)}),typeof g<"u"&&(v=a[g>0?g-1:g])}let b=0;if(typeof v<"u"&&(b=o.indexOf(v),b<0&&(b=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(b=b-r.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),i.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,t,e,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(b,t,e,n)}),!0;return r.slideTo(b,t,e,n)}function bvt(t,e,n){e===void 0&&(e=!0);const r=this;if(!r.destroyed)return typeof t>"u"&&(t=r.params.speed),r.slideTo(r.activeIndex,t,e,n)}function _vt(t,e,n,r){e===void 0&&(e=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);let a=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const c=i.snapGrid[s],u=i.snapGrid[s+1];l-c>(u-c)*r&&(a+=i.params.slidesPerGroup)}else{const c=i.snapGrid[s-1],u=i.snapGrid[s];l-c<=(u-c)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,t,e,n)}function wvt(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:n}=t,r=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let i=t.clickedIndex,a;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;a=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?it.slides.length-t.loopedSlides+r/2?(t.loopFix(),i=t.getSlideIndex(qc(n,`${o}[data-swiper-slide-index="${a}"]`)[0]),i3(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-r?(t.loopFix(),i=t.getSlideIndex(qc(n,`${o}[data-swiper-slide-index="${a}"]`)[0]),i3(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}var xvt={slideTo:mvt,slideToLoop:gvt,slideNext:vvt,slidePrev:yvt,slideReset:bvt,slideToClosest:_vt,slideToClickedSlide:wvt};function Evt(t){const e=this,{params:n,slidesEl:r}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;const i=()=>{qc(r,`.${n.slideClass}, swiper-slide`).forEach((d,f)=>{d.setAttribute("data-swiper-slide-index",f)})},a=e.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(a?n.grid.rows:1),s=e.slides.length%o!==0,l=a&&e.slides.length%n.grid.rows!==0,c=u=>{for(let d=0;d1;c.length"u"?a=l.getSlideIndex(c.filter(D=>D.classList.contains(p.slideActiveClass))[0]):S=a;const T=r==="next"||!r,I=r==="prev"||!r;let P=0,M=0;const N=y?Math.ceil(c.length/p.grid.rows):c.length,O=(y?c[a].column:a)+(h&&typeof i>"u"?-v/2+.5:0);if(O=0;B-=1)c[B].column===k&&w.push(B)}else w.push(N-L-1)}}else if(O+v>N-g){M=Math.max(O-(N-g*2),b);for(let D=0;D{k.column===L&&x.push(B)}):x.push(L)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),I&&w.forEach(D=>{c[D].swiperLoopMoveDOM=!0,f.prepend(c[D]),c[D].swiperLoopMoveDOM=!1}),T&&x.forEach(D=>{c[D].swiperLoopMoveDOM=!0,f.append(c[D]),c[D].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():y&&(w.length>0&&I||x.length>0&&T)&&l.slides.forEach((D,L)=>{l.grid.updateSlide(L,D,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),n){if(w.length>0&&I){if(typeof e>"u"){const D=l.slidesGrid[S],k=l.slidesGrid[S+P]-D;s?l.setTranslate(l.translate-k):(l.slideTo(S+Math.ceil(P),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-k,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-k))}else if(i){const D=y?w.length/p.grid.rows:w.length;l.slideTo(l.activeIndex+D,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(x.length>0&&T)if(typeof e>"u"){const D=l.slidesGrid[S],k=l.slidesGrid[S-M]-D;s?l.setTranslate(l.translate-k):(l.slideTo(S-M,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-k,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-k))}else{const D=y?x.length/p.grid.rows:x.length;l.slideTo(l.activeIndex-D,0,!1,!0)}}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!o){const D={slideRealIndex:e,direction:r,setTranslate:i,activeSlideIndex:a,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(L=>{!L.destroyed&&L.params.loop&&L.loopFix({...D,slideTo:L.params.slidesPerView===p.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...D,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?n:!1})}l.emit("loopFix")}function Cvt(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const r=[];t.slides.forEach(i=>{const a=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[a]=i}),t.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Tvt={loopCreate:Evt,loopFix:Svt,loopDestroy:Cvt};function Avt(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Ivt(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Mvt={setGrabCursor:Avt,unsetGrabCursor:Ivt};function Dvt(t,e){e===void 0&&(e=this);function n(r){if(!r||r===H0()||r===ks())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(t);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(e)}function e7(t,e,n){const r=ks(),{params:i}=t,a=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return a&&(n<=o||n>=r.innerWidth-o)?a==="prevent"?(e.preventDefault(),!0):!1:!0}function Pvt(t){const e=this,n=H0();let r=t;r.originalEvent&&(r=r.originalEvent);const i=e.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){e7(e,r,r.targetTouches[0].pageX);return}const{params:a,touches:o,enabled:s}=e;if(!s||!a.simulateTouch&&r.pointerType==="mouse"||e.animating&&a.preventInteractionOnTransition)return;!e.animating&&a.cssMode&&a.loop&&e.loopFix();let l=r.target;if(a.touchEventsTarget==="wrapper"&&!kgt(l,e.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const c=!!a.noSwipingClass&&a.noSwipingClass!=="",u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(a.noSwiping&&(f?Dvt(d,l):l.closest(d))){e.allowClick=!0;return}if(a.swipeHandler&&!l.closest(a.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const p=o.currentX,h=o.currentY;if(!e7(e,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=h,i.touchStartTime=wA(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1);let v=!0;l.matches(i.focusableElements)&&(v=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!l.matches(i.focusableElements))&&n.activeElement.blur();const b=v&&e.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||b)&&!l.isContentEditable&&r.preventDefault(),a.freeMode&&a.freeMode.enabled&&e.freeMode&&e.animating&&!a.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",r)}function Rvt(t){const e=H0(),n=this,r=n.touchEventsData,{params:i,touches:a,rtlTranslate:o,enabled:s}=n;if(!s||!i.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].filter(T=>T.identifier===r.touchId)[0],!c||c.identifier!==r.touchId)return}else c=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const u=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){a.startX=u,a.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=wA());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(da.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(ua.startX&&n.translate>=n.minTranslate())return}if(e.activeElement&&e.activeElement.matches(r.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=d;const f=a.currentX-a.startX,p=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)"u"){let T;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:f*f+p*p>=25&&(T=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?T>i.touchAngle:90-T>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let h=n.isHorizontal()?f:p,v=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;i.oneWayMovement&&(h=Math.abs(h)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),a.diff=h,h*=i.touchRatio,o&&(h=-h,v=-v);const b=n.touchesDirection;n.swipeDirection=h>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const g=n.params.loop&&!i.cssMode,y=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(g&&y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(T)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let w;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&b!==n.touchesDirection&&g&&y&&Math.abs(h)>=1){Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=h+r.startTranslate;let x=!0,S=i.resistanceRatio;if(i.touchReleaseOnEdges&&(S=0),h>0?(g&&y&&!w&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(x=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+h)**S))):h<0&&(g&&y&&!w&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(h)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Ovt(t){const e=this,n=e.touchEventsData;let r=t;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].filter(S=>S.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(e.browser.isSafari||e.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:s,rtlTranslate:l,slidesGrid:c,enabled:u}=e;if(!u||!o.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&e.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const d=wA(),f=d-n.touchStartTime;if(e.allowClick){const S=r.path||r.composedPath&&r.composedPath();e.updateClickedSlide(S&&S[0]||r.target,S),e.emit("tap click",r),f<300&&d-n.lastClickTime<300&&e.emit("doubleTap doubleClick",r)}if(n.lastClickTime=wA(),i3(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||s.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(o.followFinger?p=l?e.translate:-e.translate:p=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const h=p>=-e.maxTranslate()&&!e.params.loop;let v=0,b=e.slidesSizesGrid[0];for(let S=0;S=c[S]&&p=c[S])&&(v=S,b=c[c.length-1]-c[c.length-2])}let g=null,y=null;o.rewind&&(e.isBeginning?y=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(g=0));const w=(p-c[v])/b,x=vo.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(w>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?g:v+x):e.slideTo(v)),e.swipeDirection==="prev"&&(w>1-o.longSwipesRatio?e.slideTo(v+x):y!==null&&w<0&&Math.abs(w)>o.longSwipesRatio?e.slideTo(y):e.slideTo(v))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(r.target===e.navigation.nextEl||r.target===e.navigation.prevEl)?r.target===e.navigation.nextEl?e.slideTo(v+x):e.slideTo(v):(e.swipeDirection==="next"&&e.slideTo(g!==null?g:v+x),e.swipeDirection==="prev"&&e.slideTo(y!==null?y:v))}}function t7(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const s=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!s?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=i,t.allowSlideNext=r,t.params.watchOverflow&&a!==t.snapGrid&&t.checkOverflow()}function Nvt(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Lvt(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:r}=t;if(!r)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let i;const a=t.maxTranslate()-t.minTranslate();a===0?i=0:i=(t.translate-t.minTranslate())/a,i!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function kvt(t){const e=this;BC(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Fvt(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const ece=(t,e)=>{const n=H0(),{params:r,el:i,wrapperEl:a,device:o}=t,s=!!r.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;!i||typeof i=="string"||(n[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:s}),i[l]("touchstart",t.onTouchStart,{passive:!1}),i[l]("pointerdown",t.onTouchStart,{passive:!1}),n[l]("touchmove",t.onTouchMove,{passive:!1,capture:s}),n[l]("pointermove",t.onTouchMove,{passive:!1,capture:s}),n[l]("touchend",t.onTouchEnd,{passive:!0}),n[l]("pointerup",t.onTouchEnd,{passive:!0}),n[l]("pointercancel",t.onTouchEnd,{passive:!0}),n[l]("touchcancel",t.onTouchEnd,{passive:!0}),n[l]("pointerout",t.onTouchEnd,{passive:!0}),n[l]("pointerleave",t.onTouchEnd,{passive:!0}),n[l]("contextmenu",t.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",t.onClick,!0),r.cssMode&&a[l]("scroll",t.onScroll),r.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",t7,!0):t[c]("observerUpdate",t7,!0),i[l]("load",t.onLoad,{capture:!0}))};function $vt(){const t=this,{params:e}=t;t.onTouchStart=Pvt.bind(t),t.onTouchMove=Rvt.bind(t),t.onTouchEnd=Ovt.bind(t),t.onDocumentTouchStart=Fvt.bind(t),e.cssMode&&(t.onScroll=Lvt.bind(t)),t.onClick=Nvt.bind(t),t.onLoad=kvt.bind(t),ece(t,"on")}function Bvt(){ece(this,"off")}var Uvt={attachEvents:$vt,detachEvents:Bvt};const n7=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Hvt(){const t=this,{realIndex:e,initialized:n,params:r,el:i}=t,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const o=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in a?a[o]:void 0)||t.originalParams,c=n7(t,r),u=n7(t,l),d=t.params.grabCursor,f=l.grabCursor,p=r.enabled;c&&!u?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&u&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),t.emitContainerClasses()),d&&!f?t.unsetGrabCursor():!d&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof l[w]>"u")return;const x=r[w]&&r[w].enabled,S=l[w]&&l[w].enabled;x&&!S&&t[w].disable(),!x&&S&&t[w].enable()});const h=l.direction&&l.direction!==r.direction,v=r.loop&&(l.slidesPerView!==r.slidesPerView||h),b=r.loop;h&&n&&t.changeDirection(),os(t.params,l);const g=t.params.enabled,y=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!g?t.disable():!p&&g&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),n&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!b&&y?(t.loopCreate(e),t.updateSlides()):b&&!y&&t.loopDestroy()),t.emit("breakpoint",l)}function Vvt(t,e,n){if(e===void 0&&(e="window"),!t||e==="container"&&!n)return;let r=!1;const i=ks(),a=e==="window"?i.innerHeight:n.clientHeight,o=Object.keys(t).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const l=parseFloat(s.substr(1));return{value:a*l,point:s}}return{value:s,point:s}});o.sort((s,l)=>parseInt(s.value,10)-parseInt(l.value,10));for(let s=0;s{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(e+i)}):typeof r=="string"&&n.push(e+r)}),n}function Gvt(){const t=this,{classNames:e,params:n,rtl:r,el:i,device:a}=t,o=jvt(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...o),i.classList.add(...e),t.emitContainerClasses()}function Wvt(){const t=this,{el:e,classNames:n}=t;!e||typeof e=="string"||(e.classList.remove(...n),t.emitContainerClasses())}var qvt={addClasses:Gvt,removeClasses:Wvt};function Yvt(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:r}=n;if(r){const i=t.slides.length-1,a=t.slidesGrid[i]+t.slidesSizesGrid[i]+r*2;t.isLocked=t.size>a}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Jvt={checkOverflow:Yvt},s3={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Qvt(t,e){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],a=r[i];if(typeof a!="object"||a===null){os(e,r);return}if(t[i]===!0&&(t[i]={enabled:!0}),i==="navigation"&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),!(i in t&&"enabled"in a)){os(e,r);return}typeof t[i]=="object"&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),os(e,r)}}const SN={eventsEmitter:qgt,update:ivt,translate:uvt,transition:hvt,slide:xvt,loop:Tvt,grabCursor:Mvt,events:Uvt,breakpoints:zvt,checkOverflow:Jvt,classes:qvt},CN={};let Xl=class{constructor(){let e,n;for(var r=arguments.length,i=new Array(r),a=0;a1){const u=[];return o.querySelectorAll(n.el).forEach(d=>{const f=os({},n,{el:d});u.push(new Xl(f))}),u}const s=this;s.__swiper__=!0,s.support=Kle(),s.device=Xle({userAgent:n.userAgent}),s.browser=jgt(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],n.modules&&Array.isArray(n.modules)&&s.modules.push(...n.modules);const l={};s.modules.forEach(u=>{u({params:n,swiper:s,extendParams:Qvt(n,l),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const c=os({},s3,l);return s.params=os({},c,CN,n),s.originalParams=os({},s.params),s.passedParams=os({},n),s.params&&s.params.on&&Object.keys(s.params.on).forEach(u=>{s.on(u,s.params.on[u])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:n,params:r}=this,i=qc(n,`.${r.slideClass}, swiper-slide`),a=SA(i[0]);return SA(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:n,params:r}=e;e.slides=qc(n,`.${r.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const r=this;e=Math.min(Math.max(e,0),1);const i=r.minTranslate(),o=(r.maxTranslate()-i)*e+i;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(r=>{const i=e.getSlideClasses(r);n.push({slideEl:r,classNames:i}),e.emit("_slideClass",r,i)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e,n){e===void 0&&(e="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:a,slidesGrid:o,slidesSizesGrid:s,size:l,activeIndex:c}=r;let u=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let d=a[c]?Math.ceil(a[c].swiperSlideSize):0,f;for(let p=c+1;pl&&(f=!0));for(let p=c-1;p>=0;p-=1)a[p]&&!f&&(d+=a[p].swiperSlideSize,u+=1,d>l&&(f=!0))}else if(e==="current")for(let d=c+1;d=0;d-=1)o[c]-o[d]{o.complete&&BC(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){const o=e.rtlTranslate?e.translate*-1:e.translate,s=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let a;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&e.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&e.isEnd&&!r.centeredSlides){const o=e.virtual&&r.virtual.enabled?e.virtual.slides:e.slides;a=e.slideTo(o.length-1,0,!1,!0)}else a=e.slideTo(e.activeIndex,0,!1,!0);a||i()}r.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.forEach(a=>{e==="vertical"?a.style.width="":a.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let r=e||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):qc(r,i())[0])();return!o&&n.params.createElements&&(o=EA("div",n.params.wrapperClass),r.append(o),qc(r,`.${n.params.slideClass}`).forEach(s=>{o.append(s)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Cf(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Cf(r,"direction")==="rtl"),wrongRTL:Cf(o,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(a=>{a.complete?BC(n,a):a.addEventListener("load",o=>{BC(n,o.target)})}),o3(n),n.initialized=!0,o3(n),n.emit("init"),n.emit("afterInit"),n}destroy(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0);const r=this,{params:i,el:a,wrapperEl:o,slides:s}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),a&&typeof a!="string"&&a.removeAttribute("style"),o&&o.removeAttribute("style"),s&&s.length&&s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),e!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),Rgt(r)),r.destroyed=!0),null}static extendDefaults(e){os(CN,e)}static get extendedDefaults(){return CN}static get defaults(){return s3}static installModule(e){Xl.prototype.__modules__||(Xl.prototype.__modules__=[]);const n=Xl.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>Xl.installModule(n)),Xl):(Xl.installModule(e),Xl)}};Object.keys(SN).forEach(t=>{Object.keys(SN[t]).forEach(e=>{Xl.prototype[e]=SN[t][e]})});Xl.use([Ggt,Wgt]);const tce=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Gh(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function gv(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof t[r]>"u"?t[r]=e[r]:Gh(e[r])&&Gh(t[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?t[r]=e[r]:gv(t[r],e[r]):t[r]=e[r]})}function nce(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function rce(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function ice(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function ace(t){t===void 0&&(t="");const e=t.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return e.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function Kvt(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Xvt(t){let{swiper:e,slides:n,passedParams:r,changedParams:i,nextEl:a,prevEl:o,scrollbarEl:s,paginationEl:l}=t;const c=i.filter(M=>M!=="children"&&M!=="direction"&&M!=="wrapperClass"),{params:u,pagination:d,navigation:f,scrollbar:p,virtual:h,thumbs:v}=e;let b,g,y,w,x,S,T,I;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(b=!0),i.includes("controller")&&r.controller&&r.controller.control&&u.controller&&!u.controller.control&&(g=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(u.pagination||u.pagination===!1)&&d&&!d.el&&(y=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||s)&&(u.scrollbar||u.scrollbar===!1)&&p&&!p.el&&(w=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(x=!0);const P=M=>{e[M]&&(e[M].destroy(),M==="navigation"?(e.isElement&&(e[M].prevEl.remove(),e[M].nextEl.remove()),u[M].prevEl=void 0,u[M].nextEl=void 0,e[M].prevEl=void 0,e[M].nextEl=void 0):(e.isElement&&e[M].el.remove(),u[M].el=void 0,e[M].el=void 0))};i.includes("loop")&&e.isElement&&(u.loop&&!r.loop?S=!0:!u.loop&&r.loop?T=!0:I=!0),c.forEach(M=>{if(Gh(u[M])&&Gh(r[M]))Object.assign(u[M],r[M]),(M==="navigation"||M==="pagination"||M==="scrollbar")&&"enabled"in r[M]&&!r[M].enabled&&P(M);else{const N=r[M];(N===!0||N===!1)&&(M==="navigation"||M==="pagination"||M==="scrollbar")?N===!1&&P(M):u[M]=r[M]}}),c.includes("controller")&&!g&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),i.includes("children")&&n&&h&&u.virtual.enabled?(h.slides=n,h.update(!0)):i.includes("virtual")&&h&&u.virtual.enabled&&(n&&(h.slides=n),h.update(!0)),i.includes("children")&&n&&u.loop&&(I=!0),b&&v.init()&&v.update(!0),g&&(e.controller.control=u.controller.control),y&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(u.pagination.el=l),d.init(),d.render(),d.update()),w&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),e.el.appendChild(s)),s&&(u.scrollbar.el=s),p.init(),p.updateSize(),p.setTranslate()),x&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),a.innerHTML=e.hostEl.constructor.nextButtonSvg,a.part.add("button-next"),e.el.appendChild(a)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=e.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),e.el.appendChild(o))),a&&(u.navigation.nextEl=a),o&&(u.navigation.prevEl=o),f.init(),f.update()),i.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&e.changeDirection(r.direction,!1),(S||I)&&e.loopDestroy(),(T||I)&&e.loopCreate(),e.update()}function Zvt(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const n={on:{}},r={},i={};gv(n,s3),n._emitClasses=!0,n.init=!1;const a={},o=tce.map(l=>l.replace(/_/,"")),s=Object.assign({},t);return Object.keys(s).forEach(l=>{typeof t[l]>"u"||(o.indexOf(l)>=0?Gh(t[l])?(n[l]={},i[l]={},gv(n[l],t[l]),gv(i[l],t[l])):(n[l]=t[l],i[l]=t[l]):l.search(/on[A-Z]/)===0&&typeof t[l]=="function"?e?r[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:a[l]=t[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:a,events:r}}function e0t(t,e){let{el:n,nextEl:r,prevEl:i,paginationEl:a,scrollbarEl:o,swiper:s}=t;nce(e)&&r&&i&&(s.params.navigation.nextEl=r,s.originalParams.navigation.nextEl=r,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),rce(e)&&a&&(s.params.pagination.el=a,s.originalParams.pagination.el=a),ice(e)&&o&&(s.params.scrollbar.el=o,s.originalParams.scrollbar.el=o),s.init(n)}function t0t(t,e,n,r,i){const a=[];if(!e)return a;const o=l=>{a.indexOf(l)<0&&a.push(l)};if(n&&r){const l=r.map(i),c=n.map(i);l.join("")!==c.join("")&&o("children"),r.length!==n.length&&o("children")}return tce.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in t&&l in e)if(Gh(t[l])&&Gh(e[l])){const c=Object.keys(t[l]),u=Object.keys(e[l]);c.length!==u.length?o(l):(c.forEach(d=>{t[l][d]!==e[l][d]&&o(l)}),u.forEach(d=>{t[l][d]!==e[l][d]&&o(l)}))}else t[l]!==e[l]&&o(l)}),a}const n0t=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function CA(){return CA=Object.assign?Object.assign.bind():function(t){for(var e=1;e{oce(n)?e.push(n):n.props&&n.props.children&&sce(n.props.children).forEach(r=>e.push(r))}),e}function r0t(t){const e=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return xe.Children.toArray(t).forEach(r=>{if(oce(r))e.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=sce(r.props.children);i.length>0?i.forEach(a=>e.push(a)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:e,slots:n}}function i0t(t,e,n){if(!n)return null;const r=u=>{let d=u;return u<0?d=e.length+u:d>=e.length&&(d=d-e.length),d},i=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:a,to:o}=n,s=t.params.loop?-e.length:0,l=t.params.loop?e.length*2:e.length,c=[];for(let u=s;u=a&&u<=o&&c.push(e[r(u)]);return c.map((u,d)=>xe.cloneElement(u,{swiper:t,style:i,key:u.props.virtualIndex||u.key||`slide-${d}`}))}function w_(t,e){return typeof window>"u"?C.useEffect(t,e):C.useLayoutEffect(t,e)}const r7=C.createContext(null),a0t=C.createContext(null),lce=C.forwardRef(function(t,e){let{className:n,tag:r="div",wrapperTag:i="div",children:a,onSwiper:o,...s}=t===void 0?{}:t,l=!1;const[c,u]=C.useState("swiper"),[d,f]=C.useState(null),[p,h]=C.useState(!1),v=C.useRef(!1),b=C.useRef(null),g=C.useRef(null),y=C.useRef(null),w=C.useRef(null),x=C.useRef(null),S=C.useRef(null),T=C.useRef(null),I=C.useRef(null),{params:P,passedParams:M,rest:N,events:R}=Zvt(s),{slides:O,slots:D}=r0t(a),L=()=>{h(!p)};Object.assign(P.on,{_containerClasses(W,K){u(K)}});const k=()=>{Object.assign(P.on,R),l=!0;const W={...P};if(delete W.wrapperClass,g.current=new Xl(W),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=O;const K={cache:!1,slides:O,renderExternal:f,renderExternalUpdate:!1};gv(g.current.params.virtual,K),gv(g.current.originalParams.virtual,K)}};b.current||k(),g.current&&g.current.on("_beforeBreakpoint",L);const B=()=>{l||!R||!g.current||Object.keys(R).forEach(W=>{g.current.on(W,R[W])})},H=()=>{!R||!g.current||Object.keys(R).forEach(W=>{g.current.off(W,R[W])})};C.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",L)}),C.useEffect(()=>{!v.current&&g.current&&(g.current.emitSlidesClasses(),v.current=!0)}),w_(()=>{if(e&&(e.current=b.current),!!b.current)return g.current.destroyed&&k(),e0t({el:b.current,nextEl:x.current,prevEl:S.current,paginationEl:T.current,scrollbarEl:I.current,swiper:g.current},P),o&&!g.current.destroyed&&o(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),w_(()=>{B();const W=t0t(M,y.current,O,w.current,K=>K.key);return y.current=M,w.current=O,W.length&&g.current&&!g.current.destroyed&&Xvt({swiper:g.current,slides:O,passedParams:M,changedParams:W,nextEl:x.current,prevEl:S.current,scrollbarEl:I.current,paginationEl:T.current}),()=>{H()}}),w_(()=>{n0t(g.current)},[d]);function $(){return P.virtual?i0t(g.current,O,d):O.map((W,K)=>xe.cloneElement(W,{swiper:g.current,swiperSlideIndex:K}))}return xe.createElement(r,CA({ref:b,className:ace(`${c}${n?` ${n}`:""}`)},N),xe.createElement(a0t.Provider,{value:g.current},D["container-start"],xe.createElement(i,{className:Kvt(P.wrapperClass)},D["wrapper-start"],$(),D["wrapper-end"]),nce(P)&&xe.createElement(xe.Fragment,null,xe.createElement("div",{ref:S,className:"swiper-button-prev"}),xe.createElement("div",{ref:x,className:"swiper-button-next"})),ice(P)&&xe.createElement("div",{ref:I,className:"swiper-scrollbar"}),rce(P)&&xe.createElement("div",{ref:T,className:"swiper-pagination"}),D["container-end"]))});lce.displayName="Swiper";const cce=C.forwardRef(function(t,e){let{tag:n="div",children:r,className:i="",swiper:a,zoom:o,lazy:s,virtualIndex:l,swiperSlideIndex:c,...u}=t===void 0?{}:t;const d=C.useRef(null),[f,p]=C.useState("swiper-slide"),[h,v]=C.useState(!1);function b(x,S,T){S===d.current&&p(T)}w_(()=>{if(typeof c<"u"&&(d.current.swiperSlideIndex=c),e&&(e.current=d.current),!(!d.current||!a)){if(a.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return a.on("_slideClass",b),()=>{a&&a.off("_slideClass",b)}}}),w_(()=>{a&&d.current&&!a.destroyed&&p(a.getSlideClasses(d.current))},[a]);const g={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},y=()=>typeof r=="function"?r(g):r,w=()=>{v(!0)};return xe.createElement(n,CA({ref:d,className:ace(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:w},u),o&&xe.createElement(r7.Provider,{value:g},xe.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},y(),s&&!h&&xe.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&xe.createElement(r7.Provider,{value:g},y(),s&&!h&&xe.createElement("div",{className:"swiper-lazy-preloader"})))});cce.displayName="SwiperSlide";const o0t="#ffffff",s0t="#29a03b",l0t="#c2d93d",c0t="#808080",u0t="#D9D9D9",d0t="#ccc",f0t="rgba(242, 242, 242, 0.4588235294)",p0t="2rem",h0t="1.5rem",m0t="14px",g0t="65rem",v0t="_jaraMain_anmm0_19",y0t="_swiper_anmm0_31",b0t="_closeButton_anmm0_35",_0t="_dialog_anmm0_49",w0t="_swiperWrapper_anmm0_61",x0t="_image_anmm0_69",Wm={baseColor:o0t,primaryColor:s0t,secondColor:l0t,neutralColor:c0t,hatchingColor:u0t,borderColor:d0t,evevRowColor:f0t,largeFont:p0t,mediumFont:h0t,smallFont:m0t,pagePCMinWidth:g0t,jaraMain:v0t,swiper:y0t,closeButton:b0t,dialog:_0t,swiperWrapper:w0t,image:x0t},uce=t=>{const{imagePathList:e,open:n,handleClose:r,firstIndex:i}=t;return E("div",{children:E(Tw,{open:n,onClose:r,className:Wm.dialog,PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none",overflow:"hidden",justifyContent:"center"}},maxWidth:!1,fullWidth:!0,children:E("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"},children:re("div",{style:{position:"relative"},children:[E(ir,{className:Wm.closeButton,onClick:r,sx:{zIndex:10,color:"white"},children:E(op,{style:{transform:"scale(2)"}})}),E(lce,{style:{"--swiper-pagination-color":"white"},initialSlide:i,pagination:{clickable:!0},navigation:{prevEl:"#button_prev",nextEl:"#button_next"},modules:[Ugt,Bgt],className:Wm.swiper,wrapperClass:Wm.swiperWrapper,loop:!0,children:e&&e.map((a,o)=>E(cce,{className:Wm.swiperSlide,children:E("img",{className:Wm.image,src:a,alt:"car-image"})},`img-swiper-${o}`))}),E("div",{id:"button_prev",className:"swiper-button-prev",style:{color:"white"}}),E("div",{id:"button_next",className:"swiper-button-next",style:{color:"white"}})]})})})})},E0t="#ffffff",S0t="#29a03b",C0t="#c2d93d",T0t="#808080",A0t="#D9D9D9",I0t="#ccc",M0t="rgba(242, 242, 242, 0.4588235294)",D0t="2rem",P0t="1.5rem",R0t="14px",O0t="65rem",N0t="_jaraMain_1eezx_19",L0t="_topTwoImageGrid_1eezx_31",k0t="_OthermageGrid_1eezx_34",F0t="_OtherImageGrid_1eezx_40",$0t="_carImageGroup_1eezx_44",B0t="_carImage_1eezx_44",cS={baseColor:E0t,primaryColor:S0t,secondColor:C0t,neutralColor:T0t,hatchingColor:A0t,borderColor:I0t,evevRowColor:M0t,largeFont:D0t,mediumFont:P0t,smallFont:R0t,pagePCMinWidth:O0t,jaraMain:N0t,topTwoImageGrid:L0t,OthermageGrid:k0t,OtherImageGrid:F0t,carImageGroup:$0t,carImage:B0t},A1="ULCP01",dce="offer_broadcast",i7=t=>{const{imagePathList:e,inspectPathList:n}=t,[r,i]=C.useState(!1),[a,o]=C.useState(0),s=()=>{i(!1)},[l,c]=C.useState([]);C.useEffect(()=>{if(e!=null&&e.filePathList){const f=(e==null?void 0:e.filePathList).filter(p=>!p.includes(A1));c(f)}},[e==null?void 0:e.filePathList]);const u=()=>{var f,p;let d=[];return e!=null&&e.filePathList&&(d=(e==null?void 0:e.filePathList).filter(v=>!v.includes(A1))),(f=n==null?void 0:n.fileInfo)!=null&&f.pathJP&&d.push((p=n==null?void 0:n.fileInfo)==null?void 0:p.pathJP),d};return re("div",{children:[E(lt,{spacing:1,container:!0,className:cS.carImageGroup,children:l.map((d,f)=>E(lt,{xs:f<2?6:3,className:f<2?cS.topTwoImageGrid:cS.OtherImageGrid,children:E("img",{onClick:()=>{i(!0),o(f)},className:cS.carImage,src:d,alt:"car-image"})},`car-image-${f}`))}),(e==null?void 0:e.filePathList)&&E(uce,{firstIndex:a,imagePathList:u(),open:r,handleClose:s})]})},U0t="#ffffff",H0t="#29a03b",V0t="#c2d93d",z0t="#808080",j0t="#D9D9D9",G0t="#ccc",W0t="rgba(242, 242, 242, 0.4588235294)",q0t="2rem",Y0t="1.5rem",J0t="14px",Q0t="65rem",K0t="_jaraMain_mvyjx_19",X0t="_header_mvyjx_29",Z0t="_value_mvyjx_35",a7={baseColor:U0t,primaryColor:H0t,secondColor:V0t,neutralColor:z0t,hatchingColor:j0t,borderColor:G0t,evevRowColor:W0t,largeFont:q0t,mediumFont:Y0t,smallFont:J0t,pagePCMinWidth:Q0t,jaraMain:K0t,header:X0t,value:Z0t},eyt=t=>{const e=[{name:"車両所在地",value:t.venue},{name:"年式",value:t.yearEra===""?"":Number(t.registMonth)===0?`${t.yearEra}${t.yearJa}年`:`${t.yearEra}${t.yearJa}年 ${t.registMonth}月`},{name:"型式",value:t.model},{name:"排気/燃料",value:t.displacement},{name:"走行距離",value:t.mileage},{name:"車検",value:Y4(t.inspection,Number(t.registMonth))},{name:"ステータス",value:t.status},{name:"カラーNo",value:t.colorCode},{name:"色",value:t.color},{name:"シフト",value:t.shift},{name:"冷房",value:t.airCon},{name:"評価点",value:t.totalScore},{name:"外装評価",value:t.exteriorScore},{name:"内装評価",value:t.interiorScore},{name:"車歴",value:t.usedAs},{name:"定員",value:t.capacity},{name:"積載量",value:t.loadCapacity},{name:"預託金",value:t.recycleFee},{name:"諸元(長さ)",value:t.length},{name:"諸元(幅)",value:t.width},{name:"諸元(高さ)",value:t.height}];return t.chassis!==null&&e.push({name:"車台番号",value:t.chassis}),e},tyt=t=>{const{vItem:e}=t,n=eyt(e);return E("div",{children:E(lt,{container:!0,textAlign:"center",padding:1,border:1,margin:1,children:n.map((r,i)=>re(lt,{xs:4,children:[E("div",{className:a7.header,children:r.name}),E("div",{className:a7.value,children:r.value})]},`mobile-car-detail-${i}`))})})};var Q4={},nyt=hn;Object.defineProperty(Q4,"__esModule",{value:!0});var fce=Q4.default=void 0,ryt=nyt(bn()),o7=_n;fce=Q4.default=(0,ryt.default)([(0,o7.jsx)("path",{d:"M21.01 4C20.45 4 17.4 5.5 12 5.5c-5.31 0-8.49-1.49-9.01-1.49-.53 0-.99.44-.99 1.01V19c0 .57.46 1 .99 1 .57 0 3.55-1.5 9.01-1.5 5.42 0 8.44 1.5 9.01 1.5.53 0 .99-.43.99-1V5c0-.57-.46-1-.99-1M20 17.63c-2.01-.59-4.62-1.13-8-1.13-3.39 0-5.99.54-8 1.13V6.38c2.58.73 5.32 1.12 8 1.12 3.38 0 5.99-.54 8-1.13z"},"0"),(0,o7.jsx)("path",{d:"m9.17 10.99-3.69 4.42c2-.26 4.18-.41 6.52-.41 2.3 0 4.52.15 6.51.4L14 10l-2.83 3.39z"},"1")],"VrpanoOutlined");const iyt="#ffffff",ayt="#29a03b",oyt="#c2d93d",syt="#808080",lyt="#D9D9D9",cyt="#ccc",uyt="rgba(242, 242, 242, 0.4588235294)",dyt="2rem",fyt="1.5rem",pyt="14px",hyt="65rem",myt="_jaraMain_1x7cn_19",gyt="_button_1x7cn_31",vyt={baseColor:iyt,primaryColor:ayt,secondColor:oyt,neutralColor:syt,hatchingColor:lyt,borderColor:cyt,evevRowColor:uyt,largeFont:dyt,mediumFont:fyt,smallFont:pyt,pagePCMinWidth:hyt,jaraMain:myt,button:gyt},s7=({children:t,...e})=>E(ds,{startIcon:E(fce,{}),variant:"contained",className:vyt.button,...e,children:t}),yyt=async t=>(await Bn.post(hae,t,{timeout:65e3})).data,pce=`購入車両総額は消費税などの影響により落札した際の価格と異なることがあります。 正式な価格は落札後に自動で適用されます。`,byt="#ffffff",_yt="#29a03b",wyt="#c2d93d",xyt="#808080",Eyt="#D9D9D9",Syt="#ccc",Cyt="rgba(242, 242, 242, 0.4588235294)",Tyt="2rem",Ayt="1.5rem",Iyt="14px",Myt="65rem",Dyt="_jaraMain_1grpu_19",Pyt="_primaryButton_1grpu_31",Ryt="_failPurchasDialogText_1grpu_34",Oyt="_cardMain_1grpu_41",Nyt="_cardPriceText_1grpu_56",Lyt="_cardStatusGroup_1grpu_60",kyt="_bidInfoTable_1grpu_68",Fyt="_bidInfo_1grpu_68",$yt="_bidInfoHeader_1grpu_77",Byt="_purchasDialogText_1grpu_83",gi={baseColor:byt,primaryColor:_yt,secondColor:wyt,neutralColor:xyt,hatchingColor:Eyt,borderColor:Syt,evevRowColor:Cyt,largeFont:Tyt,mediumFont:Ayt,smallFont:Iyt,pagePCMinWidth:Myt,jaraMain:Dyt,primaryButton:Pyt,failPurchasDialogText:Ryt,cardMain:Oyt,cardPriceText:Nyt,cardStatusGroup:Lyt,bidInfoTable:kyt,bidInfo:Fyt,bidInfoHeader:$yt,purchasDialogText:Byt},Uyt=t=>{const{offerInfoList:e}=t;return re(lt,{container:!0,className:gi.bidInfoTable,alignItems:"center",children:[E(lt,{xs:3,className:gi.bidInfoHeader,children:"会社名"}),E(lt,{xs:9,className:gi.bidInfo,children:e==null?void 0:e.corpName}),E(lt,{xs:3,className:gi.bidInfoHeader,children:"ログインID"}),E(lt,{xs:9,className:gi.bidInfo,children:e==null?void 0:e.userId}),E(lt,{xs:3,className:gi.bidInfoHeader,children:"ステータス"}),E(lt,{xs:9,className:gi.bidInfo,children:e==null?void 0:e.status}),E(lt,{xs:3,className:gi.bidInfoHeader,children:"申し込み日時"}),E(lt,{xs:9,className:gi.bidInfo,children:(e==null?void 0:e.offeredDatetime)&&br(e==null?void 0:e.offeredDatetime,"YYYY年MM月DD日 hh時mm分")}),E(lt,{xs:3,className:gi.bidInfoHeader,children:"落札日時"}),E(lt,{xs:9,className:gi.bidInfo,children:(e==null?void 0:e.winBidDatetime)&&br(e==null?void 0:e.winBidDatetime,"YYYY年MM月DD日 hh時mm分")}),E(lt,{xs:3,className:gi.bidInfoHeader,children:"引取依頼書"}),E(lt,{xs:9,className:gi.bidInfo,children:(e==null?void 0:e.downloadDatetime)===void 0?"":(e==null?void 0:e.downloadDatetime)===null?"未DL":"DL済み"}),E(lt,{xs:3,className:gi.bidInfoHeader,children:"搬出"}),E(lt,{xs:9,className:gi.bidInfo,children:(e==null?void 0:e.carryOutDatetime)===void 0?"":(e==null?void 0:e.carryOutDatetime)===null?"未搬出":"搬出済み"})]})},Hyt=t=>{const{vItem:e,offerInfoList:n,postCode:r,refetchVehicle:i,refetchOfferInfo:a}=t,[o,s]=C.useState(!1),[l,c]=C.useState(!1),[u,d]=C.useState(!1),f=()=>{s(!0)},p=()=>{s(!1)},h=()=>{c(!0)},v=()=>{c(!1)},b=()=>{d(!0);const M={site:2,lotNumber:r,version:e.vehicleVersion,latestUpdate:String(e.sheetLatestUpdate).replace("T"," ").replaceAll("-","/"),price:e.originalPrice};yyt(M).then(N=>{if(d(!1),p(),N.result.code==="COME0001"){Ut(`E-${N.result.code}${$t.bid.COME0001}`,{variant:"error",autoHideDuration:Kt.error});return}switch(N.result.resultCode){case 0:case 10:Ut($t.bid[0],{variant:"success",autoHideDuration:Kt.success}),P(r,N.result.resultCode),i(),a();break;case 53:Ut($t.bid[53],{variant:"warning",autoHideDuration:Kt.warning});break;case 55:Ut($t.bid[55],{variant:"warning",autoHideDuration:Kt.warning}),i(),a();break;case 57:case 58:case 59:Ut(`E-${N.result.resultCode}${$t.bid[57]}`,{variant:"error",autoHideDuration:Kt.error});break;case 1:case 2:case 3:case 4:case 11:case 12:case 51:case 52:case 54:case 99:Ut(`E-${N.result.resultCode}${$t.bid[1]}`,{variant:"error",autoHideDuration:Kt.error});break;case 56:h();break;default:Ut(`E-${N.result.resultCode}${$t.bid.COME0001}`,{variant:"error",autoHideDuration:Kt.error});break}}).catch(()=>{d(!1)})},g=()=>E("div",{children:"掲載開始前"}),y=()=>E("div",{children:"他社商談中"}),w=()=>E("div",{children:"落札"}),x=()=>E(DD,{className:gi.primaryButton,onClick:f,children:"購入申し込み"}),S=()=>{switch(e.status){case"掲載予定":return g();case"掲載中":return x();case"他社商談中":return y();case"落札":return w();default:return E("div",{children:e.status})}},T=()=>re(oi,{children:[E(sNe,{title:E("div",{style:{fontWeight:600},children:e.status==="掲載予定"?"掲載開始日時:"+br(e.startTime,"YYYY年MM月DD日 hh時mm分"):"掲載終了日時:"+br(e.endTime,"YYYY年MM月DD日 hh時mm分")})}),E(Rh,{style:{borderColor:"unset"}}),re(mte,{sx:{"&.MuiCardContent-root":{padding:"10px",paddingBottom:"24px"}},children:[re("div",{className:gi.cardPriceText,children:["購入車両総額:",re("span",{style:{fontWeight:600},children:[fc(e.price.toString()),"円"]})]}),E("br",{}),E("div",{className:gi.cardStatusGroup,children:E(S,{})})]})]}),I=()=>(e.status==="申込中"||e.status==="落札")&&(n==null?void 0:n.status)!==null?E(Uyt,{offerInfoList:n}):E(T,{}),P=(M,N)=>{new BroadcastChannel(dce).postMessage({postCode:M,result:N})};return re("div",{children:[E(Cw,{variant:"outlined",className:gi.cardMain,children:E(I,{})}),E(fu,{style:{backgroundColor:"transparent !important"},open:o,handlePurchase:b,handleClose:p,isSaving:u,transparent:!0,border:!0,children:re("div",{className:gi.purchasDialogText,children:["購入申込みを実行してよろしいですか?",E("br",{}),E("br",{}),E("div",{style:{color:"red",whiteSpace:"pre-wrap"},children:pce})]})}),E(fu,{open:l,KanjiCloseButton:!0,handleClose:v,border:!0,children:re("div",{className:gi.failPurchasDialogText,children:["この車両は申込制限に達しているため",E("br",{}),"購入できませんでした"]})})]})},Vyt="#ffffff",zyt="#29a03b",jyt="#c2d93d",Gyt="#808080",Wyt="#D9D9D9",qyt="#ccc",Yyt="rgba(242, 242, 242, 0.4588235294)",Jyt="2rem",Qyt="1.5rem",Kyt="14px",Xyt="65rem",Zyt="_jaraMain_1x3gh_19",ebt="_statusCard_1x3gh_31",tbt="_panoramaButton_1x3gh_36",nbt="_container_1x3gh_40",rbt="_carName_1x3gh_43",ibt="_buyDetailMain_1x3gh_49",abt="_buyDetailWidthControl_1x3gh_53",obt="_titleAndCarNameGroup_1x3gh_60",sbt="_pcDetailTable_1x3gh_68",lbt="_table_1x3gh_81",cbt="_item_1x3gh_97",ubt="_inspectImage_1x3gh_102",so={baseColor:Vyt,primaryColor:zyt,secondColor:jyt,neutralColor:Gyt,hatchingColor:Wyt,borderColor:qyt,evevRowColor:Yyt,largeFont:Jyt,mediumFont:Qyt,smallFont:Kyt,pagePCMinWidth:Xyt,jaraMain:Zyt,statusCard:ebt,panoramaButton:tbt,container:nbt,carName:rbt,buyDetailMain:ibt,buyDetailWidthControl:abt,titleAndCarNameGroup:obt,pcDetailTable:sbt,table:lbt,item:cbt,inspectImage:ubt},dbt=(t,e)=>t.some(n=>n.includes(e)),l3=()=>{var M,N,R,O,D;const{isMobile:t}=ui(),[e]=Wi(),n=Number(e.get("postCode")),[r,i]=C.useState(void 0),{refetch:a}=fr(Ei.LIST_BUY_SINGLE_INFO,()=>Omt({postCode:n}),{refetchOnWindowFocus:!1,onSuccess:L=>{i(L.vehicleInfo)}}),[o,s]=C.useState(void 0),l={lotNumber:r==null?void 0:r.postCode},{refetch:c}=fr(Ei.LIST_OFFER_INFO,()=>Rmt(l),{enabled:r!==void 0,refetchOnWindowFocus:!1,onSuccess:L=>{s(L)}}),[u,d]=C.useState(void 0),f={fileInfo:{aaType:4,controlNumber:r!=null&&r.postCode?r==null?void 0:r.postCode:-1}};Pmt(f,{enabled:r!==void 0,onSuccess:async L=>{d(L)}});const[p,h]=C.useState(void 0),[v,b]=C.useState(!1),g={fileInfo:{aaType:4,controlNumber:r?r.postCode:-1}};Hle(g,{enabled:r!==void 0,onSuccess:async L=>{h(L),L!=null&&L.filePathList&&b(dbt(L==null?void 0:L.filePathList,A1))}});const y=()=>{window.open(`${Kte}?aaType=${4}&controlNumber=${r==null?void 0:r.postCode}`,"_blank","toolbar=no, menubar=no, location=no, status=no,noreferrer")},[w,x]=C.useState(!1),[S,T]=C.useState(0),I=()=>{x(!1)},P=()=>{var k,B;let L=[];return p!=null&&p.filePathList&&(L=(p==null?void 0:p.filePathList).filter($=>!$.includes(A1))),(k=u==null?void 0:u.fileInfo)!=null&&k.pathJP&&L.push((B=u==null?void 0:u.fileInfo)==null?void 0:B.pathJP),L};return E(xe.Fragment,{children:E("div",{className:so.buyDetailMain,children:re("div",{className:so.buyDetailWidthControl,children:[r&&re("div",{children:[re("div",{className:so.titleAndCarNameGroup,children:[E("div",{children:!t&&E(jh,{title:"車両詳細"})}),E("div",{className:so.carName,children:r.name})]}),t?E(tyt,{vItem:r}):E("div",{className:so.pcDetailTable,children:re("table",{className:so.table,children:[E(zle,{isDetailPage:!0,isOfferedDetail:r.chassis!==null}),E("tbody",{children:E(Wle,{vItem:r,vIndex:0,isDetailPage:!0})})]})}),re(lt,{container:!0,className:so.container,padding:t?1:"24px 0px",textAlign:"center",spacing:1,children:[re(lt,{md:6,className:so.item,children:[typeof((M=u==null?void 0:u.fileInfo)==null?void 0:M.pathJP)===void 0?"":((N=u==null?void 0:u.fileInfo)==null?void 0:N.pathJP)===null?E(Boe,{}):E("div",{className:so.inspectImage,children:E("img",{onClick:()=>{x(!0),T(P().length-1)},style:{width:"100%",height:"100%",objectFit:"cover"},src:(R=u==null?void 0:u.fileInfo)==null?void 0:R.pathJP,alt:((O=u==null?void 0:u.fileInfo)==null?void 0:O.pathJP)===void 0?"":"inspect-image"})}),!t&&v&&E("div",{className:so.panoramaButton,children:E(s7,{onClick:y,children:"パノラマ内装を見る"})})]}),re(lt,{md:6,className:so.item,children:[r.status!==null&&E("div",{className:so.statusCard,children:E(Hyt,{vItem:r,offerInfoList:o,postCode:n,refetchVehicle:a,refetchOfferInfo:c})}),!t&&E(i7,{imagePathList:p,inspectPathList:u})]}),E(lt,{md:6,className:so.item,children:t&&v&&E("div",{className:so.panoramaButton,children:E(s7,{onClick:y,children:"パノラマ内装を見る"})})}),E(lt,{md:6,className:so.item,children:t&&E(i7,{imagePathList:p,inspectPathList:u})})]})]}),((D=u==null?void 0:u.fileInfo)==null?void 0:D.pathJP)&&E(uce,{firstIndex:S,imagePathList:P(),open:w,handleClose:I})]})})})},fbt=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),hce=t=>Array.isArray(t)&&t.every(e=>typeof e=="object"&&!(e instanceof Array)),pbt=t=>Array.isArray(t)&&t.every(e=>Array.isArray(e)),hbt=t=>Array.from(t.map(e=>Object.keys(e)).reduce((e,n)=>new Set([...e,...n]),[])),mbt=(t,e)=>{e=e||hbt(t);let n=e,r=e;hce(e)&&(n=e.map(a=>a.label),r=e.map(a=>a.key));const i=t.map(a=>r.map(o=>gbt(o,a)));return[n,...i]},gbt=(t,e)=>{const n=t.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,a,o){const s=r[i];if(s==null)o.splice(1);else return s},e);return n===void 0?t in e?e[t]:"":n},vbt=t=>typeof t>"u"||t===null?"":t,mce=(t,e=",",n='"')=>t.filter(r=>r).map(r=>r.map(i=>vbt(i)).map(i=>`${n}${i}${n}`).join(e)).join(` `),ybt=(t,e,n,r)=>mce(e?[e,...t]:t,n,r),bbt=(t,e,n,r)=>mce(mbt(t,e),n,r),_bt=(t,e,n,r)=>e?`${e.join(n)} ${t}`:t.replace(/"/g,'""'),gce=(t,e,n,r)=>{if(hce(t))return bbt(t,e,n,r);if(pbt(t))return ybt(t,e,n,r);if(typeof t=="string")return _bt(t,e,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},vce=(t,e,n,r,i)=>{const a=gce(t,n,r,i),o=fbt()?"application/csv":"text/csv",s=new Blob([e?"\uFEFF":"",a],{type:o}),l=`data:${o};charset=utf-8,${e?"\uFEFF":""}${a}`,c=window.URL||window.webkitURL;return typeof c.createObjectURL>"u"?l:c.createObjectURL(s)},yce={data:Ie.oneOfType([Ie.string,Ie.array,Ie.func]).isRequired,headers:Ie.array,target:Ie.string,separator:Ie.string,filename:Ie.string,uFEFF:Ie.bool,onClick:Ie.func,asyncOnClick:Ie.bool,enclosingCharacter:Ie.string},bce={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},wbt={target:"_blank"};class l7 extends xe.Component{constructor(e){super(e),this.state={}}buildURI(){return vce(...arguments)}componentDidMount(){const{data:e,headers:n,separator:r,enclosingCharacter:i,uFEFF:a,target:o,specs:s,replace:l}=this.props;this.state.page=window.open(this.buildURI(e,a,n,r,i),o,s,l)}getWindow(){return this.state.page}render(){return null}}yy(l7,"defaultProps",Object.assign(bce,wbt)),yy(l7,"propTypes",yce);var XS;let xbt=(XS=class extends xe.Component{constructor(e){super(e),this.buildURI=this.buildURI.bind(this)}buildURI(){return vce(...arguments)}handleLegacy(e,n=!1){if(window.navigator.msSaveOrOpenBlob){e.preventDefault();const{data:r,headers:i,separator:a,filename:o,enclosingCharacter:s,uFEFF:l}=this.props,c=n&&typeof r=="function"?r():r;let u=new Blob([l?"\uFEFF":"",gce(c,i,a,s)]);return window.navigator.msSaveBlob(u,o),!1}}handleAsyncClick(e){const n=r=>{if(r===!1){e.preventDefault();return}this.handleLegacy(e,!0)};this.props.onClick(e,n)}handleSyncClick(e){if(this.props.onClick(e)===!1){e.preventDefault();return}this.handleLegacy(e)}handleClick(){return e=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(e):this.handleSyncClick(e);this.handleLegacy(e)}}render(){const{data:e,headers:n,separator:r,filename:i,uFEFF:a,children:o,onClick:s,asyncOnClick:l,enclosingCharacter:c,...u}=this.props,f=typeof window>"u"?"":this.buildURI(e,a,n,r,c);return E("a",{download:i,...u,ref:p=>this.link=p,target:"_self",href:f,onClick:this.handleClick(),children:o})}},yy(XS,"defaultProps",bce),yy(XS,"propTypes",yce),XS);const Ebt=xbt,Sbt="#ffffff",Cbt="#29a03b",Tbt="#c2d93d",Abt="#808080",Ibt="#D9D9D9",Mbt="#ccc",Dbt="rgba(242, 242, 242, 0.4588235294)",Pbt="2rem",Rbt="1.5rem",Obt="14px",Nbt="65rem",Lbt="_jaraMain_1yq2y_19",kbt="_topArea_1yq2y_31",Fbt="_datePickerGroup_1yq2y_34",$bt="_topButtonGroup_1yq2y_43",Bbt="_userBuyPage_1yq2y_49",Ubt="_datePicker_1yq2y_34",Hbt="_viewArea_1yq2y_60",Vbt="_tableArea_1yq2y_78",Yu={baseColor:Sbt,primaryColor:Cbt,secondColor:Tbt,neutralColor:Abt,hatchingColor:Ibt,borderColor:Mbt,evevRowColor:Dbt,largeFont:Pbt,mediumFont:Rbt,smallFont:Obt,pagePCMinWidth:Nbt,jaraMain:Lbt,topArea:kbt,datePickerGroup:Fbt,topButtonGroup:$bt,userBuyPage:Bbt,datePicker:Ubt,viewArea:Hbt,tableArea:Vbt},zbt=async t=>(await Bn.post(mae,t)).data,jbt=async t=>(await Bn.post(yae,t)).data,Gbt=async t=>(await Bn.post(gae,t)).data,c7=[{name:"エンドユーザID",key:"userId"},{name:"会社名(顧客名)",key:"corpName"},{name:"会場コード",key:"venueCode"},{name:"入庫ヤードコード",key:"yardCode"},{name:"掲載番号",key:"postCode"},{name:"メーカーコード",key:"maker"},{name:"年式(元号)+年式(和暦)",key:"year"},{name:"車名",key:"carName"},{name:"グレード",key:"grade"},{name:"車台番号",key:"chassis"},{name:"排気量",key:"displacement"},{name:"登録番号(陸事・分類・事業用区分・一覧指定番号)",key:"license"},{name:"実走行距離",key:"mileage"},{name:"TC-webΣ装備10(保証書)",key:"equip10Warranty"},{name:"TC-webΣ装備11(取説)",key:"equip11Manual"},{name:"TC-webΣ福祉車両区分",key:"welfareType"},{name:"車両課税区分",key:"taxType"},{name:"掲載終了日時",key:"endDateTime"},{name:"掲載価格(千円)",key:"price"},{name:"購入車両総額(円)",key:"totalPrice"},{name:"申込状態",key:"status"},{name:"申込日時",key:"offeredDateTime"},{name:"落札日時",key:"winBidDateTime"},{name:"落札価格",key:"winBidPrice"},{name:"自税区分",key:"carTaxType"},{name:"自動車税額",key:"carTax"},{name:"預託金",key:"recycleFee"},{name:"落札手数料",key:"winBidFee"},{name:"口銭",key:"salesFee"},{name:"消費税率(落札手数料/口銭)",key:"tax"},{name:"引取依頼書DL日",key:"downloadDateTime"},{name:"搬出完了日",key:"carryOutDateTime"}],Wbt=()=>{const{offerEditFilter:t,setOfferEditFilter:e,initialOfferSearchData:n}=ui(),[r,i]=Wi(),a=Ae=>{const he=encodeURIComponent(JSON.stringify(Ae));r.set("searchOption",he),i(r)};C.useEffect(()=>{const Ae=r.get("searchOption");let he=Xn.cloneDeep(t);Ae?(he=JSON.parse(decodeURIComponent(Ae)),e(he)):e(n)},[window.location.href]),C.useEffect(()=>{t&&o(t)},[t]);const o=Ae=>{var he,Ye,Ke,Je,nt,je,Ue,at,vt,At,Xt,on;(he=Ae.searchOption)!=null&&he.startDate&&y((Ye=Ae.searchOption)==null?void 0:Ye.startDate),(Ke=Ae.searchOption)!=null&&Ke.endDate&&S((Je=Ae.searchOption)==null?void 0:Je.endDate),(nt=Ae.searchOption)!=null&&nt.userId&&I((je=Ae.searchOption)==null?void 0:je.userId),(Ue=Ae.searchOption)!=null&&Ue.notification&&K((at=Ae.searchOption)==null?void 0:at.notification),(vt=Ae.searchOption)!=null&&vt.status&&H((At=Ae.searchOption)==null?void 0:At.status),(Xt=Ae.searchOption)!=null&&Xt.carry&&q((on=Ae.searchOption)==null?void 0:on.carry)},[s,l]=C.useState(!1),[c,u]=C.useState(void 0),d=window.location.href,{refetch:f,isFetching:p}=fr(Ei.ADMIN_LIST_OFFER_VEHICLE,()=>t&&zbt(t),{enabled:d.includes(ea)&&t!==null,refetchOnWindowFocus:!1,onSuccess:Ae=>{switch(Ae==null?void 0:Ae.result.code){case 0:u(Ae);break;case 11:break;case 12:Ut($t.login[12],{variant:"warning",autoHideDuration:null});break;case 82:Ut($t.offer[82],{variant:"error",autoHideDuration:Kt.error});break;case 90:Ut($t.offer[90],{variant:"error",autoHideDuration:Kt.error});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}}),{refetch:h,isFetching:v}=fr(Ei.USER_LIST_OFFER_VEHICLE,()=>t&&Gbt(t),{enabled:d.includes(bs)&&t!==null,refetchOnWindowFocus:!1,onSuccess:Ae=>{switch(Ae==null?void 0:Ae.result.code){case 0:u(Ae);break;case 11:break;case 12:Ut($t.login[12],{variant:"warning",autoHideDuration:null});break;case 82:Ut($t.offer[82],{variant:"error",autoHideDuration:Kt.error});break;case 90:Ut($t.offer[90],{variant:"error",autoHideDuration:Kt.error});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}});C.useEffect(()=>{l(!!(v||p))},[v,p]),C.useEffect(()=>{t&&(d.includes(ea)?f():h())},[t]);const[b,g]=C.useState(null),y=Ae=>{Ae&&(Ae=u_(Ae,"start")),g(Ae)},[w,x]=C.useState(null),S=Ae=>{Ae&&(Ae=u_(Ae,"end")),x(Ae)},[T,I]=C.useState([]),[P,M]=C.useState([]),[N,R]=C.useState([]),[O,D]=C.useState([]),L=Ae=>{const he=Ae.target.value;M(typeof he=="string"?he.split(","):he)};C.useEffect(()=>{const Ae=[];for(const he of P||[]){const Ye=N==null?void 0:N.filter(Ke=>Ke.userName===he);Ye&&(Ye==null?void 0:Ye.length)!=0&&Ae.push(Ye[0].userId)}I(Ae||[])},[P]);const k=Ae=>{R(Ae.user),D(Ae.user.map(he=>he.userName))},[B,H]=C.useState(null),$=Ae=>{const{target:{value:he}}=Ae;H(he===null||typeof he=="string"?null:he)},[W,K]=C.useState([]),le=Ae=>{const{target:{value:he}}=Ae;K(he===null||typeof he=="string"?null:he)},[U,q]=C.useState([]),z=Ae=>{const{target:{value:he}}=Ae;q(he===null||typeof he=="string"?null:he)},[ne,G]=C.useState(null),[te,Y]=C.useState(null),[fe,pe]=C.useState([]),[de,se]=C.useState([]),[me,Z]=C.useState([]),[_e,Me]=C.useState(null),[Ne,ge]=C.useState([]),[ee,Q]=C.useState([]),V=()=>{G(b),Y(w),pe(T),se(P),Z(N),Me(B),ge(W),Q(U)},j=()=>{y(ne),S(te),I(fe),M(de),R(me),H(_e),K(Ne),q(ee)},ye=()=>{y(b),S(w),I([]),M([]),R([]),H([]),K([]),q([])},ae=C.useRef(null),[Ee,Pe]=C.useState([]);C.useEffect(()=>{var Ae;Ee.length>=2&&((Ae=ae==null?void 0:ae.current)==null||Ae.link.click())},[Ee]);const We=Ae=>{const he=[],Ye=[];c7.map(Ke=>{Ye.push(Ke.name)}),he.push(Ye),Ae.map(Ke=>{const Je=[];c7.map(nt=>{Je.push(Ke[nt.key])}),he.push(Je)}),Pe(he)};return{offerEditFilter:t,updateVehicleSearchParams:a,isLoading:s,responseVehicleData:c,handleStartDateChange:y,handleEndDateChange:S,startDate:b,endDate:w,userIdData:T,handleUserIdChange:L,statusData:B,handleStatusChange:$,notificationData:W,handleNotificationChange:le,carryData:U,handleCarryChange:z,csvData:Ee,setCsvData:Pe,outTradeListCSV:async()=>{var he,Ye,Ke,Je,nt,je,Ue,at,vt,At,Xt;Pe([]);const Ae={startDate:br(((he=t==null?void 0:t.searchOption)==null?void 0:he.startDate)??new Date,"YYYY/MM/DD hh:mm:ss"),endDate:br(((Ye=t==null?void 0:t.searchOption)==null?void 0:Ye.endDate)??aB(new Date,-7),"YYYY/MM/DD hh:mm:ss"),userId:((Ke=t==null?void 0:t.searchOption)==null?void 0:Ke.userId)||[],status:((nt=(Je=t==null?void 0:t.searchOption)==null?void 0:Je.status)==null?void 0:nt.map(on=>on+3))||[],notificationList:((Ue=(je=t==null?void 0:t.searchOption)==null?void 0:je.notification)==null?void 0:Ue.length)==1?((at=t.searchOption)==null?void 0:at.notification[0])+1:1,carry:((At=(vt=t==null?void 0:t.searchOption)==null?void 0:vt.carry)==null?void 0:At.length)==1?((Xt=t.searchOption)==null?void 0:Xt.carry[0])+1:1};await jbt(Ae).then(on=>{switch(l(!1),on.result.code){case 0:We(on.tradeList);break}})},corpInfoData:N,setCorpInfoData:R,corpNameData:O,setCorpNameData:D,selectCorpData:P,setCorpResponseData:k,setBeforeFilterData:V,cancelFilterData:j,clearFilterData:ye,csvLinkRef:ae,userRefetch:h,adminRefetch:f}};function qbt(t,e){ht(2,arguments);var n=en(e);return gD(t,n*1e3)}function x_(t,e){ht(2,arguments);var n=bt(t),r=bt(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Ybt(t,e){ht(2,arguments);var n=bt(t),r=bt(e),i=x_(n,r),a=Math.abs(C1(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=x_(n,r)===-i,s=i*(a-Number(o));return s===0?0:s}function Jbt(t){ht(1,arguments);var e=bt(t);return a0(e).getTime()===pA(e).getTime()}function _ce(t,e){ht(2,arguments);var n=bt(t),r=bt(e),i=x_(n,r),a=Math.abs(S1(n,r)),o;if(a<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*a);var s=x_(n,r)===-i;Jbt(bt(t))&&a===1&&x_(t,r)===1&&(s=!1),o=i*(a-Number(s))}return o===0?0:o}var u7={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Qbt="trunc";function ix(t){return t?u7[t]:u7[Qbt]}function Kbt(t,e,n){ht(2,arguments);var r=_ce(t,e)/3;return ix(n==null?void 0:n.roundingMethod)(r)}function d7(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function wce(t,e){ht(2,arguments);var n=bt(t),r=bt(e),i=d7(n,r),a=Math.abs(E1(n,r));n.setDate(n.getDate()-i*a);var o=Number(d7(n,r)===-i),s=i*(a-o);return s===0?0:s}function Xbt(t,e,n){ht(2,arguments);var r=wce(t,e)/7;return ix(n==null?void 0:n.roundingMethod)(r)}function LD(t,e){return ht(2,arguments),bt(t).getTime()-bt(e).getTime()}function Zbt(t,e,n){ht(2,arguments);var r=LD(t,e)/bD;return ix(n==null?void 0:n.roundingMethod)(r)}function e_t(t,e,n){ht(2,arguments);var r=LD(t,e)/yD;return ix(n==null?void 0:n.roundingMethod)(r)}function t_t(t,e,n){ht(2,arguments);var r=LD(t,e)/1e3;return ix(n==null?void 0:n.roundingMethod)(r)}function n_t(t,e){var n;ht(1,arguments);var r=t||{},i=bt(r.start),a=bt(r.end),o=a.getTime();if(!(i.getTime()<=o))throw new RangeError("Invalid interval");var s=[],l=i;l.setHours(0,0,0,0);var c=Number((n=e==null?void 0:e.step)!==null&&n!==void 0?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=o;)s.push(bt(l)),l.setDate(l.getDate()+c),l.setHours(0,0,0,0);return s}function r_t(t){ht(1,arguments);var e=bt(t),n=e.getMilliseconds();return n}function i_t(t,e){var n,r,i,a,o,s,l,c;ht(1,arguments);var u=bt(t),d=u.getFullYear(),f=gu(),p=en((n=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,p),h.setHours(0,0,0,0);var v=od(h,e),b=new Date(0);b.setFullYear(d,0,p),b.setHours(0,0,0,0);var g=od(b,e);return u.getTime()>=v.getTime()?d+1:u.getTime()>=g.getTime()?d:d-1}function a_t(t,e){var n,r,i,a,o,s,l,c;ht(1,arguments);var u=gu(),d=en((n=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=i_t(t,e),p=new Date(0);p.setFullYear(f,0,d),p.setHours(0,0,0,0);var h=od(p,e);return h}var o_t=6048e5;function s_t(t,e){ht(1,arguments);var n=bt(t),r=od(n,e).getTime()-a_t(n,e).getTime();return Math.round(r/o_t)+1}function f7(t){ht(1,arguments);var e=bt(t);return e.setMinutes(0,0,0),e}function l_t(t,e){ht(2,arguments);var n=f7(t),r=f7(e);return n.getTime()===r.getTime()}function c_t(t,e){ht(2,arguments);var n=bt(t),r=en(e);return n.setDate(r),n}function u_t(t,e){ht(2,arguments);var n=bt(t),r=en(e);return n.setMilliseconds(r),n}function d_t(t,e){var n,r;ht(1,arguments);var i=bt(t);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var a=String((n=e==null?void 0:e.format)!==null&&n!==void 0?n:"extended"),o=String((r=e==null?void 0:e.representation)!==null&&r!==void 0?r:"complete");if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",c=a==="extended"?"-":"",u=a==="extended"?":":"";if(o!=="time"){var d=En(i.getDate(),2),f=En(i.getMonth()+1,2),p=En(i.getFullYear(),4);s="".concat(p).concat(c).concat(f).concat(c).concat(d)}if(o!=="date"){var h=i.getTimezoneOffset();if(h!==0){var v=Math.abs(h),b=En(Math.floor(v/60),2),g=En(v%60,2),y=h<0?"+":"-";l="".concat(y).concat(b,":").concat(g)}else l="Z";var w=En(i.getHours(),2),x=En(i.getMinutes(),2),S=En(i.getSeconds(),2),T=s===""?"":"T",I=[w,x,S].join(u);s="".concat(s).concat(T).concat(I).concat(l)}return s}var TA={},f_t={get exports(){return TA},set exports(t){TA=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(l,c){switch(l){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(l,c){switch(l){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},i=function(l,c){var u=l.match(/(P+)(p+)?/)||[],d=u[1],f=u[2];if(!f)return n(l,c);var p;switch(d){case"P":p=c.dateTime({width:"short"});break;case"PP":p=c.dateTime({width:"medium"});break;case"PPP":p=c.dateTime({width:"long"});break;case"PPPP":default:p=c.dateTime({width:"full"});break}return p.replace("{{date}}",n(d,c)).replace("{{time}}",r(f,c))},a={p:r,P:i},o=a;e.default=o,t.exports=e.default})(f_t,TA);const p_t=q3(TA);function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;etypeof a>"u"?new Date:a===null?null:new Date(a),this.dateWithTimezone=a=>this.date(a),this.getTimezone=()=>"default",this.setTimezone=a=>a,this.toJsDate=a=>a,this.getCurrentLocaleCode=()=>{var a;return((a=this.locale)==null?void 0:a.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time({width:"short"})):!0,this.expandFormat=a=>{const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return a.match(o).map(s=>{const l=s[0];if(l==="p"||l==="P"){const c=this.longFormatters[l];return c(s,this.locale.formatLong)}return s}).join("")},this.getFormatHelperText=a=>this.expandFormat(a).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.formatNumber=a=>a,this.getMeridiemText=a=>a==="am"?"AM":"PM";const{locale:n,formats:r,longFormatters:i}=e;this.locale=n,this.formats=ze({},m_t,r),this.longFormatters=i}}class xce extends g_t{constructor({locale:e,formats:n}={}){if(typeof ad!="function")throw new Error(["MUI: The `date-fns` package v3.x is not compatible with this adapter.","Please, install v2.x of the package or use the `AdapterDateFnsV3` instead."].join(` `));super({locale:e??e4,formats:n,longFormatters:p_t}),this.parseISO=r=>Rse(r),this.toISO=r=>d_t(r,{format:"extended"}),this.parse=(r,i)=>r===""?null:r4(r,i,new Date,{locale:this.locale}),this.isValid=r=>XU(this.date(r)),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>_1(r,i,{locale:this.locale}),this.getDiff=(r,i,a)=>{switch(a){case"years":return Ybt(r,this.date(i));case"quarters":return Kbt(r,this.date(i));case"months":return _ce(r,this.date(i));case"weeks":return Xbt(r,this.date(i));case"days":return wce(r,this.date(i));case"hours":return Zbt(r,this.date(i));case"minutes":return e_t(r,this.date(i));case"seconds":return t_t(r,this.date(i));default:return LD(r,this.date(i))}},this.isEqual=(r,i)=>r===null&&i===null?!0:xse(r,i),this.isSameYear=(r,i)=>Cse(r,i),this.isSameMonth=(r,i)=>Sse(r,i),this.isSameDay=(r,i)=>Ese(r,i),this.isSameHour=(r,i)=>l_t(r,i),this.isAfter=(r,i)=>dc(r,i),this.isAfterYear=(r,i)=>dc(r,LC(i)),this.isAfterDay=(r,i)=>dc(r,a0(i)),this.isBefore=(r,i)=>Oo(r,i),this.isBeforeYear=(r,i)=>Oo(r,jg(i)),this.isBeforeDay=(r,i)=>Oo(r,vl(i)),this.isWithinRange=(r,[i,a])=>o0(r,{start:i,end:a}),this.startOfYear=r=>jg(r),this.startOfMonth=r=>fA(r),this.startOfWeek=r=>od(r,{locale:this.locale}),this.startOfDay=r=>vl(r),this.endOfYear=r=>LC(r),this.endOfMonth=r=>pA(r),this.endOfWeek=r=>sN(r,{locale:this.locale}),this.endOfDay=r=>a0(r),this.addYears=(r,i)=>Xf(r,i),this.addMonths=(r,i)=>jo(r,i),this.addWeeks=(r,i)=>vD(r,i),this.addDays=(r,i)=>ad(r,i),this.addHours=(r,i)=>yse(r,i),this.addMinutes=(r,i)=>uA(r,i),this.addSeconds=(r,i)=>qbt(r,i),this.getYear=r=>Sn(r),this.getMonth=r=>La(r),this.getDate=r=>qk(r),this.getHours=r=>ko(r),this.getMinutes=r=>Lo(r),this.getSeconds=r=>NC(r),this.getMilliseconds=r=>r_t(r),this.setYear=(r,i)=>x1(r,i),this.setMonth=(r,i)=>ss(r,i),this.setDate=(r,i)=>c_t(r,i),this.setHours=(r,i)=>hv(r,i),this.setMinutes=(r,i)=>pv(r,i),this.setSeconds=(r,i)=>_se(r,i),this.setMilliseconds=(r,i)=>u_t(r,i),this.getDaysInMonth=r=>wse(r),this.getNextMonth=r=>jo(r,1),this.getPreviousMonth=r=>jo(r,-1),this.getMonthArray=r=>{const a=[jg(r)];for(;a.length<12;){const o=a[a.length-1];a.push(this.getNextMonth(o))}return a},this.mergeDateAndTime=(r,i)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const r=new Date;return n_t({start:od(r,{locale:this.locale}),end:sN(r,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=r=>{const i=od(fA(r),{locale:this.locale}),a=sN(pA(r),{locale:this.locale});let o=0,s=i;const l=[];for(;Oo(s,a);){const c=Math.floor(o/7);l[c]=l[c]||[],l[c].push(s),s=ad(s,1),o+=1}return l},this.getWeekNumber=r=>s_t(r,{locale:this.locale}),this.getYearRange=(r,i)=>{const a=jg(r),o=LC(i),s=[];let l=a;for(;Oo(l,o);)s.push(l),l=Xf(l,1);return s}}}function zn(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}const cb=(t,e)=>t.length!==e.length?!1:e.every(n=>t.includes(n)),v_t=({openTo:t,defaultOpenTo:e,views:n,defaultViews:r})=>{const i=n??r;let a;if(t!=null)a=t;else if(i.includes(e))a=e;else if(i.length>0)a=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:a}},AA=(t,e,n)=>{let r=e;return r=t.setHours(r,t.getHours(n)),r=t.setMinutes(r,t.getMinutes(n)),r=t.setSeconds(r,t.getSeconds(n)),r},E_=({date:t,disableFuture:e,disablePast:n,maxDate:r,minDate:i,isDateDisabled:a,utils:o,timezone:s})=>{const l=AA(o,o.dateWithTimezone(void 0,s),t);n&&o.isBefore(i,l)&&(i=l),e&&o.isAfter(r,l)&&(r=l);let c=t,u=t;for(o.isBefore(t,i)&&(c=i,u=null),o.isAfter(t,r)&&(u&&(u=r),c=null);c||u;){if(c&&o.isAfter(c,r)&&(c=null),u&&o.isBefore(u,i)&&(u=null),c){if(!a(c))return c;c=o.addDays(c,1)}if(u){if(!a(u))return u;u=o.addDays(u,-1)}}return null},y_t=(t,e)=>e==null||!t.isValid(e)?null:e,Il=(t,e,n)=>e==null||!t.isValid(e)?n:e,b_t=(t,e,n)=>!t.isValid(e)&&e!=null&&!t.isValid(n)&&n!=null?!0:t.isEqual(e,n),K4=(t,e)=>{const r=[t.startOfYear(e)];for(;r.length<12;){const i=r[r.length-1];r.push(t.addMonths(i,1))}return r},Ece=(t,e,n)=>n==="date"?t.startOfDay(t.dateWithTimezone(void 0,e)):t.dateWithTimezone(void 0,e),__t=["year","month","day"],p7=t=>__t.includes(t),X4=(t,{format:e,views:n},r)=>{if(e!=null)return e;const i=t.formats;return cb(n,["year"])?i.year:cb(n,["month"])?i.month:cb(n,["day"])?i.dayOfMonth:cb(n,["month","year"])?`${i.month} ${i.year}`:cb(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(t.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},w_t=(t,e)=>{const n=t.startOfWeek(e);return[0,1,2,3,4,5,6].map(r=>t.addDays(n,r))},x_t=["hours","minutes","seconds"],E_t=t=>x_t.includes(t),h7=(t,e)=>e.getHours(t)*3600+e.getMinutes(t)*60+e.getSeconds(t),S_t=(t,e)=>(n,r)=>t?e.isAfter(n,r):h7(n,e)>h7(r,e),Lc={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},C_t=t=>Math.max(...t.map(e=>{var n;return(n=Lc[e.type])!=null?n:1})),ub=(t,e,n)=>{if(e===Lc.year)return t.startOfYear(n);if(e===Lc.month)return t.startOfMonth(n);if(e===Lc.day)return t.startOfDay(n);let r=n;return e{var a;let o=i?i():ub(e,n,Ece(e,r));t.minDate!=null&&e.isAfterDay(t.minDate,o)&&(o=ub(e,n,t.minDate)),t.maxDate!=null&&e.isBeforeDay(t.maxDate,o)&&(o=ub(e,n,t.maxDate));const s=S_t((a=t.disableIgnoringDatePartForTimeValidation)!=null?a:!1,e);return t.minTime!=null&&s(t.minTime,o)&&(o=ub(e,n,t.disableIgnoringDatePartForTimeValidation?t.minTime:AA(e,o,t.minTime))),t.maxTime!=null&&s(o,t.maxTime)&&(o=ub(e,n,t.disableIgnoringDatePartForTimeValidation?t.maxTime:AA(e,o,t.maxTime))),o},Sce=(t,e)=>{const n=t.formatTokenMap[e];if(n==null)throw new Error([`MUI: The token "${e}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},A_t=t=>{switch(t){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},kD=(t,e,n)=>{const r=[],i=t.dateWithTimezone(void 0,e),a=t.startOfWeek(i),o=t.endOfWeek(i);let s=a;for(;t.isBefore(s,o);)r.push(s),s=t.addDays(s,1);return r.map(l=>t.formatByString(l,n))},Cce=(t,e,n,r)=>{switch(n){case"month":return K4(t,t.dateWithTimezone(void 0,e)).map(i=>t.formatByString(i,r));case"weekDay":return kD(t,e,r);case"meridiem":{const i=t.dateWithTimezone(void 0,e);return[t.startOfDay(i),t.endOfDay(i)].map(a=>t.formatByString(a,r))}default:return[]}},Tce=(t,e,n)=>{let r=e;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const o=t.setDate(r.longestMonth,n);return t.formatByString(o,i.format)}const a=n.toString();return i.hasLeadingZerosInInput?Tce(t,a,i.maxLength):a},I_t=(t,e,n,r,i,a,o)=>{const s=A_t(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,d=()=>{const p=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),h=y=>Ace(t,e,y,p,n),v=n.type==="minutes"&&o!=null&&o.minutesStep?o.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return t.formatByString(t.dateWithTimezone(void 0,e),n.format);s>0||l?g=p.minimum:g=p.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>p.maximum?h(p.minimum+(g-p.maximum-1)%(p.maximum-p.minimum+1)):g{const p=Cce(t,e,n.type,n.format);if(p.length===0)return n.value;if(u)return s>0||l?p[0]:p[p.length-1];const v=(p.indexOf(n.value)+p.length+s)%p.length;return p[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():f()},Z4=(t,e)=>{let n=t.value||t.placeholder;const r=e==="non-input"?t.hasLeadingZerosInFormat:t.hasLeadingZerosInInput;return e==="non-input"&&t.hasLeadingZerosInInput&&!t.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(e)&&t.contentType==="digit"&&!r&&n.length===1&&(n=`${n}`),e==="input-rtl"&&(n=`${n}`),n},Wg=t=>t.replace(/[\u2066\u2067\u2068\u2069]/g,""),Ice=(t,e)=>{let n=0,r=e?1:0;const i=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:t.formatByString(t.dateWithTimezone(void 0,e),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},m7=(t,e,n,r)=>t.formatByString(t.parse(e,n),r),Mce=(t,e,n)=>t.formatByString(t.dateWithTimezone(void 0,e),n).length===4,Dce=(t,e,n,r,i)=>{if(n!=="digit")return!1;const a=t.dateWithTimezone(void 0,e);switch(r){case"year":return Mce(t,e,i)?t.formatByString(t.setYear(a,1),i)==="0001":t.formatByString(t.setYear(a,2001),i)==="01";case"month":return t.formatByString(t.startOfYear(a),i).length>1;case"day":return t.formatByString(t.startOfMonth(a),i).length>1;case"weekDay":return t.formatByString(t.startOfWeek(a),i).length>1;case"hours":return t.formatByString(t.setHours(a,1),i).length>1;case"minutes":return t.formatByString(t.setMinutes(a,1),i).length>1;case"seconds":return t.formatByString(t.setSeconds(a,1),i).length>1;default:throw new Error("Invalid section type")}},D_t=(t,e)=>{const n=[],{start:r,end:i}=t.escapedCharacters,a=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let o=null;for(;o=a.exec(e);)n.push({start:o.index,end:a.lastIndex-1});return n},g7=(t,e,n,r,i,a,o,s)=>{let l="";const c=[],u=t.date(),d=w=>{if(w==="")return null;const x=Sce(t,w),S=Dce(t,e,x.contentType,x.type,w),T=o?S:x.contentType==="digit",I=i!=null&&t.isValid(i);let P=I?t.formatByString(i,w):"",M=null;if(T)if(S)M=P===""?t.formatByString(u,w).length:P.length;else{if(x.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);M=x.maxLength,I&&(P=Tce(t,P,M))}return c.push(ze({},x,{format:w,maxLength:M,value:P,placeholder:M_t(t,e,n,x,w),hasLeadingZeros:S,hasLeadingZerosInFormat:S,hasLeadingZerosInInput:T,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let f=10,p=r,h=t.expandFormat(r);for(;h!==p;)if(p=h,h=t.expandFormat(p),f-=1,f<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=h,b=D_t(t,v),g=new RegExp(`^(${Object.keys(t.formatTokenMap).sort((w,x)=>x.length-w.length).join("|")})`,"g");let y="";for(let w=0;wM.start<=w&&M.end>=w),S=v[w],T=x!=null,I=`${y}${v.slice(w)}`,P=g.test(I);!T&&S.match(/([A-Za-z]+)/)&&P?(y=I.slice(0,g.lastIndex),w+=g.lastIndex-1):T&&(x==null?void 0:x.start)===w||(x==null?void 0:x.end)===w||(d(y),y="",c.length===0?l+=S:c[c.length-1].endSeparator+=S)}return d(y),c.map(w=>{const x=S=>{let T=S;return s&&T!==null&&T.includes(" ")&&(T=`${T}`),a==="spacious"&&["/",".","-"].includes(T)&&(T=` ${T} `),T};return w.startSeparator=x(w.startSeparator),w.endSeparator=x(w.endSeparator),w})},P_t=(t,e)=>{const n=e.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=t.map(i=>{const a=Z4(i,e?"input-rtl":"input-ltr");return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return e?`${r}`:r},O_t=(t,e)=>{const n=t.dateWithTimezone(void 0,e),r=t.endOfYear(n),i=t.endOfDay(n),{maxDaysInMonth:a,longestMonth:o}=K4(t,n).reduce((s,l)=>{const c=t.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:Mce(t,e,s)?9999:99}),month:()=>({minimum:1,maximum:t.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&t.isValid(s)?t.getDaysInMonth(s):a,longestMonth:o}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=kD(t,e,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=t.getHours(i);return t.formatByString(t.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(t.formatByString(t.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:t.getMinutes(i)}),seconds:()=>({minimum:0,maximum:t.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},N_t=(t,e,n,r,i)=>{switch(n.type){case"year":return t.setYear(i,t.getYear(r));case"month":return t.setMonth(i,t.getMonth(r));case"weekDay":{const a=kD(t,e,n.format),o=t.formatByString(r,n.format),s=a.indexOf(o),c=a.indexOf(n.value)-s;return t.addDays(r,c)}case"day":return t.setDate(i,t.getDate(r));case"meridiem":{const a=t.getHours(r)<12,o=t.getHours(i);return a&&o>=12?t.addHours(i,-12):!a&&o<12?t.addHours(i,12):i}case"hours":return t.setHours(i,t.getHours(r));case"minutes":return t.setMinutes(i,t.getMinutes(r));case"seconds":return t.setSeconds(i,t.getSeconds(r));default:return i}},v7={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},y7=(t,e,n,r,i,a)=>[...r].sort((o,s)=>v7[o.type]-v7[s.type]).reduce((o,s)=>!a||s.modified?N_t(t,e,s,n,o):o,i),L_t=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,k_t=(t,e)=>{const n={};if(!e)return t.forEach((l,c)=>{const u=c===0?null:c-1,d=c===t.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:t.length-1};const r={},i={};let a=0,o=0,s=t.length-1;for(;s>=0;){o=t.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),o===-1&&(o=t.length-1);for(let l=o;l>=a;l-=1)i[l]=s,r[s]=l,s-=1;a=o+1}return t.forEach((l,c)=>{const u=i[c],d=u===0?null:r[u-1],f=u===t.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[t.length-1]}},F_t=["value","referenceDate"],bd={emptyValue:null,getTodayValue:Ece,getInitialReferenceValue:t=>{let{value:e,referenceDate:n}=t,r=zn(t,F_t);return e!=null&&r.utils.isValid(e)?e:n??T_t(r)},cleanValue:y_t,areValuesEqual:b_t,isSameError:(t,e)=>t===e,hasError:t=>t!=null,defaultErrorState:null,getTimezone:(t,e)=>e==null||!t.isValid(e)?null:t.getTimezone(e),setTimezone:(t,e,n)=>n==null?null:t.setTimezone(n,e)},$_t={updateReferenceValue:(t,e,n)=>e==null||!t.isValid(e)?n:e,getSectionsFromValue:(t,e,n,r,i)=>!t.isValid(e)&&!!n?n:Ice(i(e),r),getValueStrFromSections:R_t,getActiveDateManager:(t,e)=>({date:e.value,referenceDate:e.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!t.isValid(n)?e.referenceValue:n})}),parseValueStr:(t,e,n)=>n(t.trim(),e)},B_t=["localeText"],c3=C.createContext(null),FD=function(e){var n;const{localeText:r}=e,i=zn(e,B_t),{utils:a,localeText:o}=(n=C.useContext(c3))!=null?n:{utils:void 0,localeText:void 0},s=ia({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=s,h=C.useMemo(()=>ze({},p,o,r),[p,o,r]),v=C.useMemo(()=>{if(!c)return a||null;const y=new c({locale:f,formats:u,instance:d});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` `));return y},[c,f,u,d,a]),b=C.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=C.useMemo(()=>({utils:v,defaultDates:b,localeText:h}),[b,v,h]);return be(c3.Provider,{value:g,children:l})},U_t=t=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:ze({},t)}}}}),Pce={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:t=>t==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(t,e,n)=>`Select ${t}. ${e===null?"No time selected":`Selected time is ${n.format(e,"fullTime")}`}`,hoursClockNumberText:t=>`${t} hours`,minutesClockNumberText:t=>`${t} minutes`,secondsClockNumberText:t=>`${t} seconds`,selectViewText:t=>`Select ${t}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:t=>`Week ${t}`,calendarWeekNumberText:t=>`${t}`,openDatePickerDialogue:(t,e)=>t!==null&&e.isValid(t)?`Choose date, selected date is ${e.format(t,"fullDate")}`:"Choose date",openTimePickerDialogue:(t,e)=>t!==null&&e.isValid(t)?`Choose time, selected time is ${e.format(t,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:t=>"Y".repeat(t.digitAmount),fieldMonthPlaceholder:t=>t.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:t=>t.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},H_t=Pce;U_t(Pce);const fm=()=>{const t=C.useContext(c3);if(t===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(t.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` `));const e=C.useMemo(()=>ze({},H_t,t.localeText),[t.localeText]);return C.useMemo(()=>ze({},t,{localeText:e}),[t,e])},Ar=()=>fm().utils,ax=()=>fm().defaultDates,vp=()=>fm().localeText,$D=t=>{const e=Ar(),n=C.useRef();return n.current===void 0&&(n.current=e.dateWithTimezone(void 0,t)),n.current};function Rce(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e{const{classes:e,isLandscape:n}=t;return xt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},V_t,e)},j_t=He("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>ze({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3)},e.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),G_t=He("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(t,e)=>e.content})(({ownerState:t})=>{var e;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:t.isLandscape?"flex-start":"space-between",flexDirection:t.isLandscape?(e=t.landscapeDirection)!=null?e:"column":"row",flex:1,alignItems:t.isLandscape?"flex-start":"center"}}),W_t=C.forwardRef(function(e,n){const r=ia({props:e,name:"MuiPickersToolbar"}),{children:i,className:a,toolbarTitle:o,hidden:s,titleId:l}=r,c=r,u=z_t(c);return s?null:Vt(j_t,{ref:n,className:bo(u.root,a),ownerState:c,children:[be($i,{color:"text.secondary",variant:"overline",id:l,children:o}),be(G_t,{className:u.content,ownerState:c,children:i})]})});function q_t(t){return Et("MuiDatePickerToolbar",t)}St("MuiDatePickerToolbar",["root","title"]);const Y_t=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className"],J_t=t=>{const{classes:e}=t;return xt({root:["root"],title:["title"]},q_t,e)},Q_t=He(W_t,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),K_t=He($i,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(t,e)=>e.title})(({ownerState:t})=>ze({},t.isLandscape&&{margin:"auto 16px auto auto"})),X_t=C.forwardRef(function(e,n){const r=ia({props:e,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:a,toolbarFormat:o,toolbarPlaceholder:s="",views:l,className:c}=r,u=zn(r,Y_t),d=Ar(),f=vp(),p=J_t(r),h=C.useMemo(()=>{if(!i)return s;const b=X4(d,{format:o,views:l},!0);return d.formatByString(i,b)},[i,o,s,d,l]),v=r;return be(Q_t,ze({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:bo(p.root,c)},u,{children:be(K_t,{variant:"h4",align:a?"left":"center",ownerState:v,className:p.title,children:h})}))}),Oce=t=>{if(t!==void 0)return Object.keys(t).reduce((e,n)=>ze({},e,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:t[n]}),{})};function Nce(t,e){var n,r,i,a;const o=Ar(),s=ax(),l=ia({props:t,name:e}),c=C.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:ze({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Oce(l.components);return ze({},l,{localeText:c},v_t({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(i=l.disablePast)!=null?i:!1,minDate:Il(o,l.minDate,s.minDate),maxDate:Il(o,l.maxDate,s.maxDate),slots:ze({toolbar:X_t},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const Z_t=Gi(be("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),e1t=Gi(be("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),t1t=Gi(be("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),n1t=Gi(be("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Gi(Vt(C.Fragment,{children:[be("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),be("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Gi(be("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Gi(Vt(C.Fragment,{children:[be("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),be("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const r1t=Gi(be("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function i1t(t){return Et("MuiPickersArrowSwitcher",t)}St("MuiPickersArrowSwitcher",["root","spacer","button"]);const a1t=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],o1t=["ownerState"],s1t=["ownerState"],l1t=He("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex"}),c1t=He("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})(({theme:t})=>({width:t.spacing(3)})),b7=He(ir,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(t,e)=>e.button})(({ownerState:t})=>ze({},t.hidden&&{visibility:"hidden"})),u1t=t=>{const{classes:e}=t;return xt({root:["root"],spacer:["spacer"],button:["button"]},i1t,e)},d1t=C.forwardRef(function(e,n){var r,i,a,o;const l=Os().direction==="rtl",c=ia({props:e,name:"MuiPickersArrowSwitcher"}),{children:u,className:d,slots:f,slotProps:p,isNextDisabled:h,isNextHidden:v,onGoToNext:b,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:x,previousLabel:S}=c,T=zn(c,a1t),I=c,P=u1t(I),M={isDisabled:h,isHidden:v,goTo:b,label:g},N={isDisabled:y,isHidden:w,goTo:x,label:S},R=(r=f==null?void 0:f.previousIconButton)!=null?r:b7,O=Ui({elementType:R,externalSlotProps:p==null?void 0:p.previousIconButton,additionalProps:{size:"medium",title:N.label,"aria-label":N.label,disabled:N.isDisabled,edge:"end",onClick:N.goTo},ownerState:ze({},I,{hidden:N.isHidden}),className:P.button}),D=(i=f==null?void 0:f.nextIconButton)!=null?i:b7,L=Ui({elementType:D,externalSlotProps:p==null?void 0:p.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:ze({},I,{hidden:M.isHidden}),className:P.button}),k=(a=f==null?void 0:f.leftArrowIcon)!=null?a:e1t,B=Ui({elementType:k,externalSlotProps:p==null?void 0:p.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),H=zn(B,o1t),$=(o=f==null?void 0:f.rightArrowIcon)!=null?o:t1t,W=Ui({elementType:$,externalSlotProps:p==null?void 0:p.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),K=zn(W,s1t);return Vt(l1t,ze({ref:n,className:bo(P.root,d),ownerState:I},T,{children:[be(R,ze({},O,{children:l?be($,ze({},K)):be(k,ze({},H))})),u?be($i,{variant:"subtitle1",component:"span",children:u}):be(c1t,{className:P.spacer,ownerState:I}),be(D,ze({},L,{children:l?be(k,ze({},H)):be($,ze({},K))}))]}))}),I1=36,BD=2,UD=320,f1t=280,e5=334,p1t=He(Tw)({[`& .${l_.container}`]:{outline:0},[`& .${l_.paper}`]:{outline:0,minWidth:UD}}),h1t=He(MM)({"&:first-of-type":{padding:0}});function m1t(t){var e,n;const{children:r,onDismiss:i,open:a,slots:o,slotProps:s}=t,l=(e=o==null?void 0:o.dialog)!=null?e:p1t,c=(n=o==null?void 0:o.mobileTransition)!=null?n:E0;return be(l,ze({open:a,onClose:i},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:be(h1t,{children:r})}))}function g1t(t){return Et("MuiPickersPopper",t)}St("MuiPickersPopper",["root","paper"]);function v1t(t,e){return Array.isArray(e)?e.every(n=>t.indexOf(n)!==-1):t.indexOf(e)!==-1}const y1t=(t,e)=>n=>{(n.key==="Enter"||n.key===" ")&&(t(n),n.preventDefault(),n.stopPropagation()),e&&e(n)},IA=(t=document)=>{const e=t.activeElement;return e?e.shadowRoot?IA(e.shadowRoot):e:null},b1t="@media (pointer: fine)",_1t="@media (prefers-reduced-motion: reduce)",vv=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),_7=vv&&vv[1]?parseInt(vv[1],10):null,w7=vv&&vv[2]?parseInt(vv[2],10):null,w1t=_7&&_7<10||w7&&w7<13||!1,Lce=()=>Vee(_1t,{defaultMatches:!1})||w1t,x1t=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],E1t=t=>{const{classes:e}=t;return xt({root:["root"],paper:["paper"]},g1t,e)},S1t=He(jRe,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({zIndex:t.zIndex.modal})),C1t=He(Va,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(t,e)=>e.paper})(({ownerState:t})=>ze({outline:0,transformOrigin:"top center"},t.placement.includes("top")&&{transformOrigin:"bottom center"}));function T1t(t,e){return e.documentElement.clientWidth{if(!t)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[t]);const o=Lt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=Vi(i.current);if(!i.current||"clientX"in l&&T1t(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(i.current)>-1:d=!u.documentElement.contains(l.target)||i.current.contains(l.target),!d&&!c&&e(l)}),s=()=>{r.current=!0};return C.useEffect(()=>{if(t){const l=Vi(i.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",o),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",o),l.removeEventListener("touchmove",c)}}},[t,o]),C.useEffect(()=>{if(t){const l=Vi(i.current);return l.addEventListener("click",o),()=>{l.removeEventListener("click",o),r.current=!1}}},[t,o]),[i,s,s]}const I1t=C.forwardRef((t,e)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:a,paperSlotProps:o,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=t,u=zn(t,x1t),d=ze({},i,{placement:r}),f=Ui({elementType:n,externalSlotProps:o,additionalProps:{tabIndex:-1,elevation:8,ref:e},className:s,ownerState:d});return be(n,ze({},u,f,{onClick:p=>{var h;l(p),(h=f.onClick)==null||h.call(f,p)},onTouchStart:p=>{var h;c(p),(h=f.onTouchStart)==null||h.call(f,p)},ownerState:d,children:a}))});function M1t(t){var e,n,r,i;const a=ia({props:t,name:"MuiPickersPopper"}),{anchorEl:o,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:d,open:f,role:p,placement:h,slots:v,slotProps:b,reduceAnimations:g}=a;C.useEffect(()=>{function W(K){f&&(K.key==="Escape"||K.key==="Esc")&&d()}return document.addEventListener("keydown",W),()=>{document.removeEventListener("keydown",W)}},[d,f]);const y=C.useRef(null);C.useEffect(()=>{p==="tooltip"||c&&!c()||(f?y.current=IA(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[f,p,c]);const[w,x,S]=A1t(f,u??d),T=C.useRef(null),I=jn(T,l),P=jn(I,w),M=a,N=E1t(M),R=Lce(),O=g??R,D=W=>{W.key==="Escape"&&(W.stopPropagation(),d())},L=((e=v==null?void 0:v.desktopTransition)!=null?e:O)?E0:Tte,k=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:vte,B=(r=v==null?void 0:v.desktopPaper)!=null?r:C1t,H=(i=v==null?void 0:v.popper)!=null?i:S1t,$=Ui({elementType:H,externalSlotProps:b==null?void 0:b.popper,additionalProps:{transition:!0,role:p,open:f,anchorEl:o,placement:h,onKeyDown:D},className:N.root,ownerState:a});return be(H,ze({},$,{children:({TransitionProps:W,placement:K})=>be(k,ze({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},b==null?void 0:b.desktopTrapFocus,{children:be(L,ze({},W,b==null?void 0:b.desktopTransition,{children:be(I1t,{PaperComponent:B,ownerState:M,popperPlacement:K,ref:P,onPaperClick:x,onPaperTouchStart:S,paperClasses:N.paper,paperSlotProps:b==null?void 0:b.desktopPaper,children:s})}))}))}))}const t5=({timezone:t,value:e,defaultValue:n,onChange:r,valueManager:i})=>{var a,o;const s=Ar(),l=C.useRef(n),c=(a=e??l.current)!=null?a:i.emptyValue,u=C.useMemo(()=>i.getTimezone(s,c),[s,i,c]),d=Lt(v=>u==null?v:i.setTimezone(s,u,v)),f=(o=t??u)!=null?o:"default",p=C.useMemo(()=>i.setTimezone(s,f,c),[i,s,f,c]),h=Lt((v,...b)=>{const g=d(v);r==null||r(g,...b)});return{value:p,handleValueChange:h,timezone:f}},n5=({name:t,timezone:e,value:n,defaultValue:r,onChange:i,valueManager:a})=>{const[o,s]=Wo({name:t,state:"value",controlled:n,default:r??a.emptyValue}),l=Lt((c,...u)=>{s(c),i==null||i(c,...u)});return t5({timezone:e,value:o,defaultValue:void 0,onChange:l,valueManager:a})};function kce(t,e,n,r){const{value:i,onError:a}=t,o=fm(),s=C.useRef(r),l=e({adapter:o,value:i,props:t});return C.useEffect(()=>{a&&!n(l,s.current)&&a(l,i),s.current=l},[n,a,s,l,i]),l}const D1t=t=>{const e=Ar(),n=vp(),r=fm(),a=Os().direction==="rtl",{valueManager:o,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:d,defaultValue:f,referenceDate:p,onChange:h,format:v,formatDensity:b="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:x}}=t,{timezone:S,value:T,handleValueChange:I}=t5({timezone:x,value:d,defaultValue:f,onChange:h,valueManager:o}),P=C.useMemo(()=>O_t(e,S),[e,S]),M=C.useCallback((z,ne=null)=>s.getSectionsFromValue(e,z,ne,a,G=>g7(e,S,n,v,G,b,w,a)),[s,v,n,a,w,e,b,S]),N=C.useMemo(()=>s.getValueStrFromSections(M(o.emptyValue),a),[s,M,o.emptyValue,a]),[R,O]=C.useState(()=>{const z=M(T),ne={sections:z,value:T,referenceValue:o.emptyValue,tempValueStrAndroid:null},G=C_t(z),te=o.getInitialReferenceValue({referenceDate:p,value:T,utils:e,props:u,granularity:G,timezone:S});return ze({},ne,{referenceValue:te})}),[D,L]=Wo({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),k=z=>{L(z),y==null||y(z),O(ne=>ze({},ne,{selectedSectionQuery:null}))},B=C.useMemo(()=>{if(D==null)return null;if(D==="all")return{startIndex:0,endIndex:R.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof D=="number")return{startIndex:D,endIndex:D};if(typeof D=="string"){const z=R.sections.findIndex(ne=>ne.type===D);return{startIndex:z,endIndex:z}}return D},[D,R.sections]),H=({value:z,referenceValue:ne,sections:G})=>{if(O(Y=>ze({},Y,{sections:G,value:z,referenceValue:ne,tempValueStrAndroid:null})),o.areValuesEqual(e,R.value,z))return;const te={validationError:c({adapter:r,value:z,props:ze({},u,{value:z,timezone:S})})};I(z,te)},$=(z,ne)=>{const G=[...R.sections];return G[z]=ze({},G[z],{value:ne,modified:!0}),Ice(G,a)},W=()=>{H({value:o.emptyValue,referenceValue:R.referenceValue,sections:M(o.emptyValue)})},K=()=>{if(B==null)return;const z=R.sections[B.startIndex],ne=s.getActiveDateManager(e,R,z),te=ne.getSections(R.sections).filter(de=>de.value!=="").length===(z.value===""?0:1),Y=$(B.startIndex,""),fe=te?null:e.date(new Date("")),pe=ne.getNewValuesFromNewActiveDate(fe);(fe!=null&&!e.isValid(fe))!=(ne.date!=null&&!e.isValid(ne.date))?H(ze({},pe,{sections:Y})):O(de=>ze({},de,pe,{sections:Y,tempValueStrAndroid:null}))},le=z=>{const ne=(Y,fe)=>{const pe=e.parse(Y,v);if(pe==null||!e.isValid(pe))return null;const de=g7(e,S,n,v,pe,b,w,a);return y7(e,S,pe,de,fe,!1)},G=s.parseValueStr(z,R.referenceValue,ne),te=s.updateReferenceValue(e,G,R.referenceValue);H({value:G,referenceValue:te,sections:M(G,R.sections)})},U=({activeSection:z,newSectionValue:ne,shouldGoToNextSection:G})=>{G&&B&&B.startIndexze({},me,de,{sections:Y,tempValueStrAndroid:null}))},q=z=>O(ne=>ze({},ne,{tempValueStrAndroid:z}));return C.useEffect(()=>{const z=M(R.value);O(ne=>ze({},ne,{sections:z}))},[v,e.locale]),C.useEffect(()=>{let z=!1;o.areValuesEqual(e,R.value,T)?z=o.getTimezone(e,R.value)!==o.getTimezone(e,T):z=!0,z&&O(ne=>ze({},ne,{value:T,referenceValue:s.updateReferenceValue(e,T,ne.referenceValue),sections:M(T)}))},[T]),{state:R,selectedSectionIndexes:B,setSelectedSections:k,clearValue:W,clearActiveSection:K,updateSectionValue:U,updateValueFromValueStr:le,setTempAndroidValueStr:q,sectionsValueBoundaries:P,placeholder:N,timezone:S}},P1t=5e3,qm=t=>t.saveQuery!=null,R1t=({sections:t,updateSectionValue:e,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const a=Ar(),[o,s]=C.useState(null),l=Lt(()=>s(null));C.useEffect(()=>{var p;o!=null&&((p=t[o.sectionIndex])==null?void 0:p.type)!==o.sectionType&&l()},[t,o,l]),C.useEffect(()=>{if(o!=null){const p=setTimeout(()=>l(),P1t);return()=>{window.clearTimeout(p)}}return()=>{}},[o,l]);const c=({keyPressed:p,sectionIndex:h},v,b)=>{const g=p.toLowerCase(),y=t[h];if(o!=null&&(!b||b(o.value))&&o.sectionIndex===h){const x=`${o.value}${g}`,S=v(x,y);if(!qm(S))return s({sectionIndex:h,value:x,sectionType:y.type}),S}const w=v(g,y);return qm(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:h,value:g,sectionType:y.type}),qm(w)?null:w)},u=p=>{const h=(g,y,w)=>{const x=y.filter(S=>S.toLowerCase().startsWith(w));return x.length===0?{saveQuery:!1}:{sectionValue:x[0],shouldGoToNextSection:x.length===1}},v=(g,y,w,x)=>{const S=T=>Cce(a,i,y.type,T);if(y.contentType==="letter")return h(y.format,S(y.format),g);if(w&&x!=null&&Sce(a,w).contentType==="letter"){const T=S(w),I=h(w,T,g);return qm(I)?{saveQuery:!1}:ze({},I,{sectionValue:x(I.sectionValue,T)})}return{saveQuery:!1}};return c(p,(g,y)=>{switch(y.type){case"month":{const w=x=>m7(a,x,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(x,S)=>S.indexOf(x).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},d=p=>{const h=(b,g)=>{const y=Number(`${b}`),w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||b.length===w.maximum.toString().length;return{sectionValue:Ace(a,i,y,w,g),shouldGoToNextSection:x}};return c(p,(b,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return h(b,g);if(g.type==="month"){const y=Dce(a,i,"digit","month","MM"),w=h(b,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qm(w))return w;const x=m7(a,w.sectionValue,"MM",g.format);return ze({},w,{sectionValue:x})}if(g.type==="weekDay"){const y=h(b,g);if(qm(y))return y;const w=kD(a,i,g.format)[Number(y.sectionValue)-1];return ze({},y,{sectionValue:w})}return{saveQuery:!1}},b=>!Number.isNaN(Number(b)))};return{applyCharacterEditing:Lt(p=>{const h=t[p.sectionIndex],b=p.keyPressed!==" "&&!Number.isNaN(Number(p.keyPressed))?d(p):u(p);b==null?r(null):e({activeSection:h,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})}),resetCharacterQuery:l}},O1t=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],N1t=t=>{const e=Ar(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:a,clearActiveSection:o,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:d,timezone:f}=D1t(t),{inputRef:p,internalProps:h,internalProps:{readOnly:v=!1,unstableFieldRef:b,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:x,onBlur:S,onMouseUp:T,onPaste:I,error:P,clearable:M,onClear:N,disabled:R},fieldValueManager:O,valueManager:D,validator:L}=t,k=zn(t.forwardedProps,O1t),{applyCharacterEditing:B,resetCharacterQuery:H}=R1t({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:f}),$=C.useRef(null),W=jn(p,$),K=C.useRef(void 0),U=Os().direction==="rtl",q=C.useMemo(()=>k_t(n.sections,U),[n.sections,U]),z=()=>{var Q;if(v){i(null);return}const V=(Q=$.current.selectionStart)!=null?Q:0;let j;V<=n.sections[0].startInInput||V>=n.sections[n.sections.length-1].endInInput?j=1:j=n.sections.findIndex(ae=>ae.startInInput-ae.startSeparator.length>V);const ye=j===-1?n.sections.length-1:j-1;i(ye)},ne=Lt((Q,...V)=>{Q.isDefaultPrevented()||(y==null||y(Q,...V),z())}),G=Lt(Q=>{T==null||T(Q),Q.preventDefault()}),te=Lt((...Q)=>{x==null||x(...Q);const V=$.current;window.clearTimeout(K.current),K.current=setTimeout(()=>{!V||V!==$.current||r!=null||v||(V.value.length&&Number(V.selectionEnd)-Number(V.selectionStart)===V.value.length?i("all"):z())})}),Y=Lt((...Q)=>{S==null||S(...Q),i(null)}),fe=Lt(Q=>{if(I==null||I(Q),v){Q.preventDefault();return}const V=Q.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const j=n.sections[r.startIndex],ye=/^[a-zA-Z]+$/.test(V),ae=/^[0-9]+$/.test(V),Ee=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(V);if(j.contentType==="letter"&&ye||j.contentType==="digit"&&ae||j.contentType==="digit-with-letter"&&Ee){H(),s({activeSection:j,newSectionValue:V,shouldGoToNextSection:!0}),Q.preventDefault();return}if(ye||ae){Q.preventDefault();return}}Q.preventDefault(),H(),l(V)}),pe=Lt(Q=>{if(v)return;const V=Q.target.value;if(V===""){H(),a();return}const j=Q.nativeEvent.data,ye=j&&j.length>1,ae=ye?j:V,Ee=Wg(ae);if(r==null||ye){l(ye?j:Ee);return}let Pe;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ee.length===1)Pe=Ee;else{const We=Wg(O.getValueStrFromSections(n.sections,U));let Fe=-1,Ae=-1;for(let Je=0;Jehe.end)return;const Ke=Ee.length-We.length+he.end-Wg(he.endSeparator||"").length;Pe=Ee.slice(he.start+Wg(he.startSeparator||"").length,Ke)}if(Pe.length===0){L_t()?c(ae):(H(),o());return}B({keyPressed:Pe,sectionIndex:r.startIndex})}),de=Lt(Q=>{switch(w==null||w(Q),!0){case(Q.key==="a"&&(Q.ctrlKey||Q.metaKey)):{Q.preventDefault(),i("all");break}case Q.key==="ArrowRight":{if(Q.preventDefault(),r==null)i(q.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const V=q.neighbors[r.startIndex].rightIndex;V!==null&&i(V)}break}case Q.key==="ArrowLeft":{if(Q.preventDefault(),r==null)i(q.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const V=q.neighbors[r.startIndex].leftIndex;V!==null&&i(V)}break}case Q.key==="Delete":{if(Q.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():o(),H();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Q.key):{if(Q.preventDefault(),v||r==null)break;const V=n.sections[r.startIndex],j=O.getActiveDateManager(e,n,V),ye=I_t(e,f,V,Q.key,u,j.date,{minutesStep:g});s({activeSection:V,newSectionValue:ye,shouldGoToNextSection:!1});break}}});xi(()=>{if(!$.current)return;if(r==null){$.current.scrollLeft&&($.current.scrollLeft=0);return}const Q=n.sections[r.startIndex],V=n.sections[r.endIndex];let j=Q.startInInput,ye=V.endInInput;if(r.shouldSelectBoundarySelectors&&(j-=Q.startSeparator.length,ye+=V.endSeparator.length),j!==$.current.selectionStart||ye!==$.current.selectionEnd){const ae=$.current.scrollTop;$.current===IA(document)&&$.current.setSelectionRange(j,ye),$.current.scrollTop=ae}});const se=kce(ze({},h,{value:n.value,timezone:f}),L,D.isSameError,D.defaultErrorState),me=C.useMemo(()=>P!==void 0?P:D.hasError(se),[D,se,P]);C.useEffect(()=>{!me&&!r&&H()},[n.referenceValue,r,me]),C.useEffect(()=>($.current&&$.current===document.activeElement&&i("all"),()=>window.clearTimeout(K.current)),[]),C.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(H(),o())},[n.tempValueStrAndroid]);const Z=C.useMemo(()=>{var Q;return(Q=n.tempValueStrAndroid)!=null?Q:O.getValueStrFromSections(n.sections,U)},[n.sections,O,n.tempValueStrAndroid,U]),_e=C.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Me=$.current&&$.current===IA(document),Ne=D.areValuesEqual(e,n.value,D.emptyValue),ge=!Me&&Ne;C.useImperativeHandle(b,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var Q,V,j;const ye=(Q=$.current.selectionStart)!=null?Q:0,ae=(V=$.current.selectionEnd)!=null?V:0,Ee=!!((j=$.current)!=null&&j.readOnly);if(ye===0&&ae===0||Ee)return null;const Pe=ye<=n.sections[0].startInInput?1:n.sections.findIndex(We=>We.startInInput-We.startSeparator.length>ye);return Pe===-1?n.sections.length-1:Pe-1},setSelectedSections:Q=>i(Q)}));const ee=Lt((Q,...V)=>{var j;Q.preventDefault(),N==null||N(Q,...V),a(),$==null||(j=$.current)==null||j.focus(),i(0)});return ze({placeholder:d,autoComplete:"off",disabled:Boolean(R)},k,{value:ge?"":Z,inputMode:_e,readOnly:v,onClick:ne,onFocus:te,onBlur:Y,onPaste:fe,onChange:pe,onKeyDown:de,onMouseUp:G,onClear:ee,error:me,ref:W,clearable:Boolean(M&&!Ne&&!v&&!R)})},L1t=({open:t,onOpen:e,onClose:n})=>{const r=C.useRef(typeof t=="boolean").current,[i,a]=C.useState(!1);C.useEffect(()=>{if(r){if(typeof t!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(t)}},[r,t]);const o=C.useCallback(s=>{r||a(s),s&&e&&e(),!s&&n&&n()},[r,e,n]);return{isOpen:i,setIsOpen:o}},k1t=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:i}=t,a=!i&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromField"?!0:e.name==="setValueFromAction"?a&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastPublishedValue):e.name==="setValueFromView"&&e.selectionState!=="shallow"||e.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},F1t=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:a}=t,o=!i&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromAction"?o&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastCommittedValue):e.name==="setValueFromView"&&e.selectionState==="finish"&&a?o?!0:n(r.lastCommittedValue):e.name==="setValueFromShortcut"?e.changeImportance==="accept"&&n(r.lastCommittedValue):!1},$1t=t=>{const{action:e,closeOnSelect:n}=t;return e.name==="setValueFromAction"?!0:e.name==="setValueFromView"?e.selectionState==="finish"&&n:e.name==="setValueFromShortcut"?e.changeImportance==="accept":!1},B1t=({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:a,onChange:o,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:d,timezone:f}=t,{current:p}=C.useRef(l),{current:h}=C.useRef(s!==void 0),v=Ar(),b=fm(),[g,y]=Wo({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:x}=L1t(t),[S,T]=C.useState(()=>{let te;return s!==void 0?te=s:p!==void 0?te=p:te=e.emptyValue,{draft:te,lastPublishedValue:te,lastCommittedValue:te,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:I,handleValueChange:P}=t5({timezone:f,value:s,defaultValue:p,onChange:o,valueManager:e});kce(ze({},t,{value:S.draft,timezone:I}),i,e.isSameError,e.defaultErrorState);const M=Lt(te=>{const Y={action:te,dateState:S,hasChanged:se=>!e.areValuesEqual(v,te.value,se),isControlled:h,closeOnSelect:c},fe=k1t(Y),pe=F1t(Y),de=$1t(Y);if(T(se=>ze({},se,{draft:te.value,lastPublishedValue:fe?te.value:se.lastPublishedValue,lastCommittedValue:pe?te.value:se.lastCommittedValue,hasBeenModifiedSinceMount:!0})),fe){const me={validationError:te.name==="setValueFromField"?te.context.validationError:i({adapter:b,value:te.value,props:ze({},t,{value:te.value,timezone:I})})};te.name==="setValueFromShortcut"&&te.shortcut!=null&&(me.shortcut=te.shortcut),P(te.value,me)}pe&&a&&a(te.value),de&&x(!1)});if(s!==void 0&&(S.lastControlledValue===void 0||!e.areValuesEqual(v,S.lastControlledValue,s))){const te=e.areValuesEqual(v,S.draft,s);T(Y=>ze({},Y,{lastControlledValue:s},te?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const N=Lt(()=>{M({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),R=Lt(()=>{M({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),O=Lt(()=>{M({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),D=Lt(()=>{M({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),L=Lt(()=>{M({value:e.getTodayValue(v,I,n),name:"setValueFromAction",pickerAction:"today"})}),k=Lt(()=>x(!0)),B=Lt(()=>x(!1)),H=Lt((te,Y="partial")=>M({name:"setValueFromView",value:te,selectionState:Y})),$=Lt((te,Y,fe)=>M({name:"setValueFromShortcut",value:te,changeImportance:Y??"accept",shortcut:fe})),W=Lt((te,Y)=>M({name:"setValueFromField",value:te,context:Y})),K=Lt(te=>{y(te),d==null||d(te)}),le={onClear:N,onAccept:R,onDismiss:O,onCancel:D,onSetToday:L,onOpen:k,onClose:B},U={value:S.draft,onChange:W,selectedSections:g,onSelectedSectionsChange:K},q=C.useMemo(()=>e.cleanValue(v,S.draft),[v,e,S.draft]),z={value:q,onChange:H,onClose:B,open:w,onSelectedSectionsChange:K},G=ze({},le,{value:q,onChange:H,onSelectShortcut:$,isValid:te=>{const Y=i({adapter:b,value:te,props:ze({},t,{value:te,timezone:I})});return!e.hasError(Y)}});return{open:w,fieldProps:U,viewProps:z,layoutProps:G,actions:le}};function Fce({onChange:t,onViewChange:e,openTo:n,view:r,views:i,autoFocus:a,focusedView:o,onFocusedViewChange:s}){var l,c;const u=C.useRef(n),d=C.useRef(i),f=C.useRef(i.includes(n)?n:i[0]),[p,h]=Wo({name:"useViews",state:"view",controlled:r,default:f.current}),v=C.useRef(a?p:null),[b,g]=Wo({name:"useViews",state:"focusedView",controlled:o,default:v.current});C.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(M=>!i.includes(M)))&&(h(i.includes(n)?n:i[0]),d.current=i,u.current=n)},[n,h,p,i]);const y=i.indexOf(p),w=(l=i[y-1])!=null?l:null,x=(c=i[y+1])!=null?c:null,S=Lt((M,N)=>{g(N?M:R=>M===R?null:R),s==null||s(M,N)}),T=Lt(M=>{S(M,!0),M!==p&&(h(M),e&&e(M))}),I=Lt(()=>{x&&T(x)}),P=Lt((M,N,R)=>{const O=N==="finish",D=R?i.indexOf(R){const{onChange:a,open:o,onSelectedSectionsChange:s,onClose:l}=e,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:p,timezone:h}=t,v=zn(t,U1t),{view:b,setView:g,defaultView:y,focusedView:w,setFocusedView:x,setValueAndGoToNextView:S}=Fce({view:c,views:u,openTo:d,onChange:a,onViewChange:f,autoFocus:i}),{hasUIView:T,viewModeLookup:I}=C.useMemo(()=>u.reduce((L,k)=>{let B;return p[k]!=null?B="UI":B="field",L.viewModeLookup[k]=B,B==="UI"&&(L.hasUIView=!0),L},{hasUIView:!1,viewModeLookup:{}}),[p,u]),P=C.useMemo(()=>u.reduce((L,k)=>p[k]!=null&&E_t(k)?L+1:L,0),[p,u]),M=I[b],N=Lt(()=>M==="UI"),[R,O]=C.useState(M==="UI"?b:null);return R!==b&&I[b]==="UI"&&O(b),xi(()=>{M==="field"&&o&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(b)}))},[b]),xi(()=>{if(!o)return;let L=b;M==="field"&&R!=null&&(L=R),L!==y&&I[L]==="UI"&&I[y]==="UI"&&(L=y),L!==b&&g(L),x(L,!0)},[o]),{hasUIView:T,shouldRestoreFocus:N,layoutProps:{views:u,view:R,onViewChange:g},renderCurrentView:()=>{if(R==null)return null;const L=p[R];return L==null?null:L(ze({},v,n,e,{views:u,timezone:h,onChange:S,view:R,onViewChange:g,focusedView:w,onFocusedViewChange:x,showViewSwitcher:P>1,timeViewsCount:P}))}}};function x7(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const V1t=(t,e)=>{const[n,r]=C.useState(x7);return xi(()=>{const a=()=>{r(x7())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),v1t(t,["hours","minutes","seconds"])?!1:(e||n)==="landscape"},z1t=({props:t,propsFromPickerValue:e,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=t,a=V1t(n.views,i);return{layoutProps:ze({},n,e,{isLandscape:a,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}},j1t=(t,e="warning")=>{let n=!1;const r=Array.isArray(t)?t.join(` `):t;return()=>{n||(n=!0,e==="error"?console.error(r):console.warn(r))}};j1t(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const $ce=({props:t,valueManager:e,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:a,validator:o,autoFocusView:s})=>{const l=B1t({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:o}),c=H1t({props:t,inputRef:i,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=z1t({props:t,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function Bce(t){return Et("MuiPickersLayout",t)}const TN=St("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),G1t=["onAccept","onClear","onCancel","onSetToday","actions"];function W1t(t){const{onAccept:e,onClear:n,onCancel:r,onSetToday:i,actions:a}=t,o=zn(t,G1t),s=vp();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return be(ds,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return be(ds,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return be(ds,{onClick:e,children:s.okButtonLabel},c);case"today":return be(ds,{onClick:i,children:s.todayButtonLabel},c);default:return null}});return be(bte,ze({},o,{children:l}))}const q1t=["items","changeImportance","isLandscape","onChange","isValid"],Y1t=["getValue"];function J1t(t){const{items:e,changeImportance:n,onChange:r,isValid:i}=t,a=zn(t,q1t);if(e==null||e.length===0)return null;const o=e.map(s=>{let{getValue:l}=s,c=zn(s,Y1t);const u=l({isValid:i});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!i(u)}});return be(S0,ze({dense:!0,sx:[{maxHeight:e5,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:o.map(s=>be(Z$,{children:be(dte,ze({},s))},s.label))}))}function Q1t(t){return t.view!==null}const K1t=t=>{const{classes:e,isLandscape:n}=t;return xt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Bce,e)},X1t=t=>{var e,n;const{wrapperVariant:r,onAccept:i,onClear:a,onCancel:o,onSetToday:s,view:l,views:c,onViewChange:u,value:d,onChange:f,onSelectShortcut:p,isValid:h,isLandscape:v,disabled:b,readOnly:g,children:y,components:w,componentsProps:x,slots:S,slotProps:T}=t,I=S??Oce(w),P=T??x,M=K1t(t),N=(e=I==null?void 0:I.actionBar)!=null?e:W1t,R=Ui({elementType:N,externalSlotProps:P==null?void 0:P.actionBar,additionalProps:{onAccept:i,onClear:a,onCancel:o,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:M.actionBar},ownerState:ze({},t,{wrapperVariant:r})}),O=be(N,ze({},R)),D=I==null?void 0:I.toolbar,L=Ui({elementType:D,externalSlotProps:P==null?void 0:P.toolbar,additionalProps:{isLandscape:v,onChange:f,value:d,view:l,onViewChange:u,views:c,disabled:b,readOnly:g,className:M.toolbar},ownerState:ze({},t,{wrapperVariant:r})}),k=Q1t(L)&&D?be(D,ze({},L)):null,B=y,H=I==null?void 0:I.tabs,$=l&&H?be(H,ze({view:l,onViewChange:u,className:M.tabs},P==null?void 0:P.tabs)):null,W=(n=I==null?void 0:I.shortcuts)!=null?n:J1t,K=Ui({elementType:W,externalSlotProps:P==null?void 0:P.shortcuts,additionalProps:{isValid:h,isLandscape:v,onChange:p,className:M.shortcuts},ownerState:{isValid:h,isLandscape:v,onChange:p,className:M.shortcuts,wrapperVariant:r}}),le=l&&W?be(W,ze({},K)):null;return{toolbar:k,content:B,tabs:$,actionBar:O,shortcuts:le}},Z1t=X1t,ewt=t=>{const{isLandscape:e,classes:n}=t;return xt({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},Bce,n)},Uce=He("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${TN.toolbar}`]:e.isLandscape?{gridColumn:t.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${TN.shortcuts}`]:e.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:t.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${TN.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));Uce.propTypes={as:Ie.elementType,ownerState:Ie.shape({isLandscape:Ie.bool.isRequired}).isRequired,sx:Ie.oneOfType([Ie.arrayOf(Ie.oneOfType([Ie.func,Ie.object,Ie.bool])),Ie.func,Ie.object])};const twt=He("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Hce=function(e){const n=ia({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:o,shortcuts:s}=Z1t(n),{sx:l,className:c,isLandscape:u,ref:d,wrapperVariant:f}=n,p=n,h=ewt(p);return Vt(Uce,{ref:d,sx:l,className:bo(c,h.root),ownerState:p,children:[u?s:r,u?r:s,be(twt,{className:h.contentWrapper,children:f==="desktop"?Vt(C.Fragment,{children:[i,a]}):Vt(C.Fragment,{children:[a,i]})}),o]})};function nwt(t,{disableFuture:e,maxDate:n,timezone:r}){const i=Ar();return C.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),o=i.startOfMonth(e&&i.isBefore(a,n)?a:n);return!i.isAfter(o,t)},[e,n,t,i,r])}function rwt(t,{disablePast:e,minDate:n,timezone:r}){const i=Ar();return C.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),o=i.startOfMonth(e&&i.isAfter(a,n)?a:n);return!i.isBefore(o,t)},[e,n,t,i,r])}const u3=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],d3=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Vce=["minDateTime","maxDateTime"],iwt=[...u3,...d3,...Vce],zce=t=>iwt.reduce((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e),{}),awt=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],owt=(t,e)=>{const n=ze({},t),r={},i=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return awt.forEach(i),e==="date"?u3.forEach(i):e==="time"?d3.forEach(i):e==="date-time"&&(u3.forEach(i),d3.forEach(i),Vce.forEach(i)),{forwardedProps:n,internalProps:r}},HD=({props:t,value:e,adapter:n})=>{if(e===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:o,disableFuture:s,timezone:l}=t,c=n.utils.dateWithTimezone(void 0,l),u=Il(n.utils,t.minDate,n.defaultDates.minDate),d=Il(n.utils,t.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(e):return"invalidDate";case Boolean(r&&r(e)):return"shouldDisableDate";case Boolean(i&&i(e)):return"shouldDisableMonth";case Boolean(a&&a(e)):return"shouldDisableYear";case Boolean(s&&n.utils.isAfterDay(e,c)):return"disableFuture";case Boolean(o&&n.utils.isBeforeDay(e,c)):return"disablePast";case Boolean(u&&n.utils.isBeforeDay(e,u)):return"minDate";case Boolean(d&&n.utils.isAfterDay(e,d)):return"maxDate";default:return null}};function swt(t){return Et("MuiPickersDay",t)}const Lp=St("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),lwt=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],cwt=t=>{const{selected:e,disableMargin:n,disableHighlightToday:r,today:i,disabled:a,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:s,classes:l}=t,c=o&&!s;return xt({root:["root",e&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",o&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},swt,l)},jce=({theme:t,ownerState:e})=>ze({},t.typography.caption,{width:I1,height:I1,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Lv(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:Lv(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${Lp.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Lp.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Lp.disabled}:not(.${Lp.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${Lp.disabled}&.${Lp.selected}`]:{opacity:.6}},!e.disableMargin&&{margin:`0 ${BD}px`},e.outsideCurrentMonth&&e.showDaysOutsideCurrentMonth&&{color:(t.vars||t).palette.text.secondary},!e.disableHighlightToday&&e.today&&{[`&:not(.${Lp.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}}),Gce=(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableMargin&&e.dayWithMargin,!n.disableHighlightToday&&n.today&&e.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},uwt=He(Cs,{name:"MuiPickersDay",slot:"Root",overridesResolver:Gce})(jce),dwt=He("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Gce})(({theme:t,ownerState:e})=>ze({},jce({theme:t,ownerState:e}),{opacity:0,pointerEvents:"none"})),db=()=>{},fwt=C.forwardRef(function(e,n){const r=ia({props:e,name:"MuiPickersDay"}),{autoFocus:i=!1,className:a,day:o,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:p=db,onBlur:h=db,onKeyDown:v=db,onMouseDown:b=db,onMouseEnter:g=db,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:x=!1,children:S,today:T=!1}=r,I=zn(r,lwt),P=ze({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:x,today:T}),M=cwt(P),N=Ar(),R=C.useRef(null),O=jn(R,n);xi(()=>{i&&!s&&!u&&!y&&R.current.focus()},[i,s,u,y]);const D=k=>{b(k),y&&k.preventDefault()},L=k=>{s||f(o),y&&k.currentTarget.focus(),d&&d(k)};return y&&!x?be(dwt,{className:bo(M.root,M.hiddenDaySpacingFiller,a),ownerState:P,role:I.role}):be(uwt,ze({className:bo(M.root,a),ref:O,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:k=>v(k,o),onFocus:k=>p(k,o),onBlur:k=>h(k,o),onMouseEnter:k=>g(k,o),onClick:L,onMouseDown:D},I,{ownerState:P,children:S||N.format(o,"dayOfMonth")}))}),pwt=C.memo(fwt),hwt=t=>Et("MuiPickersSlideTransition",t),Ks=St("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),mwt=["children","className","reduceAnimations","slideDirection","transKey","classes"],gwt=t=>{const{classes:e,slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return xt(r,hwt,e)},vwt=He(F$,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`.${Ks["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${Ks["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${Ks.slideEnterActive}`]:e.slideEnterActive},{[`.${Ks.slideExit}`]:e.slideExit},{[`.${Ks["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${Ks["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:t})=>{const e=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ks["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ks["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ks.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${Ks.slideExit}`]:{transform:"translate(0%)"},[`& .${Ks["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${Ks["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function ywt(t){const e=ia({props:t,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:a}=e,o=zn(e,mwt),s=gwt(e),l=Os();if(i)return be("div",{className:bo(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return be(vwt,{className:bo(s.root,r),childFactory:u=>C.cloneElement(u,{classNames:c}),role:"presentation",children:be(qMe,ze({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},o,{children:n}),a)})}const Wce=({shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:o,timezone:s})=>{const l=fm();return C.useCallback(c=>HD({adapter:l,value:c,props:{shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:o,timezone:s}})!==null,[l,t,e,n,r,i,a,o,s])},bwt=t=>Et("MuiDayCalendar",t);St("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const _wt=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],wwt=["ownerState"],xwt=t=>{const{classes:e}=t;return xt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},bwt,e)},qce=(I1+BD*2)*6,Ewt=He("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Swt=He("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(t,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Cwt=He($i,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(t,e)=>e.weekDayLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary})),Twt=He($i,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(t,e)=>e.weekNumberLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled})),Awt=He($i,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(t,e)=>e.weekNumber})(({theme:t})=>ze({},t.typography.caption,{width:I1,height:I1,padding:0,margin:`0 ${BD}px`,color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Iwt=He("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(t,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:qce}),Mwt=He(ywt,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(t,e)=>e.slideTransition})({minHeight:qce}),Dwt=He("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(t,e)=>e.monthContainer})({overflow:"hidden"}),Pwt=He("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(t,e)=>e.weekContainer})({margin:`${BD}px 0`,display:"flex",justifyContent:"center"});function Rwt(t){var e,n,r;let{parentProps:i,day:a,focusableDay:o,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=t,d=zn(t,_wt);const{disabled:f,disableHighlightToday:p,isMonthSwitchingAnimating:h,showDaysOutsideCurrentMonth:v,components:b,componentsProps:g,slots:y,slotProps:w,timezone:x}=i,S=Ar(),T=$D(x),I=o!==null&&S.isSameDay(a,o),P=s.some(H=>S.isSameDay(H,a)),M=S.isSameDay(a,T),N=(e=(n=y==null?void 0:y.day)!=null?n:b==null?void 0:b.Day)!=null?e:pwt,R=Ui({elementType:N,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:ze({disableHighlightToday:p,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:h,"data-timestamp":S.toJsDate(a).valueOf()},d),ownerState:ze({},i,{day:a,selected:P})}),O=zn(R,wwt),D=C.useMemo(()=>f||l(a),[f,l,a]),L=C.useMemo(()=>S.getMonth(a)!==c,[S,a,c]),k=C.useMemo(()=>{const H=S.startOfMonth(S.setMonth(a,c));return v?S.isSameDay(a,S.startOfWeek(H)):S.isSameDay(a,H)},[c,a,v,S]),B=C.useMemo(()=>{const H=S.endOfMonth(S.setMonth(a,c));return v?S.isSameDay(a,S.endOfWeek(H)):S.isSameDay(a,H)},[c,a,v,S]);return be(N,ze({},O,{day:a,disabled:D,autoFocus:u&&I,today:M,outsideCurrentMonth:L,isFirstVisibleCell:k,isLastVisibleCell:B,selected:P,tabIndex:I?0:-1,"aria-selected":P,"aria-current":M?"date":void 0}))}function Owt(t){const e=ia({props:t,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:a,focusedDay:o,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:d,renderLoading:f=()=>be("span",{children:"..."}),slideDirection:p,TransitionProps:h,disablePast:v,disableFuture:b,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:x,shouldDisableYear:S,dayOfWeekFormatter:T,hasFocus:I,onFocusedViewChange:P,gridLabelId:M,displayWeekNumber:N,fixedWeekNumber:R,autoFocus:O,timezone:D}=e,L=$D(D),k=Ar(),B=xwt(e),$=Os().direction==="rtl",W=T||((ge,ee)=>k.format(ee,"weekdayShort").charAt(0).toUpperCase()),K=Wce({shouldDisableDate:w,shouldDisableMonth:x,shouldDisableYear:S,minDate:g,maxDate:y,disablePast:v,disableFuture:b,timezone:D}),le=vp(),[U,q]=Wo({name:"DayCalendar",state:"hasFocus",controlled:I,default:O??!1}),[z,ne]=C.useState(()=>o||L),G=Lt(ge=>{u||l(ge)}),te=ge=>{K(ge)||(n(ge),ne(ge),P==null||P(!0),q(!0))},Y=Lt((ge,ee)=>{switch(ge.key){case"ArrowUp":te(k.addDays(ee,-7)),ge.preventDefault();break;case"ArrowDown":te(k.addDays(ee,7)),ge.preventDefault();break;case"ArrowLeft":{const Q=k.addDays(ee,$?1:-1),V=k.addMonths(ee,$?1:-1),j=E_({utils:k,date:Q,minDate:$?Q:k.startOfMonth(V),maxDate:$?k.endOfMonth(V):Q,isDateDisabled:K,timezone:D});te(j||Q),ge.preventDefault();break}case"ArrowRight":{const Q=k.addDays(ee,$?-1:1),V=k.addMonths(ee,$?-1:1),j=E_({utils:k,date:Q,minDate:$?k.startOfMonth(V):Q,maxDate:$?Q:k.endOfMonth(V),isDateDisabled:K,timezone:D});te(j||Q),ge.preventDefault();break}case"Home":te(k.startOfWeek(ee)),ge.preventDefault();break;case"End":te(k.endOfWeek(ee)),ge.preventDefault();break;case"PageUp":te(k.addMonths(ee,1)),ge.preventDefault();break;case"PageDown":te(k.addMonths(ee,-1)),ge.preventDefault();break}}),fe=Lt((ge,ee)=>te(ee)),pe=Lt((ge,ee)=>{U&&k.isSameDay(z,ee)&&(P==null||P(!1))}),de=k.getMonth(i),se=C.useMemo(()=>a.filter(ge=>!!ge).map(ge=>k.startOfDay(ge)),[k,a]),me=de,Z=C.useMemo(()=>C.createRef(),[me]),_e=k.startOfWeek(L),Me=C.useMemo(()=>{const ge=k.startOfMonth(i),ee=k.endOfMonth(i);return K(z)||k.isAfterDay(z,ee)||k.isBeforeDay(z,ge)?E_({utils:k,date:z,minDate:ge,maxDate:ee,disablePast:v,disableFuture:b,isDateDisabled:K,timezone:D}):z},[i,b,v,z,K,k,D]),Ne=C.useMemo(()=>{const ge=k.setTimezone(i,D),ee=k.getWeekArray(ge);let Q=k.addMonths(ge,1);for(;R&&ee.length{ee.length{var Q;const V=k.format(ge,"weekdayShort");return be(Cwt,{variant:"caption",role:"columnheader","aria-label":k.format(k.addDays(_e,ee),"weekday"),className:B.weekDayLabel,children:(Q=W==null?void 0:W(V,ge))!=null?Q:V},V+ee.toString())})]}),s?be(Iwt,{className:B.loadingContainer,children:f()}):be(Mwt,ze({transKey:me,onExited:c,reduceAnimations:d,slideDirection:p,className:bo(r,B.slideTransition)},h,{nodeRef:Z,children:be(Dwt,{ref:Z,role:"rowgroup",className:B.monthContainer,children:Ne.map((ge,ee)=>Vt(Pwt,{role:"row",className:B.weekContainer,"aria-rowindex":ee+1,children:[N&&be(Awt,{className:B.weekNumber,role:"rowheader","aria-label":le.calendarWeekNumberAriaLabelText(k.getWeekNumber(ge[0])),children:le.calendarWeekNumberText(k.getWeekNumber(ge[0]))}),ge.map((Q,V)=>be(Rwt,{parentProps:e,day:Q,selectedDays:se,focusableDay:Me,onKeyDown:Y,onFocus:fe,onBlur:pe,onDaySelect:G,isDateDisabled:K,currentMonthNumber:de,isViewFocused:U,"aria-colindex":V+1},Q.toString()))]},`week-${ge[0]}`))})}))]})}const Nwt=(t,e,n)=>(r,i)=>{switch(i.type){case"changeMonth":return ze({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!t});case"finishMonthSwitchingAnimation":return ze({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const a=i.focusedDay!=null&&!e&&!n.isSameMonth(r.currentMonth,i.focusedDay);return ze({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:a&&!t&&!i.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Lwt=t=>{const{value:e,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:a,disableSwitchToMonthOnDayFocus:o=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:f}=t,p=Ar(),h=C.useRef(Nwt(Boolean(u),o,p)).current,v=C.useMemo(()=>{let I=null;return n?I=n:r&&(I=p.startOfMonth(r)),bd.getInitialReferenceValue({value:e,utils:p,timezone:f,props:t,referenceDate:I,granularity:Lc.day})},[]),[b,g]=C.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:v,currentMonth:p.startOfMonth(v),slideDirection:"left"}),y=C.useCallback(I=>{g(ze({type:"changeMonth"},I)),c&&c(I.newMonth)},[c]),w=C.useCallback(I=>{const P=I;p.isSameMonth(P,b.currentMonth)||y({newMonth:p.startOfMonth(P),direction:p.isAfterDay(P,b.currentMonth)?"left":"right"})},[b.currentMonth,y,p]),x=Wce({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:i,disablePast:a,timezone:f}),S=C.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),T=Lt((I,P)=>{x(I)||g({type:"changeFocusedDay",focusedDay:I,withoutMonthSwitchingAnimation:P})});return{referenceDate:v,calendarState:b,changeMonth:w,changeFocusedDay:T,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:y}},kwt=["props","getOpenDialogAriaText"],Fwt=["ownerState"],$wt=["ownerState"],Bwt=t=>{var e,n,r,i,a;let{props:o,getOpenDialogAriaText:s}=t,l=zn(t,kwt);const{slots:c,slotProps:u,className:d,sx:f,format:p,formatDensity:h,timezone:v,name:b,label:g,inputRef:y,readOnly:w,disabled:x,autoFocus:S,localeText:T,reduceAnimations:I}=o,P=Ar(),M=C.useRef(null),N=C.useRef(null),R=ap(),O=(e=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?e:!1,{open:D,actions:L,hasUIView:k,layoutProps:B,renderCurrentView:H,shouldRestoreFocus:$,fieldProps:W}=$ce(ze({},l,{props:o,inputRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),K=(r=c.inputAdornment)!=null?r:DM,le=Ui({elementType:K,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:o}),U=zn(le,Fwt),q=(i=c.openPickerButton)!=null?i:ir,z=Ui({elementType:q,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:x||w,onClick:D?L.onClose:L.onOpen,"aria-label":s(W.value,P),edge:U.position},ownerState:o}),ne=zn(z,$wt),G=c.openPickerIcon,te=c.field,Y=Ui({elementType:te,externalSlotProps:u==null?void 0:u.field,additionalProps:ze({},W,O&&{id:R},{readOnly:w,disabled:x,className:d,sx:f,format:p,formatDensity:h,timezone:v,label:g,name:b,autoFocus:S&&!o.open,focused:D?!0:void 0}),ownerState:o});k&&(Y.InputProps=ze({},Y.InputProps,{ref:N},!o.disableOpenPicker&&{[`${U.position}Adornment`]:be(K,ze({},U,{children:be(q,ze({},ne,{children:be(G,ze({},u==null?void 0:u.openPickerIcon))}))}))}));const fe=ze({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Y.slots),pe=(a=c.layout)!=null?a:Hce,de=jn(M,Y.inputRef,y);let se=R;O&&(g?se=`${R}-label`:se=void 0);const me=ze({},u,{toolbar:ze({},u==null?void 0:u.toolbar,{titleId:R}),popper:ze({"aria-labelledby":se},u==null?void 0:u.popper)});return{renderPicker:()=>Vt(FD,{localeText:T,children:[be(te,ze({},Y,{slots:fe,slotProps:me,inputRef:de})),be(M1t,ze({role:"dialog",placement:"bottom-start",anchorEl:N.current},L,{open:D,slots:c,slotProps:me,shouldRestoreFocus:$,reduceAnimations:I,children:be(pe,ze({},B,me==null?void 0:me.layout,{slots:c,slotProps:me,children:H()}))}))]})}},Uwt=t=>{var e,n,r;const i=Ar(),a=ax();return ze({},t,{disablePast:(e=t.disablePast)!=null?e:!1,disableFuture:(n=t.disableFuture)!=null?n:!1,format:(r=t.format)!=null?r:i.formats.keyboardDate,minDate:Il(i,t.minDate,a.minDate),maxDate:Il(i,t.maxDate,a.maxDate)})},Hwt=({props:t,inputRef:e})=>{const n=Uwt(t),{forwardedProps:r,internalProps:i}=owt(n,"date");return N1t({inputRef:e,forwardedProps:r,internalProps:i,valueManager:bd,fieldValueManager:$_t,validator:HD,valueType:"date"})},Vwt=["ownerState"],zwt=({clearable:t,fieldProps:e,InputProps:n,onClear:r,slots:i,slotProps:a,components:o,componentsProps:s})=>{var l,c,u,d,f,p;const h=vp(),v=(l=(c=i==null?void 0:i.clearButton)!=null?c:o==null?void 0:o.ClearButton)!=null?l:ir,b=Ui({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:h.fieldClearLabel}}),g=zn(b,Vwt),y=(d=(f=i==null?void 0:i.clearIcon)!=null?f:o==null?void 0:o.ClearIcon)!=null?d:r1t,w=Ui({elementType:y,externalSlotProps:(p=a==null?void 0:a.clearIcon)!=null?p:s==null?void 0:s.clearIcon,ownerState:{}}),x=ze({},n,{endAdornment:Vt(C.Fragment,{children:[t&&be(DM,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:be(v,ze({},g,{onClick:r,children:be(y,ze({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]})}),S=ze({},e,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(e.sx)?e.sx:[e.sx]]});return{InputProps:x,fieldProps:S}},jwt=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Gwt=["inputRef"],Wwt=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Yce=C.forwardRef(function(e,n){var r,i,a;const o=ia({props:e,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:d,inputProps:f}=o,p=zn(o,jwt),h=o,v=(r=(i=c==null?void 0:c.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:su,b=Ui({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:p,ownerState:h}),{inputRef:g}=b,y=zn(b,Gwt);y.inputProps=ze({},f,y.inputProps),y.InputProps=ze({},d,y.InputProps);const w=Hwt({props:y,inputRef:g}),{ref:x,onPaste:S,onKeyDown:T,inputMode:I,readOnly:P,clearable:M,onClear:N}=w,R=zn(w,Wwt),{InputProps:O,fieldProps:D}=zwt({onClear:N,clearable:M,fieldProps:R,InputProps:R.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return be(v,ze({ref:n},D,{InputProps:ze({},O,{readOnly:P}),inputProps:ze({},R.inputProps,{inputMode:I,onPaste:S,onKeyDown:T,ref:x})}))}),qwt=t=>Et("MuiPickersFadeTransitionGroup",t);St("MuiPickersFadeTransitionGroup",["root"]);const Ywt=t=>{const{classes:e}=t;return xt({root:["root"]},qwt,e)},Jwt=He(F$,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"block",position:"relative"});function Jce(t){const e=ia({props:t,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:a}=e,o=Ywt(e),s=Os();return i?n:be(Jwt,{className:bo(o.root,r),children:be(E0,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function Qwt(t){return Et("MuiPickersMonth",t)}const uS=St("MuiPickersMonth",["root","monthButton","disabled","selected"]),Kwt=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],Xwt=t=>{const{disabled:e,selected:n,classes:r}=t;return xt({root:["root"],monthButton:["monthButton",e&&"disabled",n&&"selected"]},Qwt,r)},Zwt=He("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(t,e)=>[e.root]})(({ownerState:t})=>({flexBasis:t.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),ext=He("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(t,e)=>[e.monthButton,{[`&.${uS.disabled}`]:e.disabled},{[`&.${uS.selected}`]:e.selected}]})(({theme:t})=>ze({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Lv(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Lv(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${uS.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${uS.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),txt=C.memo(function(e){const n=ia({props:e,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:a,selected:o,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:d,onBlur:f,"aria-current":p,"aria-label":h}=n,v=zn(n,Kwt),b=C.useRef(null),g=Xwt(n);return xi(()=>{if(r){var y;(y=b.current)==null||y.focus()}},[r]),be(Zwt,ze({className:g.root,ownerState:n},v,{children:be(ext,{ref:b,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":p,"aria-checked":o,"aria-label":h,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>d(y,s),onBlur:y=>f(y,s),className:g.monthButton,ownerState:n,children:i})}))});function nxt(t){return Et("MuiMonthCalendar",t)}St("MuiMonthCalendar",["root"]);const rxt=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],ixt=t=>{const{classes:e}=t;return xt({root:["root"]},nxt,e)};function axt(t,e){const n=Ar(),r=ax(),i=ia({props:t,name:e});return ze({disableFuture:!1,disablePast:!1},i,{minDate:Il(n,i.minDate,r.minDate),maxDate:Il(n,i.maxDate,r.maxDate)})}const oxt=He("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:UD,boxSizing:"border-box"}),sxt=C.forwardRef(function(e,n){const r=axt(e,"MuiMonthCalendar"),{className:i,value:a,defaultValue:o,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:h,readOnly:v,disableHighlightToday:b,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:x,monthsPerRow:S=3,timezone:T,gridLabelId:I}=r,P=zn(r,rxt),{value:M,handleValueChange:N,timezone:R}=n5({name:"MonthCalendar",timezone:T,value:a,defaultValue:o,onChange:p,valueManager:bd}),O=$D(R),D=em(),L=Ar(),k=C.useMemo(()=>bd.getInitialReferenceValue({value:M,utils:L,props:r,timezone:R,referenceDate:s,granularity:Lc.month}),[]),B=r,H=ixt(B),$=C.useMemo(()=>L.getMonth(O),[L,O]),W=C.useMemo(()=>M!=null?L.getMonth(M):b?null:L.getMonth(k),[M,L,b,k]),[K,le]=C.useState(()=>W||$),[U,q]=Wo({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),z=Lt(de=>{q(de),x&&x(de)}),ne=C.useCallback(de=>{const se=L.startOfMonth(u&&L.isAfter(O,f)?O:f),me=L.startOfMonth(c&&L.isBefore(O,d)?O:d),Z=L.startOfMonth(de);return L.isBefore(Z,se)||L.isAfter(Z,me)?!0:h?h(Z):!1},[c,u,d,f,O,h,L]),G=Lt((de,se)=>{if(v)return;const me=L.setMonth(M??k,se);N(me)}),te=Lt(de=>{ne(L.setMonth(M??k,de))||(le(de),z(!0),y&&y(de))});C.useEffect(()=>{le(de=>W!==null&&de!==W?W:de)},[W]);const Y=Lt((de,se)=>{switch(de.key){case"ArrowUp":te((12+se-3)%12),de.preventDefault();break;case"ArrowDown":te((12+se+3)%12),de.preventDefault();break;case"ArrowLeft":te((12+se+(D.direction==="ltr"?-1:1))%12),de.preventDefault();break;case"ArrowRight":te((12+se+(D.direction==="ltr"?1:-1))%12),de.preventDefault();break}}),fe=Lt((de,se)=>{te(se)}),pe=Lt((de,se)=>{K===se&&z(!1)});return be(oxt,ze({ref:n,className:bo(H.root,i),ownerState:B,role:"radiogroup","aria-labelledby":I},P,{children:K4(L,M??k).map(de=>{const se=L.getMonth(de),me=L.format(de,"monthShort"),Z=L.format(de,"month"),_e=se===W,Me=l||ne(de);return be(txt,{selected:_e,value:se,onClick:G,onKeyDown:Y,autoFocus:U&&se===K,disabled:Me,tabIndex:se===K?0:-1,onFocus:fe,onBlur:pe,"aria-current":$===se?"date":void 0,"aria-label":Z,monthsPerRow:S,children:me},me)})}))});function lxt(t){return Et("MuiPickersYear",t)}const dS=St("MuiPickersYear",["root","yearButton","selected","disabled"]),cxt=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],uxt=t=>{const{disabled:e,selected:n,classes:r}=t;return xt({root:["root"],yearButton:["yearButton",e&&"disabled",n&&"selected"]},lxt,r)},dxt=He("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(t,e)=>[e.root]})(({ownerState:t})=>({flexBasis:t.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),fxt=He("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(t,e)=>[e.yearButton,{[`&.${dS.disabled}`]:e.disabled},{[`&.${dS.selected}`]:e.selected}]})(({theme:t})=>ze({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:Lv(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Lv(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${dS.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${dS.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),pxt=C.memo(function(e){const n=ia({props:e,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:a,disabled:o,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:p,"aria-current":h}=n,v=zn(n,cxt),b=C.useRef(null),g=uxt(n);return C.useEffect(()=>{r&&b.current.focus()},[r]),be(dxt,ze({className:bo(g.root,i),ownerState:n},v,{children:be(fxt,{ref:b,disabled:o,type:"button",role:"radio",tabIndex:o?-1:c,"aria-current":h,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>d(y,l),onFocus:y=>f(y,l),onBlur:y=>p(y,l),className:g.yearButton,ownerState:n,children:a})}))});function hxt(t){return Et("MuiYearCalendar",t)}St("MuiYearCalendar",["root"]);const mxt=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],gxt=t=>{const{classes:e}=t;return xt({root:["root"]},hxt,e)};function vxt(t,e){var n;const r=Ar(),i=ax(),a=ia({props:t,name:e});return ze({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Il(r,a.minDate,i.minDate),maxDate:Il(r,a.maxDate,i.maxDate)})}const yxt=He("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:UD,maxHeight:f1t,boxSizing:"border-box",position:"relative"}),bxt=C.forwardRef(function(e,n){const r=vxt(e,"MuiYearCalendar"),{autoFocus:i,className:a,value:o,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:p,onChange:h,readOnly:v,shouldDisableYear:b,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:x,yearsPerRow:S,timezone:T,gridLabelId:I}=r,P=zn(r,mxt),{value:M,handleValueChange:N,timezone:R}=n5({name:"YearCalendar",timezone:T,value:o,defaultValue:s,onChange:h,valueManager:bd}),O=$D(R),D=em(),L=Ar(),k=C.useMemo(()=>bd.getInitialReferenceValue({value:M,utils:L,props:r,timezone:R,referenceDate:l,granularity:Lc.year}),[]),B=r,H=gxt(B),$=C.useMemo(()=>L.getYear(O),[L,O]),W=C.useMemo(()=>M!=null?L.getYear(M):g?null:L.getYear(k),[M,L,g,k]),[K,le]=C.useState(()=>W||$),[U,q]=Wo({name:"YearCalendar",state:"hasFocus",controlled:w,default:i??!1}),z=Lt(me=>{q(me),x&&x(me)}),ne=C.useCallback(me=>{if(d&&L.isBeforeYear(me,O)||u&&L.isAfterYear(me,O)||p&&L.isBeforeYear(me,p)||f&&L.isAfterYear(me,f))return!0;if(!b)return!1;const Z=L.startOfYear(me);return b(Z)},[u,d,f,p,O,b,L]),G=Lt((me,Z)=>{if(v)return;const _e=L.setYear(M??k,Z);N(_e)}),te=Lt(me=>{ne(L.setYear(M??k,me))||(le(me),z(!0),y==null||y(me))});C.useEffect(()=>{le(me=>W!==null&&me!==W?W:me)},[W]);const Y=Lt((me,Z)=>{switch(me.key){case"ArrowUp":te(Z-S),me.preventDefault();break;case"ArrowDown":te(Z+S),me.preventDefault();break;case"ArrowLeft":te(Z+(D.direction==="ltr"?-1:1)),me.preventDefault();break;case"ArrowRight":te(Z+(D.direction==="ltr"?1:-1)),me.preventDefault();break}}),fe=Lt((me,Z)=>{te(Z)}),pe=Lt((me,Z)=>{K===Z&&z(!1)}),de=C.useRef(null),se=jn(n,de);return C.useEffect(()=>{if(i||de.current===null)return;const me=de.current.querySelector('[tabindex="0"]');if(!me)return;const Z=me.offsetHeight,_e=me.offsetTop,Me=de.current.clientHeight,Ne=de.current.scrollTop,ge=_e+Z;Z>Me||_e{const Z=L.getYear(me),_e=Z===W,Me=c||ne(me);return be(pxt,{selected:_e,value:Z,onClick:G,onKeyDown:Y,autoFocus:U&&Z===K,disabled:Me,tabIndex:Z===K?0:-1,onFocus:fe,onBlur:pe,"aria-current":$===Z?"date":void 0,yearsPerRow:S,children:L.format(me,"year")},L.format(me,"year"))})}))}),_xt=t=>Et("MuiPickersCalendarHeader",t),wxt=St("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),xxt=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],Ext=["ownerState"],Sxt=t=>{const{classes:e}=t;return xt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},_xt,e)},Cxt=He("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Txt=He("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>ze({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})),Axt=He("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(t,e)=>e.label})({marginRight:6}),Ixt=He(ir,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(t,e)=>e.switchViewButton})(({ownerState:t})=>ze({marginRight:"auto"},t.view==="year"&&{[`.${wxt.switchViewIcon}`]:{transform:"rotate(180deg)"}})),Mxt=He(Z_t,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(t,e)=>e.switchViewIcon})(({theme:t})=>({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"})),Dxt=C.forwardRef(function(e,n){var r,i,a,o;const s=vp(),l=Ar(),c=ia({props:e,name:"MuiPickersCalendarHeader"}),{slots:u,slotProps:d,components:f,currentMonth:p,disabled:h,disableFuture:v,disablePast:b,maxDate:g,minDate:y,onMonthChange:w,onViewChange:x,view:S,reduceAnimations:T,views:I,labelId:P,className:M,timezone:N}=c,R=zn(c,xxt),O=c,D=Sxt(c),L=(r=(i=u==null?void 0:u.switchViewButton)!=null?i:f==null?void 0:f.SwitchViewButton)!=null?r:Ixt,k=Ui({elementType:L,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(S)},ownerState:O,className:D.switchViewButton}),B=(a=(o=u==null?void 0:u.switchViewIcon)!=null?o:f==null?void 0:f.SwitchViewIcon)!=null?a:Mxt,H=Ui({elementType:B,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:D.switchViewIcon}),$=zn(H,Ext),W=()=>w(l.addMonths(p,1),"left"),K=()=>w(l.addMonths(p,-1),"right"),le=nwt(p,{disableFuture:v,maxDate:g,timezone:N}),U=rwt(p,{disablePast:b,minDate:y,timezone:N}),q=()=>{if(!(I.length===1||!x||h))if(I.length===2)x(I.find(z=>z!==S)||I[0]);else{const z=I.indexOf(S)!==0?0:1;x(I[z])}};return I.length===1&&I[0]==="year"?null:Vt(Cxt,ze({},R,{ownerState:O,className:bo(M,D.root),ref:n,children:[Vt(Txt,{role:"presentation",onClick:q,ownerState:O,"aria-live":"polite",className:D.labelContainer,children:[be(Jce,{reduceAnimations:T,transKey:l.format(p,"monthAndYear"),children:be(Axt,{id:P,ownerState:O,className:D.label,children:l.format(p,"monthAndYear")})}),I.length>1&&!h&&be(L,ze({},k,{children:be(B,ze({},$))}))]}),be(E0,{in:S==="day",children:be(d1t,{slots:u,slotProps:d,onGoToPrevious:K,isPreviousDisabled:U,previousLabel:s.previousMonth,onGoToNext:W,isNextDisabled:le,nextLabel:s.nextMonth})})]}))}),Pxt=He("div")({overflow:"hidden",width:UD,maxHeight:e5,display:"flex",flexDirection:"column",margin:"0 auto"}),Rxt=t=>Et("MuiDateCalendar",t);St("MuiDateCalendar",["root","viewTransitionContainer"]);const Oxt=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],Nxt=t=>{const{classes:e}=t;return xt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Rxt,e)};function Lxt(t,e){var n,r,i,a,o,s,l;const c=Ar(),u=ax(),d=Lce(),f=ia({props:t,name:e});return ze({},f,{loading:(n=f.loading)!=null?n:!1,disablePast:(r=f.disablePast)!=null?r:!1,disableFuture:(i=f.disableFuture)!=null?i:!1,openTo:(a=f.openTo)!=null?a:"day",views:(o=f.views)!=null?o:["year","day"],reduceAnimations:(s=f.reduceAnimations)!=null?s:d,renderLoading:(l=f.renderLoading)!=null?l:()=>be("span",{children:"..."}),minDate:Il(c,f.minDate,u.minDate),maxDate:Il(c,f.maxDate,u.maxDate)})}const kxt=He(Pxt,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",height:e5}),Fxt=He(Jce,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(t,e)=>e.viewTransitionContainer})({}),$xt=C.forwardRef(function(e,n){var r,i,a;const o=Ar(),s=ap(),l=Lxt(e,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:d,defaultValue:f,referenceDate:p,disableFuture:h,disablePast:v,defaultCalendarMonth:b,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:x,shouldDisableDate:S,shouldDisableMonth:T,shouldDisableYear:I,view:P,views:M,openTo:N,className:R,disabled:O,readOnly:D,minDate:L,maxDate:k,disableHighlightToday:B,focusedView:H,onFocusedViewChange:$,showDaysOutsideCurrentMonth:W,fixedWeekNumber:K,dayOfWeekFormatter:le,components:U,componentsProps:q,slots:z,slotProps:ne,loading:G,renderLoading:te,displayWeekNumber:Y,yearsPerRow:fe,monthsPerRow:pe,timezone:de}=l,se=zn(l,Oxt),{value:me,handleValueChange:Z,timezone:_e}=n5({name:"DateCalendar",timezone:de,value:d,defaultValue:f,onChange:g,valueManager:bd}),{view:Me,setView:Ne,focusedView:ge,setFocusedView:ee,goToNextView:Q,setValueAndGoToNextView:V}=Fce({view:P,views:M,openTo:N,onChange:Z,onViewChange:u,autoFocus:c,focusedView:H,onFocusedViewChange:$}),{referenceDate:j,calendarState:ye,changeFocusedDay:ae,changeMonth:Ee,handleChangeMonth:Pe,isDateDisabled:We,onMonthSwitchingAnimationEnd:Fe}=Lwt({value:me,defaultCalendarMonth:b,referenceDate:p,reduceAnimations:x,onMonthChange:w,minDate:L,maxDate:k,shouldDisableDate:S,disablePast:v,disableFuture:h,timezone:_e}),Ae=O&&me||L,he=O&&me||k,Ye=`${s}-grid-label`,Ke=ge!==null,Je=(r=(i=z==null?void 0:z.calendarHeader)!=null?i:U==null?void 0:U.CalendarHeader)!=null?r:Dxt,nt=Ui({elementType:Je,externalSlotProps:(a=ne==null?void 0:ne.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:M,view:Me,currentMonth:ye.currentMonth,onViewChange:Ne,onMonthChange:(we,Be)=>Pe({newMonth:we,direction:Be}),minDate:Ae,maxDate:he,disabled:O,disablePast:v,disableFuture:h,reduceAnimations:x,timezone:_e,labelId:Ye,slots:z,slotProps:ne},ownerState:l}),je=Lt(we=>{const Be=o.startOfMonth(we),pt=o.endOfMonth(we),Ot=We(we)?E_({utils:o,date:we,minDate:o.isBefore(L,Be)?Be:L,maxDate:o.isAfter(k,pt)?pt:k,disablePast:v,disableFuture:h,isDateDisabled:We,timezone:_e}):we;Ot?(V(Ot,"finish"),w==null||w(Be)):(Q(),Ee(Be)),ae(Ot,!0)}),Ue=Lt(we=>{const Be=o.startOfYear(we),pt=o.endOfYear(we),Ot=We(we)?E_({utils:o,date:we,minDate:o.isBefore(L,Be)?Be:L,maxDate:o.isAfter(k,pt)?pt:k,disablePast:v,disableFuture:h,isDateDisabled:We,timezone:_e}):we;Ot?(V(Ot,"finish"),y==null||y(Ot)):(Q(),Ee(Be)),ae(Ot,!0)}),at=Lt(we=>Z(we&&AA(o,we,me??j),"finish",Me));C.useEffect(()=>{me!=null&&o.isValid(me)&&Ee(me)},[me]);const vt=l,At=Nxt(vt),Xt={disablePast:v,disableFuture:h,maxDate:k,minDate:L},on={disableHighlightToday:B,readOnly:D,disabled:O,timezone:_e,gridLabelId:Ye},X=C.useRef(Me);C.useEffect(()=>{X.current!==Me&&(ge===X.current&&ee(Me,!0),X.current=Me)},[ge,ee,Me]);const ce=C.useMemo(()=>[me],[me]);return Vt(kxt,ze({ref:n,className:bo(At.root,R),ownerState:vt},se,{children:[be(Je,ze({},nt)),be(Fxt,{reduceAnimations:x,className:At.viewTransitionContainer,transKey:Me,ownerState:vt,children:Vt("div",{children:[Me==="year"&&be(bxt,ze({},Xt,on,{value:me,onChange:Ue,shouldDisableYear:I,hasFocus:Ke,onFocusedViewChange:we=>ee("year",we),yearsPerRow:fe,referenceDate:j})),Me==="month"&&be(sxt,ze({},Xt,on,{hasFocus:Ke,className:R,value:me,onChange:je,shouldDisableMonth:T,onFocusedViewChange:we=>ee("month",we),monthsPerRow:pe,referenceDate:j})),Me==="day"&&be(Owt,ze({},ye,Xt,on,{onMonthSwitchingAnimationEnd:Fe,onFocusedDayChange:ae,reduceAnimations:x,selectedDays:ce,onSelectedDaysChange:at,shouldDisableDate:S,shouldDisableMonth:T,shouldDisableYear:I,hasFocus:Ke,onFocusedViewChange:we=>ee("day",we),showDaysOutsideCurrentMonth:W,fixedWeekNumber:K,dayOfWeekFormatter:le,displayWeekNumber:Y,components:U,componentsProps:q,slots:z,slotProps:ne,loading:G,renderLoading:te}))]})})]}))}),yv=({view:t,onViewChange:e,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:o,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:h,shouldDisableDate:v,shouldDisableMonth:b,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:x,onYearChange:S,yearsPerRow:T,defaultCalendarMonth:I,components:P,componentsProps:M,slots:N,slotProps:R,loading:O,renderLoading:D,disableHighlightToday:L,readOnly:k,disabled:B,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:$,sx:W,autoFocus:K,fixedWeekNumber:le,displayWeekNumber:U,timezone:q})=>be($xt,{view:t,onViewChange:e,views:n.filter(p7),focusedView:r&&p7(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:o,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:h,shouldDisableDate:v,shouldDisableMonth:b,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:x,onYearChange:S,yearsPerRow:T,defaultCalendarMonth:I,components:P,componentsProps:M,slots:N,slotProps:R,loading:O,renderLoading:D,disableHighlightToday:L,readOnly:k,disabled:B,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:$,sx:W,autoFocus:K,fixedWeekNumber:le,displayWeekNumber:U,timezone:q}),Qce=C.forwardRef(function(e,n){var r,i,a,o;const s=vp(),l=Ar(),c=Nce(e,"MuiDesktopDatePicker"),u=ze({day:yv,month:yv,year:yv},c.viewRenderers),d=ze({},c,{viewRenderers:u,format:X4(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:ze({openPickerIcon:n1t,field:Yce},c.slots),slotProps:ze({},c.slotProps,{field:p=>{var h;return ze({},w4((h=c.slotProps)==null?void 0:h.field,p),zce(c),{ref:n})},toolbar:ze({hidden:!0},(i=c.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:f}=Bwt({props:d,valueManager:bd,valueType:"date",getOpenDialogAriaText:(a=(o=d.localeText)==null?void 0:o.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:HD});return f()});Qce.propTypes={autoFocus:Ie.bool,className:Ie.string,closeOnSelect:Ie.bool,components:Ie.object,componentsProps:Ie.object,dayOfWeekFormatter:Ie.func,defaultCalendarMonth:Ie.any,defaultValue:Ie.any,disabled:Ie.bool,disableFuture:Ie.bool,disableHighlightToday:Ie.bool,disableOpenPicker:Ie.bool,disablePast:Ie.bool,displayWeekNumber:Ie.bool,fixedWeekNumber:Ie.number,format:Ie.string,formatDensity:Ie.oneOf(["dense","spacious"]),inputRef:ree,label:Ie.node,loading:Ie.bool,localeText:Ie.object,maxDate:Ie.any,minDate:Ie.any,monthsPerRow:Ie.oneOf([3,4]),name:Ie.string,onAccept:Ie.func,onChange:Ie.func,onClose:Ie.func,onError:Ie.func,onMonthChange:Ie.func,onOpen:Ie.func,onSelectedSectionsChange:Ie.func,onViewChange:Ie.func,onYearChange:Ie.func,open:Ie.bool,openTo:Ie.oneOf(["day","month","year"]),orientation:Ie.oneOf(["landscape","portrait"]),readOnly:Ie.bool,reduceAnimations:Ie.bool,referenceDate:Ie.any,renderLoading:Ie.func,selectedSections:Ie.oneOfType([Ie.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ie.number,Ie.shape({endIndex:Ie.number.isRequired,startIndex:Ie.number.isRequired})]),shouldDisableDate:Ie.func,shouldDisableMonth:Ie.func,shouldDisableYear:Ie.func,showDaysOutsideCurrentMonth:Ie.bool,slotProps:Ie.object,slots:Ie.object,sx:Ie.oneOfType([Ie.arrayOf(Ie.oneOfType([Ie.func,Ie.object,Ie.bool])),Ie.func,Ie.object]),timezone:Ie.string,value:Ie.any,view:Ie.oneOf(["day","month","year"]),viewRenderers:Ie.shape({day:Ie.func,month:Ie.func,year:Ie.func}),views:Ie.arrayOf(Ie.oneOf(["day","month","year"]).isRequired),yearsPerRow:Ie.oneOf([3,4])};const Bxt=["props","getOpenDialogAriaText"],Uxt=t=>{var e,n,r;let{props:i,getOpenDialogAriaText:a}=t,o=zn(t,Bxt);const{slots:s,slotProps:l,className:c,sx:u,format:d,formatDensity:f,timezone:p,name:h,label:v,inputRef:b,readOnly:g,disabled:y,localeText:w}=i,x=Ar(),S=C.useRef(null),T=ap(),I=(e=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?e:!1,{open:P,actions:M,layoutProps:N,renderCurrentView:R,fieldProps:O}=$ce(ze({},o,{props:i,inputRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),D=s.field,L=Ui({elementType:D,externalSlotProps:l==null?void 0:l.field,additionalProps:ze({},O,I&&{id:T},!(y||g)&&{onClick:M.onOpen,onKeyDown:y1t(M.onOpen)},{readOnly:g??!0,disabled:y,className:c,sx:u,format:d,formatDensity:f,timezone:p,label:v,name:h}),ownerState:i});L.inputProps=ze({},L.inputProps,{"aria-label":a(O.value,x)});const k=ze({textField:s.textField},L.slots),B=(r=s.layout)!=null?r:Hce,H=jn(S,L.inputRef,b);let $=T;I&&(v?$=`${T}-label`:$=void 0);const W=ze({},l,{toolbar:ze({},l==null?void 0:l.toolbar,{titleId:T}),mobilePaper:ze({"aria-labelledby":$},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>Vt(FD,{localeText:w,children:[be(D,ze({},L,{slots:k,slotProps:W,inputRef:H})),be(m1t,ze({},M,{open:P,slots:s,slotProps:W,children:be(B,ze({},N,W==null?void 0:W.layout,{slots:s,slotProps:W,children:R()}))}))]})}},Kce=C.forwardRef(function(e,n){var r,i,a;const o=vp(),s=Ar(),l=Nce(e,"MuiMobileDatePicker"),c=ze({day:yv,month:yv,year:yv},l.viewRenderers),u=ze({},l,{viewRenderers:c,format:X4(s,l,!1),slots:ze({field:Yce},l.slots),slotProps:ze({},l.slotProps,{field:f=>{var p;return ze({},w4((p=l.slotProps)==null?void 0:p.field,f),zce(l),{ref:n})},toolbar:ze({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=Uxt({props:u,valueManager:bd,valueType:"date",getOpenDialogAriaText:(i=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?i:o.openDatePickerDialogue,validator:HD});return d()});Kce.propTypes={autoFocus:Ie.bool,className:Ie.string,closeOnSelect:Ie.bool,components:Ie.object,componentsProps:Ie.object,dayOfWeekFormatter:Ie.func,defaultCalendarMonth:Ie.any,defaultValue:Ie.any,disabled:Ie.bool,disableFuture:Ie.bool,disableHighlightToday:Ie.bool,disableOpenPicker:Ie.bool,disablePast:Ie.bool,displayWeekNumber:Ie.bool,fixedWeekNumber:Ie.number,format:Ie.string,formatDensity:Ie.oneOf(["dense","spacious"]),inputRef:ree,label:Ie.node,loading:Ie.bool,localeText:Ie.object,maxDate:Ie.any,minDate:Ie.any,monthsPerRow:Ie.oneOf([3,4]),name:Ie.string,onAccept:Ie.func,onChange:Ie.func,onClose:Ie.func,onError:Ie.func,onMonthChange:Ie.func,onOpen:Ie.func,onSelectedSectionsChange:Ie.func,onViewChange:Ie.func,onYearChange:Ie.func,open:Ie.bool,openTo:Ie.oneOf(["day","month","year"]),orientation:Ie.oneOf(["landscape","portrait"]),readOnly:Ie.bool,reduceAnimations:Ie.bool,referenceDate:Ie.any,renderLoading:Ie.func,selectedSections:Ie.oneOfType([Ie.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ie.number,Ie.shape({endIndex:Ie.number.isRequired,startIndex:Ie.number.isRequired})]),shouldDisableDate:Ie.func,shouldDisableMonth:Ie.func,shouldDisableYear:Ie.func,showDaysOutsideCurrentMonth:Ie.bool,slotProps:Ie.object,slots:Ie.object,sx:Ie.oneOfType([Ie.arrayOf(Ie.oneOfType([Ie.func,Ie.object,Ie.bool])),Ie.func,Ie.object]),timezone:Ie.string,value:Ie.any,view:Ie.oneOf(["day","month","year"]),viewRenderers:Ie.shape({day:Ie.func,month:Ie.func,year:Ie.func}),views:Ie.arrayOf(Ie.oneOf(["day","month","year"]).isRequired),yearsPerRow:Ie.oneOf([3,4])};const Hxt=["desktopModeMediaQuery"],f3=C.forwardRef(function(e,n){const r=ia({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=b1t}=r,a=zn(r,Hxt);return Vee(i,{defaultMatches:!0})?be(Qce,ze({ref:n},a)):be(Kce,ze({ref:n},a))}),Vxt=async()=>(await Bn.post(wae)).data,E7=[{code:1,name:"掲載予定"},{code:2,name:"掲載中"},{code:3,name:"他社商談中"},{code:4,name:"申込中"},{code:5,name:"落札"}],S7=[{code:0,name:"5万km未満"},{code:1,name:"5万km以上~10万km未満"},{code:2,name:"10万km以上"}],C7=[{code:1,name:"申込中"},{code:2,name:"落札"},{code:3,name:"エラー"}],T7=[{code:1,name:"未ダウンロード"},{code:2,name:"ダウンロード済み"}],A7=[{code:1,name:"未搬出"},{code:2,name:"搬出済み"}],zxt=t=>{const{handleStartDateChange:e,handleEndDateChange:n,handleOfferStatusChange:r,handlenotifyDlChange:i,handleCarryChange:a,startDateData:o,endDateData:s,offerStatusData:l,notifyDlData:c,carryData:u,clearFilterData:d,setCorpResponseData:f,corpNameData:p,handleUserIdChange:h,selectCorpData:v}=t;t.isAdmin&&fr(Ei.CORP_LIST,()=>Vxt(),{refetchOnWindowFocus:!1,onSuccess:w=>{f(w)}});const b=w=>{let x="";return C7.map(S=>{S.code===w&&(x=S.name)}),x},g=w=>{let x="";return T7.map(S=>{S.code===w&&(x=S.name)}),x},y=w=>{let x="";return A7.map(S=>{S.code===w&&(x=S.name)}),x};return re(lt,{container:!0,spacing:1,sx:{width:"365px"},children:[E(lt,{xs:12,children:E(FD,{dateAdapter:xce,adapterLocale:SD,dateFormats:{monthAndYear:"yyyy年 MM月"},localeText:{previousMonth:"前月を表示",nextMonth:"次月を表示",cancelButtonLabel:"キャンセル",okButtonLabel:"選択"},children:re("div",{className:Yu.datePickerGroup,children:[re("div",{className:Yu.datePicker,children:[E(f3,{sx:{"& .MuiOutlinedInput-input":{padding:"16.5px 5px"}},value:o,onChange:e,maxDate:new Date,slotProps:{toolbar:{toolbarFormat:"yyyy年MM月dd日"},textField:{variant:"outlined"}}}),E("div",{style:{paddingLeft:"4px"},children:"から"})]}),re("div",{className:Yu.datePicker,children:[E(f3,{sx:{"& .MuiOutlinedInput-input":{padding:"16.5px 3px"}},value:s,onChange:n,maxDate:new Date,slotProps:{toolbar:{toolbarFormat:"yyyy年MM月dd日"},textField:{variant:"outlined"}}}),E("div",{style:{paddingLeft:"4px"},children:"まで"})]})]})})}),E(lt,{xs:12,children:E(Rh,{})}),E(lt,{xs:3,sx:{fontWeight:"600"},children:"絞込み"}),E(lt,{xs:9,children:E("a",{href:"#",onClick:w=>{w.preventDefault(),d()},children:"絞込みのクリア"})}),E(lt,{xs:12,children:re(lt,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",sx:{maxHeight:"30rem",overflow:"auto"},children:[t.isAdmin&&re(ic,{sx:{margin:1,width:300},children:[E(zc,{id:"mileage-checkbox-label",children:"会社名"}),E(dl,{labelId:"mileage-checkbox-label",id:"mileage-checkbox",value:v,input:E(ul,{label:"会社名"}),renderValue:w=>w==null?void 0:w.join(", "),onChange:w=>{h(w)},multiple:!0,MenuProps:ed,children:p==null?void 0:p.map((w,x)=>re(jc,{value:w,children:[E(mo,{checked:v!==null&&v.includes(w)}),E(fs,{primary:w})]},`offerUserNameList${x}`))})]}),re(ic,{sx:{margin:1,width:300},children:[E(zc,{id:"mileage-checkbox-label",children:"申込状態"}),E(dl,{labelId:"mileage-checkbox-label",id:"mileage-checkbox",value:l??[],input:E(ul,{label:"申込状態"}),renderValue:w=>w.map(x=>b(x)).join(", "),onChange:w=>{r(w)},multiple:!0,MenuProps:ed,children:C7.map((w,x)=>re(jc,{value:w.code,children:[E(mo,{checked:l!==null&&l.includes(w.code)}),E(fs,{primary:w.name})]},`offerStatusNameList${x}`))})]}),re(ic,{sx:{margin:1,width:300},children:[E(zc,{id:"mileage-checkbox-label",children:"落札通知書"}),E(dl,{labelId:"mileage-checkbox-label",id:"mileage-checkbox",value:c??[],input:E(ul,{label:"落札通知書"}),renderValue:w=>w.map(x=>g(x)).join(", "),onChange:w=>{i(w)},multiple:!0,MenuProps:ed,children:T7.map((w,x)=>re(jc,{value:w.code,children:[E(mo,{checked:c!==null&&c.includes(w.code)}),E(fs,{primary:w.name})]},`offerStatusNameList${x}`))})]}),re(ic,{sx:{margin:1,width:300},children:[E(zc,{id:"mileage-checkbox-label",children:"搬出"}),E(dl,{labelId:"mileage-checkbox-label",id:"mileage-checkbox",value:u??[],input:E(ul,{label:"搬出"}),renderValue:w=>w.map(x=>y(x)).join(", "),onChange:w=>{a(w)},multiple:!0,MenuProps:ed,children:A7.map((w,x)=>re(jc,{value:w.code,children:[E(mo,{checked:u!==null&&u.includes(w.code)}),E(fs,{primary:w.name})]},`offerStatusNameList${x}`))})]})]})})]})},MA={width:1e3,height:768},jxt="#ffffff",Gxt="#29a03b",Wxt="#c2d93d",qxt="#808080",Yxt="#D9D9D9",Jxt="#ccc",Qxt="rgba(242, 242, 242, 0.4588235294)",Kxt="2rem",Xxt="1.5rem",Zxt="14px",eEt="65rem",tEt="_jaraMain_13lqz_19",nEt="_cardBox_13lqz_30",rEt="_cardArea_13lqz_34",iEt="_vehicleTextArea_13lqz_39",aEt="_vehicleTitle_13lqz_45",oEt="_vehicleText_13lqz_39",sEt="_footText_13lqz_55",bg={baseColor:jxt,primaryColor:Gxt,secondColor:Wxt,neutralColor:qxt,hatchingColor:Yxt,borderColor:Jxt,evevRowColor:Qxt,largeFont:Kxt,mediumFont:Xxt,smallFont:Zxt,pagePCMinWidth:eEt,jaraMain:tEt,cardBox:nEt,cardArea:rEt,vehicleTextArea:iEt,vehicleTitle:aEt,vehicleText:oEt,footText:sEt};var r5={},lEt=hn;Object.defineProperty(r5,"__esModule",{value:!0});var ox=r5.default=void 0,cEt=lEt(bn()),uEt=_n;ox=r5.default=(0,cEt.default)((0,uEt.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");var i5={},dEt=hn;Object.defineProperty(i5,"__esModule",{value:!0});var Xce=i5.default=void 0,fEt=dEt(bn()),pEt=_n;Xce=i5.default=(0,fEt.default)((0,pEt.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download");const hEt=async t=>(await Bn.post(Gje,{id:t},{timeout:15e3})).data,mEt=async t=>(await Bn.post(vae,{id:t},{timeout:6e4})).data,Zce=(t,e)=>{const r=t.split("/").pop(),i=document.createElement("a");i.href=t,i.target="_blank",i.rel="noreferrer",e?i.download=e:i.download=r||`${new Date().toISOString()}.pdf`,document.body.appendChild(i),i.click(),document.body.removeChild(i)},a5=()=>{const t="user",e="admin",n=window.location.href,r=Dl(),i=()=>{n.includes(t)&&r.invalidateQueries(Ei.USER_LIST_OFFER_VEHICLE),n.includes(e)&&r.invalidateQueries(Ei.ADMIN_LIST_OFFER_VEHICLE)},[a,o]=C.useState(!1),[s,l]=C.useState(null),c=y=>{o(!0),l(y)},u=()=>{o(!0),l(null)},d=()=>{u(),i()},{setIsDownloadingPDF:f,isDownloadingPDF:p}=ui(),[h,v]=C.useState(!1);return{handleCarryOut:(y,w)=>{y.stopPropagation(),w!==0&&hEt(w).then(()=>{i()})},handleNotificationDownload:(y,w)=>{p||(f(!0),v(!0),setTimeout(()=>{y!==0&&mEt(y).then(x=>{switch(f(!1),v(!1),x.result.code){case 0:x.s3key&&(w?c(x.s3key):(Zce(x.s3key),i()));break}}),f(!1),v(!1)},1e3))},mobileDownloadDialogOpen:a,mobileDownloadS3key:s,handleDownloadDialogClose:u,handleMobleAfterDownloadLinkClick:d,showCircularProgress:h}},gEt=t=>{const{vItem:e,isDetailPage:n}=t,{handleCarryOut:r,handleNotificationDownload:i,mobileDownloadDialogOpen:a,mobileDownloadS3key:o,handleDownloadDialogClose:s,handleMobleAfterDownloadLinkClick:l}=a5(),c=!e.notifDlTime&&e.status!=="落札",u=()=>E("div",{style:{height:"0.6rem"}});return E(oi,{children:!n&&re(Cw,{variant:"outlined",className:bg.cardArea,children:[re(lt,{container:!0,children:[E(lt,{xs:5,children:E("img",{style:{width:"100%",padding:"1rem"},src:e.imagePath,alt:"car-thumbnail"})}),E(lt,{xs:7,children:re(Va,{elevation:0,className:bg.vehicleTextArea,children:[E("div",{className:bg.vehicleTitle,children:`${e.name}${e.grade}`}),E(u,{}),E("div",{className:bg.vehicleText,children:re("div",{style:{textAlign:"left"},children:[e.yearEra===""&&"年式:",e.yearEra!==""&&Number(e.registMonth)===0&&`年式:${e.yearEra}${e.yearJa}年`,e.yearEra!==""&&Number(e.registMonth)!==0&&`年式:${e.yearEra}${e.yearJa}年 ${e.registMonth}月`,E("br",{}),`車台番号:${e.chassis}`]})})]})}),E(lt,{xs:12,children:re("div",{className:bg.footText,children:[re("div",{children:["購入車両総額 :",E("span",{style:{fontSize:"1.5rem"},children:e.price})]}),E("div",{children:e.offeredTime&&`申込日時:${br(e.offeredTime,"MM月DD日 hh:mm")}`}),E("div",{children:e.winBidTime&&`落札日時:${br(e.winBidTime,"MM月DD日 hh:mm")}`}),re("div",{children:[E(ir,{onClick:d=>{d.stopPropagation(),e.status==="落札"&&i(e.id,!0)},disableFocusRipple:c,disableTouchRipple:c,disableRipple:c,children:E(Xce,{style:{color:e.notifDlTime?ft.baseColor:e.status==="落札"&&!e.notifDlTime?ft.secondColor:ft.hatchingColor,backgroundColor:e.notifDlTime?ft.primaryColor:"transparent",position:"relative"}})}),e.notifDlTime&&br(e.notifDlTime,"MM月DD日 hh:mm")]}),re("div",{onClick:d=>{e.notifDlTime&&!e.carryTime&&r(d,e.id)},children:[re("span",{style:{border:`3px solid ${e.carryTime?ft.neutralColor:e.notifDlTime?ft.secondColor:ft.neutralColor}`,borderColor:e.carryTime?ft.primaryColor:e.notifDlTime?ft.secondColor:ft.neutralColor},children:[E(ox,{style:{color:e.carryTime?ft.primaryColor:e.notifDlTime?ft.secondColor:ft.neutralColor,position:"relative"}}),E("span",{style:{padding:"5px",color:e.carryTime?ft.primaryColor:e.notifDlTime?ft.secondColor:ft.neutralColor},children:e.carryTime!==null?"搬出完了":"未搬出"})]}),e.carryTime&&br(e.carryTime,"MM月DD日 hh:mm")]})]})})]}),o&&E("div",{onClick:d=>{d.stopPropagation()},children:E(fu,{open:a,dialogTitle:"落札通知書ダウンロード完了",handleClose:s,KanjiCloseButton:!0,children:E("a",{href:o,target:"_blank",rel:"noreferrer",onClick:l,children:o.split("/").pop()})})})]})})},vEt=t=>{var i;const{isAdmin:e,offerListData:n,handleNavigation:r}=t;return E(zr,{className:bg.cardBox,children:(i=n==null?void 0:n.vehicleList)==null?void 0:i.map((a,o)=>E("div",{id:`mobile-vehicle-card${o}`,style:{padding:"1rem"},onClick:()=>{r(a.postCode)},children:E(gEt,{vItem:a,isAdmin:e,vIndex:o})},`mobile-vehicle-card${o}`))})},yEt="#ffffff",bEt="#29a03b",_Et="#c2d93d",wEt="#808080",xEt="#D9D9D9",EEt="#ccc",SEt="rgba(242, 242, 242, 0.4588235294)",CEt="2rem",TEt="1.5rem",AEt="14px",IEt="65rem",MEt="_jaraMain_1nqlz_19",DEt="_tableWrapper_1nqlz_29",PEt="_table_1nqlz_29",REt="_styledThead_1nqlz_55",OEt="_tableHeadText_1nqlz_65",NEt="_arrow_1nqlz_72",LEt="_bottomIconBarEnabled_1nqlz_77",kEt="_bottomIconBarUnabled_1nqlz_84",nl={baseColor:yEt,primaryColor:bEt,secondColor:_Et,neutralColor:wEt,hatchingColor:xEt,borderColor:EEt,evevRowColor:SEt,largeFont:CEt,mediumFont:TEt,smallFont:AEt,pagePCMinWidth:IEt,jaraMain:MEt,tableWrapper:DEt,table:PEt,styledThead:REt,tableHeadText:OEt,arrow:NEt,bottomIconBarEnabled:LEt,bottomIconBarUnabled:kEt},FEt=t=>{const[e,n]=Wi(),{isDetailPage:r}=t,{offerEditFilter:i}=ui(),a=Xn.cloneDeep(Vle);a[1].push({code:-1,name:"車台番号"}),a.splice(9,1);const o=l=>{var d;const c=Xn.cloneDeep(i);((d=c==null?void 0:c.sortOrder)==null?void 0:d.column)===l?c.sortOrder.order=c.sortOrder.order===0?1:0:c!==null&&(c.sortOrder={column:l,order:0});const u=JSON.stringify(c);e.set("searchOption",u),n(e)},s=l=>{var u;let c="";return((u=i==null?void 0:i.sortOrder)==null?void 0:u.column)===l&&(c=i.sortOrder.order===1?"▼":"▲"),(i==null?void 0:i.sortOrder)===void 0&&(c=""),c};return re("thead",{className:nl.styledThead,children:[!r&&re("tr",{children:[t.isAdmin&&E("td",{rowSpan:2,className:nl.tableHeadText,children:"会社名"}),E("th",{rowSpan:2,style:{width:"115px"},children:E("div",{})}),re("th",{colSpan:2,style:{textAlign:"left"},children:[E("span",{className:nl.arrow,children:s(0)}),s(0).length>0?"":"",E("a",{href:"#",onClick:l=>{l.preventDefault(),o(0)},className:nl.tableHeadText,style:{fontSize:"14px"},children:"メーカー・車名・グレード"})]}),E("th",{colSpan:a.length+Kq.length-2})]}),re("tr",{children:[a.map((l,c)=>E("th",{align:"center",children:l.map((u,d)=>re("div",{children:[E("span",{className:nl.arrow}),E("span",{className:nl.tableHeadText,children:u.name})]},`pc-vehicle-table-head-row-${d}`))},`pc-vehicle-table-head-cell-${c}`)),Kq.map((l,c)=>E("th",{className:nl.tdStyle,align:"center",children:l.map((u,d)=>re("div",{children:[E("span",{className:nl.arrow,children:s(u.code)}),u.code==-1?E("span",{className:nl.tableHeadText,children:u.name}):re("span",{children:[s(u.code).length>0?"":"",E("a",{className:nl.tableHeadText,href:"#",onClick:f=>{f.preventDefault(),o(u.code)},children:u.name}),s(u.code).length>0?"":""]})]},`pc-vehicle-table-head-row-${d}`))},`pc-vehicle-table-head-cell-${c}`))]})]})};var o5={},$Et=hn;Object.defineProperty(o5,"__esModule",{value:!0});var eue=o5.default=void 0,BEt=$Et(bn()),UEt=_n;eue=o5.default=(0,BEt.default)((0,UEt.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined");const HEt=t=>{const{vehicleList:e}=t;return re("div",{children:[E(ri,{isEnabled:e==null?void 0:e.equip7Navi,children:"ナビ"}),E(ri,{isEnabled:e==null?void 0:e.equip5Aw,children:"AW"}),E(ri,{isEnabled:e==null?void 0:e.equip8Tv,children:"TV"}),E(ri,{isEnabled:e==null?void 0:e.equip6Sr,children:"SR"}),E(ri,{isEnabled:e==null?void 0:e.equip9Leather,children:"革"}),E(ri,{isEnabled:e==null?void 0:e.equip3Air,children:"エアB"}),E(ri,{isEnabled:e==null?void 0:e.equip1Ps,children:"PS"}),E(ri,{isEnabled:e==null?void 0:e.equip2Pw,children:"PW"}),E(ri,{isEnabled:e==null?void 0:e.equip4Abs,children:"ABS"}),E(ri,{isEnabled:e==null?void 0:e.equip10Warranty,children:"保証書"}),E(ri,{isEnabled:e==null?void 0:e.equip11Manual,children:"取説"})]})},VEt="#ffffff",zEt="#29a03b",jEt="#c2d93d",GEt="#808080",WEt="#D9D9D9",qEt="#ccc",YEt="rgba(242, 242, 242, 0.4588235294)",JEt="2rem",QEt="1.5rem",KEt="14px",XEt="65rem",ZEt="_jaraMain_153jp_19",eSt="_makerNameGrade_153jp_29",tSt="_oddRowStyle_153jp_36",nSt="_evenRowStyle_153jp_40",kp={baseColor:VEt,primaryColor:zEt,secondColor:jEt,neutralColor:GEt,hatchingColor:WEt,borderColor:qEt,evevRowColor:YEt,largeFont:JEt,mediumFont:QEt,smallFont:KEt,pagePCMinWidth:XEt,jaraMain:ZEt,makerNameGrade:eSt,oddRowStyle:tSt,evenRowStyle:nSt},rl=()=>E("div",{style:{height:"0rem"}}),rSt=(t,e)=>re("div",{children:[E(ir,{disabled:!0,children:E(ox,{style:{fontSize:"2rem",color:e!=="エラー"?ft.baseColor:ft.hatchingColor,position:"relative",backgroundColor:e!=="エラー"?ft.primaryColor:ft.hatchingColor,borderRadius:50}})}),E(rl,{}),E("div",{children:t?br(t,"MM/DD"):""}),E("div",{children:t?br(t,"hh:mm"):""})]}),iSt=(t,e)=>re("div",{children:[E(ir,{disabled:!0,children:E(ox,{style:{fontSize:"2rem",color:e==="落札"?ft.baseColor:"transparent",position:"relative",backgroundColor:e==="申込中"&&t==null?ft.secondColor:e==="落札"?ft.primaryColor:ft.hatchingColor,borderRadius:50}})}),E(rl,{}),re("div",{children:[E("div",{children:t?br(t,"MM/DD"):""}),E("div",{children:t?br(t,"hh:mm"):""})]})]}),aSt=(t,e,n)=>{const{handleNotificationDownload:r,showCircularProgress:i}=a5(),a=!t&&e!=="落札",o=()=>t?ft.baseColor:e==="落札"&&!t?ft.secondColor:ft.hatchingColor,s=()=>t?ft.primaryColor:"transparent";return re("div",{children:[i===!0?E(IM,{disableShrink:!0,sx:{color:ft.primaryColor}}):E(ir,{onClick:l=>{l.stopPropagation(),e==="落札"&&r(n)},disableFocusRipple:a,disableTouchRipple:a,disableRipple:a,disabled:i,children:E(eue,{style:{fontSize:"2rem",color:o(),position:"relative",backgroundColor:s(),borderRadius:50}})}),E(rl,{}),re("div",{children:[E("div",{children:t?br(t,"MM/DD"):""}),E("div",{children:t?br(t,"hh:mm"):""})]})]})},oSt=(t,e,n)=>{const{handleCarryOut:r}=a5();return re("div",{style:{marginTop:"7px"},children:[re("div",{style:{border:`3px solid ${e?ft.neutralColor:t?ft.secondColor:ft.hatchingColor}`,borderColor:e?ft.primaryColor:t?ft.secondColor:ft.hatchingColor},onClick:i=>{t&&!e&&r(i,n)},children:[E(ox,{style:{color:e?ft.primaryColor:t?ft.secondColor:ft.hatchingColor,position:"relative"}}),E("span",{style:{color:e?ft.primaryColor:t?ft.secondColor:ft.hatchingColor},children:e!==null?"搬出完了":"未搬出"})]}),re("div",{style:{marginTop:"5px"},children:[E("div",{children:e?br(e,"MM/DD"):""}),E("div",{children:e?br(e,"hh:mm"):""})]})]})},sSt=t=>{const{isAdmin:e,vItem:n,vIndex:r,handleClick:i,isDetailPage:a=!1}=t,o=v=>{const b=v.split("").reverse().join(""),g=b.length;let y="";if(g<=5)y=b;else for(let w=0;w0&&w%5===0&&(y+="-"),y+=b[w];return y.split("").reverse().join("")},[s,l]=C.useState(!1),c="#F2F2F2",u="background-color 0.1s ease",d=()=>{a||l(!0)},f=()=>{l(!1)},p=r%2===0,h=v=>{switch(v){case"落札":return"red";case"申込中":case"他社商談中":return"#1976d2";case"掲載中":return"black";case"掲載予定":return"gray";default:return"black"}};return re(oi,{children:[!a&&re("tr",{onMouseEnter:d,onMouseLeave:f,style:{backgroundColor:s?c:"",transition:s?u:"",cursor:a?"":"pointer"},onClick:()=>{i&&i(n.postCode)},className:p?kp.oddRowStyle:kp.evenRowStyle,children:[e&&E("td",{style:{width:"12rem",overflow:"hidden"},rowSpan:3,children:n.corpName}),E("td",{style:{paddingRight:"10px"},rowSpan:3,children:n.imagePath?E("div",{style:{display:"flex"},children:E("img",{src:n.imagePath,alt:"car-thumbnail"})}):""}),E("td",{className:kp.makerNameGrade,colSpan:10,children:`${n.name}${n.grade}`}),E("td",{rowSpan:3,children:rSt(n.offeredTime,n.status)}),E("td",{rowSpan:3,children:iSt(n.winBidTime,n.status)}),E("td",{rowSpan:3,children:aSt(n.notifDlTime,n.status,n.id)}),E("td",{rowSpan:3,children:oSt(n.notifDlTime,n.carryTime,n.id)})]}),re("tr",{onMouseEnter:d,onMouseLeave:f,style:{backgroundColor:s?c:"",transition:s?u:"",cursor:a?"":"pointer"},onClick:()=>{i&&i(n.postCode)},className:p?kp.oddRowStyle:kp.evenRowStyle,children:[re("td",{children:[E("div",{children:n.planName}),E(rl,{}),E("div",{children:n.venue})]}),re("td",{children:[o(n.postCode.toString()),E(rl,{}),n.chassis]}),E("td",{children:E(jle,{yearEra:n.yearEra,yearJa:n.yearJa,registMonth:n.registMonth,Spacer:rl})}),re("td",{children:[E("div",{children:n.model}),E(rl,{}),E("div",{children:n.displacement})]}),re("td",{children:[E("div",{children:`${n.mileage}千km${n.driveType??""}`}),E(rl,{}),E("div",{children:Y4(n.inspection,Number(n.registMonth))})]}),re("td",{children:[E("div",{children:n.colorCode}),E(rl,{}),E("div",{children:n.color})]}),re("td",{children:[E("div",{children:n.shift}),E(rl,{}),E("div",{children:n.airCon})]}),re("td",{children:[E("div",{children:n.totalScore}),E(rl,{}),E("div",{children:`${n.exteriorScore}/${n.interiorScore}`})]}),E("td",{style:{textAlign:"right"},children:`${fc(n.price.toString())}`}),re("td",{children:[E("div",{style:{color:h(n.status)},children:n.status}),E(rl,{}),E("div",{children:Gle(n.startTime,n.endTime)})]})]}),E("tr",{onMouseEnter:d,onMouseLeave:f,style:{height:"2rem",backgroundColor:s?c:"",transition:s?u:"",cursor:a?"":"pointer"},onClick:()=>{i&&i(n.postCode)},className:p?kp.oddRowStyle:kp.evenRowStyle,children:E("td",{colSpan:14,style:{textAlign:"left"},children:E(HEt,{vehicleList:n})})})]})},lSt=t=>{var i;const{isAdmin:e,offerListData:n,handleNavigation:r}=t;return E("div",{className:nl.tableWrapper,children:re("table",{id:"vehicle-table",className:nl.table,children:[E(FEt,{isAdmin:e}),E("tbody",{children:(i=n==null?void 0:n.vehicleList)==null?void 0:i.map((a,o)=>E(xe.Fragment,{children:E(oi,{children:E(sSt,{isAdmin:e,vItem:a,vIndex:o,handleClick:r})})},`vehicle-list-${o}`))})]})})},cSt=t=>{const{offerListData:e,isLoading:n}=t,{isMobile:r,isDownloadingPDF:i}=ui(),a=o=>{const s=t.isAdmin?`${ea}/${tr.MEMBER_OFFER}/${tr.MEMBER_OFFER_DETAIL}`:`${bs}/${vr.OFFERED}/${vr.OFFERED_DETAIL}`;window.open(`${s}?postCode=${o}`,"_blank",`toolbar=no, menubar=no, location=no, status=no, noreferrer, width=${MA.width}, height=${MA.height}`)};return re(oi,{children:[r===!1&&re("div",{style:{position:"relative",width:"100%"},children:[E(lSt,{isAdmin:t.isAdmin,offerListData:e,handleNavigation:a}),E(zh,{isMobile:r,isLoading:n,isDownloadingPDF:i,top:"30vh"})]}),r&&re("div",{children:[E(vEt,{isAdmin:t.isAdmin,offerListData:e,handleNavigation:a}),E(zh,{isMobile:r,isLoading:n,top:"30vh"})]})]})},tue=()=>{const[t,e]=C.useState(null);C.useEffect(()=>{window.location.href.includes(ea)?e(!0):e(!1)},[]);const{updateVehicleSearchParams:n,isLoading:r,responseVehicleData:i,handleStartDateChange:a,handleEndDateChange:o,startDate:s,endDate:l,statusData:c,handleStatusChange:u,notificationData:d,handleNotificationChange:f,carryData:p,handleCarryChange:h,outTradeListCSV:v,userIdData:b,setBeforeFilterData:g,cancelFilterData:y,clearFilterData:w,setCorpResponseData:x,corpNameData:S,handleUserIdChange:T,selectCorpData:I,csvData:P,csvLinkRef:M}=Wbt(),{isMobile:N,offerEditFilter:R}=ui(),[O,D]=C.useState(!1),L=()=>{const pe=Xn.cloneDeep(R);pe&&(pe.sortOrder=null,n(pe))};C.useEffect(()=>{const pe=(R==null?void 0:R.sortOrder)===null;D(pe)},[R]),C.useEffect(()=>{q()},[window.location.href]);const k=pe=>{const de={request:{limit:100,offset:pe?0:G-1},searchOption:{startDate:s,endDate:l,userId:b&&(b==null?void 0:b.length)>0?b:[],status:c&&(c==null?void 0:c.length)>0?c:[],notification:d&&(d==null?void 0:d.length)>0?d:[],carry:p&&(p==null?void 0:p.length)>0?p:[]},sortOrder:(R==null?void 0:R.sortOrder)??null};n(de)},[B,H]=C.useState(!1),$=()=>{g(),H(!0)},W=()=>{H(!1),k(!0)},K=()=>{y(),H(!1)},[le,U]=C.useState(!1),q=()=>{var se,me,Z,_e,Me,Ne,ge,ee;let pe=null;const de=z.get("searchOption");de&&(pe=JSON.parse(decodeURIComponent(de))),pe!=null&&pe.searchOption&&(((me=(se=pe==null?void 0:pe.searchOption)==null?void 0:se.userId)==null?void 0:me.length)!=0||((_e=(Z=pe==null?void 0:pe.searchOption)==null?void 0:Z.status)==null?void 0:_e.length)!=0||((Ne=(Me=pe==null?void 0:pe.searchOption)==null?void 0:Me.notification)==null?void 0:Ne.length)!=0||((ee=(ge=pe==null?void 0:pe.searchOption)==null?void 0:ge.carry)==null?void 0:ee.length)!=0)?U(!0):U(!1)},[z]=Wi(),ne=z.get("searchOption");let G=1;ne?G=JSON.parse(decodeURIComponent(ne)).request.offset+1:R!==null&&(G=R.request.offset+1);const te=i!=null&&i.totalCount?Math.ceil(i.totalCount/100):1,Y=pe=>{const de=Xn.cloneDeep(R);de!==null&&(de.request.offset=pe-1,n(de))},fe=()=>re("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",marginLeft:N?"1.3rem":""},children:[E("div",{style:N?{fontSize:"1.5rem",whiteSpace:"nowrap",marginRight:"-1.5rem"}:{fontSize:"1.5rem",marginLeft:"1rem"},children:`${i!=null&&i.totalCount?i==null?void 0:i.totalCount:0}件`}),E(Aw,{spacing:2,sx:{transform:N?"scale(0.9)":""},children:E(PM,{sx:{"&& .MuiPagination-ul":{flexWrap:"nowrap",width:"100%"}},count:te,page:G,onChange:(pe,de)=>{Y(de)}})})]});return re("div",{id:"jara-user-buy-page",className:Yu.userBuyPage,children:[E(zr,{id:"box",sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:re("div",{className:Yu.viewArea,children:[E("div",{id:"jara-edit-faq-page-topArea",className:Yu.topArea,children:re("div",{className:Yu.topButtonGroup,children:[!N&&t&&E(DD,{className:Yu.topButtonStyle,onClick:v,children:"CSV出力"}),P.length>=2&&E(Ebt,{ref:M,data:P,filename:"alpha_deal_"+br(new Date,"YYYYMMDDhhmmss"),target:"_blank"}),E(gp,{onClick:L,disabled:O,children:"ソートクリア"}),E(PD,{isSelected:le,onClick:$,children:"絞込み"}),!N&&E(fe,{})]})}),re("div",{className:Yu.tableArea,children:[N&&E(fe,{}),E(cSt,{isAdmin:t||!1,offerListData:i,isLoading:r})]})]})}),E(OD,{dialogTitle:"絞込み設定",open:B,handleClose:K,handleLeftArrow:W,children:E(zxt,{isAdmin:t,offerStatusData:c,notifyDlData:d,carryData:p,handleOfferStatusChange:u,handlenotifyDlChange:f,handleCarryChange:h,startDateData:s,endDateData:l,handleStartDateChange:a,handleEndDateChange:o,clearFilterData:w,setCorpResponseData:x,corpNameData:S||[],handleUserIdChange:T,selectCorpData:I||[]})})]})},uSt="#ffffff",dSt="#29a03b",fSt="#c2d93d",pSt="#808080",hSt="#D9D9D9",mSt="#ccc",gSt="rgba(242, 242, 242, 0.4588235294)",vSt="2rem",ySt="1.5rem",bSt="14px",_St="65rem",wSt="_jaraMain_1vf6f_19",xSt="_jaraFaqSubArea_1vf6f_31",ESt="_jaraFaqArea_1vf6f_35",I7={baseColor:uSt,primaryColor:dSt,secondColor:fSt,neutralColor:pSt,hatchingColor:hSt,borderColor:mSt,evevRowColor:gSt,largeFont:vSt,mediumFont:ySt,smallFont:bSt,pagePCMinWidth:_St,jaraMain:wSt,jaraFaqSubArea:xSt,jaraFaqArea:ESt},nue=async()=>(await Bn.post(sae)).data;var s5={},SSt=hn;Object.defineProperty(s5,"__esModule",{value:!0});var rue=s5.default=void 0,CSt=SSt(bn()),TSt=_n;rue=s5.default=(0,CSt.default)((0,TSt.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");const ASt="#ffffff",ISt="#29a03b",MSt="#c2d93d",DSt="#808080",PSt="#D9D9D9",RSt="#ccc",OSt="rgba(242, 242, 242, 0.4588235294)",NSt="2rem",LSt="1.5rem",kSt="14px",FSt="65rem",$St="_jaraMain_276mb_19",BSt="_categoryItem_276mb_31",USt="_categoryName_276mb_35",HSt="_jaraAccordion_276mb_42",VSt="_jaraAccordionSummary_276mb_48",zSt="_jaraAccordionDetails_276mb_52",fb={baseColor:ASt,primaryColor:ISt,secondColor:MSt,neutralColor:DSt,hatchingColor:PSt,borderColor:RSt,evevRowColor:OSt,largeFont:NSt,mediumFont:LSt,smallFont:kSt,pagePCMinWidth:FSt,jaraMain:$St,categoryItem:BSt,categoryName:USt,jaraAccordion:HSt,jaraAccordionSummary:VSt,jaraAccordionDetails:zSt},iue=t=>{const{categoryList:e}=t;return E(Bee,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:e==null?void 0:e.map((n,r)=>{var i;return re("div",{className:fb.categoryItem,children:[E("div",{className:fb.categoryName,children:n.categoryName}),(i=n.faqList)==null?void 0:i.map((a,o)=>E("div",{children:re(Jee,{elevation:0,square:!0,className:fb.jaraAccordion,disableGutters:!0,children:[re(Kee,{className:fb.jaraAccordionSummary,id:"AccordionSummary",expandIcon:E(rue,{sx:{transform:"scale(2)"}}),children:[E("div",{children:a.question}),E(Rh,{})]}),E(Qee,{className:fb.jaraAccordionDetails,children:E("div",{children:a.answer})})]})},"user-faq-faqList"+o))]},"user-faq-categoryList"+r)})})},jSt=()=>{const{data:t}=fr(Ei.LIST_FAQ,nue,{refetchOnWindowFocus:!0});return re(Bee,{children:[E(jh,{title:"よくある質問"}),E("div",{className:I7.jaraFaqArea,children:E("div",{className:I7.jaraFaqSubArea,children:E(iue,{categoryList:t==null?void 0:t.categoryList})})})]})},GSt="#ffffff",WSt="#29a03b",qSt="#c2d93d",YSt="#808080",JSt="#D9D9D9",QSt="#ccc",KSt="rgba(242, 242, 242, 0.4588235294)",XSt="2rem",ZSt="1.5rem",eCt="14px",tCt="65rem",nCt="_jaraMain_1cy5j_19",rCt="_titleText_1cy5j_31",iCt="_backArrow_1cy5j_35",aCt="_title_1cy5j_31",oCt="_titleChild_1cy5j_47",sCt="_detailArea_1cy5j_50",lCt="_main_1cy5j_55",Yd={baseColor:GSt,primaryColor:WSt,secondColor:qSt,neutralColor:YSt,hatchingColor:JSt,borderColor:QSt,evevRowColor:KSt,largeFont:XSt,mediumFont:ZSt,smallFont:eCt,pagePCMinWidth:tCt,jaraMain:nCt,titleText:rCt,backArrow:iCt,title:aCt,titleChild:oCt,detailArea:sCt,main:lCt},cCt=async t=>(await Bn.post(cae,t)).data,l5=async()=>(await Bn.post(oae)).data,uCt=()=>{const[t,e]=C.useState(!1),[n,r]=C.useState(null),i=h=>{e(!0),r(h)},a=()=>{e(!1),r(null)},o=()=>{a()},[s]=Wi(),{data:l}=fr(Ei.LIST_INFO,l5,{refetchOnWindowFocus:!1}),c=Number(s.get("index")),u=l!=null&&l.noticeList?l==null?void 0:l.noticeList[c]:void 0,d=_r(),{isMobile:f}=ui(),p=()=>{cCt({type:0,id:(u==null?void 0:u.id)??null}).then(h=>{switch(h.result.code){case 0:h.url&&(f?i(h.url):Zce(h.url))}})};return E("div",{children:u?re("div",{className:Yd.main,children:[re("div",{className:Yd.title,children:[E("div",{className:Yd.titleChild,children:E(ir,{onClick:()=>{d(-1)},children:E(U0,{className:Yd.backArrow})})}),E("div",{className:Yd.titleChild,children:E("div",{className:Yd.titleText,children:u.title})}),E("div",{className:Yd.titleChild})]}),E("br",{}),E("br",{}),E(oi,{children:E(Va,{elevation:0,sx:{display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#ffffff95",height:"100%",padding:"2rem 1rem"},children:re("div",{className:Yd.detailArea,children:[E("div",{children:u.date}),E("br",{}),E("div",{children:u.content}),E("br",{}),E("br",{}),E("a",{href:"javascript:void(0)",target:"_blank",rel:"noreferrer",onClick:h=>{h.preventDefault(),p()},children:u.fileName}),n&&E("div",{onClick:h=>{h.stopPropagation()},children:E(fu,{open:t,dialogTitle:"お知らせ添付ファイルダウンロード完了",handleClose:a,KanjiCloseButton:!0,children:E("a",{href:n??"",target:"_blank",rel:"noreferrer",onClick:o,children:n&&n.split("/").pop()})})})]})})})]}):""})},dCt="_viewArea_173qu_6",fCt="_editDocPageMain_173qu_11",pCt="_imageArea_173qu_24",hCt="_textArea_173qu_34",fS={viewArea:dCt,editDocPageMain:fCt,imageArea:pCt,textArea:hCt},mCt=async()=>(await Bn.post(Sae)).data,gCt=async t=>(await Bn.post(Cae,t)).data,vCt=({...t})=>E(su,{multiline:!0,sx:{width:"100%",height:"100%",color:"red","& .MuiInputBase-root.MuiOutlinedInput-root ::placeholder":{color:"red",opacity:1}},size:"small",variant:"outlined",...t}),yCt=()=>{const e="/alpha/static/assets/doc_sample/base.png",[n,r]=C.useState(""),[i,a]=C.useState(""),[o,s]=C.useState(!1),{isMobile:l}=ui(),{refetch:c}=fr(Ei.NOTIFICATION,mCt,{refetchOnWindowFocus:!1,onSuccess:y=>{switch(y.result.code){case 0:r(y.content),a(y.content);break;case 11:break;case 12:Ut($t.login[12],{variant:"warning",autoHideDuration:null});break;case 90:Ut($t.getDoc[90],{variant:"error",autoHideDuration:Kt.error});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}}),u=y=>{const w=y.target.value;a(w)},d=()=>{a(n),s(!1)},f=()=>{s(!0),gCt({content:i}).then(y=>{switch(s(!1),y.result.code){case 0:Ut($t.saveDoc[0],{variant:"success",autoHideDuration:Kt.success}),c();break;case 11:break;case 12:Ut($t.login[12],{variant:"warning",autoHideDuration:null});break;case 90:Ut($t.saveDoc[90],{variant:"error",autoHideDuration:Kt.error});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}).catch(()=>{s(!1)})},p=C.useRef(null),h=C.useRef(null),[v,b]=C.useState({}),g=()=>{if(p.current&&h.current){const y=p.current.getBoundingClientRect(),w=y.width*.8,x=y.height*.16,S=y.height*.78,T=y.width*.09,I={position:"absolute",top:`${S}px`,left:`${T}px`,width:`${w}px`,height:`${x}px`,backgroundColor:"white",display:"flex"};b(I)}};return C.useEffect(()=>(g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}),[]),E("div",{className:fS.editDocPageMain,children:re("div",{className:fS.viewArea,children:[re("div",{className:fS.imageArea,style:{position:"relative",display:"inline-block"},children:[E("img",{ref:p,src:e,alt:"doc-sample",className:fS.img,onLoad:()=>{g()}}),E("div",{ref:h,style:v,children:E(vCt,{sx:{height:"100%",width:"100%",display:"flex",justifyContent:"center"},value:i,onChange:y=>{u(y)},inputProps:{maxLength:200},rows:l?3:5})})]}),re("div",{children:[E(gp,{disabled:i===n,onClick:d,children:"元に戻す"}),E(s0,{disabled:i===n,isLoading:o,onClick:f,children:"保存する"})]})]})})};var c5={},bCt=hn;Object.defineProperty(c5,"__esModule",{value:!0});var aue=c5.default=void 0,_Ct=bCt(bn()),wCt=_n;aue=c5.default=(0,_Ct.default)((0,wCt.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var u5={},xCt=hn;Object.defineProperty(u5,"__esModule",{value:!0});var oue=u5.default=void 0,ECt=xCt(bn()),SCt=_n;oue=u5.default=(0,ECt.default)((0,SCt.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle");function p3(t,e){return p3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},p3(t,e)}function sue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,p3(t,e)}function Zt(){return Zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mo(1));return n(lue)(t,e)}if(typeof t!="function")throw new Error(Mo(2));var i=t,a=e,o=[],s=o,l=!1;function c(){s===o&&(s=o.slice())}function u(){if(l)throw new Error(Mo(3));return a}function d(v){if(typeof v!="function")throw new Error(Mo(4));if(l)throw new Error(Mo(5));var b=!0;return c(),s.push(v),function(){if(b){if(l)throw new Error(Mo(6));b=!1,c();var y=s.indexOf(v);s.splice(y,1),o=null}}}function f(v){if(!ICt(v))throw new Error(Mo(7));if(typeof v.type>"u")throw new Error(Mo(8));if(l)throw new Error(Mo(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var b=o=s,g=0;g=0;r--){var i=e[r](t);if(i)return i}return function(a,o){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+o.wrappedComponentName+".")}}function lTt(t,e){return t===e}function cTt(t){var e=t===void 0?{}:t,n=e.connectHOC,r=n===void 0?zCt:n,i=e.mapStateToPropsFactories,a=i===void 0?KCt:i,o=e.mapDispatchToPropsFactories,s=o===void 0?YCt:o,l=e.mergePropsFactories,c=l===void 0?nTt:l,u=e.selectorFactory,d=u===void 0?oTt:u;return function(p,h,v,b){b===void 0&&(b={});var g=b,y=g.pure,w=y===void 0?!0:y,x=g.areStatesEqual,S=x===void 0?lTt:x,T=g.areOwnPropsEqual,I=T===void 0?IN:T,P=g.areStatePropsEqual,M=P===void 0?IN:P,N=g.areMergedPropsEqual,R=N===void 0?IN:N,O=DA(g,sTt),D=MN(p,a,"mapStateToProps"),L=MN(h,s,"mapDispatchToProps"),k=MN(v,c,"mergeProps");return r(d,Tf({methodName:"connect",getDisplayName:function(H){return"Connect("+H+")"},shouldHandleStateChanges:Boolean(p),initMapStateToProps:D,initMapDispatchToProps:L,initMergeProps:k,pure:w,areStatesEqual:S,areOwnPropsEqual:I,areStatePropsEqual:M,areMergedPropsEqual:R},O))}}const mue=cTt();PCt(ld.unstable_batchedUpdates);function uTt(t,e){if(t.length!==e.length)return!1;for(var n=0;n");return r.callbacks},r.setCallbacks=function(s){r.callbacks=s},r}var n=e.prototype;return n.componentDidMount=function(){this.unbind=hl(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof OA){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},e}(xe.Component),xTt=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key `,NA=function(e){return e+1},ETt=function(e){return` You have lifted an item in position `+NA(e.source.index)+` `},_ue=function(e,n){var r=e.droppableId===n.droppableId,i=NA(e.index),a=NA(n.index);return r?` You have moved the item from position `+i+` to position `+a+` `:` You have moved the item from position `+i+` in list `+e.droppableId+` to list `+n.droppableId+` in position `+a+` `},wue=function(e,n,r){var i=n.droppableId===r.droppableId;return i?` The item `+e+` has been combined with `+r.draggableId:` The item `+e+` in list `+n.droppableId+` has been combined with `+r.draggableId+` in list `+r.droppableId+` `},STt=function(e){var n=e.destination;if(n)return _ue(e.source,n);var r=e.combine;return r?wue(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},H7=function(e){return` The item has returned to its starting position of `+NA(e.index)+` `},CTt=function(e){if(e.reason==="CANCEL")return` Movement cancelled. `+H7(e.source)+` `;var n=e.destination,r=e.combine;return n?` You have dropped the item. `+_ue(e.source,n)+` `:r?` You have dropped the item. `+wue(e.draggableId,e.source,r)+` `:` The item has been dropped while not over a drop area. `+H7(e.source)+` `},UC={dragHandleUsageInstructions:xTt,onDragStart:ETt,onDragUpdate:STt,onDragEnd:CTt},ma={x:0,y:0},ka=function(e,n){return{x:e.x+n.x,y:e.y+n.y}},hs=function(e,n){return{x:e.x-n.x,y:e.y-n.y}},Uf=function(e,n){return e.x===n.x&&e.y===n.y},V0=function(e){return{x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}},Wh=function(e,n,r){var i;return r===void 0&&(r=0),i={},i[e]=n,i[e==="x"?"y":"x"]=r,i},P1=function(e,n){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))},V7=function(e,n){return Math.min.apply(Math,n.map(function(r){return P1(e,r)}))},xue=function(e){return function(n){return{x:e(n.x),y:e(n.y)}}},TTt=function(t,e){var n=ac({top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom),left:Math.max(e.left,t.left)});return n.width<=0||n.height<=0?null:n},sx=function(e,n){return{top:e.top+n.y,left:e.left+n.x,bottom:e.bottom+n.y,right:e.right+n.x}},z7=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},ATt={top:0,right:0,bottom:0,left:0},ITt=function(e,n){return n?sx(e,n.scroll.diff.displacement):e},MTt=function(e,n,r){if(r&&r.increasedBy){var i;return Zt({},e,(i={},i[n.end]=e[n.end]+r.increasedBy[n.line],i))}return e},DTt=function(e,n){return n&&n.shouldClipSubject?TTt(n.pageMarginBox,e):ac(e)},l0=function(t){var e=t.page,n=t.withPlaceholder,r=t.axis,i=t.frame,a=ITt(e.marginBox,i),o=MTt(a,r,n),s=DTt(o,i);return{page:e,withPlaceholder:n,active:s}},h5=function(t,e){t.frame||_t(!1);var n=t.frame,r=hs(e,n.scroll.initial),i=V0(r),a=Zt({},n,{scroll:{initial:n.scroll.initial,current:e,diff:{value:r,displacement:i},max:n.scroll.max}}),o=l0({page:t.subject.page,withPlaceholder:t.subject.withPlaceholder,axis:t.axis,frame:a}),s=Zt({},t,{frame:a,subject:o});return s};function LA(t){return Object.values?Object.values(t):Object.keys(t).map(function(e){return t[e]})}function m5(t,e){if(t.findIndex)return t.findIndex(e);for(var n=0;nt.bottom,c=r.leftt.right,u=l&&c;if(u)return!0;var d=l&&o||c&&a;return d}},NTt=function(t){var e=yl(t.top,t.bottom),n=yl(t.left,t.right);return function(r){var i=e(r.top)&&e(r.bottom)&&n(r.left)&&n(r.right);return i}},v5={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Iue={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},LTt=function(t){return function(e){var n=yl(e.top,e.bottom),r=yl(e.left,e.right);return function(i){return t===v5?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)}}},kTt=function(e,n){var r=n.frame?n.frame.scroll.diff.displacement:ma;return sx(e,r)},FTt=function(e,n,r){return n.subject.active?r(n.subject.active)(e):!1},$Tt=function(e,n,r){return r(n)(e)},y5=function(e){var n=e.target,r=e.destination,i=e.viewport,a=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,s=a?kTt(n,r):n;return FTt(s,r,o)&&$Tt(s,i,o)},BTt=function(e){return y5(Zt({},e,{isVisibleThroughFrameFn:Aue}))},Mue=function(e){return y5(Zt({},e,{isVisibleThroughFrameFn:NTt}))},UTt=function(e){return y5(Zt({},e,{isVisibleThroughFrameFn:LTt(e.destination.axis)}))},HTt=function(e,n,r){if(typeof r=="boolean")return r;if(!n)return!0;var i=n.invisible,a=n.visible;if(i[e])return!1;var o=a[e];return o?o.shouldAnimate:!0};function VTt(t,e){var n=t.page.marginBox,r={top:e.point.y,right:0,bottom:0,left:e.point.x};return ac(f5(n,r))}function O1(t){var e=t.afterDragging,n=t.destination,r=t.displacedBy,i=t.viewport,a=t.forceShouldAnimate,o=t.last;return e.reduce(function(l,c){var u=VTt(c,r),d=c.descriptor.id;l.all.push(d);var f=BTt({target:u,destination:n,viewport:i,withDroppableDisplacement:!0});if(!f)return l.invisible[c.descriptor.id]=!0,l;var p=HTt(d,o,a),h={draggableId:d,shouldAnimate:p};return l.visible[d]=h,l},{all:[],visible:{},invisible:{}})}function zTt(t,e){if(!t.length)return 0;var n=t[t.length-1].descriptor.index;return e.inHomeList?n:n+1}function j7(t){var e=t.insideDestination,n=t.inHomeList,r=t.displacedBy,i=t.destination,a=zTt(e,{inHomeList:n});return{displaced:R1,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function kA(t){var e=t.draggable,n=t.insideDestination,r=t.destination,i=t.viewport,a=t.displacedBy,o=t.last,s=t.index,l=t.forceShouldAnimate,c=j0(e,r);if(s==null)return j7({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});var u=yp(n,function(v){return v.descriptor.index===s});if(!u)return j7({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});var d=jD(e,n),f=n.indexOf(u),p=d.slice(f),h=O1({afterDragging:p,destination:r,displacedBy:a,last:o,viewport:i.frame,forceShouldAnimate:l});return{displaced:h,displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function Zf(t,e){return Boolean(e.effected[t])}var jTt=function(t){var e=t.isMovingForward,n=t.destination,r=t.draggables,i=t.combine,a=t.afterCritical;if(!n.isCombineEnabled)return null;var o=i.draggableId,s=r[o],l=s.descriptor.index,c=Zf(o,a);return c?e?l:l-1:e?l+1:l},GTt=function(t){var e=t.isMovingForward,n=t.isInHomeList,r=t.insideDestination,i=t.location;if(!r.length)return null;var a=i.index,o=e?a+1:a-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index,c=n?l:l+1;return oc?null:o},WTt=function(t){var e=t.isMovingForward,n=t.isInHomeList,r=t.draggable,i=t.draggables,a=t.destination,o=t.insideDestination,s=t.previousImpact,l=t.viewport,c=t.afterCritical,u=s.at;if(u||_t(!1),u.type==="REORDER"){var d=GTt({isMovingForward:e,isInHomeList:n,location:u.destination,insideDestination:o});return d==null?null:kA({draggable:r,insideDestination:o,destination:a,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=jTt({isMovingForward:e,destination:a,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return f==null?null:kA({draggable:r,insideDestination:o,destination:a,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},qTt=function(t){var e=t.displaced,n=t.afterCritical,r=t.combineWith,i=t.displacedBy,a=Boolean(e.visible[r]||e.invisible[r]);return Zf(r,n)?a?ma:V0(i.point):a?i.point:ma},YTt=function(t){var e=t.afterCritical,n=t.impact,r=t.draggables,i=zD(n);i||_t(!1);var a=i.draggableId,o=r[a].page.borderBox.center,s=qTt({displaced:n.displaced,afterCritical:e,combineWith:a,displacedBy:n.displacedBy});return ka(o,s)},Due=function(e,n){return n.margin[e.start]+n.borderBox[e.size]/2},JTt=function(e,n){return n.margin[e.end]+n.borderBox[e.size]/2},b5=function(e,n,r){return n[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},G7=function(e){var n=e.axis,r=e.moveRelativeTo,i=e.isMoving;return Wh(n.line,r.marginBox[n.end]+Due(n,i),b5(n,r.marginBox,i))},W7=function(e){var n=e.axis,r=e.moveRelativeTo,i=e.isMoving;return Wh(n.line,r.marginBox[n.start]-JTt(n,i),b5(n,r.marginBox,i))},QTt=function(e){var n=e.axis,r=e.moveInto,i=e.isMoving;return Wh(n.line,r.contentBox[n.start]+Due(n,i),b5(n,r.contentBox,i))},KTt=function(t){var e=t.impact,n=t.draggable,r=t.draggables,i=t.droppable,a=t.afterCritical,o=z0(i.descriptor.id,r),s=n.page,l=i.axis;if(!o.length)return QTt({axis:l,moveInto:i.page,isMoving:s});var c=e.displaced,u=e.displacedBy,d=c.all[0];if(d){var f=r[d];if(Zf(d,a))return W7({axis:l,moveRelativeTo:f.page,isMoving:s});var p=PA(f.page,u.point);return W7({axis:l,moveRelativeTo:p,isMoving:s})}var h=o[o.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(Zf(h.descriptor.id,a)){var v=PA(h.page,V0(a.displacedBy.point));return G7({axis:l,moveRelativeTo:v,isMoving:s})}return G7({axis:l,moveRelativeTo:h.page,isMoving:s})},h3=function(t,e){var n=t.frame;return n?ka(e,n.scroll.diff.displacement):e},XTt=function(e){var n=e.impact,r=e.draggable,i=e.droppable,a=e.draggables,o=e.afterCritical,s=r.page.borderBox.center,l=n.at;return!i||!l?s:l.type==="REORDER"?KTt({impact:n,draggable:r,draggables:a,droppable:i,afterCritical:o}):YTt({impact:n,draggables:a,afterCritical:o})},GD=function(t){var e=XTt(t),n=t.droppable,r=n?h3(n,e):e;return r},Pue=function(t,e){var n=hs(e,t.scroll.initial),r=V0(n),i=ac({top:e.y,bottom:e.y+t.frame.height,left:e.x,right:e.x+t.frame.width}),a={frame:i,scroll:{initial:t.scroll.initial,max:t.scroll.max,current:e,diff:{value:n,displacement:r}}};return a};function q7(t,e){return t.map(function(n){return e[n]})}function ZTt(t,e){for(var n=0;n1?u.sort(function(d,f){return lo(d)[s.start]-lo(f)[s.start]})[0]:c.sort(function(d,f){var p=V7(n,z7(lo(d))),h=V7(n,z7(lo(f)));return p!==h?p-h:lo(d)[s.start]-lo(f)[s.start]})[0]},Y7=function(e,n){var r=e.page.borderBox.center;return Zf(e.descriptor.id,n)?hs(r,n.displacedBy.point):r},iAt=function(e,n){var r=e.page.borderBox;return Zf(e.descriptor.id,n)?sx(r,V0(n.displacedBy.point)):r},aAt=function(t){var e=t.pageBorderBoxCenter,n=t.viewport,r=t.destination,i=t.insideDestination,a=t.afterCritical,o=i.filter(function(s){return Mue({target:iAt(s,a),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(s,l){var c=P1(e,h3(r,Y7(s,a))),u=P1(e,h3(r,Y7(l,a)));return ce.left&&t.tope.top}function pAt(t){var e=t.pageBorderBox,n=t.draggable,r=t.candidates,i=n.page.borderBox.center,a=r.map(function(o){var s=o.axis,l=Wh(o.axis.line,e.center[s.line],o.page.borderBox.center[s.crossAxisLine]);return{id:o.descriptor.id,distance:P1(i,l)}}).sort(function(o,s){return s.distance-o.distance});return a[0]?a[0].id:null}function hAt(t){var e=t.pageBorderBox,n=t.draggable,r=t.droppables,i=VD(r).filter(function(a){if(!a.isEnabled)return!1;var o=a.subject.active;if(!o||!fAt(e,o))return!1;if(Lue(o)(e.center))return!0;var s=a.axis,l=o.center[s.crossAxisLine],c=e[s.crossAxisStart],u=e[s.crossAxisEnd],d=yl(o[s.crossAxisStart],o[s.crossAxisEnd]),f=d(c),p=d(u);return!f&&!p?!0:f?cl});return i.length?i.length===1?i[0].descriptor.id:pAt({pageBorderBox:e,draggable:n,candidates:i}):null}var kue=function(e,n){return ac(sx(e,n))},mAt=function(t,e){var n=t.frame;return n?kue(e,n.scroll.diff.value):e};function Fue(t){var e=t.displaced,n=t.id;return Boolean(e.visible[n]||e.invisible[n])}function gAt(t){var e=t.draggable,n=t.closest,r=t.inHomeList;return n?r&&n.descriptor.index>e.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var vAt=function(t){var e=t.pageBorderBoxWithDroppableScroll,n=t.draggable,r=t.destination,i=t.insideDestination,a=t.last,o=t.viewport,s=t.afterCritical,l=r.axis,c=lx(r.axis,n.displaceBy),u=c.value,d=e[l.start],f=e[l.end],p=jD(n,i),h=yp(p,function(b){var g=b.descriptor.id,y=b.page.borderBox.center[l.line],w=Zf(g,s),x=Fue({displaced:a,id:g});return w?x?f<=y:dg[s.start]+w&&dg[s.start]-c+w&&ug[s.start]+c+w&&dg[s.start]+w&&u=K7)return Wue;var a=i/K7,o=v3+YAt*a,s=r==="CANCEL"?o*JAt:o;return Number(s.toFixed(2))},KAt=function(t){var e=t.impact,n=t.draggable,r=t.dimensions,i=t.viewport,a=t.afterCritical,o=r.draggables,s=r.droppables,l=ws(e),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Uue({impact:e,draggable:n,draggables:o,afterCritical:a,droppable:c||u,viewport:i}),f=hs(d,n.client.borderBox.center);return f},XAt=function(t){var e=t.draggables,n=t.reason,r=t.lastImpact,i=t.home,a=t.viewport,o=t.onLiftImpact;if(!r.at||n!=="DROP"){var s=Bue({draggables:e,impact:o,destination:i,viewport:a,forceShouldAnimate:!0});return{impact:s,didDropInsideDroppable:!1}}if(r.at.type==="REORDER")return{impact:r,didDropInsideDroppable:!0};var l=Zt({},r,{displaced:R1});return{impact:l,didDropInsideDroppable:!0}},ZAt=function(t){var e=t.getState,n=t.dispatch;return function(r){return function(i){if(i.type!=="DROP"){r(i);return}var a=e(),o=i.payload.reason;if(a.phase==="COLLECTING"){n(GAt({reason:o}));return}if(a.phase!=="IDLE"){var s=a.phase==="DROP_PENDING"&&a.isWaiting;s&&_t(!1),a.phase==="DRAGGING"||a.phase==="DROP_PENDING"||_t(!1);var l=a.critical,c=a.dimensions,u=c.draggables[a.critical.draggable.id],d=XAt({reason:o,lastImpact:a.impact,afterCritical:a.afterCritical,onLiftImpact:a.onLiftImpact,home:a.dimensions.droppables[a.critical.droppable.id],viewport:a.viewport,draggables:a.dimensions.draggables}),f=d.impact,p=d.didDropInsideDroppable,h=p?g5(f):null,v=p?zD(f):null,b={index:l.draggable.index,droppableId:l.droppable.id},g={draggableId:u.descriptor.id,type:u.descriptor.type,source:b,reason:o,mode:a.movementMode,destination:h,combine:v},y=KAt({impact:f,draggable:u,dimensions:c,viewport:a.viewport,afterCritical:a.afterCritical}),w={critical:a.critical,afterCritical:a.afterCritical,result:g,impact:f},x=!Uf(a.current.client.offset,y)||Boolean(g.combine);if(!x){n(E5({completed:w}));return}var S=QAt({current:a.current.client.offset,destination:y,reason:o}),T={newHomeClientOffset:y,dropDuration:S,completed:w};n(jAt(T))}}}},que=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function eIt(t){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||t()}}}function tIt(t){var e=t.onWindowScroll;function n(){e(que())}var r=D1(n),i=eIt(r),a=Bf;function o(){return a!==Bf}function s(){o()&&_t(!1),a=hl(window,[i])}function l(){o()||_t(!1),r.cancel(),a(),a=Bf}return{start:s,stop:l,isActive:o}}var nIt=function(e){return e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH"},rIt=function(t){var e=tIt({onWindowScroll:function(r){t.dispatch($At({newScroll:r}))}});return function(n){return function(r){!e.isActive()&&r.type==="INITIAL_PUBLISH"&&e.start(),e.isActive()&&nIt(r)&&e.stop(),n(r)}}},iIt=function(t){var e=!1,n=!1,r=setTimeout(function(){n=!0}),i=function(o){e||n||(e=!0,t(o),clearTimeout(r))};return i.wasCalled=function(){return e},i},aIt=function(){var t=[],e=function(a){var o=m5(t,function(c){return c.timerId===a});o===-1&&_t(!1);var s=t.splice(o,1),l=s[0];l.callback()},n=function(a){var o=setTimeout(function(){return e(o)}),s={timerId:o,callback:a};t.push(s)},r=function(){if(t.length){var a=[].concat(t);t.length=0,a.forEach(function(o){clearTimeout(o.timerId),o.callback()})}};return{add:n,flush:r}},oIt=function(e,n){return e==null&&n==null?!0:e==null||n==null?!1:e.droppableId===n.droppableId&&e.index===n.index},sIt=function(e,n){return e==null&&n==null?!0:e==null||n==null?!1:e.draggableId===n.draggableId&&e.droppableId===n.droppableId},lIt=function(e,n){if(e===n)return!0;var r=e.draggable.id===n.draggable.id&&e.draggable.droppableId===n.draggable.droppableId&&e.draggable.type===n.draggable.type&&e.draggable.index===n.draggable.index,i=e.droppable.id===n.droppable.id&&e.droppable.type===n.droppable.type;return r&&i},pb=function(e,n){n()},pS=function(e,n){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:n}},NN=function(e,n,r,i){if(!e){r(i(n));return}var a=iIt(r),o={announce:a};e(n,o),a.wasCalled()||r(i(n))},cIt=function(t,e){var n=aIt(),r=null,i=function(f,p){r&&_t(!1),pb("onBeforeCapture",function(){var h=t().onBeforeCapture;if(h){var v={draggableId:f,mode:p};h(v)}})},a=function(f,p){r&&_t(!1),pb("onBeforeDragStart",function(){var h=t().onBeforeDragStart;h&&h(pS(f,p))})},o=function(f,p){r&&_t(!1);var h=pS(f,p);r={mode:p,lastCritical:f,lastLocation:h.source,lastCombine:null},n.add(function(){pb("onDragStart",function(){return NN(t().onDragStart,h,e,UC.onDragStart)})})},s=function(f,p){var h=g5(p),v=zD(p);r||_t(!1);var b=!lIt(f,r.lastCritical);b&&(r.lastCritical=f);var g=!oIt(r.lastLocation,h);g&&(r.lastLocation=h);var y=!sIt(r.lastCombine,v);if(y&&(r.lastCombine=v),!(!b&&!g&&!y)){var w=Zt({},pS(f,r.mode),{combine:v,destination:h});n.add(function(){pb("onDragUpdate",function(){return NN(t().onDragUpdate,w,e,UC.onDragUpdate)})})}},l=function(){r||_t(!1),n.flush()},c=function(f){r||_t(!1),r=null,pb("onDragEnd",function(){return NN(t().onDragEnd,f,e,UC.onDragEnd)})},u=function(){if(r){var f=Zt({},pS(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});c(f)}};return{beforeCapture:i,beforeStart:a,start:o,update:s,flush:l,drop:c,abort:u}},uIt=function(t,e){var n=cIt(t,e);return function(r){return function(i){return function(a){if(a.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(a.payload.draggableId,a.payload.movementMode);return}if(a.type==="INITIAL_PUBLISH"){var o=a.payload.critical;n.beforeStart(o,a.payload.movementMode),i(a),n.start(o,a.payload.movementMode);return}if(a.type==="DROP_COMPLETE"){var s=a.payload.completed.result;n.flush(),i(a),n.drop(s);return}if(i(a),a.type==="FLUSH"){n.abort();return}var l=r.getState();l.phase==="DRAGGING"&&n.update(l.critical,l.impact)}}}},dIt=function(t){return function(e){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){e(n);return}var r=t.getState();r.phase!=="DROP_ANIMATING"&&_t(!1),t.dispatch(E5({completed:r.completed}))}}},fIt=function(t){var e=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),e&&(e(),e=null)}return function(i){return function(a){if((a.type==="FLUSH"||a.type==="DROP_COMPLETE"||a.type==="DROP_ANIMATION_FINISHED")&&r(),i(a),a.type==="DROP_ANIMATE"){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var l=t.getState();l.phase==="DROP_ANIMATING"&&t.dispatch(Gue())}};n=requestAnimationFrame(function(){n=null,e=hl(window,[o])})}}}},pIt=function(t){return function(){return function(e){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&t.stopPublishing(),e(n)}}}},hIt=function(t){var e=!1;return function(){return function(n){return function(r){if(r.type==="INITIAL_PUBLISH"){e=!0,t.tryRecordFocus(r.payload.critical.draggable.id),n(r),t.tryRestoreFocusRecorded();return}if(n(r),!!e){if(r.type==="FLUSH"){e=!1,t.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){e=!1;var i=r.payload.completed.result;i.combine&&t.tryShiftRecord(i.draggableId,i.combine.draggableId),t.tryRestoreFocusRecorded()}}}}}},mIt=function(e){return e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH"},gIt=function(t){return function(e){return function(n){return function(r){if(mIt(r)){t.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);var i=e.getState();i.phase!=="DRAGGING"&&_t(!1),t.start(i);return}n(r),t.scroll(e.getState())}}}},vIt=function(t){return function(e){return function(n){if(e(n),n.type==="PUBLISH_WHILE_DRAGGING"){var r=t.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||t.dispatch(jue({reason:r.reason})))}}}},yIt=cue,bIt=function(t){var e=t.dimensionMarshal,n=t.focusMarshal,r=t.styleMarshal,i=t.getResponders,a=t.announce,o=t.autoScroller;return lue(MAt,yIt(MCt(qAt(r),pIt(e),WAt(e),ZAt,dIt,fIt,vIt,gIt(o),rIt,hIt(n),uIt(i,a))))},LN=function(){return{additions:{},removals:{},modified:{}}};function _It(t){var e=t.registry,n=t.callbacks,r=LN(),i=null,a=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var u=r,d=u.additions,f=u.removals,p=u.modified,h=Object.keys(d).map(function(g){return e.draggable.getById(g).getDimension(ma)}).sort(function(g,y){return g.descriptor.index-y.descriptor.index}),v=Object.keys(p).map(function(g){var y=e.droppable.getById(g),w=y.callbacks.getScrollWhileDragging();return{droppableId:g,scroll:w}}),b={additions:h,removals:Object.keys(f),modified:v};r=LN(),n.publish(b)}))},o=function(u){var d=u.descriptor.id;r.additions[d]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[d]&&delete r.removals[d],a()},s=function(u){var d=u.descriptor;r.removals[d.id]=!0,r.modified[d.droppableId]=!0,r.additions[d.id]&&delete r.additions[d.id],a()},l=function(){i&&(cancelAnimationFrame(i),i=null,r=LN())};return{add:o,remove:s,stop:l}}var Yue=function(t){var e=t.scrollHeight,n=t.scrollWidth,r=t.height,i=t.width,a=hs({x:n,y:e},{x:i,y:r}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},Jue=function(){var t=document.documentElement;return t||_t(!1),t},Que=function(){var t=Jue(),e=Yue({scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,width:t.clientWidth,height:t.clientHeight});return e},wIt=function(){var t=que(),e=Que(),n=t.y,r=t.x,i=Jue(),a=i.clientWidth,o=i.clientHeight,s=r+a,l=n+o,c=ac({top:n,left:r,right:s,bottom:l}),u={frame:c,scroll:{initial:t,current:t,max:e,diff:{value:ma,displacement:ma}}};return u},xIt=function(t){var e=t.critical,n=t.scrollOptions,r=t.registry,i=wIt(),a=i.scroll.current,o=e.droppable,s=r.droppable.getAllByType(o.type).map(function(d){return d.callbacks.getDimensionAndWatchScroll(a,n)}),l=r.draggable.getAllByType(e.draggable.type).map(function(d){return d.getDimension(a)}),c={draggables:Cue(l),droppables:Sue(s)},u={dimensions:c,critical:e,viewport:i};return u};function X7(t,e,n){if(n.descriptor.id===e.id||n.descriptor.type!==e.type)return!1;var r=t.droppable.getById(n.descriptor.droppableId);return r.descriptor.mode==="virtual"}var EIt=function(t,e){var n=null,r=_It({callbacks:{publish:e.publishWhileDragging,collectionStarting:e.collectionStarting},registry:t}),i=function(p,h){t.droppable.exists(p)||_t(!1),n&&e.updateDroppableIsEnabled({id:p,isEnabled:h})},a=function(p,h){n&&(t.droppable.exists(p)||_t(!1),e.updateDroppableIsCombineEnabled({id:p,isCombineEnabled:h}))},o=function(p,h){n&&(t.droppable.exists(p)||_t(!1),e.updateDroppableScroll({id:p,newScroll:h}))},s=function(p,h){n&&t.droppable.getById(p).callbacks.scroll(h)},l=function(){if(n){r.stop();var p=n.critical.droppable;t.droppable.getAllByType(p.type).forEach(function(h){return h.callbacks.dragStopped()}),n.unsubscribe(),n=null}},c=function(p){n||_t(!1);var h=n.critical.draggable;p.type==="ADDITION"&&X7(t,h,p.value)&&r.add(p.value),p.type==="REMOVAL"&&X7(t,h,p.value)&&r.remove(p.value)},u=function(p){n&&_t(!1);var h=t.draggable.getById(p.draggableId),v=t.droppable.getById(h.descriptor.droppableId),b={draggable:h.descriptor,droppable:v.descriptor},g=t.subscribe(c);return n={critical:b,unsubscribe:g},xIt({critical:b,registry:t,scrollOptions:p.scrollOptions})},d={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:a,scrollDroppable:s,updateDroppableScroll:o,startPublishing:u,stopPublishing:l};return d},Kue=function(t,e){return t.phase==="IDLE"?!0:t.phase!=="DROP_ANIMATING"||t.completed.result.draggableId===e?!1:t.completed.result.reason==="DROP"},SIt=function(t){window.scrollBy(t.x,t.y)},CIt=ha(function(t){return VD(t).filter(function(e){return!(!e.isEnabled||!e.frame)})}),TIt=function(e,n){var r=yp(CIt(n),function(i){return i.frame||_t(!1),Lue(i.frame.pageMarginBox)(e)});return r},AIt=function(t){var e=t.center,n=t.destination,r=t.droppables;if(n){var i=r[n];return i.frame?i:null}var a=TIt(e,r);return a},Hf={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(e){return Math.pow(e,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},IIt=function(t,e){var n=t[e.size]*Hf.startFromPercentage,r=t[e.size]*Hf.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:r};return i},Xue=function(t){var e=t.startOfRange,n=t.endOfRange,r=t.current,i=n-e;if(i===0)return 0;var a=r-e,o=a/i;return o},T5=1,MIt=function(t,e){if(t>e.startScrollingFrom)return 0;if(t<=e.maxScrollValueAt)return Hf.maxPixelScroll;if(t===e.startScrollingFrom)return T5;var n=Xue({startOfRange:e.maxScrollValueAt,endOfRange:e.startScrollingFrom,current:t}),r=1-n,i=Hf.maxPixelScroll*Hf.ease(r);return Math.ceil(i)},Z7=Hf.durationDampening.accelerateAt,eY=Hf.durationDampening.stopDampeningAt,DIt=function(t,e){var n=e,r=eY,i=Date.now(),a=i-n;if(a>=eY)return t;if(ae.height,a=n.width>e.width;return!a&&!i?r:a&&i?null:{x:a?0:r.x,y:i?0:r.y}},RIt=xue(function(t){return t===0?0:t}),Zue=function(t){var e=t.dragStartTime,n=t.container,r=t.subject,i=t.center,a=t.shouldUseTimeDampening,o={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},s=nY({container:n,distanceToEdges:o,dragStartTime:e,axis:v5,shouldUseTimeDampening:a}),l=nY({container:n,distanceToEdges:o,dragStartTime:e,axis:Iue,shouldUseTimeDampening:a}),c=RIt({x:l,y:s});if(Uf(c,ma))return null;var u=PIt({container:n,subject:r,proposedScroll:c});return u?Uf(u,ma)?null:u:null},OIt=xue(function(t){return t===0?0:t>0?1:-1}),A5=function(){var t=function(n,r){return n<0?n:n>r?n-r:0};return function(e){var n=e.current,r=e.max,i=e.change,a=ka(n,i),o={x:t(a.x,r.x),y:t(a.y,r.y)};return Uf(o,ma)?null:o}}(),ede=function(e){var n=e.max,r=e.current,i=e.change,a={x:Math.max(r.x,n.x),y:Math.max(r.y,n.y)},o=OIt(i),s=A5({max:a,current:r,change:o});return!s||o.x!==0&&s.x===0||o.y!==0&&s.y===0},I5=function(e,n){return ede({current:e.scroll.current,max:e.scroll.max,change:n})},NIt=function(e,n){if(!I5(e,n))return null;var r=e.scroll.max,i=e.scroll.current;return A5({current:i,max:r,change:n})},M5=function(e,n){var r=e.frame;return r?ede({current:r.scroll.current,max:r.scroll.max,change:n}):!1},LIt=function(e,n){var r=e.frame;return!r||!M5(e,n)?null:A5({current:r.scroll.current,max:r.scroll.max,change:n})},kIt=function(t){var e=t.viewport,n=t.subject,r=t.center,i=t.dragStartTime,a=t.shouldUseTimeDampening,o=Zue({dragStartTime:i,container:e.frame,subject:n,center:r,shouldUseTimeDampening:a});return o&&I5(e,o)?o:null},FIt=function(t){var e=t.droppable,n=t.subject,r=t.center,i=t.dragStartTime,a=t.shouldUseTimeDampening,o=e.frame;if(!o)return null;var s=Zue({dragStartTime:i,container:o.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a});return s&&M5(e,s)?s:null},rY=function(t){var e=t.state,n=t.dragStartTime,r=t.shouldUseTimeDampening,i=t.scrollWindow,a=t.scrollDroppable,o=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id],l=s.page.marginBox;if(e.isWindowScrollAllowed){var c=e.viewport,u=kIt({dragStartTime:n,viewport:c,subject:l,center:o,shouldUseTimeDampening:r});if(u){i(u);return}}var d=AIt({center:o,destination:ws(e.impact),droppables:e.dimensions.droppables});if(d){var f=FIt({dragStartTime:n,droppable:d,subject:l,center:o,shouldUseTimeDampening:r});f&&a(d.descriptor.id,f)}},$It=function(t){var e=t.scrollWindow,n=t.scrollDroppable,r=D1(e),i=D1(n),a=null,o=function(u){a||_t(!1);var d=a,f=d.shouldUseTimeDampening,p=d.dragStartTime;rY({state:u,scrollWindow:r,scrollDroppable:i,dragStartTime:p,shouldUseTimeDampening:f})},s=function(u){a&&_t(!1);var d=Date.now(),f=!1,p=function(){f=!0};rY({state:u,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p}),a={dragStartTime:d,shouldUseTimeDampening:f},f&&o(u)},l=function(){a&&(r.cancel(),i.cancel(),a=null)};return{start:s,stop:l,scroll:o}},BIt=function(t){var e=t.move,n=t.scrollDroppable,r=t.scrollWindow,i=function(c,u){var d=ka(c.current.client.selection,u);e({client:d})},a=function(c,u){if(!M5(c,u))return u;var d=LIt(c,u);if(!d)return n(c.descriptor.id,u),null;var f=hs(u,d);n(c.descriptor.id,f);var p=hs(u,f);return p},o=function(c,u,d){if(!c||!I5(u,d))return d;var f=NIt(u,d);if(!f)return r(d),null;var p=hs(d,f);r(p);var h=hs(d,p);return h},s=function(c){var u=c.scrollJumpRequest;if(u){var d=ws(c.impact);d||_t(!1);var f=a(c.dimensions.droppables[d],u);if(f){var p=c.viewport,h=o(c.isWindowScrollAllowed,p,f);h&&i(c,h)}}};return s},UIt=function(t){var e=t.scrollDroppable,n=t.scrollWindow,r=t.move,i=$It({scrollWindow:n,scrollDroppable:e}),a=BIt({move:r,scrollWindow:n,scrollDroppable:e}),o=function(c){if(c.phase==="DRAGGING"){if(c.movementMode==="FLUID"){i.scroll(c);return}c.scrollJumpRequest&&a(c)}},s={scroll:o,start:i.start,stop:i.stop};return s},c0="data-rbd",u0=function(){var t=c0+"-drag-handle";return{base:t,draggableId:t+"-draggable-id",contextId:t+"-context-id"}}(),y3=function(){var t=c0+"-draggable";return{base:t,contextId:t+"-context-id",id:t+"-id"}}(),HIt=function(){var t=c0+"-droppable";return{base:t,contextId:t+"-context-id",id:t+"-id"}}(),iY={contextId:c0+"-scroll-container-context-id"},VIt=function(e){return function(n){return"["+n+'="'+e+'"]'}},hb=function(e,n){return e.map(function(r){var i=r.styles[n];return i?r.selector+" { "+i+" }":""}).join(" ")},zIt="pointer-events: none;",jIt=function(t){var e=VIt(t),n=function(){var s=` cursor: -webkit-grab; cursor: grab; `;return{selector:e(u0.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; `,resting:s,dragging:zIt,dropAnimating:s}}}(),r=function(){var s=` transition: `+C_.outOfTheWay+`; `;return{selector:e(y3.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}}(),i={selector:e(HIt.contextId),styles:{always:"overflow-anchor: none;"}},a={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; `}},o=[r,n,i,a];return{always:hb(o,"always"),resting:hb(o,"resting"),dragging:hb(o,"dragging"),dropAnimating:hb(o,"dropAnimating"),userCancel:hb(o,"userCancel")}},xs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect,kN=function(){var e=document.querySelector("head");return e||_t(!1),e},aY=function(e){var n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.type="text/css",n};function GIt(t,e){var n=Fn(function(){return jIt(t)},[t]),r=C.useRef(null),i=C.useRef(null),a=Ht(ha(function(d){var f=i.current;f||_t(!1),f.textContent=d}),[]),o=Ht(function(d){var f=r.current;f||_t(!1),f.textContent=d},[]);xs(function(){!r.current&&!i.current||_t(!1);var d=aY(e),f=aY(e);return r.current=d,i.current=f,d.setAttribute(c0+"-always",t),f.setAttribute(c0+"-dynamic",t),kN().appendChild(d),kN().appendChild(f),o(n.always),a(n.resting),function(){var p=function(v){var b=v.current;b||_t(!1),kN().removeChild(b),v.current=null};p(r),p(i)}},[e,o,a,n.always,n.resting,t]);var s=Ht(function(){return a(n.dragging)},[a,n.dragging]),l=Ht(function(d){if(d==="DROP"){a(n.dropAnimating);return}a(n.userCancel)},[a,n.dropAnimating,n.userCancel]),c=Ht(function(){i.current&&a(n.resting)},[a,n.resting]),u=Fn(function(){return{dragging:s,dropping:l,resting:c}},[s,l,c]);return u}var tde=function(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:window};function WD(t){return t instanceof tde(t).HTMLElement}function WIt(t,e){var n="["+u0.contextId+'="'+t+'"]',r=Eue(document.querySelectorAll(n));if(!r.length)return null;var i=yp(r,function(a){return a.getAttribute(u0.draggableId)===e});return!i||!WD(i)?null:i}function qIt(t){var e=C.useRef({}),n=C.useRef(null),r=C.useRef(null),i=C.useRef(!1),a=Ht(function(f,p){var h={id:f,focus:p};return e.current[f]=h,function(){var b=e.current,g=b[f];g!==h&&delete b[f]}},[]),o=Ht(function(f){var p=WIt(t,f);p&&p!==document.activeElement&&p.focus()},[t]),s=Ht(function(f,p){n.current===f&&(n.current=p)},[]),l=Ht(function(){r.current||i.current&&(r.current=requestAnimationFrame(function(){r.current=null;var f=n.current;f&&o(f)}))},[o]),c=Ht(function(f){n.current=null;var p=document.activeElement;p&&p.getAttribute(u0.draggableId)===f&&(n.current=f)},[]);xs(function(){return i.current=!0,function(){i.current=!1;var f=r.current;f&&cancelAnimationFrame(f)}},[]);var u=Fn(function(){return{register:a,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}},[a,c,l,s]);return u}function YIt(){var t={draggables:{},droppables:{}},e=[];function n(d){return e.push(d),function(){var p=e.indexOf(d);p!==-1&&e.splice(p,1)}}function r(d){e.length&&e.forEach(function(f){return f(d)})}function i(d){return t.draggables[d]||null}function a(d){var f=i(d);return f||_t(!1),f}var o={register:function(f){t.draggables[f.descriptor.id]=f,r({type:"ADDITION",value:f})},update:function(f,p){var h=t.draggables[p.descriptor.id];h&&h.uniqueId===f.uniqueId&&(delete t.draggables[p.descriptor.id],t.draggables[f.descriptor.id]=f)},unregister:function(f){var p=f.descriptor.id,h=i(p);h&&f.uniqueId===h.uniqueId&&(delete t.draggables[p],r({type:"REMOVAL",value:f}))},getById:a,findById:i,exists:function(f){return Boolean(i(f))},getAllByType:function(f){return LA(t.draggables).filter(function(p){return p.descriptor.type===f})}};function s(d){return t.droppables[d]||null}function l(d){var f=s(d);return f||_t(!1),f}var c={register:function(f){t.droppables[f.descriptor.id]=f},unregister:function(f){var p=s(f.descriptor.id);p&&f.uniqueId===p.uniqueId&&delete t.droppables[f.descriptor.id]},getById:l,findById:s,exists:function(f){return Boolean(s(f))},getAllByType:function(f){return LA(t.droppables).filter(function(p){return p.descriptor.type===f})}};function u(){t.draggables={},t.droppables={},e.length=0}return{draggable:o,droppable:c,subscribe:n,clean:u}}function JIt(){var t=Fn(YIt,[]);return C.useEffect(function(){return function(){requestAnimationFrame(t.clean)}},[t]),t}var D5=xe.createContext(null),FA=function(){var t=document.body;return t||_t(!1),t},QIt={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},KIt=function(e){return"rbd-announcement-"+e};function XIt(t){var e=Fn(function(){return KIt(t)},[t]),n=C.useRef(null);C.useEffect(function(){var a=document.createElement("div");return n.current=a,a.id=e,a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),Zt(a.style,QIt),FA().appendChild(a),function(){setTimeout(function(){var l=FA();l.contains(a)&&l.removeChild(a),a===n.current&&(n.current=null)})}},[e]);var r=Ht(function(i){var a=n.current;if(a){a.textContent=i;return}},[]);return r}var ZIt=0,eMt={separator:"::"};function P5(t,e){return e===void 0&&(e=eMt),Fn(function(){return""+t+e.separator+ZIt++},[e.separator,t])}function tMt(t){var e=t.contextId,n=t.uniqueId;return"rbd-hidden-text-"+e+"-"+n}function nMt(t){var e=t.contextId,n=t.text,r=P5("hidden-text",{separator:"-"}),i=Fn(function(){return tMt({contextId:e,uniqueId:r})},[r,e]);return C.useEffect(function(){var o=document.createElement("div");return o.id=i,o.textContent=n,o.style.display="none",FA().appendChild(o),function(){var l=FA();l.contains(o)&&l.removeChild(o)}},[i,n]),i}var qD=xe.createContext(null);function nde(t){var e=C.useRef(t);return C.useEffect(function(){e.current=t}),e}function rMt(){var t=null;function e(){return Boolean(t)}function n(o){return o===t}function r(o){t&&_t(!1);var s={abandon:o};return t=s,s}function i(){t||_t(!1),t=null}function a(){t&&(t.abandon(),i())}return{isClaimed:e,isActive:n,claim:r,release:i,tryAbandon:a}}var iMt=9,aMt=13,R5=27,rde=32,oMt=33,sMt=34,lMt=35,cMt=36,uMt=37,dMt=38,fMt=39,pMt=40,hS,hMt=(hS={},hS[aMt]=!0,hS[iMt]=!0,hS),ide=function(t){hMt[t.keyCode]&&t.preventDefault()},YD=function(){var t="visibilitychange";if(typeof document>"u")return t;var e=[t,"ms"+t,"webkit"+t,"moz"+t,"o"+t],n=yp(e,function(r){return"on"+r in document});return n||t}(),ade=0,oY=5;function mMt(t,e){return Math.abs(e.x-t.x)>=oY||Math.abs(e.y-t.y)>=oY}var sY={type:"IDLE"};function gMt(t){var e=t.cancel,n=t.completed,r=t.getPhase,i=t.setPhase;return[{eventName:"mousemove",fn:function(o){var s=o.button,l=o.clientX,c=o.clientY;if(s===ade){var u={x:l,y:c},d=r();if(d.type==="DRAGGING"){o.preventDefault(),d.actions.move(u);return}d.type!=="PENDING"&&_t(!1);var f=d.point;if(mMt(f,u)){o.preventDefault();var p=d.actions.fluidLift(u);i({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(o){var s=r();if(s.type!=="DRAGGING"){e();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(o){r().type==="DRAGGING"&&o.preventDefault(),e()}},{eventName:"keydown",fn:function(o){var s=r();if(s.type==="PENDING"){e();return}if(o.keyCode===R5){o.preventDefault(),e();return}ide(o)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:function(o){var s=r();if(s.type==="IDLE"&&_t(!1),s.actions.shouldRespectForcePress()){e();return}o.preventDefault()}},{eventName:YD,fn:e}]}function vMt(t){var e=C.useRef(sY),n=C.useRef(Bf),r=Fn(function(){return{eventName:"mousedown",fn:function(d){if(!d.defaultPrevented&&d.button===ade&&!(d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)){var f=t.findClosestDraggableId(d);if(f){var p=t.tryGetLock(f,o,{sourceEvent:d});if(p){d.preventDefault();var h={x:d.clientX,y:d.clientY};n.current(),c(p,h)}}}}}},[t]),i=Fn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(d){if(!d.defaultPrevented){var f=t.findClosestDraggableId(d);if(f){var p=t.findOptionsForDraggable(f);p&&(p.shouldRespectForcePress||t.canGetLock(f)&&d.preventDefault())}}}}},[t]),a=Ht(function(){var d={passive:!1,capture:!0};n.current=hl(window,[i,r],d)},[i,r]),o=Ht(function(){var u=e.current;u.type!=="IDLE"&&(e.current=sY,n.current(),a())},[a]),s=Ht(function(){var u=e.current;o(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[o]),l=Ht(function(){var d={capture:!0,passive:!1},f=gMt({cancel:s,completed:o,getPhase:function(){return e.current},setPhase:function(h){e.current=h}});n.current=hl(window,f,d)},[s,o]),c=Ht(function(d,f){e.current.type!=="IDLE"&&_t(!1),e.current={type:"PENDING",point:f,actions:d},l()},[l]);xs(function(){return a(),function(){n.current()}},[a])}var Ym;function yMt(){}var bMt=(Ym={},Ym[sMt]=!0,Ym[oMt]=!0,Ym[cMt]=!0,Ym[lMt]=!0,Ym);function _Mt(t,e){function n(){e(),t.cancel()}function r(){e(),t.drop()}return[{eventName:"keydown",fn:function(a){if(a.keyCode===R5){a.preventDefault(),n();return}if(a.keyCode===rde){a.preventDefault(),r();return}if(a.keyCode===pMt){a.preventDefault(),t.moveDown();return}if(a.keyCode===dMt){a.preventDefault(),t.moveUp();return}if(a.keyCode===fMt){a.preventDefault(),t.moveRight();return}if(a.keyCode===uMt){a.preventDefault(),t.moveLeft();return}if(bMt[a.keyCode]){a.preventDefault();return}ide(a)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:YD,fn:n}]}function wMt(t){var e=C.useRef(yMt),n=Fn(function(){return{eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==rde)return;var o=t.findClosestDraggableId(a);if(!o)return;var s=t.tryGetLock(o,u,{sourceEvent:a});if(!s)return;a.preventDefault();var l=!0,c=s.snapLift();e.current();function u(){l||_t(!1),l=!1,e.current(),r()}e.current=hl(window,_Mt(c,u),{capture:!0,passive:!1})}}},[t]),r=Ht(function(){var a={passive:!1,capture:!0};e.current=hl(window,[n],a)},[n]);xs(function(){return r(),function(){e.current()}},[r])}var FN={type:"IDLE"},xMt=120,EMt=.15;function SMt(t){var e=t.cancel,n=t.getPhase;return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){e();return}i.keyCode===R5&&i.preventDefault(),e()}},{eventName:YD,fn:e}]}function CMt(t){var e=t.cancel,n=t.completed,r=t.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(a){var o=r();if(o.type!=="DRAGGING"){e();return}o.hasMoved=!0;var s=a.touches[0],l=s.clientX,c=s.clientY,u={x:l,y:c};a.preventDefault(),o.actions.move(u)}},{eventName:"touchend",fn:function(a){var o=r();if(o.type!=="DRAGGING"){e();return}a.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(a){if(r().type!=="DRAGGING"){e();return}a.preventDefault(),e()}},{eventName:"touchforcechange",fn:function(a){var o=r();o.type==="IDLE"&&_t(!1);var s=a.touches[0];if(s){var l=s.force>=EMt;if(l){var c=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){c&&e();return}if(c){if(o.hasMoved){a.preventDefault();return}e();return}a.preventDefault()}}}},{eventName:YD,fn:e}]}function TMt(t){var e=C.useRef(FN),n=C.useRef(Bf),r=Ht(function(){return e.current},[]),i=Ht(function(p){e.current=p},[]),a=Fn(function(){return{eventName:"touchstart",fn:function(p){if(!p.defaultPrevented){var h=t.findClosestDraggableId(p);if(h){var v=t.tryGetLock(h,s,{sourceEvent:p});if(v){var b=p.touches[0],g=b.clientX,y=b.clientY,w={x:g,y};n.current(),d(v,w)}}}}}},[t]),o=Ht(function(){var p={capture:!0,passive:!1};n.current=hl(window,[a],p)},[a]),s=Ht(function(){var f=e.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),i(FN),n.current(),o())},[o,i]),l=Ht(function(){var f=e.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),c=Ht(function(){var p={capture:!0,passive:!1},h={cancel:l,completed:s,getPhase:r},v=hl(window,CMt(h),p),b=hl(window,SMt(h),p);n.current=function(){v(),b()}},[l,r,s]),u=Ht(function(){var p=r();p.type!=="PENDING"&&_t(!1);var h=p.actions.fluidLift(p.point);i({type:"DRAGGING",actions:h,hasMoved:!1})},[r,i]),d=Ht(function(p,h){r().type!=="IDLE"&&_t(!1);var v=setTimeout(u,xMt);i({type:"PENDING",point:h,actions:p,longPressTimerId:v}),c()},[c,r,i,u]);xs(function(){return o(),function(){n.current();var h=r();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),i(FN))}},[r,o,i]),xs(function(){var p=hl(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return p},[])}var AMt={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ode(t,e){if(e==null)return!1;var n=Boolean(AMt[e.tagName.toLowerCase()]);if(n)return!0;var r=e.getAttribute("contenteditable");return r==="true"||r===""?!0:e===t?!1:ode(t,e.parentElement)}function IMt(t,e){var n=e.target;return WD(n)?ode(t,n):!1}var MMt=function(t){return ac(t.getBoundingClientRect()).center};function DMt(t){return t instanceof tde(t).Element}var PMt=function(){var t="matches";if(typeof document>"u")return t;var e=[t,"msMatchesSelector","webkitMatchesSelector"],n=yp(e,function(r){return r in Element.prototype});return n||t}();function sde(t,e){return t==null?null:t[PMt](e)?t:sde(t.parentElement,e)}function RMt(t,e){return t.closest?t.closest(e):sde(t,e)}function OMt(t){return"["+u0.contextId+'="'+t+'"]'}function NMt(t,e){var n=e.target;if(!DMt(n))return null;var r=OMt(t),i=RMt(n,r);return!i||!WD(i)?null:i}function LMt(t,e){var n=NMt(t,e);return n?n.getAttribute(u0.draggableId):null}function kMt(t,e){var n="["+y3.contextId+'="'+t+'"]',r=Eue(document.querySelectorAll(n)),i=yp(r,function(a){return a.getAttribute(y3.id)===e});return!i||!WD(i)?null:i}function FMt(t){t.preventDefault()}function mS(t){var e=t.expected,n=t.phase,r=t.isLockActive;return t.shouldWarn,!(!r()||e!==n)}function lde(t){var e=t.lockAPI,n=t.store,r=t.registry,i=t.draggableId;if(e.isClaimed())return!1;var a=r.draggable.findById(i);return!(!a||!a.options.isEnabled||!Kue(n.getState(),i))}function $Mt(t){var e=t.lockAPI,n=t.contextId,r=t.store,i=t.registry,a=t.draggableId,o=t.forceSensorStop,s=t.sourceEvent,l=lde({lockAPI:e,store:r,registry:i,draggableId:a});if(!l)return null;var c=i.draggable.getById(a),u=kMt(n,c.descriptor.id);if(!u||s&&!c.options.canDragInteractiveElements&&IMt(u,s))return null;var d=e.claim(o||Bf),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return e.isActive(d)}function v(T,I){mS({expected:T,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(I())}var b=v.bind(null,"DRAGGING");function g(T){function I(){e.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(I(),f!=="PRE_DRAG"&&_t(!1)),r.dispatch(PAt(T.liftActionArgs)),f="DRAGGING";function P(M,N){if(N===void 0&&(N={shouldBlockNextClick:!1}),T.cleanup(),N.shouldBlockNextClick){var R=hl(window,[{eventName:"click",fn:FMt,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(R)}I(),r.dispatch(jue({reason:M}))}return Zt({isActive:function(){return mS({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(N){return P("DROP",N)},cancel:function(N){return P("CANCEL",N)}},T.actions)}function y(T){var I=D1(function(M){b(function(){return zue({client:M})})}),P=g({liftActionArgs:{id:a,clientSelection:T,movementMode:"FLUID"},cleanup:function(){return I.cancel()},actions:{move:I}});return Zt({},P,{move:I})}function w(){var T={moveUp:function(){return b(UAt)},moveRight:function(){return b(VAt)},moveDown:function(){return b(HAt)},moveLeft:function(){return b(zAt)}};return g({liftActionArgs:{id:a,clientSelection:MMt(u),movementMode:"SNAP"},cleanup:Bf,actions:T})}function x(){var T=mS({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0});T&&e.release()}var S={isActive:function(){return mS({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:y,snapLift:w,abort:x};return S}var BMt=[vMt,wMt,TMt];function UMt(t){var e=t.contextId,n=t.store,r=t.registry,i=t.customSensors,a=t.enableDefaultSensors,o=[].concat(a?BMt:[],i||[]),s=C.useState(function(){return rMt()})[0],l=Ht(function(y,w){y.isDragging&&!w.isDragging&&s.tryAbandon()},[s]);xs(function(){var y=n.getState(),w=n.subscribe(function(){var x=n.getState();l(y,x),y=x});return w},[s,n,l]),xs(function(){return s.tryAbandon},[s.tryAbandon]);for(var c=Ht(function(g){return lde({lockAPI:s,registry:r,store:n,draggableId:g})},[s,r,n]),u=Ht(function(g,y,w){return $Mt({lockAPI:s,registry:r,contextId:e,store:n,draggableId:g,forceSensorStop:y,sourceEvent:w&&w.sourceEvent?w.sourceEvent:null})},[e,s,r,n]),d=Ht(function(g){return LMt(e,g)},[e]),f=Ht(function(g){var y=r.draggable.findById(g);return y?y.options:null},[r.draggable]),p=Ht(function(){s.isClaimed()&&(s.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(x5()))},[s,n]),h=Ht(s.isClaimed,[s]),v=Fn(function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}},[c,u,d,f,p,h]),b=0;b{const{children:e,activeTab:n,index:r,...i}=t;return E("div",{role:"tabpanel",hidden:n!==r,id:`faq-tabpanel-${r}`,...i,children:n===r&&E(zr,{sx:{p:0},children:E("div",{children:e})})})},ODt="#ffffff",NDt="#29a03b",LDt="#c2d93d",kDt="#808080",FDt="#D9D9D9",$Dt="#ccc",BDt="rgba(242, 242, 242, 0.4588235294)",UDt="2rem",HDt="1.5rem",VDt="14px",zDt="65rem",jDt="_jaraMain_d6d2h_19",GDt="_topButtonGroup_d6d2h_31",WDt="_editAreaWidthControl_d6d2h_34",qDt="_editArea_d6d2h_34",YDt="_tab_d6d2h_59",JDt="_selectTab_d6d2h_71",QDt="_faqCardBox_d6d2h_93",KDt="_fadein_d6d2h_1",XDt="_faqCard_d6d2h_93",ZDt="_faqCardHeader_d6d2h_101",ePt="_faqCardInput_d6d2h_107",tPt="_faqCardIcon_d6d2h_111",la={baseColor:ODt,primaryColor:NDt,secondColor:LDt,neutralColor:kDt,hatchingColor:FDt,borderColor:$Dt,evevRowColor:BDt,largeFont:UDt,mediumFont:HDt,smallFont:VDt,pagePCMinWidth:zDt,jaraMain:jDt,topButtonGroup:GDt,editAreaWidthControl:WDt,editArea:qDt,tab:YDt,selectTab:JDt,faqCardBox:QDt,fadein:KDt,faqCard:XDt,faqCardHeader:ZDt,faqCardInput:ePt,faqCardIcon:tPt};var nPt=ID;function rPt(){this.__data__=new nPt,this.size=0}var iPt=rPt;function aPt(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var oPt=aPt;function sPt(t){return this.__data__.get(t)}var lPt=sPt;function cPt(t){return this.__data__.has(t)}var uPt=cPt,dPt=ID,fPt=g4,pPt=ole,hPt=200;function mPt(t,e){var n=this.__data__;if(n instanceof dPt){var r=n.__data__;if(!fPt||r.lengths))return!1;var c=a.get(t),u=a.get(e);if(c&&u)return c==e&&u==t;var d=-1,f=!0,p=n&DPt?new TPt:void 0;for(a.set(t,e),a.set(e,t);++d-1&&t%1==0&&t(await Bn.post(jje,t,{timeout:15e3})).data,UNt=()=>{const[t,e]=C.useState(void 0),[n,r]=C.useState(void 0),{refetch:i}=fr(Ei.LIST_FAQ,nue,{refetchOnWindowFocus:!1,onSuccess:Z=>{var Me;const _e=Z.categoryList?Z.categoryList:void 0;e(_e),r(_e),(!Z.categoryList||((Me=Z==null?void 0:Z.categoryList)==null?void 0:Me.length)===0)&&Ut($t.editFaq[10],{variant:"warning",autoHideDuration:Kt.warning})}}),[a,o]=C.useState(!1),s=(Z,_e)=>{const Me=[];return Z.map((Ne,ge)=>{const ee={id:Ne.id<0?-1:Ne.id,displayOrder:ge+1,typeFaq:0,question:Ne.question,answer:Ne.answer};Me.push(ee)}),_e.map((Ne,ge)=>{if(Z.find(Q=>Q.id===Ne.id)===void 0){const Q={id:Ne.id,displayOrder:Z.length+ge,typeFaq:1,question:Ne.question,answer:Ne.answer};Me.push(Q)}}),Me},l=()=>{o(!0);const Z={categoryList:[]};n==null||n.map((_e,Me)=>{const Ne=t==null?void 0:t.find(ee=>ee.categoryId===_e.categoryId),ge={categoryId:_e.categoryId<0?-1:_e.categoryId,categoryOrder:Me+1,typeCategory:0,categoryName:_e.categoryName,faqList:s(_e.faqList,Ne?Ne.faqList:[])};Z.categoryList.push(ge)}),t==null||t.map((_e,Me)=>{if((n==null?void 0:n.find(ge=>ge.categoryId===_e.categoryId))===void 0){const ge={categoryId:_e.categoryId,categoryOrder:n?n.length+Me:Me,typeCategory:1,categoryName:_e.categoryName,faqList:[]};Z.categoryList.push(ge)}}),BNt(Z).then(_e=>{switch(o(!1),_e.result.code){case 0:z(),i(),Ut($t.editFaq[0],{variant:"success",autoHideDuration:Kt.success});break;case 11:break;case 12:Ut($t.login[12],{variant:"warning",autoHideDuration:null});break;case 20:Ut($t.editFaq[20],{variant:"warning",autoHideDuration:Kt.warning});break;case 90:Ut($t.editFaq[90],{variant:"warning",autoHideDuration:Kt.warning});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}).catch(()=>{o(!1)})},[c,u]=C.useState(!1);C.useEffect(()=>{_de(t,n)?u(!0):u(!1)},[n,t]);const[d,f]=C.useState(!1),p=()=>!(n==null?void 0:n.every(_e=>_e.faqList.every(Me=>Me.answer.length>0&&Me.question.length>0)));C.useEffect(()=>{f(p)},[n]);const[h,v]=C.useState(-1),b=()=>{v(h-1);const Z={categoryId:h,categoryOrder:h,categoryName:"",faqList:[{id:y,question:"",answer:""}]};if(n){const _e=Xn.cloneDeep(n);_e.push(Z),r(_e),H(n.length),M(n.length)}else r([Z]),H(0),M(0)},g=Z=>{if(n){const _e=Xn.cloneDeep(n);_e.splice(Z,1),r(_e)}},[y,w]=C.useState(-1),x=Z=>{w(y-1);const _e={id:y,question:"",answer:""};if(n&&n.length>0){const Me=Xn.cloneDeep(n);Me[Z].faqList.unshift(_e),r(Me)}else b()},S=(Z,_e)=>{if(n){const Me=Xn.cloneDeep(n);Me[Z].faqList.splice(_e,1),r(Me)}},T=(Z,_e,Me,Ne)=>{const ge=Xn.cloneDeep(n);ge&&(ge[Z].faqList[_e][Me]=Ne,r(ge))},I=()=>{i();const Z=Xn.cloneDeep(t);r(Z)},[P,M]=C.useState(null),N=(Z,_e)=>{const Me=Xn.cloneDeep(n);Me&&(Me[Z].categoryName=_e,r(Me))},R=Z=>{M(Z)},O=()=>{M(null)},[D,L]=C.useState(0),k=Z=>{const _e=new Date().getTime();_e-D<300&&R(Z),L(_e)},[B,H]=C.useState(0),$=Z=>{if(!Z.destination)return;const _e=Xn.cloneDeep(n);if(_e){const[Me]=_e.splice(Z.source.index,1);_e.splice(Z.destination.index,0,Me),H(Z.destination.index),r(_e)}},W=Z=>{if(!Z.destination)return;const _e=Xn.cloneDeep(n);if(_e){const[Me]=_e[B].faqList.splice(Z.source.index,1);_e[B].faqList.splice(Z.destination.index,0,Me),r(_e)}},K=C.useCallback(({children:Z,..._e})=>{const[Me,Ne]=C.useState(!1);return C.useEffect(()=>{const ge=requestAnimationFrame(()=>Ne(!0));return()=>{cancelAnimationFrame(ge),Ne(!1)}},[]),Me?E(hde,{..._e,children:Z}):null},[]),[le,U]=C.useState(!1),q=()=>{U(!0)},z=()=>{U(!1),o(!1)},[ne,G]=C.useState(!1),[te,Y]=C.useState(null),[fe,pe]=C.useState(null),de=(Z,_e)=>{Y(Z),pe(_e),G(!0)},se=()=>{G(!1)};return{isArticleChanged:c,isInputEmpty:d,handleCategoryAdd:b,handleFaqAdd:x,handleFaqDelete:S,handleFaqTextChange:T,handleRevert:I,isEditing:P,handleCategoryNameChange:N,handleBlur:O,handleTouchStart:k,onDragEnd:$,activeTab:B,setActiveTab:H,onFaqDragEnd:W,StrictModeDroppable:K,saveDialogOpen:le,handleSaveDialogOpen:q,handleSaveDialogClose:z,deleteDialogOpen:ne,handledeleteDialogOpen:de,handleDelete:()=>{te!==null&&(g(te),se())},articleData:n,handleDoubleClick:R,handleDeleteDialogClose:se,deleteCategoryName:fe,handleOnSave:l,isUploading:a}},HNt=()=>{const{isArticleChanged:t,isInputEmpty:e,isEditing:n,activeTab:r,saveDialogOpen:i,deleteDialogOpen:a,articleData:o,deleteCategoryName:s,handleCategoryAdd:l,handleFaqAdd:c,handleFaqDelete:u,handleFaqTextChange:d,handleRevert:f,handleCategoryNameChange:p,handleBlur:h,handleTouchStart:v,onDragEnd:b,setActiveTab:g,onFaqDragEnd:y,StrictModeDroppable:w,handleSaveDialogOpen:x,handleSaveDialogClose:S,handledeleteDialogOpen:T,handleDelete:I,handleDoubleClick:P,handleDeleteDialogClose:M,handleOnSave:N,isUploading:R}=UNt();return re(zr,{id:"jara-edit-faq-page",children:[E("div",{className:la.editArea,children:re("div",{className:la.editAreaWidthControl,children:[E("div",{children:re("div",{id:"jara-edit-faq-page-button-group",className:la.topButtonGroup,children:[E(q4,{className:la.topButtonStyle,onClick:()=>{c(r)},children:"項目を追加"}),E(gp,{className:la.topButtonStyle,onClick:f,disabled:t,children:"元に戻す"}),E(s0,{className:la.topButtonStyle,onClick:()=>{x()},disabled:t||e,children:"保存"})]})}),o&&E("div",{id:"jara-edit-faq-page-tabs-group",children:E(lY,{onDragEnd:b,children:E(w,{droppableId:"tabs",direction:"horizontal",children:O=>re(t$e,{ref:O.innerRef,...O.droppableProps,value:r,variant:"scrollable",scrollButtons:!0,allowScrollButtonsMobile:!0,className:la.tabs,TabIndicatorProps:{style:{backgroundColor:"unset"}},sx:{marginTop:"1rem",minHeight:0,[`& .${CC.scrollButtons}`]:{transform:"scale(1.5)","&.Mui-disabled":{opacity:.2}}},children:[o==null?void 0:o.map((D,L)=>E(pY,{draggableId:"category-item-draggableId-"+L,index:L,disableInteractiveElementBlocking:!0,isDragDisabled:n!==null,children:k=>oTe(cW,{ref:k.innerRef,...k.draggableProps,...k.dragHandleProps,sx:{"&.Mui-selected":{color:`${ft.baseColor}`,backgroundColor:ft.primaryColor}},className:r===L?la.selectTab:la.tab,key:"category-"+L,id:"category-"+L,onClick:()=>n?"":g(L),disableRipple:!0,onDoubleClick:()=>{P(L)},onTouchStart:()=>{v(L)},onTouchEnd:()=>{},label:re("span",{children:[L+1+".",n===L?E("input",{style:{maxWidth:"6rem"},maxLength:10,type:"text",value:D.categoryName,onChange:B=>{p(L,B.target.value)},onBlur:h,autoFocus:!0}):E("span",{children:D.categoryName}),r===L&&E(ir,{size:"small",component:"span",onClick:()=>{T(L,D.categoryName)},sx:{color:"white"},children:E(op,{})})]})})},"category-item-draggableKey-"+L)),O?O.placeholder:null,E(cW,{sx:{minWidth:"3rem",minHeight:"3rem",height:"3rem",width:"3rem",color:ft.primaryColor,backgroundColor:ft.baseColor,border:`1px solid ${ft.borderColor}`,borderBottom:"unset",borderLeft:"unset"},id:"category-plus-button",label:E(aue,{}),onClick:()=>{l()}},"category-plus-button")]})})})}),E("div",{id:"jara-edit-faq-page-detail-edit",children:E("div",{children:o==null?void 0:o.map((O,D)=>E(zr,{className:la.faqCardBox,children:E(lY,{onDragEnd:y,children:E(w,{droppableId:"faq-cards",direction:"vertical",children:L=>E("div",{ref:L.innerRef,...L.droppableProps,children:re(RDt,{activeTab:r,index:D,children:[O.faqList.map((k,B)=>E(pY,{draggableId:"faq-item-draggableId-"+B,index:B,disableInteractiveElementBlocking:!0,children:H=>re(lt,{ref:H.innerRef,...H.draggableProps,className:la.faqCard,container:!0,spacing:0,sx:{"--Grid-borderWidth":"1px",borderTop:"var(--Grid-borderWidth) solid",borderLeft:"var(--Grid-borderWidth) solid",borderColor:"divider","& > div":{borderRight:"var(--Grid-borderWidth) solid",borderBottom:"var(--Grid-borderWidth) solid",borderColor:"divider"}},children:[E(lt,{md:10,xs:10,children:E("div",{className:la.faqCardHeader,children:"質問/回答"})}),E(lt,{md:1,xs:1,children:E("div",{className:la.faqCardHeader,children:"削除"})}),E(lt,{md:1,xs:1,children:E("div",{className:la.faqCardHeader,children:"入替"})}),re(lt,{md:10,xs:10,children:[E(lt,{md:12,children:E(su,{multiline:!0,value:k.question,sx:{color:"red","& .MuiInputBase-root.MuiOutlinedInput-root ::placeholder":{color:"red",opacity:1}},error:k.question.length===0,placeholder:"質問を入力してください。",onChange:$=>{d(D,B,"question",$.target.value)},className:la.faqCardInput,rows:2,size:"small",id:"user-info-content",variant:"outlined",inputProps:{maxLength:255}})}),E(lt,{md:12,children:E(su,{multiline:!0,value:k.answer,sx:{color:"red","& .MuiInputBase-root.MuiOutlinedInput-root ::placeholder":{color:"red",opacity:1}},error:k.answer.length===0,placeholder:"回答を入力してください。",onChange:$=>{d(D,B,"answer",$.target.value)},className:la.faqCardInput,rows:4,size:"small",id:"user-info-content",variant:"outlined",inputProps:{maxLength:255}})})]}),E(lt,{md:1,xs:1,className:la.faqCardIcon,children:E(ir,{onClick:()=>{u(D,B)},sx:{color:"red"},children:E(RD,{sx:{transform:"scale(2)"}})})}),E(lt,{md:1,xs:1,className:la.faqCardIcon,children:E(ir,{...H.dragHandleProps,children:E(oue,{sx:{transform:"scale(2)"}})})})]},`detail-edit-card-${D}-faq-${B}`)},"faq-item-draggableKey-"+B)),L?L.placeholder:null]})})})})},"detail-edit-card-"+D))})})]})}),E(fu,{open:i,dialogTitle:"よくあるご質問を保存しますか?",handleClose:S,handleSave:N,isSaving:R,children:E(iue,{categoryList:o})}),E(fu,{open:a,dialogText:s+"を削除しますか",handleClose:M,handleDelete:I})]})};var L5={},VNt=hn;Object.defineProperty(L5,"__esModule",{value:!0});var wde=L5.default=void 0,zNt=VNt(bn()),jNt=_n;wde=L5.default=(0,zNt.default)((0,jNt.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFileOutlined");function q0(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(t,e||[])).next())})}function Y0(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function kY(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r0?r:t.name,writable:!1,configurable:!1,enumerable:!0})}return n}function WNt(t){var e=t.name,n=e&&e.lastIndexOf(".")!==-1;if(n&&!t.type){var r=e.split(".").pop().toLowerCase(),i=GNt.get(r);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}var qNt=[".DS_Store","Thumbs.db"];function YNt(t){return q0(this,void 0,void 0,function(){return Y0(this,function(e){return UA(t)&&JNt(t.dataTransfer)?[2,ZNt(t.dataTransfer,t.type)]:QNt(t)?[2,KNt(t)]:Array.isArray(t)&&t.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,XNt(t)]:[2,[]]})})}function JNt(t){return UA(t)}function QNt(t){return UA(t)&&UA(t.target)}function UA(t){return typeof t=="object"&&t!==null}function KNt(t){return C3(t.target.files).map(function(e){return cx(e)})}function XNt(t){return q0(this,void 0,void 0,function(){var e;return Y0(this,function(n){switch(n.label){case 0:return[4,Promise.all(t.map(function(r){return r.getFile()}))];case 1:return e=n.sent(),[2,e.map(function(r){return cx(r)})]}})})}function ZNt(t,e){return q0(this,void 0,void 0,function(){var n,r;return Y0(this,function(i){switch(i.label){case 0:return t.items?(n=C3(t.items).filter(function(a){return a.kind==="file"}),e!=="drop"?[2,n]:[4,Promise.all(n.map(e2t))]):[3,2];case 1:return r=i.sent(),[2,FY(xde(r))];case 2:return[2,FY(C3(t.files).map(function(a){return cx(a)}))]}})})}function FY(t){return t.filter(function(e){return qNt.indexOf(e.name)===-1})}function C3(t){if(t===null)return[];for(var e=[],n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nn)return[!1,VY(n)];if(t.sizen)return[!1,VY(n)]}return[!0,null]}function rh(t){return t!=null}function g2t(t){var e=t.files,n=t.accept,r=t.minSize,i=t.maxSize,a=t.multiple,o=t.maxFiles,s=t.validator;return!a&&e.length>1||a&&o>=1&&e.length>o?!1:e.every(function(l){var c=Tde(l,n),u=k1(c,1),d=u[0],f=Ade(l,r,i),p=k1(f,1),h=p[0],v=s?s(l):null;return d&&h&&!v})}function HA(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function yS(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function jY(t){t.preventDefault()}function v2t(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function y2t(t){return t.indexOf("Edge/")!==-1}function b2t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return v2t(t)||y2t(t)}function Ic(){for(var t=arguments.length,e=new Array(t),n=0;n1?i-1:0),o=1;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function k2t(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a=0)&&(n[i]=t[i]);return n}var k5=C.forwardRef(function(t,e){var n=t.children,r=VA(t,C2t),i=Rde(r),a=i.open,o=VA(i,T2t);return C.useImperativeHandle(e,function(){return{open:a}},[a]),xe.createElement(C.Fragment,null,n(qr(qr({},o),{},{open:a})))});k5.displayName="Dropzone";var Pde={disabled:!1,getFilesFromEvent:YNt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};k5.defaultProps=Pde;k5.propTypes={children:Ie.func,accept:Ie.objectOf(Ie.arrayOf(Ie.string)),multiple:Ie.bool,preventDropOnDocument:Ie.bool,noClick:Ie.bool,noKeyboard:Ie.bool,noDrag:Ie.bool,noDragEventsBubbling:Ie.bool,minSize:Ie.number,maxSize:Ie.number,maxFiles:Ie.number,disabled:Ie.bool,getFilesFromEvent:Ie.func,onFileDialogCancel:Ie.func,onFileDialogOpen:Ie.func,useFsAccessApi:Ie.bool,autoFocus:Ie.bool,onDragEnter:Ie.func,onDragLeave:Ie.func,onDragOver:Ie.func,onDrop:Ie.func,onDropAccepted:Ie.func,onDropRejected:Ie.func,onError:Ie.func,validator:Ie.func};var M3={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Rde(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=qr(qr({},Pde),t),n=e.accept,r=e.disabled,i=e.getFilesFromEvent,a=e.maxSize,o=e.minSize,s=e.multiple,l=e.maxFiles,c=e.onDragEnter,u=e.onDragLeave,d=e.onDragOver,f=e.onDrop,p=e.onDropAccepted,h=e.onDropRejected,v=e.onFileDialogCancel,b=e.onFileDialogOpen,g=e.useFsAccessApi,y=e.autoFocus,w=e.preventDropOnDocument,x=e.noClick,S=e.noKeyboard,T=e.noDrag,I=e.noDragEventsBubbling,P=e.onError,M=e.validator,N=C.useMemo(function(){return x2t(n)},[n]),R=C.useMemo(function(){return w2t(n)},[n]),O=C.useMemo(function(){return typeof b=="function"?b:WY},[b]),D=C.useMemo(function(){return typeof v=="function"?v:WY},[v]),L=C.useRef(null),k=C.useRef(null),B=C.useReducer(F2t,M3),H=zN(B,2),$=H[0],W=H[1],K=$.isFocused,le=$.isFileDialogActive,U=C.useRef(typeof window<"u"&&window.isSecureContext&&g&&_2t()),q=function(){!U.current&&le&&setTimeout(function(){if(k.current){var Ee=k.current.files;Ee.length||(W({type:"closeDialog"}),D())}},300)};C.useEffect(function(){return window.addEventListener("focus",q,!1),function(){window.removeEventListener("focus",q,!1)}},[k,le,D,U]);var z=C.useRef([]),ne=function(Ee){L.current&&L.current.contains(Ee.target)||(Ee.preventDefault(),z.current=[])};C.useEffect(function(){return w&&(document.addEventListener("dragover",jY,!1),document.addEventListener("drop",ne,!1)),function(){w&&(document.removeEventListener("dragover",jY),document.removeEventListener("drop",ne))}},[L,w]),C.useEffect(function(){return!r&&y&&L.current&&L.current.focus(),function(){}},[L,y,r]);var G=C.useCallback(function(ae){P?P(ae):console.error(ae)},[P]),te=C.useCallback(function(ae){ae.preventDefault(),ae.persist(),Q(ae),z.current=[].concat(M2t(z.current),[ae.target]),yS(ae)&&Promise.resolve(i(ae)).then(function(Ee){if(!(HA(ae)&&!I)){var Pe=Ee.length,We=Pe>0&&g2t({files:Ee,accept:N,minSize:o,maxSize:a,multiple:s,maxFiles:l,validator:M}),Fe=Pe>0&&!We;W({isDragAccept:We,isDragReject:Fe,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ae)}}).catch(function(Ee){return G(Ee)})},[i,c,G,I,N,o,a,s,l,M]),Y=C.useCallback(function(ae){ae.preventDefault(),ae.persist(),Q(ae);var Ee=yS(ae);if(Ee&&ae.dataTransfer)try{ae.dataTransfer.dropEffect="copy"}catch{}return Ee&&d&&d(ae),!1},[d,I]),fe=C.useCallback(function(ae){ae.preventDefault(),ae.persist(),Q(ae);var Ee=z.current.filter(function(We){return L.current&&L.current.contains(We)}),Pe=Ee.indexOf(ae.target);Pe!==-1&&Ee.splice(Pe,1),z.current=Ee,!(Ee.length>0)&&(W({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),yS(ae)&&u&&u(ae))},[L,u,I]),pe=C.useCallback(function(ae,Ee){var Pe=[],We=[];ae.forEach(function(Fe){var Ae=Tde(Fe,N),he=zN(Ae,2),Ye=he[0],Ke=he[1],Je=Ade(Fe,o,a),nt=zN(Je,2),je=nt[0],Ue=nt[1],at=M?M(Fe):null;if(Ye&&je&&!at)Pe.push(Fe);else{var vt=[Ke,Ue];at&&(vt=vt.concat(at)),We.push({file:Fe,errors:vt.filter(function(At){return At})})}}),(!s&&Pe.length>1||s&&l>=1&&Pe.length>l)&&(Pe.forEach(function(Fe){We.push({file:Fe,errors:[m2t]})}),Pe.splice(0)),W({acceptedFiles:Pe,fileRejections:We,type:"setFiles"}),f&&f(Pe,We,Ee),We.length>0&&h&&h(We,Ee),Pe.length>0&&p&&p(Pe,Ee)},[W,s,N,o,a,l,f,p,h,M]),de=C.useCallback(function(ae){ae.preventDefault(),ae.persist(),Q(ae),z.current=[],yS(ae)&&Promise.resolve(i(ae)).then(function(Ee){HA(ae)&&!I||pe(Ee,ae)}).catch(function(Ee){return G(Ee)}),W({type:"reset"})},[i,pe,G,I]),se=C.useCallback(function(){if(U.current){W({type:"openDialog"}),O();var ae={multiple:s,types:R};window.showOpenFilePicker(ae).then(function(Ee){return i(Ee)}).then(function(Ee){pe(Ee,null),W({type:"closeDialog"})}).catch(function(Ee){E2t(Ee)?(D(Ee),W({type:"closeDialog"})):S2t(Ee)?(U.current=!1,k.current?(k.current.value=null,k.current.click()):G(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):G(Ee)});return}k.current&&(W({type:"openDialog"}),O(),k.current.value=null,k.current.click())},[W,O,D,g,pe,G,R,s]),me=C.useCallback(function(ae){!L.current||!L.current.isEqualNode(ae.target)||(ae.key===" "||ae.key==="Enter"||ae.keyCode===32||ae.keyCode===13)&&(ae.preventDefault(),se())},[L,se]),Z=C.useCallback(function(){W({type:"focus"})},[]),_e=C.useCallback(function(){W({type:"blur"})},[]),Me=C.useCallback(function(){x||(b2t()?setTimeout(se,0):se())},[x,se]),Ne=function(Ee){return r?null:Ee},ge=function(Ee){return S?null:Ne(Ee)},ee=function(Ee){return T?null:Ne(Ee)},Q=function(Ee){I&&Ee.stopPropagation()},V=C.useMemo(function(){return function(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=ae.refKey,Pe=Ee===void 0?"ref":Ee,We=ae.role,Fe=ae.onKeyDown,Ae=ae.onFocus,he=ae.onBlur,Ye=ae.onClick,Ke=ae.onDragEnter,Je=ae.onDragOver,nt=ae.onDragLeave,je=ae.onDrop,Ue=VA(ae,A2t);return qr(qr(I3({onKeyDown:ge(Ic(Fe,me)),onFocus:ge(Ic(Ae,Z)),onBlur:ge(Ic(he,_e)),onClick:Ne(Ic(Ye,Me)),onDragEnter:ee(Ic(Ke,te)),onDragOver:ee(Ic(Je,Y)),onDragLeave:ee(Ic(nt,fe)),onDrop:ee(Ic(je,de)),role:typeof We=="string"&&We!==""?We:"presentation"},Pe,L),!r&&!S?{tabIndex:0}:{}),Ue)}},[L,me,Z,_e,Me,te,Y,fe,de,S,T,r]),j=C.useCallback(function(ae){ae.stopPropagation()},[]),ye=C.useMemo(function(){return function(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=ae.refKey,Pe=Ee===void 0?"ref":Ee,We=ae.onChange,Fe=ae.onClick,Ae=VA(ae,I2t),he=I3({accept:N,multiple:s,type:"file",style:{display:"none"},onChange:Ne(Ic(We,de)),onClick:Ne(Ic(Fe,j)),tabIndex:-1},Pe,k);return qr(qr({},he),Ae)}},[k,n,s,de,r]);return qr(qr({},$),{},{isFocused:K&&!r,getRootProps:V,getInputProps:ye,rootRef:L,inputRef:k,open:Ne(se)})}function F2t(t,e){switch(e.type){case"focus":return qr(qr({},t),{},{isFocused:!0});case"blur":return qr(qr({},t),{},{isFocused:!1});case"openDialog":return qr(qr({},M3),{},{isFileDialogActive:!0});case"closeDialog":return qr(qr({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return qr(qr({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return qr(qr({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return qr({},M3);default:return t}}function WY(){}const $2t=t=>{const{userInfo:e,uploadFileSelected:n,updateData:r,handleDelete:i,removeUploadFile:a}=t,[o,s]=C.useState(null),[l,c]=C.useState(!1),[u,d]=C.useState(""),[f,p]=C.useState(null),[h,v]=C.useState(""),[b,g]=C.useState(new Date),[y,w]=C.useState("");C.useEffect(()=>{s(e.id),c(e.whatsNew),w(e.date),g(r4(e.date,"yyyy/MM/dd",new Date)),p(e.fileName),d(e.title),v(e.content)},[e]);const x=()=>{c(!l)},S=Y=>{d(Y.target.value)},T=Y=>{v(Y.target.value)},I=Y=>{if(Y){g(Y);const fe=_1(Y,"yyyy/MM/dd");w(fe)}},[P,M]=C.useState([]),[N,R]=C.useState(!1),O=Y=>{M(Y),R(!0)},D=()=>{R(!1)},L=()=>{var Y,fe;R(!1),n(e.id,P[0]),(Y=P[0])!=null&&Y.path&&p((fe=P[0])==null?void 0:fe.path)},k=()=>{a(e.id),p(""),R(!1)},[B,H]=C.useState(!1),[$,W]=C.useState(!1),K=()=>{H(!0),f&&f.length>0?W(!0):te()},le=()=>{W(!1),H(!1)},U=()=>{le(),te()},q=()=>{a(e.id),p(""),le()},z=Y=>{var pe,de;const fe=Y;!f||f&&f.length===0||B?(n(e.id,fe[0]),(pe=fe[0])!=null&&pe.path&&p((de=fe[0])==null?void 0:de.path),H(!1)):f&&!B&&O(fe)},{getRootProps:ne,getInputProps:G,open:te}=Rde({onDrop:z,maxFiles:1,multiple:!1,accept:{"application/pdf":[".pdf"]},noClick:!0,noKeyboard:!0});return C.useEffect(()=>{o&&r(o,l,u,f,h,y)},[l,u,f,h,y]),{checked:l,handleCheckBox:x,dateTimeValue:b,handleDateTimeChange:I,onDropzoneClick:K,getRootProps:ne,getInputProps:G,fileName:f,handleDelete:i,title:u,handleTitleChange:S,content:h,handleContentChange:T,selectFileDialogOpen:N,handleSelectFileDialogClose:D,handleUploadFileDelete:k,handleCloseDialogAndChangeFile:L,clickSelectFileDialogOpen:$,handleClickSelectFileDialogClose:le,handleClickUploadFileDelete:q,handleClickCloseDialogAndChangeFile:U,userInfo:e}},B2t="#ffffff",U2t="#29a03b",H2t="#c2d93d",V2t="#808080",z2t="#D9D9D9",j2t="#ccc",G2t="rgba(242, 242, 242, 0.4588235294)",W2t="2rem",q2t="1.5rem",Y2t="14px",J2t="65rem",Q2t="_jaraMain_1by7o_19",K2t="_fileNameText_1by7o_31",X2t="_topButtonGroup_1by7o_37",Z2t="_deleteButtonGroup_1by7o_40",eLt="_deleteDialogButtonStyle_1by7o_44",tLt="_jaraCardBox_1by7o_70",nLt="_fadein_1by7o_1",rLt="_cardMain_1by7o_74",iLt="_cardSubMain_1by7o_79",aLt="_cardHeader_1by7o_83",oLt="_secondRow_1by7o_89",sLt="_cardBody_1by7o_99",lLt="_cardInput_1by7o_109",cLt="_dropZone_1by7o_113",Wr={baseColor:B2t,primaryColor:U2t,secondColor:H2t,neutralColor:V2t,hatchingColor:z2t,borderColor:j2t,evevRowColor:G2t,largeFont:W2t,mediumFont:q2t,smallFont:Y2t,pagePCMinWidth:J2t,jaraMain:Q2t,fileNameText:K2t,topButtonGroup:X2t,deleteButtonGroup:Z2t,deleteDialogButtonStyle:eLt,jaraCardBox:tLt,fadein:nLt,cardMain:rLt,cardSubMain:iLt,cardHeader:aLt,secondRow:oLt,cardBody:sLt,cardInput:lLt,dropZone:cLt},uLt=t=>{const{checked:e,handleCheckBox:n,dateTimeValue:r,handleDateTimeChange:i,onDropzoneClick:a,getRootProps:o,getInputProps:s,fileName:l,handleDelete:c,title:u,handleTitleChange:d,content:f,handleContentChange:p,selectFileDialogOpen:h,handleSelectFileDialogClose:v,handleUploadFileDelete:b,handleCloseDialogAndChangeFile:g,clickSelectFileDialogOpen:y,handleClickSelectFileDialogClose:w,handleClickUploadFileDelete:x,handleClickCloseDialogAndChangeFile:S,userInfo:T}=$2t(t);return re(zr,{className:Wr.cardMain,children:[re(lt,{className:Wr.cardSubMain,container:!0,spacing:0,sx:{"--Grid-borderWidth":"1px",borderTop:"var(--Grid-borderWidth) solid",borderLeft:"var(--Grid-borderWidth) solid",borderColor:"divider","& > div":{borderRight:"var(--Grid-borderWidth) solid",borderBottom:"var(--Grid-borderWidth) solid",borderColor:"divider"}},children:[E(lt,{md:1,xs:1,children:E("div",{className:Wr.cardHeader,children:"新着"})}),E(lt,{md:2,xs:5,children:E("div",{className:Wr.cardHeader,children:"表示日付"})}),E(lt,{md:8,xs:5,children:E("div",{className:Wr.cardHeader,children:"添付ファイル"})}),E(lt,{md:1,xs:1,children:E("div",{className:Wr.cardHeader,children:"削除"})}),E(lt,{md:1,xs:1,children:E("div",{className:Wr.secondRow,children:E(mo,{sx:{"& .MuiSvgIcon-root":{fontSize:"2.5rem"}},checked:e,onChange:n})})}),E(lt,{md:2,xs:5,children:E("div",{className:Wr.secondRow,children:E(FD,{dateAdapter:xce,adapterLocale:SD,dateFormats:{monthAndYear:"yyyy年 MM月"},localeText:{previousMonth:"前月を表示",nextMonth:"次月を表示",cancelButtonLabel:"キャンセル",okButtonLabel:"選択"},children:E(f3,{value:r,onChange:i,slotProps:{toolbar:{toolbarFormat:"yyyy年MM月dd日"},textField:{variant:"outlined"}}})})})}),E(lt,{md:8,xs:5,children:E("div",{className:Wr.secondRow,children:E("div",{className:Wr.dropZone,onClick:a,children:re("div",{id:"edit-card-dropzone",style:{display:"flex",alignItems:"center",height:"100%",textAlign:"center"},...o({className:"dropzone"}),children:[E("input",{...s()}),E("div",{children:l?E("p",{className:Wr.fileNameText,children:l}):E(wde,{})})]})})})}),E(lt,{md:1,xs:1,children:E("div",{className:Wr.secondRow,children:E(ir,{onClick:()=>{c(T.id)},sx:{color:"red"},children:E(RD,{sx:{transform:"scale(2)"}})})})}),E(lt,{xs:12,children:E("div",{className:Wr.cardHeader,children:"件名"})}),E(lt,{xs:12,children:E("div",{className:Wr.cardBody,children:E(su,{value:u,sx:{input:{padding:"5px 14px","&::placeholder":{color:"red",opacity:1}}},error:u.length===0,placeholder:"件名を入力してください。",onChange:d,className:Wr.cardInput,size:"small",id:"user-info-title",variant:"outlined",inputProps:{maxLength:40}})})}),E(lt,{xs:12,children:E("div",{className:Wr.cardHeader,children:"本文"})}),E(lt,{xs:12,children:E("div",{className:Wr.cardBody,children:E(su,{multiline:!0,value:f,sx:{color:"red","& .MuiInputBase-root.MuiOutlinedInput-root":{padding:"5px 14px"},"& .MuiInputBase-root.MuiOutlinedInput-root ::placeholder":{color:"red",opacity:1}},error:f.length===0,placeholder:"本文を入力してください。",onChange:p,className:Wr.cardInput,rows:5,size:"small",id:"user-info-content",variant:"outlined",inputProps:{maxLength:512}})})})]}),E(fu,{open:h,dialogText:`すでに添付ファイルが設定されてます。 添付ファイルを 変更 / 削除 しますか?`,handleClose:v,handleDelete:b,handleChange:g}),E(fu,{open:y,handleClose:w,handleDelete:x,handleChange:S,dialogText:`すでに添付ファイルが設定されてます。 添付ファイルを 変更 / 削除しますか?`})]})},dLt="#ffffff",fLt="#29a03b",pLt="#c2d93d",hLt="#808080",mLt="#D9D9D9",gLt="#ccc",vLt="rgba(242, 242, 242, 0.4588235294)",yLt="2rem",bLt="1.5rem",_Lt="14px",wLt="65rem",xLt="_jaraMain_1w70k_19",ELt="_titleText_1w70k_31",SLt="_backArrow_1w70k_35",CLt="_title_1w70k_31",TLt="_titleChild_1w70k_48",ALt="_main_1w70k_51",ILt="_detailArea_1w70k_75",Jd={baseColor:dLt,primaryColor:fLt,secondColor:pLt,neutralColor:hLt,hatchingColor:mLt,borderColor:gLt,evevRowColor:vLt,largeFont:yLt,mediumFont:bLt,smallFont:_Lt,pagePCMinWidth:wLt,jaraMain:xLt,titleText:ELt,backArrow:SLt,title:CLt,titleChild:TLt,main:ALt,detailArea:ILt},MLt=t=>{const{value:e,setDetailData:n}=t;return E("div",{children:e?re("div",{className:Jd.main,children:[re("div",{className:Jd.title,children:[E("div",{className:Jd.titleChild,children:E(ir,{onClick:()=>{n(null)},children:E(U0,{className:Jd.backArrow})})}),E("div",{className:Jd.titleChild,children:E("div",{className:Jd.titleText,children:e.title})}),E("div",{className:Jd.titleChild})]}),E("br",{}),E("br",{}),E(oi,{children:E(Va,{elevation:0,sx:{display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#ffffff95",height:"100%",padding:"2rem 1rem"},children:re("div",{className:Jd.detailArea,children:[E("div",{children:e.date}),E("br",{}),E("div",{children:e.content}),E("br",{}),E("br",{}),E("a",{href:"",children:e.fileName})]})})})]}):""})},DLt="#ffffff",PLt="#29a03b",RLt="#c2d93d",OLt="#808080",NLt="#D9D9D9",LLt="#ccc",kLt="rgba(242, 242, 242, 0.4588235294)",FLt="2rem",$Lt="1.5rem",BLt="14px",ULt="65rem",HLt="_jaraMain_15cqb_19",VLt="_title_15cqb_31",zLt="_newLabel_15cqb_35",jLt="_rigthArrow_15cqb_45",qY={baseColor:DLt,primaryColor:PLt,secondColor:RLt,neutralColor:OLt,hatchingColor:NLt,borderColor:LLt,evevRowColor:kLt,largeFont:FLt,mediumFont:$Lt,smallFont:BLt,pagePCMinWidth:ULt,jaraMain:HLt,title:VLt,newLabel:zLt,rigthArrow:jLt},GLt=t=>{const{previewDataList:e}=t,[n,r]=C.useState(null),i=a=>{r(a)};return E("div",{children:n?E(MLt,{value:n,setDetailData:r}):re(S0,{children:[E(Rh,{}),e==null?void 0:e.map((a,o)=>re(zr,{children:[E(Z$,{disablePadding:!0,children:re(X$,{onClick:()=>{i(a)},children:[E(eB,{sx:{minWidth:"5rem"},children:a.whatsNew?E("div",{className:qY.newLabel,children:"New"}):E("div",{})}),E(fs,{sx:{paddingLeft:"10px"},inset:!0,primary:a.date,secondary:E("a",{onClick:s=>{s.preventDefault()},href:"",children:a.title})}),E(ND,{className:qY.rigthArrow})]})}),E(Rh,{})]},"jara-info-Box"+o))]})})},WLt=async t=>(await Bn.post(lae,t,{headers:{"Content-Type":!1}})).data,qLt=()=>{const{refetch:t}=fr(Ei.LIST_INFO,l5,{refetchOnWindowFocus:!1,onSuccess:R=>{var D;((D=R==null?void 0:R.noticeList)==null?void 0:D.length)===0&&Ut($t.editInfo[10],{variant:"warning",autoHideDuration:Kt.warning});const O=R.noticeList?R.noticeList:void 0;n(O),i(O)}}),[e,n]=C.useState(void 0),[r,i]=C.useState(void 0),[a,o]=C.useState([]),s=(R,O)=>{const D={id:R,file:O},L=a.findIndex(k=>k.id===R);if(L===-1)o([...a,D]);else{const k=[...a];k[L]=D,o(k)}},l=R=>{const O=a.filter(D=>D.id!==R);o(O)},[c,u]=C.useState(!1),d=()=>{u(!0);const R={noticeList:[],fileList:[]};r==null||r.map(D=>{const L=e==null?void 0:e.find(W=>W.id===D.id),k=a.find(W=>W.id===D.id),B=()=>{if(L){if(k&&(L.fileName===null||L.fileName===""))return 0;if(L.fileName!==null&&k)return 1;if(L.fileName!==null&&(D.fileName===""||D.fileName===null)&&!k)return 2;if(L.fileName===D.fileName&&!k)return 3}else{if(!L&&!k)return 3;if(!L&&k)return 0}return 0},H={id:D.id<0?-1:D.id,whatsNew:D.whatsNew,date:D.date,type:0,attachType:B(),title:D.title,content:D.content},$={fileInfo:(k==null?void 0:k.file)||null};R.noticeList.push(H),R.fileList.push($)}),e==null||e.map(D=>{if((r==null?void 0:r.find(k=>k.id===D.id))===void 0){const k={id:D.id,whatsNew:D.whatsNew,date:D.date,type:1,attachType:3,title:D.title,content:D.content},B={fileInfo:null};R.noticeList.push(k),R.fileList.push(B)}});const O=new FormData;O.append("noticeList",new Blob([JSON.stringify(R.noticeList)],{type:"application/json; charset=utf-8"})),R.fileList.forEach(D=>{D.fileInfo&&O.append("fileList",D.fileInfo)}),WLt(O).then(D=>{switch(u(!1),D.result.code){case 0:N(),t(),Ut($t.editInfo[0],{variant:"success",autoHideDuration:Kt.success});break;case 11:break;case 12:Ut($t.login[12],{variant:"warning",autoHideDuration:null});break;case 20:Ut($t.editInfo[20],{variant:"warning",autoHideDuration:Kt.warning});break;case 90:Ut($t.editInfo[90],{variant:"warning",autoHideDuration:Kt.warning});break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}).catch(()=>{u(!1)})},[f,p]=C.useState(!1);C.useEffect(()=>{_de(e,r)?p(!0):p(!1)},[r,e]);const[h,v]=C.useState(!1),b=R=>!(R==null?void 0:R.every(D=>D.title.length>0&&D.content.length>0));C.useEffect(()=>{const R=b(r);v(R)},[r]);const g=()=>{t();const R=Xn.cloneDeep(e);i(R)},[y,w]=C.useState(-2),x=()=>{w(y-1);const R=[{id:y,whatsNew:!1,title:"",fileName:"",content:"",date:_1(new Date,"yyyy/MM/dd")}];if(r){const O=R.concat(r);i(O)}else i(R)},S=(R,O,D,L,k,B)=>{i(H=>H==null?void 0:H.map($=>$.id===R?{...$,whatsNew:O,title:D,fileName:L,content:k,date:B}:$))},T=R=>{if(r){const O=r.filter(D=>D.id!==R);i(O)}},[I,P]=C.useState(!1),M=()=>{P(!0)},N=()=>{P(!1)};return{handleAdd:x,handleRevert:g,isArticleChanged:f,handleSaveDialogOpen:M,isInputEmpty:h,articleData:r,handleDelete:T,uploadFileSelected:s,removeUploadFile:l,updateData:S,saveDialogOpen:I,handleSaveDialogClose:N,handleOnSave:d,isUploading:c}},YLt=()=>{const{handleAdd:t,handleRevert:e,isArticleChanged:n,handleSaveDialogOpen:r,isInputEmpty:i,articleData:a,handleDelete:o,uploadFileSelected:s,removeUploadFile:l,updateData:c,saveDialogOpen:u,handleSaveDialogClose:d,handleOnSave:f,isUploading:p}=qLt();return re("div",{id:"jara-edit-info-page",children:[E(zr,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:re("div",{children:[re("div",{id:"jara-edit-info-page-button-group",className:Wr.topButtonGroup,children:[E(q4,{className:Wr.topButtonStyle,onClick:t,children:"項目を追加"}),E(gp,{className:Wr.topButtonStyle,onClick:e,disabled:n,children:"元に戻す"}),E(s0,{className:Wr.topButtonStyle,onClick:()=>{r()},disabled:n||i,children:"保存"})]}),a==null?void 0:a.map(h=>E(zr,{style:{display:"flex",justifyContent:"center"},className:Wr.jaraCardBox,children:E(uLt,{userInfo:h,handleDelete:o,uploadFileSelected:s,removeUploadFile:l,updateData:c})},"jara-edit-card"+h.id))]})}),E(fu,{open:u,dialogTitle:"お知らせを保存しますか?",handleClose:d,handleSave:f,isSaving:p,children:E(GLt,{previewDataList:a})})]})},YY=async t=>(await Bn.post(Wje,t)).data,JLt="_passwordArea_f9hfo_1",QLt="_input_f9hfo_8",KLt="_helperText_f9hfo_12",jN={passwordArea:JLt,input:QLt,helperText:KLt},HC=({passwordName:t,passwordKanjiName:e,passwordError:n,handleValueChange:r,noLabel:i,noHelperText:a,size:o,value:s,isChangePasswordPage:l})=>{const[c,u]=C.useState(!1);return re("div",{className:jN.passwordArea,style:{height:l?"7rem":""},children:[E(su,{value:s,size:o==="small"?"small":"medium",inputProps:{maxLength:20},onChange:r,onBlur:r,sx:{"& .MuiOutlinedInput-notchedOutline":{fontSize:"1.2rem"}},InputLabelProps:{sx:{fontSize:"1.2rem"},shrink:!0},className:jN.input,type:c?"text":"password",id:t,name:t,label:i?"":e,placeholder:`${e}を入力してください`,InputProps:{endAdornment:E(DM,{position:"end",children:E(ir,{onClick:()=>{u(!c)},edge:"end",children:c?E(_4,{}):E(y4,{})})})},error:n!==null}),E("div",{children:E(i1,{error:!0,children:E("span",{className:jN.helperText,children:!a&&n?n:`${l?"":""}`})})})]})},XLt=()=>E("span",{style:{fontSize:"1rem",color:"red",verticalAlign:"super"},children:"*"}),ZLt=[{key:"user",name:"会社名",require:!0,maxLength:255,isCommonInput:!0},{key:"tel",name:"電話番号",require:!1,maxLength:11},{key:"zipCode",name:"郵便番号",require:!1,maxLength:7},{key:"address1",name:"住所1",require:!1,maxLength:255,isCommonInput:!0},{key:"address2",name:"住所2(番地)",require:!1,maxLength:255,isCommonInput:!0},{key:"venueList",name:"会場",require:!1},{key:"userId",name:"ログインID",require:!0,isCommonInput:!0,maxLength:20},{key:"password",name:"パスワード",require:!0,maxLength:255},{key:"firstLogin",name:"初回フラグ",require:!1}],ekt=()=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZ",e="abcdefghijklmnopqrstuvwxyz",n="0123456789",r="!@#$%^&*()-_+=~`[]{}|;:,.<>?";let i="",a=0;for(;a<2||i.length!==8;){i="",a=0;const o=t+e+n+r;for(let s=0;s<8;s++)i+=o[Math.floor(Math.random()*o.length)];/[A-Z]/.test(i)&&a++,/[a-z]/.test(i)&&a++,/\d/.test(i)&&a++,/[!@#$%^&*()-_+=~`[\]{}|;:,.<>?]/.test(i)&&a++}return i},D3=/^[a-zA-Z0-9!-/:-@\[-`{-~]*$/,tkt="#ffffff",nkt="#29a03b",rkt="#c2d93d",ikt="#808080",akt="#D9D9D9",okt="#ccc",skt="rgba(242, 242, 242, 0.4588235294)",lkt="2rem",ckt="1.5rem",ukt="14px",dkt="65rem",fkt="_jaraMain_187wa_19",pkt="_passwordArea_187wa_34",hkt="_membersEditArea_187wa_37",mkt="_membersEditForm_187wa_42",gkt="_membersEditPage_187wa_48",vkt="_mutipleTextField_187wa_53",ykt="_hyphen_187wa_58",bkt="_createButton_187wa_67",_kt="_helperText_187wa_82",Mc={baseColor:tkt,primaryColor:nkt,secondColor:rkt,neutralColor:ikt,hatchingColor:akt,borderColor:okt,evevRowColor:skt,largeFont:lkt,mediumFont:ckt,smallFont:ukt,pagePCMinWidth:dkt,jaraMain:fkt,passwordArea:pkt,membersEditArea:hkt,membersEditForm:mkt,membersEditPage:gkt,mutipleTextField:vkt,hyphen:ykt,createButton:bkt,helperText:_kt},wkt=t=>{const{itemValue:e,item:n,handleOnchange:r}=t;return E(lt,{md:10,xs:12,children:E(Vc,{id:`${n.key}${n.name}`,onChange:r,value:e,name:n.key,sx:{"& .MuiInputBase-root.MuiOutlinedInput-root ::placeholder":{color:n.require?"red":"",opacity:n.require?1:""}},error:n.require===!0&&typeof e=="string"&&(e==null?void 0:e.length)===0,placeholder:`${n.name}を入力してください。`,inputProps:{maxLength:255}})})},xkt=()=>{var ne,G;const[t,e]=C.useState(!1),n=_r(),{checkIsNull:r,checkPasswordValue:i}=x4(),[a,o]=C.useState(!1),[s]=Wi(),[l,c]=C.useState(void 0),u=Ule();C.useEffect(()=>{const te=s.get("listIndex");o(!!te),$le(u).then(Y=>{Y.result.code===0&&te&&c(Y.venueList[Number(te)])})},[window.location.href]);const d=te=>{var de,se;const Y=(de=te.tel)==null?void 0:de.split("-"),fe=(se=te.zipCode)==null?void 0:se.split("-"),pe=Xn.cloneDeep(te.venueList.map(me=>me.venueCode));(Y==null?void 0:Y.length)===3&&(I(Y[0]),M(Y[1]),R(Y[2])),(fe==null?void 0:fe.length)===2&&(D(fe[0]),k(fe[1])),h({...f,user:te.name,address1:te.address1,address2:te.address2,venueList:pe,id:te.id,userId:te.userId,tel:te.tel,zipCode:te.zipCode,change:!1}),y({...f,user:te.name,address1:te.address1,address2:te.address2,venueList:pe,id:te.id,userId:te.userId,tel:te.tel,zipCode:te.zipCode,change:!1})};C.useEffect(()=>{l&&d(l)},[l]);const f={type:a?2:1,id:-1,userId:"",user:"",zipCode:"",address1:"",address2:"",venueList:[],tel:"",password:"",change:!1},[p,h]=C.useState(f),v=te=>{const{name:Y,value:fe,type:pe,checked:de}=te.target,se=pe==="checkbox"?de:fe;h({...p,[Y]:se})},b=te=>{te.preventDefault(),e(!0),YY(p).then(Y=>{switch(e(!1),Y.result.code){case 0:n(-1);break;case 33:Ut($t.editMembers[33],{variant:"warning",autoHideDuration:Kt.warning});break;case 90:Ut($t.editMembers[90],{variant:"error",autoHideDuration:Kt.error});break}})},[g,y]=C.useState(f),[w,x]=C.useState(!1);C.useEffect(()=>{Xn.isEqual(g,p)?x(!0):x(!1)},[p]);const S=()=>E("span",{className:Mc.hyphen,children:"-"}),[T,I]=C.useState(""),[P,M]=C.useState(""),[N,R]=C.useState("");C.useEffect(()=>{h({...p,tel:`${T}-${P}-${N}`})},[T,P,N]);const[O,D]=C.useState(""),[L,k]=C.useState("");C.useEffect(()=>{h({...p,zipCode:`${O}-${L}`})},[O,L]);const[B,H]=C.useState([]);fr(Ei.VENUE_LIST,()=>kle(),{refetchOnWindowFocus:!1,onSuccess:te=>{H(te.venueList)}});const $=te=>{if(p.venueList.includes(te)){const Y=p.venueList.filter(fe=>fe!==te);h({...p,venueList:Y})}else{const Y=[...p.venueList,te];h({...p,venueList:Y})}},[W,K]=C.useState(null),le=te=>{const Y=te.target;h({...p,password:Y.value}),r(Y.value)?K(a?null:"パスワードを入力してください。"):i(D3,Y.value,`パスワードは以下の条件を満たす必要があります。 8~20文字, 「半角英大文字」、「半角英小文字」、「数字」、「記号」を2種以上`,K)},U=()=>{h({...p,change:!p.change})},q=()=>{if(e(!0),l!=null&&l.id){const te={type:3,id:l.id,userId:l.userId,user:"",zipCode:"",address1:"",address2:"",venueList:[],tel:"",password:"",change:!1};YY(te).then(Y=>{switch(e(!1),Y.result.code){case 0:n(-1);break;case 33:Ut($t.editMembers[33],{variant:"warning",autoHideDuration:Kt.warning});break;case 90:Ut($t.editMembers[90],{variant:"error",autoHideDuration:Kt.error});break}})}},z=()=>{const te=ekt();h({...p,password:te})};return re("div",{id:"jara-admin-members-page",className:Mc.membersEditPage,children:[E(jh,{backArrow:!0,title:a?"会員マスタ編集":"会員マスタ登録"}),E("div",{className:Mc.membersEditArea,children:E("form",{onSubmit:b,className:Mc.membersEditForm,children:E(Va,{className:Mc.membersEditArea,elevation:0,children:re(lt,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",spacing:2,paddingX:5,children:[ZLt.map((te,Y)=>{const fe=p[te.key];return re(lt,{xs:12,container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[re(lt,{md:2,xs:12,children:[te.name,te.require?XLt():""]}),te.name==="電話番号"&&E(lt,{md:10,xs:12,children:re("div",{className:Mc.mutipleTextField,children:[E(Vc,{inputProps:{maxLength:3},id:"phone1",value:T,onChange:pe=>{/^\d*$/.test(pe.target.value)&&I(pe.target.value)}}),E(S,{}),E(Vc,{inputProps:{maxLength:4},id:"phone2",value:P,onChange:pe=>{/^\d*$/.test(pe.target.value)&&M(pe.target.value)}}),E(S,{}),E(Vc,{inputProps:{maxLength:4},id:"phone3",value:N,onChange:pe=>{/^\d*$/.test(pe.target.value)&&R(pe.target.value)}})]})}),te.name==="郵便番号"&&E(lt,{md:10,xs:12,children:re("div",{className:Mc.mutipleTextField,children:[E(Vc,{inputProps:{maxLength:3},id:"zipCode1",value:O,onChange:pe=>{/^\d*$/.test(pe.target.value)&&D(pe.target.value)}}),E(S,{}),E(Vc,{inputProps:{maxLength:4},id:"zipCode2",value:L,onChange:pe=>{/^\d*$/.test(pe.target.value)&&k(pe.target.value)}})]})}),te.name==="会場"&&E(lt,{md:10,xs:12,container:!0,children:E(ic,{sx:{margin:"0 1rem"},component:"fieldset",variant:"standard",children:E(MLe,{row:!0,children:B.map((pe,de)=>E(lt,{xs:6,md:3,children:E(WG,{control:E(mo,{checked:p.venueList.indexOf(pe.venueCode)>-1,onChange:()=>{$(pe.venueCode)},name:pe.venueNameJa}),label:pe.venueNameJa})},`${pe.venueCode}${pe.venueNameJa}${de}`))})})}),te.name==="パスワード"&&re(lt,{md:10,xs:12,className:Mc.passwordArea,children:[E(HC,{handleValueChange:le,passwordName:"memberEditPassword",passwordKanjiName:"パスワード",passwordError:W,noLabel:!0,noHelperText:!0,size:"small",value:p.password}),E(ds,{className:Mc.createButton,variant:"outlined",size:"small",onClick:z,children:"自動生成"})]}),te.name==="初回フラグ"&&E(lt,{md:10,xs:12,children:E(WG,{control:E(mo,{checked:p.change,onChange:U}),label:"初回ログイン時にパスワードを変更する"})}),te.isCommonInput&&E(wkt,{itemValue:fe,item:te,handleOnchange:v})]},`${Y}-${te.key}`)}),E(lt,{xs:12,children:E(i1,{error:!0,children:E("span",{className:Mc.helperText,children:W})})}),re(lt,{xs:12,textAlign:"right",children:[a&&E(Ole,{onClick:q,isLoading:t,children:"削除"}),E(s0,{isLoading:t,disabled:w||W!==null||((ne=p.user)==null?void 0:ne.length)===0||((G=p.password)==null?void 0:G.length)===0&&!a,type:"submit",children:a?"更新":"登録"})]})]})})})})]})},Ekt="#ffffff",Skt="#29a03b",Ckt="#c2d93d",Tkt="#808080",Akt="#D9D9D9",Ikt="#ccc",Mkt="rgba(242, 242, 242, 0.4588235294)",Dkt="2rem",Pkt="1.5rem",Rkt="14px",Okt="65rem",Nkt="_jaraMain_1wztx_19",Lkt="_categoryItem_1wztx_31",kkt="_categoryName_1wztx_35",Fkt="_jaraAccordion_1wztx_42",$kt="_jaraAccordionSummary_1wztx_59",Bkt="_jaraAccordionDetails_1wztx_65",Ukt="_header1_1wztx_71",Hkt="_header2_1wztx_71",Vkt="_header1Left_1wztx_99",zkt="_header2Left_1wztx_99",jkt="_publishDealArea_1wztx_132",Gkt="_yardWrapper_1wztx_154",Wkt="_tableArea_1wztx_174",Wl={baseColor:Ekt,primaryColor:Skt,secondColor:Ckt,neutralColor:Tkt,hatchingColor:Akt,borderColor:Ikt,evevRowColor:Mkt,largeFont:Dkt,mediumFont:Pkt,smallFont:Rkt,pagePCMinWidth:Okt,jaraMain:Nkt,categoryItem:Lkt,categoryName:kkt,jaraAccordion:Fkt,jaraAccordionSummary:$kt,jaraAccordionDetails:Bkt,header1:Ukt,header2:Hkt,header1Left:Vkt,header2Left:zkt,publishDealArea:jkt,yardWrapper:Gkt,tableArea:Wkt},qkt="#ffffff",Ykt="#29a03b",Jkt="#c2d93d",Qkt="#808080",Kkt="#D9D9D9",Xkt="#ccc",Zkt="rgba(242, 242, 242, 0.4588235294)",e3t="2rem",t3t="1.5rem",n3t="14px",r3t="65rem",i3t="_jaraMain_ktn4c_19",a3t="_tableStyle_ktn4c_30",o3t={baseColor:qkt,primaryColor:Ykt,secondColor:Jkt,neutralColor:Qkt,hatchingColor:Kkt,borderColor:Xkt,evevRowColor:Zkt,largeFont:e3t,mediumFont:t3t,smallFont:n3t,pagePCMinWidth:r3t,jaraMain:i3t,tableStyle:a3t},s3t=t=>{const{yardItem:e}=t;return E("div",{className:o3t.tableStyle,children:re("table",{children:[E("thead",{children:re("tr",{children:[E("th",{children:"申込会員"}),E("th",{children:"申込件数"}),E("th",{children:"成約数"})]})}),E("tbody",{children:e.memberInfo.map((n,r)=>re("tr",{children:[E("td",{children:n.name}),E("td",{children:n.applyCount}),E("td",{children:n.dealCount})]},`${n.name}-${r}`))})]})})},l3t=async t=>(await Bn.post(Tae,t)).data,Ode=()=>{const t=_r(),e=Eo(),[n,r]=C.useState(!1),[i,a]=C.useState(void 0),[o,s]=C.useState(void 0),[l,c]=C.useState(0),u=async()=>{if(!i)return;r(!0);const R=await l3t(i);switch(r(!1),R.result.code){case 0:s(R);break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}};C.useEffect(()=>{u()},[i]);const f=(()=>{const R=[],O=new Date,D=O.getDay(),L=new Date(O);L.setDate(O.getDate()-(D===0?6:D-1)),R.push(new Date(L));for(let k=1;k<8;k++){const B=new Date(L);B.setDate(L.getDate()-k*7),R.push(B)}return R})(),p=R=>{const O=new Date,L=(O.getDay()+6)%7,k=new Date(O);k.setDate(O.getDate()-L-R*7);const B=new Date(k);return B.setDate(k.getDate()+5),k.setHours(0,0,0,0),B.setHours(23,59,59,999),{monday:k,saturday:B}},h=R=>{t(`${e.pathname}?week=${Number(R)}`)},v=R=>{c(Number(R));const O=p(Number(R));a({fromDate:br(O.monday,"YYYY-MM-DD"),toDate:br(O.saturday,"YYYY-MM-DD")})};C.useEffect(()=>{const O=new URL(window.location.href).searchParams.get("week");g(0),v(O??0)},[e.search]);const[b,g]=C.useState(0),[y,w]=C.useState(void 0),[x,S]=C.useState(void 0),[T,I]=C.useState(void 0),P=R=>{const O=[],D=[],L=[];R==null||R.achievementsInfo.map(k=>{switch(k.dayGroups){case 0:O.push(k);break;case 1:D.push(k);break;case 2:L.push(k);break}}),w(O),S(D),I(L)},M=R=>{let O=0,D=0;return R?(R.map(L=>{O=O+N(L.yardList).yardPublishCount,D=D+N(L.yardList).yardDealCount}),{publishCount:O,dealCount:D}):{publishCount:O,dealCount:D}},N=R=>{let O=0,D=0;return R?(R.map(L=>{O=O+L.countByYard,L.memberInfo.map(k=>{D=D+k.dealCount})}),{yardPublishCount:O,yardDealCount:D}):{yardPublishCount:O,yardDealCount:D}};return C.useEffect(()=>{o&&P(o)},[o]),{dateArray:f,selectedWeek:l,handleWeekChange:h,isLoading:n,monitoringData:o,selectedCardIndex:b,setSelectedCardIndex:g,DateMonTue:y,DateWedThu:x,DateFriSat:T,calculateDayGroupMetrics:M,calculateVenueMetrics:N}},GN=t=>{const{venueData:e}=t,{calculateVenueMetrics:n}=Ode(),{isMobile:r}=ui();return E("div",{children:e==null?void 0:e.map(i=>{const a=n(i.yardList),o=a.yardPublishCount,s=a.yardDealCount;return re(Jee,{elevation:0,square:!0,className:Wl.jaraAccordion,disableGutters:!0,sx:{display:o===0?"none":"","&:before":{display:"none"}},children:[E(Kee,{className:Wl.jaraAccordionSummary,sx:{"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(90deg)"}},id:"AccordionSummary",expandIcon:E($U,{}),children:re("div",{className:Wl.header1,children:[E("div",{className:Wl.header1Left,children:i.venueName}),re("div",{children:["成約率:",re("span",{style:{fontSize:r?"20px":"30px"},children:[((o===0?0:s/o)*100).toFixed(1),"%"]})]}),re("div",{className:Wl.publishDealArea,children:[re("div",{children:["掲載数:",o]}),re("div",{children:["成約数:",s]})]})]})}),E(Qee,{className:Wl.jaraAccordionDetails,children:E("div",{className:Wl.tableArea,children:i.yardList.map((l,c)=>{const u=l.memberInfo.reduce((d,f)=>d+f.dealCount,0);return re("div",{className:Wl.yardWrapper,children:[re("div",{className:Wl.header2,children:[E("div",{className:Wl.header2Left,children:l.yardName}),re("div",{children:["成約率:",re("span",{style:{fontSize:r?"20px":"30px"},children:[((l.countByYard===0?0:u/l.countByYard)*100).toFixed(1),"%"]})]}),re("div",{className:Wl.publishDealArea,children:[re("div",{children:["掲載数:",l.countByYard]}),re("div",{children:["成約数:",u]})]})]}),E(s3t,{yardItem:l})]},`yard-table-${l.yardName}-${c}`)})})})]},`accordion-${i.venueName}`)})})},c3t="_mainArea_socqn_2",u3t="_monitoringArea_socqn_15",d3t="_SelectCardArea_socqn_28",f3t="_accordionArea_socqn_48",p3t="_topButtonGroup_socqn_64",h3t="_titleArea_socqn_82",m3t="_titleDate_socqn_105",g3t="_openTimeArea_socqn_111",v3t="_selectBox_socqn_131",Qd={mainArea:c3t,monitoringArea:u3t,SelectCardArea:d3t,accordionArea:f3t,topButtonGroup:p3t,titleArea:h3t,titleDate:m3t,openTimeArea:g3t,selectBox:v3t},y3t="_main_1ncvr_1",b3t="_h1_1ncvr_26",_3t="_h2_1ncvr_29",w3t="_publishDealArea_1ncvr_42",gb={main:y3t,h1:b3t,h2:_3t,publishDealArea:w3t},WN=t=>{const{dateText:e,publishCount:n,dealCount:r,isSelected:i,...a}=t,o=Number((r/n*100).toFixed(1));return re("div",{className:gb.main,...a,style:{backgroundColor:i?"white":"#e9e9e9"},children:[re("div",{className:gb.h1,children:[e,"開催"]}),E("div",{className:gb.h2,children:"成約率"}),re("div",{className:gb.h1,style:{fontWeight:"600"},children:[n===0?0:o,"%"]}),re("div",{className:gb.publishDealArea,children:[E("div",{children:`掲載数:${n}`}),E("div",{children:`成約数:${r}`})]})]})},x3t=()=>{const{dateArray:t,selectedWeek:e,handleWeekChange:n,isLoading:r,selectedCardIndex:i,setSelectedCardIndex:a,DateMonTue:o,DateWedThu:s,DateFriSat:l,calculateDayGroupMetrics:c}=Ode(),{isMobile:u}=ui();return re("div",{children:[r&&E(Lle,{}),!r&&re("div",{className:Qd.mainArea,children:[re("div",{className:Qd.titleArea,children:[E("div",{className:Qd.titleDate,children:`${(t[e].getMonth()+1).toString()}月${t[e].getDate().toString()}日週開催`}),E(dl,{className:Qd.selectBox,native:!0,size:"small",value:e,onChange:d=>{n(d.target.value)},children:t.map((d,f)=>{const p=["(今週)","(先週)","(先々週)"];return E("option",{value:f,children:`${br(d,"MM/DD")}${f<3?p[f]:""}`},`${d}-${f}`)})}),E("div",{className:Qd.openTimeArea,children:br(new Date,u?`YYYY/MM/DD hh:mm`:"YYYY年MM月DD日hh時mm分")})]}),re("div",{className:Qd.monitoringArea,children:[re("div",{className:Qd.SelectCardArea,children:[E(WN,{dateText:"月・火",dealCount:c(o).dealCount,publishCount:c(o).publishCount,onClick:()=>{a(0)},isSelected:i===0}),E(WN,{dateText:"水・木",dealCount:c(s).dealCount,publishCount:c(s).publishCount,onClick:()=>{a(1)},isSelected:i===1}),E(WN,{dateText:"金・土",dealCount:c(l).dealCount,publishCount:c(l).publishCount,onClick:()=>{a(2)},isSelected:i===2})]}),re("div",{className:Qd.accordionArea,children:[i===0&&E(GN,{conversionRate:20,conversionTtalCount:20,publishCount:100,venueData:o}),i===1&&E(GN,{conversionRate:50,conversionTtalCount:50,publishCount:100,venueData:s}),i===2&&E(GN,{conversionRate:10,conversionTtalCount:10,publishCount:100,venueData:l})]})]})]})]})},E3t="#ffffff",S3t="#29a03b",C3t="#c2d93d",T3t="#808080",A3t="#D9D9D9",I3t="#ccc",M3t="rgba(242, 242, 242, 0.4588235294)",D3t="2rem",P3t="1.5rem",R3t="14px",O3t="65rem",N3t="_jaraMain_rt3kw_19",L3t="_cardBox_rt3kw_30",k3t="_cardArea_rt3kw_34",F3t="_vehicleTextArea_rt3kw_38",$3t="_vehicleTitle_rt3kw_44",B3t="_vehicleText_rt3kw_38",U3t="_footText_rt3kw_54",_g={baseColor:E3t,primaryColor:S3t,secondColor:C3t,neutralColor:T3t,hatchingColor:A3t,borderColor:I3t,evevRowColor:M3t,largeFont:D3t,mediumFont:P3t,smallFont:R3t,pagePCMinWidth:O3t,jaraMain:N3t,cardBox:L3t,cardArea:k3t,vehicleTextArea:F3t,vehicleTitle:$3t,vehicleText:B3t,footText:U3t},H3t=t=>{const{vehicleList:e}=t,n=()=>E("div",{style:{height:"0.6rem"}});return E(Cw,{variant:"outlined",className:_g.cardArea,children:re(lt,{container:!0,children:[E(lt,{xs:5,children:E("img",{style:{width:"100%",padding:"1rem"},src:e.imagePath,alt:"car-thumbnail"})}),E(lt,{xs:7,children:re(Va,{elevation:0,className:_g.vehicleTextArea,children:[E("div",{className:_g.vehicleTitle,children:`${e.name}${e.grade}`}),E(n,{}),E("div",{className:_g.vehicleText,children:re("div",{style:{textAlign:"left"},children:[e.yearEra===""&&"年式:",e.yearEra!==""&&Number(e.registMonth)===0&&`年式:${e.yearEra}${e.yearJa}年`,e.yearEra!==""&&Number(e.registMonth)!==0&&`年式:${e.yearEra}${e.yearJa}年 ${e.registMonth}月`,E("br",{}),`走行:${e.mileage}千km${e.driveType??""}`]})})]})}),E(lt,{xs:12,children:re("div",{className:_g.footText,children:[re("div",{children:["購入車両総額 :",E("span",{style:{fontSize:"1.5rem"},children:fc(e.price.toString())})]}),E("div",{children:e.status==="掲載予定"?`${br(e.startTime,"MM月DD日 hh:mm")}開始`:`${br(e.endTime,"MM月DD日 hh:mm")}終了`})]})})]})})},V3t=t=>{const{vehicleListData:e,handleNavigation:n}=t;return E(zr,{className:_g.cardBox,children:e==null?void 0:e.vehicleList.map((r,i)=>E("div",{id:`mobile-vehicle-card${i}`,style:{padding:"1rem"},onClick:()=>{n(r.postCode)},children:E(H3t,{vehicleList:r})},`mobile-vehicle-card${i}`))})},z3t=t=>{const{vehicleListData:e,handleNavigation:n}=t;return E("div",{className:Gu.tableWrapper,children:re("table",{id:"vehicle-table",className:Gu.table,children:[E(zle,{}),E("tbody",{children:e==null?void 0:e.vehicleList.map((r,i)=>E(xe.Fragment,{children:E(oi,{children:E(Wle,{vItem:r,vIndex:i,handleClick:n})})},`vehicle-list-${i}`))})]})})},j3t=t=>{const{vehicleListData:e,isLoading:n}=t,{isMobile:r}=ui(),i=a=>{window.open(`${bs}/${vr.BUY}/${vr.BUY_DETAILS}?postCode=${a}`,"_blank",`toolbar=no, menubar=no, location=no, status=no, noreferrer, width=${MA.width}, height=${MA.height}`)};return re(oi,{children:[r===!1&&re("div",{style:{position:"relative",width:"100%"},children:[E(z3t,{vehicleListData:e,handleNavigation:i}),E(zh,{isMobile:r,isLoading:n,top:"30vh"})]}),r&&re("div",{children:[E(V3t,{vehicleListData:e,handleNavigation:i}),E(zh,{isMobile:r,isLoading:n,top:"30vh"})]})]})},G3t="#ffffff",W3t="#29a03b",q3t="#c2d93d",Y3t="#808080",J3t="#D9D9D9",Q3t="#ccc",K3t="rgba(242, 242, 242, 0.4588235294)",X3t="2rem",Z3t="1.5rem",eFt="14px",tFt="65rem",nFt="_jaraMain_1ivlw_19",rFt="_topArea_1ivlw_31",iFt="_topButtonGroup_1ivlw_40",aFt="_userBuyPage_1ivlw_45",oFt="_viewArea_1ivlw_49",sFt="_tableArea_1ivlw_69",vb={baseColor:G3t,primaryColor:W3t,secondColor:q3t,neutralColor:Y3t,hatchingColor:J3t,borderColor:Q3t,evevRowColor:K3t,largeFont:X3t,mediumFont:Z3t,smallFont:eFt,pagePCMinWidth:tFt,jaraMain:nFt,topArea:rFt,topButtonGroup:iFt,userBuyPage:aFt,viewArea:oFt,tableArea:sFt},lFt=async t=>(await Bn.post(uae,t)).data,cFt=async()=>(await Bn.post(fae)).data,uFt=()=>{const{initialSearchData:t,vehicleEditFilter:e,setVehicleEditFilter:n,vehicleFilterData:r,setSelectedOptionsNames:i,setVehicleFilterData:a}=ui();C.useEffect(()=>{e&&l(e)},[e]);const[o,s]=Wi(),l=I=>{const P=encodeURIComponent(JSON.stringify(I));o.set("filters",P),s(o)};C.useEffect(()=>{const I=o.get("filters");let P=Xn.cloneDeep(e);I?(P=JSON.parse(decodeURIComponent(I)),n(P)):n(t)},[window.location.href]),C.useEffect(()=>{e&&c(e)},[r]);const c=I=>{var L,k,B,H,$,W,K,le,U,q,z,ne,G;const P=te=>te&&(te==null?void 0:te.length)>=0?te:[],M=te=>{const Y=[];return te==null||te.map(fe=>{Y.push(`${fe.venueNameJa} ${fe.yardName??""}`)}),Y},N=te=>{const Y=[];return te==null||te.map(fe=>{if(r!==void 0)for(let pe=0;pe{const Y=[];return te==null||te.map(fe=>{if(r!==void 0)for(let pe=0;pe{const Y=[];return te==null||te.map(fe=>{Y.push(`${fe.yearEra}${fe.yearJa}`)}),Y},D={venue:M((L=I.searchOption)==null?void 0:L.venueList),maker:N((k=I.searchOption)==null?void 0:k.maker),car:P((B=I.searchOption)==null?void 0:B.car),plan:R((H=I.searchOption)==null?void 0:H.planCode),year:O(($=I.searchOption)==null?void 0:$.yearInfo),model:P((W=I.searchOption)==null?void 0:W.model),color:P((K=I.searchOption)==null?void 0:K.color),shift:P((le=I.searchOption)==null?void 0:le.shift),score:P((U=I.searchOption)==null?void 0:U.score)};i(D),v(I.request.limit),(q=I.searchOption)!=null&&q.mileage&&y((z=I.searchOption)==null?void 0:z.mileage),(ne=I.searchOption)!=null&&ne.status&&S((G=I.searchOption)==null?void 0:G.status)},[u,d]=C.useState(void 0),{isFetching:f,refetch:p}=fr(Ei.LIST_BUY,()=>e&&lFt(e),{enabled:e!==null,refetchOnWindowFocus:!1,onSuccess:I=>{if(I)switch(I.result.code){case 0:d(I);break;case 11:break;case 12:Ut($t.login[12],{variant:"warning",autoHideDuration:null});break;case 82:break;default:Ut($t.common.ERROR_01,{variant:"error",autoHideDuration:Kt.error});break}}});C.useEffect(()=>{e&&p()},[e]),fr(Ei.LIST_BUY_FILTER,cFt,{refetchOnWindowFocus:!1,onSuccess:I=>a(I)});const[h,v]=C.useState(100),b=I=>{v(Number(I.target.value))},[g,y]=C.useState(null),w=I=>{const{target:{value:P}}=I;y(P===null||typeof P=="string"?null:P)},[x,S]=C.useState(null);return{updateVehicleSearchParams:l,isLoading:f,responseVehicleData:u,setResponseVehicleData:d,handleRadioClick:b,radioValue:h,mileageData:g,setMileageData:y,handleMileageChange:w,statusData:x,setStatusData:S,handleStatusChange:I=>{const{target:{value:P}}=I;S(P===null||typeof P=="string"?null:P)}}},ku=t=>{const{label:e,labelName:n,options:r,selectedOptionNames:i,handleSelectChange:a}=t;return re(ic,{sx:{margin:1,width:300},children:[E(zc,{id:`${n}-checkbox-label`,children:n}),E(dl,{labelId:`${n}-checkbox-label`,id:`${n}-checkbox`,value:i[e],input:E(ul,{label:n}),renderValue:o=>o.join(", "),onChange:o=>{a(o,e)},multiple:!0,MenuProps:ed,children:r==null?void 0:r.map((o,s)=>re(jc,{value:o,children:[E(mo,{checked:i[e].indexOf(o)>-1}),E(fs,{primary:o})]},`option-${n}-${s}`))})]})},dFt=t=>{const{selectedOptionNames:e,initialSelectedOptions:n,setSelectedOptionsNames:r,vehicleFilterData:i}=ui(),{handleMileageChange:a,handleStatusChange:o,mileageData:s,setMileageData:l,statusData:c,setStatusData:u}=t,d=(h,v)=>{const{target:{value:b}}=h;r({...e,[v]:typeof b=="string"?b.split(","):b})},f=h=>{let v="";return S7.map(b=>{b.code===h&&(v=b.name)}),v},p=h=>{let v="";return E7.map(b=>{b.code===h&&(v=b.name)}),v};return re(lt,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",spacing:3,sx:{width:"330px"},children:[E(lt,{xs:3,sx:{fontWeight:"600"},children:"絞込み"}),E(lt,{xs:9,children:E("a",{href:"#",onClick:h=>{h.preventDefault(),r(n),u(null),l(null)},children:"絞込みのクリア"})}),E(lt,{xs:12,children:re(lt,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",sx:{maxHeight:"30rem",overflow:"auto"},children:[E(ku,{label:"venue",labelName:"会場ヤード",options:i==null?void 0:i.venueList.map(h=>`${h.venueNameJa} ${h.yardName??""}`),selectedOptionNames:e,handleSelectChange:d}),E(ku,{label:"maker",labelName:"メーカー",options:i==null?void 0:i.maker.map(h=>h.makerName),selectedOptionNames:e,handleSelectChange:d}),E(ku,{label:"car",labelName:"車名",options:i==null?void 0:i.car,selectedOptionNames:e,handleSelectChange:d}),E(ku,{label:"plan",labelName:"企画",options:i==null?void 0:i.plan.map(h=>h.planName),selectedOptionNames:e,handleSelectChange:d}),E(ku,{label:"year",labelName:"年式",options:i==null?void 0:i.year.map(h=>`${h.yearEra}${h.yearJa}`),selectedOptionNames:e,handleSelectChange:d}),E(ku,{label:"model",labelName:"型式",options:i==null?void 0:i.model,selectedOptionNames:e,handleSelectChange:d}),re(ic,{sx:{margin:1,width:300},children:[E(zc,{id:"mileage-checkbox-label",children:"走行距離"}),E(dl,{labelId:"mileage-checkbox-label",id:"mileage-checkbox",value:s??[],input:E(ul,{label:"走行距離"}),renderValue:h=>h.map(v=>f(v)).join(", "),onChange:h=>{a(h)},multiple:!0,MenuProps:ed,children:S7.map((h,v)=>re(jc,{value:h.code,children:[E(mo,{checked:s!==null&&s.includes(h.code)}),E(fs,{primary:h.name})]},`statusNameList${v}`))})]}),E(ku,{label:"color",labelName:"色",options:i==null?void 0:i.color.map(h=>h.colorName),selectedOptionNames:e,handleSelectChange:d}),E(ku,{label:"shift",labelName:"シフト",options:i==null?void 0:i.shift.map(h=>h.shiftName),selectedOptionNames:e,handleSelectChange:d}),E(ku,{label:"score",labelName:"評価",options:i==null?void 0:i.score,selectedOptionNames:e,handleSelectChange:d}),re(ic,{sx:{margin:1,width:300},children:[E(zc,{id:"mileage-checkbox-label",children:"ステータス"}),E(dl,{labelId:"mileage-checkbox-label",id:"mileage-checkbox",value:c??[],input:E(ul,{label:"ステータス"}),renderValue:h=>h.map(v=>p(v)).join(", "),onChange:h=>{o(h)},multiple:!0,MenuProps:ed,children:E7.map((h,v)=>re(jc,{value:h.code,children:[E(mo,{checked:c!==null&&c.includes(h.code)}),E(fs,{primary:h.name})]},`statusNameList${v}`))})]})]})})]})},fFt=()=>{const{updateVehicleSearchParams:t,isLoading:e,responseVehicleData:n,setResponseVehicleData:r,handleRadioClick:i,radioValue:a,mileageData:o,setMileageData:s,handleMileageChange:l,statusData:c,setStatusData:u,handleStatusChange:d}=uFt(),{isMobile:f,vehicleEditFilter:p,selectedOptionNames:h,setSelectedOptionsNames:v,initialSelectedOptions:b,vehicleFilterData:g}=ui(),[y,w]=C.useState(!1),x=()=>{const de=Xn.cloneDeep(p);de&&(de.sortOrder=[],t(de))};C.useEffect(()=>{var de;if(e===!1&&p){const se=((de=p.sortOrder)==null?void 0:de.length)===0;w(se)}else w(!0)},[e]);const S=de=>{if(g){for(const se of g.year)if(de.startsWith(se.yearEra+se.yearJa))return se}return null},T=de=>{if(g){for(const se of g.venueList)if(de===`${se.venueNameJa} ${se.yardName??""}`)return se}return null},I=()=>{const de=[];return h.year.map(se=>{const me=S(se);me!==null&&de.push(me)}),de.length>0?de:null},P=()=>{const de=[];return h.venue.map(se=>{const me=T(se);me!==null&&de.push(me)}),de.length>0?de:null},M=()=>{const de=[];return h.maker.map(se=>{if(g!==void 0)for(let me=0;me0?de:null},N=()=>{const de=[];return h.plan.map(se=>{if(g!==void 0)for(let me=0;me0?de:null},R=de=>de&&de.length>0?de:null,O=de=>{const se={request:{limit:a,offset:de?0:G-1},searchOption:{venueList:P(),maker:M(),car:R(h.car),planCode:N(),yearInfo:I(),model:R(h.model),mileage:o&&(o==null?void 0:o.length)>0?o:null,color:R(h.color),shift:R(h.shift),score:R(h.score),status:c&&(c==null?void 0:c.length)>0?c:null},sortOrder:p?p.sortOrder:[]};t(se)},[D,L]=C.useState(!1),[k,B]=C.useState(h),[H,$]=C.useState(c),[W,K]=C.useState(o),le=()=>{B(h),$(c),K(o),L(!0)},U=()=>{L(!1),O(!0)},q=()=>{v(k),u(H),s(W),L(!1)},[z]=Wi(),ne=z.get("filters");let G=1;ne?G=JSON.parse(decodeURIComponent(ne)).request.offset+1:p&&(G=p.request.offset+1);const te=n!=null&&n.totalCount?Math.ceil(n.totalCount/a):1,Y=de=>{const se=Xn.cloneDeep(p);se&&(se.request.offset=de-1,t(se))},fe=()=>re("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",marginLeft:f?"1.3rem":""},children:[E("div",{style:f?{fontSize:"1.5rem",whiteSpace:"nowrap",marginRight:"-1.5rem"}:{fontSize:"1.5rem",marginLeft:"1rem"},children:`${n!=null&&n.totalCount?n==null?void 0:n.totalCount:0}件`}),E(Aw,{spacing:1,sx:{transform:f?"scale(0.9)":""},children:E(PM,{sx:{"&& .MuiPagination-ul":{flexWrap:"nowrap",width:"100%"}},count:te,page:G,onChange:(de,se)=>{Y(se)}})})]}),pe=new BroadcastChannel(dce);return pe.onmessage=function(de){const{postCode:se,result:me}=de.data;n==null||n.vehicleList.map((Z,_e)=>{if(Z.postCode===Number(se)&&(Number(me)===0||Number(me)===10)){const Me=Xn.cloneDeep(n);Me.vehicleList[_e].status="申込中",r(Me)}})},re("div",{id:"jara-user-buy-page",className:vb.userBuyPage,children:[E(zr,{id:"box",sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:re("div",{className:vb.viewArea,children:[re("div",{id:"jara-edit-faq-page-topArea",className:vb.topArea,children:[E("div",{style:{color:"red",padding:"5px",minWidth:"22rem",fontSize:"12px"},children:pce}),re("div",{className:vb.topButtonGroup,children:[!f&&E(gp,{onClick:x,disabled:y,children:"ソートクリア"}),E(PD,{isSelected:!Xn.isEqual(h,b)||!Xn.isEqual(c,null)||!Xn.isEqual(o,null),onClick:le,children:"絞込み"}),!f&&E(fe,{})]})]}),re("div",{className:vb.tableArea,children:[f&&E(fe,{}),E(j3t,{vehicleListData:n,isLoading:e})]})]})}),E(OD,{dialogTitle:"絞込み設定",open:D,handleClose:q,handleLeftArrow:U,children:E(dFt,{radioValue:a,mileageData:o,setMileageData:s,statusData:c,setStatusData:u,handleRadioClick:i,handleMileageChange:l,handleStatusChange:d})})]})},pFt="#ffffff",hFt="#29a03b",mFt="#c2d93d",gFt="#808080",vFt="#D9D9D9",yFt="#ccc",bFt="rgba(242, 242, 242, 0.4588235294)",_Ft="2rem",wFt="1.5rem",xFt="14px",EFt="65rem",SFt="_jaraMain_1q9en_19",CFt="_title_1q9en_31",TFt="_newLabel_1q9en_35",AFt="_rigthArrow_1q9en_45",JY={baseColor:pFt,primaryColor:hFt,secondColor:mFt,neutralColor:gFt,hatchingColor:vFt,borderColor:yFt,evevRowColor:bFt,largeFont:_Ft,mediumFont:wFt,smallFont:xFt,pagePCMinWidth:EFt,jaraMain:SFt,title:CFt,newLabel:TFt,rigthArrow:AFt},IFt=()=>{var i;const t=_r(),{data:e,isLoading:n}=fr(Ei.LIST_INFO,l5,{refetchOnWindowFocus:!1}),r=a=>(t(`${bs}/${vr.INFO_DETAIL}?index=${a}`),!1);return re(zr,{style:{width:"100%"},children:[E(jh,{title:"お知らせ"}),n?E("div",{}):re(S0,{children:[E(Rh,{}),(i=e==null?void 0:e.noticeList)==null?void 0:i.map((a,o)=>re(zr,{children:[E(Z$,{children:re(X$,{onClick:()=>{r(o)},children:[E(eB,{sx:{minWidth:"5rem"},children:a.whatsNew?E("div",{className:JY.newLabel,children:"New"}):E("div",{})}),E(fs,{primaryTypographyProps:{fontSize:ft.smallFont},secondaryTypographyProps:{fontSize:ft.smallFont},inset:!0,primary:a.date,secondary:E("a",{onClick:s=>{s.preventDefault()},href:`${m$e}?index=${o}`,children:a.title})}),E(ND,{className:JY.rigthArrow})]})}),E(Rh,{})]},"jara-info-Box"+o))]})]})},MFt=()=>{wle();const t=_r();return rx(!1).then(e=>{e.result.code===0&&t(Mw,{replace:!0})}),null},DFt=()=>{wle();const t=_r();return C.useEffect(()=>{rx(!0).then(e=>{e.result.code===0&&t(Iw,{replace:!0})})},[t]),null},Nde=[{name:"お知らせ",path:vr.INFO,icon:E(bA,{}),element:E(IFt,{})},{name:"お知らせ詳細",path:vr.INFO_DETAIL,icon:E(bA,{}),element:E(uCt,{}),showOnJaraMenu:!1},{name:"中古車を購入する",path:vr.BUY,icon:E(mv,{}),element:E(fFt,{})},{name:"車両詳細画面",path:`${vr.BUY}/${vr.BUY_DETAILS}`,icon:E(mv,{}),element:E(l3,{}),showOnJaraMenu:!1},{name:"申込した車両を確認する",path:vr.OFFERED,icon:E(k4,{}),element:E(tue,{})},{name:"車両詳細画面",path:`${vr.OFFERED}/${vr.OFFERED_DETAIL}`,icon:E(mv,{}),element:E(l3,{}),showOnJaraMenu:!1},{name:"パスワード変更",icon:E(I4,{}),reNavigate:`${bs}/${vr.CHANGE_PASSWORD}`},{name:"よくあるご質問",path:vr.FAQ,icon:E(T4,{}),element:E(jSt,{})},{name:"ログアウト",path:vr.LOGOUT,icon:E(D4,{}),element:E(MFt,{})}],Lde=[{name:"会員落札一覧",path:tr.MEMBER_OFFER,icon:E(mv,{}),element:E(tue,{})},{name:"車両詳細画面",path:`${tr.MEMBER_OFFER}/${tr.MEMBER_OFFER_DETAIL}`,icon:E(mv,{}),element:E(l3,{}),showOnJaraMenu:!1},{name:"お知らせ編集",path:tr.EDIT_INFO,icon:E(bA,{}),element:E(YLt,{})},{name:"よくあるご質問編集",path:tr.FAQ,icon:E(T4,{}),element:E(HNt,{})},{name:"落札通知書編集",path:tr.DOC_EDIT,icon:E(Ele,{}),element:E(yCt,{})},{name:"会員マスタ編集",path:tr.MEMBER,icon:E(r3,{}),element:E(Dmt,{})},{name:"会員マスタ編集",path:`${tr.MEMBER}/${tr.EDIT_MEMBER}`,icon:E(r3,{}),element:E(xkt,{}),showOnJaraMenu:!1},{name:"口銭編集",path:tr.COMMISSION,icon:E(Cle,{}),element:E(Jpt,{})},{name:"実績管理",path:tr.MONITORING,icon:E(Sle,{}),element:E(x3t,{})},{name:"パスワード変更",icon:E(I4,{}),reNavigate:`${ea}/${tr.CHANGE_PASSWORD}`},{name:"ログアウト",path:tr.LOGOUT,icon:E(D4,{}),element:E(DFt,{})}],PFt=()=>{const{setIsMobile:t}=ui(),e=()=>{const n=mle();t(n)};return C.useEffect(()=>(e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}),[]),{userMenuList:Nde,adminMenuList:Lde}},kde=t=>{const{isMobile:e,setIsAdmin:n}=ui(),{closeSnackbar:r}=RI(),i=window.location.href,[a,o]=C.useState(!1),[s,l]=C.useState(""),[c,u]=C.useState(void 0),[d,f]=C.useState(null),p=x=>{u(x),f(null)},h=x=>{f(x.currentTarget)},v=()=>{f(null)},b=Boolean(d),g=()=>i.includes(`${bs}/${vr.BUY}/${vr.BUY_DETAILS}`)||i.includes(`${bs}/${vr.OFFERED}/${vr.OFFERED_DETAIL}`)||i.includes(`${ea}/${tr.MEMBER_OFFER}/${tr.MEMBER_OFFER_DETAIL}`),y=()=>i.includes(`${ea}/${tr.MEMBER}/${tr.EDIT_MEMBER}`),w=()=>{const x=i.split("?")[0].split("/"),S=x[x.length-1];t==null||t.map(P=>{P.path===S&&u(P.name)});const T=g(),I=y();if(o(I),T)l("車両詳細");else if(I){const M=new URLSearchParams(location.search).get("listIndex");l(M?"会員編集":"会員登録")}else l("")};return C.useEffect(()=>{w(),r(),i.includes(ea)?n(!0):n(!1)},[window.location.href,e]),{handleListItemClick:p,handleMenuOpen:h,handleClose:v,selectedIndex:c,anchorEl:d,open:b,showReturnButton:a,titleOnReturnButtonShow:s,checkIsBuyDetailPage:g}};var F5={},RFt=hn;Object.defineProperty(F5,"__esModule",{value:!0});var Fde=F5.default=void 0,OFt=RFt(bn()),NFt=_n;Fde=F5.default=(0,OFt.default)((0,NFt.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const LFt="#ffffff",kFt="#29a03b",FFt="#c2d93d",$Ft="#808080",BFt="#D9D9D9",UFt="#ccc",HFt="rgba(242, 242, 242, 0.4588235294)",VFt="2rem",zFt="1.5rem",jFt="14px",GFt="65rem",WFt="_jaraMain_amt84_19",qFt="_mobileAppBar_amt84_29",YFt="_mobileMenu_amt84_33",JFt="_mobileMenuText_amt84_38",QFt="_listItemIcon_amt84_42",KFt="_listItemText_amt84_46",XFt="_appbarItemGroup_amt84_50",ZFt="_appbarTitle_amt84_57",e$t="_appbarID_amt84_63",yb={baseColor:LFt,primaryColor:kFt,secondColor:FFt,neutralColor:$Ft,hatchingColor:BFt,borderColor:UFt,evevRowColor:HFt,largeFont:VFt,mediumFont:zFt,smallFont:jFt,pagePCMinWidth:GFt,jaraMain:WFt,mobileAppBar:qFt,mobileMenu:YFt,mobileMenuText:JFt,listItemIcon:QFt,listItemText:KFt,appbarItemGroup:XFt,appbarTitle:ZFt,appbarID:e$t},$de=({isMobile:t,listItemArray:e,selectedIndex:n,handleListItemClick:r})=>{const i=t?"black":ft.baseColor,a=30;return E("div",{children:e==null?void 0:e.map((o,s)=>E("div",{children:o.showOnJaraMenu!==!1&&re(X$,{component:WGe,to:o.reNavigate?o.reNavigate:o.path?o.path:"",selected:n===o.name,onClick:()=>r(o.name),children:[E(eB,{style:{minWidth:a,color:i},children:o.icon}),E(fs,{sx:{color:i},primary:o.name,primaryTypographyProps:{fontSize:ft.smallFont}})]})},"ListItems"+s))})},t$t=({isAdmin:t,listItemArray:e})=>{const{anchorEl:n,open:r,handleMenuOpen:i,handleClose:a,selectedIndex:o,handleListItemClick:s,showReturnButton:l,titleOnReturnButtonShow:c}=kde(e),u=_r(),d=_le(t?"jAdminId":"jUserId");return re(zr,{sx:{flexGrow:1},children:[E(B$,{className:yb.mobileAppBar,position:"fixed",children:re(a1,{children:[l?E(ir,{onClick:()=>{u(-1)},sx:{marginRight:"3rem"},children:E(U0,{style:{transform:"scale(2.5)",color:"white"}})}):E(ir,{size:"large",edge:"start",color:"inherit",sx:{mr:2,zIndex:"1"},id:"mobile-menu-button",onClick:i,children:E(Fde,{})}),re("div",{className:yb.appbarItemGroup,children:[E("div",{className:yb.appbarTitle,style:{flex:1,textAlign:"center"},children:c.length>0?c:o}),re("div",{className:yb.appbarID,children:["ID:",d]})]})]})}),E(a1,{sx:{marginBottom:"1rem"}}),E(Rte,{classes:{list:yb.mobileMenu},id:"mobile-menu",anchorEl:n,open:r,transitionDuration:"auto",onClose:a,keepMounted:!0,children:E(S0,{sx:{paddingTop:0,paddingBottom:0,"&& .Mui-selected, && .Mui-selected:hover":{bgcolor:"#94d4a5","&, & .MuiMenuItem-root":{color:"white"}}},children:E($de,{isMobile:!0,listItemArray:e,selectedIndex:o,handleListItemClick:s})})})]})},n$t="#ffffff",r$t="#29a03b",i$t="#c2d93d",a$t="#808080",o$t="#D9D9D9",s$t="#ccc",l$t="rgba(242, 242, 242, 0.4588235294)",c$t="2rem",u$t="1.5rem",d$t="14px",f$t="65rem",p$t="_jaraMain_h71dz_19",h$t="_menuList_h71dz_29",m$t="_menuTitle_h71dz_36",g$t="_menuTitleText_h71dz_42",v$t="_listItemIcon_h71dz_46",y$t="_listItemText_h71dz_51",qN={baseColor:n$t,primaryColor:r$t,secondColor:i$t,neutralColor:a$t,hatchingColor:o$t,borderColor:s$t,evevRowColor:l$t,largeFont:c$t,mediumFont:u$t,smallFont:d$t,pagePCMinWidth:f$t,jaraMain:p$t,menuList:h$t,menuTitle:m$t,menuTitleText:g$t,listItemIcon:v$t,listItemText:y$t},YN=240,b$t=({isAdmin:t,listItemArray:e,children:n})=>{const{selectedIndex:r,handleListItemClick:i,checkIsBuyDetailPage:a}=kde(e),o=_le(t?"jAdminId":"jUserId"),s=a();return re(zr,{sx:{display:"flex"},children:[E(J$,{}),!s&&E(zr,{component:"nav",sx:{width:{sm:YN},flexShrink:{sm:0}},children:re(oLe,{sx:{display:{xs:"none",sm:"block"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:YN}},variant:"permanent",children:[E(zr,{className:qN.menuTitle,children:E(a1,{children:re("div",{className:qN.menuTitleText,children:["ID:",o]})})}),E(zr,{className:qN.menuList,children:E(S0,{sx:{"&& .Mui-selected, && .Mui-selected:hover":{bgcolor:"#94d4a5","&, & .MuiListItemIcon-root":{color:"white"}},"& .MuiListItemButton-root:hover":{bgcolor:"#94d4a5","&, & .MuiListItemIcon-root":{color:"white"}}},children:E($de,{isMobile:!1,listItemArray:e,selectedIndex:r,handleListItemClick:i})})})]})}),E(zr,{component:"main",id:"jara-menu-children",sx:{flexGrow:1,padding:"12px",width:{sm:`calc(100% - ${YN}px)`},height:"100vh",overflowY:"auto",display:"flex",justifyContent:"center"},children:E(zr,{style:{width:"100%"},children:n})})]})},Bde=({isAdmin:t,children:e})=>{const{isMobile:n}=ui(),{userMenuList:r,adminMenuList:i}=PFt(),a=t?i:r;return re("div",{style:{width:"100%",overflow:"hidden"},children:[n===void 0&&E("div",{}),n===!1&&E(b$t,{isAdmin:t,listItemArray:a,children:e}),n===!0&&re(zr,{children:[E(t$t,{isAdmin:t,listItemArray:a}),e]})]})},$5=()=>{document.body.style.fontSize=ft.smallFont};$5();const _$t=()=>($5(),E("div",{className:ft.jaraMain,children:E(Bde,{isAdmin:!0,children:E(yZ,{})})})),w$t="#ffffff",x$t="#29a03b",E$t="#c2d93d",S$t="#808080",C$t="#D9D9D9",T$t="#ccc",A$t="rgba(242, 242, 242, 0.4588235294)",I$t="2rem",M$t="1.5rem",D$t="14px",P$t="65rem",R$t="_jaraMain_50n2e_19",O$t="_main_50n2e_31",N$t="_barTitle_50n2e_34",L$t="_form_50n2e_37",k$t="_appBar_50n2e_55",F$t="_editArea_50n2e_65",$$t="_buttonItemsArea_50n2e_81",B$t="_button_50n2e_81",Fu={baseColor:w$t,primaryColor:x$t,secondColor:E$t,neutralColor:S$t,hatchingColor:C$t,borderColor:T$t,evevRowColor:A$t,largeFont:I$t,mediumFont:M$t,smallFont:D$t,pagePCMinWidth:P$t,jaraMain:R$t,main:O$t,barTitle:N$t,form:L$t,appBar:k$t,editArea:F$t,buttonItemsArea:$$t,button:B$t},U$t=async(t,e,n)=>(await Bn.post(n?rae:nae,{currentPassword:t,newPassword:e})).data,H$t=t=>{rx(t).then(e=>{e.result.code===0&&(window.location.href=t?Iw:Mw)})},V$t=async t=>(await Bn.post(zje,{accountType:t})).data,z$t=t=>{C.useEffect(()=>{(async()=>{try{return await V$t(t?2:3)}catch{H$t(t??!1)}})()},[location.pathname,location.search])},j$t=()=>{const[t]=Wi(),{checkIsNull:e,checkPasswordValue:n}=x4(),[r,i]=C.useState(null),[a,o]=C.useState(null),[s,l]=C.useState(null),[c,u]=C.useState(""),[d,f]=C.useState(""),[p,h]=C.useState(""),[v,b]=C.useState(!1),g=_r(),y=window.location.href,w=ea,x=y.includes(w);z$t(x!==null?x:!1);const S=t.get("loginFirst"),T=(N,R)=>N===R?(l(null),!0):(l("パスワードが一致しておりません。"),!1);return C.useEffect(()=>{T(d,p)},[d,p]),{currentPasswordError:r,newPasswordError:a,confirmPasswordError:s,handleSubmit:N=>{b(!0),N.preventDefault();const R=new FormData(N.currentTarget),O=String(R.get("currentPassword")),D=String(R.get("newPassword")),L=String(R.get("confirmPassword"));e(O)&&i("現在のパスワードを入力してください"),e(D)&&o("新しいパスワードを入力してください。"),e(L)&&l("新しいパスワード(確認)を入力してください。");const k=T(D,L);if(!r&&!a&&!s&&n(D3,D,`パスワードは以下の条件を満たす必要があります。 8~20文字, 「半角英大文字」、「半角英小文字」、「数字」、「記号」を2種以上`,o)&&k){if(x==null)return;U$t(O,D,x).then(B=>{switch(b(!1),B.code){case 0:rx(x).then(H=>{H.result.code===0&&g(x?Iw:Mw,{replace:!0})});break;default:Object.hasOwn($t.changePassword,B.code)&&Ut($t.changePassword[B.code],{variant:"warning",autoHideDuration:Kt.warning});break}});return}},handleValueChange:N=>{const R=N.target;switch(R.id){case"currentPassword":u(R.value),e(R.value)?i("現在のパスワードを入力してください"):i(null);break;case"newPassword":f(R.value),e(R.value)?o("新しいパスワードを入力してください。"):n(D3,R.value,`パスワードは以下の条件を満たす必要があります。 8~20文字, 「半角英大文字」、「半角英小文字」、「数字」、「記号」を2種以上`,o);break;case"confirmPassword":h(R.value),e(R.value)&&l("新しいパスワード(確認)を入力してください。");break}},handleLoginButtonDisable:()=>c.length===0||d.length===0||p.length===0||r!==null||a!==null||s!==null,isLoading:v,loginFirst:S}},Ude=()=>{const t=_r(),{currentPasswordError:e,newPasswordError:n,confirmPasswordError:r,handleSubmit:i,handleValueChange:a,handleLoginButtonDisable:o,isLoading:s,loginFirst:l}=j$t();return re(zr,{className:Fu.main,children:[E("div",{children:E(B$,{className:Fu.appBar,children:re(a1,{children:[l!=="1"&&E(ir,{color:"inherit",onClick:()=>{t(-1)},children:E(U0,{style:{fontSize:"3rem"}})}),E("div",{className:Fu.barTitle,children:"パスワードを変更する"})]})})}),E(zr,{className:Fu.editArea,children:E(Va,{elevation:0,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyItems:"center",bgcolor:"#ffffff95",height:"100%",borderRadius:"40px",padding:"2rem 1rem"},children:re("form",{className:Fu.form,onSubmit:i,children:[E(HC,{handleValueChange:a,passwordName:"currentPassword",passwordKanjiName:"現在のパスワード",passwordError:e,isChangePasswordPage:!0}),E("br",{}),E("br",{}),E(HC,{handleValueChange:a,passwordName:"newPassword",passwordKanjiName:"新しいパスワード",passwordError:n,isChangePasswordPage:!0}),E("br",{}),E("br",{}),E(HC,{handleValueChange:a,passwordName:"confirmPassword",passwordKanjiName:"新しいパスワード(確認)",passwordError:r,isChangePasswordPage:!0}),re("div",{className:Fu.buttonItemsArea,children:[l!=="1"&&E(ds,{className:Fu.button,sx:{color:"black",bgcolor:ft.baseColor,"&:hover":{color:ft.baseColor,bgcolor:"black"}},variant:"contained",onClick:()=>{t(-1)},children:"キャンセル"}),E(B0,{className:Fu.button,sx:{bgcolor:ft.primaryColor,"&:hover":{filter:"brightness(1.1)",bgcolor:ft.primaryColor}},disabled:o(),loading:s,variant:"contained",type:"submit",children:E("span",{className:Fu.loginButtonText,children:"パスワード変更"})})]})]})})})]})};/** * @license * Copyright 2010-2021 Three.js Authors * SPDX-License-Identifier: MIT */const JD="136",JN={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},G$t=0,QY=1,W$t=2,Hde=1,q$t=2,Vb=3,F1=0,Di=1,qh=2,Vde=1,Vf=0,T_=1,KY=2,XY=3,ZY=4,Y$t=5,wg=100,J$t=101,Q$t=102,eJ=103,tJ=104,K$t=200,X$t=201,Z$t=202,eBt=203,zde=204,jde=205,tBt=206,nBt=207,rBt=208,iBt=209,aBt=210,oBt=0,sBt=1,lBt=2,P3=3,cBt=4,uBt=5,dBt=6,fBt=7,QD=0,pBt=1,hBt=2,zf=0,mBt=1,gBt=2,vBt=3,yBt=4,bBt=5,Gde=300,ux=301,dx=302,R3=303,O3=304,KD=306,B5=307,N3=1e3,cs=1001,L3=1002,Oi=1003,nJ=1004,rJ=1005,Qr=1006,_Bt=1007,XD=1008,sd=1009,wBt=1010,xBt=1011,$1=1012,EBt=1013,VC=1014,mf=1015,bh=1016,SBt=1017,CBt=1018,TBt=1019,bv=1020,ABt=1021,ru=1022,zi=1023,IBt=1024,MBt=1025,_h=1026,d0=1027,DBt=1028,PBt=1029,RBt=1030,OBt=1031,NBt=1032,LBt=1033,iJ=33776,aJ=33777,oJ=33778,sJ=33779,lJ=35840,cJ=35841,uJ=35842,dJ=35843,kBt=36196,fJ=37492,pJ=37496,FBt=37808,$Bt=37809,BBt=37810,UBt=37811,HBt=37812,VBt=37813,zBt=37814,jBt=37815,GBt=37816,WBt=37817,qBt=37818,YBt=37819,JBt=37820,QBt=37821,KBt=36492,XBt=37840,ZBt=37841,eUt=37842,tUt=37843,nUt=37844,rUt=37845,iUt=37846,aUt=37847,oUt=37848,sUt=37849,lUt=37850,cUt=37851,uUt=37852,dUt=37853,fUt=2200,pUt=2201,hUt=2202,zA=2300,jA=2301,QN=2302,qg=2400,Yg=2401,GA=2402,U5=2500,Wde=2501,mUt=0,vc=3e3,J0=3001,gUt=3200,vUt=3201,Q0=0,yUt=1,KN=7680,bUt=519,B1=35044,WA=35048,hJ="300 es";class kl{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const r=this._listeners;r[e]===void 0&&(r[e]=[]),r[e].indexOf(n)===-1&&r[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const r=this._listeners;return r[e]!==void 0&&r[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const a=i.indexOf(n);a!==-1&&i.splice(a,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const r=this._listeners[e.type];if(r!==void 0){e.target=this;const i=r.slice(0);for(let a=0,o=i.length;a>8&255]+Ta[t>>16&255]+Ta[t>>24&255]+"-"+Ta[e&255]+Ta[e>>8&255]+"-"+Ta[e>>16&15|64]+Ta[e>>24&255]+"-"+Ta[n&63|128]+Ta[n>>8&255]+"-"+Ta[n>>16&255]+Ta[n>>24&255]+Ta[r&255]+Ta[r>>8&255]+Ta[r>>16&255]+Ta[r>>24&255]).toUpperCase()}function Po(t,e,n){return Math.max(e,Math.min(n,t))}function H5(t,e){return(t%e+e)%e}function _Ut(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)}function wUt(t,e,n){return t!==e?(n-t)/(e-t):0}function A_(t,e,n){return(1-n)*t+n*e}function xUt(t,e,n,r){return A_(t,e,1-Math.exp(-n*r))}function EUt(t,e=1){return e-Math.abs(H5(t,e*2)-e)}function SUt(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function CUt(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function TUt(t,e){return t+Math.floor(Math.random()*(e-t+1))}function AUt(t,e){return t+Math.random()*(e-t)}function IUt(t){return t*(.5-Math.random())}function MUt(t){return t!==void 0&&(bS=t%2147483647),bS=bS*16807%2147483647,(bS-1)/2147483646}function DUt(t){return t*_v}function PUt(t){return t*U1}function k3(t){return(t&t-1)===0&&t!==0}function RUt(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function qde(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function OUt(t,e,n,r,i){const a=Math.cos,o=Math.sin,s=a(n/2),l=o(n/2),c=a((e+r)/2),u=o((e+r)/2),d=a((e-r)/2),f=o((e-r)/2),p=a((r-e)/2),h=o((r-e)/2);switch(i){case"XYX":t.set(s*u,l*d,l*f,s*c);break;case"YZY":t.set(l*f,s*u,l*d,s*c);break;case"ZXZ":t.set(l*d,l*f,s*u,s*c);break;case"XZX":t.set(s*u,l*h,l*p,s*c);break;case"YXY":t.set(l*p,s*u,l*h,s*c);break;case"ZYZ":t.set(l*h,l*p,s*u,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}var ff=Object.freeze({__proto__:null,DEG2RAD:_v,RAD2DEG:U1,generateUUID:pc,clamp:Po,euclideanModulo:H5,mapLinear:_Ut,inverseLerp:wUt,lerp:A_,damp:xUt,pingpong:EUt,smoothstep:SUt,smootherstep:CUt,randInt:TUt,randFloat:AUt,randFloatSpread:IUt,seededRandom:MUt,degToRad:DUt,radToDeg:PUt,isPowerOfTwo:k3,ceilPowerOfTwo:RUt,floorPowerOfTwo:qde,setQuaternionFromProperEuler:OUt});class dt{constructor(e=0,n=0){this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e,n){return n!==void 0?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,n)):(this.x+=e.x,this.y+=e.y,this)}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this}sub(e,n){return n!==void 0?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,n)):(this.x-=e.x,this.y-=e.y,this)}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const n=this.x,r=this.y,i=e.elements;return this.x=i[0]*n+i[3]*r+i[6],this.y=i[1]*n+i[4]*r+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y;return n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n,r){return r!==void 0&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const r=Math.cos(n),i=Math.sin(n),a=this.x-e.x,o=this.y-e.y;return this.x=a*r-o*i+e.x,this.y=a*i+o*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}dt.prototype.isVector2=!0;class Fa{constructor(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(e,n,r,i,a,o,s,l,c){const u=this.elements;return u[0]=e,u[1]=i,u[2]=s,u[3]=n,u[4]=a,u[5]=l,u[6]=r,u[7]=o,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],this}extractBasis(e,n,r){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,i=n.elements,a=this.elements,o=r[0],s=r[3],l=r[6],c=r[1],u=r[4],d=r[7],f=r[2],p=r[5],h=r[8],v=i[0],b=i[3],g=i[6],y=i[1],w=i[4],x=i[7],S=i[2],T=i[5],I=i[8];return a[0]=o*v+s*y+l*S,a[3]=o*b+s*w+l*T,a[6]=o*g+s*x+l*I,a[1]=c*v+u*y+d*S,a[4]=c*b+u*w+d*T,a[7]=c*g+u*x+d*I,a[2]=f*v+p*y+h*S,a[5]=f*b+p*w+h*T,a[8]=f*g+p*x+h*I,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return n*o*u-n*s*c-r*a*u+r*s*l+i*a*c-i*o*l}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=u*o-s*c,f=s*l-u*a,p=c*a-o*l,h=n*d+r*f+i*p;if(h===0)return this.set(0,0,0,0,0,0,0,0,0);const v=1/h;return e[0]=d*v,e[1]=(i*c-u*r)*v,e[2]=(s*r-i*o)*v,e[3]=f*v,e[4]=(u*n-i*l)*v,e[5]=(i*a-s*n)*v,e[6]=p*v,e[7]=(r*l-c*n)*v,e[8]=(o*n-r*a)*v,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,r,i,a,o,s){const l=Math.cos(a),c=Math.sin(a);return this.set(r*l,r*c,-r*(l*o+c*s)+o+e,-i*c,i*l,-i*(-c*o+l*s)+s+n,0,0,1),this}scale(e,n){const r=this.elements;return r[0]*=e,r[3]*=e,r[6]*=e,r[1]*=n,r[4]*=n,r[7]*=n,this}rotate(e){const n=Math.cos(e),r=Math.sin(e),i=this.elements,a=i[0],o=i[3],s=i[6],l=i[1],c=i[4],u=i[7];return i[0]=n*a+r*l,i[3]=n*o+r*c,i[6]=n*s+r*u,i[1]=-r*a+n*l,i[4]=-r*o+n*c,i[7]=-r*s+n*u,this}translate(e,n){const r=this.elements;return r[0]+=e*r[2],r[3]+=e*r[5],r[6]+=e*r[8],r[1]+=n*r[2],r[4]+=n*r[5],r[7]+=n*r[8],this}equals(e){const n=this.elements,r=e.elements;for(let i=0;i<9;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r<9;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}Fa.prototype.isMatrix3=!0;function Yde(t){if(t.length===0)return-1/0;let e=t[0];for(let n=1,r=t.length;ne&&(e=t[n]);return e}function ZD(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}let Jm;class K0{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Jm===void 0&&(Jm=ZD("canvas")),Jm.width=e.width,Jm.height=e.height;const r=Jm.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),n=Jm}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.toDataURL("image/png")}}let NUt=0;class Si extends kl{constructor(e=Si.DEFAULT_IMAGE,n=Si.DEFAULT_MAPPING,r=cs,i=cs,a=Qr,o=XD,s=zi,l=sd,c=1,u=vc){super(),Object.defineProperty(this,"id",{value:NUt++}),this.uuid=pc(),this.name="",this.image=e,this.mipmaps=[],this.mapping=n,this.wrapS=r,this.wrapT=i,this.magFilter=a,this.minFilter=o,this.anisotropy=c,this.format=s,this.internalFormat=null,this.type=l,this.offset=new dt(0,0),this.repeat=new dt(1,1),this.center=new dt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Fa,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=u,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.image=e.image,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this.userData=JSON.parse(JSON.stringify(e.userData)),this}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const r={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(this.image!==void 0){const i=this.image;if(i.uuid===void 0&&(i.uuid=pc()),!n&&e.images[i.uuid]===void 0){let a;if(Array.isArray(i)){a=[];for(let o=0,s=i.length;o1)switch(this.wrapS){case N3:e.x=e.x-Math.floor(e.x);break;case cs:e.x=e.x<0?0:1;break;case L3:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case N3:e.y=e.y-Math.floor(e.y);break;case cs:e.y=e.y<0?0:1;break;case L3:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&this.version++}}Si.DEFAULT_IMAGE=void 0;Si.DEFAULT_MAPPING=Gde;Si.prototype.isTexture=!0;function XN(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap?K0.getDataURL(t):t.data?{data:Array.prototype.slice.call(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}class yr{constructor(e=0,n=0,r=0,i=1){this.x=e,this.y=n,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,r,i){return this.x=e,this.y=n,this.z=r,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e,n){return n!==void 0?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,n)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,this}sub(e,n){return n!==void 0?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,n)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const n=this.x,r=this.y,i=this.z,a=this.w,o=e.elements;return this.x=o[0]*n+o[4]*r+o[8]*i+o[12]*a,this.y=o[1]*n+o[5]*r+o[9]*i+o[13]*a,this.z=o[2]*n+o[6]*r+o[10]*i+o[14]*a,this.w=o[3]*n+o[7]*r+o[11]*i+o[15]*a,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,r,i,a;const l=e.elements,c=l[0],u=l[4],d=l[8],f=l[1],p=l[5],h=l[9],v=l[2],b=l[6],g=l[10];if(Math.abs(u-f)<.01&&Math.abs(d-v)<.01&&Math.abs(h-b)<.01){if(Math.abs(u+f)<.1&&Math.abs(d+v)<.1&&Math.abs(h+b)<.1&&Math.abs(c+p+g-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const w=(c+1)/2,x=(p+1)/2,S=(g+1)/2,T=(u+f)/4,I=(d+v)/4,P=(h+b)/4;return w>x&&w>S?w<.01?(r=0,i=.707106781,a=.707106781):(r=Math.sqrt(w),i=T/r,a=I/r):x>S?x<.01?(r=.707106781,i=0,a=.707106781):(i=Math.sqrt(x),r=T/i,a=P/i):S<.01?(r=.707106781,i=.707106781,a=0):(a=Math.sqrt(S),r=I/a,i=P/a),this.set(r,i,a,n),this}let y=Math.sqrt((b-h)*(b-h)+(d-v)*(d-v)+(f-u)*(f-u));return Math.abs(y)<.001&&(y=1),this.x=(b-h)/y,this.y=(d-v)/y,this.z=(f-u)/y,this.w=Math.acos((c+p+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this.w=e.w+(n.w-e.w)*r,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n,r){return r!==void 0&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}yr.prototype.isVector4=!0;class Es extends kl{constructor(e,n,r={}){super(),this.width=e,this.height=n,this.depth=1,this.scissor=new yr(0,0,e,n),this.scissorTest=!1,this.viewport=new yr(0,0,e,n),this.texture=new Si(void 0,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.encoding),this.texture.isRenderTargetTexture=!0,this.texture.image={width:e,height:n,depth:1},this.texture.generateMipmaps=r.generateMipmaps!==void 0?r.generateMipmaps:!1,this.texture.internalFormat=r.internalFormat!==void 0?r.internalFormat:null,this.texture.minFilter=r.minFilter!==void 0?r.minFilter:Qr,this.depthBuffer=r.depthBuffer!==void 0?r.depthBuffer:!0,this.stencilBuffer=r.stencilBuffer!==void 0?r.stencilBuffer:!1,this.depthTexture=r.depthTexture!==void 0?r.depthTexture:null}setTexture(e){e.image={width:this.width,height:this.height,depth:this.depth},this.texture=e}setSize(e,n,r=1){(this.width!==e||this.height!==n||this.depth!==r)&&(this.width=e,this.height=n,this.depth=r,this.texture.image.width=e,this.texture.image.height=n,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}clone(){return new this.constructor().copy(this)}copy(e){return this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.image={...this.texture.image},this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this}dispose(){this.dispatchEvent({type:"dispose"})}}Es.prototype.isWebGLRenderTarget=!0;class LUt extends Es{constructor(e,n,r){super(e,n);const i=this.texture;this.texture=[];for(let a=0;a=0?1:-1,w=1-g*g;if(w>Number.EPSILON){const S=Math.sqrt(w),T=Math.atan2(S,g*y);b=Math.sin(b*T)/S,s=Math.sin(s*T)/S}const x=s*y;if(l=l*b+f*x,c=c*b+p*x,u=u*b+h*x,d=d*b+v*x,b===1-s){const S=1/Math.sqrt(l*l+c*c+u*u+d*d);l*=S,c*=S,u*=S,d*=S}}e[n]=l,e[n+1]=c,e[n+2]=u,e[n+3]=d}static multiplyQuaternionsFlat(e,n,r,i,a,o){const s=r[i],l=r[i+1],c=r[i+2],u=r[i+3],d=a[o],f=a[o+1],p=a[o+2],h=a[o+3];return e[n]=s*h+u*d+l*p-c*f,e[n+1]=l*h+u*f+c*d-s*p,e[n+2]=c*h+u*p+s*f-l*d,e[n+3]=u*h-s*d-l*f-c*p,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,r,i){return this._x=e,this._y=n,this._z=r,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,n){if(!(e&&e.isEuler))throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const r=e._x,i=e._y,a=e._z,o=e._order,s=Math.cos,l=Math.sin,c=s(r/2),u=s(i/2),d=s(a/2),f=l(r/2),p=l(i/2),h=l(a/2);switch(o){case"XYZ":this._x=f*u*d+c*p*h,this._y=c*p*d-f*u*h,this._z=c*u*h+f*p*d,this._w=c*u*d-f*p*h;break;case"YXZ":this._x=f*u*d+c*p*h,this._y=c*p*d-f*u*h,this._z=c*u*h-f*p*d,this._w=c*u*d+f*p*h;break;case"ZXY":this._x=f*u*d-c*p*h,this._y=c*p*d+f*u*h,this._z=c*u*h+f*p*d,this._w=c*u*d-f*p*h;break;case"ZYX":this._x=f*u*d-c*p*h,this._y=c*p*d+f*u*h,this._z=c*u*h-f*p*d,this._w=c*u*d+f*p*h;break;case"YZX":this._x=f*u*d+c*p*h,this._y=c*p*d+f*u*h,this._z=c*u*h-f*p*d,this._w=c*u*d-f*p*h;break;case"XZY":this._x=f*u*d-c*p*h,this._y=c*p*d-f*u*h,this._z=c*u*h+f*p*d,this._w=c*u*d+f*p*h;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return n!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const r=n/2,i=Math.sin(r);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,r=n[0],i=n[4],a=n[8],o=n[1],s=n[5],l=n[9],c=n[2],u=n[6],d=n[10],f=r+s+d;if(f>0){const p=.5/Math.sqrt(f+1);this._w=.25/p,this._x=(u-l)*p,this._y=(a-c)*p,this._z=(o-i)*p}else if(r>s&&r>d){const p=2*Math.sqrt(1+r-s-d);this._w=(u-l)/p,this._x=.25*p,this._y=(i+o)/p,this._z=(a+c)/p}else if(s>d){const p=2*Math.sqrt(1+s-r-d);this._w=(a-c)/p,this._x=(i+o)/p,this._y=.25*p,this._z=(l+u)/p}else{const p=2*Math.sqrt(1+d-r-s);this._w=(o-i)/p,this._x=(a+c)/p,this._y=(l+u)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let r=e.dot(n)+1;return rMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(this._x=e.y*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Po(this.dot(e),-1,1)))}rotateTowards(e,n){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,n/r);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e,n){return n!==void 0?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,n)):this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,n){const r=e._x,i=e._y,a=e._z,o=e._w,s=n._x,l=n._y,c=n._z,u=n._w;return this._x=r*u+o*s+i*c-a*l,this._y=i*u+o*l+a*s-r*c,this._z=a*u+o*c+r*l-i*s,this._w=o*u-r*s-i*l-a*c,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const r=this._x,i=this._y,a=this._z,o=this._w;let s=o*e._w+r*e._x+i*e._y+a*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=o,this._x=r,this._y=i,this._z=a,this;const l=1-s*s;if(l<=Number.EPSILON){const p=1-n;return this._w=p*o+n*this._w,this._x=p*r+n*this._x,this._y=p*i+n*this._y,this._z=p*a+n*this._z,this.normalize(),this._onChangeCallback(),this}const c=Math.sqrt(l),u=Math.atan2(c,s),d=Math.sin((1-n)*u)/c,f=Math.sin(n*u)/c;return this._w=o*d+this._w*f,this._x=r*d+this._x*f,this._y=i*d+this._y*f,this._z=a*d+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,n,r){this.copy(e).slerp(n,r)}random(){const e=Math.random(),n=Math.sqrt(1-e),r=Math.sqrt(e),i=2*Math.PI*Math.random(),a=2*Math.PI*Math.random();return this.set(n*Math.cos(i),r*Math.sin(a),r*Math.cos(a),n*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),this}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}}Hi.prototype.isQuaternion=!0;class Ce{constructor(e=0,n=0,r=0){this.x=e,this.y=n,this.z=r}set(e,n,r){return r===void 0&&(r=this.z),this.x=e,this.y=n,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e,n){return n!==void 0?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,n)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this}sub(e,n){return n!==void 0?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,n)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this}multiply(e,n){return n!==void 0?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,n)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(mJ.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(mJ.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,r=this.y,i=this.z,a=e.elements;return this.x=a[0]*n+a[3]*r+a[6]*i,this.y=a[1]*n+a[4]*r+a[7]*i,this.z=a[2]*n+a[5]*r+a[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,r=this.y,i=this.z,a=e.elements,o=1/(a[3]*n+a[7]*r+a[11]*i+a[15]);return this.x=(a[0]*n+a[4]*r+a[8]*i+a[12])*o,this.y=(a[1]*n+a[5]*r+a[9]*i+a[13])*o,this.z=(a[2]*n+a[6]*r+a[10]*i+a[14])*o,this}applyQuaternion(e){const n=this.x,r=this.y,i=this.z,a=e.x,o=e.y,s=e.z,l=e.w,c=l*n+o*i-s*r,u=l*r+s*n-a*i,d=l*i+a*r-o*n,f=-a*n-o*r-s*i;return this.x=c*l+f*-a+u*-s-d*-o,this.y=u*l+f*-o+d*-a-c*-s,this.z=d*l+f*-s+c*-o-u*-a,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,r=this.y,i=this.z,a=e.elements;return this.x=a[0]*n+a[4]*r+a[8]*i,this.y=a[1]*n+a[5]*r+a[9]*i,this.z=a[2]*n+a[6]*r+a[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(n,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,r){return this.x=e.x+(n.x-e.x)*r,this.y=e.y+(n.y-e.y)*r,this.z=e.z+(n.z-e.z)*r,this}cross(e,n){return n!==void 0?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,n)):this.crossVectors(this,e)}crossVectors(e,n){const r=e.x,i=e.y,a=e.z,o=n.x,s=n.y,l=n.z;return this.x=i*l-a*s,this.y=a*o-r*l,this.z=r*s-i*o,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const r=e.dot(this)/n;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return ZN.copy(this).projectOnVector(e),this.sub(ZN)}reflect(e){return this.sub(ZN.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const r=this.dot(e)/n;return Math.acos(Po(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return n*n+r*r+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,n,r){const i=Math.sin(n)*e;return this.x=i*Math.sin(r),this.y=Math.cos(n)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,r){return this.x=e*Math.sin(n),this.y=r,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=r,this.z=i,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*3)}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n,r){return r!==void 0&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,n=Math.random()*Math.PI*2,r=Math.sqrt(1-e**2);return this.x=r*Math.cos(n),this.y=r*Math.sin(n),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}Ce.prototype.isVector3=!0;const ZN=new Ce,mJ=new Hi;class _c{constructor(e=new Ce(1/0,1/0,1/0),n=new Ce(-1/0,-1/0,-1/0)){this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){let n=1/0,r=1/0,i=1/0,a=-1/0,o=-1/0,s=-1/0;for(let l=0,c=e.length;la&&(a=u),d>o&&(o=d),f>s&&(s=f)}return this.min.set(n,r,i),this.max.set(a,o,s),this}setFromBufferAttribute(e){let n=1/0,r=1/0,i=1/0,a=-1/0,o=-1/0,s=-1/0;for(let l=0,c=e.count;la&&(a=u),d>o&&(o=d),f>s&&(s=f)}return this.min.set(n,r,i),this.max.set(a,o,s),this}setFromPoints(e){this.makeEmpty();for(let n=0,r=e.length;nthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,bb),bb.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,r;return e.normal.x>0?(n=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),n<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(_b),_S.subVectors(this.max,_b),Qm.subVectors(e.a,_b),Km.subVectors(e.b,_b),Xm.subVectors(e.c,_b),Kd.subVectors(Km,Qm),Xd.subVectors(Xm,Km),$p.subVectors(Qm,Xm);let n=[0,-Kd.z,Kd.y,0,-Xd.z,Xd.y,0,-$p.z,$p.y,Kd.z,0,-Kd.x,Xd.z,0,-Xd.x,$p.z,0,-$p.x,-Kd.y,Kd.x,0,-Xd.y,Xd.x,0,-$p.y,$p.x,0];return!t2(n,Qm,Km,Xm,_S)||(n=[1,0,0,0,1,0,0,0,1],!t2(n,Qm,Km,Xm,_S))?!1:(wS.crossVectors(Kd,Xd),n=[wS.x,wS.y,wS.z],t2(n,Qm,Km,Xm,_S))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return bb.copy(e).clamp(this.min,this.max).sub(e).length()}getBoundingSphere(e){return this.getCenter(e.center),e.radius=this.getSize(bb).length()*.5,e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:($u[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),$u[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),$u[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),$u[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),$u[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),$u[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),$u[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),$u[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints($u),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}_c.prototype.isBox3=!0;const $u=[new Ce,new Ce,new Ce,new Ce,new Ce,new Ce,new Ce,new Ce],bb=new Ce,e2=new _c,Qm=new Ce,Km=new Ce,Xm=new Ce,Kd=new Ce,Xd=new Ce,$p=new Ce,_b=new Ce,_S=new Ce,wS=new Ce,Bp=new Ce;function t2(t,e,n,r,i){for(let a=0,o=t.length-3;a<=o;a+=3){Bp.fromArray(t,a);const s=i.x*Math.abs(Bp.x)+i.y*Math.abs(Bp.y)+i.z*Math.abs(Bp.z),l=e.dot(Bp),c=n.dot(Bp),u=r.dot(Bp);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>s)return!1}return!0}const kUt=new _c,gJ=new Ce,xS=new Ce,n2=new Ce;class X0{constructor(e=new Ce,n=-1){this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const r=this.center;n!==void 0?r.copy(n):kUt.setFromPoints(e).getCenter(r);let i=0;for(let a=0,o=e.length;athis.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){n2.subVectors(e,this.center);const n=n2.lengthSq();if(n>this.radius*this.radius){const r=Math.sqrt(n),i=(r-this.radius)*.5;this.center.add(n2.multiplyScalar(i/r)),this.radius+=i}return this}union(e){return this.center.equals(e.center)===!0?xS.set(0,0,1).multiplyScalar(e.radius):xS.subVectors(e.center,this.center).normalize().multiplyScalar(e.radius),this.expandByPoint(gJ.copy(e.center).add(xS)),this.expandByPoint(gJ.copy(e.center).sub(xS)),this}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Bu=new Ce,r2=new Ce,ES=new Ce,Zd=new Ce,i2=new Ce,SS=new Ce,a2=new Ce;class pm{constructor(e=new Ce,n=new Ce(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.copy(this.direction).multiplyScalar(e).add(this.origin)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Bu)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const r=n.dot(this.direction);return r<0?n.copy(this.origin):n.copy(this.direction).multiplyScalar(r).add(this.origin)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=Bu.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(Bu.copy(this.direction).multiplyScalar(n).add(this.origin),Bu.distanceToSquared(e))}distanceSqToSegment(e,n,r,i){r2.copy(e).add(n).multiplyScalar(.5),ES.copy(n).sub(e).normalize(),Zd.copy(this.origin).sub(r2);const a=e.distanceTo(n)*.5,o=-this.direction.dot(ES),s=Zd.dot(this.direction),l=-Zd.dot(ES),c=Zd.lengthSq(),u=Math.abs(1-o*o);let d,f,p,h;if(u>0)if(d=o*l-s,f=o*s-l,h=a*u,d>=0)if(f>=-h)if(f<=h){const v=1/u;d*=v,f*=v,p=d*(d+o*f+2*s)+f*(o*d+f+2*l)+c}else f=a,d=Math.max(0,-(o*f+s)),p=-d*d+f*(f+2*l)+c;else f=-a,d=Math.max(0,-(o*f+s)),p=-d*d+f*(f+2*l)+c;else f<=-h?(d=Math.max(0,-(-o*a+s)),f=d>0?-a:Math.min(Math.max(-a,-l),a),p=-d*d+f*(f+2*l)+c):f<=h?(d=0,f=Math.min(Math.max(-a,-l),a),p=f*(f+2*l)+c):(d=Math.max(0,-(o*a+s)),f=d>0?a:Math.min(Math.max(-a,-l),a),p=-d*d+f*(f+2*l)+c);else f=o>0?-a:a,d=Math.max(0,-(o*f+s)),p=-d*d+f*(f+2*l)+c;return r&&r.copy(this.direction).multiplyScalar(d).add(this.origin),i&&i.copy(ES).multiplyScalar(f).add(r2),p}intersectSphere(e,n){Bu.subVectors(e.center,this.origin);const r=Bu.dot(this.direction),i=Bu.dot(Bu)-r*r,a=e.radius*e.radius;if(i>a)return null;const o=Math.sqrt(a-i),s=r-o,l=r+o;return s<0&&l<0?null:s<0?this.at(l,n):this.at(s,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/n;return r>=0?r:null}intersectPlane(e,n){const r=this.distanceToPlane(e);return r===null?null:this.at(r,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let r,i,a,o,s,l;const c=1/this.direction.x,u=1/this.direction.y,d=1/this.direction.z,f=this.origin;return c>=0?(r=(e.min.x-f.x)*c,i=(e.max.x-f.x)*c):(r=(e.max.x-f.x)*c,i=(e.min.x-f.x)*c),u>=0?(a=(e.min.y-f.y)*u,o=(e.max.y-f.y)*u):(a=(e.max.y-f.y)*u,o=(e.min.y-f.y)*u),r>o||a>i||((a>r||r!==r)&&(r=a),(o=0?(s=(e.min.z-f.z)*d,l=(e.max.z-f.z)*d):(s=(e.max.z-f.z)*d,l=(e.min.z-f.z)*d),r>l||s>i)||((s>r||r!==r)&&(r=s),(l=0?r:i,n)}intersectsBox(e){return this.intersectBox(e,Bu)!==null}intersectTriangle(e,n,r,i,a){i2.subVectors(n,e),SS.subVectors(r,e),a2.crossVectors(i2,SS);let o=this.direction.dot(a2),s;if(o>0){if(i)return null;s=1}else if(o<0)s=-1,o=-o;else return null;Zd.subVectors(this.origin,e);const l=s*this.direction.dot(SS.crossVectors(Zd,SS));if(l<0)return null;const c=s*this.direction.dot(i2.cross(Zd));if(c<0||l+c>o)return null;const u=-s*Zd.dot(a2);return u<0?null:this.at(u/o,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class zt{constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(e,n,r,i,a,o,s,l,c,u,d,f,p,h,v,b){const g=this.elements;return g[0]=e,g[4]=n,g[8]=r,g[12]=i,g[1]=a,g[5]=o,g[9]=s,g[13]=l,g[2]=c,g[6]=u,g[10]=d,g[14]=f,g[3]=p,g[7]=h,g[11]=v,g[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new zt().fromArray(this.elements)}copy(e){const n=this.elements,r=e.elements;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8],n[9]=r[9],n[10]=r[10],n[11]=r[11],n[12]=r[12],n[13]=r[13],n[14]=r[14],n[15]=r[15],this}copyPosition(e){const n=this.elements,r=e.elements;return n[12]=r[12],n[13]=r[13],n[14]=r[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,r){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,n,r){return this.set(e.x,n.x,r.x,0,e.y,n.y,r.y,0,e.z,n.z,r.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,r=e.elements,i=1/Zm.setFromMatrixColumn(e,0).length(),a=1/Zm.setFromMatrixColumn(e,1).length(),o=1/Zm.setFromMatrixColumn(e,2).length();return n[0]=r[0]*i,n[1]=r[1]*i,n[2]=r[2]*i,n[3]=0,n[4]=r[4]*a,n[5]=r[5]*a,n[6]=r[6]*a,n[7]=0,n[8]=r[8]*o,n[9]=r[9]*o,n[10]=r[10]*o,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){e&&e.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const n=this.elements,r=e.x,i=e.y,a=e.z,o=Math.cos(r),s=Math.sin(r),l=Math.cos(i),c=Math.sin(i),u=Math.cos(a),d=Math.sin(a);if(e.order==="XYZ"){const f=o*u,p=o*d,h=s*u,v=s*d;n[0]=l*u,n[4]=-l*d,n[8]=c,n[1]=p+h*c,n[5]=f-v*c,n[9]=-s*l,n[2]=v-f*c,n[6]=h+p*c,n[10]=o*l}else if(e.order==="YXZ"){const f=l*u,p=l*d,h=c*u,v=c*d;n[0]=f+v*s,n[4]=h*s-p,n[8]=o*c,n[1]=o*d,n[5]=o*u,n[9]=-s,n[2]=p*s-h,n[6]=v+f*s,n[10]=o*l}else if(e.order==="ZXY"){const f=l*u,p=l*d,h=c*u,v=c*d;n[0]=f-v*s,n[4]=-o*d,n[8]=h+p*s,n[1]=p+h*s,n[5]=o*u,n[9]=v-f*s,n[2]=-o*c,n[6]=s,n[10]=o*l}else if(e.order==="ZYX"){const f=o*u,p=o*d,h=s*u,v=s*d;n[0]=l*u,n[4]=h*c-p,n[8]=f*c+v,n[1]=l*d,n[5]=v*c+f,n[9]=p*c-h,n[2]=-c,n[6]=s*l,n[10]=o*l}else if(e.order==="YZX"){const f=o*l,p=o*c,h=s*l,v=s*c;n[0]=l*u,n[4]=v-f*d,n[8]=h*d+p,n[1]=d,n[5]=o*u,n[9]=-s*u,n[2]=-c*u,n[6]=p*d+h,n[10]=f-v*d}else if(e.order==="XZY"){const f=o*l,p=o*c,h=s*l,v=s*c;n[0]=l*u,n[4]=-d,n[8]=c*u,n[1]=f*d+v,n[5]=o*u,n[9]=p*d-h,n[2]=h*d-p,n[6]=s*u,n[10]=v*d+f}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(FUt,e,$Ut)}lookAt(e,n,r){const i=this.elements;return ns.subVectors(e,n),ns.lengthSq()===0&&(ns.z=1),ns.normalize(),ef.crossVectors(r,ns),ef.lengthSq()===0&&(Math.abs(r.z)===1?ns.x+=1e-4:ns.z+=1e-4,ns.normalize(),ef.crossVectors(r,ns)),ef.normalize(),CS.crossVectors(ns,ef),i[0]=ef.x,i[4]=CS.x,i[8]=ns.x,i[1]=ef.y,i[5]=CS.y,i[9]=ns.y,i[2]=ef.z,i[6]=CS.z,i[10]=ns.z,this}multiply(e,n){return n!==void 0?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,n)):this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const r=e.elements,i=n.elements,a=this.elements,o=r[0],s=r[4],l=r[8],c=r[12],u=r[1],d=r[5],f=r[9],p=r[13],h=r[2],v=r[6],b=r[10],g=r[14],y=r[3],w=r[7],x=r[11],S=r[15],T=i[0],I=i[4],P=i[8],M=i[12],N=i[1],R=i[5],O=i[9],D=i[13],L=i[2],k=i[6],B=i[10],H=i[14],$=i[3],W=i[7],K=i[11],le=i[15];return a[0]=o*T+s*N+l*L+c*$,a[4]=o*I+s*R+l*k+c*W,a[8]=o*P+s*O+l*B+c*K,a[12]=o*M+s*D+l*H+c*le,a[1]=u*T+d*N+f*L+p*$,a[5]=u*I+d*R+f*k+p*W,a[9]=u*P+d*O+f*B+p*K,a[13]=u*M+d*D+f*H+p*le,a[2]=h*T+v*N+b*L+g*$,a[6]=h*I+v*R+b*k+g*W,a[10]=h*P+v*O+b*B+g*K,a[14]=h*M+v*D+b*H+g*le,a[3]=y*T+w*N+x*L+S*$,a[7]=y*I+w*R+x*k+S*W,a[11]=y*P+w*O+x*B+S*K,a[15]=y*M+w*D+x*H+S*le,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],r=e[4],i=e[8],a=e[12],o=e[1],s=e[5],l=e[9],c=e[13],u=e[2],d=e[6],f=e[10],p=e[14],h=e[3],v=e[7],b=e[11],g=e[15];return h*(+a*l*d-i*c*d-a*s*f+r*c*f+i*s*p-r*l*p)+v*(+n*l*p-n*c*f+a*o*f-i*o*p+i*c*u-a*l*u)+b*(+n*c*d-n*s*p-a*o*d+r*o*p+a*s*u-r*c*u)+g*(-i*s*u-n*l*d+n*s*f+i*o*d-r*o*f+r*l*u)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,r){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=n,i[14]=r),this}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],p=e[11],h=e[12],v=e[13],b=e[14],g=e[15],y=d*b*c-v*f*c+v*l*p-s*b*p-d*l*g+s*f*g,w=h*f*c-u*b*c-h*l*p+o*b*p+u*l*g-o*f*g,x=u*v*c-h*d*c+h*s*p-o*v*p-u*s*g+o*d*g,S=h*d*l-u*v*l-h*s*f+o*v*f+u*s*b-o*d*b,T=n*y+r*w+i*x+a*S;if(T===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const I=1/T;return e[0]=y*I,e[1]=(v*f*a-d*b*a-v*i*p+r*b*p+d*i*g-r*f*g)*I,e[2]=(s*b*a-v*l*a+v*i*c-r*b*c-s*i*g+r*l*g)*I,e[3]=(d*l*a-s*f*a-d*i*c+r*f*c+s*i*p-r*l*p)*I,e[4]=w*I,e[5]=(u*b*a-h*f*a+h*i*p-n*b*p-u*i*g+n*f*g)*I,e[6]=(h*l*a-o*b*a-h*i*c+n*b*c+o*i*g-n*l*g)*I,e[7]=(o*f*a-u*l*a+u*i*c-n*f*c-o*i*p+n*l*p)*I,e[8]=x*I,e[9]=(h*d*a-u*v*a-h*r*p+n*v*p+u*r*g-n*d*g)*I,e[10]=(o*v*a-h*s*a+h*r*c-n*v*c-o*r*g+n*s*g)*I,e[11]=(u*s*a-o*d*a-u*r*c+n*d*c+o*r*p-n*s*p)*I,e[12]=S*I,e[13]=(u*v*i-h*d*i+h*r*f-n*v*f-u*r*b+n*d*b)*I,e[14]=(h*s*i-o*v*i-h*r*l+n*v*l+o*r*b-n*s*b)*I,e[15]=(o*d*i-u*s*i+u*r*l-n*d*l-o*r*f+n*s*f)*I,this}scale(e){const n=this.elements,r=e.x,i=e.y,a=e.z;return n[0]*=r,n[4]*=i,n[8]*=a,n[1]*=r,n[5]*=i,n[9]*=a,n[2]*=r,n[6]*=i,n[10]*=a,n[3]*=r,n[7]*=i,n[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,r,i))}makeTranslation(e,n,r){return this.set(1,0,0,e,0,1,0,n,0,0,1,r,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),r=Math.sin(e);return this.set(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const r=Math.cos(n),i=Math.sin(n),a=1-r,o=e.x,s=e.y,l=e.z,c=a*o,u=a*s;return this.set(c*o+r,c*s-i*l,c*l+i*s,0,c*s+i*l,u*s+r,u*l-i*o,0,c*l-i*s,u*l+i*o,a*l*l+r,0,0,0,0,1),this}makeScale(e,n,r){return this.set(e,0,0,0,0,n,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,n,r,i,a,o){return this.set(1,r,a,0,e,1,o,0,n,i,1,0,0,0,0,1),this}compose(e,n,r){const i=this.elements,a=n._x,o=n._y,s=n._z,l=n._w,c=a+a,u=o+o,d=s+s,f=a*c,p=a*u,h=a*d,v=o*u,b=o*d,g=s*d,y=l*c,w=l*u,x=l*d,S=r.x,T=r.y,I=r.z;return i[0]=(1-(v+g))*S,i[1]=(p+x)*S,i[2]=(h-w)*S,i[3]=0,i[4]=(p-x)*T,i[5]=(1-(f+g))*T,i[6]=(b+y)*T,i[7]=0,i[8]=(h+w)*I,i[9]=(b-y)*I,i[10]=(1-(f+v))*I,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,n,r){const i=this.elements;let a=Zm.set(i[0],i[1],i[2]).length();const o=Zm.set(i[4],i[5],i[6]).length(),s=Zm.set(i[8],i[9],i[10]).length();this.determinant()<0&&(a=-a),e.x=i[12],e.y=i[13],e.z=i[14],ql.copy(this);const c=1/a,u=1/o,d=1/s;return ql.elements[0]*=c,ql.elements[1]*=c,ql.elements[2]*=c,ql.elements[4]*=u,ql.elements[5]*=u,ql.elements[6]*=u,ql.elements[8]*=d,ql.elements[9]*=d,ql.elements[10]*=d,n.setFromRotationMatrix(ql),r.x=a,r.y=o,r.z=s,this}makePerspective(e,n,r,i,a,o){o===void 0&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const s=this.elements,l=2*a/(n-e),c=2*a/(r-i),u=(n+e)/(n-e),d=(r+i)/(r-i),f=-(o+a)/(o-a),p=-2*o*a/(o-a);return s[0]=l,s[4]=0,s[8]=u,s[12]=0,s[1]=0,s[5]=c,s[9]=d,s[13]=0,s[2]=0,s[6]=0,s[10]=f,s[14]=p,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this}makeOrthographic(e,n,r,i,a,o){const s=this.elements,l=1/(n-e),c=1/(r-i),u=1/(o-a),d=(n+e)*l,f=(r+i)*c,p=(o+a)*u;return s[0]=2*l,s[4]=0,s[8]=0,s[12]=-d,s[1]=0,s[5]=2*c,s[9]=0,s[13]=-f,s[2]=0,s[6]=0,s[10]=-2*u,s[14]=-p,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this}equals(e){const n=this.elements,r=e.elements;for(let i=0;i<16;i++)if(n[i]!==r[i])return!1;return!0}fromArray(e,n=0){for(let r=0;r<16;r++)this.elements[r]=e[r+n];return this}toArray(e=[],n=0){const r=this.elements;return e[n]=r[0],e[n+1]=r[1],e[n+2]=r[2],e[n+3]=r[3],e[n+4]=r[4],e[n+5]=r[5],e[n+6]=r[6],e[n+7]=r[7],e[n+8]=r[8],e[n+9]=r[9],e[n+10]=r[10],e[n+11]=r[11],e[n+12]=r[12],e[n+13]=r[13],e[n+14]=r[14],e[n+15]=r[15],e}}zt.prototype.isMatrix4=!0;const Zm=new Ce,ql=new zt,FUt=new Ce(0,0,0),$Ut=new Ce(1,1,1),ef=new Ce,CS=new Ce,ns=new Ce,vJ=new zt,yJ=new Hi;class hm{constructor(e=0,n=0,r=0,i=hm.DefaultOrder){this._x=e,this._y=n,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,n,r,i=this._order){return this._x=e,this._y=n,this._z=r,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,n=this._order,r=!0){const i=e.elements,a=i[0],o=i[4],s=i[8],l=i[1],c=i[5],u=i[9],d=i[2],f=i[6],p=i[10];switch(n){case"XYZ":this._y=Math.asin(Po(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-u,p),this._z=Math.atan2(-o,a)):(this._x=Math.atan2(f,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Po(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(s,p),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-d,a),this._z=0);break;case"ZXY":this._x=Math.asin(Po(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-d,p),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,a));break;case"ZYX":this._y=Math.asin(-Po(d,-1,1)),Math.abs(d)<.9999999?(this._x=Math.atan2(f,p),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(Po(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-d,a)):(this._x=0,this._y=Math.atan2(s,p));break;case"XZY":this._z=Math.asin(-Po(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,c),this._y=Math.atan2(s,a)):(this._x=Math.atan2(-u,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,r){return vJ.makeRotationFromQuaternion(e),this.setFromRotationMatrix(vJ,n,r)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return yJ.setFromEuler(this),this.setFromQuaternion(yJ,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._order,e}toVector3(e){return e?e.set(this._x,this._y,this._z):new Ce(this._x,this._y,this._z)}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}}hm.prototype.isEuler=!0;hm.DefaultOrder="XYZ";hm.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class z5{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let n=0;n1){for(let r=0;r0){i.children=[];for(let s=0;s0){i.animations=[];for(let s=0;s0&&(r.geometries=s),l.length>0&&(r.materials=l),c.length>0&&(r.textures=c),u.length>0&&(r.images=u),d.length>0&&(r.shapes=d),f.length>0&&(r.skeletons=f),p.length>0&&(r.animations=p)}return r.object=i,r;function o(s){const l=[];for(const c in s){const u=s[c];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let r=0;r0?i.multiplyScalar(1/Math.sqrt(a)):i.set(0,0,0)}static getBarycoord(e,n,r,i,a){Yl.subVectors(i,n),Hu.subVectors(r,n),o2.subVectors(e,n);const o=Yl.dot(Yl),s=Yl.dot(Hu),l=Yl.dot(o2),c=Hu.dot(Hu),u=Hu.dot(o2),d=o*c-s*s;if(d===0)return a.set(-2,-1,-1);const f=1/d,p=(c*l-s*u)*f,h=(o*u-s*l)*f;return a.set(1-p-h,h,p)}static containsPoint(e,n,r,i){return this.getBarycoord(e,n,r,i,Vu),Vu.x>=0&&Vu.y>=0&&Vu.x+Vu.y<=1}static getUV(e,n,r,i,a,o,s,l){return this.getBarycoord(e,n,r,i,Vu),l.set(0,0),l.addScaledVector(a,Vu.x),l.addScaledVector(o,Vu.y),l.addScaledVector(s,Vu.z),l}static isFrontFacing(e,n,r,i){return Yl.subVectors(r,n),Hu.subVectors(e,n),Yl.cross(Hu).dot(i)<0}set(e,n,r){return this.a.copy(e),this.b.copy(n),this.c.copy(r),this}setFromPointsAndIndices(e,n,r,i){return this.a.copy(e[n]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,n,r,i){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Yl.subVectors(this.c,this.b),Hu.subVectors(this.a,this.b),Yl.cross(Hu).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Fi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return Fi.getBarycoord(e,this.a,this.b,this.c,n)}getUV(e,n,r,i,a){return Fi.getUV(e,this.a,this.b,this.c,n,r,i,a)}containsPoint(e){return Fi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Fi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const r=this.a,i=this.b,a=this.c;let o,s;tg.subVectors(i,r),ng.subVectors(a,r),s2.subVectors(e,r);const l=tg.dot(s2),c=ng.dot(s2);if(l<=0&&c<=0)return n.copy(r);l2.subVectors(e,i);const u=tg.dot(l2),d=ng.dot(l2);if(u>=0&&d<=u)return n.copy(i);const f=l*d-u*c;if(f<=0&&l>=0&&u<=0)return o=l/(l-u),n.copy(r).addScaledVector(tg,o);c2.subVectors(e,a);const p=tg.dot(c2),h=ng.dot(c2);if(h>=0&&p<=h)return n.copy(a);const v=p*c-l*h;if(v<=0&&c>=0&&h<=0)return s=c/(c-h),n.copy(r).addScaledVector(ng,s);const b=u*h-p*d;if(b<=0&&d-u>=0&&p-h>=0)return SJ.subVectors(a,i),s=(d-u)/(d-u+(p-h)),n.copy(i).addScaledVector(SJ,s);const g=1/(b+v+f);return o=v*g,s=f*g,n.copy(r).addScaledVector(tg,o).addScaledVector(ng,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let zUt=0;class to extends kl{constructor(){super(),Object.defineProperty(this,"id",{value:zUt++}),this.uuid=pc(),this.name="",this.type="Material",this.fog=!0,this.blending=T_,this.side=F1,this.vertexColors=!1,this.opacity=1,this.format=zi,this.transparent=!1,this.blendSrc=zde,this.blendDst=jde,this.blendEquation=wg,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=P3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=bUt,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=KN,this.stencilZFail=KN,this.stencilZPass=KN,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const r=e[n];if(r===void 0){console.warn("THREE.Material: '"+n+"' parameter is undefined.");continue}if(n==="shading"){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=r===Vde;continue}const i=this[n];if(i===void 0){console.warn("THREE."+this.type+": '"+n+"' is not a property of this material.");continue}i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[n]=r}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{}});const r={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==T_&&(r.blending=this.blending),this.side!==F1&&(r.side=this.side),this.vertexColors&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.format!==zi&&(r.format=this.format),this.transparent===!0&&(r.transparent=this.transparent),r.depthFunc=this.depthFunc,r.depthTest=this.depthTest,r.depthWrite=this.depthWrite,r.colorWrite=this.colorWrite,r.stencilWrite=this.stencilWrite,r.stencilWriteMask=this.stencilWriteMask,r.stencilFunc=this.stencilFunc,r.stencilRef=this.stencilRef,r.stencilFuncMask=this.stencilFuncMask,r.stencilFail=this.stencilFail,r.stencilZFail=this.stencilZFail,r.stencilZPass=this.stencilZPass,this.rotation&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaToCoverage===!0&&(r.alphaToCoverage=this.alphaToCoverage),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(r.wireframe=this.wireframe),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=this.flatShading),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),JSON.stringify(this.userData)!=="{}"&&(r.userData=this.userData);function i(a){const o=[];for(const s in a){const l=a[s];delete l.metadata,o.push(l)}return o}if(n){const a=i(e.textures),o=i(e.images);a.length>0&&(r.textures=a),o.length>0&&(r.images=o)}return r}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.fog=e.fog,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.format=e.format,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const n=e.clippingPlanes;let r=null;if(n!==null){const i=n.length;r=new Array(i);for(let a=0;a!==i;++a)r[a]=n[a].clone()}return this.clippingPlanes=r,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}to.prototype.isMaterial=!0;const Jde={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Jl={h:0,s:0,l:0},AS={h:0,s:0,l:0};function u2(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}function d2(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function f2(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}class Bt{constructor(e,n,r){return n===void 0&&r===void 0?this.set(e):this.setRGB(e,n,r)}set(e){return e&&e.isColor?this.copy(e):typeof e=="number"?this.setHex(e):typeof e=="string"&&this.setStyle(e),this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,this}setRGB(e,n,r){return this.r=e,this.g=n,this.b=r,this}setHSL(e,n,r){if(e=H5(e,1),n=Po(n,0,1),r=Po(r,0,1),n===0)this.r=this.g=this.b=r;else{const i=r<=.5?r*(1+n):r+n-r*n,a=2*r-i;this.r=u2(a,i,e+1/3),this.g=u2(a,i,e),this.b=u2(a,i,e-1/3)}return this}setStyle(e){function n(i){i!==void 0&&parseFloat(i)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)){let i;const a=r[1],o=r[2];switch(a){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,n(i[4]),this;if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,n(i[4]),this;break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o)){const s=parseFloat(i[1])/360,l=parseInt(i[2],10)/100,c=parseInt(i[3],10)/100;return n(i[4]),this.setHSL(s,l,c)}break}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const i=r[1],a=i.length;if(a===3)return this.r=parseInt(i.charAt(0)+i.charAt(0),16)/255,this.g=parseInt(i.charAt(1)+i.charAt(1),16)/255,this.b=parseInt(i.charAt(2)+i.charAt(2),16)/255,this;if(a===6)return this.r=parseInt(i.charAt(0)+i.charAt(1),16)/255,this.g=parseInt(i.charAt(2)+i.charAt(3),16)/255,this.b=parseInt(i.charAt(4)+i.charAt(5),16)/255,this}return e&&e.length>0?this.setColorName(e):this}setColorName(e){const n=Jde[e.toLowerCase()];return n!==void 0?this.setHex(n):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=d2(e.r),this.g=d2(e.g),this.b=d2(e.b),this}copyLinearToSRGB(e){return this.r=f2(e.r),this.g=f2(e.g),this.b=f2(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){return this.r*255<<16^this.g*255<<8^this.b*255<<0}getHexString(){return("000000"+this.getHex().toString(16)).slice(-6)}getHSL(e){const n=this.r,r=this.g,i=this.b,a=Math.max(n,r,i),o=Math.min(n,r,i);let s,l;const c=(o+a)/2;if(o===a)s=0,l=0;else{const u=a-o;switch(l=c<=.5?u/(a+o):u/(2-a-o),a){case n:s=(r-i)/u+(r65535?Kde:Qde)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,n){return this.attributes[e]=n,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,n,r=0){this.groups.push({start:e,count:n,materialIndex:r})}clearGroups(){this.groups=[]}setDrawRange(e,n){this.drawRange.start=e,this.drawRange.count=n}applyMatrix4(e){const n=this.attributes.position;n!==void 0&&(n.applyMatrix4(e),n.needsUpdate=!0);const r=this.attributes.normal;if(r!==void 0){const a=new Fa().getNormalMatrix(e);r.applyNormalMatrix(a),r.needsUpdate=!0}const i=this.attributes.tangent;return i!==void 0&&(i.transformDirection(e),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return Zs.makeRotationFromQuaternion(e),this.applyMatrix4(Zs),this}rotateX(e){return Zs.makeRotationX(e),this.applyMatrix4(Zs),this}rotateY(e){return Zs.makeRotationY(e),this.applyMatrix4(Zs),this}rotateZ(e){return Zs.makeRotationZ(e),this.applyMatrix4(Zs),this}translate(e,n,r){return Zs.makeTranslation(e,n,r),this.applyMatrix4(Zs),this}scale(e,n,r){return Zs.makeScale(e,n,r),this.applyMatrix4(Zs),this}lookAt(e){return p2.lookAt(e),p2.updateMatrix(),this.applyMatrix4(p2.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(rg).negate(),this.translate(rg.x,rg.y,rg.z),this}setFromPoints(e){const n=[];for(let r=0,i=e.length;r0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const r=this.attributes;for(const l in r){const c=r[l];e.data.attributes[l]=c.toJSON(e.data)}const i={};let a=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let d=0,f=c.length;d0&&(i[l]=u,a=!0)}a&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const s=this.boundingSphere;return s!==null&&(e.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const n={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(n));const i=e.attributes;for(const c in i){const u=i[c];this.setAttribute(c,u.clone(n))}const a=e.morphAttributes;for(const c in a){const u=[],d=a[c];for(let f=0,p=d.length;f0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=i.length;a0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}raycast(e,n){const r=this.geometry,i=this.material,a=this.matrixWorld;if(i===void 0||(r.boundingSphere===null&&r.computeBoundingSphere(),h2.copy(r.boundingSphere),h2.applyMatrix4(a),e.ray.intersectsSphere(h2)===!1)||(CJ.copy(a).invert(),ig.copy(e.ray).applyMatrix4(CJ),r.boundingBox!==null&&ig.intersectsBox(r.boundingBox)===!1))return;let o;if(r.isBufferGeometry){const s=r.index,l=r.attributes.position,c=r.morphAttributes.position,u=r.morphTargetsRelative,d=r.attributes.uv,f=r.attributes.uv2,p=r.groups,h=r.drawRange;if(s!==null)if(Array.isArray(i))for(let v=0,b=p.length;vn.far?null:{distance:c,point:LS.clone(),object:t}}function kS(t,e,n,r,i,a,o,s,l,c,u,d){tf.fromBufferAttribute(i,c),nf.fromBufferAttribute(i,u),rf.fromBufferAttribute(i,d);const f=t.morphTargetInfluences;if(a&&f){MS.set(0,0,0),DS.set(0,0,0),PS.set(0,0,0);for(let h=0,v=a.length;h0?1:-1,u.push(W.x,W.y,W.z),d.push(U/I),d.push(1-K/P),H+=1}}for(let K=0;K0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(n.extensions=r),n}}Yh.prototype.isShaderMaterial=!0;class j5 extends Jn{constructor(){super(),this.type="Camera",this.matrixWorldInverse=new zt,this.projectionMatrix=new zt,this.projectionMatrixInverse=new zt}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(-n[8],-n[9],-n[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}j5.prototype.isCamera=!0;class Ni extends j5{constructor(e=50,n=1,r=.1,i=2e3){super(),this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=i,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=U1*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(_v*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return U1*2*Math.atan(Math.tan(_v*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,n,r,i,a,o){this.aspect=e/n,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(_v*.5*this.fov)/this.zoom,r=2*n,i=this.aspect*r,a=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,c=o.fullHeight;a+=o.offsetX*i/l,n-=o.offsetY*r/c,i*=o.width/l,r*=o.height/c}const s=this.filmOffset;s!==0&&(a+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+i,n,n-r,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}Ni.prototype.isPerspectiveCamera=!0;const ag=90,og=1;class G5 extends Jn{constructor(e,n,r){if(super(),this.type="CubeCamera",r.isWebGLCubeRenderTarget!==!0){console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");return}this.renderTarget=r;const i=new Ni(ag,og,e,n);i.layers=this.layers,i.up.set(0,-1,0),i.lookAt(new Ce(1,0,0)),this.add(i);const a=new Ni(ag,og,e,n);a.layers=this.layers,a.up.set(0,-1,0),a.lookAt(new Ce(-1,0,0)),this.add(a);const o=new Ni(ag,og,e,n);o.layers=this.layers,o.up.set(0,0,1),o.lookAt(new Ce(0,1,0)),this.add(o);const s=new Ni(ag,og,e,n);s.layers=this.layers,s.up.set(0,0,-1),s.lookAt(new Ce(0,-1,0)),this.add(s);const l=new Ni(ag,og,e,n);l.layers=this.layers,l.up.set(0,-1,0),l.lookAt(new Ce(0,0,1)),this.add(l);const c=new Ni(ag,og,e,n);c.layers=this.layers,c.up.set(0,-1,0),c.lookAt(new Ce(0,0,-1)),this.add(c)}update(e,n){this.parent===null&&this.updateMatrixWorld();const r=this.renderTarget,[i,a,o,s,l,c]=this.children,u=e.xr.enabled,d=e.getRenderTarget();e.xr.enabled=!1;const f=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0),e.render(n,i),e.setRenderTarget(r,1),e.render(n,a),e.setRenderTarget(r,2),e.render(n,o),e.setRenderTarget(r,3),e.render(n,s),e.setRenderTarget(r,4),e.render(n,l),r.texture.generateMipmaps=f,e.setRenderTarget(r,5),e.render(n,c),e.setRenderTarget(d),e.xr.enabled=u}}class eP extends Si{constructor(e,n,r,i,a,o,s,l,c,u){e=e!==void 0?e:[],n=n!==void 0?n:ux,super(e,n,r,i,a,o,s,l,c,u),this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}eP.prototype.isCubeTexture=!0;class Xde extends Es{constructor(e,n,r){Number.isInteger(n)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),n=r),super(e,e,n),n=n||{},this.texture=new eP(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:Qr,this.texture._needsFlipEnvMap=!1}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.format=zi,this.texture.encoding=n.encoding,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; vec3 transformDirection( in vec3 dir, in mat4 matrix ) { return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); } void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include } `,fragmentShader:` uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { vec3 direction = normalize( vWorldDirection ); vec2 sampleUV = equirectUv( direction ); gl_FragColor = texture2D( tEquirect, sampleUV ); } `},i=new fx(5,5,5),a=new Yh({name:"CubemapFromEquirect",uniforms:f0(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:Di,blending:Vf});a.uniforms.tEquirect.value=n;const o=new Qa(i,a),s=n.minFilter;return n.minFilter===XD&&(n.minFilter=Qr),new G5(1,10,this).update(e,o),n.minFilter=s,o.geometry.dispose(),o.material.dispose(),this}clear(e,n,r,i){const a=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(n,r,i);e.setRenderTarget(a)}}Xde.prototype.isWebGLCubeRenderTarget=!0;const b2=new Ce,QUt=new Ce,KUt=new Fa;class Ju{constructor(e=new Ce(1,0,0),n=0){this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,r,i){return this.normal.set(e,n,r),this.constant=i,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,r){const i=b2.subVectors(r,n).cross(QUt.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}intersectLine(e,n){const r=e.delta(b2),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const a=-(e.start.dot(this.normal)+this.constant)/i;return a<0||a>1?null:n.copy(r).multiplyScalar(a).add(e.start)}intersectsLine(e){const n=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return n<0&&r>0||r<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const r=n||KUt.getNormalMatrix(e),i=this.coplanarPoint(b2).applyMatrix4(e),a=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}Ju.prototype.isPlane=!0;const sg=new X0,FS=new Ce;class px{constructor(e=new Ju,n=new Ju,r=new Ju,i=new Ju,a=new Ju,o=new Ju){this.planes=[e,n,r,i,a,o]}set(e,n,r,i,a,o){const s=this.planes;return s[0].copy(e),s[1].copy(n),s[2].copy(r),s[3].copy(i),s[4].copy(a),s[5].copy(o),this}copy(e){const n=this.planes;for(let r=0;r<6;r++)n[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e){const n=this.planes,r=e.elements,i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=r[6],d=r[7],f=r[8],p=r[9],h=r[10],v=r[11],b=r[12],g=r[13],y=r[14],w=r[15];return n[0].setComponents(s-i,d-l,v-f,w-b).normalize(),n[1].setComponents(s+i,d+l,v+f,w+b).normalize(),n[2].setComponents(s+a,d+c,v+p,w+g).normalize(),n[3].setComponents(s-a,d-c,v-p,w-g).normalize(),n[4].setComponents(s-o,d-u,v-h,w-y).normalize(),n[5].setComponents(s+o,d+u,v+h,w+y).normalize(),this}intersectsObject(e){const n=e.geometry;return n.boundingSphere===null&&n.computeBoundingSphere(),sg.copy(n.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(sg)}intersectsSprite(e){return sg.center.set(0,0,0),sg.radius=.7071067811865476,sg.applyMatrix4(e.matrixWorld),this.intersectsSphere(sg)}intersectsSphere(e){const n=this.planes,r=e.center,i=-e.radius;for(let a=0;a<6;a++)if(n[a].distanceToPoint(r)0?e.max.x:e.min.x,FS.y=i.normal.y>0?e.max.y:e.min.y,FS.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(FS)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let r=0;r<6;r++)if(n[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function Zde(){let t=null,e=!1,n=null,r=null;function i(a,o){n(a,o),r=t.requestAnimationFrame(i)}return{start:function(){e!==!0&&n!==null&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(a){n=a},setContext:function(a){t=a}}}function XUt(t,e){const n=e.isWebGL2,r=new WeakMap;function i(c,u){const d=c.array,f=c.usage,p=t.createBuffer();t.bindBuffer(u,p),t.bufferData(u,d,f),c.onUploadCallback();let h=5126;return d instanceof Float32Array?h=5126:d instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):d instanceof Uint16Array?c.isFloat16BufferAttribute?n?h=5131:console.warn("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."):h=5123:d instanceof Int16Array?h=5122:d instanceof Uint32Array?h=5125:d instanceof Int32Array?h=5124:d instanceof Int8Array?h=5120:(d instanceof Uint8Array||d instanceof Uint8ClampedArray)&&(h=5121),{buffer:p,type:h,bytesPerElement:d.BYTES_PER_ELEMENT,version:c.version}}function a(c,u,d){const f=u.array,p=u.updateRange;t.bindBuffer(d,c),p.count===-1?t.bufferSubData(d,0,f):(n?t.bufferSubData(d,p.offset*f.BYTES_PER_ELEMENT,f,p.offset,p.count):t.bufferSubData(d,p.offset*f.BYTES_PER_ELEMENT,f.subarray(p.offset,p.offset+p.count)),p.count=-1)}function o(c){return c.isInterleavedBufferAttribute&&(c=c.data),r.get(c)}function s(c){c.isInterleavedBufferAttribute&&(c=c.data);const u=r.get(c);u&&(t.deleteBuffer(u.buffer),r.delete(c))}function l(c,u){if(c.isGLBufferAttribute){const f=r.get(c);(!f||f.version 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; return cross( v1, v2 ) * theta_sintheta; } vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; vec3 lightNormal = cross( v1, v2 ); if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); vec3 T1, T2; T1 = normalize( V - N * dot( V, N ) ); T2 = - cross( N, T1 ); mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); vec3 coords[ 4 ]; coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); coords[ 0 ] = normalize( coords[ 0 ] ); coords[ 1 ] = normalize( coords[ 1 ] ); coords[ 2 ] = normalize( coords[ 2 ] ); coords[ 3 ] = normalize( coords[ 3 ] ); vec3 vectorFormFactor = vec3( 0.0 ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); return vec3( result ); } float G_BlinnPhong_Implicit( ) { return 0.25; } float D_BlinnPhong( const in float shininess, const in float dotNH ) { return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess ); } vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) { vec3 halfDir = normalize( lightDir + viewDir ); float dotNH = saturate( dot( normal, halfDir ) ); float dotVH = saturate( dot( viewDir, halfDir ) ); vec3 F = F_Schlick( specularColor, 1.0, dotVH ); float G = G_BlinnPhong_Implicit( ); float D = D_BlinnPhong( shininess, dotNH ); return F * ( G * D ); } #if defined( USE_SHEEN ) float D_Charlie( float roughness, float dotNH ) { float alpha = pow2( roughness ); float invAlpha = 1.0 / alpha; float cos2h = dotNH * dotNH; float sin2h = max( 1.0 - cos2h, 0.0078125 ); return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); } float V_Neubelt( float dotNV, float dotNL ) { return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); } vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { vec3 halfDir = normalize( lightDir + viewDir ); float dotNL = saturate( dot( normal, lightDir ) ); float dotNV = saturate( dot( normal, viewDir ) ); float dotNH = saturate( dot( normal, halfDir ) ); float D = D_Charlie( sheenRoughness, dotNH ); float V = V_Neubelt( dotNV, dotNL ); return sheenColor * ( D * V ); } #endif`,l4t=`#ifdef USE_BUMPMAP uniform sampler2D bumpMap; uniform float bumpScale; vec2 dHdxy_fwd() { vec2 dSTdx = dFdx( vUv ); vec2 dSTdy = dFdy( vUv ); float Hll = bumpScale * texture2D( bumpMap, vUv ).x; float dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll; float dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll; return vec2( dBx, dBy ); } vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) { vec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) ); vec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) ); vec3 vN = surf_norm; vec3 R1 = cross( vSigmaY, vN ); vec3 R2 = cross( vN, vSigmaX ); float fDet = dot( vSigmaX, R1 ) * faceDirection; vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 ); return normalize( abs( fDet ) * surf_norm - vGrad ); } #endif`,c4t=`#if NUM_CLIPPING_PLANES > 0 vec4 plane; #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; } #pragma unroll_loop_end #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES bool clipped = true; #pragma unroll_loop_start for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; } #pragma unroll_loop_end if ( clipped ) discard; #endif #endif`,u4t=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; #endif`,d4t=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; #endif`,f4t=`#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; #endif`,p4t=`#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; #endif`,h4t=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; #endif`,m4t=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) varying vec3 vColor; #endif`,g4t=`#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) vColor = vec3( 1.0 ); #endif #ifdef USE_COLOR vColor *= color; #endif #ifdef USE_INSTANCING_COLOR vColor.xyz *= instanceColor.xyz; #endif`,v4t=`#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 #define RECIPROCAL_PI2 0.15915494309189535 #define EPSILON 1e-6 #ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif #define whiteComplement( a ) ( 1.0 - saturate( a ) ) float pow2( const in float x ) { return x*x; } float pow3( const in float x ) { return x*x*x; } float pow4( const in float x ) { float x2 = x*x; return x2*x2; } float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } float average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); } highp float rand( const in vec2 uv ) { const highp float a = 12.9898, b = 78.233, c = 43758.5453; highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); return fract( sin( sn ) * c ); } #ifdef HIGH_PRECISION float precisionSafeLength( vec3 v ) { return length( v ); } #else float precisionSafeLength( vec3 v ) { float maxComponent = max3( abs( v ) ); return length( v / maxComponent ) * maxComponent; } #endif struct IncidentLight { vec3 color; vec3 direction; bool visible; }; struct ReflectedLight { vec3 directDiffuse; vec3 directSpecular; vec3 indirectDiffuse; vec3 indirectSpecular; }; struct GeometricContext { vec3 position; vec3 normal; vec3 viewDir; #ifdef USE_CLEARCOAT vec3 clearcoatNormal; #endif }; vec3 transformDirection( in vec3 dir, in mat4 matrix ) { return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); } vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); } mat3 transposeMat3( const in mat3 m ) { mat3 tmp; tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); return tmp; } float linearToRelativeLuminance( const in vec3 color ) { vec3 weights = vec3( 0.2126, 0.7152, 0.0722 ); return dot( weights, color.rgb ); } bool isPerspectiveMatrix( mat4 m ) { return m[ 2 ][ 3 ] == - 1.0; } vec2 equirectUv( in vec3 dir ) { float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; return vec2( u, v ); }`,y4t=`#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_maxMipLevel 8.0 #define cubeUV_minMipLevel 4.0 #define cubeUV_maxTileSize 256.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { vec3 absDirection = abs( direction ); float face = - 1.0; if ( absDirection.x > absDirection.z ) { if ( absDirection.x > absDirection.y ) face = direction.x > 0.0 ? 0.0 : 3.0; else face = direction.y > 0.0 ? 1.0 : 4.0; } else { if ( absDirection.z > absDirection.y ) face = direction.z > 0.0 ? 2.0 : 5.0; else face = direction.y > 0.0 ? 1.0 : 4.0; } return face; } vec2 getUV( vec3 direction, float face ) { vec2 uv; if ( face == 0.0 ) { uv = vec2( direction.z, direction.y ) / abs( direction.x ); } else if ( face == 1.0 ) { uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); } else if ( face == 2.0 ) { uv = vec2( - direction.x, direction.y ) / abs( direction.z ); } else if ( face == 3.0 ) { uv = vec2( - direction.z, direction.y ) / abs( direction.x ); } else if ( face == 4.0 ) { uv = vec2( - direction.x, direction.z ) / abs( direction.y ); } else { uv = vec2( direction.x, direction.y ) / abs( direction.z ); } return 0.5 * ( uv + 1.0 ); } vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { float face = getFace( direction ); float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); mipInt = max( mipInt, cubeUV_minMipLevel ); float faceSize = exp2( mipInt ); float texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize ); vec2 uv = getUV( direction, face ) * ( faceSize - 1.0 ) + 0.5; if ( face > 2.0 ) { uv.y += faceSize; face -= 3.0; } uv.x += face * faceSize; if ( mipInt < cubeUV_maxMipLevel ) { uv.y += 2.0 * cubeUV_maxTileSize; } uv.y += filterInt * 2.0 * cubeUV_minTileSize; uv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize ); uv *= texelSize; return texture2D( envMap, uv ).rgb; } #define r0 1.0 #define v0 0.339 #define m0 - 2.0 #define r1 0.8 #define v1 0.276 #define m1 - 1.0 #define r4 0.4 #define v4 0.046 #define m4 2.0 #define r5 0.305 #define v5 0.016 #define m5 3.0 #define r6 0.21 #define v6 0.0038 #define m6 4.0 float roughnessToMip( float roughness ) { float mip = 0.0; if ( roughness >= r1 ) { mip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0; } else if ( roughness >= r4 ) { mip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1; } else if ( roughness >= r5 ) { mip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4; } else if ( roughness >= r6 ) { mip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5; } else { mip = - 2.0 * log2( 1.16 * roughness ); } return mip; } vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { float mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel ); float mipF = fract( mip ); float mipInt = floor( mip ); vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); if ( mipF == 0.0 ) { return vec4( color0, 1.0 ); } else { vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); return vec4( mix( color0, color1, mipF ), 1.0 ); } } #endif`,b4t=`vec3 transformedNormal = objectNormal; #ifdef USE_INSTANCING mat3 m = mat3( instanceMatrix ); transformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) ); transformedNormal = m * transformedNormal; #endif transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedNormal = - transformedNormal; #endif #ifdef USE_TANGENT vec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif #endif`,_4t=`#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; #endif`,w4t=`#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias ); #endif`,x4t=`#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vUv ); emissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb; totalEmissiveRadiance *= emissiveColor.rgb; #endif`,E4t=`#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; #endif`,S4t="gl_FragColor = linearToOutputTexel( gl_FragColor );",C4t=`vec4 LinearToLinear( in vec4 value ) { return value; } vec4 sRGBToLinear( in vec4 value ) { return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); } vec4 LinearTosRGB( in vec4 value ) { return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); }`,T4t=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); } else { cameraToFrag = normalize( vWorldPosition - cameraPosition ); } vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); #ifdef ENVMAP_MODE_REFLECTION vec3 reflectVec = reflect( cameraToFrag, worldNormal ); #else vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); #endif #else vec3 reflectVec = vReflect; #endif #ifdef ENVMAP_TYPE_CUBE vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); envColor = envMapTexelToLinear( envColor ); #elif defined( ENVMAP_TYPE_CUBE_UV ) vec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 ); #else vec4 envColor = vec4( 0.0 ); #endif #ifdef ENVMAP_BLENDING_MULTIPLY outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); #elif defined( ENVMAP_BLENDING_MIX ) outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif #endif`,A4t=`#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; #ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #else uniform sampler2D envMap; #endif #endif`,I4t=`#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) #define ENV_WORLDPOS #endif #ifdef ENV_WORLDPOS varying vec3 vWorldPosition; uniform float refractionRatio; #else varying vec3 vReflect; #endif #endif`,M4t=`#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG ) #define ENV_WORLDPOS #endif #ifdef ENV_WORLDPOS varying vec3 vWorldPosition; #else varying vec3 vReflect; uniform float refractionRatio; #endif #endif`,D4t=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else vec3 cameraToVertex; if ( isOrthographic ) { cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); } else { cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); } vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); #ifdef ENVMAP_MODE_REFLECTION vReflect = reflect( cameraToVertex, worldNormal ); #else vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif #endif`,P4t=`#ifdef USE_FOG vFogDepth = - mvPosition.z; #endif`,R4t=`#ifdef USE_FOG varying float vFogDepth; #endif`,O4t=`#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); #endif`,N4t=`#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 uniform float fogDensity; #else uniform float fogNear; uniform float fogFar; #endif #endif`,L4t=`#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { float dotNL = dot( normal, lightDirection ); vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); #ifdef USE_GRADIENTMAP return vec3( texture2D( gradientMap, coord ).r ); #else return ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 ); #endif }`,k4t=`#ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vUv2 ); vec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity; #ifndef PHYSICALLY_CORRECT_LIGHTS lightMapIrradiance *= PI; #endif reflectedLight.indirectDiffuse += lightMapIrradiance; #endif`,F4t=`#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; #endif`,$4t=`vec3 diffuse = vec3( 1.0 ); GeometricContext geometry; geometry.position = mvPosition.xyz; geometry.normal = normalize( transformedNormal ); geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz ); GeometricContext backGeometry; backGeometry.position = geometry.position; backGeometry.normal = -geometry.normal; backGeometry.viewDir = geometry.viewDir; vLightFront = vec3( 0.0 ); vIndirectFront = vec3( 0.0 ); #ifdef DOUBLE_SIDED vLightBack = vec3( 0.0 ); vIndirectBack = vec3( 0.0 ); #endif IncidentLight directLight; float dotNL; vec3 directLightColor_Diffuse; vIndirectFront += getAmbientLightIrradiance( ambientLightColor ); vIndirectFront += getLightProbeIrradiance( lightProbe, geometry.normal ); #ifdef DOUBLE_SIDED vIndirectBack += getAmbientLightIrradiance( ambientLightColor ); vIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry.normal ); #endif #if NUM_POINT_LIGHTS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { getPointLightInfo( pointLights[ i ], geometry, directLight ); dotNL = dot( geometry.normal, directLight.direction ); directLightColor_Diffuse = directLight.color; vLightFront += saturate( dotNL ) * directLightColor_Diffuse; #ifdef DOUBLE_SIDED vLightBack += saturate( - dotNL ) * directLightColor_Diffuse; #endif } #pragma unroll_loop_end #endif #if NUM_SPOT_LIGHTS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { getSpotLightInfo( spotLights[ i ], geometry, directLight ); dotNL = dot( geometry.normal, directLight.direction ); directLightColor_Diffuse = directLight.color; vLightFront += saturate( dotNL ) * directLightColor_Diffuse; #ifdef DOUBLE_SIDED vLightBack += saturate( - dotNL ) * directLightColor_Diffuse; #endif } #pragma unroll_loop_end #endif #if NUM_DIR_LIGHTS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { getDirectionalLightInfo( directionalLights[ i ], geometry, directLight ); dotNL = dot( geometry.normal, directLight.direction ); directLightColor_Diffuse = directLight.color; vLightFront += saturate( dotNL ) * directLightColor_Diffuse; #ifdef DOUBLE_SIDED vLightBack += saturate( - dotNL ) * directLightColor_Diffuse; #endif } #pragma unroll_loop_end #endif #if NUM_HEMI_LIGHTS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { vIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal ); #ifdef DOUBLE_SIDED vIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry.normal ); #endif } #pragma unroll_loop_end #endif`,B4t=`uniform bool receiveShadow; uniform vec3 ambientLightColor; uniform vec3 lightProbe[ 9 ]; vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { float x = normal.x, y = normal.y, z = normal.z; vec3 result = shCoefficients[ 0 ] * 0.886227; result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); return result; } vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); return irradiance; } vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { vec3 irradiance = ambientLightColor; return irradiance; } float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { #if defined ( PHYSICALLY_CORRECT_LIGHTS ) float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); if ( cutoffDistance > 0.0 ) { distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); } return distanceFalloff; #else if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) { return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent ); } return 1.0; #endif } float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { return smoothstep( coneCosine, penumbraCosine, angleCosine ); } #if NUM_DIR_LIGHTS > 0 struct DirectionalLight { vec3 direction; vec3 color; }; uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; void getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) { light.color = directionalLight.color; light.direction = directionalLight.direction; light.visible = true; } #endif #if NUM_POINT_LIGHTS > 0 struct PointLight { vec3 position; vec3 color; float distance; float decay; }; uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; void getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) { vec3 lVector = pointLight.position - geometry.position; light.direction = normalize( lVector ); float lightDistance = length( lVector ); light.color = pointLight.color; light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); light.visible = ( light.color != vec3( 0.0 ) ); } #endif #if NUM_SPOT_LIGHTS > 0 struct SpotLight { vec3 position; vec3 direction; vec3 color; float distance; float decay; float coneCos; float penumbraCos; }; uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; void getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) { vec3 lVector = spotLight.position - geometry.position; light.direction = normalize( lVector ); float angleCos = dot( light.direction, spotLight.direction ); float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); if ( spotAttenuation > 0.0 ) { float lightDistance = length( lVector ); light.color = spotLight.color * spotAttenuation; light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); light.visible = ( light.color != vec3( 0.0 ) ); } else { light.color = vec3( 0.0 ); light.visible = false; } } #endif #if NUM_RECT_AREA_LIGHTS > 0 struct RectAreaLight { vec3 color; vec3 position; vec3 halfWidth; vec3 halfHeight; }; uniform sampler2D ltc_1; uniform sampler2D ltc_2; uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; #endif #if NUM_HEMI_LIGHTS > 0 struct HemisphereLight { vec3 direction; vec3 skyColor; vec3 groundColor; }; uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { float dotNL = dot( normal, hemiLight.direction ); float hemiDiffuseWeight = 0.5 * dotNL + 0.5; vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } #endif`,U4t=`#if defined( USE_ENVMAP ) #ifdef ENVMAP_MODE_REFRACTION uniform float refractionRatio; #endif vec3 getIBLIrradiance( const in vec3 normal ) { #if defined( ENVMAP_TYPE_CUBE_UV ) vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); vec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 ); return PI * envMapColor.rgb * envMapIntensity; #else return vec3( 0.0 ); #endif } vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { #if defined( ENVMAP_TYPE_CUBE_UV ) vec3 reflectVec; #ifdef ENVMAP_MODE_REFLECTION reflectVec = reflect( - viewDir, normal ); reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); #else reflectVec = refract( - viewDir, normal, refractionRatio ); #endif reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); vec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness ); return envMapColor.rgb * envMapIntensity; #else return vec3( 0.0 ); #endif } #endif`,H4t=`ToonMaterial material; material.diffuseColor = diffuseColor.rgb;`,V4t=`varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; void RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { vec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color; reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Toon #define RE_IndirectDiffuse RE_IndirectDiffuse_Toon #define Material_LightProbeLOD( material ) (0)`,z4t=`BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; material.specularStrength = specularStrength;`,j4t=`varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; float specularShininess; float specularStrength; }; void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { float dotNL = saturate( dot( geometry.normal, directLight.direction ) ); vec3 irradiance = dotNL * directLight.color; reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength; } void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_BlinnPhong #define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong #define Material_LightProbeLOD( material ) (0)`,G4t=`PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; material.roughness = min( material.roughness, 1.0 ); #ifdef IOR #ifdef SPECULAR float specularIntensityFactor = specularIntensity; vec3 specularColorFactor = specularColor; #ifdef USE_SPECULARINTENSITYMAP specularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a; #endif #ifdef USE_SPECULARCOLORMAP specularColorFactor *= specularColorMapTexelToLinear( texture2D( specularColorMap, vUv ) ).rgb; #endif material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); #else float specularIntensityFactor = 1.0; vec3 specularColorFactor = vec3( 1.0 ); material.specularF90 = 1.0; #endif material.specularColor = mix( min( pow2( ( ior - 1.0 ) / ( ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); #else material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); material.specularF90 = 1.0; #endif #ifdef USE_CLEARCOAT material.clearcoat = clearcoat; material.clearcoatRoughness = clearcoatRoughness; material.clearcoatF0 = vec3( 0.04 ); material.clearcoatF90 = 1.0; #ifdef USE_CLEARCOATMAP material.clearcoat *= texture2D( clearcoatMap, vUv ).x; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y; #endif material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); material.clearcoatRoughness += geometryRoughness; material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); #endif #ifdef USE_SHEEN material.sheenColor = sheenColor; #ifdef USE_SHEENCOLORMAP material.sheenColor *= sheenColorMapTexelToLinear( texture2D( sheenColorMap, vUv ) ).rgb; #endif material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); #ifdef USE_SHEENROUGHNESSMAP material.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a; #endif #endif`,W4t=`struct PhysicalMaterial { vec3 diffuseColor; float roughness; vec3 specularColor; float specularF90; #ifdef USE_CLEARCOAT float clearcoat; float clearcoatRoughness; vec3 clearcoatF0; float clearcoatF90; #endif #ifdef USE_SHEEN vec3 sheenColor; float sheenRoughness; #endif }; vec3 clearcoatSpecular = vec3( 0.0 ); vec3 sheenSpecular = vec3( 0.0 ); float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness) { float dotNV = saturate( dot( normal, viewDir ) ); float r2 = roughness * roughness; float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); return saturate( DG * RECIPROCAL_PI ); } vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { float dotNV = saturate( dot( normal, viewDir ) ); const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); vec4 r = roughness * c0 + c1; float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; return fab; } vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { vec2 fab = DFGApprox( normal, viewDir, roughness ); return specularColor * fab.x + specularF90 * fab.y; } void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { vec2 fab = DFGApprox( normal, viewDir, roughness ); vec3 FssEss = specularColor * fab.x + specularF90 * fab.y; float Ess = fab.x + fab.y; float Ems = 1.0 - Ess; vec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); singleScatter += FssEss; multiScatter += Fms * Ems; } #if NUM_RECT_AREA_LIGHTS > 0 void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { vec3 normal = geometry.normal; vec3 viewDir = geometry.viewDir; vec3 position = geometry.position; vec3 lightPos = rectAreaLight.position; vec3 halfWidth = rectAreaLight.halfWidth; vec3 halfHeight = rectAreaLight.halfHeight; vec3 lightColor = rectAreaLight.color; float roughness = material.roughness; vec3 rectCoords[ 4 ]; rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; vec2 uv = LTC_Uv( normal, viewDir, roughness ); vec4 t1 = texture2D( ltc_1, uv ); vec4 t2 = texture2D( ltc_2, uv ); mat3 mInv = mat3( vec3( t1.x, 0, t1.y ), vec3( 0, 1, 0 ), vec3( t1.z, 0, t1.w ) ); vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); } #endif void RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { float dotNL = saturate( dot( geometry.normal, directLight.direction ) ); vec3 irradiance = dotNL * directLight.color; #ifdef USE_CLEARCOAT float dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) ); vec3 ccIrradiance = dotNLcc * directLight.color; clearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); #endif #ifdef USE_SHEEN sheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness ); #endif reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness ); reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { #ifdef USE_CLEARCOAT clearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); #endif #ifdef USE_SHEEN sheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness ); #endif vec3 singleScattering = vec3( 0.0 ); vec3 multiScattering = vec3( 0.0 ); vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; computeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); vec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) ); reflectedLight.indirectSpecular += radiance * singleScattering; reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; } #define RE_Direct RE_Direct_Physical #define RE_Direct_RectArea RE_Direct_RectArea_Physical #define RE_IndirectDiffuse RE_IndirectDiffuse_Physical #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); }`,q4t=` GeometricContext geometry; geometry.position = - vViewPosition; geometry.normal = normal; geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); #ifdef USE_CLEARCOAT geometry.clearcoatNormal = clearcoatNormal; #endif IncidentLight directLight; #if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) PointLight pointLight; #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 PointLightShadow pointLightShadow; #endif #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { pointLight = pointLights[ i ]; getPointLightInfo( pointLight, geometry, directLight ); #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) pointLightShadow = pointLightShadows[ i ]; directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; #endif RE_Direct( directLight, geometry, material, reflectedLight ); } #pragma unroll_loop_end #endif #if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) SpotLight spotLight; #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 SpotLightShadow spotLightShadow; #endif #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { spotLight = spotLights[ i ]; getSpotLightInfo( spotLight, geometry, directLight ); #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) spotLightShadow = spotLightShadows[ i ]; directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0; #endif RE_Direct( directLight, geometry, material, reflectedLight ); } #pragma unroll_loop_end #endif #if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) DirectionalLight directionalLight; #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 DirectionalLightShadow directionalLightShadow; #endif #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { directionalLight = directionalLights[ i ]; getDirectionalLightInfo( directionalLight, geometry, directLight ); #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) directionalLightShadow = directionalLightShadows[ i ]; directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; #endif RE_Direct( directLight, geometry, material, reflectedLight ); } #pragma unroll_loop_end #endif #if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) RectAreaLight rectAreaLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { rectAreaLight = rectAreaLights[ i ]; RE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight ); } #pragma unroll_loop_end #endif #if defined( RE_IndirectDiffuse ) vec3 iblIrradiance = vec3( 0.0 ); vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); irradiance += getLightProbeIrradiance( lightProbe, geometry.normal ); #if ( NUM_HEMI_LIGHTS > 0 ) #pragma unroll_loop_start for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal ); } #pragma unroll_loop_end #endif #endif #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); #endif`,Y4t=`#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vUv2 ); vec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity; #ifndef PHYSICALLY_CORRECT_LIGHTS lightMapIrradiance *= PI; #endif irradiance += lightMapIrradiance; #endif #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) iblIrradiance += getIBLIrradiance( geometry.normal ); #endif #endif #if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) radiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness ); #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness ); #endif #endif`,J4t=`#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometry, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight ); #endif`,Q4t=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; #endif`,K4t=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; #endif`,X4t=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT varying float vFragDepth; varying float vIsPerspective; #else uniform float logDepthBufFC; #endif #endif`,Z4t=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); #else if ( isPerspectiveMatrix( projectionMatrix ) ) { gl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0; gl_Position.z *= gl_Position.w; } #endif #endif`,e5t=`#ifdef USE_MAP vec4 texelColor = texture2D( map, vUv ); texelColor = mapTexelToLinear( texelColor ); diffuseColor *= texelColor; #endif`,t5t=`#ifdef USE_MAP uniform sampler2D map; #endif`,n5t=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; #endif #ifdef USE_MAP vec4 mapTexel = texture2D( map, uv ); diffuseColor *= mapTexelToLinear( mapTexel ); #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; #endif`,r5t=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) uniform mat3 uvTransform; #endif #ifdef USE_MAP uniform sampler2D map; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; #endif`,i5t=`float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vUv ); metalnessFactor *= texelMetalness.b; #endif`,a5t=`#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; #endif`,o5t=`#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { if ( morphTargetInfluences[ i ] > 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1, 2 ) * morphTargetInfluences[ i ]; } #else objectNormal += morphNormal0 * morphTargetInfluences[ 0 ]; objectNormal += morphNormal1 * morphTargetInfluences[ 1 ]; objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; #endif #endif`,s5t=`#ifdef USE_MORPHTARGETS uniform float morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; uniform sampler2DArray morphTargetsTexture; uniform vec2 morphTargetsTextureSize; vec3 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset, const in int stride ) { float texelIndex = float( vertexIndex * stride + offset ); float y = floor( texelIndex / morphTargetsTextureSize.x ); float x = texelIndex - y * morphTargetsTextureSize.x; vec3 morphUV = vec3( ( x + 0.5 ) / morphTargetsTextureSize.x, y / morphTargetsTextureSize.y, morphTargetIndex ); return texture( morphTargetsTexture, morphUV ).xyz; } #else #ifndef USE_MORPHNORMALS uniform float morphTargetInfluences[ 8 ]; #else uniform float morphTargetInfluences[ 4 ]; #endif #endif #endif`,l5t=`#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #ifndef USE_MORPHNORMALS if ( morphTargetInfluences[ i ] > 0.0 ) transformed += getMorph( gl_VertexID, i, 0, 1 ) * morphTargetInfluences[ i ]; #else if ( morphTargetInfluences[ i ] > 0.0 ) transformed += getMorph( gl_VertexID, i, 0, 2 ) * morphTargetInfluences[ i ]; #endif } #else transformed += morphTarget0 * morphTargetInfluences[ 0 ]; transformed += morphTarget1 * morphTargetInfluences[ 1 ]; transformed += morphTarget2 * morphTargetInfluences[ 2 ]; transformed += morphTarget3 * morphTargetInfluences[ 3 ]; #ifndef USE_MORPHNORMALS transformed += morphTarget4 * morphTargetInfluences[ 4 ]; transformed += morphTarget5 * morphTargetInfluences[ 5 ]; transformed += morphTarget6 * morphTargetInfluences[ 6 ]; transformed += morphTarget7 * morphTargetInfluences[ 7 ]; #endif #endif #endif`,c5t=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) ); vec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) ); vec3 normal = normalize( cross( fdx, fdy ) ); #else vec3 normal = normalize( vNormal ); #ifdef DOUBLE_SIDED normal = normal * faceDirection; #endif #ifdef USE_TANGENT vec3 tangent = normalize( vTangent ); vec3 bitangent = normalize( vBitangent ); #ifdef DOUBLE_SIDED tangent = tangent * faceDirection; bitangent = bitangent * faceDirection; #endif #if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP ) mat3 vTBN = mat3( tangent, bitangent, normal ); #endif #endif #endif vec3 geometryNormal = normal;`,u5t=`#ifdef OBJECTSPACE_NORMALMAP normal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; #endif #ifdef DOUBLE_SIDED normal = normal * faceDirection; #endif normal = normalize( normalMatrix * normal ); #elif defined( TANGENTSPACE_NORMALMAP ) vec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0; mapN.xy *= normalScale; #ifdef USE_TANGENT normal = normalize( vTBN * mapN ); #else normal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection ); #endif #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); #endif`,d5t=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif #endif`,f5t=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif #endif`,p5t=`#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif #endif`,h5t=`#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif #ifdef OBJECTSPACE_NORMALMAP uniform mat3 normalMatrix; #endif #if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) ) vec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) { vec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) ); vec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) ); vec2 st0 = dFdx( vUv.st ); vec2 st1 = dFdy( vUv.st ); vec3 N = surf_norm; vec3 q1perp = cross( q1, N ); vec3 q0perp = cross( N, q0 ); vec3 T = q1perp * st0.x + q0perp * st1.x; vec3 B = q1perp * st0.y + q0perp * st1.y; float det = max( dot( T, T ), dot( B, B ) ); float scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det ); return normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z ); } #endif`,m5t=`#ifdef USE_CLEARCOAT vec3 clearcoatNormal = geometryNormal; #endif`,g5t=`#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; #ifdef USE_TANGENT clearcoatNormal = normalize( vTBN * clearcoatMapN ); #else clearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection ); #endif #endif`,v5t=`#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform sampler2D clearcoatRoughnessMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP uniform sampler2D clearcoatNormalMap; uniform vec2 clearcoatNormalScale; #endif`,y5t=`#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= transmissionAlpha + 0.1; #endif gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,b5t=`vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { return 2.0 * rgb.xyz - 1.0; } const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.; const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. ); const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. ); const float ShiftRight8 = 1. / 256.; vec4 packDepthToRGBA( const in float v ) { vec4 r = vec4( fract( v * PackFactors ), v ); r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale; } float unpackRGBAToDepth( const in vec4 v ) { return dot( v, UnpackFactors ); } vec4 pack2HalfToRGBA( vec2 v ) { vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); } vec2 unpackRGBATo2Half( vec4 v ) { return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); } float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { return ( viewZ + near ) / ( near - far ); } float orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) { return linearClipZ * ( near - far ) - near; } float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); } float perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * invClipZ - far ); }`,_5t=`#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; #endif`,w5t=`vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_INSTANCING mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; gl_Position = projectionMatrix * mvPosition;`,x5t=`#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); #endif`,E5t=`#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } #endif`,S5t=`float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vUv ); roughnessFactor *= texelRoughness.g; #endif`,C5t=`#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; #endif`,T5t=`#ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; struct DirectionalLightShadow { float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; varying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ]; struct SpotLightShadow { float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; #endif #if NUM_POINT_LIGHT_SHADOWS > 0 uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; struct PointLightShadow { float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; float shadowCameraNear; float shadowCameraFar; }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); } vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { return unpackRGBATo2Half( texture2D( shadow, uv ) ); } float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ float occlusion = 1.0; vec2 distribution = texture2DDistribution( shadow, uv ); float hard_shadow = step( compare , distribution.x ); if (hard_shadow != 1.0 ) { float distance = compare - distribution.x ; float variance = max( 0.00000, distribution.y * distribution.y ); float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); } return occlusion; } float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) { float shadow = 1.0; shadowCoord.xyz /= shadowCoord.w; shadowCoord.z += shadowBias; bvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 ); bool inFrustum = all( inFrustumVec ); bvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 ); bool frustumTest = all( frustumTestVec ); if ( frustumTest ) { #if defined( SHADOWMAP_TYPE_PCF ) vec2 texelSize = vec2( 1.0 ) / shadowMapSize; float dx0 = - texelSize.x * shadowRadius; float dy0 = - texelSize.y * shadowRadius; float dx1 = + texelSize.x * shadowRadius; float dy1 = + texelSize.y * shadowRadius; float dx2 = dx0 / 2.0; float dy2 = dy0 / 2.0; float dx3 = dx1 / 2.0; float dy3 = dy1 / 2.0; shadow = ( texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) ) * ( 1.0 / 17.0 ); #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) vec2 texelSize = vec2( 1.0 ) / shadowMapSize; float dx = texelSize.x; float dy = texelSize.y; vec2 uv = shadowCoord.xy; vec2 f = fract( uv * shadowMapSize + 0.5 ); uv -= f * texelSize; shadow = ( texture2DCompare( shadowMap, uv, shadowCoord.z ) + texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), f.x ) + mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), f.x ) + mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), f.y ) + mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), f.y ) + mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), f.x ), mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), f.x ), f.y ) ) * ( 1.0 / 9.0 ); #elif defined( SHADOWMAP_TYPE_VSM ) shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); #else shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); #endif } return shadow; } vec2 cubeToUV( vec3 v, float texelSizeY ) { vec3 absV = abs( v ); float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); absV *= scaleToCube; v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); vec2 planar = v.xy; float almostATexel = 1.5 * texelSizeY; float almostOne = 1.0 - almostATexel; if ( absV.z >= almostOne ) { if ( v.z > 0.0 ) planar.x = 4.0 - v.x; } else if ( absV.x >= almostOne ) { float signX = sign( v.x ); planar.x = v.z * signX + 2.0 * signX; } else if ( absV.y >= almostOne ) { float signY = sign( v.y ); planar.x = v.x + 2.0 * signY + 2.0; planar.y = v.z * signY - 2.0; } return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); } float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); vec3 lightToPosition = shadowCoord.xyz; float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; vec3 bd3D = normalize( lightToPosition ); #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; return ( texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) ) * ( 1.0 / 9.0 ); #else return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); #endif } #endif`,A5t=`#ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; struct DirectionalLightShadow { float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 uniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ]; varying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ]; struct SpotLightShadow { float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; #endif #if NUM_POINT_LIGHT_SHADOWS > 0 uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; struct PointLightShadow { float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; float shadowCameraNear; float shadowCameraFar; }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif #endif`,I5t=`#ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; #endif #if NUM_DIR_LIGHT_SHADOWS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 ); vSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end #endif #if NUM_POINT_LIGHT_SHADOWS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end #endif #endif`,M5t=`float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 DirectionalLightShadow directionalLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { directionalLight = directionalLightShadows[ i ]; shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; } #pragma unroll_loop_end #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 SpotLightShadow spotLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { spotLight = spotLightShadows[ i ]; shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0; } #pragma unroll_loop_end #endif #if NUM_POINT_LIGHT_SHADOWS > 0 PointLightShadow pointLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { pointLight = pointLightShadows[ i ]; shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; } #pragma unroll_loop_end #endif #endif return shadow; }`,D5t=`#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); #endif`,P5t=`#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; #ifdef BONE_TEXTURE uniform highp sampler2D boneTexture; uniform int boneTextureSize; mat4 getBoneMatrix( const in float i ) { float j = i * 4.0; float x = mod( j, float( boneTextureSize ) ); float y = floor( j / float( boneTextureSize ) ); float dx = 1.0 / float( boneTextureSize ); float dy = 1.0 / float( boneTextureSize ); y = dy * ( y + 0.5 ); vec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) ); vec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) ); vec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) ); vec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) ); mat4 bone = mat4( v1, v2, v3, v4 ); return bone; } #else uniform mat4 boneMatrices[ MAX_BONES ]; mat4 getBoneMatrix( const in float i ) { mat4 bone = boneMatrices[ int(i) ]; return bone; } #endif #endif`,R5t=`#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; skinned += boneMatY * skinVertex * skinWeight.y; skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; #endif`,O5t=`#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; skinMatrix += skinWeight.z * boneMatZ; skinMatrix += skinWeight.w * boneMatW; skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif #endif`,N5t=`float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; #endif`,L5t=`#ifdef USE_SPECULARMAP uniform sampler2D specularMap; #endif`,k5t=`#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); #endif`,F5t=`#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; vec3 LinearToneMapping( vec3 color ) { return toneMappingExposure * color; } vec3 ReinhardToneMapping( vec3 color ) { color *= toneMappingExposure; return saturate( color / ( vec3( 1.0 ) + color ) ); } vec3 OptimizedCineonToneMapping( vec3 color ) { color *= toneMappingExposure; color = max( vec3( 0.0 ), color - 0.004 ); return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); } vec3 RRTAndODTFit( vec3 v ) { vec3 a = v * ( v + 0.0245786 ) - 0.000090537; vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; return a / b; } vec3 ACESFilmicToneMapping( vec3 color ) { const mat3 ACESInputMat = mat3( vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), vec3( 0.04823, 0.01566, 0.83777 ) ); const mat3 ACESOutputMat = mat3( vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), vec3( -0.07367, -0.00605, 1.07602 ) ); color *= toneMappingExposure / 0.6; color = ACESInputMat * color; color = RRTAndODTFit( color ); color = ACESOutputMat * color; return saturate( color ); } vec3 CustomToneMapping( vec3 color ) { return color; }`,$5t=`#ifdef USE_TRANSMISSION float transmissionAlpha = 1.0; float transmissionFactor = transmission; float thicknessFactor = thickness; #ifdef USE_TRANSMISSIONMAP transmissionFactor *= texture2D( transmissionMap, vUv ).r; #endif #ifdef USE_THICKNESSMAP thicknessFactor *= texture2D( thicknessMap, vUv ).g; #endif vec3 pos = vWorldPosition; vec3 v = normalize( cameraPosition - pos ); vec3 n = inverseTransformDirection( normal, viewMatrix ); vec4 transmission = getIBLVolumeRefraction( n, v, roughnessFactor, material.diffuseColor, material.specularColor, material.specularF90, pos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor, attenuationColor, attenuationDistance ); totalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor ); transmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor ); #endif`,B5t=`#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; uniform vec3 attenuationColor; #ifdef USE_TRANSMISSIONMAP uniform sampler2D transmissionMap; #endif #ifdef USE_THICKNESSMAP uniform sampler2D thicknessMap; #endif uniform vec2 transmissionSamplerSize; uniform sampler2D transmissionSamplerMap; uniform mat4 modelMatrix; uniform mat4 projectionMatrix; varying vec3 vWorldPosition; vec3 getVolumeTransmissionRay( vec3 n, vec3 v, float thickness, float ior, mat4 modelMatrix ) { vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); vec3 modelScale; modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); return normalize( refractionVector ) * thickness * modelScale; } float applyIorToRoughness( float roughness, float ior ) { return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); } vec4 getTransmissionSample( vec2 fragCoord, float roughness, float ior ) { float framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); #ifdef TEXTURE_LOD_EXT return texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod ); #else return texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod ); #endif } vec3 applyVolumeAttenuation( vec3 radiance, float transmissionDistance, vec3 attenuationColor, float attenuationDistance ) { if ( attenuationDistance == 0.0 ) { return radiance; } else { vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance * radiance; } } vec4 getIBLVolumeRefraction( vec3 n, vec3 v, float roughness, vec3 diffuseColor, vec3 specularColor, float specularF90, vec3 position, mat4 modelMatrix, mat4 viewMatrix, mat4 projMatrix, float ior, float thickness, vec3 attenuationColor, float attenuationDistance ) { vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); vec3 refractedRayExit = position + transmissionRay; vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); vec2 refractionCoords = ndcPos.xy / ndcPos.w; refractionCoords += 1.0; refractionCoords /= 2.0; vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); vec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance ); vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); return vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a ); } #endif`,U5t=`#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) ) varying vec2 vUv; #endif`,H5t=`#ifdef USE_UV #ifdef UVS_VERTEX_ONLY vec2 vUv; #else varying vec2 vUv; #endif uniform mat3 uvTransform; #endif`,V5t=`#ifdef USE_UV vUv = ( uvTransform * vec3( uv, 1 ) ).xy; #endif`,z5t=`#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) varying vec2 vUv2; #endif`,j5t=`#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) attribute vec2 uv2; varying vec2 vUv2; uniform mat3 uv2Transform; #endif`,G5t=`#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) vUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy; #endif`,W5t=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_INSTANCING worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; #endif`;const q5t=`varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; gl_Position = vec4( position.xy, 1.0, 1.0 ); }`,Y5t=`uniform sampler2D t2D; varying vec2 vUv; void main() { vec4 texColor = texture2D( t2D, vUv ); gl_FragColor = mapTexelToLinear( texColor ); #include #include }`,J5t=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; }`,Q5t=`#include uniform float opacity; varying vec3 vWorldDirection; #include void main() { vec3 vReflect = vWorldDirection; #include gl_FragColor = envColor; gl_FragColor.a *= opacity; #include #include }`,K5t=`#include #include #include #include #include #include #include varying vec2 vHighPrecisionZW; void main() { #include #include #ifdef USE_DISPLACEMENTMAP #include #include #include #endif #include #include #include #include #include #include #include vHighPrecisionZW = gl_Position.zw; }`,X5t=`#if DEPTH_PACKING == 3200 uniform float opacity; #endif #include #include #include #include #include #include #include #include varying vec2 vHighPrecisionZW; void main() { #include vec4 diffuseColor = vec4( 1.0 ); #if DEPTH_PACKING == 3200 diffuseColor.a = opacity; #endif #include #include #include #include float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; #if DEPTH_PACKING == 3200 gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); #elif DEPTH_PACKING == 3201 gl_FragColor = packDepthToRGBA( fragCoordZ ); #endif }`,Z5t=`#define DISTANCE varying vec3 vWorldPosition; #include #include #include #include #include #include void main() { #include #include #ifdef USE_DISPLACEMENTMAP #include #include #include #endif #include #include #include #include #include #include #include vWorldPosition = worldPosition.xyz; }`,eHt=`#define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; varying vec3 vWorldPosition; #include #include #include #include #include #include #include void main () { #include vec4 diffuseColor = vec4( 1.0 ); #include #include #include float dist = length( vWorldPosition - referencePosition ); dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); dist = saturate( dist ); gl_FragColor = packDepthToRGBA( dist ); }`,tHt=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include }`,nHt=`uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { vec3 direction = normalize( vWorldDirection ); vec2 sampleUV = equirectUv( direction ); vec4 texColor = texture2D( tEquirect, sampleUV ); gl_FragColor = mapTexelToLinear( texColor ); #include #include }`,rHt=`uniform float scale; attribute float lineDistance; varying float vLineDistance; #include #include #include #include #include #include void main() { vLineDistance = scale * lineDistance; #include #include #include #include #include #include #include }`,iHt=`uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; varying float vLineDistance; #include #include #include #include #include void main() { #include if ( mod( vLineDistance, totalSize ) > dashSize ) { discard; } vec3 outgoingLight = vec3( 0.0 ); vec4 diffuseColor = vec4( diffuse, opacity ); #include #include outgoingLight = diffuseColor.rgb; #include #include #include #include #include }`,aHt=`#include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) #include #include #include #include #include #endif #include #include #include #include #include #include #include #include #include }`,oHt=`uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED varying vec3 vNormal; #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include vec4 diffuseColor = vec4( diffuse, opacity ); #include #include #include #include #include #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); #ifdef USE_LIGHTMAP vec4 lightMapTexel= texture2D( lightMap, vUv2 ); reflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity; #else reflectedLight.indirectDiffuse += vec3( 1.0 ); #endif #include reflectedLight.indirectDiffuse *= diffuseColor.rgb; vec3 outgoingLight = reflectedLight.indirectDiffuse; #include #include #include #include #include #include #include }`,sHt=`#define LAMBERT varying vec3 vLightFront; varying vec3 vIndirectFront; #ifdef DOUBLE_SIDED varying vec3 vLightBack; varying vec3 vIndirectBack; #endif #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include }`,lHt=`uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; varying vec3 vLightFront; varying vec3 vIndirectFront; #ifdef DOUBLE_SIDED varying vec3 vLightBack; varying vec3 vIndirectBack; #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include vec4 diffuseColor = vec4( diffuse, opacity ); ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #ifdef DOUBLE_SIDED reflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack; #else reflectedLight.indirectDiffuse += vIndirectFront; #endif #include reflectedLight.indirectDiffuse *= BRDF_Lambert( diffuseColor.rgb ); #ifdef DOUBLE_SIDED reflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack; #else reflectedLight.directDiffuse = vLightFront; #endif reflectedLight.directDiffuse *= BRDF_Lambert( diffuseColor.rgb ) * getShadowMask(); #include vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; #include #include #include #include #include #include #include }`,cHt=`#define MATCAP varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; }`,uHt=`#define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include vec4 diffuseColor = vec4( diffuse, opacity ); #include #include #include #include #include #include #include vec3 viewDir = normalize( vViewPosition ); vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); vec3 y = cross( viewDir, x ); vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; #ifdef USE_MATCAP vec4 matcapColor = texture2D( matcap, uv ); matcapColor = matcapTexelToLinear( matcapColor ); #else vec4 matcapColor = vec4( 1.0 ); #endif vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; #include #include #include #include #include #include }`,dHt=`#define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP ) varying vec3 vViewPosition; #endif #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP ) vViewPosition = - mvPosition.xyz; #endif }`,fHt=`#define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP ) varying vec3 vViewPosition; #endif #include #include #include #include #include #include #include void main() { #include #include #include #include gl_FragColor = vec4( packNormalToRGB( normal ), opacity ); }`,pHt=`#define PHONG varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include #include }`,hHt=`#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; uniform float shininess; uniform float opacity; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include vec4 diffuseColor = vec4( diffuse, opacity ); ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; #include #include #include #include #include #include #include }`,mHt=`#define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION varying vec3 vWorldPosition; #endif #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include #ifdef USE_TRANSMISSION vWorldPosition = worldPosition.xyz; #endif }`,gHt=`#define STANDARD #ifdef PHYSICAL #define IOR #define SPECULAR #endif uniform vec3 diffuse; uniform vec3 emissive; uniform float roughness; uniform float metalness; uniform float opacity; #ifdef IOR uniform float ior; #endif #ifdef SPECULAR uniform float specularIntensity; uniform vec3 specularColor; #ifdef USE_SPECULARINTENSITYMAP uniform sampler2D specularIntensityMap; #endif #ifdef USE_SPECULARCOLORMAP uniform sampler2D specularColorMap; #endif #endif #ifdef USE_CLEARCOAT uniform float clearcoat; uniform float clearcoatRoughness; #endif #ifdef USE_SHEEN uniform vec3 sheenColor; uniform float sheenRoughness; #ifdef USE_SHEENCOLORMAP uniform sampler2D sheenColorMap; #endif #ifdef USE_SHEENROUGHNESSMAP uniform sampler2D sheenRoughnessMap; #endif #endif varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include vec4 diffuseColor = vec4( diffuse, opacity ); ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; #include vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; #ifdef USE_SHEEN float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular; #endif #ifdef USE_CLEARCOAT float dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) ); vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat; #endif #include #include #include #include #include #include }`,vHt=`#define TOON varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include }`,yHt=`#define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include vec4 diffuseColor = vec4( diffuse, opacity ); ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; #include #include #include #include #include #include }`,bHt=`uniform float size; uniform float scale; #include #include #include #include #include #include void main() { #include #include #include #include gl_PointSize = size; #ifdef USE_SIZEATTENUATION bool isPerspective = isPerspectiveMatrix( projectionMatrix ); if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); #endif #include #include #include #include }`,_Ht=`uniform vec3 diffuse; uniform float opacity; #include #include #include #include #include #include #include void main() { #include vec3 outgoingLight = vec3( 0.0 ); vec4 diffuseColor = vec4( diffuse, opacity ); #include #include #include #include outgoingLight = diffuseColor.rgb; #include #include #include #include #include }`,wHt=`#include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include }`,xHt=`uniform vec3 color; uniform float opacity; #include #include #include #include #include #include #include void main() { gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); #include #include #include }`,EHt=`uniform float rotation; uniform vec2 center; #include #include #include #include #include void main() { #include vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); vec2 scale; scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); #ifndef USE_SIZEATTENUATION bool isPerspective = isPerspectiveMatrix( projectionMatrix ); if ( isPerspective ) scale *= - mvPosition.z; #endif vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; vec2 rotatedPosition; rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; mvPosition.xy += rotatedPosition; gl_Position = projectionMatrix * mvPosition; #include #include #include }`,SHt=`uniform vec3 diffuse; uniform float opacity; #include #include #include #include #include #include #include #include void main() { #include vec3 outgoingLight = vec3( 0.0 ); vec4 diffuseColor = vec4( diffuse, opacity ); #include #include #include #include outgoingLight = diffuseColor.rgb; #include #include #include #include }`,xn={alphamap_fragment:ZUt,alphamap_pars_fragment:e4t,alphatest_fragment:t4t,alphatest_pars_fragment:n4t,aomap_fragment:r4t,aomap_pars_fragment:i4t,begin_vertex:a4t,beginnormal_vertex:o4t,bsdfs:s4t,bumpmap_pars_fragment:l4t,clipping_planes_fragment:c4t,clipping_planes_pars_fragment:u4t,clipping_planes_pars_vertex:d4t,clipping_planes_vertex:f4t,color_fragment:p4t,color_pars_fragment:h4t,color_pars_vertex:m4t,color_vertex:g4t,common:v4t,cube_uv_reflection_fragment:y4t,defaultnormal_vertex:b4t,displacementmap_pars_vertex:_4t,displacementmap_vertex:w4t,emissivemap_fragment:x4t,emissivemap_pars_fragment:E4t,encodings_fragment:S4t,encodings_pars_fragment:C4t,envmap_fragment:T4t,envmap_common_pars_fragment:A4t,envmap_pars_fragment:I4t,envmap_pars_vertex:M4t,envmap_physical_pars_fragment:U4t,envmap_vertex:D4t,fog_vertex:P4t,fog_pars_vertex:R4t,fog_fragment:O4t,fog_pars_fragment:N4t,gradientmap_pars_fragment:L4t,lightmap_fragment:k4t,lightmap_pars_fragment:F4t,lights_lambert_vertex:$4t,lights_pars_begin:B4t,lights_toon_fragment:H4t,lights_toon_pars_fragment:V4t,lights_phong_fragment:z4t,lights_phong_pars_fragment:j4t,lights_physical_fragment:G4t,lights_physical_pars_fragment:W4t,lights_fragment_begin:q4t,lights_fragment_maps:Y4t,lights_fragment_end:J4t,logdepthbuf_fragment:Q4t,logdepthbuf_pars_fragment:K4t,logdepthbuf_pars_vertex:X4t,logdepthbuf_vertex:Z4t,map_fragment:e5t,map_pars_fragment:t5t,map_particle_fragment:n5t,map_particle_pars_fragment:r5t,metalnessmap_fragment:i5t,metalnessmap_pars_fragment:a5t,morphnormal_vertex:o5t,morphtarget_pars_vertex:s5t,morphtarget_vertex:l5t,normal_fragment_begin:c5t,normal_fragment_maps:u5t,normal_pars_fragment:d5t,normal_pars_vertex:f5t,normal_vertex:p5t,normalmap_pars_fragment:h5t,clearcoat_normal_fragment_begin:m5t,clearcoat_normal_fragment_maps:g5t,clearcoat_pars_fragment:v5t,output_fragment:y5t,packing:b5t,premultiplied_alpha_fragment:_5t,project_vertex:w5t,dithering_fragment:x5t,dithering_pars_fragment:E5t,roughnessmap_fragment:S5t,roughnessmap_pars_fragment:C5t,shadowmap_pars_fragment:T5t,shadowmap_pars_vertex:A5t,shadowmap_vertex:I5t,shadowmask_pars_fragment:M5t,skinbase_vertex:D5t,skinning_pars_vertex:P5t,skinning_vertex:R5t,skinnormal_vertex:O5t,specularmap_fragment:N5t,specularmap_pars_fragment:L5t,tonemapping_fragment:k5t,tonemapping_pars_fragment:F5t,transmission_fragment:$5t,transmission_pars_fragment:B5t,uv_pars_fragment:U5t,uv_pars_vertex:H5t,uv_vertex:V5t,uv2_pars_fragment:z5t,uv2_pars_vertex:j5t,uv2_vertex:G5t,worldpos_vertex:W5t,background_vert:q5t,background_frag:Y5t,cube_vert:J5t,cube_frag:Q5t,depth_vert:K5t,depth_frag:X5t,distanceRGBA_vert:Z5t,distanceRGBA_frag:eHt,equirect_vert:tHt,equirect_frag:nHt,linedashed_vert:rHt,linedashed_frag:iHt,meshbasic_vert:aHt,meshbasic_frag:oHt,meshlambert_vert:sHt,meshlambert_frag:lHt,meshmatcap_vert:cHt,meshmatcap_frag:uHt,meshnormal_vert:dHt,meshnormal_frag:fHt,meshphong_vert:pHt,meshphong_frag:hHt,meshphysical_vert:mHt,meshphysical_frag:gHt,meshtoon_vert:vHt,meshtoon_frag:yHt,points_vert:bHt,points_frag:_Ht,shadow_vert:wHt,shadow_frag:xHt,sprite_vert:EHt,sprite_frag:SHt},Tt={common:{diffuse:{value:new Bt(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new Fa},uv2Transform:{value:new Fa},alphaMap:{value:null},alphaTest:{value:0}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new dt(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Bt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Bt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new Fa}},sprite:{diffuse:{value:new Bt(16777215)},opacity:{value:1},center:{value:new dt(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new Fa}}},kc={basic:{uniforms:Ya([Tt.common,Tt.specularmap,Tt.envmap,Tt.aomap,Tt.lightmap,Tt.fog]),vertexShader:xn.meshbasic_vert,fragmentShader:xn.meshbasic_frag},lambert:{uniforms:Ya([Tt.common,Tt.specularmap,Tt.envmap,Tt.aomap,Tt.lightmap,Tt.emissivemap,Tt.fog,Tt.lights,{emissive:{value:new Bt(0)}}]),vertexShader:xn.meshlambert_vert,fragmentShader:xn.meshlambert_frag},phong:{uniforms:Ya([Tt.common,Tt.specularmap,Tt.envmap,Tt.aomap,Tt.lightmap,Tt.emissivemap,Tt.bumpmap,Tt.normalmap,Tt.displacementmap,Tt.fog,Tt.lights,{emissive:{value:new Bt(0)},specular:{value:new Bt(1118481)},shininess:{value:30}}]),vertexShader:xn.meshphong_vert,fragmentShader:xn.meshphong_frag},standard:{uniforms:Ya([Tt.common,Tt.envmap,Tt.aomap,Tt.lightmap,Tt.emissivemap,Tt.bumpmap,Tt.normalmap,Tt.displacementmap,Tt.roughnessmap,Tt.metalnessmap,Tt.fog,Tt.lights,{emissive:{value:new Bt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:xn.meshphysical_vert,fragmentShader:xn.meshphysical_frag},toon:{uniforms:Ya([Tt.common,Tt.aomap,Tt.lightmap,Tt.emissivemap,Tt.bumpmap,Tt.normalmap,Tt.displacementmap,Tt.gradientmap,Tt.fog,Tt.lights,{emissive:{value:new Bt(0)}}]),vertexShader:xn.meshtoon_vert,fragmentShader:xn.meshtoon_frag},matcap:{uniforms:Ya([Tt.common,Tt.bumpmap,Tt.normalmap,Tt.displacementmap,Tt.fog,{matcap:{value:null}}]),vertexShader:xn.meshmatcap_vert,fragmentShader:xn.meshmatcap_frag},points:{uniforms:Ya([Tt.points,Tt.fog]),vertexShader:xn.points_vert,fragmentShader:xn.points_frag},dashed:{uniforms:Ya([Tt.common,Tt.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:xn.linedashed_vert,fragmentShader:xn.linedashed_frag},depth:{uniforms:Ya([Tt.common,Tt.displacementmap]),vertexShader:xn.depth_vert,fragmentShader:xn.depth_frag},normal:{uniforms:Ya([Tt.common,Tt.bumpmap,Tt.normalmap,Tt.displacementmap,{opacity:{value:1}}]),vertexShader:xn.meshnormal_vert,fragmentShader:xn.meshnormal_frag},sprite:{uniforms:Ya([Tt.sprite,Tt.fog]),vertexShader:xn.sprite_vert,fragmentShader:xn.sprite_frag},background:{uniforms:{uvTransform:{value:new Fa},t2D:{value:null}},vertexShader:xn.background_vert,fragmentShader:xn.background_frag},cube:{uniforms:Ya([Tt.envmap,{opacity:{value:1}}]),vertexShader:xn.cube_vert,fragmentShader:xn.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:xn.equirect_vert,fragmentShader:xn.equirect_frag},distanceRGBA:{uniforms:Ya([Tt.common,Tt.displacementmap,{referencePosition:{value:new Ce},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:xn.distanceRGBA_vert,fragmentShader:xn.distanceRGBA_frag},shadow:{uniforms:Ya([Tt.lights,Tt.fog,{color:{value:new Bt(0)},opacity:{value:1}}]),vertexShader:xn.shadow_vert,fragmentShader:xn.shadow_frag}};kc.physical={uniforms:Ya([kc.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new dt(1,1)},clearcoatNormalMap:{value:null},sheen:{value:0},sheenColor:{value:new Bt(0)},sheenColorMap:{value:null},sheenRoughness:{value:0},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new dt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new Bt(0)},specularIntensity:{value:0},specularIntensityMap:{value:null},specularColor:{value:new Bt(1,1,1)},specularColorMap:{value:null}}]),vertexShader:xn.meshphysical_vert,fragmentShader:xn.meshphysical_frag};function CHt(t,e,n,r,i){const a=new Bt(0);let o=0,s,l,c=null,u=0,d=null;function f(h,v){let b=!1,g=v.isScene===!0?v.background:null;g&&g.isTexture&&(g=e.get(g));const y=t.xr,w=y.getSession&&y.getSession();w&&w.environmentBlendMode==="additive"&&(g=null),g===null?p(a,o):g&&g.isColor&&(p(g,1),b=!0),(t.autoClear||b)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),g&&(g.isCubeTexture||g.mapping===KD)?(l===void 0&&(l=new Qa(new fx(1,1,1),new Yh({name:"BackgroundCubeMaterial",uniforms:f0(kc.cube.uniforms),vertexShader:kc.cube.vertexShader,fragmentShader:kc.cube.fragmentShader,side:Di,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(x,S,T){this.matrixWorld.copyPosition(T.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=g,l.material.uniforms.flipEnvMap.value=g.isCubeTexture&&g.isRenderTargetTexture===!1?-1:1,(c!==g||u!==g.version||d!==t.toneMapping)&&(l.material.needsUpdate=!0,c=g,u=g.version,d=t.toneMapping),h.unshift(l,l.geometry,l.material,0,0,null)):g&&g.isTexture&&(s===void 0&&(s=new Qa(new tP(2,2),new Yh({name:"BackgroundMaterial",uniforms:f0(kc.background.uniforms),vertexShader:kc.background.vertexShader,fragmentShader:kc.background.fragmentShader,side:F1,depthTest:!1,depthWrite:!1,fog:!1})),s.geometry.deleteAttribute("normal"),Object.defineProperty(s.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(s)),s.material.uniforms.t2D.value=g,g.matrixAutoUpdate===!0&&g.updateMatrix(),s.material.uniforms.uvTransform.value.copy(g.matrix),(c!==g||u!==g.version||d!==t.toneMapping)&&(s.material.needsUpdate=!0,c=g,u=g.version,d=t.toneMapping),h.unshift(s,s.geometry,s.material,0,0,null))}function p(h,v){n.buffers.color.setClear(h.r,h.g,h.b,v,i)}return{getClearColor:function(){return a},setClearColor:function(h,v=1){a.set(h),o=v,p(a,o)},getClearAlpha:function(){return o},setClearAlpha:function(h){o=h,p(a,o)},render:f}}function THt(t,e,n,r){const i=t.getParameter(34921),a=r.isWebGL2?null:e.get("OES_vertex_array_object"),o=r.isWebGL2||a!==null,s={},l=v(null);let c=l;function u(D,L,k,B,H){let $=!1;if(o){const W=h(B,k,L);c!==W&&(c=W,f(c.object)),$=b(B,H),$&&g(B,H)}else{const W=L.wireframe===!0;(c.geometry!==B.id||c.program!==k.id||c.wireframe!==W)&&(c.geometry=B.id,c.program=k.id,c.wireframe=W,$=!0)}D.isInstancedMesh===!0&&($=!0),H!==null&&n.update(H,34963),$&&(I(D,L,k,B),H!==null&&t.bindBuffer(34963,n.get(H).buffer))}function d(){return r.isWebGL2?t.createVertexArray():a.createVertexArrayOES()}function f(D){return r.isWebGL2?t.bindVertexArray(D):a.bindVertexArrayOES(D)}function p(D){return r.isWebGL2?t.deleteVertexArray(D):a.deleteVertexArrayOES(D)}function h(D,L,k){const B=k.wireframe===!0;let H=s[D.id];H===void 0&&(H={},s[D.id]=H);let $=H[L.id];$===void 0&&($={},H[L.id]=$);let W=$[B];return W===void 0&&(W=v(d()),$[B]=W),W}function v(D){const L=[],k=[],B=[];for(let H=0;H=0){let U=H[K];if(U===void 0&&(K==="instanceMatrix"&&D.instanceMatrix&&(U=D.instanceMatrix),K==="instanceColor"&&D.instanceColor&&(U=D.instanceColor)),U!==void 0){const q=U.normalized,z=U.itemSize,ne=n.get(U);if(ne===void 0)continue;const G=ne.buffer,te=ne.type,Y=ne.bytesPerElement;if(U.isInterleavedBufferAttribute){const fe=U.data,pe=fe.stride,de=U.offset;if(fe&&fe.isInstancedInterleavedBuffer){for(let se=0;se0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";I="mediump"}return I==="mediump"&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext||typeof WebGL2ComputeRenderingContext<"u"&&t instanceof WebGL2ComputeRenderingContext;let s=n.precision!==void 0?n.precision:"highp";const l=a(s);l!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",l,"instead."),s=l);const c=o||e.has("WEBGL_draw_buffers"),u=n.logarithmicDepthBuffer===!0,d=t.getParameter(34930),f=t.getParameter(35660),p=t.getParameter(3379),h=t.getParameter(34076),v=t.getParameter(34921),b=t.getParameter(36347),g=t.getParameter(36348),y=t.getParameter(36349),w=f>0,x=o||e.has("OES_texture_float"),S=w&&x,T=o?t.getParameter(36183):0;return{isWebGL2:o,drawBuffers:c,getMaxAnisotropy:i,getMaxPrecision:a,precision:s,logarithmicDepthBuffer:u,maxTextures:d,maxVertexTextures:f,maxTextureSize:p,maxCubemapSize:h,maxAttributes:v,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:y,vertexTextures:w,floatFragmentTextures:x,floatVertexTextures:S,maxSamples:T}}function MHt(t){const e=this;let n=null,r=0,i=!1,a=!1;const o=new Ju,s=new Fa,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(d,f,p){const h=d.length!==0||f||r!==0||i;return i=f,n=u(d,p,0),r=d.length,h},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1,c()},this.setState=function(d,f,p){const h=d.clippingPlanes,v=d.clipIntersection,b=d.clipShadows,g=t.get(d);if(!i||h===null||h.length===0||a&&!b)a?u(null):c();else{const y=a?0:r,w=y*4;let x=g.clippingState||null;l.value=x,x=u(h,f,w,p);for(let S=0;S!==w;++S)x[S]=n[S];g.clippingState=x,this.numIntersection=v?this.numPlanes:0,this.numPlanes+=y}};function c(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(d,f,p,h){const v=d!==null?d.length:0;let b=null;if(v!==0){if(b=l.value,h!==!0||b===null){const g=p+v*4,y=f.matrixWorldInverse;s.getNormalMatrix(y),(b===null||b.length0){const c=t.getRenderTarget(),u=new Xde(l.height/2);return u.fromEquirectangularTexture(t,o),e.set(o,u),t.setRenderTarget(c),o.addEventListener("dispose",i),n(u.texture,o.mapping)}else return null}}return o}function i(o){const s=o.target;s.removeEventListener("dispose",i);const l=e.get(s);l!==void 0&&(e.delete(s),l.dispose())}function a(){e=new WeakMap}return{get:r,dispose:a}}class wh extends j5{constructor(e=-1,n=1,r=1,i=-1,a=.1,o=2e3){super(),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=r,this.bottom=i,this.near=a,this.far=o,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,r,i,a,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let a=r-e,o=r+e,s=i+n,l=i-n;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=c*this.view.offsetX,o=a+c*this.view.width,s-=u*this.view.offsetY,l=s-u*this.view.height}this.projectionMatrix.makeOrthographic(a,o,s,l,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}wh.prototype.isOrthographicCamera=!0;class nP extends Yh{constructor(e){super(e),this.type="RawShaderMaterial"}}nP.prototype.isRawShaderMaterial=!0;const wv=4,jf=8,Pc=Math.pow(2,jf),efe=[.125,.215,.35,.446,.526,.582],tfe=jf-wv+1+efe.length,lg=20,qA={[vc]:0,[J0]:1},_2=new wh,{_lodPlanes:Eb,_sizeLods:TJ,_sigmas:$S}=RHt(),AJ=new Bt;let w2=null;const Xp=(1+Math.sqrt(5))/2,cg=1/Xp,IJ=[new Ce(1,1,1),new Ce(-1,1,1),new Ce(1,1,-1),new Ce(-1,1,-1),new Ce(0,Xp,cg),new Ce(0,Xp,-cg),new Ce(cg,0,Xp),new Ce(-cg,0,Xp),new Ce(Xp,cg,0),new Ce(-Xp,cg,0)];class PHt{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._blurMaterial=OHt(lg),this._equirectShader=null,this._cubemapShader=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,r=.1,i=100){w2=this._renderer.getRenderTarget();const a=this._allocateTargets();return this._sceneToCubeUV(e,r,i,a),n>0&&this._blur(a,0,0,n),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e){return this._fromTexture(e)}fromCubemap(e){return this._fromTexture(e)}compileCubemapShader(){this._cubemapShader===null&&(this._cubemapShader=PJ(),this._compileMaterial(this._cubemapShader))}compileEquirectangularShader(){this._equirectShader===null&&(this._equirectShader=DJ(),this._compileMaterial(this._equirectShader))}dispose(){this._blurMaterial.dispose(),this._cubemapShader!==null&&this._cubemapShader.dispose(),this._equirectShader!==null&&this._equirectShader.dispose();for(let e=0;e2?Pc:0,Pc,Pc),u.setRenderTarget(i),v&&u.render(h,s),u.render(e,s)}h.geometry.dispose(),h.material.dispose(),u.toneMapping=f,u.autoClear=d,e.background=b}_setEncoding(e,n){this._renderer.capabilities.isWebGL2===!0&&n.format===zi&&n.type===sd&&n.encoding===J0?e.value=qA[vc]:e.value=qA[n.encoding]}_textureToCubeUV(e,n){const r=this._renderer,i=e.mapping===ux||e.mapping===dx;i?this._cubemapShader==null&&(this._cubemapShader=PJ()):this._equirectShader==null&&(this._equirectShader=DJ());const a=i?this._cubemapShader:this._equirectShader,o=new Qa(Eb[0],a),s=a.uniforms;s.envMap.value=e,i||s.texelSize.value.set(1/e.image.width,1/e.image.height),this._setEncoding(s.inputEncoding,e),BS(n,0,0,3*Pc,2*Pc),r.setRenderTarget(n),r.render(o,_2)}_applyPMREM(e){const n=this._renderer,r=n.autoClear;n.autoClear=!1;for(let i=1;ilg&&console.warn(`sigmaRadians, ${a}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${lg}`);const g=[];let y=0;for(let T=0;Tjf-wv?i-jf+wv:0);BS(n,x,S,3*w,2*w),l.setRenderTarget(n),l.render(d,_2)}}function RHt(){const t=[],e=[],n=[];let r=jf;for(let i=0;ijf-wv?o=efe[i-jf+wv-1]:i==0&&(o=0),n.push(o);const s=1/(a-1),l=-s/2,c=1+s/2,u=[l,l,c,l,c,c,l,l,c,c,l,c],d=6,f=6,p=3,h=2,v=1,b=new Float32Array(p*f*d),g=new Float32Array(h*f*d),y=new Float32Array(v*f*d);for(let x=0;x2?0:-1,I=[S,T,0,S+2/3,T,0,S+2/3,T+1,0,S,T,0,S+2/3,T+1,0,S,T+1,0];b.set(I,p*f*x),g.set(u,h*f*x);const P=[x,x,x,x,x,x];y.set(P,v*f*x)}const w=new kr;w.setAttribute("position",new ta(b,p)),w.setAttribute("uv",new ta(g,h)),w.setAttribute("faceIndex",new ta(y,v)),t.push(w),r>wv&&r--}return{_lodPlanes:t,_sizeLods:e,_sigmas:n}}function MJ(t){const e=new Es(3*Pc,3*Pc,t);return e.texture.mapping=KD,e.texture.name="PMREM.cubeUv",e.scissorTest=!0,e}function BS(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function OHt(t){const e=new Float32Array(t),n=new Ce(0,1,0);return new nP({name:"SphericalGaussianBlur",defines:{n:t},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:e},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:n}},vertexShader:W5(),fragmentShader:` precision mediump float; precision mediump int; varying vec3 vOutputDirection; uniform sampler2D envMap; uniform int samples; uniform float weights[ n ]; uniform bool latitudinal; uniform float dTheta; uniform float mipInt; uniform vec3 poleAxis; ${q5()} #define ENVMAP_TYPE_CUBE_UV #include vec3 getSample( float theta, vec3 axis ) { float cosTheta = cos( theta ); // Rodrigues' axis-angle rotation vec3 sampleDirection = vOutputDirection * cosTheta + cross( axis, vOutputDirection ) * sin( theta ) + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); return bilinearCubeUV( envMap, sampleDirection, mipInt ); } void main() { vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); if ( all( equal( axis, vec3( 0.0 ) ) ) ) { axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); } axis = normalize( axis ); gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); for ( int i = 1; i < n; i++ ) { if ( i >= samples ) { break; } float theta = dTheta * float( i ); gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); } } `,blending:Vf,depthTest:!1,depthWrite:!1})}function DJ(){const t=new dt(1,1);return new nP({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:t},inputEncoding:{value:qA[vc]}},vertexShader:W5(),fragmentShader:` precision mediump float; precision mediump int; varying vec3 vOutputDirection; uniform sampler2D envMap; uniform vec2 texelSize; ${q5()} #include void main() { gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); vec3 outputDirection = normalize( vOutputDirection ); vec2 uv = equirectUv( outputDirection ); vec2 f = fract( uv / texelSize - 0.5 ); uv -= f * texelSize; vec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb; uv.x += texelSize.x; vec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb; uv.y += texelSize.y; vec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb; uv.x -= texelSize.x; vec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb; vec3 tm = mix( tl, tr, f.x ); vec3 bm = mix( bl, br, f.x ); gl_FragColor.rgb = mix( tm, bm, f.y ); } `,blending:Vf,depthTest:!1,depthWrite:!1})}function PJ(){return new nP({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},inputEncoding:{value:qA[vc]}},vertexShader:W5(),fragmentShader:` precision mediump float; precision mediump int; varying vec3 vOutputDirection; uniform samplerCube envMap; ${q5()} void main() { gl_FragColor = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) ); } `,blending:Vf,depthTest:!1,depthWrite:!1})}function W5(){return` precision mediump float; precision mediump int; attribute vec3 position; attribute vec2 uv; attribute float faceIndex; varying vec3 vOutputDirection; // RH coordinate system; PMREM face-indexing convention vec3 getDirection( vec2 uv, float face ) { uv = 2.0 * uv - 1.0; vec3 direction = vec3( uv, 1.0 ); if ( face == 0.0 ) { direction = direction.zyx; // ( 1, v, u ) pos x } else if ( face == 1.0 ) { direction = direction.xzy; direction.xz *= -1.0; // ( -u, 1, -v ) pos y } else if ( face == 2.0 ) { direction.x *= -1.0; // ( -u, v, 1 ) pos z } else if ( face == 3.0 ) { direction = direction.zyx; direction.xz *= -1.0; // ( -1, v, -u ) neg x } else if ( face == 4.0 ) { direction = direction.xzy; direction.xy *= -1.0; // ( -u, -1, v ) neg y } else if ( face == 5.0 ) { direction.z *= -1.0; // ( u, v, -1 ) neg z } return direction; } void main() { vOutputDirection = getDirection( uv, faceIndex ); gl_Position = vec4( position, 1.0 ); } `}function q5(){return` uniform int inputEncoding; #include vec4 inputTexelToLinear( vec4 value ) { if ( inputEncoding == 0 ) { return value; } else { return sRGBToLinear( value ); } } vec4 envMapTexelToLinear( vec4 color ) { return inputTexelToLinear( color ); } `}function NHt(t){let e=new WeakMap,n=null;function r(s){if(s&&s.isTexture&&s.isRenderTargetTexture===!1){const l=s.mapping,c=l===R3||l===O3,u=l===ux||l===dx;if(c||u){if(e.has(s))return e.get(s).texture;{const d=s.image;if(c&&d&&d.height>0||u&&d&&i(d)){const f=t.getRenderTarget();n===null&&(n=new PHt(t));const p=c?n.fromEquirectangular(s):n.fromCubemap(s);return e.set(s,p),t.setRenderTarget(f),s.addEventListener("dispose",a),p.texture}else return null}}}return s}function i(s){let l=0;const c=6;for(let u=0;u65535?Kde:Qde)(f,1);b.version=v;const g=a.get(d);g&&e.remove(g),a.set(d,b)}function u(d){const f=a.get(d);if(f){const p=d.index;p!==null&&f.versione.maxTextureSize&&(P=Math.ceil(I/e.maxTextureSize),I=e.maxTextureSize);const M=new Float32Array(I*P*4*h),N=new Y5(M,I,P,h);N.format=zi,N.type=mf,N.needsUpdate=!0;const R=T*4;for(let O=0;O0)return t;const i=e*n;let a=OJ[i];if(a===void 0&&(a=new Float32Array(i),OJ[i]=a),e!==0){r.toArray(a,0);for(let o=1,s=0;o!==e;++o)s+=n,t[o].toArray(a,s)}return a}function _o(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n/gm;function F3(t){return t.replace($Vt,BVt)}function BVt(t,e){const n=xn[e];if(n===void 0)throw new Error("Can not resolve #include <"+e+">");return F3(n)}const UVt=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,HVt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function zJ(t){return t.replace(HVt,ufe).replace(UVt,VVt)}function VVt(t,e,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),ufe(t,e,n,r)}function ufe(t,e,n,r){let i="";for(let a=parseInt(e);a0&&(v+=` `),b=[f,p].filter(zb).join(` `),b.length>0&&(b+=` `)):(v=[jJ(n),"#define SHADER_NAME "+n.shaderName,p,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` `].filter(zb).join(` `),b=[f,jJ(n),"#define SHADER_NAME "+n.shaderName,p,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==zf?"#define TONE_MAPPING":"",n.toneMapping!==zf?xn.tonemapping_pars_fragment:"",n.toneMapping!==zf?NVt("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.format===ru?"#define OPAQUE":"",xn.encodings_pars_fragment,n.map?Up("mapTexelToLinear",n.mapEncoding):"",n.matcap?Up("matcapTexelToLinear",n.matcapEncoding):"",n.envMap?Up("envMapTexelToLinear",n.envMapEncoding):"",n.emissiveMap?Up("emissiveMapTexelToLinear",n.emissiveMapEncoding):"",n.specularColorMap?Up("specularColorMapTexelToLinear",n.specularColorMapEncoding):"",n.sheenColorMap?Up("sheenColorMapTexelToLinear",n.sheenColorMapEncoding):"",n.lightMap?Up("lightMapTexelToLinear",n.lightMapEncoding):"",OVt("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",` `].filter(zb).join(` `)),o=F3(o),o=HJ(o,n),o=VJ(o,n),s=F3(s),s=HJ(s,n),s=VJ(s,n),o=zJ(o),s=zJ(s),n.isWebGL2&&n.isRawShaderMaterial!==!0&&(g=`#version 300 es `,v=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(` `)+` `+v,b=["#define varying in",n.glslVersion===hJ?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===hJ?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` `)+` `+b);const y=g+v+o,w=g+b+s,x=BJ(i,35633,y),S=BJ(i,35632,w);if(i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName!==void 0?i.bindAttribLocation(h,0,n.index0AttributeName):n.morphTargets===!0&&i.bindAttribLocation(h,0,"position"),i.linkProgram(h),t.debug.checkShaderErrors){const P=i.getProgramInfoLog(h).trim(),M=i.getShaderInfoLog(x).trim(),N=i.getShaderInfoLog(S).trim();let R=!0,O=!0;if(i.getProgramParameter(h,35714)===!1){R=!1;const D=UJ(i,x,"vertex"),L=UJ(i,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(h,35715)+` Program Info Log: `+P+` `+D+` `+L)}else P!==""?console.warn("THREE.WebGLProgram: Program Info Log:",P):(M===""||N==="")&&(O=!1);O&&(this.diagnostics={runnable:R,programLog:P,vertexShader:{log:M,prefix:v},fragmentShader:{log:N,prefix:b}})}i.deleteShader(x),i.deleteShader(S);let T;this.getUniforms=function(){return T===void 0&&(T=new Gf(i,h)),T};let I;return this.getAttributes=function(){return I===void 0&&(I=FVt(i,h)),I},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.name=n.shaderName,this.id=PVt++,this.cacheKey=e,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}let YVt=0;class JVt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(n),a=this._getShaderStage(r),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(a)===!1&&(o.add(a),a.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const r of n)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;return n.has(e)===!1&&n.set(e,new Set),n.get(e)}_getShaderStage(e){const n=this.shaderCache;if(n.has(e)===!1){const r=new QVt;n.set(e,r)}return n.get(e)}}class QVt{constructor(){this.id=YVt++,this.usedTimes=0}}function KVt(t,e,n,r,i,a,o){const s=new z5,l=new JVt,c=[],u=i.isWebGL2,d=i.logarithmicDepthBuffer,f=i.floatVertexTextures,p=i.maxVertexUniforms,h=i.vertexTextures;let v=i.precision;const b={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function g(O){const L=O.skeleton.bones;if(f)return 1024;{const B=Math.floor((p-20)/4),H=Math.min(B,L.length);return H0,Y=O.clearcoat>0;return{isWebGL2:u,shaderID:K,shaderName:O.type,vertexShader:U,fragmentShader:q,defines:O.defines,customVertexShaderID:z,customFragmentShaderID:ne,isRawShaderMaterial:O.isRawShaderMaterial===!0,glslVersion:O.glslVersion,precision:v,instancing:B.isInstancedMesh===!0,instancingColor:B.isInstancedMesh===!0&&B.instanceColor!==null,supportsVertexTextures:h,outputEncoding:G!==null?y(G.texture):t.outputEncoding,map:!!O.map,mapEncoding:y(O.map),matcap:!!O.matcap,matcapEncoding:y(O.matcap),envMap:!!W,envMapMode:W&&W.mapping,envMapEncoding:y(W),envMapCubeUV:!!W&&(W.mapping===KD||W.mapping===B5),lightMap:!!O.lightMap,lightMapEncoding:y(O.lightMap),aoMap:!!O.aoMap,emissiveMap:!!O.emissiveMap,emissiveMapEncoding:y(O.emissiveMap),bumpMap:!!O.bumpMap,normalMap:!!O.normalMap,objectSpaceNormalMap:O.normalMapType===yUt,tangentSpaceNormalMap:O.normalMapType===Q0,clearcoat:Y,clearcoatMap:Y&&!!O.clearcoatMap,clearcoatRoughnessMap:Y&&!!O.clearcoatRoughnessMap,clearcoatNormalMap:Y&&!!O.clearcoatNormalMap,displacementMap:!!O.displacementMap,roughnessMap:!!O.roughnessMap,metalnessMap:!!O.metalnessMap,specularMap:!!O.specularMap,specularIntensityMap:!!O.specularIntensityMap,specularColorMap:!!O.specularColorMap,specularColorMapEncoding:y(O.specularColorMap),alphaMap:!!O.alphaMap,alphaTest:te,gradientMap:!!O.gradientMap,sheen:O.sheen>0,sheenColorMap:!!O.sheenColorMap,sheenColorMapEncoding:y(O.sheenColorMap),sheenRoughnessMap:!!O.sheenRoughnessMap,transmission:O.transmission>0,transmissionMap:!!O.transmissionMap,thicknessMap:!!O.thicknessMap,combine:O.combine,vertexTangents:!!O.normalMap&&!!B.geometry&&!!B.geometry.attributes.tangent,vertexColors:O.vertexColors,vertexAlphas:O.vertexColors===!0&&!!B.geometry&&!!B.geometry.attributes.color&&B.geometry.attributes.color.itemSize===4,vertexUvs:!!O.map||!!O.bumpMap||!!O.normalMap||!!O.specularMap||!!O.alphaMap||!!O.emissiveMap||!!O.roughnessMap||!!O.metalnessMap||!!O.clearcoatMap||!!O.clearcoatRoughnessMap||!!O.clearcoatNormalMap||!!O.displacementMap||!!O.transmissionMap||!!O.thicknessMap||!!O.specularIntensityMap||!!O.specularColorMap||!!O.sheenColorMap||!!O.sheenRoughnessMap,uvsVertexOnly:!(O.map||O.bumpMap||O.normalMap||O.specularMap||O.alphaMap||O.emissiveMap||O.roughnessMap||O.metalnessMap||O.clearcoatNormalMap||O.transmission>0||O.transmissionMap||O.thicknessMap||O.specularIntensityMap||O.specularColorMap||O.sheen>0||O.sheenColorMap||O.sheenRoughnessMap)&&!!O.displacementMap,fog:!!H,useFog:O.fog,fogExp2:H&&H.isFogExp2,flatShading:!!O.flatShading,sizeAttenuation:O.sizeAttenuation,logarithmicDepthBuffer:d,skinning:B.isSkinnedMesh===!0&&le>0,maxBones:le,useVertexTexture:f,morphTargets:!!B.geometry&&!!B.geometry.morphAttributes.position,morphNormals:!!B.geometry&&!!B.geometry.morphAttributes.normal,morphTargetsCount:B.geometry&&B.geometry.morphAttributes.position?B.geometry.morphAttributes.position.length:0,numDirLights:D.directional.length,numPointLights:D.point.length,numSpotLights:D.spot.length,numRectAreaLights:D.rectArea.length,numHemiLights:D.hemi.length,numDirLightShadows:D.directionalShadowMap.length,numPointLightShadows:D.pointShadowMap.length,numSpotLightShadows:D.spotShadowMap.length,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,format:O.format,dithering:O.dithering,shadowMapEnabled:t.shadowMap.enabled&&L.length>0,shadowMapType:t.shadowMap.type,toneMapping:O.toneMapped?t.toneMapping:zf,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:O.premultipliedAlpha,doubleSided:O.side===qh,flipSided:O.side===Di,depthPacking:O.depthPacking!==void 0?O.depthPacking:!1,index0AttributeName:O.index0AttributeName,extensionDerivatives:O.extensions&&O.extensions.derivatives,extensionFragDepth:O.extensions&&O.extensions.fragDepth,extensionDrawBuffers:O.extensions&&O.extensions.drawBuffers,extensionShaderTextureLOD:O.extensions&&O.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),customProgramCacheKey:O.customProgramCacheKey()}}function x(O){const D=[];if(O.shaderID?D.push(O.shaderID):(D.push(O.customVertexShaderID),D.push(O.customFragmentShaderID)),O.defines!==void 0)for(const L in O.defines)D.push(L),D.push(O.defines[L]);return O.isRawShaderMaterial===!1&&(S(D,O),T(D,O),D.push(t.outputEncoding)),D.push(O.customProgramCacheKey),D.join()}function S(O,D){O.push(D.precision),O.push(D.outputEncoding),O.push(D.mapEncoding),O.push(D.matcapEncoding),O.push(D.envMapMode),O.push(D.envMapEncoding),O.push(D.lightMapEncoding),O.push(D.emissiveMapEncoding),O.push(D.combine),O.push(D.vertexUvs),O.push(D.fogExp2),O.push(D.sizeAttenuation),O.push(D.maxBones),O.push(D.morphTargetsCount),O.push(D.numDirLights),O.push(D.numPointLights),O.push(D.numSpotLights),O.push(D.numHemiLights),O.push(D.numRectAreaLights),O.push(D.numDirLightShadows),O.push(D.numPointLightShadows),O.push(D.numSpotLightShadows),O.push(D.shadowMapType),O.push(D.toneMapping),O.push(D.numClippingPlanes),O.push(D.numClipIntersection),O.push(D.format),O.push(D.specularColorMapEncoding),O.push(D.sheenColorMapEncoding)}function T(O,D){s.disableAll(),D.isWebGL2&&s.enable(0),D.supportsVertexTextures&&s.enable(1),D.instancing&&s.enable(2),D.instancingColor&&s.enable(3),D.map&&s.enable(4),D.matcap&&s.enable(5),D.envMap&&s.enable(6),D.envMapCubeUV&&s.enable(7),D.lightMap&&s.enable(8),D.aoMap&&s.enable(9),D.emissiveMap&&s.enable(10),D.bumpMap&&s.enable(11),D.normalMap&&s.enable(12),D.objectSpaceNormalMap&&s.enable(13),D.tangentSpaceNormalMap&&s.enable(14),D.clearcoat&&s.enable(15),D.clearcoatMap&&s.enable(16),D.clearcoatRoughnessMap&&s.enable(17),D.clearcoatNormalMap&&s.enable(18),D.displacementMap&&s.enable(19),D.specularMap&&s.enable(20),D.roughnessMap&&s.enable(21),D.metalnessMap&&s.enable(22),D.gradientMap&&s.enable(23),D.alphaMap&&s.enable(24),D.alphaTest&&s.enable(25),D.vertexColors&&s.enable(26),D.vertexAlphas&&s.enable(27),D.vertexUvs&&s.enable(28),D.vertexTangents&&s.enable(29),D.uvsVertexOnly&&s.enable(30),D.fog&&s.enable(31),O.push(s.mask),s.disableAll(),D.useFog&&s.enable(0),D.flatShading&&s.enable(1),D.logarithmicDepthBuffer&&s.enable(2),D.skinning&&s.enable(3),D.useVertexTexture&&s.enable(4),D.morphTargets&&s.enable(5),D.morphNormals&&s.enable(6),D.premultipliedAlpha&&s.enable(7),D.shadowMapEnabled&&s.enable(8),D.physicallyCorrectLights&&s.enable(9),D.doubleSided&&s.enable(10),D.flipSided&&s.enable(11),D.depthPacking&&s.enable(12),D.dithering&&s.enable(13),D.specularIntensityMap&&s.enable(14),D.specularColorMap&&s.enable(15),D.transmission&&s.enable(16),D.transmissionMap&&s.enable(17),D.thicknessMap&&s.enable(18),D.sheen&&s.enable(19),D.sheenColorMap&&s.enable(20),D.sheenRoughnessMap&&s.enable(21),O.push(s.mask)}function I(O){const D=b[O.type];let L;if(D){const k=kc[D];L=qUt.clone(k.uniforms)}else L=O.uniforms;return L}function P(O,D){let L;for(let k=0,B=c.length;k0?r.push(g):p.transparent===!0?i.push(g):n.push(g)}function l(d,f,p,h,v,b){const g=o(d,f,p,h,v,b);p.transmission>0?r.unshift(g):p.transparent===!0?i.unshift(g):n.unshift(g)}function c(d,f){n.length>1&&n.sort(d||ZVt),r.length>1&&r.sort(f||GJ),i.length>1&&i.sort(f||GJ)}function u(){for(let d=e,f=t.length;d=t.get(r).length?(a=new WJ,t.get(r).push(a)):a=t.get(r)[i],a}function n(){t=new WeakMap}return{get:e,dispose:n}}function tzt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new Ce,color:new Bt};break;case"SpotLight":n={position:new Ce,direction:new Ce,color:new Bt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Ce,color:new Bt,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Ce,skyColor:new Bt,groundColor:new Bt};break;case"RectAreaLight":n={color:new Bt,position:new Ce,halfWidth:new Ce,halfHeight:new Ce};break}return t[e.id]=n,n}}}function nzt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new dt};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new dt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new dt,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let rzt=0;function izt(t,e){return(e.castShadow?1:0)-(t.castShadow?1:0)}function azt(t,e){const n=new tzt,r=nzt(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let u=0;u<9;u++)i.probe.push(new Ce);const a=new Ce,o=new zt,s=new zt;function l(u,d){let f=0,p=0,h=0;for(let M=0;M<9;M++)i.probe[M].set(0,0,0);let v=0,b=0,g=0,y=0,w=0,x=0,S=0,T=0;u.sort(izt);const I=d!==!0?Math.PI:1;for(let M=0,N=u.length;M0&&(e.isWebGL2||t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=Tt.LTC_FLOAT_1,i.rectAreaLTC2=Tt.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=Tt.LTC_HALF_1,i.rectAreaLTC2=Tt.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=f,i.ambient[1]=p,i.ambient[2]=h;const P=i.hash;(P.directionalLength!==v||P.pointLength!==b||P.spotLength!==g||P.rectAreaLength!==y||P.hemiLength!==w||P.numDirectionalShadows!==x||P.numPointShadows!==S||P.numSpotShadows!==T)&&(i.directional.length=v,i.spot.length=g,i.rectArea.length=y,i.point.length=b,i.hemi.length=w,i.directionalShadow.length=x,i.directionalShadowMap.length=x,i.pointShadow.length=S,i.pointShadowMap.length=S,i.spotShadow.length=T,i.spotShadowMap.length=T,i.directionalShadowMatrix.length=x,i.pointShadowMatrix.length=S,i.spotShadowMatrix.length=T,P.directionalLength=v,P.pointLength=b,P.spotLength=g,P.rectAreaLength=y,P.hemiLength=w,P.numDirectionalShadows=x,P.numPointShadows=S,P.numSpotShadows=T,i.version=rzt++)}function c(u,d){let f=0,p=0,h=0,v=0,b=0;const g=d.matrixWorldInverse;for(let y=0,w=u.length;y=n.get(a).length?(s=new qJ(t,e),n.get(a).push(s)):s=n.get(a)[o],s}function i(){n=new WeakMap}return{get:r,dispose:i}}class dfe extends to{constructor(e){super(),this.type="MeshDepthMaterial",this.depthPacking=gUt,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}dfe.prototype.isMeshDepthMaterial=!0;class ffe extends to{constructor(e){super(),this.type="MeshDistanceMaterial",this.referencePosition=new Ce,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(e)}copy(e){return super.copy(e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}ffe.prototype.isMeshDistanceMaterial=!0;const szt=`void main() { gl_Position = vec4( position, 1.0 ); }`,lzt=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; #include void main() { const float samples = float( VSM_SAMPLES ); float mean = 0.0; float squared_mean = 0.0; float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); float uvStart = samples <= 1.0 ? 0.0 : - 1.0; for ( float i = 0.0; i < samples; i ++ ) { float uvOffset = uvStart + i * uvStride; #ifdef HORIZONTAL_PASS vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); mean += distribution.x; squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; #else float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); mean += depth; squared_mean += depth * depth; #endif } mean = mean / samples; squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); }`;function pfe(t,e,n){let r=new px;const i=new dt,a=new dt,o=new yr,s=new dfe({depthPacking:vUt}),l=new ffe,c={},u=n.maxTextureSize,d={0:Di,1:F1,2:qh},f=new Yh({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new dt},radius:{value:4}},vertexShader:szt,fragmentShader:lzt}),p=f.clone();p.defines.HORIZONTAL_PASS=1;const h=new kr;h.setAttribute("position",new ta(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const v=new Qa(h,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=Hde,this.render=function(x,S,T){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||x.length===0)return;const I=t.getRenderTarget(),P=t.getActiveCubeFace(),M=t.getActiveMipmapLevel(),N=t.state;N.setBlending(Vf),N.buffers.color.setClear(1,1,1,1),N.buffers.depth.setTest(!0),N.setScissorTest(!1);for(let R=0,O=x.length;Ru||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/k.x),i.x=a.x*k.x,L.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/k.y),i.y=a.y*k.y,L.mapSize.y=a.y)),L.map===null&&!L.isPointLightShadow&&this.type===Vb){const H={minFilter:Qr,magFilter:Qr,format:zi};L.map=new Es(i.x,i.y,H),L.map.texture.name=D.name+".shadowMap",L.mapPass=new Es(i.x,i.y,H),L.camera.updateProjectionMatrix()}if(L.map===null){const H={minFilter:Oi,magFilter:Oi,format:zi};L.map=new Es(i.x,i.y,H),L.map.texture.name=D.name+".shadowMap",L.camera.updateProjectionMatrix()}t.setRenderTarget(L.map),t.clear();const B=L.getViewportCount();for(let H=0;H0){const D=R.uuid,L=T.uuid;let k=c[D];k===void 0&&(k={},c[D]=k);let B=k[L];B===void 0&&(B=R.clone(),k[L]=B),R=B}return R.visible=T.visible,R.wireframe=T.wireframe,N===Vb?R.side=T.shadowSide!==null?T.shadowSide:T.side:R.side=T.shadowSide!==null?T.shadowSide:d[T.side],R.alphaMap=T.alphaMap,R.alphaTest=T.alphaTest,R.clipShadows=T.clipShadows,R.clippingPlanes=T.clippingPlanes,R.clipIntersection=T.clipIntersection,R.displacementMap=T.displacementMap,R.displacementScale=T.displacementScale,R.displacementBias=T.displacementBias,R.wireframeLinewidth=T.wireframeLinewidth,R.linewidth=T.linewidth,I.isPointLight===!0&&R.isMeshDistanceMaterial===!0&&(R.referencePosition.setFromMatrixPosition(I.matrixWorld),R.nearDistance=P,R.farDistance=M),R}function w(x,S,T,I,P){if(x.visible===!1)return;if(x.layers.test(S.layers)&&(x.isMesh||x.isLine||x.isPoints)&&(x.castShadow||x.receiveShadow&&P===Vb)&&(!x.frustumCulled||r.intersectsObject(x))){x.modelViewMatrix.multiplyMatrices(T.matrixWorldInverse,x.matrixWorld);const R=e.update(x),O=x.material;if(Array.isArray(O)){const D=R.groups;for(let L=0,k=D.length;L=1):L.indexOf("OpenGL ES")!==-1&&(D=parseFloat(/^OpenGL ES (\d)/.exec(L)[1]),O=D>=2);let k=null,B={};const H=t.getParameter(3088),$=t.getParameter(2978),W=new yr().fromArray(H),K=new yr().fromArray($);function le(he,Ye,Ke){const Je=new Uint8Array(4),nt=t.createTexture();t.bindTexture(he,nt),t.texParameteri(he,10241,9728),t.texParameteri(he,10240,9728);for(let je=0;jeae||V.height>ae)&&(Ee=ae/Math.max(V.width,V.height)),Ee<1||j===!0)if(typeof HTMLImageElement<"u"&&V instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&V instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&V instanceof ImageBitmap){const Pe=j?qde:Math.floor,We=Pe(Ee*V.width),Fe=Pe(Ee*V.height);v===void 0&&(v=g(We,Fe));const Ae=ye?g(We,Fe):v;return Ae.width=We,Ae.height=Fe,Ae.getContext("2d").drawImage(V,0,0,We,Fe),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+V.width+"x"+V.height+") to ("+We+"x"+Fe+")."),Ae}else return"data"in V&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+V.width+"x"+V.height+")."),V;return V}function w(V){return k3(V.width)&&k3(V.height)}function x(V){return s?!1:V.wrapS!==cs||V.wrapT!==cs||V.minFilter!==Oi&&V.minFilter!==Qr}function S(V,j){return V.generateMipmaps&&j&&V.minFilter!==Oi&&V.minFilter!==Qr}function T(V){t.generateMipmap(V)}function I(V,j,ye,ae){if(s===!1)return j;if(V!==null){if(t[V]!==void 0)return t[V];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+V+"'")}let Ee=j;return j===6403&&(ye===5126&&(Ee=33326),ye===5131&&(Ee=33325),ye===5121&&(Ee=33321)),j===6407&&(ye===5126&&(Ee=34837),ye===5131&&(Ee=34843),ye===5121&&(Ee=32849)),j===6408&&(ye===5126&&(Ee=34836),ye===5131&&(Ee=34842),ye===5121&&(Ee=ae===J0?35907:32856)),(Ee===33325||Ee===33326||Ee===34842||Ee===34836)&&e.get("EXT_color_buffer_float"),Ee}function P(V,j,ye){return S(V,ye)===!0||V.isFramebufferTexture&&V.minFilter!==Oi&&V.minFilter!==Qr?Math.log2(Math.max(j.width,j.height))+1:V.mipmaps!==void 0&&V.mipmaps.length>0?V.mipmaps.length:V.isCompressedTexture&&Array.isArray(V.image)?j.mipmaps.length:1}function M(V){return V===Oi||V===nJ||V===rJ?9728:9729}function N(V){const j=V.target;j.removeEventListener("dispose",N),O(j),j.isVideoTexture&&h.delete(j),o.memory.textures--}function R(V){const j=V.target;j.removeEventListener("dispose",R),D(j)}function O(V){const j=r.get(V);j.__webglInit!==void 0&&(t.deleteTexture(j.__webglTexture),r.remove(V))}function D(V){const j=V.texture,ye=r.get(V),ae=r.get(j);if(V){if(ae.__webglTexture!==void 0&&(t.deleteTexture(ae.__webglTexture),o.memory.textures--),V.depthTexture&&V.depthTexture.dispose(),V.isWebGLCubeRenderTarget)for(let Ee=0;Ee<6;Ee++)t.deleteFramebuffer(ye.__webglFramebuffer[Ee]),ye.__webglDepthbuffer&&t.deleteRenderbuffer(ye.__webglDepthbuffer[Ee]);else t.deleteFramebuffer(ye.__webglFramebuffer),ye.__webglDepthbuffer&&t.deleteRenderbuffer(ye.__webglDepthbuffer),ye.__webglMultisampledFramebuffer&&t.deleteFramebuffer(ye.__webglMultisampledFramebuffer),ye.__webglColorRenderbuffer&&t.deleteRenderbuffer(ye.__webglColorRenderbuffer),ye.__webglDepthRenderbuffer&&t.deleteRenderbuffer(ye.__webglDepthRenderbuffer);if(V.isWebGLMultipleRenderTargets)for(let Ee=0,Pe=j.length;Ee=l&&console.warn("THREE.WebGLTextures: Trying to use "+V+" texture units while this GPU supports only "+l),L+=1,V}function H(V,j){const ye=r.get(V);if(V.isVideoTexture&&Me(V),V.version>0&&ye.__version!==V.version){const ae=V.image;if(ae===void 0)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else if(ae.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{ne(ye,V,j);return}}n.activeTexture(33984+j),n.bindTexture(3553,ye.__webglTexture)}function $(V,j){const ye=r.get(V);if(V.version>0&&ye.__version!==V.version){ne(ye,V,j);return}n.activeTexture(33984+j),n.bindTexture(35866,ye.__webglTexture)}function W(V,j){const ye=r.get(V);if(V.version>0&&ye.__version!==V.version){ne(ye,V,j);return}n.activeTexture(33984+j),n.bindTexture(32879,ye.__webglTexture)}function K(V,j){const ye=r.get(V);if(V.version>0&&ye.__version!==V.version){G(ye,V,j);return}n.activeTexture(33984+j),n.bindTexture(34067,ye.__webglTexture)}const le={[N3]:10497,[cs]:33071,[L3]:33648},U={[Oi]:9728,[nJ]:9984,[rJ]:9986,[Qr]:9729,[_Bt]:9985,[XD]:9987};function q(V,j,ye){if(ye?(t.texParameteri(V,10242,le[j.wrapS]),t.texParameteri(V,10243,le[j.wrapT]),(V===32879||V===35866)&&t.texParameteri(V,32882,le[j.wrapR]),t.texParameteri(V,10240,U[j.magFilter]),t.texParameteri(V,10241,U[j.minFilter])):(t.texParameteri(V,10242,33071),t.texParameteri(V,10243,33071),(V===32879||V===35866)&&t.texParameteri(V,32882,33071),(j.wrapS!==cs||j.wrapT!==cs)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(V,10240,M(j.magFilter)),t.texParameteri(V,10241,M(j.minFilter)),j.minFilter!==Oi&&j.minFilter!==Qr&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),e.has("EXT_texture_filter_anisotropic")===!0){const ae=e.get("EXT_texture_filter_anisotropic");if(j.type===mf&&e.has("OES_texture_float_linear")===!1||s===!1&&j.type===bh&&e.has("OES_texture_half_float_linear")===!1)return;(j.anisotropy>1||r.get(j).__currentAnisotropy)&&(t.texParameterf(V,ae.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(j.anisotropy,i.getMaxAnisotropy())),r.get(j).__currentAnisotropy=j.anisotropy)}}function z(V,j){V.__webglInit===void 0&&(V.__webglInit=!0,j.addEventListener("dispose",N),V.__webglTexture=t.createTexture(),o.memory.textures++)}function ne(V,j,ye){let ae=3553;j.isDataTexture2DArray&&(ae=35866),j.isDataTexture3D&&(ae=32879),z(V,j),n.activeTexture(33984+ye),n.bindTexture(ae,V.__webglTexture),t.pixelStorei(37440,j.flipY),t.pixelStorei(37441,j.premultiplyAlpha),t.pixelStorei(3317,j.unpackAlignment),t.pixelStorei(37443,0);const Ee=x(j)&&w(j.image)===!1,Pe=y(j.image,Ee,!1,u),We=w(Pe)||s,Fe=a.convert(j.format);let Ae=a.convert(j.type),he=I(j.internalFormat,Fe,Ae,j.encoding);q(ae,j,We);let Ye;const Ke=j.mipmaps,Je=s&&j.isVideoTexture!==!0,nt=V.__version===void 0,je=P(j,Pe,We);if(j.isDepthTexture)he=6402,s?j.type===mf?he=36012:j.type===VC?he=33190:j.type===bv?he=35056:he=33189:j.type===mf&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),j.format===_h&&he===6402&&j.type!==$1&&j.type!==VC&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),j.type=$1,Ae=a.convert(j.type)),j.format===d0&&he===6402&&(he=34041,j.type!==bv&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),j.type=bv,Ae=a.convert(j.type))),Je&&nt?n.texStorage2D(3553,1,he,Pe.width,Pe.height):n.texImage2D(3553,0,he,Pe.width,Pe.height,0,Fe,Ae,null);else if(j.isDataTexture)if(Ke.length>0&&We){Je&&nt&&n.texStorage2D(3553,je,he,Ke[0].width,Ke[0].height);for(let Ue=0,at=Ke.length;Ue0&&We){Je&&nt&&n.texStorage2D(3553,je,he,Ke[0].width,Ke[0].height);for(let Ue=0,at=Ke.length;Ue0&&nt++,n.texStorage2D(34067,nt,Ye,Pe[0].width,Pe[0].height));for(let Ue=0;Ue<6;Ue++)if(Ee){Ke?n.texSubImage2D(34069+Ue,0,0,0,Pe[Ue].width,Pe[Ue].height,Ae,he,Pe[Ue].data):n.texImage2D(34069+Ue,0,Ye,Pe[Ue].width,Pe[Ue].height,0,Ae,he,Pe[Ue].data);for(let at=0;atp+h?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&f<=p-h&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(a=n.getPose(e.gripSpace,r),a!==null&&(l.matrix.fromArray(a.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),a.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(a.linearVelocity)):l.hasLinearVelocity=!1,a.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(a.angularVelocity)):l.hasAngularVelocity=!1));return s!==null&&(s.visible=i!==null),l!==null&&(l.visible=a!==null),c!==null&&(c.visible=o!==null),this}}class $3 extends Si{constructor(e,n,r,i,a,o,s,l,c,u){if(u=u!==void 0?u:_h,u!==_h&&u!==d0)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");r===void 0&&u===_h&&(r=$1),r===void 0&&u===d0&&(r=bv),super(null,i,a,o,s,l,u,r,c),this.image={width:e,height:n},this.magFilter=s!==void 0?s:Oi,this.minFilter=l!==void 0?l:Oi,this.flipY=!1,this.generateMipmaps=!1}}$3.prototype.isDepthTexture=!0;class pzt extends kl{constructor(e,n){super();const r=this;let i=null,a=1,o=null,s="local-floor";const l=e.extensions.has("WEBGL_multisampled_render_to_texture");let c=null,u=null,d=null,f=null,p=!1,h=null;const v=n.getContextAttributes();let b=null,g=null;const y=[],w=new Map,x=new Ni;x.layers.enable(1),x.viewport=new yr;const S=new Ni;S.layers.enable(2),S.viewport=new yr;const T=[x,S],I=new hfe;I.layers.enable(1),I.layers.enable(2);let P=null,M=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(K){let le=y[K];return le===void 0&&(le=new E2,y[K]=le),le.getTargetRaySpace()},this.getControllerGrip=function(K){let le=y[K];return le===void 0&&(le=new E2,y[K]=le),le.getGripSpace()},this.getHand=function(K){let le=y[K];return le===void 0&&(le=new E2,y[K]=le),le.getHandSpace()};function N(K){const le=w.get(K.inputSource);le&&le.dispatchEvent({type:K.type,data:K.inputSource})}function R(){w.forEach(function(K,le){K.disconnect(le)}),w.clear(),P=null,M=null,e.setRenderTarget(b),f=null,d=null,u=null,i=null,g=null,W.stop(),r.isPresenting=!1,r.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(K){a=K,r.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(K){s=K,r.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return o},this.getBaseLayer=function(){return d!==null?d:f},this.getBinding=function(){return u},this.getFrame=function(){return h},this.getSession=function(){return i},this.setSession=async function(K){if(i=K,i!==null){if(b=e.getRenderTarget(),i.addEventListener("select",N),i.addEventListener("selectstart",N),i.addEventListener("selectend",N),i.addEventListener("squeeze",N),i.addEventListener("squeezestart",N),i.addEventListener("squeezeend",N),i.addEventListener("end",R),i.addEventListener("inputsourceschange",O),v.xrCompatible!==!0&&await n.makeXRCompatible(),i.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const le={antialias:i.renderState.layers===void 0?v.antialias:!0,alpha:v.alpha,depth:v.depth,stencil:v.stencil,framebufferScaleFactor:a};f=new XRWebGLLayer(i,n,le),i.updateRenderState({baseLayer:f}),g=new Es(f.framebufferWidth,f.framebufferHeight,{format:zi,type:sd,encoding:e.outputEncoding})}else{p=v.antialias;let le=null,U=null,q=null;v.depth&&(q=v.stencil?35056:33190,le=v.stencil?d0:_h,U=v.stencil?bv:$1);const z={colorFormat:v.alpha||p?32856:32849,depthFormat:q,scaleFactor:a};u=new XRWebGLBinding(i,n),d=u.createProjectionLayer(z),i.updateRenderState({layers:[d]}),p?g=new V5(d.textureWidth,d.textureHeight,{format:zi,type:sd,depthTexture:new $3(d.textureWidth,d.textureHeight,U,void 0,void 0,void 0,void 0,void 0,void 0,le),stencilBuffer:v.stencil,ignoreDepth:d.ignoreDepthValues,useRenderToTexture:l,encoding:e.outputEncoding}):g=new Es(d.textureWidth,d.textureHeight,{format:v.alpha?zi:ru,type:sd,depthTexture:new $3(d.textureWidth,d.textureHeight,U,void 0,void 0,void 0,void 0,void 0,void 0,le),stencilBuffer:v.stencil,ignoreDepth:d.ignoreDepthValues,encoding:e.outputEncoding})}this.setFoveation(1),o=await i.requestReferenceSpace(s),W.setContext(i),W.start(),r.isPresenting=!0,r.dispatchEvent({type:"sessionstart"})}};function O(K){const le=i.inputSources;for(let U=0;U0&&(g.alphaTest.value=y.alphaTest);const w=t.get(y).envMap;w&&(g.envMap.value=w,g.flipEnvMap.value=w.isCubeTexture&&w.isRenderTargetTexture===!1?-1:1,g.reflectivity.value=y.reflectivity,g.ior.value=y.ior,g.refractionRatio.value=y.refractionRatio),y.lightMap&&(g.lightMap.value=y.lightMap,g.lightMapIntensity.value=y.lightMapIntensity),y.aoMap&&(g.aoMap.value=y.aoMap,g.aoMapIntensity.value=y.aoMapIntensity);let x;y.map?x=y.map:y.specularMap?x=y.specularMap:y.displacementMap?x=y.displacementMap:y.normalMap?x=y.normalMap:y.bumpMap?x=y.bumpMap:y.roughnessMap?x=y.roughnessMap:y.metalnessMap?x=y.metalnessMap:y.alphaMap?x=y.alphaMap:y.emissiveMap?x=y.emissiveMap:y.clearcoatMap?x=y.clearcoatMap:y.clearcoatNormalMap?x=y.clearcoatNormalMap:y.clearcoatRoughnessMap?x=y.clearcoatRoughnessMap:y.specularIntensityMap?x=y.specularIntensityMap:y.specularColorMap?x=y.specularColorMap:y.transmissionMap?x=y.transmissionMap:y.thicknessMap?x=y.thicknessMap:y.sheenColorMap?x=y.sheenColorMap:y.sheenRoughnessMap&&(x=y.sheenRoughnessMap),x!==void 0&&(x.isWebGLRenderTarget&&(x=x.texture),x.matrixAutoUpdate===!0&&x.updateMatrix(),g.uvTransform.value.copy(x.matrix));let S;y.aoMap?S=y.aoMap:y.lightMap&&(S=y.lightMap),S!==void 0&&(S.isWebGLRenderTarget&&(S=S.texture),S.matrixAutoUpdate===!0&&S.updateMatrix(),g.uv2Transform.value.copy(S.matrix))}function i(g,y){g.diffuse.value.copy(y.color),g.opacity.value=y.opacity}function a(g,y){g.dashSize.value=y.dashSize,g.totalSize.value=y.dashSize+y.gapSize,g.scale.value=y.scale}function o(g,y,w,x){g.diffuse.value.copy(y.color),g.opacity.value=y.opacity,g.size.value=y.size*w,g.scale.value=x*.5,y.map&&(g.map.value=y.map),y.alphaMap&&(g.alphaMap.value=y.alphaMap),y.alphaTest>0&&(g.alphaTest.value=y.alphaTest);let S;y.map?S=y.map:y.alphaMap&&(S=y.alphaMap),S!==void 0&&(S.matrixAutoUpdate===!0&&S.updateMatrix(),g.uvTransform.value.copy(S.matrix))}function s(g,y){g.diffuse.value.copy(y.color),g.opacity.value=y.opacity,g.rotation.value=y.rotation,y.map&&(g.map.value=y.map),y.alphaMap&&(g.alphaMap.value=y.alphaMap),y.alphaTest>0&&(g.alphaTest.value=y.alphaTest);let w;y.map?w=y.map:y.alphaMap&&(w=y.alphaMap),w!==void 0&&(w.matrixAutoUpdate===!0&&w.updateMatrix(),g.uvTransform.value.copy(w.matrix))}function l(g,y){y.emissiveMap&&(g.emissiveMap.value=y.emissiveMap)}function c(g,y){g.specular.value.copy(y.specular),g.shininess.value=Math.max(y.shininess,1e-4),y.emissiveMap&&(g.emissiveMap.value=y.emissiveMap),y.bumpMap&&(g.bumpMap.value=y.bumpMap,g.bumpScale.value=y.bumpScale,y.side===Di&&(g.bumpScale.value*=-1)),y.normalMap&&(g.normalMap.value=y.normalMap,g.normalScale.value.copy(y.normalScale),y.side===Di&&g.normalScale.value.negate()),y.displacementMap&&(g.displacementMap.value=y.displacementMap,g.displacementScale.value=y.displacementScale,g.displacementBias.value=y.displacementBias)}function u(g,y){y.gradientMap&&(g.gradientMap.value=y.gradientMap),y.emissiveMap&&(g.emissiveMap.value=y.emissiveMap),y.bumpMap&&(g.bumpMap.value=y.bumpMap,g.bumpScale.value=y.bumpScale,y.side===Di&&(g.bumpScale.value*=-1)),y.normalMap&&(g.normalMap.value=y.normalMap,g.normalScale.value.copy(y.normalScale),y.side===Di&&g.normalScale.value.negate()),y.displacementMap&&(g.displacementMap.value=y.displacementMap,g.displacementScale.value=y.displacementScale,g.displacementBias.value=y.displacementBias)}function d(g,y){g.roughness.value=y.roughness,g.metalness.value=y.metalness,y.roughnessMap&&(g.roughnessMap.value=y.roughnessMap),y.metalnessMap&&(g.metalnessMap.value=y.metalnessMap),y.emissiveMap&&(g.emissiveMap.value=y.emissiveMap),y.bumpMap&&(g.bumpMap.value=y.bumpMap,g.bumpScale.value=y.bumpScale,y.side===Di&&(g.bumpScale.value*=-1)),y.normalMap&&(g.normalMap.value=y.normalMap,g.normalScale.value.copy(y.normalScale),y.side===Di&&g.normalScale.value.negate()),y.displacementMap&&(g.displacementMap.value=y.displacementMap,g.displacementScale.value=y.displacementScale,g.displacementBias.value=y.displacementBias),t.get(y).envMap&&(g.envMapIntensity.value=y.envMapIntensity)}function f(g,y,w){d(g,y),g.ior.value=y.ior,y.sheen>0&&(g.sheenColor.value.copy(y.sheenColor).multiplyScalar(y.sheen),g.sheenRoughness.value=y.sheenRoughness,y.sheenColorMap&&(g.sheenColorMap.value=y.sheenColorMap),y.sheenRoughnessMap&&(g.sheenRoughnessMap.value=y.sheenRoughnessMap)),y.clearcoat>0&&(g.clearcoat.value=y.clearcoat,g.clearcoatRoughness.value=y.clearcoatRoughness,y.clearcoatMap&&(g.clearcoatMap.value=y.clearcoatMap),y.clearcoatRoughnessMap&&(g.clearcoatRoughnessMap.value=y.clearcoatRoughnessMap),y.clearcoatNormalMap&&(g.clearcoatNormalScale.value.copy(y.clearcoatNormalScale),g.clearcoatNormalMap.value=y.clearcoatNormalMap,y.side===Di&&g.clearcoatNormalScale.value.negate())),y.transmission>0&&(g.transmission.value=y.transmission,g.transmissionSamplerMap.value=w.texture,g.transmissionSamplerSize.value.set(w.width,w.height),y.transmissionMap&&(g.transmissionMap.value=y.transmissionMap),g.thickness.value=y.thickness,y.thicknessMap&&(g.thicknessMap.value=y.thicknessMap),g.attenuationDistance.value=y.attenuationDistance,g.attenuationColor.value.copy(y.attenuationColor)),g.specularIntensity.value=y.specularIntensity,g.specularColor.value.copy(y.specularColor),y.specularIntensityMap&&(g.specularIntensityMap.value=y.specularIntensityMap),y.specularColorMap&&(g.specularColorMap.value=y.specularColorMap)}function p(g,y){y.matcap&&(g.matcap.value=y.matcap),y.bumpMap&&(g.bumpMap.value=y.bumpMap,g.bumpScale.value=y.bumpScale,y.side===Di&&(g.bumpScale.value*=-1)),y.normalMap&&(g.normalMap.value=y.normalMap,g.normalScale.value.copy(y.normalScale),y.side===Di&&g.normalScale.value.negate()),y.displacementMap&&(g.displacementMap.value=y.displacementMap,g.displacementScale.value=y.displacementScale,g.displacementBias.value=y.displacementBias)}function h(g,y){y.displacementMap&&(g.displacementMap.value=y.displacementMap,g.displacementScale.value=y.displacementScale,g.displacementBias.value=y.displacementBias)}function v(g,y){y.displacementMap&&(g.displacementMap.value=y.displacementMap,g.displacementScale.value=y.displacementScale,g.displacementBias.value=y.displacementBias),g.referencePosition.value.copy(y.referencePosition),g.nearDistance.value=y.nearDistance,g.farDistance.value=y.farDistance}function b(g,y){y.bumpMap&&(g.bumpMap.value=y.bumpMap,g.bumpScale.value=y.bumpScale,y.side===Di&&(g.bumpScale.value*=-1)),y.normalMap&&(g.normalMap.value=y.normalMap,g.normalScale.value.copy(y.normalScale),y.side===Di&&g.normalScale.value.negate()),y.displacementMap&&(g.displacementMap.value=y.displacementMap,g.displacementScale.value=y.displacementScale,g.displacementBias.value=y.displacementBias)}return{refreshFogUniforms:e,refreshMaterialUniforms:n}}function mzt(){const t=ZD("canvas");return t.style.display="block",t}function lr(t={}){const e=t.canvas!==void 0?t.canvas:mzt(),n=t.context!==void 0?t.context:null,r=t.alpha!==void 0?t.alpha:!1,i=t.depth!==void 0?t.depth:!0,a=t.stencil!==void 0?t.stencil:!0,o=t.antialias!==void 0?t.antialias:!1,s=t.premultipliedAlpha!==void 0?t.premultipliedAlpha:!0,l=t.preserveDrawingBuffer!==void 0?t.preserveDrawingBuffer:!1,c=t.powerPreference!==void 0?t.powerPreference:"default",u=t.failIfMajorPerformanceCaveat!==void 0?t.failIfMajorPerformanceCaveat:!1;let d=null,f=null;const p=[],h=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=vc,this.physicallyCorrectLights=!1,this.toneMapping=zf,this.toneMappingExposure=1;const v=this;let b=!1,g=0,y=0,w=null,x=-1,S=null;const T=new yr,I=new yr;let P=null,M=e.width,N=e.height,R=1,O=null,D=null;const L=new yr(0,0,M,N),k=new yr(0,0,M,N);let B=!1;const H=[],$=new px;let W=!1,K=!1,le=null;const U=new zt,q=new Ce,z={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function ne(){return w===null?R:1}let G=n;function te(ve,$e){for(let qe=0;qe0?f=h[h.length-1]:f=null,p.pop(),p.length>0?d=p[p.length-1]:d=null};function ce(ve,$e,qe,Ve){if(ve.visible===!1)return;if(ve.layers.test($e.layers)){if(ve.isGroup)qe=ve.renderOrder;else if(ve.isLOD)ve.autoUpdate===!0&&ve.update($e);else if(ve.isLight)f.pushLight(ve),ve.castShadow&&f.pushShadow(ve);else if(ve.isSprite){if(!ve.frustumCulled||$.intersectsSprite(ve)){Ve&&q.setFromMatrixPosition(ve.matrixWorld).applyMatrix4(U);const Nt=ge.update(ve),rn=ve.material;rn.visible&&d.push(ve,Nt,rn,qe,q.z,null)}}else if((ve.isMesh||ve.isLine||ve.isPoints)&&(ve.isSkinnedMesh&&ve.skeleton.frame!==de.render.frame&&(ve.skeleton.update(),ve.skeleton.frame=de.render.frame),!ve.frustumCulled||$.intersectsObject(ve))){Ve&&q.setFromMatrixPosition(ve.matrixWorld).applyMatrix4(U);const Nt=ge.update(ve),rn=ve.material;if(Array.isArray(rn)){const jt=Nt.groups;for(let mn=0,ln=jt.length;mn0&&Be(tt,$e,qe),Ve&&pe.viewport(T.copy(Ve)),tt.length>0&&pt(tt,$e,qe),Wt.length>0&&pt(Wt,$e,qe),Nt.length>0&&pt(Nt,$e,qe)}function Be(ve,$e,qe){if(le===null){const Nt=o===!0&&fe.isWebGL2===!0?V5:Es;le=new Nt(1024,1024,{generateMipmaps:!0,type:Ae.convert(bh)!==null?bh:sd,minFilter:XD,magFilter:Oi,wrapS:cs,wrapT:cs,useRenderToTexture:Y.has("WEBGL_multisampled_render_to_texture")})}const Ve=v.getRenderTarget();v.setRenderTarget(le),v.clear();const tt=v.toneMapping;v.toneMapping=zf,pt(ve,$e,qe),v.toneMapping=tt,me.updateMultisampleRenderTarget(le),me.updateRenderTargetMipmap(le),v.setRenderTarget(Ve)}function pt(ve,$e,qe){const Ve=$e.isScene===!0?$e.overrideMaterial:null;for(let tt=0,Wt=ve.length;tt=0&&$e<=ve.width-Ve&&qe>=0&&qe<=ve.height-tt&&G.readPixels($e,qe,Ve,tt,Ae.convert(mn),Ae.convert(ln),Wt):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{const jt=w!==null?se.get(w).__webglFramebuffer:null;pe.bindFramebuffer(36160,jt)}}},this.copyFramebufferToTexture=function(ve,$e,qe=0){if($e.isFramebufferTexture!==!0){console.error("THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.");return}const Ve=Math.pow(2,-qe),tt=Math.floor($e.image.width*Ve),Wt=Math.floor($e.image.height*Ve);me.setTexture2D($e,0),G.copyTexSubImage2D(3553,qe,0,0,ve.x,ve.y,tt,Wt),pe.unbindTexture()},this.copyTextureToTexture=function(ve,$e,qe,Ve=0){const tt=$e.image.width,Wt=$e.image.height,Nt=Ae.convert(qe.format),rn=Ae.convert(qe.type);me.setTexture2D(qe,0),G.pixelStorei(37440,qe.flipY),G.pixelStorei(37441,qe.premultiplyAlpha),G.pixelStorei(3317,qe.unpackAlignment),$e.isDataTexture?G.texSubImage2D(3553,Ve,ve.x,ve.y,tt,Wt,Nt,rn,$e.image.data):$e.isCompressedTexture?G.compressedTexSubImage2D(3553,Ve,ve.x,ve.y,$e.mipmaps[0].width,$e.mipmaps[0].height,Nt,$e.mipmaps[0].data):G.texSubImage2D(3553,Ve,ve.x,ve.y,Nt,rn,$e.image),Ve===0&&qe.generateMipmaps&&G.generateMipmap(3553),pe.unbindTexture()},this.copyTextureToTexture3D=function(ve,$e,qe,Ve,tt=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Wt=ve.max.x-ve.min.x+1,Nt=ve.max.y-ve.min.y+1,rn=ve.max.z-ve.min.z+1,jt=Ae.convert(Ve.format),mn=Ae.convert(Ve.type);let ln;if(Ve.isDataTexture3D)me.setTexture3D(Ve,0),ln=32879;else if(Ve.isDataTexture2DArray)me.setTexture2DArray(Ve,0),ln=35866;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}G.pixelStorei(37440,Ve.flipY),G.pixelStorei(37441,Ve.premultiplyAlpha),G.pixelStorei(3317,Ve.unpackAlignment);const Cn=G.getParameter(3314),Fr=G.getParameter(32878),yu=G.getParameter(3316),Id=G.getParameter(3315),Ln=G.getParameter(32877),no=qe.isCompressedTexture?qe.mipmaps[0]:qe.image;G.pixelStorei(3314,no.width),G.pixelStorei(32878,no.height),G.pixelStorei(3316,ve.min.x),G.pixelStorei(3315,ve.min.y),G.pixelStorei(32877,ve.min.z),qe.isDataTexture||qe.isDataTexture3D?G.texSubImage3D(ln,tt,$e.x,$e.y,$e.z,Wt,Nt,rn,jt,mn,no.data):qe.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),G.compressedTexSubImage3D(ln,tt,$e.x,$e.y,$e.z,Wt,Nt,rn,jt,no.data)):G.texSubImage3D(ln,tt,$e.x,$e.y,$e.z,Wt,Nt,rn,jt,mn,no),G.pixelStorei(3314,Cn),G.pixelStorei(32878,Fr),G.pixelStorei(3316,yu),G.pixelStorei(3315,Id),G.pixelStorei(32877,Ln),tt===0&&Ve.generateMipmaps&&G.generateMipmap(ln),pe.unbindTexture()},this.initTexture=function(ve){me.setTexture2D(ve,0),pe.unbindTexture()},this.resetState=function(){g=0,y=0,w=null,pe.reset(),he.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}lr.prototype.isWebGLRenderer=!0;class gzt extends lr{}gzt.prototype.isWebGL1Renderer=!0;class H1 extends Jn{constructor(){super(),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),n}}H1.prototype.isScene=!0;class hx{constructor(e,n){this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=B1,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=pc()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,n,r){e*=this.stride,r*=n.stride;for(let i=0,a=this.stride;ie.far||n.push({distance:l,point:Sb.clone(),uv:Fi.getUV(Sb,US,Tb,HS,YJ,S2,JJ,new dt),face:null,object:this})}copy(e){return super.copy(e),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}Q5.prototype.isSprite=!0;function VS(t,e,n,r,i,a){pg.subVectors(t,n).addScalar(.5).multiply(r),i!==void 0?(Cb.x=a*pg.x-i*pg.y,Cb.y=i*pg.x+a*pg.y):Cb.copy(pg),t.copy(e),t.x+=Cb.x,t.y+=Cb.y,t.applyMatrix4(mfe)}const QJ=new Ce,KJ=new yr,XJ=new yr,vzt=new Ce,ZJ=new zt;class gfe extends Qa{constructor(e,n){super(e,n),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new zt,this.bindMatrixInverse=new zt}copy(e){return super.copy(e),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,this}bind(e,n){this.skeleton=e,n===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),n=this.matrixWorld),this.bindMatrix.copy(n),this.bindMatrixInverse.copy(n).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new yr,n=this.geometry.attributes.skinWeight;for(let r=0,i=n.count;rl)continue;f.applyMatrix4(this.matrixWorld);const P=e.ray.origin.distanceTo(f);Pe.far||n.push({distance:P,point:d.clone().applyMatrix4(this.matrixWorld),index:w,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let w=g,x=y-1;wl)continue;f.applyMatrix4(this.matrixWorld);const T=e.ray.origin.distanceTo(f);Te.far||n.push({distance:T,point:d.clone().applyMatrix4(this.matrixWorld),index:w,face:null,faceIndex:null,object:this})}}}else r.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const e=this.geometry;if(e.isBufferGeometry){const n=e.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=i.length;a0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}K5.prototype.isLine=!0;const aQ=new Ce,oQ=new Ce;class X5 extends K5{constructor(e,n){super(e,n),this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.isBufferGeometry)if(e.index===null){const n=e.attributes.position,r=[];for(let i=0,a=n.count;i0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=i.length;a0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}xzt.prototype.isPoints=!0;function lQ(t,e,n,r,i,a,o){const s=U3.distanceSqToPoint(t);if(si.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:l,index:e,face:null,object:o})}}class Z5 extends Si{constructor(e,n,r,i,a,o,s,l,c){super(e,n,r,i,a,o,s,l,c),this.format=s!==void 0?s:ru,this.minFilter=o!==void 0?o:Qr,this.magFilter=a!==void 0?a:Qr,this.generateMipmaps=!1;const u=this;function d(){u.needsUpdate=!0,e.requestVideoFrameCallback(d)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(d)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}Z5.prototype.isVideoTexture=!0;class Ezt extends Si{constructor(e,n,r){super({width:e,height:n}),this.format=r,this.magFilter=Oi,this.minFilter=Oi,this.generateMipmaps=!1,this.needsUpdate=!0}}Ezt.prototype.isFramebufferTexture=!0;class Szt extends Si{constructor(e,n,r,i,a,o,s,l,c,u,d,f){super(null,o,s,l,c,u,i,a,d,f),this.image={width:n,height:r},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}Szt.prototype.isCompressedTexture=!0;class yfe extends Si{constructor(e,n,r,i,a,o,s,l,c){super(e,n,r,i,a,o,s,l,c),this.needsUpdate=!0}}yfe.prototype.isCanvasTexture=!0;new Ce;new Ce;new Ce;new Fi;class Ml{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,n){const r=this.getUtoTmapping(e);return this.getPoint(r,n)}getPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPoint(r/e));return n}getSpacedPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPointAt(r/e));return n}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const n=[];let r,i=this.getPoint(0),a=0;n.push(0);for(let o=1;o<=e;o++)r=this.getPoint(o/e),a+=r.distanceTo(i),n.push(a),i=r;return this.cacheArcLengths=n,n}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,n){const r=this.getLengths();let i=0;const a=r.length;let o;n?o=n:o=e*r[a-1];let s=0,l=a-1,c;for(;s<=l;)if(i=Math.floor(s+(l-s)/2),c=r[i]-o,c<0)s=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,r[i]===o)return i/(a-1);const u=r[i],f=r[i+1]-u,p=(o-u)/f;return(i+p)/(a-1)}getTangent(e,n){let i=e-1e-4,a=e+1e-4;i<0&&(i=0),a>1&&(a=1);const o=this.getPoint(i),s=this.getPoint(a),l=n||(o.isVector2?new dt:new Ce);return l.copy(s).sub(o).normalize(),l}getTangentAt(e,n){const r=this.getUtoTmapping(e);return this.getTangent(r,n)}computeFrenetFrames(e,n){const r=new Ce,i=[],a=[],o=[],s=new Ce,l=new zt;for(let p=0;p<=e;p++){const h=p/e;i[p]=this.getTangentAt(h,new Ce)}a[0]=new Ce,o[0]=new Ce;let c=Number.MAX_VALUE;const u=Math.abs(i[0].x),d=Math.abs(i[0].y),f=Math.abs(i[0].z);u<=c&&(c=u,r.set(1,0,0)),d<=c&&(c=d,r.set(0,1,0)),f<=c&&r.set(0,0,1),s.crossVectors(i[0],r).normalize(),a[0].crossVectors(i[0],s),o[0].crossVectors(i[0],a[0]);for(let p=1;p<=e;p++){if(a[p]=a[p-1].clone(),o[p]=o[p-1].clone(),s.crossVectors(i[p-1],i[p]),s.length()>Number.EPSILON){s.normalize();const h=Math.acos(Po(i[p-1].dot(i[p]),-1,1));a[p].applyMatrix4(l.makeRotationAxis(s,h))}o[p].crossVectors(i[p],a[p])}if(n===!0){let p=Math.acos(Po(a[0].dot(a[e]),-1,1));p/=e,i[0].dot(s.crossVectors(a[0],a[e]))>0&&(p=-p);for(let h=1;h<=e;h++)a[h].applyMatrix4(l.makeRotationAxis(i[h],p*h)),o[h].crossVectors(i[h],a[h])}return{tangents:i,normals:a,binormals:o}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class iP extends Ml{constructor(e=0,n=0,r=1,i=1,a=0,o=Math.PI*2,s=!1,l=0){super(),this.type="EllipseCurve",this.aX=e,this.aY=n,this.xRadius=r,this.yRadius=i,this.aStartAngle=a,this.aEndAngle=o,this.aClockwise=s,this.aRotation=l}getPoint(e,n){const r=n||new dt,i=Math.PI*2;let a=this.aEndAngle-this.aStartAngle;const o=Math.abs(a)i;)a-=i;a0?0:(Math.floor(Math.abs(s)/a)+1)*a:l===0&&s===a-1&&(s=a-2,l=1);let c,u;this.closed||s>0?c=i[(s-1)%a]:(qS.subVectors(i[0],i[1]).add(i[0]),c=qS);const d=i[s%a],f=i[(s+1)%a];if(this.closed||s+2i.length-2?i.length-1:o+1],d=i[o>i.length-3?i.length-1:o+2];return r.set(cQ(s,l.x,c.x,u.x,d.x),cQ(s,l.y,c.y,u.y,d.y)),r}copy(e){super.copy(e),this.points=[];for(let n=0,r=e.points.length;n=r){const o=i[a]-r,s=this.curves[a],l=s.getLength(),c=l===0?0:1-o/l;return s.getPointAt(c,n)}a++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let n=0;for(let r=0,i=this.curves.length;r1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}copy(e){super.copy(e),this.curves=[];for(let n=0,r=e.curves.length;n0){const d=c.getPoint(0);d.equals(this.currentPoint)||this.lineTo(d.x,d.y)}this.curves.push(c);const u=c.getPoint(1);return this.currentPoint.copy(u),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class gx extends H3{constructor(e){super(e),this.uuid=pc(),this.type="Shape",this.holes=[]}getPointsHoles(e){const n=[];for(let r=0,i=this.holes.length;r80*n){s=c=t[0],l=u=t[1];for(let h=n;hc&&(c=d),f>u&&(u=f);p=Math.max(c-s,u-l),p=p!==0?1/p:0}return z1(a,o,n,s,l,p),o}};function Sfe(t,e,n,r,i){let a,o;if(i===Qzt(t,e,n,r)>0)for(a=e;a=e;a-=r)o=uQ(a,t[a],t[a+1],o);return o&&oP(o,o.next)&&(G1(o),o=o.next),o}function ep(t,e){if(!t)return t;e||(e=t);let n=t,r;do if(r=!1,!n.steiner&&(oP(n,n.next)||Kr(n.prev,n,n.next)===0)){if(G1(n),n=e=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==e);return e}function z1(t,e,n,r,i,a,o){if(!t)return;!o&&a&&jzt(t,r,i,a);let s=t,l,c;for(;t.prev!==t.next;){if(l=t.prev,c=t.next,a?kzt(t,r,i,a):Lzt(t)){e.push(l.i/n),e.push(t.i/n),e.push(c.i/n),G1(t),t=c.next,s=c.next;continue}if(t=c,t===s){o?o===1?(t=Fzt(ep(t),e,n),z1(t,e,n,r,i,a,2)):o===2&&$zt(t,e,n,r,i,a):z1(ep(t),e,n,r,i,a,1);break}}}function Lzt(t){const e=t.prev,n=t,r=t.next;if(Kr(e,n,r)>=0)return!1;let i=t.next.next;for(;i!==t.prev;){if(Jg(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Kr(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function kzt(t,e,n,r){const i=t.prev,a=t,o=t.next;if(Kr(i,a,o)>=0)return!1;const s=i.xa.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,d=V3(s,l,e,n,r),f=V3(c,u,e,n,r);let p=t.prevZ,h=t.nextZ;for(;p&&p.z>=d&&h&&h.z<=f;){if(p!==t.prev&&p!==t.next&&Jg(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Kr(p.prev,p,p.next)>=0||(p=p.prevZ,h!==t.prev&&h!==t.next&&Jg(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&Kr(h.prev,h,h.next)>=0))return!1;h=h.nextZ}for(;p&&p.z>=d;){if(p!==t.prev&&p!==t.next&&Jg(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Kr(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;h&&h.z<=f;){if(h!==t.prev&&h!==t.next&&Jg(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&Kr(h.prev,h,h.next)>=0)return!1;h=h.nextZ}return!0}function Fzt(t,e,n){let r=t;do{const i=r.prev,a=r.next.next;!oP(i,a)&&Cfe(i,r,r.next,a)&&j1(i,a)&&j1(a,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(a.i/n),G1(r),G1(r.next),r=t=a),r=r.next}while(r!==t);return ep(r)}function $zt(t,e,n,r,i,a){let o=t;do{let s=o.next.next;for(;s!==o.prev;){if(o.i!==s.i&&qzt(o,s)){let l=Tfe(o,s);o=ep(o,o.next),l=ep(l,l.next),z1(o,e,n,r,i,a),z1(l,e,n,r,i,a);return}s=s.next}o=o.next}while(o!==t)}function Bzt(t,e,n,r){const i=[];let a,o,s,l,c;for(a=0,o=e.length;a=n.next.y&&n.next.y!==n.y){const f=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(f<=r&&f>a){if(a=f,f===r){if(i===n.y)return n;if(i===n.next.y)return n.next}o=n.x=n.x&&n.x>=l&&r!==n.x&&Jg(io.x||n.x===o.x&&zzt(o,n)))&&(o=n,u=d)),n=n.next;while(n!==s);return o}function zzt(t,e){return Kr(t.prev,t,e.prev)<0&&Kr(e.next,t,t.next)<0}function jzt(t,e,n,r){let i=t;do i.z===null&&(i.z=V3(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,Gzt(i)}function Gzt(t){let e,n,r,i,a,o,s,l,c=1;do{for(n=t,t=null,a=null,o=0;n;){for(o++,r=n,s=0,e=0;e0||l>0&&r;)s!==0&&(l===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;n=r}a.nextZ=null,c*=2}while(o>1);return t}function V3(t,e,n,r,i){return t=32767*(t-n)*i,e=32767*(e-r)*i,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function Wzt(t){let e=t,n=t;do(e.x=0&&(t-o)*(r-s)-(n-o)*(e-s)>=0&&(n-o)*(a-s)-(i-o)*(r-s)>=0}function qzt(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!Yzt(t,e)&&(j1(t,e)&&j1(e,t)&&Jzt(t,e)&&(Kr(t.prev,t,e.prev)||Kr(t,e.prev,e))||oP(t,e)&&Kr(t.prev,t,t.next)>0&&Kr(e.prev,e,e.next)>0)}function Kr(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function oP(t,e){return t.x===e.x&&t.y===e.y}function Cfe(t,e,n,r){const i=JS(Kr(t,e,n)),a=JS(Kr(t,e,r)),o=JS(Kr(n,r,t)),s=JS(Kr(n,r,e));return!!(i!==a&&o!==s||i===0&&YS(t,n,e)||a===0&&YS(t,r,e)||o===0&&YS(n,t,r)||s===0&&YS(n,e,r))}function YS(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function JS(t){return t>0?1:t<0?-1:0}function Yzt(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Cfe(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function j1(t,e){return Kr(t.prev,t,t.next)<0?Kr(t,e,t.next)>=0&&Kr(t,t.prev,e)>=0:Kr(t,e,t.prev)<0||Kr(t,t.next,e)<0}function Jzt(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,a=(t.y+e.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==t);return r}function Tfe(t,e){const n=new z3(t.i,t.x,t.y),r=new z3(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function uQ(t,e,n,r){const i=new z3(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function G1(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function z3(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Qzt(t,e,n,r){let i=0;for(let a=e,o=n-r;a2&&t[e-1].equals(t[0])&&t.pop()}function fQ(t,e){for(let n=0;nNumber.EPSILON){const ae=Math.sqrt(j),Ee=Math.sqrt(Q*Q+V*V),Pe=me.x-ee/ae,We=me.y+ge/ae,Fe=Z.x-V/Ee,Ae=Z.y+Q/Ee,he=((Fe-Pe)*V-(Ae-We)*Q)/(ge*V-ee*Q);_e=Pe+ge*he-se.x,Me=We+ee*he-se.y;const Ye=_e*_e+Me*Me;if(Ye<=2)return new dt(_e,Me);Ne=Math.sqrt(Ye/2)}else{let ae=!1;ge>Number.EPSILON?Q>Number.EPSILON&&(ae=!0):ge<-Number.EPSILON?Q<-Number.EPSILON&&(ae=!0):Math.sign(ee)===Math.sign(V)&&(ae=!0),ae?(_e=-ee,Me=ge,Ne=Math.sqrt(j)):(_e=ge,Me=ee,Ne=Math.sqrt(j/2))}return new dt(_e/Ne,Me/Ne)}const W=[];for(let se=0,me=L.length,Z=me-1,_e=se+1;se=0;se--){const me=se/b,Z=p*Math.cos(me*Math.PI/2),_e=h*Math.sin(me*Math.PI/2)+v;for(let Me=0,Ne=L.length;Me=0;){const _e=Z;let Me=Z-1;Me<0&&(Me=se.length-1);for(let Ne=0,ge=u+b*2;Ne0)&&p.push(w,x,T),(g!==r-1||l0!=e>0&&this.version++,this._sheen=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}tjt.prototype.isMeshPhysicalMaterial=!0;class njt extends to{constructor(e){super(),this.type="MeshPhongMaterial",this.color=new Bt(16777215),this.specular=new Bt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Bt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Q0,this.normalScale=new dt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=QD,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}njt.prototype.isMeshPhongMaterial=!0;class rjt extends to{constructor(e){super(),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Bt(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Bt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Q0,this.normalScale=new dt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}rjt.prototype.isMeshToonMaterial=!0;class ijt extends to{constructor(e){super(),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Q0,this.normalScale=new dt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}ijt.prototype.isMeshNormalMaterial=!0;class ajt extends to{constructor(e){super(),this.type="MeshLambertMaterial",this.color=new Bt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Bt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=QD,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}ajt.prototype.isMeshLambertMaterial=!0;class ojt extends to{constructor(e){super(),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Bt(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Q0,this.normalScale=new dt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this}}ojt.prototype.isMeshMatcapMaterial=!0;class sjt extends mx{constructor(e){super(),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}sjt.prototype.isLineDashedMaterial=!0;const Ur={arraySlice:function(t,e,n){return Ur.isTypedArray(t)?new t.constructor(t.subarray(e,n!==void 0?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){function e(i,a){return t[i]-t[a]}const n=t.length,r=new Array(n);for(let i=0;i!==n;++i)r[i]=i;return r.sort(e),r},sortedArray:function(t,e,n){const r=t.length,i=new t.constructor(r);for(let a=0,o=0;o!==r;++a){const s=n[a]*e;for(let l=0;l!==e;++l)i[o++]=t[s+l]}return i},flattenJSON:function(t,e,n,r){let i=1,a=t[0];for(;a!==void 0&&a[r]===void 0;)a=t[i++];if(a===void 0)return;let o=a[r];if(o!==void 0)if(Array.isArray(o))do o=a[r],o!==void 0&&(e.push(a.time),n.push.apply(n,o)),a=t[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(e.push(a.time),o.toArray(n,n.length)),a=t[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(e.push(a.time),n.push(o)),a=t[i++];while(a!==void 0)},subclip:function(t,e,n,r,i=30){const a=t.clone();a.name=e;const o=[];for(let l=0;l=r)){d.push(c.times[p]);for(let v=0;va.tracks[l].times[0]&&(s=a.tracks[l].times[0]);for(let l=0;l=s.times[h]){const g=h*d+u,y=g+d-u;v=Ur.arraySlice(s.values,g,y)}else{const g=s.createInterpolant(),y=u,w=d-u;g.evaluate(a),v=Ur.arraySlice(g.resultBuffer,y,w)}l==="quaternion"&&new Hi().fromArray(v).normalize().conjugate().toArray(v);const b=c.times.length;for(let g=0;g=a)){const s=n[1];e=a)break t}o=r,r=0;break n}break e}for(;r>>1;en;)--o;if(++o,a!==0||o!==i){a>=o&&(o=Math.max(o,1),a=o-1);const s=this.getValueSize();this.times=Ur.arraySlice(r,a,o),this.values=Ur.arraySlice(this.values,a*s,o*s)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const r=this.times,i=this.values,a=r.length;a===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let s=0;s!==a;s++){const l=r[s];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,s,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,s,l,o),e=!1;break}o=l}if(i!==void 0&&Ur.isTypedArray(i))for(let s=0,l=i.length;s!==l;++s){const c=i[s];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,s,c),e=!1;break}}return e}optimize(){const e=Ur.arraySlice(this.times),n=Ur.arraySlice(this.values),r=this.getValueSize(),i=this.getInterpolation()===QN,a=e.length-1;let o=1;for(let s=1;s0){e[o]=e[a];for(let s=a*r,l=o*r,c=0;c!==r;++c)n[l+c]=n[s+c];++o}return o!==e.length?(this.times=Ur.arraySlice(e,0,o),this.values=Ur.arraySlice(n,0,o*r)):(this.times=e,this.values=n),this}clone(){const e=Ur.arraySlice(this.times,0),n=Ur.arraySlice(this.values,0),r=this.constructor,i=new r(this.name,e,n);return i.createInterpolant=this.createInterpolant,i}}vu.prototype.TimeBufferType=Float32Array;vu.prototype.ValueBufferType=Float32Array;vu.prototype.DefaultInterpolation=jA;class ty extends vu{}ty.prototype.ValueTypeName="bool";ty.prototype.ValueBufferType=Array;ty.prototype.DefaultInterpolation=zA;ty.prototype.InterpolantFactoryMethodLinear=void 0;ty.prototype.InterpolantFactoryMethodSmooth=void 0;class Mfe extends vu{}Mfe.prototype.ValueTypeName="color";class YA extends vu{}YA.prototype.ValueTypeName="number";class ujt extends tp{constructor(e,n,r,i){super(e,n,r,i)}interpolate_(e,n,r,i){const a=this.resultBuffer,o=this.sampleValues,s=this.valueSize,l=(r-n)/(i-n);let c=e*s;for(let u=c+s;c!==u;c+=4)Hi.slerpFlat(a,0,o,c-s,o,c,l);return a}}class yx extends vu{InterpolantFactoryMethodLinear(e){return new ujt(this.times,this.values,this.getValueSize(),e)}}yx.prototype.ValueTypeName="quaternion";yx.prototype.DefaultInterpolation=jA;yx.prototype.InterpolantFactoryMethodSmooth=void 0;class ny extends vu{}ny.prototype.ValueTypeName="string";ny.prototype.ValueBufferType=Array;ny.prototype.DefaultInterpolation=zA;ny.prototype.InterpolantFactoryMethodLinear=void 0;ny.prototype.InterpolantFactoryMethodSmooth=void 0;class JA extends vu{}JA.prototype.ValueTypeName="vector";class pQ{constructor(e,n=-1,r,i=U5){this.name=e,this.tracks=r,this.duration=n,this.blendMode=i,this.uuid=pc(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],r=e.tracks,i=1/(e.fps||1);for(let o=0,s=r.length;o!==s;++o)n.push(fjt(r[o]).scale(i));const a=new this(e.name,e.duration,n,e.blendMode);return a.uuid=e.uuid,a}static toJSON(e){const n=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let a=0,o=r.length;a!==o;++a)n.push(vu.toJSON(r[a]));return i}static CreateFromMorphTargetSequence(e,n,r,i){const a=n.length,o=[];for(let s=0;s1){const d=u[1];let f=i[d];f||(i[d]=f=[]),f.push(c)}}const o=[];for(const s in i)o.push(this.CreateFromMorphTargetSequence(s,i[s],n,r));return o}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const r=function(d,f,p,h,v){if(p.length!==0){const b=[],g=[];Ur.flattenJSON(p,b,g,h),b.length!==0&&v.push(new d(f,b,g))}},i=[],a=e.name||"default",o=e.fps||30,s=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let d=0;d{n&&n(a),this.manager.itemEnd(e)},0),a;if(zu[e]!==void 0){zu[e].push({onLoad:n,onProgress:r,onError:i});return}zu[e]=[],zu[e].push({onLoad:n,onProgress:r,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"});fetch(o).then(s=>{if(s.status===200||s.status===0){if(s.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||s.body.getReader===void 0)return s;const l=zu[e],c=s.body.getReader(),u=s.headers.get("Content-Length"),d=u?parseInt(u):0,f=d!==0;let p=0;const h=new ReadableStream({start(v){b();function b(){c.read().then(({done:g,value:y})=>{if(g)v.close();else{p+=y.byteLength;const w=new ProgressEvent("progress",{lengthComputable:f,loaded:p,total:d});for(let x=0,S=l.length;x{switch(this.responseType){case"arraybuffer":return s.arrayBuffer();case"blob":return s.blob();case"document":return s.text().then(l=>new DOMParser().parseFromString(l,this.mimeType));case"json":return s.json();default:return s.text()}}).then(s=>{Fo.add(e,s);const l=zu[e];delete zu[e];for(let c=0,u=l.length;c{const l=zu[e];if(l===void 0)throw this.manager.itemError(e),s;delete zu[e];for(let c=0,u=l.length;c{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}let Dfe=class extends bp{constructor(e){super(e)}load(e,n,r,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const a=this,o=Fo.get(e);if(o!==void 0)return a.manager.itemStart(e),setTimeout(function(){n&&n(o),a.manager.itemEnd(e)},0),o;const s=ZD("img");function l(){u(),Fo.add(e,this),n&&n(this),a.manager.itemEnd(e)}function c(d){u(),i&&i(d),a.manager.itemError(e),a.manager.itemEnd(e)}function u(){s.removeEventListener("load",l,!1),s.removeEventListener("error",c,!1)}return s.addEventListener("load",l,!1),s.addEventListener("error",c,!1),e.substr(0,5)!=="data:"&&this.crossOrigin!==void 0&&(s.crossOrigin=this.crossOrigin),a.manager.itemStart(e),s.src=e,s}};class gjt extends bp{constructor(e){super(e)}load(e,n,r,i){const a=new eP,o=new Dfe(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);let s=0;function l(c){o.load(e[c],function(u){a.images[c]=u,s++,s===6&&(a.needsUpdate=!0,n&&n(a))},void 0,i)}for(let c=0;c"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,n,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const a=this,o=Fo.get(e);if(o!==void 0)return a.manager.itemStart(e),setTimeout(function(){n&&n(o),a.manager.itemEnd(e)},0),o;const s={};s.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",s.headers=this.requestHeader,fetch(e,s).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(a.options,{colorSpaceConversion:"none"}))}).then(function(l){Fo.add(e,l),n&&n(l),a.manager.itemEnd(e)}).catch(function(l){i&&i(l),a.manager.itemError(e),a.manager.itemEnd(e)}),a.manager.itemStart(e)}}Tjt.prototype.isImageBitmapLoader=!0;let QS;const Ajt={getContext:function(){return QS===void 0&&(QS=new(window.AudioContext||window.webkitAudioContext)),QS},setContext:function(t){QS=t}};class Ijt extends bp{constructor(e){super(e)}load(e,n,r,i){const a=this,o=new mjt(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(s){try{const l=s.slice(0);Ajt.getContext().decodeAudioData(l,function(u){n(u)})}catch(l){i?i(l):console.error(l),a.manager.itemError(e)}},r,i)}}class Mjt extends oH{constructor(e,n,r=1){super(void 0,r);const i=new Bt().set(e),a=new Bt().set(n),o=new Ce(i.r,i.g,i.b),s=new Ce(a.r,a.g,a.b),l=Math.sqrt(Math.PI),c=l*Math.sqrt(.75);this.sh.coefficients[0].copy(o).add(s).multiplyScalar(l),this.sh.coefficients[1].copy(o).sub(s).multiplyScalar(c)}}Mjt.prototype.isHemisphereLightProbe=!0;class Djt extends oH{constructor(e,n=1){super(void 0,n);const r=new Bt().set(e);this.sh.coefficients[0].set(r.r,r.g,r.b).multiplyScalar(2*Math.sqrt(Math.PI))}}Djt.prototype.isAmbientLightProbe=!0;const yQ=new zt,bQ=new zt,Hp=new zt;class Lfe{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Ni,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Ni,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const n=this._cache;if(n.focus!==e.focus||n.fov!==e.fov||n.aspect!==e.aspect*this.aspect||n.near!==e.near||n.far!==e.far||n.zoom!==e.zoom||n.eyeSep!==this.eyeSep){n.focus=e.focus,n.fov=e.fov,n.aspect=e.aspect*this.aspect,n.near=e.near,n.far=e.far,n.zoom=e.zoom,n.eyeSep=this.eyeSep,Hp.copy(e.projectionMatrix);const i=n.eyeSep/2,a=i*n.near/n.focus,o=n.near*Math.tan(_v*n.fov*.5)/n.zoom;let s,l;bQ.elements[12]=-i,yQ.elements[12]=i,s=-o*n.aspect+a,l=o*n.aspect+a,Hp.elements[0]=2*n.near/(l-s),Hp.elements[8]=(l+s)/(l-s),this.cameraL.projectionMatrix.copy(Hp),s=-o*n.aspect-a,l=o*n.aspect-a,Hp.elements[0]=2*n.near/(l-s),Hp.elements[8]=(l+s)/(l-s),this.cameraR.projectionMatrix.copy(Hp)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(bQ),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(yQ)}}class Pjt extends Jn{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn("THREE.Audio: Audio is already playing.");return}if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}this._startedAt=this.context.currentTime+e;const n=this.context.createBufferSource();return n.buffer=this.buffer,n.loop=this.loop,n.loopStart=this.loopStart,n.loopEnd=this.loopEnd,n.onended=this.onEnded.bind(this),n.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=n,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,n=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,n=this.filters.length;e0&&this._mixBufferRegionAdditive(r,i,this._addIndex*n,1,n);for(let l=n,c=n+n;l!==c;++l)if(r[l]!==r[l+n]){s.setValue(r,i);break}}saveOriginalState(){const e=this.binding,n=this.buffer,r=this.valueSize,i=r*this._origIndex;e.getValue(n,i);for(let a=r,o=i;a!==o;++a)n[a]=n[i+a%r];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,n=e+this.valueSize;for(let r=e;r=.5)for(let o=0;o!==a;++o)e[n+o]=e[r+o]}_slerp(e,n,r,i){Hi.slerpFlat(e,n,e,n,e,r,i)}_slerpAdditive(e,n,r,i,a){const o=this._workIndex*a;Hi.multiplyQuaternionsFlat(e,o,e,n,e,r),Hi.slerpFlat(e,n,e,n,e,o,i)}_lerp(e,n,r,i,a){const o=1-i;for(let s=0;s!==a;++s){const l=n+s;e[l]=e[l]*o+e[r+s]*i}}_lerpAdditive(e,n,r,i,a){for(let o=0;o!==a;++o){const s=n+o;e[s]=e[s]+e[r+o]*i}}}const sH="\\[\\]\\.:\\/",Ojt=new RegExp("["+sH+"]","g"),lH="[^"+sH+"]",Njt="[^"+sH.replace("\\.","")+"]",Ljt=/((?:WC+[\/:])*)/.source.replace("WC",lH),kjt=/(WCOD+)?/.source.replace("WCOD",Njt),Fjt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",lH),$jt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",lH),Bjt=new RegExp("^"+Ljt+kjt+Fjt+$jt+"$"),Ujt=["material","materials","bones"];class Hjt{constructor(e,n,r){const i=r||nr.parseTrackName(n);this._targetGroup=e,this._bindings=e.subscribe_(n,i)}getValue(e,n){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,n)}setValue(e,n){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,a=r.length;i!==a;++i)r[i].setValue(e,n)}bind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].bind()}unbind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=e.length;n!==r;++n)e[n].unbind()}}class nr{constructor(e,n,r){this.path=n,this.parsedPath=r||nr.parseTrackName(n),this.node=nr.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,n,r){return e&&e.isAnimationObjectGroup?new nr.Composite(e,n,r):new nr(e,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Ojt,"")}static parseTrackName(e){const n=Bjt.exec(e);if(!n)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const a=r.nodeName.substring(i+1);Ujt.indexOf(a)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=a)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,n){if(!n||n===""||n==="."||n===-1||n===e.name||n===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(n);if(r!==void 0)return r}if(e.children){const r=function(a){for(let o=0;o0){const l=this._interpolants,c=this._propertyBindings;switch(this.blendMode){case Wde:for(let u=0,d=l.length;u!==d;++u)l[u].evaluate(o),c[u].accumulateAdditive(s);break;case U5:default:for(let u=0,d=l.length;u!==d;++u)l[u].evaluate(o),c[u].accumulate(i,s)}}}_updateWeight(e){let n=0;if(this.enabled){n=this.weight;const r=this._weightInterpolant;if(r!==null){const i=r.evaluate(e)[0];n*=i,e>r.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=n,n}_updateTimeScale(e){let n=0;if(!this.paused){n=this.timeScale;const r=this._timeScaleInterpolant;if(r!==null){const i=r.evaluate(e)[0];n*=i,e>r.parameterPositions[1]&&(this.stopWarping(),n===0?this.paused=!0:this.timeScale=n)}}return this._effectiveTimeScale=n,n}_updateTime(e){const n=this._clip.duration,r=this.loop;let i=this.time+e,a=this._loopCount;const o=r===hUt;if(e===0)return a===-1?i:o&&(a&1)===1?n-i:i;if(r===fUt){a===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=n)i=n;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(a===-1&&(e>=0?(a=0,this._setEndings(!0,this.repetitions===0,o)):this._setEndings(this.repetitions===0,!0,o)),i>=n||i<0){const s=Math.floor(i/n);i-=n*s,a+=Math.abs(s);const l=this.repetitions-a;if(l<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?n:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(l===1){const c=e<0;this._setEndings(c,!c,o)}else this._setEndings(!1,!1,o);this._loopCount=a,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:s})}}else this.time=i;if(o&&(a&1)===1)return n-i}return i}_setEndings(e,n,r){const i=this._interpolantSettings;r?(i.endingStart=Yg,i.endingEnd=Yg):(e?i.endingStart=this.zeroSlopeAtStart?Yg:qg:i.endingStart=GA,n?i.endingEnd=this.zeroSlopeAtEnd?Yg:qg:i.endingEnd=GA)}_scheduleFading(e,n,r){const i=this._mixer,a=i.time;let o=this._weightInterpolant;o===null&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);const s=o.parameterPositions,l=o.sampleValues;return s[0]=a,l[0]=n,s[1]=a+e,l[1]=r,this}}class zjt extends kl{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,n){const r=e._localRoot||this._root,i=e._clip.tracks,a=i.length,o=e._propertyBindings,s=e._interpolants,l=r.uuid,c=this._bindingsByRootAndName;let u=c[l];u===void 0&&(u={},c[l]=u);for(let d=0;d!==a;++d){const f=i[d],p=f.name;let h=u[p];if(h!==void 0)o[d]=h;else{if(h=o[d],h!==void 0){h._cacheIndex===null&&(++h.referenceCount,this._addInactiveBinding(h,l,p));continue}const v=n&&n._propertyBindings[d].binding.parsedPath;h=new Rjt(nr.create(r,p,v),f.ValueTypeName,f.getValueSize()),++h.referenceCount,this._addInactiveBinding(h,l,p),o[d]=h}s[d].resultBuffer=h.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const r=(e._localRoot||this._root).uuid,i=e._clip.uuid,a=this._actionsByClip[i];this._bindAction(e,a&&a.knownActions[0]),this._addInactiveAction(e,i,r)}const n=e._propertyBindings;for(let r=0,i=n.length;r!==i;++r){const a=n[r];a.useCount++===0&&(this._lendBinding(a),a.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const n=e._propertyBindings;for(let r=0,i=n.length;r!==i;++r){const a=n[r];--a.useCount===0&&(a.restoreOriginalState(),this._takeBackBinding(a))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const n=e._cacheIndex;return n!==null&&n=0;--r)e[r].stop();return this}update(e){e*=this.timeScale;const n=this._actions,r=this._nActiveActions,i=this.time+=e,a=Math.sign(e),o=this._accuIndex^=1;for(let c=0;c!==r;++c)n[c]._update(i,e,a,o);const s=this._bindings,l=this._nActiveBindings;for(let c=0;c!==l;++c)s[c].apply(o);return this}setTime(e){this.time=0;for(let n=0;n{},n=()=>{},r=()=>{}){Fo.enabled=!0;let i,a,o,s,l,c,u;for(let f in Ma)Ma.hasOwnProperty(f)&&t===Ma[f]&&(u=f);if(i=Fo.get(u||t),i!==void 0)return e&&(i.complete&&i.src?setTimeout(function(){n({loaded:1,total:1}),e(i)},0):i.addEventListener("load",function(){n({loaded:1,total:1}),e(i)},!1)),i;l=window.URL||window.webkitURL,c=document.createElementNS("http://www.w3.org/1999/xhtml","img"),Fo.add(u||t,c);const d=()=>{l.revokeObjectURL(c.src),e(c)};if(t.indexOf("data:")===0)return c.addEventListener("load",d,!1),c.src=t,c;c.crossOrigin=this.crossOrigin!==void 0?this.crossOrigin:"",a=new window.XMLHttpRequest,a.open("GET",t,!0),a.responseType="arraybuffer",a.addEventListener("error",r),a.addEventListener("progress",f=>{if(!f)return;const{loaded:p,total:h,lengthComputable:v}=f;v&&n({loaded:p,total:h})}),a.addEventListener("loadend",f=>{if(!f)return;const{currentTarget:{response:p}}=f;o=new Uint8Array(p),s=new window.Blob([o]),c.addEventListener("load",d,!1),c.src=l.createObjectURL(s)}),a.send(null)}},cH={load:function(t,e=()=>{},n,r){var i=new Si;return Kjt.load(t,function(a){i.image=a;const o=t.search(/\.(jpg|jpeg)$/)>0||t.search(/^data\:image\/jpeg/)===0;i.format=o?ru:zi,i.needsUpdate=!0,e(i)},n,r),i}};function Ffe(t){const e={video:{width:{ideal:1920},height:{ideal:1080},facingMode:{exact:"environment"}},audio:!1};this.constraints=Object.assign(e,t),this.container=null,this.scene=null,this.element=null,this.devices=[],this.stream=null,this.ratioScalar=1,this.videoDeviceIndex=0}Ffe.prototype=Object.assign(Object.create(kl.prototype),{setContainer:function(t){this.container=t},setScene:function(t){this.scene=t},enumerateDevices:function(){const t=this.devices,e=new Promise(n=>{n(t)});return t.length>0?e:window.navigator.mediaDevices.enumerateDevices()},switchNextVideoDevice:function(){const t=this.stop.bind(this),e=this.start.bind(this),n=this.setVideDeviceIndex.bind(this);let r=this.videoDeviceIndex;this.getDevices("video").then(i=>{t(),r++,r>=i.length?(n(0),r--):n(r),e(i[r])})},getDevices:function(t="video"){const e=this.devices,n=i=>i.map(a=>(e.includes(a)||e.push(a),a)),r=i=>{const a=new RegExp(t,"i");return i.filter(o=>a.test(o.kind))};return this.enumerateDevices().then(n).then(r)},getUserMedia:function(t){const e=this.setMediaStream.bind(this),n=this.playVideo.bind(this),r=i=>{console.warn(`PANOLENS.Media: ${i}`)};return window.navigator.mediaDevices.getUserMedia(t).then(e).then(n).catch(r)},setVideDeviceIndex:function(t){this.videoDeviceIndex=t},start:function(t){const e=this.constraints,n=this.getUserMedia.bind(this),r=i=>{if(!i||i.length===0)throw Error("no video device found");const a=t||i[0];return e.video.deviceId=a.deviceId,n(e)};return this.element=this.createVideoElement(),this.getDevices().then(r)},stop:function(){const t=this.stream;t&&t.active&&(t.getTracks()[0].stop(),window.removeEventListener("resize",this.onWindowResize.bind(this)),this.element=null,this.stream=null)},setMediaStream:function(t){this.stream=t,this.element.srcObject=t,this.scene&&(this.scene.background=this.createVideoTexture()),window.addEventListener("resize",this.onWindowResize.bind(this))},playVideo:function(){const{element:t}=this;t&&(t.play(),this.dispatchEvent({type:"play"}))},pauseVideo:function(){const{element:t}=this;t&&(t.pause(),this.dispatchEvent({type:"pause"}))},createVideoTexture:function(){const t=this.element,e=new Z5(t);return e.generateMipmaps=!1,e.minFilter=Qr,e.magFilter=Qr,e.format=ru,e.center.set(.5,.5),t.addEventListener("canplay",this.onWindowResize.bind(this)),e},createVideoElement:function(){const t=this.dispatchEvent.bind(this),e=document.createElement("video"),n=()=>t({type:"canplay"});return e.setAttribute("autoplay",""),e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.objectPosition="center",e.style.objectFit="cover",e.style.display=this.scene?"none":"",e.addEventListener("canplay",n),e},onWindowResize:function(){if(this.element&&this.element.videoWidth&&this.element.videoHeight&&this.scene){const{clientWidth:t,clientHeight:e}=this.container,n=this.scene.background,{videoWidth:r,videoHeight:i}=this.element,a=i/r,o=this.container?t/e:1,s=a*o*this.ratioScalar;t>e?n.repeat.set(s,1):n.repeat.set(1,1/s)}}});class KA extends Q5{constructor(e=16777215,n=!0,r=1500){const{canvas:i,context:a}=KA.createCanvas(window.devicePixelRatio),o=new J5({color:e,map:KA.createCanvasTexture(i)});super(o),this.dpr=window.devicePixelRatio,this.canvasWidth=i.width,this.canvasHeight=i.height,this.context=a,this.color=e instanceof Bt?e:new Bt(e),this.autoSelect=n,this.dwellTime=r,this.rippleDuration=500,this.position.z=-10,this.center.set(.5,.5),this.scale.set(.5,.5,1),this.startTimestamp=null,this.timerId=null,this.callback=null,this.frustumCulled=!1,this.updateCanvasArcByProgress(0)}setColor(e){this.material.color.copy(e instanceof Bt?e:new Bt(e))}static createCanvasTexture(e){const n=new yfe(e);return n.minFilter=Qr,n.magFilter=Qr,n.generateMipmaps=!1,n}static createCanvas(e){const i=document.createElement("canvas"),a=i.getContext("2d");return i.width=32*e,i.height=32*e,a.scale(e,e),a.shadowBlur=5,a.shadowColor="rgba(200,200,200,0.9)",{canvas:i,context:a}}updateCanvasArcByProgress(e){const n=this.context,{canvasWidth:r,canvasHeight:i,material:a}=this,o=this.dpr,s=e*Math.PI*2,l=this.color.getStyle(),c=r*.5/o,u=i*.5/o,d=3;n.clearRect(0,0,r,i),n.beginPath(),e===0?(n.arc(c,u,r/16,0,2*Math.PI),n.fillStyle=l,n.fill()):(n.arc(c,u,r/4-d,-Math.PI/2,-Math.PI/2+s),n.strokeStyle=l,n.lineWidth=d,n.stroke()),n.closePath(),a.map.needsUpdate=!0}ripple(){const e=this.context,{canvasWidth:n,canvasHeight:r,material:i}=this,a=this.rippleDuration,o=performance.now(),s=this.color,l=this.dpr,c=n*.5/l,u=r*.5/l,d=()=>{const f=window.requestAnimationFrame(d),h=(performance.now()-o)/a,v=1-h>0?1-h:0,b=h*n*.5/l;e.clearRect(0,0,n,r),e.beginPath(),e.arc(c,u,b,0,Math.PI*2),e.fillStyle=`rgba(${s.r*255}, ${s.g*255}, ${s.b*255}, ${v})`,e.fill(),e.closePath(),h>=1&&(window.cancelAnimationFrame(f),this.updateCanvasArcByProgress(0),this.dispatchEvent({type:"reticle-ripple-end"})),i.map.needsUpdate=!0};this.dispatchEvent({type:"reticle-ripple-start"}),d()}show(){this.visible=!0}hide(){this.visible=!1}start(e){this.autoSelect&&(this.dispatchEvent({type:"reticle-start"}),this.startTimestamp=performance.now(),this.callback=e,this.update())}end(){this.startTimestamp&&(window.cancelAnimationFrame(this.timerId),this.updateCanvasArcByProgress(0),this.callback=null,this.timerId=null,this.startTimestamp=null,this.dispatchEvent({type:"reticle-end"}))}update(){this.timerId=window.requestAnimationFrame(this.update.bind(this));const n=(performance.now()-this.startTimestamp)/this.dwellTime;this.updateCanvasArcByProgress(n),this.dispatchEvent({type:"reticle-update",progress:n}),n>=1&&(window.cancelAnimationFrame(this.timerId),this.callback&&this.callback(),this.end(),this.ripple())}}function Xjt(t,e){return e={exports:{}},t(e,e.exports),e.exports}var Cr=Xjt(function(t,e){var n=function(){this._tweens={},this._tweensAddedDuringUpdate={}};n.prototype={getAll:function(){return Object.keys(this._tweens).map(function(i){return this._tweens[i]}.bind(this))},removeAll:function(){this._tweens={}},add:function(i){this._tweens[i.getId()]=i,this._tweensAddedDuringUpdate[i.getId()]=i},remove:function(i){delete this._tweens[i.getId()],delete this._tweensAddedDuringUpdate[i.getId()]},update:function(i,a){var o=Object.keys(this._tweens);if(o.length===0)return!1;for(i=i!==void 0?i:r.now();o.length>0;){this._tweensAddedDuringUpdate={};for(var s=0;s"u"&&typeof process<"u"&&process.hrtime?r.now=function(){var i=process.hrtime();return i[0]*1e3+i[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?r.now=self.performance.now.bind(self.performance):Date.now!==void 0?r.now=Date.now:r.now=function(){return new Date().getTime()},r.Tween=function(i,a){this._object=i,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._repeat=0,this._repeatDelayTime=void 0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=null,this._easingFunction=r.Easing.Linear.None,this._interpolationFunction=r.Interpolation.Linear,this._chainedTweens=[],this._onStartCallback=null,this._onStartCallbackFired=!1,this._onUpdateCallback=null,this._onRepeatCallback=null,this._onCompleteCallback=null,this._onStopCallback=null,this._group=a||r,this._id=r.nextId()},r.Tween.prototype={getId:function(){return this._id},isPlaying:function(){return this._isPlaying},to:function(i,a){return this._valuesEnd=i,a!==void 0&&(this._duration=a),this},duration:function(a){return this._duration=a,this},start:function(i){this._group.add(this),this._isPlaying=!0,this._onStartCallbackFired=!1,this._startTime=i!==void 0?typeof i=="string"?r.now()+parseFloat(i):i:r.now(),this._startTime+=this._delayTime;for(var a in this._valuesEnd){if(this._valuesEnd[a]instanceof Array){if(this._valuesEnd[a].length===0)continue;this._valuesEnd[a]=[this._object[a]].concat(this._valuesEnd[a])}this._object[a]!==void 0&&(this._valuesStart[a]=this._object[a],this._valuesStart[a]instanceof Array||(this._valuesStart[a]*=1),this._valuesStartRepeat[a]=this._valuesStart[a]||0)}return this},stop:function(){return this._isPlaying?(this._group.remove(this),this._isPlaying=!1,this._onStopCallback!==null&&this._onStopCallback(this._object),this.stopChainedTweens(),this):this},end:function(){return this.update(1/0),this},stopChainedTweens:function(){for(var i=0,a=this._chainedTweens.length;i1?1:o,s=this._easingFunction(o);for(a in this._valuesEnd)if(this._valuesStart[a]!==void 0){var l=this._valuesStart[a]||0,c=this._valuesEnd[a];c instanceof Array?this._object[a]=this._interpolationFunction(c,s):(typeof c=="string"&&(c.charAt(0)==="+"||c.charAt(0)==="-"?c=l+parseFloat(c):c=parseFloat(c)),typeof c=="number"&&(this._object[a]=l+(c-l)*s))}if(this._onUpdateCallback!==null&&this._onUpdateCallback(this._object,o),o===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(a in this._valuesStartRepeat){if(typeof this._valuesEnd[a]=="string"&&(this._valuesStartRepeat[a]=this._valuesStartRepeat[a]+parseFloat(this._valuesEnd[a])),this._yoyo){var u=this._valuesStartRepeat[a];this._valuesStartRepeat[a]=this._valuesEnd[a],this._valuesEnd[a]=u}this._valuesStart[a]=this._valuesStartRepeat[a]}return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=i+this._repeatDelayTime:this._startTime=i+this._delayTime,this._onRepeatCallback!==null&&this._onRepeatCallback(this._object),!0}else{this._onCompleteCallback!==null&&this._onCompleteCallback(this._object);for(var d=0,f=this._chainedTweens.length;d1?c(i[o],i[o-1],o-s):c(i[l],i[l+1>o?o:l+1],s-l)},Bezier:function(i,a){for(var o=0,s=i.length-1,l=Math.pow,c=r.Interpolation.Utils.Bernstein,u=0;u<=s;u++)o+=l(1-a,s-u)*l(a,u)*i[u]*c(s,u);return o},CatmullRom:function(i,a){var o=i.length-1,s=o*a,l=Math.floor(s),c=r.Interpolation.Utils.CatmullRom;return i[0]===i[o]?(a<0&&(l=Math.floor(s=o*(1+a))),c(i[(l-1+o)%o],i[l],i[(l+1)%o],i[(l+2)%o],s-l)):a<0?i[0]-(c(i[0],i[0],i[1],i[1],-s)-i[0]):a>1?i[o]-(c(i[o],i[o],i[o-1],i[o-1],s-o)-i[o]):c(i[l?l-1:0],i[l],i[o1;s--)o*=s;return i[a]=o,o}}(),CatmullRom:function(i,a,o,s,l){var c=(o-i)*.5,u=(s-a)*.5,d=l*l,f=l*d;return(2*a-2*o+c+u)*f+(-3*a+3*o-2*c-u)*d+c*l+a}}},function(i){t.exports=r}()});class gf extends Q5{constructor(e=300,n,r){super();const i=500,a=1.3;n=n||Ma.Info,this.type="infospot",this.animated=r!==void 0?r:!0,this.isHovering=!1,this.frustumCulled=!1,this.element=null,this.toPanorama=null,this.cursorStyle=null,this.mode=Pi.NORMAL,this.scale.set(e,e,1),this.rotation.y=Math.PI,this.container=null,this.originalRaycast=this.raycast,this.HANDLER_FOCUS=null,this.material.side=qh,this.material.depthTest=!1,this.material.transparent=!0,this.material.opacity=0,this.scaleUpAnimation=new Cr.Tween,this.scaleDownAnimation=new Cr.Tween;const o=function(s){if(!this.material)return;const l=s.image.width/s.image.height,c=new Ce;s.image.width=s.image.naturalWidth||64,s.image.height=s.image.naturalHeight||64,this.scale.set(l*e,e,1),c.copy(this.scale),this.scaleUpAnimation=new Cr.Tween(this.scale).to({x:c.x*a,y:c.y*a},i).easing(Cr.Easing.Elastic.Out),this.scaleDownAnimation=new Cr.Tween(this.scale).to({x:c.x,y:c.y},i).easing(Cr.Easing.Elastic.Out),this.material.map=s,this.material.needsUpdate=!0}.bind(this);this.showAnimation=new Cr.Tween(this.material).to({opacity:1},i).onStart(this.enableRaycast.bind(this,!0)).easing(Cr.Easing.Quartic.Out),this.hideAnimation=new Cr.Tween(this.material).to({opacity:0},i).onStart(this.enableRaycast.bind(this,!1)).easing(Cr.Easing.Quartic.Out),this.addEventListener("click",this.onClick),this.addEventListener("hover",this.onHover),this.addEventListener("hoverenter",this.onHoverStart),this.addEventListener("hoverleave",this.onHoverEnd),this.addEventListener("panolens-dual-eye-effect",this.onDualEyeEffect),this.addEventListener("panolens-container",this.setContainer.bind(this)),this.addEventListener("dismiss",this.onDismiss),this.addEventListener("panolens-infospot-focus",this.setFocusMethod),cH.load(n,o)}setContainer(e){let n;e instanceof HTMLElement?n=e:e&&e.container&&(n=e.container),n&&this.element&&n.appendChild(this.element),this.container=n}getContainer(){return this.container}onClick(e){this.element&&this.getContainer()&&(this.onHoverStart(e),this.lockHoverElement())}onDismiss(){this.element&&(this.unlockHoverElement(),this.onHoverEnd())}onHover(){}onHoverStart(e){if(!this.getContainer())return;const n=this.cursorStyle||(this.mode===Pi.NORMAL?"pointer":"default"),{scaleDownAnimation:r,scaleUpAnimation:i,element:a}=this;if(this.isHovering=!0,this.container.style.cursor=n,this.animated&&(r.stop(),i.start()),a&&e.mouseEvent.clientX>=0&&e.mouseEvent.clientY>=0){const{left:o,right:s,style:l}=a;this.mode===Pi.CARDBOARD||this.mode===Pi.STEREO?(l.display="none",o.style.display="block",s.style.display="block",a._width=o.clientWidth,a._height=o.clientHeight):(l.display="block",o&&(o.style.display="none"),s&&(s.style.display="none"),a._width=a.clientWidth,a._height=a.clientHeight)}}onHoverEnd(){if(!this.getContainer())return;const{scaleDownAnimation:e,scaleUpAnimation:n,element:r}=this;if(this.isHovering=!1,this.container.style.cursor="default",this.animated&&(n.stop(),e.start()),r&&!this.element.locked){const{left:i,right:a,style:o}=r;o.display="none",i&&(i.style.display="none"),a&&(a.style.display="none"),this.unlockHoverElement()}}onDualEyeEffect(e){if(!this.getContainer())return;let n,r,i;this.mode=e.mode,n=this.element,r=this.container.clientWidth/2,i=this.container.clientHeight/2,n&&(!n.left&&!n.right&&(n.left=n.cloneNode(!0),n.right=n.cloneNode(!0)),this.mode===Pi.CARDBOARD||this.mode===Pi.STEREO?(n.left.style.display=n.style.display,n.right.style.display=n.style.display,n.style.display="none"):(n.style.display=n.left.style.display,n.left.style.display="none",n.right.style.display="none"),this.translateElement(r,i),this.container.appendChild(n.left),this.container.appendChild(n.right))}translateElement(e,n){if(!this.element._width||!this.element._height||!this.getContainer())return;let r,i,a,o,s,l,c;c=this.container,a=this.element,o=a._width/2,s=a._height/2,l=a.verticalDelta!==void 0?a.verticalDelta:40,r=e-o,i=n-s-l,(this.mode===Pi.CARDBOARD||this.mode===Pi.STEREO)&&a.left&&a.right&&!(e===c.clientWidth/2&&n===c.clientHeight/2)?(r=c.clientWidth/4-o+(e-c.clientWidth/2),i=c.clientHeight/2-s-l+(n-c.clientHeight/2),this.setElementStyle("transform",a.left,"translate("+r+"px, "+i+"px)"),r+=c.clientWidth/2,this.setElementStyle("transform",a.right,"translate("+r+"px, "+i+"px)")):this.setElementStyle("transform",a,"translate("+r+"px, "+i+"px)")}setElementStyle(e,n,r){const i=n.style;e==="transform"&&(i.webkitTransform=i.msTransform=i.transform=r)}setText(e){this.element&&(this.element.textContent=e)}setCursorHoverStyle(e){this.cursorStyle=e}addHoverText(e,n=40){this.element||(this.element=document.createElement("div"),this.element.style.display="none",this.element.style.color="#fff",this.element.style.top=0,this.element.style.maxWidth="50%",this.element.style.maxHeight="50%",this.element.style.textShadow="0 0 3px #000000",this.element.style.fontFamily='"Trebuchet MS", Helvetica, sans-serif',this.element.style.position="absolute",this.element.classList.add("panolens-infospot"),this.element.verticalDelta=n),this.setText(e)}addHoverElement(e,n=40){this.element||(this.element=e.cloneNode(!0),this.element.style.display="none",this.element.style.top=0,this.element.style.position="absolute",this.element.classList.add("panolens-infospot"),this.element.verticalDelta=n)}removeHoverElement(){this.element&&(this.element.left&&(this.container.removeChild(this.element.left),this.element.left=null),this.element.right&&(this.container.removeChild(this.element.right),this.element.right=null),this.container.removeChild(this.element),this.element=null)}lockHoverElement(){this.element&&(this.element.locked=!0)}unlockHoverElement(){this.element&&(this.element.locked=!1)}enableRaycast(e=!0){e?this.raycast=this.originalRaycast:this.raycast=()=>{}}show(e=0){const{animated:n,hideAnimation:r,showAnimation:i,material:a}=this;n?(r.stop(),i.delay(e).start()):(this.enableRaycast(!0),a.opacity=1)}hide(e=0){const{animated:n,hideAnimation:r,showAnimation:i,material:a,element:o}=this;if(o){const{style:s}=o;s.display="none"}n?(i.stop(),r.delay(e).start()):(this.enableRaycast(!1),a.opacity=0)}setFocusMethod(e){e&&(this.HANDLER_FOCUS=e.method)}focus(e,n){this.HANDLER_FOCUS&&(this.HANDLER_FOCUS(this.position,e,n),this.onDismiss())}dispose(){const{geometry:e,material:n}=this,{map:r}=n;this.removeHoverElement(),this.parent&&this.parent.remove(this),r&&(r.dispose(),n.map=null),e&&(e.dispose(),this.geometry=null),n&&(n.dispose(),this.material=null)}}class Zjt extends kl{constructor(e){super(),e||console.warn("PANOLENS.Widget: No container specified"),this.DEFAULT_TRANSITION="all 0.27s ease",this.TOUCH_ENABLED=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch),this.PREVENT_EVENT_HANDLER=function(n){n.preventDefault(),n.stopPropagation()},this.container=e,this.barElement=null,this.fullscreenElement=null,this.videoElement=null,this.settingElement=null,this.mainMenu=null,this.activeMainItem=null,this.activeSubMenu=null,this.mask=null}addControlBar(){if(!this.container){console.warn("Widget container not set");return}var e=this,n,r,i,a;a="linear-gradient(bottom, rgba(0,0,0,0.2), rgba(0,0,0,0))",n=document.createElement("div"),n.style.width="100%",n.style.height="44px",n.style.float="left",n.style.transform=n.style.webkitTransform=n.style.msTransform="translateY(-100%)",n.style.background="-webkit-"+a,n.style.background="-moz-"+a,n.style.background="-o-"+a,n.style.background="-ms-"+a,n.style.background=a,n.style.transition=this.DEFAULT_TRANSITION,n.style.pointerEvents="none",n.isHidden=!1,n.toggle=function(){n.isHidden=!n.isHidden,r=n.isHidden?"translateY(0)":"translateY(-100%)",i=n.isHidden?0:1,n.style.transform=n.style.webkitTransform=n.style.msTransform=r,n.style.opacity=i};var o=this.createDefaultMenu();this.mainMenu=this.createMainMenu(o),n.appendChild(this.mainMenu);var s=this.createMask();this.mask=s,this.container.appendChild(s),n.dispose=function(){e.fullscreenElement&&(n.removeChild(e.fullscreenElement),e.fullscreenElement.dispose(),e.fullscreenElement=null),e.settingElement&&(n.removeChild(e.settingElement),e.settingElement.dispose(),e.settingElement=null),e.videoElement&&(n.removeChild(e.videoElement),e.videoElement.dispose(),e.videoElement=null)},this.container.appendChild(n),this.mask.addEventListener("mousemove",this.PREVENT_EVENT_HANDLER,!0),this.mask.addEventListener("mouseup",this.PREVENT_EVENT_HANDLER,!0),this.mask.addEventListener("mousedown",this.PREVENT_EVENT_HANDLER,!0),this.mask.addEventListener(e.TOUCH_ENABLED?"touchend":"click",function(l){l.preventDefault(),l.stopPropagation(),e.mask.hide(),e.settingElement.deactivate()},!1),this.addEventListener("control-bar-toggle",n.toggle),this.barElement=n}createDefaultMenu(){var e=this,n;return n=function(r,i){return function(){e.dispatchEvent({type:"panolens-viewer-handler",method:r,data:i})}},[{title:"Control",subMenu:[{title:this.TOUCH_ENABLED?"Touch":"Mouse",handler:n("enableControl",QA.ORBIT)},{title:"Sensor",handler:n("enableControl",QA.DEVICEORIENTATION)}]},{title:"Mode",subMenu:[{title:"Normal",handler:n("disableEffect")},{title:"Cardboard",handler:n("enableEffect",Pi.CARDBOARD)},{title:"Stereoscopic",handler:n("enableEffect",Pi.STEREO)}]}]}addControlButton(e){let n;switch(e){case"fullscreen":n=this.createFullscreenButton(),this.fullscreenElement=n;break;case"setting":n=this.createSettingButton(),this.settingElement=n;break;case"video":n=this.createVideoControl(),this.videoElement=n;break;default:return}n&&this.barElement.appendChild(n)}createMask(){const e=document.createElement("div");return e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.width="100%",e.style.height="100%",e.style.background="transparent",e.style.display="none",e.show=function(){this.style.display="block"},e.hide=function(){this.style.display="none"},e}createSettingButton(){let e=this,n;function r(i){i.preventDefault(),i.stopPropagation(),e.mainMenu.toggle(),this.activated?this.deactivate():this.activate()}return n=this.createCustomItem({style:{backgroundImage:'url("'+Ma.Setting+'")',webkitTransition:this.DEFAULT_TRANSITION,transition:this.DEFAULT_TRANSITION},onTap:r}),n.activate=function(){this.style.transform="rotate3d(0,0,1,90deg)",this.activated=!0,e.mask.show()},n.deactivate=function(){this.style.transform="rotate3d(0,0,0,0)",this.activated=!1,e.mask.hide(),e.mainMenu&&e.mainMenu.visible&&e.mainMenu.hide(),e.activeSubMenu&&e.activeSubMenu.visible&&e.activeSubMenu.hide(),e.mainMenu&&e.mainMenu._width&&(e.mainMenu.changeSize(e.mainMenu._width),e.mainMenu.unslideAll())},n.activated=!1,n}createFullscreenButton(){let e=this,n,r=!1,i=!0,a;const{container:o}=this;if(a="panolens-style-addon",!document.fullscreenEnabled&&!document.webkitFullscreenEnabled&&!document.mozFullScreenEnabled&&!document.msFullscreenEnabled)return;function s(c){c.preventDefault(),c.stopPropagation(),i=!1,r?(document.exitFullscreen&&document.exitFullscreen(),document.msExitFullscreen&&document.msExitFullscreen(),document.mozCancelFullScreen&&document.mozCancelFullScreen(),document.webkitExitFullscreen&&document.webkitExitFullscreen(),r=!1):(o.requestFullscreen&&o.requestFullscreen(),o.msRequestFullscreen&&o.msRequestFullscreen(),o.mozRequestFullScreen&&o.mozRequestFullScreen(),o.webkitRequestFullscreen&&o.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT),r=!0),this.style.backgroundImage=r?'url("'+Ma.FullscreenLeave+'")':'url("'+Ma.FullscreenEnter+'")'}function l(){i&&(r=!r,n.style.backgroundImage=r?'url("'+Ma.FullscreenLeave+'")':'url("'+Ma.FullscreenEnter+'")'),e.dispatchEvent({type:"panolens-viewer-handler",method:"onWindowResize"}),i=!0}if(document.addEventListener("fullscreenchange",l,!1),document.addEventListener("webkitfullscreenchange",l,!1),document.addEventListener("mozfullscreenchange",l,!1),document.addEventListener("MSFullscreenChange",l,!1),n=this.createCustomItem({style:{backgroundImage:'url("'+Ma.FullscreenEnter+'")'},onTap:s}),!document.querySelector(a)){const c=document.createElement("style");c.id=a,c.innerHTML=":-webkit-full-screen { width: 100% !important; height: 100% !important }",document.body.appendChild(c)}return n}createVideoControl(){const e=document.createElement("span");return e.style.display="none",e.show=function(){e.style.display=""},e.hide=function(){e.style.display="none",e.controlButton.paused=!0,e.controlButton.update()},e.controlButton=this.createVideoControlButton(),e.seekBar=this.createVideoControlSeekbar(),e.appendChild(e.controlButton),e.appendChild(e.seekBar),e.dispose=function(){e.removeChild(e.controlButton),e.removeChild(e.seekBar),e.controlButton.dispose(),e.controlButton=null,e.seekBar.dispose(),e.seekBar=null},this.addEventListener("video-control-show",e.show),this.addEventListener("video-control-hide",e.hide),e}createVideoControlButton(){const e=this;function n(i){i.preventDefault(),i.stopPropagation(),e.dispatchEvent({type:"panolens-viewer-handler",method:"toggleVideoPlay",data:!this.paused}),this.paused=!this.paused,r.update()}const r=this.createCustomItem({style:{float:"left",backgroundImage:'url("'+Ma.VideoPlay+'")'},onTap:n});return r.paused=!0,r.update=function(i){this.paused=i!==void 0?i:this.paused,this.style.backgroundImage='url("'+(this.paused?Ma.VideoPlay:Ma.VideoPause)+'")'},r}createVideoControlSeekbar(){let e=this,n,r,i,a=!1,o,s,l;r=document.createElement("div"),r.style.width="0%",r.style.height="100%",r.style.backgroundColor="#fff",i=document.createElement("div"),i.style.float="right",i.style.width="14px",i.style.height="14px",i.style.transform="translate(7px, -5px)",i.style.borderRadius="50%",i.style.backgroundColor="#ddd",i.addEventListener("mousedown",c,{passive:!0}),i.addEventListener("touchstart",c,{passive:!0});function c(b){b.stopPropagation(),a=!0,o=b.clientX||b.changedTouches&&b.changedTouches[0].clientX,s=parseInt(r.style.width)/100,f()}function u(b){a&&(l=((b.clientX||b.changedTouches&&b.changedTouches[0].clientX)-o)/n.clientWidth,l=s+l,l=l>1?1:l<0?0:l,n.setProgress(l),e.dispatchEvent({type:"panolens-viewer-handler",method:"setVideoCurrentTime",data:l}))}function d(b){b.stopPropagation(),a=!1,p()}function f(){e.container.addEventListener("mousemove",u,{passive:!0}),e.container.addEventListener("mouseup",d,{passive:!0}),e.container.addEventListener("touchmove",u,{passive:!0}),e.container.addEventListener("touchend",d,{passive:!0})}function p(){e.container.removeEventListener("mousemove",u,!1),e.container.removeEventListener("mouseup",d,!1),e.container.removeEventListener("touchmove",u,!1),e.container.removeEventListener("touchend",d,!1)}function h(b){if(b.preventDefault(),b.stopPropagation(),b.target===i)return;const g=b.changedTouches&&b.changedTouches.length>0?(b.changedTouches[0].pageX-b.target.getBoundingClientRect().left)/this.clientWidth:b.offsetX/this.clientWidth;e.dispatchEvent({type:"panolens-viewer-handler",method:"setVideoCurrentTime",data:g}),n.setProgress(b.offsetX/this.clientWidth)}function v(){p(),r=null,i=null}return r.appendChild(i),n=this.createCustomItem({style:{float:"left",width:"30%",height:"4px",marginTop:"20px",backgroundColor:"rgba(188,188,188,0.8)"},onTap:h,onDispose:v}),n.appendChild(r),n.setProgress=function(b){r.style.width=b*100+"%"},this.addEventListener("video-update",function(b){n.setProgress(b.percentage)}),n.progressElement=r,n.progressElementControl=i,n}createMenuItem(e){const n=this,r=document.createElement("a");return r.textContent=e,r.style.display="block",r.style.padding="10px",r.style.textDecoration="none",r.style.cursor="pointer",r.style.pointerEvents="auto",r.style.transition=this.DEFAULT_TRANSITION,r.slide=function(i){this.style.transform="translateX("+(i?"":"-")+"100%)"},r.unslide=function(){this.style.transform="translateX(0)"},r.setIcon=function(i){this.icon&&(this.icon.style.backgroundImage="url("+i+")")},r.setSelectionTitle=function(i){this.selection&&(this.selection.textContent=i)},r.addSelection=function(i){const a=document.createElement("span");return a.style.fontSize="13px",a.style.fontWeight="300",a.style.float="right",this.selection=a,this.setSelectionTitle(i),this.appendChild(a),this},r.addIcon=function(i=Ma.ChevronRight,a=!1,o=!1){const s=document.createElement("span");return s.style.float=a?"left":"right",s.style.width="17px",s.style.height="17px",s.style["margin"+(a?"Right":"Left")]="12px",s.style.backgroundSize="cover",o&&(s.style.transform="rotateZ(180deg)"),this.icon=s,this.setIcon(i),this.appendChild(s),this},r.addSubMenu=function(i,a){return this.subMenu=n.createSubMenu(i,a),this},r.addEventListener("mouseenter",function(){this.style.backgroundColor="#e0e0e0"},!1),r.addEventListener("mouseleave",function(){this.style.backgroundColor="#fafafa"},!1),r}createMenuItemHeader(e){const n=this.createMenuItem(e);return n.style.borderBottom="1px solid #333",n.style.paddingBottom="15px",n}createMainMenu(e){let n=this,r=this.createMenu();r._width=200,r.changeSize(r._width);function i(l){l.preventDefault(),l.stopPropagation();let c=n.mainMenu,u=this.subMenu;function d(){c.changeSize(u.clientWidth),u.show(),u.unslideAll()}c.hide(),c.slideAll(),c.parentElement.appendChild(u),n.activeMainItem=this,n.activeSubMenu=u,window.requestAnimationFrame(d)}for(var a=0;a0){var s=e[a].subMenu[0].title;o.addSelection(s).addSubMenu(e[a].title,e[a].subMenu)}}return r}createSubMenu(e,n){let r=this,i,a=this.createMenu();a.items=n,a.activeItem=null;function o(s){s.preventDefault(),s.stopPropagation(),i=r.mainMenu,i.changeSize(i._width),i.unslideAll(),i.show(),a.slideAll(!0),a.hide(),this.type!=="header"&&(a.setActiveItem(this),r.activeMainItem.setSelectionTitle(this.textContent),this.handler&&this.handler())}a.addHeader(e).addIcon(void 0,!0,!0).addEventListener(r.TOUCH_ENABLED?"touchend":"click",o,!1);for(let s=0;s1){for(var r=0;r800&&window.innerWidth<=1280?e=this.ImageQualityMedium:window.innerWidth>1280&&window.innerWidth<=1920?e=this.ImageQualityHigh:window.innerWidth>1920?e=this.ImageQualitySuperHigh:e=this.ImageQualityLow,e}updateTexture(e){this.material.map=e,this.material.needsUpdate=!0}toggleInfospotVisibility(e,n){n=n!==void 0?n:0;const r=e!==void 0?e:!this.isInfospotVisible;this.traverse(function(i){i instanceof gf&&(r?i.show(n):i.hide(n))}),this.isInfospotVisible=r,this.infospotAnimation.onComplete(function(){this.dispatchEvent({type:"infospot-animation-complete",visible:r})}.bind(this)).delay(n).start()}setLinkingImage(e,n){this.linkingImageURL=e,this.linkingImageScale=n}link(e,n,r,i){let a,o;if(this.visible=!0,!n){console.warn("Please specify infospot position for linking");return}r!==void 0?a=r:e.linkingImageScale!==void 0?a=e.linkingImageScale:a=300,i?o=i:e.linkingImageURL?o=e.linkingImageURL:o=Ma.Arrow;const s=new gf(a,o);s.position.copy(n),s.toPanorama=e,s.addEventListener("click",function(){this.dispatchEvent({type:"panolens-viewer-handler",method:"setPanorama",data:e})}.bind(this)),this.linkedSpots.push(s),this.add(s),this.visible=!1}reset(){this.children.length=0}setupTransitions(){this.fadeInAnimation=new Cr.Tween(this.material).easing(Cr.Easing.Quartic.Out).onStart(function(){this.visible=!0,this.dispatchEvent({type:"enter-fade-start"})}.bind(this)),this.fadeOutAnimation=new Cr.Tween(this.material).easing(Cr.Easing.Quartic.Out).onComplete(function(){this.visible=!1,this.dispatchEvent({type:"leave-complete"})}.bind(this)),this.enterTransition=new Cr.Tween(this).easing(Cr.Easing.Quartic.Out).onComplete(function(){this.dispatchEvent({type:"enter-complete"})}.bind(this)).start(),this.leaveTransition=new Cr.Tween(this).easing(Cr.Easing.Quartic.Out)}onFadeAnimationUpdate(){const e=this.material.opacity,{uniforms:n}=this.material;n&&n.opacity&&(n.opacity.value=e)}fadeIn(e){e=e>=0?e:this.animationDuration,this.fadeOutAnimation.stop(),this.fadeInAnimation.to({opacity:1},e).onUpdate(this.onFadeAnimationUpdate.bind(this)).onComplete(function(){this.toggleInfospotVisibility(!0,e/2),this.dispatchEvent({type:"enter-fade-complete"})}.bind(this)).start()}fadeOut(e){e=e>=0?e:this.animationDuration,this.fadeInAnimation.stop(),this.fadeOutAnimation.to({opacity:0},e).onUpdate(this.onFadeAnimationUpdate.bind(this)).start()}onEnter(){const e=this.animationDuration;this.leaveTransition.stop(),this.enterTransition.to({},e).onStart(function(){this.dispatchEvent({type:"enter-start"}),this.loaded?this.fadeIn(e):this.load()}.bind(this)).start(),this.dispatchEvent({type:"enter"}),this.children.forEach(n=>{n.dispatchEvent({type:"panorama-enter"})}),this.active=!0}onLeave(){const e=this.animationDuration;this.enterTransition.stop(),this.leaveTransition.to({},e).onStart(function(){this.dispatchEvent({type:"leave-start"}),this.fadeOut(e),this.toggleInfospotVisibility(!1)}.bind(this)).start(),this.dispatchEvent({type:"leave"}),this.children.forEach(n=>{n.dispatchEvent({type:"panorama-leave"})}),this.active=!1}dispose(){this.infospotAnimation.stop(),this.fadeInAnimation.stop(),this.fadeOutAnimation.stop(),this.enterTransition.stop(),this.leaveTransition.stop(),this.dispatchEvent({type:"panolens-viewer-handler",method:"onPanoramaDispose",data:this});function e(n){const{geometry:r,material:i}=n;for(var a=n.children.length-1;a>=0;a--)e(n.children[a]),n.remove(n.children[a]);n instanceof gf&&n.dispose(),r&&(r.dispose(),n.geometry=null),i&&(i.dispose(),n.material=null)}e(this),this.parent&&this.parent.remove(this)}}class e8t extends Yc{constructor(e,n,r){const a=n||new vx(5e3,60,40),o=r||new mm({opacity:0,transparent:!0});super(a,o),this.src=e,this.radius=5e3}load(e){if(e=e||this.src,e)typeof e=="string"?cH.load(e,this.onLoad.bind(this),this.onProgress.bind(this),this.onError.bind(this)):e instanceof HTMLImageElement&&this.onLoad(new Si(e));else{console.warn("Image source undefined");return}}onLoad(e){e.minFilter=e.magFilter=Qr,e.needsUpdate=!0,this.updateTexture(e),window.requestAnimationFrame(Yc.prototype.onLoad.bind(this))}reset(){Yc.prototype.reset.call(this)}dispose(){const{material:{map:e}}=this;Fo.remove(this.src),e&&e.dispose(),Yc.prototype.dispose.call(this)}}class Mb extends Yc{constructor(e,n={}){const i=new vx(5e3,60,40),a=new mm({opacity:0,transparent:!0});super(i,a),this.src=e,this.options={videoElement:document.createElement("video"),loop:!0,muted:!0,autoplay:!1,playsinline:!0,crossOrigin:"anonymous"},Object.assign(this.options,n),this.videoElement=this.options.videoElement,this.videoProgress=0,this.radius=5e3,this.addEventListener("leave",this.pauseVideo.bind(this)),this.addEventListener("enter-fade-start",this.resumeVideoProgress.bind(this)),this.addEventListener("video-toggle",this.toggleVideo.bind(this)),this.addEventListener("video-time",this.setVideoCurrentTime.bind(this))}isMobile(){let e=!1;return function(n){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(e=!0)}(window.navigator.userAgent||window.navigator.vendor||window.opera),e}load(){const{muted:e,loop:n,autoplay:r,playsinline:i,crossOrigin:a}=this.options,o=this.videoElement,s=this.material,l=this.onProgress.bind(this),c=this.onLoad.bind(this);o.loop=n,o.autoplay=r,o.playsinline=i,o.crossOrigin=a,o.muted=e,i&&(o.setAttribute("playsinline",""),o.setAttribute("webkit-playsinline",""));const u=function(){this.setVideoTexture(o),r&&this.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!1}),this.isMobile()&&(o.pause(),r&&e?this.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!1}):this.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!0}));const d=()=>{s.map.needsUpdate=!0,l({loaded:1,total:1}),c()};window.requestAnimationFrame(d)};if(o.readyState>2)u.call(this);else{if(o.querySelectorAll("source").length===0){const d=document.createElement("source");d.src=this.src,o.appendChild(d)}o.load()}o.addEventListener("loadeddata",u.bind(this)),o.addEventListener("timeupdate",function(){this.videoProgress=o.duration>=0?o.currentTime/o.duration:0,this.dispatchEvent({type:"panolens-viewer-handler",method:"onVideoUpdate",data:this.videoProgress})}.bind(this)),o.addEventListener("ended",function(){n||(this.resetVideo(),this.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!0}))}.bind(this),!1)}setVideoTexture(e){if(!e)return;const n=new Z5(e);n.minFilter=Qr,n.magFilter=Qr,n.format=ru,this.updateTexture(n)}reset(){this.videoElement=void 0,Yc.prototype.reset.call(this)}isVideoPaused(){return this.videoElement.paused}toggleVideo(){const e=this.videoElement;e&&e[e.paused?"play":"pause"]()}setVideoCurrentTime({percentage:e}){const n=this.videoElement;n&&!Number.isNaN(e)&&e!==1&&(n.currentTime=n.duration*e,this.dispatchEvent({type:"panolens-viewer-handler",method:"onVideoUpdate",data:e}))}playVideo(){const e=this.videoElement,n=this.playVideo.bind(this),r=this.dispatchEvent.bind(this),i=()=>{r({type:"play"})},a=o=>{window.requestAnimationFrame(n),r({type:"play-error",error:o})};e&&e.paused&&e.play().then(i).catch(a)}pauseVideo(){const e=this.videoElement;e&&!e.paused&&e.pause(),this.dispatchEvent({type:"pause"})}resumeVideoProgress(){const e=this.videoElement;e.readyState>=4&&e.autoplay&&!this.isMobile()?(this.playVideo(),this.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!1})):(this.pauseVideo(),this.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!0})),this.setVideoCurrentTime({percentage:this.videoProgress})}resetVideo(){this.videoElement&&this.setVideoCurrentTime({percentage:0})}isVideoMuted(){return this.videoElement.muted}muteVideo(){const e=this.videoElement;e&&!e.muted&&(e.muted=!0),this.dispatchEvent({type:"volumechange"})}unmuteVideo(){const e=this.videoElement;e&&this.isVideoMuted()&&(e.muted=!1),this.dispatchEvent({type:"volumechange"})}getVideoElement(){return this.videoElement}dispose(){const{material:{map:e}}=this;this.pauseVideo(),this.removeEventListener("leave",this.pauseVideo.bind(this)),this.removeEventListener("enter-fade-start",this.resumeVideoProgress.bind(this)),this.removeEventListener("video-toggle",this.toggleVideo.bind(this)),this.removeEventListener("video-time",this.setVideoCurrentTime.bind(this)),e&&e.dispose(),Yc.prototype.dispose.call(this)}}function xQ(t={}){this._parameters=t,this._zoom=null,this._panoId=null,this._panoClient=new google.maps.StreetViewService,this._count=0,this._total=0,this._canvas=[],this._ctx=[],this._wc=0,this._hc=0,this.result=null,this.rotation=0,this.copyright="",this.onSizeChange=null,this.onPanoramaLoad=null,this.levelsW=[1,2,4,7,13,26],this.levelsH=[1,1,2,4,7,13],this.widths=[416,832,1664,3328,6656,13312],this.heights=[416,416,832,1664,3328,6656],this.maxW=6656,this.maxH=6656;let e;try{const n=document.createElement("canvas");e=n.getContext("experimental-webgl"),e||(e=n.getContext("webgl"))}catch{}this.maxW=Math.max(e.getParameter(e.MAX_TEXTURE_SIZE),this.maxW),this.maxH=Math.max(e.getParameter(e.MAX_TEXTURE_SIZE),this.maxH)}Object.assign(xQ.prototype,{constructor:xQ,setProgress:function(t,e){this.onProgress&&this.onProgress({loaded:t,total:e})},adaptTextureToZoom:function(){const t=this.widths[this._zoom],e=this.heights[this._zoom],n=this.maxW,r=this.maxH;this._wc=Math.ceil(t/n),this._hc=Math.ceil(e/r);for(let i=0;ir||8*(1-I.dot(this.object.quaternion))>r)&&(Z!==!0&&this.dispatchEvent(K),T.copy(this.object.position),I.copy(this.object.quaternion))},this.reset=function(){H=B.NONE,this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(K),this.update()},this.getPolarAngle=function(){return g},this.getAzimuthalAngle=function(){return b};function q(){return 2*Math.PI/60/60*n.autoRotateSpeed}function z(){return Math.pow(.95,n.zoomSpeed)}function ne(Z){if(R=!1,P=M=0,n.enabled!==!1){if(Z.preventDefault(),Z.button===n.mouseButtons.ORBIT){if(n.noRotate===!0)return;H=B.ROTATE,a.set(Z.clientX,Z.clientY)}else if(Z.button===n.mouseButtons.ZOOM){if(n.noZoom===!0)return;H=B.DOLLY,p.set(Z.clientX,Z.clientY)}else if(Z.button===n.mouseButtons.PAN){if(n.noPan===!0)return;H=B.PAN,l.set(Z.clientX,Z.clientY)}H!==B.NONE&&(document.addEventListener("mousemove",G,!1),document.addEventListener("mouseup",te,!1),n.dispatchEvent(le)),n.update()}}function G(Z){if(n.enabled!==!1){Z.preventDefault();var _e=n.domElement===document?n.domElement.body:n.domElement;if(H===B.ROTATE){if(n.noRotate===!0)return;o.set(Z.clientX,Z.clientY),s.subVectors(o,a),n.rotateLeft(2*Math.PI*s.x/_e.clientWidth*n.rotateSpeed),n.rotateUp(2*Math.PI*s.y/_e.clientHeight*n.rotateSpeed),a.copy(o),N&&(P=Z.clientX-N.clientX,M=Z.clientY-N.clientY),N=Z}else if(H===B.DOLLY){if(n.noZoom===!0)return;h.set(Z.clientX,Z.clientY),v.subVectors(h,p),v.y>0?n.dollyIn():v.y<0&&n.dollyOut(),p.copy(h)}else if(H===B.PAN){if(n.noPan===!0)return;c.set(Z.clientX,Z.clientY),u.subVectors(c,l),n.pan(u.x,u.y),l.copy(c)}H!==B.NONE&&n.update()}}function te(){R=!0,N=void 0,n.enabled!==!1&&(document.removeEventListener("mousemove",G,!1),document.removeEventListener("mouseup",te,!1),n.dispatchEvent(U),H=B.NONE)}function Y(Z){if(n.enabled===!1||n.noZoom===!0||H!==B.NONE)return;Z.preventDefault(),Z.stopPropagation();var _e=0;Z.wheelDelta!==void 0?_e=Z.wheelDelta:Z.detail!==void 0&&(_e=-Z.detail);const Me=_e>0,Ne=_e<0;(n.revertZoomScrollDirection?!Me:Me)?(n.object.fov=n.object.fovn.minFov?n.object.fov-1:n.minFov,n.object.updateProjectionMatrix()),n.update(),n.dispatchEvent(K),n.dispatchEvent(le),n.dispatchEvent(U)}function fe(Z){switch(Z.keyCode){case n.keys.UP:O=!1;break;case n.keys.BOTTOM:D=!1;break;case n.keys.LEFT:L=!1;break;case n.keys.RIGHT:k=!1;break}}function pe(Z){if(!(n.enabled===!1||n.noKeys===!0||n.noRotate===!0)){switch(Z.keyCode){case n.keys.UP:O=!0;break;case n.keys.BOTTOM:D=!0;break;case n.keys.LEFT:L=!0;break;case n.keys.RIGHT:k=!0;break}(O||D||L||k)&&(R=!0,O&&(M=-n.rotateSpeed*n.momentumKeydownFactor),D&&(M=n.rotateSpeed*n.momentumKeydownFactor),L&&(P=-n.rotateSpeed*n.momentumKeydownFactor),k&&(P=n.rotateSpeed*n.momentumKeydownFactor))}}function de(Z){if(R=!1,P=M=0,n.enabled!==!1){switch(Z.touches.length){case 1:if(n.noRotate===!0)return;H=B.TOUCH_ROTATE,a.set(Z.touches[0].pageX,Z.touches[0].pageY);break;case 2:if(n.noZoom===!0)return;H=B.TOUCH_DOLLY;var _e=Z.touches[0].pageX-Z.touches[1].pageX,Me=Z.touches[0].pageY-Z.touches[1].pageY,Ne=Math.sqrt(_e*_e+Me*Me);p.set(0,Ne);break;case 3:if(n.noPan===!0)return;H=B.TOUCH_PAN,l.set(Z.touches[0].pageX,Z.touches[0].pageY);break;default:H=B.NONE}H!==B.NONE&&n.dispatchEvent(le)}}function se(Z){if(n.enabled!==!1){Z.preventDefault(),Z.stopPropagation();var _e=n.domElement===document?n.domElement.body:n.domElement;switch(Z.touches.length){case 1:if(n.noRotate===!0||H!==B.TOUCH_ROTATE)return;o.set(Z.touches[0].pageX,Z.touches[0].pageY),s.subVectors(o,a),n.rotateLeft(2*Math.PI*s.x/_e.clientWidth*n.rotateSpeed),n.rotateUp(2*Math.PI*s.y/_e.clientHeight*n.rotateSpeed),a.copy(o),N&&(P=Z.touches[0].pageX-N.pageX,M=Z.touches[0].pageY-N.pageY),N={pageX:Z.touches[0].pageX,pageY:Z.touches[0].pageY},n.update();break;case 2:if(n.noZoom===!0||H!==B.TOUCH_DOLLY)return;var Me=Z.touches[0].pageX-Z.touches[1].pageX,Ne=Z.touches[0].pageY-Z.touches[1].pageY,ge=Math.sqrt(Me*Me+Ne*Ne);h.set(0,ge),v.subVectors(h,p),v.y<0?(n.object.fov=n.object.fov0&&(n.object.fov=n.object.fov>n.minFov?n.object.fov-1:n.minFov,n.object.updateProjectionMatrix()),p.copy(h),n.update(),n.dispatchEvent(K);break;case 3:if(n.noPan===!0||H!==B.TOUCH_PAN)return;c.set(Z.touches[0].pageX,Z.touches[0].pageY),u.subVectors(c,l),n.pan(u.x,u.y),l.copy(c),n.update();break;default:H=B.NONE}}}function me(){R=!0,N=void 0,n.enabled!==!1&&(n.dispatchEvent(U),H=B.NONE)}this.dispose=function(){this.domElement.removeEventListener("mousedown",ne),this.domElement.removeEventListener("mousewheel",Y),this.domElement.removeEventListener("DOMMouseScroll",Y),this.domElement.removeEventListener("touchstart",de),this.domElement.removeEventListener("touchend",me),this.domElement.removeEventListener("touchmove",se),window.removeEventListener("keyup",fe),window.removeEventListener("keydown",pe)},this.domElement.addEventListener("mousedown",ne,{passive:!1}),this.domElement.addEventListener("mousewheel",Y,{passive:!1}),this.domElement.addEventListener("DOMMouseScroll",Y,{passive:!1}),this.domElement.addEventListener("touchstart",de,{passive:!1}),this.domElement.addEventListener("touchend",me,{passive:!1}),this.domElement.addEventListener("touchmove",se,{passive:!1}),window.addEventListener("keyup",fe,{passive:!1}),window.addEventListener("keydown",pe,{passive:!1}),this.update()}G3.prototype=Object.assign(Object.create(kl.prototype),{constructor:G3});function W3(t,e){var n=this,r={type:"change"},i=0,a=0,o=0,s=0;this.camera=t,this.camera.rotation.reorder("YXZ"),this.domElement=e!==void 0?e:document,this.enabled=!0,this.deviceOrientation={},this.screenOrientation=0,this.alpha=0,this.alphaOffsetAngle=0;var l=function(p){n.deviceOrientation=p},c=function(){n.screenOrientation=window.orientation||0},u=function(p){p.preventDefault(),p.stopPropagation(),o=p.touches[0].pageX,s=p.touches[0].pageY},d=function(p){p.preventDefault(),p.stopPropagation(),i+=ff.degToRad((p.touches[0].pageX-o)/4),a+=ff.degToRad((s-p.touches[0].pageY)/4),n.updateAlphaOffsetAngle(i),o=p.touches[0].pageX,s=p.touches[0].pageY},f=function(p,h,v,b,g){var y=new Ce(0,0,1),w=new hm,x=new Hi,S=new Hi(-Math.sqrt(.5),0,0,Math.sqrt(.5)),T,I=new Hi,P=new Hi;n.screenOrientation==0?(T=new Ce(1,0,0),I.setFromAxisAngle(T,-a)):n.screenOrientation==180?(T=new Ce(1,0,0),I.setFromAxisAngle(T,a)):n.screenOrientation==90?(T=new Ce(0,1,0),I.setFromAxisAngle(T,a)):n.screenOrientation==-90&&(T=new Ce(0,1,0),I.setFromAxisAngle(T,-a)),S.multiply(I),S.multiply(P),w.set(v,h,-b,"YXZ"),p.setFromEuler(w),p.multiply(S),p.multiply(x.setFromAxisAngle(y,-g))};this.connect=function(){c(),window.addEventListener("orientationchange",c,{passive:!0}),window.addEventListener("deviceorientation",l,{passive:!0}),window.addEventListener("deviceorientation",this.update.bind(this),{passive:!0}),n.domElement.addEventListener("touchstart",u,{passive:!1}),n.domElement.addEventListener("touchmove",d,{passive:!1}),n.enabled=!0},this.disconnect=function(){window.removeEventListener("orientationchange",c,!1),window.removeEventListener("deviceorientation",l,!1),window.removeEventListener("deviceorientation",this.update.bind(this),!1),n.domElement.removeEventListener("touchstart",u,!1),n.domElement.removeEventListener("touchmove",d,!1),n.enabled=!1},this.update=function(p){if(n.enabled!==!1){var h=n.deviceOrientation.alpha?ff.degToRad(n.deviceOrientation.alpha)+n.alphaOffsetAngle:0,v=n.deviceOrientation.beta?ff.degToRad(n.deviceOrientation.beta):0,b=n.deviceOrientation.gamma?ff.degToRad(n.deviceOrientation.gamma):0,g=n.screenOrientation?ff.degToRad(n.screenOrientation):0;f(n.camera.quaternion,h,v,b,g),n.alpha=h,p!==!0&&n.dispatchEvent(r)}},this.updateAlphaOffsetAngle=function(p){this.alphaOffsetAngle=p,this.update()},this.dispose=function(){this.disconnect()},this.connect()}W3.prototype=Object.assign(Object.create(kl.prototype),{constructor:W3});class n8t{constructor(e){var n=new wh(-1,1,1,-1,0,1),r=new H1,i=new Lfe;i.aspect=.5;var a={minFilter:Qr,magFilter:Oi,format:zi},o=new Es(512,512,a);o.scissorTest=!0,o.texture.generateMipmaps=!1;var s=new dt(.441,.156),l=new tP(1,1,10,20).removeAttribute("normal").toNonIndexed(),c=l.attributes.position.array,u=l.attributes.uv.array;l.attributes.position.count*=2,l.attributes.uv.count*=2;var d=new Float32Array(c.length*2);d.set(c),d.set(c,c.length);var f=new Float32Array(u.length*2);f.set(u),f.set(u,u.length);for(var p=new dt,h=c.length/3,v=0,b=d.length/3;v1){for(let n=0;n{n.addControlButton(r)}),this.widget=n}setPanorama(e){const n=this.panorama;if(e.type==="panorama"&&n!==e){this.hideInfospot();const r=function(){n&&n.onLeave(),e.removeEventListener("enter-fade-start",r)};e.addEventListener("enter-fade-start",r),(this.panorama=e).onEnter()}}eventHandler(e){e.method&&this[e.method]&&this[e.method](e.data)}dispatchEventToChildren(e){this.scene.traverse(function(n){n.dispatchEvent&&n.dispatchEvent(e)})}activateWidgetItem(e,n){if(!this.widget)return;const r=this.widget.mainMenu,i=r.children[0],a=r.children[1];let o;if(e!==void 0){switch(e){case 0:o=i.subMenu.children[1];break;case 1:o=i.subMenu.children[2];break;default:o=i.subMenu.children[1];break}i.subMenu.setActiveItem(o),i.setSelectionTitle(o.textContent)}if(n!==void 0){switch(n){case Pi.CARDBOARD:o=a.subMenu.children[2];break;case Pi.STEREO:o=a.subMenu.children[3];break;default:o=a.subMenu.children[1];break}a.subMenu.setActiveItem(o),a.setSelectionTitle(o.textContent)}}enableEffect(e){if(this.mode===e)return;if(e===Pi.NORMAL){this.disableEffect();return}else this.mode=e;const n=this.camera.fov;switch(e){case Pi.CARDBOARD:this.effect=this.CardboardEffect,this.enableReticleControl();break;case Pi.STEREO:this.effect=this.StereoEffect,this.enableReticleControl();break;default:this.effect=null,this.disableReticleControl();break}this.activateWidgetItem(void 0,this.mode),this.dispatchEventToChildren({type:"panolens-dual-eye-effect",mode:this.mode}),this.camera.fov=n+.01,this.effect.setSize(this.container.clientWidth,this.container.clientHeight),this.render(),this.camera.fov=n,this.dispatchEvent({type:"mode-change",mode:this.mode})}disableEffect(){this.mode!==Pi.NORMAL&&(this.mode=Pi.NORMAL,this.disableReticleControl(),this.activateWidgetItem(void 0,this.mode),this.dispatchEventToChildren({type:"panolens-dual-eye-effect",mode:this.mode}),this.renderer.setSize(this.container.clientWidth,this.container.clientHeight),this.render(),this.dispatchEvent({type:"mode-change",mode:this.mode}))}enableReticleControl(){this.reticle.visible||(this.tempEnableReticle=!0,this.unregisterMouseAndTouchEvents(),this.reticle.show(),this.registerReticleEvent(),this.updateReticleEvent())}disableReticleControl(){this.tempEnableReticle=!1,this.options.enableReticle?this.updateReticleEvent():(this.reticle.hide(),this.unregisterReticleEvent(),this.registerMouseAndTouchEvents())}enableAutoRate(){this.options.autoRotate=!0,this.OrbitControls.autoRotate=!0}disableAutoRate(){clearTimeout(this.autoRotateRequestId),this.options.autoRotate=!1,this.OrbitControls.autoRotate=!1}toggleVideoPlay(e){this.panorama instanceof Mb&&this.panorama.dispatchEvent({type:"video-toggle",pause:e})}setVideoCurrentTime(e){this.panorama instanceof Mb&&this.panorama.dispatchEvent({type:"video-time",percentage:e})}onVideoUpdate(e){const{widget:n}=this;n&&n.dispatchEvent({type:"video-update",percentage:e})}addUpdateCallback(e){e&&this.updateCallbacks.push(e)}removeUpdateCallback(e){const n=this.updateCallbacks.indexOf(e);e&&n>=0&&this.updateCallbacks.splice(n,1)}showVideoWidget(){const{widget:e}=this;e&&e.dispatchEvent({type:"video-control-show"})}hideVideoWidget(){const{widget:e}=this;e&&e.dispatchEvent({type:"video-control-hide"})}updateVideoPlayButton(e){const{widget:n}=this;n&&n.videoElement&&n.videoElement.controlButton&&n.videoElement.controlButton.update(e)}addPanoramaEventListener(e){e.addEventListener("enter-fade-start",this.setCameraControl.bind(this)),e instanceof Mb&&(e.addEventListener("enter-fade-start",this.showVideoWidget.bind(this)),e.addEventListener("leave",function(){this.panorama instanceof Mb||this.hideVideoWidget.call(this)}.bind(this)))}setCameraControl(){this.OrbitControls.target.copy(this.panorama.position)}getControl(){return this.control}getScene(){return this.scene}getCamera(){return this.camera}getRenderer(){return this.renderer}getContainer(){return this.container}getControlId(){return this.control.id}getNextControlId(){return this.controls[this.getNextControlIndex()].id}getNextControlIndex(){const e=this.controls,n=this.control,r=e.indexOf(n)+1;return r>=e.length?0:r}setCameraFov(e){this.camera.fov=e,this.camera.updateProjectionMatrix()}enableControl(e){switch(e=e>=0&&eMath.PI?a-2*Math.PI:a,a=a<-Math.PI?a+2*Math.PI:a,o=Math.abs(l.angleTo(s)+(l.y*u.y<=0?u.angleTo(c):-u.angleTo(c))),o*=u.y0){const n=e[0].point.clone(),r=new Ce(-1,1,1),i=this.panorama.getWorldPosition(new Ce);n.sub(i).multiply(r);const a={x:n.x.toFixed(2),y:n.y.toFixed(2),z:n.z.toFixed(2)},o=`${a.x}, ${a.y}, ${a.z}`;if(n.length()===0)return;switch(this.options.output){case"event":this.dispatchEvent({type:"position-output",position:a});break;case"console":console.info(o);break;case"overlay":this.outputDivElement.textContent=o;break}}}onMouseDown(e){e.preventDefault(),this.userMouse.x=e.clientX>=0?e.clientX:e.touches[0].clientX,this.userMouse.y=e.clientY>=0?e.clientY:e.touches[0].clientY,this.userMouse.type="mousedown",this.onTap(e)}onMouseMove(e){e.preventDefault(),this.userMouse.type="mousemove",this.onTap(e)}onMouseUp(e){let n=!1;this.userMouse.type="mouseup";const r=this.userMouse.x>=e.clientX-this.options.clickTolerance&&this.userMouse.x<=e.clientX+this.options.clickTolerance&&this.userMouse.y>=e.clientY-this.options.clickTolerance&&this.userMouse.y<=e.clientY+this.options.clickTolerance||e.changedTouches&&this.userMouse.x>=e.changedTouches[0].clientX-this.options.clickTolerance&&this.userMouse.x<=e.changedTouches[0].clientX+this.options.clickTolerance&&this.userMouse.y>=e.changedTouches[0].clientY-this.options.clickTolerance&&this.userMouse.y<=e.changedTouches[0].clientY+this.options.clickTolerance?"click":void 0;if(!(e&&e.target&&!e.target.classList.contains("panolens-canvas"))&&(e.preventDefault(),e.changedTouches&&e.changedTouches.length===1?n=this.onTap({clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY},r):n=this.onTap(e,r),this.userMouse.type="none",!n&&r==="click")){const{options:{autoHideInfospot:i,autoHideControlBar:a},panorama:o,toggleControlBar:s}=this;i&&o&&o.toggleInfospotVisibility(),a&&s()}}onTap(e,n){const{left:r,top:i}=this.container.getBoundingClientRect(),{clientWidth:a,clientHeight:o}=this.container;if(this.raycasterPoint.x=(e.clientX-r)/a*2-1,this.raycasterPoint.y=-((e.clientY-i)/o)*2+1,this.raycaster.setFromCamera(this.raycasterPoint,this.camera),!this.panorama)return;(e.type!=="mousedown"&&this.touchSupported||this.OUTPUT_INFOSPOT)&&this.outputPosition();const s=this.raycaster.intersectObjects(this.panorama.children,!0),l=this.getConvertedIntersect(s),c=s.length>0?s[0].object:void 0;if(this.userMouse.type==="mouseup"&&(l&&this.pressEntityObject===l&&this.pressEntityObject.dispatchEvent&&this.pressEntityObject.dispatchEvent({type:"pressstop-entity",mouseEvent:e}),this.pressEntityObject=void 0),this.userMouse.type==="mouseup"&&(c&&this.pressObject===c&&this.pressObject.dispatchEvent&&this.pressObject.dispatchEvent({type:"pressstop",mouseEvent:e}),this.pressObject=void 0),n==="click"?(this.panorama.dispatchEvent({type:"click",intersects:s,mouseEvent:e}),l&&l.dispatchEvent&&l.dispatchEvent({type:"click-entity",mouseEvent:e}),c&&c.dispatchEvent&&c.dispatchEvent({type:"click",mouseEvent:e})):(this.panorama.dispatchEvent({type:"hover",intersects:s,mouseEvent:e}),(this.hoverObject&&s.length>0&&this.hoverObject!==l||this.hoverObject&&s.length===0)&&(this.hoverObject.dispatchEvent&&(this.hoverObject.dispatchEvent({type:"hoverleave",mouseEvent:e}),this.reticle.end()),this.hoverObject=void 0),l&&s.length>0&&(this.hoverObject!==l&&(this.hoverObject=l,this.hoverObject.dispatchEvent&&(this.hoverObject.dispatchEvent({type:"hoverenter",mouseEvent:e}),(this.options.autoReticleSelect&&this.options.enableReticle||this.tempEnableReticle)&&this.reticle.start(this.onTap.bind(this,e,"click")))),this.userMouse.type==="mousedown"&&this.pressEntityObject!=l&&(this.pressEntityObject=l,this.pressEntityObject.dispatchEvent&&this.pressEntityObject.dispatchEvent({type:"pressstart-entity",mouseEvent:e})),this.userMouse.type==="mousedown"&&this.pressObject!=c&&(this.pressObject=c,this.pressObject.dispatchEvent&&this.pressObject.dispatchEvent({type:"pressstart",mouseEvent:e})),(this.userMouse.type==="mousemove"||this.options.enableReticle)&&(c&&c.dispatchEvent&&c.dispatchEvent({type:"hover",mouseEvent:e}),this.pressEntityObject&&this.pressEntityObject.dispatchEvent&&this.pressEntityObject.dispatchEvent({type:"pressmove-entity",mouseEvent:e}),this.pressObject&&this.pressObject.dispatchEvent&&this.pressObject.dispatchEvent({type:"pressmove",mouseEvent:e}))),!l&&this.pressEntityObject&&this.pressEntityObject.dispatchEvent&&(this.pressEntityObject.dispatchEvent({type:"pressstop-entity",mouseEvent:e}),this.pressEntityObject=void 0),!c&&this.pressObject&&this.pressObject.dispatchEvent&&(this.pressObject.dispatchEvent({type:"pressstop",mouseEvent:e}),this.pressObject=void 0)),c&&c instanceof gf){if(this.infospot=c,n==="click")return!0}else this.infospot&&this.hideInfospot();this.options.autoRotate&&this.userMouse.type!=="mousemove"&&(clearTimeout(this.autoRotateRequestId),this.control===this.OrbitControls&&(this.OrbitControls.autoRotate=!1,this.autoRotateRequestId=window.setTimeout(this.enableAutoRate.bind(this),this.options.autoRotateActivationDuration)))}getConvertedIntersect(e){let n;for(let r=0;r=0&&e[r].object&&!e[r].object.passThrough){if(e[r].object.entity&&e[r].object.entity.passThrough)continue;if(e[r].object.entity&&!e[r].object.entity.passThrough){n=e[r].object.entity;break}else{n=e[r].object;break}}return n}hideInfospot(){this.infospot&&(this.infospot.onHoverEnd(),this.infospot=void 0)}toggleControlBar(){const{widget:e}=this;e&&e.dispatchEvent({type:"control-bar-toggle"})}onKeyDown(e){this.options.output&&this.options.output!=="none"&&e.key==="Control"&&(this.OUTPUT_INFOSPOT=!0)}onKeyUp(){this.OUTPUT_INFOSPOT=!1}update(){Cr.update(),this.updateCallbacks.forEach(function(e){e()}),this.control.update(),this.scene.traverse(function(e){if(e instanceof gf&&e.element&&(this.hoverObject===e||e.element.style.display!=="none"||e.element.left&&e.element.left.style.display!=="none"||e.element.right&&e.element.right.style.display!=="none"))if(this.checkSpriteInViewport(e)){const{x:n,y:r}=this.getScreenVector(e.getWorldPosition(new Ce));e.translateElement(n,r)}else e.onDismiss()}.bind(this))}render(){this.mode===Pi.CARDBOARD||this.mode===Pi.STEREO?(this.renderer.clear(),this.effect.render(this.scene,this.camera),this.effect.render(this.sceneReticle,this.camera)):(this.renderer.clear(),this.renderer.render(this.scene,this.camera),this.renderer.clearDepth(),this.renderer.render(this.sceneReticle,this.camera))}animate(){this.requestAnimationId=window.requestAnimationFrame(this.animate.bind(this)),this.onChange()}onChange(){this.update(),this.render()}registerMouseAndTouchEvents(){const e={passive:!1};this.container.addEventListener("mousedown",this.HANDLER_MOUSE_DOWN,e),this.container.addEventListener("mousemove",this.HANDLER_MOUSE_MOVE,e),this.container.addEventListener("mouseup",this.HANDLER_MOUSE_UP,e),this.container.addEventListener("touchstart",this.HANDLER_MOUSE_DOWN,e),this.container.addEventListener("touchend",this.HANDLER_MOUSE_UP,e)}unregisterMouseAndTouchEvents(){this.container.removeEventListener("mousedown",this.HANDLER_MOUSE_DOWN,!1),this.container.removeEventListener("mousemove",this.HANDLER_MOUSE_MOVE,!1),this.container.removeEventListener("mouseup",this.HANDLER_MOUSE_UP,!1),this.container.removeEventListener("touchstart",this.HANDLER_MOUSE_DOWN,!1),this.container.removeEventListener("touchend",this.HANDLER_MOUSE_UP,!1)}registerReticleEvent(){this.addUpdateCallback(this.HANDLER_TAP)}unregisterReticleEvent(){this.removeUpdateCallback(this.HANDLER_TAP)}updateReticleEvent(){const e=this.container.clientWidth/2+this.container.offsetLeft,n=this.container.clientHeight/2;this.removeUpdateCallback(this.HANDLER_TAP),this.HANDLER_TAP=this.onTap.bind(this,{clientX:e,clientY:n}),this.addUpdateCallback(this.HANDLER_TAP)}registerEventListeners(){window.addEventListener("resize",this.HANDLER_WINDOW_RESIZE,!0),window.addEventListener("keydown",this.HANDLER_KEY_DOWN,!0),window.addEventListener("keyup",this.HANDLER_KEY_UP,!0)}unregisterEventListeners(){window.removeEventListener("resize",this.HANDLER_WINDOW_RESIZE,!0),window.removeEventListener("keydown",this.HANDLER_KEY_DOWN,!0),window.removeEventListener("keyup",this.HANDLER_KEY_UP,!0)}dispose(){this.tweenLeftAnimation.stop(),this.tweenUpAnimation.stop(),this.unregisterEventListeners();function e(n){for(let r=n.children.length-1;r>=0;r--)e(n.children[r]),n.remove(n.children[r]);n instanceof Yc||n instanceof gf?(n.dispose(),n=null):n.dispatchEvent&&n.dispatchEvent("dispose")}e(this.scene),this.widget&&(this.widget.dispose(),this.widget=null),Fo&&Fo.enabled&&Fo.clear()}destroy(){this.dispose(),this.render(),window.cancelAnimationFrame(this.requestAnimationId)}onPanoramaDispose(e){e instanceof Mb&&this.hideVideoWidget(),e===this.panorama&&(this.panorama=null)}loadAsyncRequest(e,n=()=>{}){const r=new window.XMLHttpRequest;r.onloadend=function(i){n(i)},r.open("GET",e,!0),r.send(null)}addViewIndicator(){const e=this;function n(r){if(r.loaded===0)return;const i=r.target.responseXML.documentElement;i.style.width=e.viewIndicatorSize+"px",i.style.height=e.viewIndicatorSize+"px",i.style.position="absolute",i.style.top="10px",i.style.left="10px",i.style.opacity="0.5",i.style.cursor="pointer",i.id="panolens-view-indicator-container",e.container.appendChild(i);const a=i.querySelector("#indicator"),o=function(){e.radius=e.viewIndicatorSize*.225,e.currentPanoAngle=e.camera.rotation.y-ff.degToRad(90),e.fovAngle=ff.degToRad(e.camera.fov),e.leftAngle=-e.currentPanoAngle-e.fovAngle/2,e.rightAngle=-e.currentPanoAngle+e.fovAngle/2,e.leftX=e.radius*Math.cos(e.leftAngle),e.leftY=e.radius*Math.sin(e.leftAngle),e.rightX=e.radius*Math.cos(e.rightAngle),e.rightY=e.radius*Math.sin(e.rightAngle),e.indicatorD="M "+e.leftX+" "+e.leftY+" A "+e.radius+" "+e.radius+" 0 0 1 "+e.rightX+" "+e.rightY,e.leftX&&e.leftY&&e.rightX&&e.rightY&&e.radius&&a.setAttribute("d",e.indicatorD)};e.addUpdateCallback(o);const s=function(){this.style.opacity="1"},l=function(){this.style.opacity="0.5"};i.addEventListener("mouseenter",s),i.addEventListener("mouseleave",l)}this.loadAsyncRequest(Ma.ViewIndicator,n)}appendControlItem(e){const n=this.widget.createCustomItem(e);return e.group==="video"?this.widget.videoElement.appendChild(n):this.widget.barElement.appendChild(n),n}clearAllCache(){Fo.clear()}}JD!=wQ&&console.warn(`three.js version is not matched. Please consider use the target revision ${wQ}`);window.TWEEN=Cr;const a8t="_container_1i4t9_1",o8t={container:a8t},s8t=()=>{const t=new URLSearchParams(window.location.search),e=Number(t.get("aaType")),n=Number(t.get("controlNumber"));return Hle({fileInfo:{aaType:e,controlNumber:n}},{onSuccess:async i=>{if(i!=null&&i.filePathList){const a=i==null?void 0:i.filePathList;let o="";for(let u=0;u{const t="/alpha/static";return E("div",{className:P2.main,style:{backgroundImage:`url(${t}/assets/images/jaraLoginPageBackgroundImg.jpg)`},children:re(gte,{component:"main",sx:{padding:"3rem",height:"100%"},children:[E(J$,{}),re(Va,{sx:{display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#ffffff95",height:"100%",borderRadius:"40px",padding:"2rem 1rem"},children:[E("div",{className:P2.title,children:"Welcome to TTCα!"}),re("div",{className:P2.inputArea,children:[E(xle,{isAdmin:!1}),E(gle,{})]}),E(hle,{})]})]})})},C8t=()=>($5(),E("div",{className:ft.jaraMain,children:E(Bde,{isAdmin:!1,children:E(yZ,{})})})),T8t=t=>{t.preventDefault()},gm=({children:t})=>E("div",{onContextMenu:e=>{T8t(e)},children:t}),A8t={path:"/alpha",element:E(KJe,{}),name:Zie,errorElement:E(OU,{}),showOnMenu:!1},$fe={path:Hv,element:E(JJe,{}),name:"ログイン",showOnMenu:!1},Bfe={path:kf,element:E(qlt,{}),name:"未翻訳号車一覧",showOnMenu:!0,active:t=>/^\/alpha\/admin\/translate/.test(t.pathname)},I8t={path:rB,element:E(Dit,{}),name:"未翻訳号車詳細",showOnMenu:!1},Ufe={path:Bte,element:E(Urt,{}),name:"出品情報履歴一覧",showOnMenu:!0,active:t=>/^\/alpha\/admin\/history/.test(t.pathname)},M8t={path:Wte,element:E(bKe,{}),name:"出品情報履歴詳細",showOnMenu:!1},Hfe={path:iB,element:E(WJe,{}),name:"パスワード変更",showOnMenu:!1},D8t={path:Kte,element:E(gm,{children:E(s8t,{})}),name:"パノラマ画像閲覧",showOnMenu:!1},P8t={path:bs,element:E(gm,{children:E(C8t,{})}),errorElement:E(OU,{}),name:"jara会員",showOnMenu:!1,children:Nde},R8t={path:ea,element:E(gm,{children:E(_$t,{})}),errorElement:E(OU,{}),name:"jara管理者",showOnMenu:!1,children:Lde},O8t={path:Iw,element:E(gm,{children:E(Mut,{})}),name:"管理者ログイン画面",showOnMenu:!1},N8t={path:Mw,element:E(gm,{children:E(S8t,{})}),name:"会員ログイン画面",showOnMenu:!1},L8t={path:`${bs}/${vr.CHANGE_PASSWORD}`,element:E(gm,{children:E(Ude,{})}),name:"会員パスワード変更画面",showOnMenu:!1},k8t={path:`${ea}/${tr.CHANGE_PASSWORD}`,element:E(gm,{children:E(Ude,{})}),name:"管理者パスワード変更画面",showOnMenu:!1},Vfe=[A8t,$fe,Bfe,Ufe,I8t,M8t,Hfe,P8t,R8t,O8t,N8t,L8t,k8t,D8t],F8t=VGe(Vfe);OL.createRoot(document.getElementById("root")).render(E(C.StrictMode,{children:E(exe,{preventDuplicate:!0,hideIconVariant:!0,maxSnack:1,style:{fontSize:"1.5rem",display:"flex",flexWrap:"nowrap"},anchorOrigin:{vertical:"top",horizontal:"center"},action:t=>E(l$e,{snackbarKey:t}),children:E(fCe,{children:E(XZ,{children:E(v$e,{children:E(pEe,{router:F8t})})})})})}))});export default $8t();