diff --git a/.lintstagedrc.cjs b/.lintstagedrc.cjs index 07e1fee..8654744 100644 --- a/.lintstagedrc.cjs +++ b/.lintstagedrc.cjs @@ -5,7 +5,7 @@ */ module.exports = { - '*.{[tj]s,[tj]sx,[cm]js}': ['eslint --fix'], - '*.json': ['prettier --write'], - '*.{css,scss}': ['stylelint --fix'], + '!(dist/**/*)*.{[tj]s,[tj]sx,[cm]js}': ['eslint --fix'], + '!(dist/**/*)*.json': ['prettier --write'], + '!(dist/**/*)*.{css,scss}': ['stylelint --fix'], }; diff --git a/dist/assets/index.06d0c3c7.css b/dist/assets/index.06d0c3c7.css new file mode 100644 index 0000000..97ca0d4 --- /dev/null +++ b/dist/assets/index.06d0c3c7.css @@ -0,0 +1 @@ +#root{text-align:center;width:100%;max-width:500px;margin:0 auto}.app{width:100%;margin:0 auto}.scene-container{width:100%;padding-bottom:100%;position:relative;margin:10% 0}.scene-inner{position:absolute;left:0;right:0;bottom:0;top:0;overflow:visible;font-size:28px}.symbol{width:12.5%;padding-bottom:12.5%;position:absolute;transition:.15s;left:0;top:0;border-radius:8px}.symbol-inner{position:absolute;left:0;right:0;bottom:0;top:0;display:flex;justify-content:center;align-items:center;border-radius:8px;border:2px solid #444;transition:.3s;overflow:hidden;user-select:none}.symbol-inner img{width:100%;height:100%;object-fit:contain}.queue-container{border-radius:8px;width:100%;padding-bottom:15%;border:2px solid gray;margin-bottom:16px}.flex-container{display:flex;gap:8px}.flex-center{justify-content:center;align-items:center}.flex-grow{flex-grow:1}.flex-between{justify-content:space-between;align-items:center}.modal{position:fixed;width:100vw;height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;backdrop-filter:blur(10px);background-color:#0000001a;top:0;left:0}.bgm-button{position:fixed;left:0;top:0;padding:4px;width:36px;height:36px}:root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0 32px}h1{font-size:3.2em;line-height:1.1}select{border:2px solid gray;border-radius:4px;padding:4px 8px}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s;word-break:keep-all;outline:none}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}} diff --git a/dist/assets/index.b8a4d413.js b/dist/assets/index.b8a4d413.js new file mode 100644 index 0000000..3d1901d --- /dev/null +++ b/dist/assets/index.b8a4d413.js @@ -0,0 +1,40 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();function ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J={exports:{}},M={};/** + * @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 er=Symbol.for("react.element"),sc=Symbol.for("react.portal"),ac=Symbol.for("react.fragment"),cc=Symbol.for("react.strict_mode"),fc=Symbol.for("react.profiler"),dc=Symbol.for("react.provider"),pc=Symbol.for("react.context"),mc=Symbol.for("react.forward_ref"),hc=Symbol.for("react.suspense"),vc=Symbol.for("react.memo"),gc=Symbol.for("react.lazy"),$u=Symbol.iterator;function yc(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var Gi={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zi=Object.assign,Ji={};function pt(e,n,t){this.props=e,this.context=n,this.refs=Ji,this.updater=t||Gi}pt.prototype.isReactComponent={};pt.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,n,"setState")};pt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qi(){}qi.prototype=pt.prototype;function Wo(e,n,t){this.props=e,this.context=n,this.refs=Ji,this.updater=t||Gi}var Ko=Wo.prototype=new qi;Ko.constructor=Wo;Zi(Ko,pt.prototype);Ko.isPureReactComponent=!0;var Au=Array.isArray,bi=Object.prototype.hasOwnProperty,Yo={current:null},es={key:!0,ref:!0,__self:!0,__source:!0};function ns(e,n,t){var r,l={},o=null,u=null;if(n!=null)for(r in n.ref!==void 0&&(u=n.ref),n.key!==void 0&&(o=""+n.key),n)bi.call(n,r)&&!es.hasOwnProperty(r)&&(l[r]=n[r]);var i=arguments.length-2;if(i===1)l.children=t;else if(1>>1,G=w[$];if(0>>1;$l(El,z))xnl(or,El)?(w[$]=or,w[xn]=z,$=xn):(w[$]=El,w[Ae]=z,$=Ae);else if(xnl(or,z))w[$]=or,w[xn]=z,$=xn;else break e}}return P}function l(w,P){var z=w.sortIndex-P.sortIndex;return z!==0?z:w.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,i=u.now();e.unstable_now=function(){return u.now()-i}}var s=[],c=[],h=1,m=null,p=3,y=!1,S=!1,k=!1,R=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(w){for(var P=t(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=w)r(c),P.sortIndex=P.expirationTime,n(s,P);else break;P=t(c)}}function v(w){if(k=!1,d(w),!S)if(t(s)!==null)S=!0,H(E);else{var P=t(c);P!==null&&b(v,P.startTime-w)}}function E(w,P){S=!1,k&&(k=!1,f(N),N=-1),y=!0;var z=p;try{for(d(P),m=t(s);m!==null&&(!(m.expirationTime>P)||w&&!he());){var $=m.callback;if(typeof $=="function"){m.callback=null,p=m.priorityLevel;var G=$(m.expirationTime<=P);P=e.unstable_now(),typeof G=="function"?m.callback=G:m===t(s)&&r(s),d(P)}else r(s);m=t(s)}if(m!==null)var Cn=!0;else{var Ae=t(c);Ae!==null&&b(v,Ae.startTime-P),Cn=!1}return Cn}finally{m=null,p=z,y=!1}}var _=!1,x=null,N=-1,Q=5,L=-1;function he(){return!(e.unstable_now()-Lw||125$?(w.sortIndex=z,n(c,w),t(s)===null&&w===t(c)&&(k?(f(N),N=-1):k=!0,b(v,z-$))):(w.sortIndex=G,n(s,w),S||y||(S=!0,H(E))),w},e.unstable_shouldYield=he,e.unstable_wrapCallback=function(w){var P=p;return function(){var z=p;p=P;try{return w.apply(this,arguments)}finally{p=z}}}})(ls);(function(e){e.exports=ls})(rs);/** + * @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 os=J.exports,Ce=rs.exports;function g(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jl=Object.prototype.hasOwnProperty,Cc=/^[: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]*$/,Vu={},Qu={};function xc(e){return Jl.call(Qu,e)?!0:Jl.call(Vu,e)?!1:Cc.test(e)?Qu[e]=!0:(Vu[e]=!0,!1)}function Nc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Pc(e,n,t,r){if(n===null||typeof n>"u"||Nc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function me(e,n,t,r,l,o,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=u}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ue[n]=new me(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ue[e]=new me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new me(e,5,!1,e.toLowerCase(),null,!1,!1)});var Go=/[\-:]([a-z])/g;function Zo(e){return e[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(e){var n=e.replace(Go,Zo);ue[n]=new me(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Go,Zo);ue[n]=new me(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Go,Zo);ue[n]=new me(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new me(e,1,!1,e.toLowerCase(),null,!1,!1)});ue.xlinkHref=new me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ue[e]=new me(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jo(e,n,t,r){var l=ue.hasOwnProperty(n)?ue[n]:null;(l!==null?l.type!==0:r||!(2i||l[u]!==o[i]){var s=` +`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=i);break}}}finally{Nl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?Ct(e):""}function zc(e){switch(e.tag){case 5:return Ct(e.type);case 16:return Ct("Lazy");case 13:return Ct("Suspense");case 19:return Ct("SuspenseList");case 0:case 2:case 15:return e=Pl(e.type,!1),e;case 11:return e=Pl(e.type.render,!1),e;case 1:return e=Pl(e.type,!0),e;default:return""}}function no(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qn:return"Fragment";case Vn:return"Portal";case ql:return"Profiler";case qo:return"StrictMode";case bl:return"Suspense";case eo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ss:return(e.displayName||"Context")+".Consumer";case is:return(e._context.displayName||"Context")+".Provider";case bo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case eu:return n=e.displayName||null,n!==null?n:no(e.type)||"Memo";case rn:n=e._payload,e=e._init;try{return no(e(n))}catch{}}return null}function Tc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return no(n);case 8:return n===qo?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cs(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Lc(e){var n=cs(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function sr(e){e._valueTracker||(e._valueTracker=Lc(e))}function fs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=cs(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Ir(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function to(e,n){var t=n.checked;return Y({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t!=null?t:e._wrapperState.initialChecked})}function Wu(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=yn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ds(e,n){n=n.checked,n!=null&&Jo(e,"checked",n,!1)}function ro(e,n){ds(e,n);var t=yn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?lo(e,n.type,t):n.hasOwnProperty("defaultValue")&&lo(e,n.type,yn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Ku(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function lo(e,n,t){(n!=="number"||Ir(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var xt=Array.isArray;function et(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=ar.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ut(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var zt={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},Mc=["Webkit","ms","Moz","O"];Object.keys(zt).forEach(function(e){Mc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),zt[n]=zt[e]})});function vs(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||zt.hasOwnProperty(e)&&zt[e]?(""+n).trim():n+"px"}function gs(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=vs(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Rc=Y({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 io(e,n){if(n){if(Rc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(g(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(g(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(g(61))}if(n.style!=null&&typeof n.style!="object")throw Error(g(62))}}function so(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ao=null;function nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var co=null,nt=null,tt=null;function Gu(e){if(e=rr(e)){if(typeof co!="function")throw Error(g(280));var n=e.stateNode;n&&(n=cl(n),co(e.stateNode,e.type,n))}}function ys(e){nt?tt?tt.push(e):tt=[e]:nt=e}function ws(){if(nt){var e=nt,n=tt;if(tt=nt=null,Gu(e),n)for(e=0;e>>=0,e===0?32:31-(Qc(e)/Hc|0)|0}var cr=64,fr=4194304;function Nt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ar(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,u=t&268435455;if(u!==0){var i=u&~l;i!==0?r=Nt(i):(o&=u,o!==0&&(r=Nt(o)))}else u=t&~l,u!==0?r=Nt(u):o!==0&&(r=Nt(o));if(r===0)return 0;if(n!==0&&n!==r&&(n&l)===0&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if((r&4)!==0&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function nr(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-je(n),e[n]=t}function Xc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Lt),li=String.fromCharCode(32),oi=!1;function $s(e,n){switch(e){case"keyup":return Ef.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function As(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function xf(e,n){switch(e){case"compositionend":return As(n);case"keypress":return n.which!==32?null:(oi=!0,li);case"textInput":return e=n.data,e===li&&oi?null:e;default:return null}}function Nf(e,n){if(Hn)return e==="compositionend"||!au&&$s(e,n)?(e=js(),Pr=uu=sn=null,Hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=ai(t)}}function Hs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Hs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ws(){for(var e=window,n=Ir();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Ir(e.document)}return n}function cu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Df(e){var n=Ws(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Hs(t.ownerDocument.documentElement,t)){if(r!==null&&cu(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ci(t,o);var u=ci(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Wn=null,go=null,Rt=null,yo=!1;function fi(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;yo||Wn==null||Wn!==Ir(r)||(r=Wn,"selectionStart"in r&&cu(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}),Rt&&Ht(Rt,r)||(Rt=r,r=Qr(go,"onSelect"),0Xn||(e.current=Co[Xn],Co[Xn]=null,Xn--)}function U(e,n){Xn++,Co[Xn]=e.current,e.current=n}var wn={},ce=kn(wn),ye=kn(!1),On=wn;function it(e,n){var t=e.type.contextTypes;if(!t)return wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function we(e){return e=e.childContextTypes,e!=null}function Wr(){B(ye),B(ce)}function yi(e,n,t){if(ce.current!==wn)throw Error(g(168));U(ce,n),U(ye,t)}function ea(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(g(108,Tc(e)||"Unknown",l));return Y({},t,r)}function Kr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wn,On=ce.current,U(ce,e),U(ye,ye.current),!0}function wi(e,n,t){var r=e.stateNode;if(!r)throw Error(g(169));t?(e=ea(e,n,On),r.__reactInternalMemoizedMergedChildContext=e,B(ye),B(ce),U(ce,e)):B(ye),U(ye,t)}var Ye=null,fl=!1,Bl=!1;function na(e){Ye===null?Ye=[e]:Ye.push(e)}function Yf(e){fl=!0,na(e)}function _n(){if(!Bl&&Ye!==null){Bl=!0;var e=0,n=j;try{var t=Ye;for(j=1;e>=u,l-=u,Xe=1<<32-je(n)+l|t<N?(Q=x,x=null):Q=x.sibling;var L=p(f,x,d[N],v);if(L===null){x===null&&(x=Q);break}e&&x&&L.alternate===null&&n(f,x),a=o(L,a,N),_===null?E=L:_.sibling=L,_=L,x=Q}if(N===d.length)return t(f,x),V&&Nn(f,N),E;if(x===null){for(;NN?(Q=x,x=null):Q=x.sibling;var he=p(f,x,L.value,v);if(he===null){x===null&&(x=Q);break}e&&x&&he.alternate===null&&n(f,x),a=o(he,a,N),_===null?E=he:_.sibling=he,_=he,x=Q}if(L.done)return t(f,x),V&&Nn(f,N),E;if(x===null){for(;!L.done;N++,L=d.next())L=m(f,L.value,v),L!==null&&(a=o(L,a,N),_===null?E=L:_.sibling=L,_=L);return V&&Nn(f,N),E}for(x=r(f,x);!L.done;N++,L=d.next())L=y(x,f,N,L.value,v),L!==null&&(e&&L.alternate!==null&&x.delete(L.key===null?N:L.key),a=o(L,a,N),_===null?E=L:_.sibling=L,_=L);return e&&x.forEach(function(En){return n(f,En)}),V&&Nn(f,N),E}function R(f,a,d,v){if(typeof d=="object"&&d!==null&&d.type===Qn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case ir:e:{for(var E=d.key,_=a;_!==null;){if(_.key===E){if(E=d.type,E===Qn){if(_.tag===7){t(f,_.sibling),a=l(_,d.props.children),a.return=f,f=a;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rn&&Ni(E)===_.type){t(f,_.sibling),a=l(_,d.props),a.ref=kt(f,_,d),a.return=f,f=a;break e}t(f,_);break}else n(f,_);_=_.sibling}d.type===Qn?(a=Fn(d.props.children,f.mode,v,d.key),a.return=f,f=a):(v=Dr(d.type,d.key,d.props,null,f.mode,v),v.ref=kt(f,a,d),v.return=f,f=v)}return u(f);case Vn:e:{for(_=d.key;a!==null;){if(a.key===_)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Gl(d,f.mode,v),a.return=f,f=a}return u(f);case rn:return _=d._init,R(f,a,_(d._payload),v)}if(xt(d))return S(f,a,d,v);if(vt(d))return k(f,a,d,v);yr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=Xl(d,f.mode,v),a.return=f,f=a),u(f)):t(f,a)}return R}var at=aa(!0),ca=aa(!1),lr={},We=kn(lr),Xt=kn(lr),Gt=kn(lr);function Mn(e){if(e===lr)throw Error(g(174));return e}function wu(e,n){switch(U(Gt,n),U(Xt,e),U(We,lr),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:uo(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=uo(n,e)}B(We),U(We,n)}function ct(){B(We),B(Xt),B(Gt)}function fa(e){Mn(Gt.current);var n=Mn(We.current),t=uo(n,e.type);n!==t&&(U(Xt,e),U(We,t))}function Su(e){Xt.current===e&&(B(We),B(Xt))}var W=kn(0);function qr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Vl=[];function ku(){for(var e=0;et?t:4,e(!0);var r=Ql.transition;Ql.transition={};try{e(!1),n()}finally{j=t,Ql.transition=r}}function Pa(){return Re().memoizedState}function Jf(e,n,t){var r=vn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},za(e))Ta(n,t);else if(t=oa(e,n,t,r),t!==null){var l=de();Ue(t,e,r,l),La(t,n,r)}}function qf(e,n,t){var r=vn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(za(e))Ta(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var u=n.lastRenderedState,i=o(u,t);if(l.hasEagerState=!0,l.eagerState=i,$e(i,u)){var s=n.interleaved;s===null?(l.next=l,gu(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=oa(e,n,l,r),t!==null&&(l=de(),Ue(t,e,r,l),La(t,n,r))}}function za(e){var n=e.alternate;return e===K||n!==null&&n===K}function Ta(e,n){Ft=br=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function La(e,n,t){if((t&4194240)!==0){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ru(e,t)}}var el={readContext:Me,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},bf={readContext:Me,useCallback:function(e,n){return Ve().memoizedState=[e,n===void 0?null:n],e},useContext:Me,useEffect:zi,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Mr(4194308,4,_a.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Mr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Mr(4,2,e,n)},useMemo:function(e,n){var t=Ve();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Ve();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Jf.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var n=Ve();return e={current:e},n.memoizedState=e},useState:Pi,useDebugValue:Nu,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=Pi(!1),n=e[0];return e=Zf.bind(null,e[1]),Ve().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=K,l=Ve();if(V){if(t===void 0)throw Error(g(407));t=t()}else{if(t=n(),re===null)throw Error(g(349));(In&30)!==0||ma(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,zi(va.bind(null,r,o,e),[e]),r.flags|=2048,qt(9,ha.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Ve(),n=re.identifierPrefix;if(V){var t=Ge,r=Xe;t=(r&~(1<<32-je(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Zt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Qe]=n,e[Yt]=r,$a(e,n,!1,!1),n.stateNode=e;e:{switch(u=so(t,r),t){case"dialog":A("cancel",e),A("close",e),l=r;break;case"iframe":case"object":case"embed":A("load",e),l=r;break;case"video":case"audio":for(l=0;ldt&&(n.flags|=128,r=!0,_t(o,!1),n.lanes=4194304)}else{if(!r)if(e=qr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),_t(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!V)return se(n),null}else 2*Z()-o.renderingStartTime>dt&&t!==1073741824&&(n.flags|=128,r=!0,_t(o,!1),n.lanes=4194304);o.isBackwards?(u.sibling=n.child,n.child=u):(t=o.last,t!==null?t.sibling=u:n.child=u,o.last=u)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=Z(),n.sibling=null,t=W.current,U(W,r?t&1|2:t&1),n):(se(n),null);case 22:case 23:return Ru(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&(n.mode&1)!==0?(ke&1073741824)!==0&&(se(n),n.subtreeFlags&6&&(n.flags|=8192)):se(n),null;case 24:return null;case 25:return null}throw Error(g(156,n.tag))}function id(e,n){switch(du(n),n.tag){case 1:return we(n.type)&&Wr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ct(),B(ye),B(ce),ku(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Su(n),null;case 13:if(B(W),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(g(340));st()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return B(W),null;case 4:return ct(),null;case 10:return vu(n.type._context),null;case 22:case 23:return Ru(),null;case 24:return null;default:return null}}var Sr=!1,ae=!1,sd=typeof WeakSet=="function"?WeakSet:Set,C=null;function qn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){X(e,n,r)}else t.current=null}function Io(e,n,t){try{t()}catch(r){X(e,n,r)}}var ji=!1;function ad(e,n){if(wo=Br,e=Ws(),cu(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var u=0,i=-1,s=-1,c=0,h=0,m=e,p=null;n:for(;;){for(var y;m!==t||l!==0&&m.nodeType!==3||(i=u+l),m!==o||r!==0&&m.nodeType!==3||(s=u+r),m.nodeType===3&&(u+=m.nodeValue.length),(y=m.firstChild)!==null;)p=m,m=y;for(;;){if(m===e)break n;if(p===t&&++c===l&&(i=u),p===o&&++h===r&&(s=u),(y=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=y}t=i===-1||s===-1?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(So={focusedElem:e,selectionRange:t},Br=!1,C=n;C!==null;)if(n=C,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,C=e;else for(;C!==null;){n=C;try{var S=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,R=S.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?k:Oe(n.type,k),R);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(g(163))}}catch(v){X(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,C=e;break}C=n.return}return S=ji,ji=!1,S}function Ot(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Io(n,t,o)}l=l.next}while(l!==r)}}function ml(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function jo(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Va(e){var n=e.alternate;n!==null&&(e.alternate=null,Va(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Qe],delete n[Yt],delete n[Eo],delete n[Wf],delete n[Kf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qa(e){return e.tag===5||e.tag===3||e.tag===4}function Ui(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Hr));else if(r!==4&&(e=e.child,e!==null))for(Uo(e,n,t),e=e.sibling;e!==null;)Uo(e,n,t),e=e.sibling}function $o(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($o(e,n,t),e=e.sibling;e!==null;)$o(e,n,t),e=e.sibling}var le=null,De=!1;function tn(e,n,t){for(t=t.child;t!==null;)Ha(e,n,t),t=t.sibling}function Ha(e,n,t){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(ul,t)}catch{}switch(t.tag){case 5:ae||qn(t,n);case 6:var r=le,l=De;le=null,tn(e,n,t),le=r,De=l,le!==null&&(De?(e=le,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):le.removeChild(t.stateNode));break;case 18:le!==null&&(De?(e=le,t=t.stateNode,e.nodeType===8?Al(e.parentNode,t):e.nodeType===1&&Al(e,t),Vt(e)):Al(le,t.stateNode));break;case 4:r=le,l=De,le=t.stateNode.containerInfo,De=!0,tn(e,n,t),le=r,De=l;break;case 0:case 11:case 14:case 15:if(!ae&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,u=o.destroy;o=o.tag,u!==void 0&&((o&2)!==0||(o&4)!==0)&&Io(t,n,u),l=l.next}while(l!==r)}tn(e,n,t);break;case 1:if(!ae&&(qn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(i){X(t,n,i)}tn(e,n,t);break;case 21:tn(e,n,t);break;case 22:t.mode&1?(ae=(r=ae)||t.memoizedState!==null,tn(e,n,t),ae=r):tn(e,n,t);break;default:tn(e,n,t)}}function $i(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new sd),n.forEach(function(r){var l=yd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function Fe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~o}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fd(r/1960))-r,10e?16:e,an===null)var r=!1;else{if(e=an,an=null,rl=0,(F&6)!==0)throw Error(g(331));var l=F;for(F|=4,C=e.current;C!==null;){var o=C,u=o.child;if((C.flags&16)!==0){var i=o.deletions;if(i!==null){for(var s=0;sZ()-Lu?Rn(e,0):Tu|=t),Se(e,n)}function qa(e,n){n===0&&((e.mode&1)===0?n=1:(n=fr,fr<<=1,(fr&130023424)===0&&(fr=4194304)));var t=de();e=be(e,n),e!==null&&(nr(e,n,t),Se(e,t))}function gd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),qa(e,t)}function yd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(g(314))}r!==null&&r.delete(n),qa(e,t)}var ba;ba=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||ye.current)ge=!0;else{if((e.lanes&t)===0&&(n.flags&128)===0)return ge=!1,od(e,n,t);ge=(e.flags&131072)!==0}else ge=!1,V&&(n.flags&1048576)!==0&&ta(n,Xr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Rr(e,n),e=n.pendingProps;var l=it(n,ce.current);lt(n,t),l=Eu(null,n,r,e,l,t);var o=Cu();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,we(r)?(o=!0,Kr(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,yu(n),l.updater=dl,n.stateNode=l,l._reactInternals=n,To(n,r,e,t),n=Ro(null,n,r,!0,o,t)):(n.tag=0,V&&o&&fu(n),fe(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Rr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Sd(r),e=Oe(r,e),l){case 0:n=Mo(null,n,r,e,t);break e;case 1:n=Oi(null,n,r,e,t);break e;case 11:n=Ri(null,n,r,e,t);break e;case 14:n=Fi(null,n,r,Oe(r.type,e),t);break e}throw Error(g(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Oe(r,l),Mo(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Oe(r,l),Oi(e,n,r,l,t);case 3:e:{if(Ia(n),e===null)throw Error(g(387));r=n.pendingProps,o=n.memoizedState,l=o.element,ua(e,n),Jr(n,r,null,t);var u=n.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=ft(Error(g(423)),n),n=Di(e,n,r,t,l);break e}else if(r!==l){l=ft(Error(g(424)),n),n=Di(e,n,r,t,l);break e}else for(_e=pn(n.stateNode.containerInfo.firstChild),Ee=n,V=!0,Ie=null,t=ca(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(st(),r===l){n=en(e,n,t);break e}fe(e,n,r,t)}n=n.child}return n;case 5:return fa(n),e===null&&No(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,u=l.children,ko(r,l)?u=null:o!==null&&ko(r,o)&&(n.flags|=32),Da(e,n),fe(e,n,u,t),n.child;case 6:return e===null&&No(n),null;case 13:return ja(e,n,t);case 4:return wu(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=at(n,null,r,t):fe(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Oe(r,l),Ri(e,n,r,l,t);case 7:return fe(e,n,n.pendingProps,t),n.child;case 8:return fe(e,n,n.pendingProps.children,t),n.child;case 12:return fe(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,u=l.value,U(Gr,r._currentValue),r._currentValue=u,o!==null)if($e(o.value,u)){if(o.children===l.children&&!ye.current){n=en(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var i=o.dependencies;if(i!==null){u=o.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Ze(-1,t&-t),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Po(o.return,t,n),i.lanes|=t;break}s=s.next}}else if(o.tag===10)u=o.type===n.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(g(341));u.lanes|=t,i=u.alternate,i!==null&&(i.lanes|=t),Po(u,t,n),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===n){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}fe(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,lt(n,t),l=Me(l),r=r(l),n.flags|=1,fe(e,n,r,t),n.child;case 14:return r=n.type,l=Oe(r,n.pendingProps),l=Oe(r.type,l),Fi(e,n,r,l,t);case 15:return Fa(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Oe(r,l),Rr(e,n),n.tag=1,we(r)?(e=!0,Kr(n)):e=!1,lt(n,t),sa(n,r,l),To(n,r,l,t),Ro(null,n,r,!0,e,t);case 19:return Ua(e,n,t);case 22:return Oa(e,n,t)}throw Error(g(156,n.tag))};function ec(e,n){return Ns(e,n)}function wd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 Te(e,n,t,r){return new wd(e,n,t,r)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sd(e){if(typeof e=="function")return Ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bo)return 11;if(e===eu)return 14}return 2}function gn(e,n){var t=e.alternate;return t===null?(t=Te(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Dr(e,n,t,r,l,o){var u=2;if(r=e,typeof e=="function")Ou(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Qn:return Fn(t.children,l,o,n);case qo:u=8,l|=8;break;case ql:return e=Te(12,t,n,l|2),e.elementType=ql,e.lanes=o,e;case bl:return e=Te(13,t,n,l),e.elementType=bl,e.lanes=o,e;case eo:return e=Te(19,t,n,l),e.elementType=eo,e.lanes=o,e;case as:return vl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case is:u=10;break e;case ss:u=9;break e;case bo:u=11;break e;case eu:u=14;break e;case rn:u=16,r=null;break e}throw Error(g(130,e==null?e:typeof e,""))}return n=Te(u,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function Fn(e,n,t,r){return e=Te(7,e,r,n),e.lanes=t,e}function vl(e,n,t,r){return e=Te(22,e,r,n),e.elementType=as,e.lanes=t,e.stateNode={isHidden:!1},e}function Xl(e,n,t){return e=Te(6,e,null,n),e.lanes=t,e}function Gl(e,n,t){return n=Te(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function kd(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tl(0),this.expirationTimes=Tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Du(e,n,t,r,l,o,u,i,s){return e=new kd(e,n,t,i,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=Te(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},yu(o),e}function _d(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}n(),e.exports=xe})(ts);var Yi=ts.exports;Zl.createRoot=Yi.createRoot,Zl.hydrateRoot=Yi.hydrateRoot;var kl={exports:{}},_l={};/** + * @license React + * react-jsx-runtime.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 Pd=J.exports,zd=Symbol.for("react.element"),Td=Symbol.for("react.fragment"),Ld=Object.prototype.hasOwnProperty,Md=Pd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rd={key:!0,ref:!0,__self:!0,__source:!0};function lc(e,n,t){var r,l={},o=null,u=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(u=n.ref);for(r in n)Ld.call(n,r)&&!Rd.hasOwnProperty(r)&&(l[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)l[r]===void 0&&(l[r]=n[r]);return{$$typeof:zd,type:e,key:o,ref:u,props:l,_owner:Md.current}}_l.Fragment=Td;_l.jsx=lc;_l.jsxs=lc;(function(e){e.exports=_l})(kl);const Fd=kl.exports.Fragment,I=kl.exports.jsx,zn=kl.exports.jsxs,Od=()=>zn("a",{href:"https://github.com/StreakingMan/solvable-sheep-game",target:"_blank",rel:"noreferrer",children:["\u70B9\u4E2A\u2728\u4E0D\u8FF7\u8DEF @StreakingMan",I("svg",{height:"24","aria-hidden":"true",viewBox:"0 0 16 16",version:"1.1",width:"24","data-view-component":"true",className:"octicon octicon-mark-github v-align-middle",fill:"currentColor",children:I("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})})]}),Dd=e=>{const n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let t="";for(;e>=0;)t+=n[Math.floor(n.length*Math.random())],e--;return t},Id=e=>new Promise(n=>{setTimeout(()=>{n()},e)}),jd="/assets/sound-button-click.b3bf15c1.mp3",Ud="/assets/sound-triple.75a32003.mp3",$d=["\u{1F3A8}","\u{1F308}","\u2699\uFE0F","\u{1F4BB}","\u{1F4DA}","\u{1F42F}","\u{1F424}","\u{1F43C}","\u{1F40F}","\u{1F340}"],oc=[{name:"button-click",src:jd},{name:"triple",src:Ud}],uc={name:"\u9ED8\u8BA4",icons:$d.map(e=>({name:e,content:e,clickSound:"button-click",tripleSound:"triple"})),sounds:oc},Ad="/assets/\u5858\u9CE2\u9C7C.2280de16.png",Bd="/assets/\u6CB3\u8C5A.0d8fb633.png",Vd="/assets/\u9526\u9CA4.9bb5b7f8.png",Qd="/assets/\u9C88\u9C7C.7aa086d6.png",Hd="/assets/\u9C91\u9C7C.3547dc16.png",Wd="/assets/\u9CA4\u9C7C.d49d71f0.png",Kd="/assets/\u9CA8\u9C7C.a945ae5c.png",Yd="/assets/\u9CAB\u9C7C.5aab4123.png",Xd="/assets/\u9CD6.20877388.png",Gd="/assets/\u9ED1\u9C7C.6d860c7f.png",Zd=Object.assign({"./images/\u5858\u9CE2\u9C7C.png":Ad,"./images/\u6CB3\u8C5A.png":Bd,"./images/\u9526\u9CA4.png":Vd,"./images/\u9C88\u9C7C.png":Qd,"./images/\u9C91\u9C7C.png":Hd,"./images/\u9CA4\u9C7C.png":Wd,"./images/\u9CA8\u9C7C.png":Kd,"./images/\u9CAB\u9C7C.png":Yd,"./images/\u9CD6.png":Xd,"./images/\u9ED1\u9C7C.png":Gd}),Jd=Object.entries(Zd).map(([e,n])=>({name:e.slice(9,-4),content:I("img",{src:n,alt:""})})),qd={name:"\u9493\u9C7C\u4F6C",icons:Jd.map(({name:e,content:n})=>({name:e,content:n,clickSound:"button-click",tripleSound:"triple"})),sounds:oc},bd="/assets/\u4E2D\u6307.251bd01b.mp3",ep="/assets/\u6211\u9ED1\u5207\u5462.92a2fbde.mp3",np="/assets/\u7B111.2f0dc33e.mp3",tp="/assets/\u7B112.9f4d1f70.mp3",rp="/assets/\u7B113.e03da4c2.mp3",lp="/assets/\u7B114.fd9df169.mp3",op="/assets/\u808C\u8089\u91D1\u8F6E1.bb1c1f03.mp3",up="/assets/\u808C\u8089\u91D1\u8F6E2.6c0fd0a7.mp3",ip="/assets/\u808C\u8089\u91D1\u8F6E3.8034e543.mp3",sp="/assets/\u8D77\u98DE\u5566.41f03854.mp3",ap="/assets/\u97E9\u59D4\u5458.7b1b4b3f.mp3",cp="/assets/\u4E2D\u6307.03b1d304.png",fp="/assets/\u6211\u9ED1\u5207\u5462.76282a71.png",dp="/assets/\u7B111.2520b27e.png",pp="/assets/\u7B112.a603447c.png",mp="/assets/\u7B113.5d1ad598.png",hp="/assets/\u7B114.51c9403a.png",vp="/assets/\u808C\u8089\u91D1\u8F6E1.a3ae73bf.png",gp="/assets/\u808C\u8089\u91D1\u8F6E2.d954099d.png",yp="/assets/\u808C\u8089\u91D1\u8F6E3.796a2d78.png",wp="/assets/\u97E9\u59D4\u5458.62b2bee5.png",Sp=Object.assign({"./sounds/\u4E2D\u6307.mp3":bd,"./sounds/\u6211\u9ED1\u5207\u5462.mp3":ep,"./sounds/\u7B111.mp3":np,"./sounds/\u7B112.mp3":tp,"./sounds/\u7B113.mp3":rp,"./sounds/\u7B114.mp3":lp,"./sounds/\u808C\u8089\u91D1\u8F6E1.mp3":op,"./sounds/\u808C\u8089\u91D1\u8F6E2.mp3":up,"./sounds/\u808C\u8089\u91D1\u8F6E3.mp3":ip,"./sounds/\u8D77\u98DE\u5566.mp3":sp,"./sounds/\u97E9\u59D4\u5458.mp3":ap}),kp=Object.entries(Sp).map(([e,n])=>({name:e.slice(9,-4),src:n})),_p=Object.assign({"./images/\u4E2D\u6307.png":cp,"./images/\u6211\u9ED1\u5207\u5462.png":fp,"./images/\u7B111.png":dp,"./images/\u7B112.png":pp,"./images/\u7B113.png":mp,"./images/\u7B114.png":hp,"./images/\u808C\u8089\u91D1\u8F6E1.png":vp,"./images/\u808C\u8089\u91D1\u8F6E2.png":gp,"./images/\u808C\u8089\u91D1\u8F6E3.png":yp,"./images/\u97E9\u59D4\u5458.png":wp}),Ep=Object.entries(_p).map(([e,n])=>({name:e.slice(9,-4),content:I("img",{src:n,alt:""})})),Cp={name:"\u91D1\u8F6E",icons:Ep.map(({name:e,content:n})=>({name:e,content:n,clickSound:e,tripleSound:"\u8D77\u98DE\u5566"})),sounds:kp},Xi=[uc,qd,Cp],Ho=50,Er=(e,n)=>{const t=Math.min(Ho,e),r=n.slice(0,2*t),l=[0,25,-25,50,-50].slice(0,1+t),o=[],u=[[2,6],[1,6],[1,7],[0,7],[0,8]][Math.min(4,t-1)],i=c=>{const h=l[Math.floor(l.length*Math.random())],m=u[0]+Math.floor((u[1]-u[0])*Math.random()),p=u[0]+Math.floor((u[1]-u[0])*Math.random());o.push({isCover:!1,status:0,icon:c,id:Dd(4),x:p*100+h,y:m*100+h})};let s=t;for(;s>0;)r.push(...r.slice(0,Math.min(10,2*(s-5)))),s-=5;for(const c of r)for(let h=0;h<6;h++)i(c);return o},xp=(e,n)=>{const t=n.slice().sort(()=>Math.random()-.5),r=[0,25,-25,50,-50].slice(0,1+e),l=[[2,6],[1,6],[1,7],[0,7],[0,8]][Math.min(4,e-1)],o=u=>{const i=r[Math.floor(r.length*Math.random())],s=l[0]+Math.floor((l[1]-l[0])*Math.random()),c=l[0]+Math.floor((l[1]-l[0])*Math.random());u.x=c*100+i,u.y=s*100+i,u.isCover=!1};for(const u of t)u.status===0&&o(u);return t},Np=({x:e,y:n,icon:t,isCover:r,status:l,onClick:o})=>I("div",{className:"symbol",style:{transform:`translateX(${e}%) translateY(${n}%)`,backgroundColor:r?"#999":"white",opacity:l<2?1:0},onClick:o,children:I("div",{className:"symbol-inner",style:{opacity:r?.5:1},children:typeof t.content=="string"?I("i",{children:t.content}):t.content})}),Pp=()=>{const[e,n]=J.exports.useState(uc),[t,r]=J.exports.useState(Er(1,e.icons)),[l,o]=J.exports.useState(1),[u,i]=J.exports.useState([]),[s,c]=J.exports.useState({}),[h,m]=J.exports.useState(!1),[p,y]=J.exports.useState(""),[S,k]=J.exports.useState(!1),R=J.exports.useRef({}),f=J.exports.useRef(null),[a,d]=J.exports.useState(!1),[v,E]=J.exports.useState(!1);J.exports.useEffect(()=>{var T;!f.current||(a?(f.current.volume=.5,f.current.play()):(T=f.current)==null||T.pause())},[a]),J.exports.useEffect(()=>{he()},[e]),J.exports.useEffect(()=>{const T={};for(const b of u)T[b.icon.name]?T[b.icon.name].push(b):T[b.icon.name]=[b];const O=[];for(const b of Object.values(T))O.push(...b);const D={};let H=50;for(const b of O)D[b.id]=H,H+=100;c(D)},[u]),J.exports.useEffect(()=>{_(t)},[]);const _=T=>{const O=T.slice();for(let D=0;D=z||Cn+100<=b||Cn>=P)){H.isCover=!0;break}}}r(O)},x=()=>{if(!u.length)return;const T=u.slice(),O=T.shift();if(!O)return;const D=t.find(H=>H.id===O.id);D&&(i(T),D.status=0,D.x=100*Math.floor(8*Math.random()),D.y=700,_(t))},N=()=>{if(!u.length)return;const T=u.slice(),O=T.pop();if(!O)return;const D=t.find(H=>H.id===O.id);D&&(i(T),D.status=0,_(t))},Q=()=>{_(xp(l,t))},L=()=>{l>=Ho||(m(!1),o(l+1),i([]),_(Er(l+1,e.icons)))},he=()=>{m(!1),o(1),i([]),_(Er(1,e.icons))},En=async T=>{if(h||S)return;v||(d(!0),E(!0));const O=t.slice(),D=O[T];if(D.isCover||D.status!==0)return;D.status=1,R.current&&(console.log(R.current,D.icon),R.current[D.icon.clickSound].currentTime=0,R.current[D.icon.clickSound].play());let H=u.slice();H.push(D),i(H),_(O),k(!0),await Id(150);const b=H.filter(w=>w.icon===D.icon);if(b.length===3){H=H.filter(w=>w.icon!==D.icon);for(const w of b){const P=O.find(z=>z.id===w.id);P&&(P.status=2,R.current&&(R.current[D.icon.tripleSound].currentTime=0,R.current[D.icon.tripleSound].play()))}}if(H.length===7&&(y("\u5931\u8D25\u4E86"),m(!0)),O.find(w=>w.status!==2))i(H),_(O);else{if(l===Ho){y("\u5B8C\u6210\u6311\u6218"),m(!0);return}o(l+1),i([]),_(Er(l+1,e.icons))}k(!1)};return zn(Fd,{children:[I("h2",{children:"\u6709\u89E3\u7684\u7F8A\u4E86\u4E2A\u7F8A(DEMO)"}),I("h6",{children:I(Od,{})}),zn("h3",{className:"flex-container flex-center",children:["\u4E3B\u9898:",I("select",{onChange:T=>n(Xi[Number(T.target.value)]),children:Xi.map((T,O)=>I("option",{value:O,children:T.name},T.name))}),"Level: ",l]}),I("div",{className:"app",children:I("div",{className:"scene-container",children:I("div",{className:"scene-inner",children:t.map((T,O)=>I(Np,{...T,x:T.status===0?T.x:T.status===1?s[T.id]:-1e3,y:T.status===0?T.y:895,onClick:()=>En(O)},T.id))})})}),I("div",{className:"queue-container flex-container flex-center"}),zn("div",{className:"flex-container flex-between",children:[I("button",{className:"flex-grow",onClick:x,children:"\u5F39\u51FA"}),I("button",{className:"flex-grow",onClick:N,children:"\u64A4\u9500"}),I("button",{className:"flex-grow",onClick:Q,children:"\u6D17\u724C"}),I("button",{className:"flex-grow",onClick:L,children:"\u4E0B\u4E00\u5173"})]}),I("p",{children:zn("span",{id:"busuanzi_container_site_pv",children:["\u7D2F\u8BA1\u8BBF\u95EE\uFF1A",I("span",{id:"busuanzi_value_site_pv"}),"\u6B21"]})}),h&&zn("div",{className:"modal",children:[I("h1",{children:p}),I("button",{onClick:he,children:"\u518D\u6765\u4E00\u6B21"})]}),zn("button",{className:"bgm-button",onClick:()=>d(!a),children:[a?"\u{1F50A}":"\u{1F508}",I("audio",{ref:f,loop:!0,src:"/sound-disco.mp3"})]}),e.sounds.map(T=>I("audio",{ref:O=>{O&&(R.current[T.name]=O)},src:T.src},T.name))]})};Zl.createRoot(document.getElementById("root")).render(I(Ec.StrictMode,{children:I(Pp,{})})); diff --git a/dist/assets/sound-button-click.b3bf15c1.mp3 b/dist/assets/sound-button-click.b3bf15c1.mp3 new file mode 100644 index 0000000..a07708b Binary files /dev/null and b/dist/assets/sound-button-click.b3bf15c1.mp3 differ diff --git a/dist/assets/sound-triple.75a32003.mp3 b/dist/assets/sound-triple.75a32003.mp3 new file mode 100644 index 0000000..88571e9 Binary files /dev/null and b/dist/assets/sound-triple.75a32003.mp3 differ diff --git a/dist/assets/中指.03b1d304.png b/dist/assets/中指.03b1d304.png new file mode 100644 index 0000000..d8ca9b0 Binary files /dev/null and b/dist/assets/中指.03b1d304.png differ diff --git a/dist/assets/中指.251bd01b.mp3 b/dist/assets/中指.251bd01b.mp3 new file mode 100644 index 0000000..e833bf2 Binary files /dev/null and b/dist/assets/中指.251bd01b.mp3 differ diff --git a/dist/assets/塘鳢鱼.2280de16.png b/dist/assets/塘鳢鱼.2280de16.png new file mode 100644 index 0000000..aac2977 Binary files /dev/null and b/dist/assets/塘鳢鱼.2280de16.png differ diff --git a/dist/assets/我黑切呢.76282a71.png b/dist/assets/我黑切呢.76282a71.png new file mode 100644 index 0000000..8e9b04b Binary files /dev/null and b/dist/assets/我黑切呢.76282a71.png differ diff --git a/dist/assets/我黑切呢.92a2fbde.mp3 b/dist/assets/我黑切呢.92a2fbde.mp3 new file mode 100644 index 0000000..397996a Binary files /dev/null and b/dist/assets/我黑切呢.92a2fbde.mp3 differ diff --git a/dist/assets/河豚.0d8fb633.png b/dist/assets/河豚.0d8fb633.png new file mode 100644 index 0000000..009e645 Binary files /dev/null and b/dist/assets/河豚.0d8fb633.png differ diff --git a/dist/assets/笑1.2520b27e.png b/dist/assets/笑1.2520b27e.png new file mode 100644 index 0000000..e95031c Binary files /dev/null and b/dist/assets/笑1.2520b27e.png differ diff --git a/dist/assets/笑1.2f0dc33e.mp3 b/dist/assets/笑1.2f0dc33e.mp3 new file mode 100644 index 0000000..1d02a30 Binary files /dev/null and b/dist/assets/笑1.2f0dc33e.mp3 differ diff --git a/dist/assets/笑2.9f4d1f70.mp3 b/dist/assets/笑2.9f4d1f70.mp3 new file mode 100644 index 0000000..3905190 Binary files /dev/null and b/dist/assets/笑2.9f4d1f70.mp3 differ diff --git a/dist/assets/笑2.a603447c.png b/dist/assets/笑2.a603447c.png new file mode 100644 index 0000000..993cfaf Binary files /dev/null and b/dist/assets/笑2.a603447c.png differ diff --git a/dist/assets/笑3.5d1ad598.png b/dist/assets/笑3.5d1ad598.png new file mode 100644 index 0000000..311bc6d Binary files /dev/null and b/dist/assets/笑3.5d1ad598.png differ diff --git a/dist/assets/笑3.e03da4c2.mp3 b/dist/assets/笑3.e03da4c2.mp3 new file mode 100644 index 0000000..1dbd128 Binary files /dev/null and b/dist/assets/笑3.e03da4c2.mp3 differ diff --git a/dist/assets/笑4.51c9403a.png b/dist/assets/笑4.51c9403a.png new file mode 100644 index 0000000..a9b31f4 Binary files /dev/null and b/dist/assets/笑4.51c9403a.png differ diff --git a/dist/assets/笑4.fd9df169.mp3 b/dist/assets/笑4.fd9df169.mp3 new file mode 100644 index 0000000..17b8020 Binary files /dev/null and b/dist/assets/笑4.fd9df169.mp3 differ diff --git a/dist/assets/肌肉金轮1.a3ae73bf.png b/dist/assets/肌肉金轮1.a3ae73bf.png new file mode 100644 index 0000000..0200791 Binary files /dev/null and b/dist/assets/肌肉金轮1.a3ae73bf.png differ diff --git a/dist/assets/肌肉金轮1.bb1c1f03.mp3 b/dist/assets/肌肉金轮1.bb1c1f03.mp3 new file mode 100644 index 0000000..ce1d5c9 Binary files /dev/null and b/dist/assets/肌肉金轮1.bb1c1f03.mp3 differ diff --git a/dist/assets/肌肉金轮2.6c0fd0a7.mp3 b/dist/assets/肌肉金轮2.6c0fd0a7.mp3 new file mode 100644 index 0000000..59db7d4 Binary files /dev/null and b/dist/assets/肌肉金轮2.6c0fd0a7.mp3 differ diff --git a/dist/assets/肌肉金轮2.d954099d.png b/dist/assets/肌肉金轮2.d954099d.png new file mode 100644 index 0000000..d35aa62 Binary files /dev/null and b/dist/assets/肌肉金轮2.d954099d.png differ diff --git a/dist/assets/肌肉金轮3.796a2d78.png b/dist/assets/肌肉金轮3.796a2d78.png new file mode 100644 index 0000000..58f3592 Binary files /dev/null and b/dist/assets/肌肉金轮3.796a2d78.png differ diff --git a/dist/assets/肌肉金轮3.8034e543.mp3 b/dist/assets/肌肉金轮3.8034e543.mp3 new file mode 100644 index 0000000..504f64a Binary files /dev/null and b/dist/assets/肌肉金轮3.8034e543.mp3 differ diff --git a/dist/assets/起飞啦.41f03854.mp3 b/dist/assets/起飞啦.41f03854.mp3 new file mode 100644 index 0000000..e5fca95 Binary files /dev/null and b/dist/assets/起飞啦.41f03854.mp3 differ diff --git a/dist/assets/锦鲤.9bb5b7f8.png b/dist/assets/锦鲤.9bb5b7f8.png new file mode 100644 index 0000000..5871772 Binary files /dev/null and b/dist/assets/锦鲤.9bb5b7f8.png differ diff --git a/dist/assets/韩委员.62b2bee5.png b/dist/assets/韩委员.62b2bee5.png new file mode 100644 index 0000000..bbf38f4 Binary files /dev/null and b/dist/assets/韩委员.62b2bee5.png differ diff --git a/dist/assets/韩委员.7b1b4b3f.mp3 b/dist/assets/韩委员.7b1b4b3f.mp3 new file mode 100644 index 0000000..5c02a7a Binary files /dev/null and b/dist/assets/韩委员.7b1b4b3f.mp3 differ diff --git a/dist/assets/鲈鱼.7aa086d6.png b/dist/assets/鲈鱼.7aa086d6.png new file mode 100644 index 0000000..d34d8d7 Binary files /dev/null and b/dist/assets/鲈鱼.7aa086d6.png differ diff --git a/dist/assets/鲑鱼.3547dc16.png b/dist/assets/鲑鱼.3547dc16.png new file mode 100644 index 0000000..519fd22 Binary files /dev/null and b/dist/assets/鲑鱼.3547dc16.png differ diff --git a/dist/assets/鲤鱼.d49d71f0.png b/dist/assets/鲤鱼.d49d71f0.png new file mode 100644 index 0000000..e231a18 Binary files /dev/null and b/dist/assets/鲤鱼.d49d71f0.png differ diff --git a/dist/assets/鲨鱼.a945ae5c.png b/dist/assets/鲨鱼.a945ae5c.png new file mode 100644 index 0000000..57996ae Binary files /dev/null and b/dist/assets/鲨鱼.a945ae5c.png differ diff --git a/dist/assets/鲫鱼.5aab4123.png b/dist/assets/鲫鱼.5aab4123.png new file mode 100644 index 0000000..eec3819 Binary files /dev/null and b/dist/assets/鲫鱼.5aab4123.png differ diff --git a/dist/assets/鳖.20877388.png b/dist/assets/鳖.20877388.png new file mode 100644 index 0000000..6e62651 Binary files /dev/null and b/dist/assets/鳖.20877388.png differ diff --git a/dist/assets/黑鱼.6d860c7f.png b/dist/assets/黑鱼.6d860c7f.png new file mode 100644 index 0000000..6d580df Binary files /dev/null and b/dist/assets/黑鱼.6d860c7f.png differ diff --git a/dist/favicon.ico b/dist/favicon.ico new file mode 100644 index 0000000..3ab5292 Binary files /dev/null and b/dist/favicon.ico differ diff --git a/dist/github.svg b/dist/github.svg new file mode 100644 index 0000000..e75ce13 --- /dev/null +++ b/dist/github.svg @@ -0,0 +1,5 @@ + diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..ab437d0 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,33 @@ + + + + + + + + 有解的羊了个羊 + + + + + +
+ + + + diff --git a/dist/sound-disco.mp3 b/dist/sound-disco.mp3 new file mode 100644 index 0000000..2ed5d20 Binary files /dev/null and b/dist/sound-disco.mp3 differ