From 55dba57736a800e201d37073eded3ed66836bc7c Mon Sep 17 00:00:00 2001 From: Krasilnikov Roman Date: Fri, 15 Dec 2023 15:15:20 +0300 Subject: [PATCH] deploy --- .../{index-ovd97SOO.js => index-wyQ-BwWJ.js} | 76 +++++++++---------- index.html | 2 +- 2 files changed, 39 insertions(+), 39 deletions(-) rename assets/{index-ovd97SOO.js => index-wyQ-BwWJ.js} (86%) diff --git a/assets/index-ovd97SOO.js b/assets/index-wyQ-BwWJ.js similarity index 86% rename from assets/index-ovd97SOO.js rename to assets/index-wyQ-BwWJ.js index 988cc5a..5203b0c 100644 --- a/assets/index-ovd97SOO.js +++ b/assets/index-wyQ-BwWJ.js @@ -1,4 +1,4 @@ -function aO(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var _t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b8={exports:{}},Am={},w8={exports:{}},Nt={};/** +function lO(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var _t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var w8={exports:{}},Am={},_8={exports:{}},Nt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function aO(e,t){for(var r=0;r>>1,L=x[I];if(0>>1;Ii(W,T))Ni(q,W)?(x[I]=q,x[N]=T,I=N):(x[I]=W,x[B]=T,I=B);else if(Ni(q,T))x[I]=q,x[N]=T,I=N;else break e}}return k}function i(x,k){var T=x.sortIndex-k.sortIndex;return T!==0?T:x.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var l=[],a=[],c=1,h=null,f=3,d=!1,m=!1,g=!1,p=typeof setTimeout=="function"?setTimeout:null,v=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 b(x){for(var k=r(a);k!==null;){if(k.callback===null)n(a);else if(k.startTime<=x)n(a),k.sortIndex=k.expirationTime,t(l,k);else break;k=r(a)}}function _(x){if(g=!1,b(x),!m)if(r(l)!==null)m=!0,w(E);else{var k=r(a);k!==null&&S(_,k.startTime-x)}}function E(x,k){m=!1,g&&(g=!1,v(P),P=-1),d=!0;var T=f;try{for(b(k),h=r(l);h!==null&&(!(h.expirationTime>k)||x&&!U());){var I=h.callback;if(typeof I=="function"){h.callback=null,f=h.priorityLevel;var L=I(h.expirationTime<=k);k=e.unstable_now(),typeof L=="function"?h.callback=L:h===r(l)&&n(l),b(k)}else n(l);h=r(l)}if(h!==null)var z=!0;else{var B=r(a);B!==null&&S(_,B.startTime-k),z=!1}return z}finally{h=null,f=T,d=!1}}var $=!1,M=null,P=-1,D=5,F=-1;function U(){return!(e.unstable_now()-Fx||125I?(x.sortIndex=T,t(a,x),r(l)===null&&x===r(a)&&(g?(v(P),P=-1):g=!0,S(_,T-I))):(x.sortIndex=L,t(l,x),m||d||(m=!0,w(E))),x},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(x){var k=f;return function(){var T=f;f=k;try{return x.apply(this,arguments)}finally{f=T}}}})(O8);P8.exports=O8;var AO=P8.exports;/** + */(function(e){function t(x,k){var T=x.length;x.push(k);e:for(;0>>1,L=x[I];if(0>>1;Ii(W,T))Ni(q,W)?(x[I]=q,x[N]=T,I=N):(x[I]=W,x[B]=T,I=B);else if(Ni(q,T))x[I]=q,x[N]=T,I=N;else break e}}return k}function i(x,k){var T=x.sortIndex-k.sortIndex;return T!==0?T:x.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var l=[],a=[],c=1,h=null,f=3,d=!1,m=!1,g=!1,p=typeof setTimeout=="function"?setTimeout:null,v=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 b(x){for(var k=r(a);k!==null;){if(k.callback===null)n(a);else if(k.startTime<=x)n(a),k.sortIndex=k.expirationTime,t(l,k);else break;k=r(a)}}function _(x){if(g=!1,b(x),!m)if(r(l)!==null)m=!0,w(E);else{var k=r(a);k!==null&&S(_,k.startTime-x)}}function E(x,k){m=!1,g&&(g=!1,v(P),P=-1),d=!0;var T=f;try{for(b(k),h=r(l);h!==null&&(!(h.expirationTime>k)||x&&!U());){var I=h.callback;if(typeof I=="function"){h.callback=null,f=h.priorityLevel;var L=I(h.expirationTime<=k);k=e.unstable_now(),typeof L=="function"?h.callback=L:h===r(l)&&n(l),b(k)}else n(l);h=r(l)}if(h!==null)var z=!0;else{var B=r(a);B!==null&&S(_,B.startTime-k),z=!1}return z}finally{h=null,f=T,d=!1}}var $=!1,M=null,P=-1,D=5,F=-1;function U(){return!(e.unstable_now()-Fx||125I?(x.sortIndex=T,t(a,x),r(l)===null&&x===r(a)&&(g?(v(P),P=-1):g=!0,S(_,T-I))):(x.sortIndex=L,t(l,x),m||d||(m=!0,w(E))),x},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(x){var k=f;return function(){var T=f;f=k;try{return x.apply(this,arguments)}finally{f=T}}}})(M8);O8.exports=M8;var PO=O8.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ function aO(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rv=Object.prototype.hasOwnProperty,PO=/^[: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]*$/,l3={},u3={};function OO(e){return rv.call(u3,e)?!0:rv.call(l3,e)?!1:PO.test(e)?u3[e]=!0:(l3[e]=!0,!1)}function MO(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function IO(e,t,r,n){if(t===null||typeof t>"u"||MO(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function An(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new An(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new An(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new An(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new An(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){un[e]=new An(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){un[e]=new An(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){un[e]=new An(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){un[e]=new An(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){un[e]=new An(e,5,!1,e.toLowerCase(),null,!1,!1)});var pb=/[\-:]([a-z])/g;function mb(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 t=e.replace(pb,mb);un[t]=new An(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pb,mb);un[t]=new An(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pb,mb);un[t]=new An(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){un[e]=new An(e,1,!1,e.toLowerCase(),null,!1,!1)});un.xlinkHref=new An("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){un[e]=new An(e,1,!1,e.toLowerCase(),null,!0,!0)});function gb(e,t,r,n){var i=un.hasOwnProperty(t)?un[t]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rv=Object.prototype.hasOwnProperty,OO=/^[: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]*$/,l3={},u3={};function MO(e){return rv.call(u3,e)?!0:rv.call(l3,e)?!1:OO.test(e)?u3[e]=!0:(l3[e]=!0,!1)}function IO(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function RO(e,t,r,n){if(t===null||typeof t>"u"||IO(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function An(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new An(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new An(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new An(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new An(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){un[e]=new An(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){un[e]=new An(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){un[e]=new An(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){un[e]=new An(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){un[e]=new An(e,5,!1,e.toLowerCase(),null,!1,!1)});var pb=/[\-:]([a-z])/g;function mb(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 t=e.replace(pb,mb);un[t]=new An(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pb,mb);un[t]=new An(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pb,mb);un[t]=new An(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){un[e]=new An(e,1,!1,e.toLowerCase(),null,!1,!1)});un.xlinkHref=new An("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){un[e]=new An(e,1,!1,e.toLowerCase(),null,!0,!0)});function gb(e,t,r,n){var i=un.hasOwnProperty(t)?un[t]:null;(i!==null?i.type!==0:n||!(2u||i[s]!==o[u]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=u);break}}}finally{yg=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Cc(e):""}function RO(e){switch(e.tag){case 5:return Cc(e.type);case 16:return Cc("Lazy");case 13:return Cc("Suspense");case 19:return Cc("SuspenseList");case 0:case 2:case 15:return e=bg(e.type,!1),e;case 11:return e=bg(e.type.render,!1),e;case 1:return e=bg(e.type,!0),e;default:return""}}function sv(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 wl:return"Fragment";case bl:return"Portal";case nv:return"Profiler";case vb:return"StrictMode";case iv:return"Suspense";case ov:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j8:return(e.displayName||"Context")+".Consumer";case R8:return(e._context.displayName||"Context")+".Provider";case yb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bb:return t=e.displayName||null,t!==null?t:sv(e.type)||"Memo";case xs:t=e._payload,e=e._init;try{return sv(e(t))}catch{}}return null}function jO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sv(t);case 8:return t===vb?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function D8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function NO(e){var t=D8(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nf(e){e._valueTracker||(e._valueTracker=NO(e))}function F8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=D8(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gp(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 av(e,t){var r=t.checked;return Tr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function d3(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=qs(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function L8(e,t){t=t.checked,t!=null&&gb(e,"checked",t,!1)}function lv(e,t){L8(e,t);var r=qs(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uv(e,t.type,r):t.hasOwnProperty("defaultValue")&&uv(e,t.type,qs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function f3(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function uv(e,t,r){(t!=="number"||gp(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ec=Array.isArray;function Ul(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Df.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Dc={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},DO=["Webkit","ms","Moz","O"];Object.keys(Dc).forEach(function(e){DO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dc[t]=Dc[e]})});function U8(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Dc.hasOwnProperty(e)&&Dc[e]?(""+t).trim():t+"px"}function H8(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=U8(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var FO=Tr({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 fv(e,t){if(t){if(FO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ne(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ne(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ne(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ne(62))}}function hv(e,t){if(e.indexOf("-")===-1)return typeof t.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 pv=null;function wb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mv=null,Hl=null,Wl=null;function m3(e){if(e=Jd(e)){if(typeof mv!="function")throw Error(Ne(280));var t=e.stateNode;t&&(t=Rm(t),mv(e.stateNode,e.type,t))}}function W8(e){Hl?Wl?Wl.push(e):Wl=[e]:Hl=e}function q8(){if(Hl){var e=Hl,t=Wl;if(Wl=Hl=null,m3(e),t)for(e=0;e>>=0,e===0?32:31-(XO(e)/YO|0)|0}var Ff=64,Lf=4194304;function Tc(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 wp(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var u=s&~i;u!==0?n=Tc(u):(o&=s,o!==0&&(n=Tc(o)))}else s=r&~i,s!==0?n=Tc(s):o!==0&&(n=Tc(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Zd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vi(t),e[t]=r}function eM(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Lc),k3=" ",C3=!1;function fk(e,t){switch(e){case"keyup":return $M.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _l=!1;function PM(e,t){switch(e){case"compositionend":return hk(t);case"keypress":return t.which!==32?null:(C3=!0,k3);case"textInput":return e=t.data,e===k3&&C3?null:e;default:return null}}function OM(e,t){if(_l)return e==="compositionend"||!$b&&fk(e,t)?(e=ck(),Mh=Cb=$s=null,_l=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=A3(r)}}function vk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yk(){for(var e=window,t=gp();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gp(e.document)}return t}function Ab(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function BM(e){var t=yk(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&vk(r.ownerDocument.documentElement,r)){if(n!==null&&Ab(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=P3(r,o);var s=P3(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,xl=null,_v=null,zc=null,xv=!1;function O3(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;xv||xl==null||xl!==gp(n)||(n=xl,"selectionStart"in n&&Ab(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),zc&&wd(zc,n)||(zc=n,n=Sp(_v,"onSelect"),0Cl||(e.current=$v[Cl],$v[Cl]=null,Cl--)}function fr(e,t){Cl++,$v[Cl]=e.current,e.current=t}var Ks={},vn=Qs(Ks),jn=Qs(!1),Ia=Ks;function ou(e,t){var r=e.type.contextTypes;if(!r)return Ks;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Nn(e){return e=e.childContextTypes,e!=null}function Cp(){br(jn),br(vn)}function F3(e,t,r){if(vn.current!==Ks)throw Error(Ne(168));fr(vn,t),fr(jn,r)}function Tk(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Ne(108,jO(e)||"Unknown",i));return Tr({},r,n)}function Ep(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ks,Ia=vn.current,fr(vn,e),fr(jn,jn.current),!0}function L3(e,t,r){var n=e.stateNode;if(!n)throw Error(Ne(169));r?(e=Tk(e,t,Ia),n.__reactInternalMemoizedMergedChildContext=e,br(jn),br(vn),fr(vn,e)):br(jn),fr(jn,r)}var Ao=null,jm=!1,Ig=!1;function $k(e){Ao===null?Ao=[e]:Ao.push(e)}function QM(e){jm=!0,$k(e)}function Js(){if(!Ig&&Ao!==null){Ig=!0;var e=0,t=or;try{var r=Ao;for(or=1;e>=s,i-=s,Mo=1<<32-Vi(t)+i|r<P?(D=M,M=null):D=M.sibling;var F=f(v,M,b[P],_);if(F===null){M===null&&(M=D);break}e&&M&&F.alternate===null&&t(v,M),y=o(F,y,P),$===null?E=F:$.sibling=F,$=F,M=D}if(P===b.length)return r(v,M),xr&&ua(v,P),E;if(M===null){for(;PP?(D=M,M=null):D=M.sibling;var U=f(v,M,F.value,_);if(U===null){M===null&&(M=D);break}e&&M&&U.alternate===null&&t(v,M),y=o(U,y,P),$===null?E=U:$.sibling=U,$=U,M=D}if(F.done)return r(v,M),xr&&ua(v,P),E;if(M===null){for(;!F.done;P++,F=b.next())F=h(v,F.value,_),F!==null&&(y=o(F,y,P),$===null?E=F:$.sibling=F,$=F);return xr&&ua(v,P),E}for(M=n(v,M);!F.done;P++,F=b.next())F=d(M,v,P,F.value,_),F!==null&&(e&&F.alternate!==null&&M.delete(F.key===null?P:F.key),y=o(F,y,P),$===null?E=F:$.sibling=F,$=F);return e&&M.forEach(function(V){return t(v,V)}),xr&&ua(v,P),E}function p(v,y,b,_){if(typeof b=="object"&&b!==null&&b.type===wl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case jf:e:{for(var E=b.key,$=y;$!==null;){if($.key===E){if(E=b.type,E===wl){if($.tag===7){r(v,$.sibling),y=i($,b.props.children),y.return=v,v=y;break e}}else if($.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===xs&&q3(E)===$.type){r(v,$.sibling),y=i($,b.props),y.ref=lc(v,$,b),y.return=v,v=y;break e}r(v,$);break}else t(v,$);$=$.sibling}b.type===wl?(y=$a(b.props.children,v.mode,_,b.key),y.return=v,v=y):(_=Bh(b.type,b.key,b.props,null,v.mode,_),_.ref=lc(v,y,b),_.return=v,v=_)}return s(v);case bl:e:{for($=b.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){r(v,y.sibling),y=i(y,b.children||[]),y.return=v,v=y;break e}else{r(v,y);break}else t(v,y);y=y.sibling}y=zg(b,v.mode,_),y.return=v,v=y}return s(v);case xs:return $=b._init,p(v,y,$(b._payload),_)}if(Ec(b))return m(v,y,b,_);if(nc(b))return g(v,y,b,_);qf(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(r(v,y.sibling),y=i(y,b),y.return=v,v=y):(r(v,y),y=Bg(b,v.mode,_),y.return=v,v=y),s(v)):r(v,y)}return p}var au=Nk(!0),Dk=Nk(!1),ef={},go=Qs(ef),kd=Qs(ef),Cd=Qs(ef);function ka(e){if(e===ef)throw Error(Ne(174));return e}function Fb(e,t){switch(fr(Cd,t),fr(kd,e),fr(go,ef),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dv(t,e)}br(go),fr(go,t)}function lu(){br(go),br(kd),br(Cd)}function Fk(e){ka(Cd.current);var t=ka(go.current),r=dv(t,e.type);t!==r&&(fr(kd,e),fr(go,r))}function Lb(e){kd.current===e&&(br(go),br(kd))}var Sr=Qs(0);function Mp(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rg=[];function Bb(){for(var e=0;er?r:4,e(!0);var n=jg.transition;jg.transition={};try{e(!1),t()}finally{or=r,jg.transition=n}}function e9(){return _i().memoizedState}function rI(e,t,r){var n=Fs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},t9(e))r9(t,r);else if(r=Mk(e,t,r,n),r!==null){var i=Cn();Ui(r,e,n,i),n9(r,t,n)}}function nI(e,t,r){var n=Fs(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(t9(e))r9(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,u=o(s,r);if(i.hasEagerState=!0,i.eagerState=u,Ki(u,s)){var l=t.interleaved;l===null?(i.next=i,Nb(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=Mk(e,t,i,n),r!==null&&(i=Cn(),Ui(r,e,n,i),n9(r,t,n))}}function t9(e){var t=e.alternate;return e===Er||t!==null&&t===Er}function r9(e,t){Vc=Ip=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function n9(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,xb(e,r)}}var Rp={readContext:wi,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useInsertionEffect:dn,useLayoutEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useMutableSource:dn,useSyncExternalStore:dn,useId:dn,unstable_isNewReconciler:!1},iI={readContext:wi,useCallback:function(e,t){return io().memoizedState=[e,t===void 0?null:t],e},useContext:wi,useEffect:G3,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Nh(4194308,4,Xk.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Nh(4,2,e,t)},useMemo:function(e,t){var r=io();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=io();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=rI.bind(null,Er,e),[n.memoizedState,e]},useRef:function(e){var t=io();return e={current:e},t.memoizedState=e},useState:K3,useDebugValue:Wb,useDeferredValue:function(e){return io().memoizedState=e},useTransition:function(){var e=K3(!1),t=e[0];return e=tI.bind(null,e[1]),io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Er,i=io();if(xr){if(r===void 0)throw Error(Ne(407));r=r()}else{if(r=t(),Zr===null)throw Error(Ne(349));ja&30||zk(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,G3(Uk.bind(null,n,o,e),[e]),n.flags|=2048,$d(9,Vk.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=io(),t=Zr.identifierPrefix;if(xr){var r=Io,n=Mo;r=(n&~(1<<32-Vi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ed++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=u);break}}}finally{yg=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Cc(e):""}function jO(e){switch(e.tag){case 5:return Cc(e.type);case 16:return Cc("Lazy");case 13:return Cc("Suspense");case 19:return Cc("SuspenseList");case 0:case 2:case 15:return e=bg(e.type,!1),e;case 11:return e=bg(e.type.render,!1),e;case 1:return e=bg(e.type,!0),e;default:return""}}function sv(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 wl:return"Fragment";case bl:return"Portal";case nv:return"Profiler";case vb:return"StrictMode";case iv:return"Suspense";case ov:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case N8:return(e.displayName||"Context")+".Consumer";case j8:return(e._context.displayName||"Context")+".Provider";case yb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bb:return t=e.displayName||null,t!==null?t:sv(e.type)||"Memo";case xs:t=e._payload,e=e._init;try{return sv(e(t))}catch{}}return null}function NO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sv(t);case 8:return t===vb?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function F8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function DO(e){var t=F8(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nf(e){e._valueTracker||(e._valueTracker=DO(e))}function L8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=F8(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gp(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 av(e,t){var r=t.checked;return Tr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function d3(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=qs(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function B8(e,t){t=t.checked,t!=null&&gb(e,"checked",t,!1)}function lv(e,t){B8(e,t);var r=qs(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uv(e,t.type,r):t.hasOwnProperty("defaultValue")&&uv(e,t.type,qs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function f3(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function uv(e,t,r){(t!=="number"||gp(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ec=Array.isArray;function Ul(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Df.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Dc={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},FO=["Webkit","ms","Moz","O"];Object.keys(Dc).forEach(function(e){FO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dc[t]=Dc[e]})});function H8(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Dc.hasOwnProperty(e)&&Dc[e]?(""+t).trim():t+"px"}function W8(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=H8(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var LO=Tr({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 fv(e,t){if(t){if(LO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ne(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ne(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ne(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ne(62))}}function hv(e,t){if(e.indexOf("-")===-1)return typeof t.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 pv=null;function wb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mv=null,Hl=null,Wl=null;function m3(e){if(e=Jd(e)){if(typeof mv!="function")throw Error(Ne(280));var t=e.stateNode;t&&(t=Rm(t),mv(e.stateNode,e.type,t))}}function q8(e){Hl?Wl?Wl.push(e):Wl=[e]:Hl=e}function K8(){if(Hl){var e=Hl,t=Wl;if(Wl=Hl=null,m3(e),t)for(e=0;e>>=0,e===0?32:31-(YO(e)/ZO|0)|0}var Ff=64,Lf=4194304;function Tc(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 wp(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var u=s&~i;u!==0?n=Tc(u):(o&=s,o!==0&&(n=Tc(o)))}else s=r&~i,s!==0?n=Tc(s):o!==0&&(n=Tc(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Zd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vi(t),e[t]=r}function tM(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Lc),k3=" ",C3=!1;function hk(e,t){switch(e){case"keyup":return AM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _l=!1;function OM(e,t){switch(e){case"compositionend":return pk(t);case"keypress":return t.which!==32?null:(C3=!0,k3);case"textInput":return e=t.data,e===k3&&C3?null:e;default:return null}}function MM(e,t){if(_l)return e==="compositionend"||!$b&&hk(e,t)?(e=dk(),Mh=Cb=$s=null,_l=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=A3(r)}}function yk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bk(){for(var e=window,t=gp();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gp(e.document)}return t}function Ab(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zM(e){var t=bk(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&yk(r.ownerDocument.documentElement,r)){if(n!==null&&Ab(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=P3(r,o);var s=P3(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,xl=null,_v=null,zc=null,xv=!1;function O3(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;xv||xl==null||xl!==gp(n)||(n=xl,"selectionStart"in n&&Ab(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),zc&&wd(zc,n)||(zc=n,n=Sp(_v,"onSelect"),0Cl||(e.current=$v[Cl],$v[Cl]=null,Cl--)}function fr(e,t){Cl++,$v[Cl]=e.current,e.current=t}var Ks={},vn=Qs(Ks),jn=Qs(!1),Ia=Ks;function ou(e,t){var r=e.type.contextTypes;if(!r)return Ks;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Nn(e){return e=e.childContextTypes,e!=null}function Cp(){br(jn),br(vn)}function F3(e,t,r){if(vn.current!==Ks)throw Error(Ne(168));fr(vn,t),fr(jn,r)}function $k(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Ne(108,NO(e)||"Unknown",i));return Tr({},r,n)}function Ep(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ks,Ia=vn.current,fr(vn,e),fr(jn,jn.current),!0}function L3(e,t,r){var n=e.stateNode;if(!n)throw Error(Ne(169));r?(e=$k(e,t,Ia),n.__reactInternalMemoizedMergedChildContext=e,br(jn),br(vn),fr(vn,e)):br(jn),fr(jn,r)}var Ao=null,jm=!1,Ig=!1;function Ak(e){Ao===null?Ao=[e]:Ao.push(e)}function JM(e){jm=!0,Ak(e)}function Js(){if(!Ig&&Ao!==null){Ig=!0;var e=0,t=or;try{var r=Ao;for(or=1;e>=s,i-=s,Mo=1<<32-Vi(t)+i|r<P?(D=M,M=null):D=M.sibling;var F=f(v,M,b[P],_);if(F===null){M===null&&(M=D);break}e&&M&&F.alternate===null&&t(v,M),y=o(F,y,P),$===null?E=F:$.sibling=F,$=F,M=D}if(P===b.length)return r(v,M),xr&&ua(v,P),E;if(M===null){for(;PP?(D=M,M=null):D=M.sibling;var U=f(v,M,F.value,_);if(U===null){M===null&&(M=D);break}e&&M&&U.alternate===null&&t(v,M),y=o(U,y,P),$===null?E=U:$.sibling=U,$=U,M=D}if(F.done)return r(v,M),xr&&ua(v,P),E;if(M===null){for(;!F.done;P++,F=b.next())F=h(v,F.value,_),F!==null&&(y=o(F,y,P),$===null?E=F:$.sibling=F,$=F);return xr&&ua(v,P),E}for(M=n(v,M);!F.done;P++,F=b.next())F=d(M,v,P,F.value,_),F!==null&&(e&&F.alternate!==null&&M.delete(F.key===null?P:F.key),y=o(F,y,P),$===null?E=F:$.sibling=F,$=F);return e&&M.forEach(function(V){return t(v,V)}),xr&&ua(v,P),E}function p(v,y,b,_){if(typeof b=="object"&&b!==null&&b.type===wl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case jf:e:{for(var E=b.key,$=y;$!==null;){if($.key===E){if(E=b.type,E===wl){if($.tag===7){r(v,$.sibling),y=i($,b.props.children),y.return=v,v=y;break e}}else if($.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===xs&&q3(E)===$.type){r(v,$.sibling),y=i($,b.props),y.ref=lc(v,$,b),y.return=v,v=y;break e}r(v,$);break}else t(v,$);$=$.sibling}b.type===wl?(y=$a(b.props.children,v.mode,_,b.key),y.return=v,v=y):(_=Bh(b.type,b.key,b.props,null,v.mode,_),_.ref=lc(v,y,b),_.return=v,v=_)}return s(v);case bl:e:{for($=b.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){r(v,y.sibling),y=i(y,b.children||[]),y.return=v,v=y;break e}else{r(v,y);break}else t(v,y);y=y.sibling}y=zg(b,v.mode,_),y.return=v,v=y}return s(v);case xs:return $=b._init,p(v,y,$(b._payload),_)}if(Ec(b))return m(v,y,b,_);if(nc(b))return g(v,y,b,_);qf(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(r(v,y.sibling),y=i(y,b),y.return=v,v=y):(r(v,y),y=Bg(b,v.mode,_),y.return=v,v=y),s(v)):r(v,y)}return p}var au=Dk(!0),Fk=Dk(!1),ef={},go=Qs(ef),kd=Qs(ef),Cd=Qs(ef);function ka(e){if(e===ef)throw Error(Ne(174));return e}function Fb(e,t){switch(fr(Cd,t),fr(kd,e),fr(go,ef),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dv(t,e)}br(go),fr(go,t)}function lu(){br(go),br(kd),br(Cd)}function Lk(e){ka(Cd.current);var t=ka(go.current),r=dv(t,e.type);t!==r&&(fr(kd,e),fr(go,r))}function Lb(e){kd.current===e&&(br(go),br(kd))}var Sr=Qs(0);function Mp(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rg=[];function Bb(){for(var e=0;er?r:4,e(!0);var n=jg.transition;jg.transition={};try{e(!1),t()}finally{or=r,jg.transition=n}}function t9(){return _i().memoizedState}function nI(e,t,r){var n=Fs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},r9(e))n9(t,r);else if(r=Ik(e,t,r,n),r!==null){var i=Cn();Ui(r,e,n,i),i9(r,t,n)}}function iI(e,t,r){var n=Fs(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(r9(e))n9(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,u=o(s,r);if(i.hasEagerState=!0,i.eagerState=u,Ki(u,s)){var l=t.interleaved;l===null?(i.next=i,Nb(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=Ik(e,t,i,n),r!==null&&(i=Cn(),Ui(r,e,n,i),i9(r,t,n))}}function r9(e){var t=e.alternate;return e===Er||t!==null&&t===Er}function n9(e,t){Vc=Ip=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function i9(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,xb(e,r)}}var Rp={readContext:wi,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useInsertionEffect:dn,useLayoutEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useMutableSource:dn,useSyncExternalStore:dn,useId:dn,unstable_isNewReconciler:!1},oI={readContext:wi,useCallback:function(e,t){return io().memoizedState=[e,t===void 0?null:t],e},useContext:wi,useEffect:G3,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Nh(4194308,4,Yk.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Nh(4,2,e,t)},useMemo:function(e,t){var r=io();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=io();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=nI.bind(null,Er,e),[n.memoizedState,e]},useRef:function(e){var t=io();return e={current:e},t.memoizedState=e},useState:K3,useDebugValue:Wb,useDeferredValue:function(e){return io().memoizedState=e},useTransition:function(){var e=K3(!1),t=e[0];return e=rI.bind(null,e[1]),io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Er,i=io();if(xr){if(r===void 0)throw Error(Ne(407));r=r()}else{if(r=t(),Zr===null)throw Error(Ne(349));ja&30||Vk(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,G3(Hk.bind(null,n,o,e),[e]),n.flags|=2048,$d(9,Uk.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=io(),t=Zr.identifierPrefix;if(xr){var r=Io,n=Mo;r=(n&~(1<<32-Vi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ed++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[uo]=t,e[Sd]=n,f9(e,t,!1,!1),t.stateNode=e;e:{switch(s=hv(r,n),r){case"dialog":mr("cancel",e),mr("close",e),i=n;break;case"iframe":case"object":case"embed":mr("load",e),i=n;break;case"video":case"audio":for(i=0;i<$c.length;i++)mr($c[i],e);i=n;break;case"source":mr("error",e),i=n;break;case"img":case"image":case"link":mr("error",e),mr("load",e),i=n;break;case"details":mr("toggle",e),i=n;break;case"input":d3(e,n),i=av(e,n),mr("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Tr({},n,{value:void 0}),mr("invalid",e);break;case"textarea":h3(e,n),i=cv(e,n),mr("invalid",e);break;default:i=n}fv(r,i),u=i;for(o in u)if(u.hasOwnProperty(o)){var l=u[o];o==="style"?H8(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&V8(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&pd(e,l):typeof l=="number"&&pd(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(hd.hasOwnProperty(o)?l!=null&&o==="onScroll"&&mr("scroll",e):l!=null&&gb(e,o,l,s))}switch(r){case"input":Nf(e),f3(e,n,!1);break;case"textarea":Nf(e),p3(e);break;case"option":n.value!=null&&e.setAttribute("value",""+qs(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ul(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ul(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=kp)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return fn(t),null;case 6:if(e&&t.stateNode!=null)p9(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Ne(166));if(r=ka(Cd.current),ka(go.current),Wf(t)){if(n=t.stateNode,r=t.memoizedProps,n[uo]=t,(o=n.nodeValue!==r)&&(e=Xn,e!==null))switch(e.tag){case 3:Hf(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hf(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[uo]=t,t.stateNode=n}return fn(t),null;case 13:if(br(Sr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xr&&Kn!==null&&t.mode&1&&!(t.flags&128))Ok(),su(),t.flags|=98560,o=!1;else if(o=Wf(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(Ne(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Ne(317));o[uo]=t}else su(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fn(t),o=!1}else Ni!==null&&(Kv(Ni),Ni=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Sr.current&1?Ur===0&&(Ur=3):Qb())),t.updateQueue!==null&&(t.flags|=4),fn(t),null);case 4:return lu(),Lv(e,t),e===null&&_d(t.stateNode.containerInfo),fn(t),null;case 10:return jb(t.type._context),fn(t),null;case 17:return Nn(t.type)&&Cp(),fn(t),null;case 19:if(br(Sr),o=t.memoizedState,o===null)return fn(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)uc(o,!1);else{if(Ur!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Mp(e),s!==null){for(t.flags|=128,uc(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return fr(Sr,Sr.current&1|2),t.child}e=e.sibling}o.tail!==null&&Nr()>cu&&(t.flags|=128,n=!0,uc(o,!1),t.lanes=4194304)}else{if(!n)if(e=Mp(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),uc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!xr)return fn(t),null}else 2*Nr()-o.renderingStartTime>cu&&r!==1073741824&&(t.flags|=128,n=!0,uc(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Nr(),t.sibling=null,r=Sr.current,fr(Sr,n?r&1|2:r&1),t):(fn(t),null);case 22:case 23:return Zb(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Wn&1073741824&&(fn(t),t.subtreeFlags&6&&(t.flags|=8192)):fn(t),null;case 24:return null;case 25:return null}throw Error(Ne(156,t.tag))}function fI(e,t){switch(Ob(t),t.tag){case 1:return Nn(t.type)&&Cp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lu(),br(jn),br(vn),Bb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lb(t),null;case 13:if(br(Sr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ne(340));su()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return br(Sr),null;case 4:return lu(),null;case 10:return jb(t.type._context),null;case 22:case 23:return Zb(),null;case 24:return null;default:return null}}var Gf=!1,gn=!1,hI=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Al(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ar(e,t,n)}else r.current=null}function Bv(e,t,r){try{r()}catch(n){Ar(e,t,n)}}var nx=!1;function pI(e,t){if(Sv=_p,e=yk(),Ab(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,u=-1,l=-1,a=0,c=0,h=e,f=null;t:for(;;){for(var d;h!==r||i!==0&&h.nodeType!==3||(u=s+i),h!==o||n!==0&&h.nodeType!==3||(l=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(d=h.firstChild)!==null;)f=h,h=d;for(;;){if(h===e)break t;if(f===r&&++a===i&&(u=s),f===o&&++c===n&&(l=s),(d=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=d}r=u===-1||l===-1?null:{start:u,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(kv={focusedElem:e,selectionRange:r},_p=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){t=Ge;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,p=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ri(t.type,g),p);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ne(163))}}catch(_){Ar(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}return m=nx,nx=!1,m}function Uc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Bv(t,r,o)}i=i.next}while(i!==n)}}function Fm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function zv(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function m9(e){var t=e.alternate;t!==null&&(e.alternate=null,m9(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[uo],delete t[Sd],delete t[Tv],delete t[YM],delete t[ZM])),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 g9(e){return e.tag===5||e.tag===3||e.tag===4}function ix(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||g9(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 Vv(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=kp));else if(n!==4&&(e=e.child,e!==null))for(Vv(e,t,r),e=e.sibling;e!==null;)Vv(e,t,r),e=e.sibling}function Uv(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Uv(e,t,r),e=e.sibling;e!==null;)Uv(e,t,r),e=e.sibling}var nn=null,ji=!1;function ds(e,t,r){for(r=r.child;r!==null;)v9(e,t,r),r=r.sibling}function v9(e,t,r){if(mo&&typeof mo.onCommitFiberUnmount=="function")try{mo.onCommitFiberUnmount(Pm,r)}catch{}switch(r.tag){case 5:gn||Al(r,t);case 6:var n=nn,i=ji;nn=null,ds(e,t,r),nn=n,ji=i,nn!==null&&(ji?(e=nn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):nn.removeChild(r.stateNode));break;case 18:nn!==null&&(ji?(e=nn,r=r.stateNode,e.nodeType===8?Mg(e.parentNode,r):e.nodeType===1&&Mg(e,r),yd(e)):Mg(nn,r.stateNode));break;case 4:n=nn,i=ji,nn=r.stateNode.containerInfo,ji=!0,ds(e,t,r),nn=n,ji=i;break;case 0:case 11:case 14:case 15:if(!gn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Bv(r,t,s),i=i.next}while(i!==n)}ds(e,t,r);break;case 1:if(!gn&&(Al(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(u){Ar(r,t,u)}ds(e,t,r);break;case 21:ds(e,t,r);break;case 22:r.mode&1?(gn=(n=gn)||r.memoizedState!==null,ds(e,t,r),gn=n):ds(e,t,r);break;default:ds(e,t,r)}}function ox(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new hI),t.forEach(function(n){var i=SI.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ai(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=s),n&=~o}if(n=i,n=Nr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*gI(n/1960))-n,10e?16:e,As===null)var n=!1;else{if(e=As,As=null,Dp=0,Wt&6)throw Error(Ne(331));var i=Wt;for(Wt|=4,Ge=e.current;Ge!==null;){var o=Ge,s=o.child;if(Ge.flags&16){var u=o.deletions;if(u!==null){for(var l=0;lNr()-Xb?Ta(e,0):Gb|=r),Dn(e,t)}function C9(e,t){t===0&&(e.mode&1?(t=Lf,Lf<<=1,!(Lf&130023424)&&(Lf=4194304)):t=1);var r=Cn();e=Xo(e,t),e!==null&&(Zd(e,t,r),Dn(e,r))}function xI(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),C9(e,r)}function SI(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ne(314))}n!==null&&n.delete(t),C9(e,r)}var E9;E9=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||jn.current)Rn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Rn=!1,cI(e,t,r);Rn=!!(e.flags&131072)}else Rn=!1,xr&&t.flags&1048576&&Ak(t,$p,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Dh(e,t),e=t.pendingProps;var i=ou(t,vn.current);Kl(t,r),i=Vb(null,t,n,e,i,r);var o=Ub();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nn(n)?(o=!0,Ep(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Db(t),i.updater=Nm,t.stateNode=i,i._reactInternals=t,Iv(t,n,e,r),t=Nv(null,t,n,!0,o,r)):(t.tag=0,xr&&o&&Pb(t),_n(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Dh(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=CI(n),e=Ri(n,e),i){case 0:t=jv(null,t,n,e,r);break e;case 1:t=ex(null,t,n,e,r);break e;case 11:t=Q3(null,t,n,e,r);break e;case 14:t=J3(null,t,n,Ri(n.type,e),r);break e}throw Error(Ne(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ri(n,i),jv(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ri(n,i),ex(e,t,n,i,r);case 3:e:{if(u9(t),e===null)throw Error(Ne(387));n=t.pendingProps,o=t.memoizedState,i=o.element,Ik(e,t),Op(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=uu(Error(Ne(423)),t),t=tx(e,t,n,r,i);break e}else if(n!==i){i=uu(Error(Ne(424)),t),t=tx(e,t,n,r,i);break e}else for(Kn=js(t.stateNode.containerInfo.firstChild),Xn=t,xr=!0,Ni=null,r=Dk(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(su(),n===i){t=Yo(e,t,r);break e}_n(e,t,n,r)}t=t.child}return t;case 5:return Fk(t),e===null&&Pv(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Cv(n,i)?s=null:o!==null&&Cv(n,o)&&(t.flags|=32),l9(e,t),_n(e,t,s,r),t.child;case 6:return e===null&&Pv(t),null;case 13:return c9(e,t,r);case 4:return Fb(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=au(t,null,n,r):_n(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ri(n,i),Q3(e,t,n,i,r);case 7:return _n(e,t,t.pendingProps,r),t.child;case 8:return _n(e,t,t.pendingProps.children,r),t.child;case 12:return _n(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,fr(Ap,n._currentValue),n._currentValue=s,o!==null)if(Ki(o.value,s)){if(o.children===i.children&&!jn.current){t=Yo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){s=o.child;for(var l=u.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Do(-1,r&-r),l.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?l.next=l:(l.next=c.next,c.next=l),a.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Ov(o.return,r,t),u.lanes|=r;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Ne(341));s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),Ov(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}_n(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Kl(t,r),i=wi(i),n=n(i),t.flags|=1,_n(e,t,n,r),t.child;case 14:return n=t.type,i=Ri(n,t.pendingProps),i=Ri(n.type,i),J3(e,t,n,i,r);case 15:return s9(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ri(n,i),Dh(e,t),t.tag=1,Nn(n)?(e=!0,Ep(t)):e=!1,Kl(t,r),jk(t,n,i),Iv(t,n,i,r),Nv(null,t,n,!0,e,r);case 19:return d9(e,t,r);case 22:return a9(e,t,r)}throw Error(Ne(156,t.tag))};function T9(e,t){return J8(e,t)}function kI(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(e,t,r,n){return new kI(e,t,r,n)}function Jb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function CI(e){if(typeof e=="function")return Jb(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yb)return 11;if(e===bb)return 14}return 2}function Ls(e,t){var r=e.alternate;return r===null?(r=gi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Bh(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")Jb(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wl:return $a(r.children,i,o,t);case vb:s=8,i|=8;break;case nv:return e=gi(12,r,t,i|2),e.elementType=nv,e.lanes=o,e;case iv:return e=gi(13,r,t,i),e.elementType=iv,e.lanes=o,e;case ov:return e=gi(19,r,t,i),e.elementType=ov,e.lanes=o,e;case N8:return Bm(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R8:s=10;break e;case j8:s=9;break e;case yb:s=11;break e;case bb:s=14;break e;case xs:s=16,n=null;break e}throw Error(Ne(130,e==null?e:typeof e,""))}return t=gi(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function $a(e,t,r,n){return e=gi(7,e,n,t),e.lanes=r,e}function Bm(e,t,r,n){return e=gi(22,e,n,t),e.elementType=N8,e.lanes=r,e.stateNode={isHidden:!1},e}function Bg(e,t,r){return e=gi(6,e,null,t),e.lanes=r,e}function zg(e,t,r){return t=gi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function EI(e,t,r,n,i){this.tag=t,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=_g(0),this.expirationTimes=_g(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_g(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function e2(e,t,r,n,i,o,s,u,l){return e=new EI(e,t,r,u,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=gi(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Db(o),e}function TI(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(O9)}catch(e){console.error(e)}}O9(),A8.exports=ri;var Wm=A8.exports,hx=Wm;tv.createRoot=hx.createRoot,tv.hydrateRoot=hx.hydrateRoot;function MI(e){if(e.sheet)return e.sheet;for(var t=0;t0?on(ju,--Bn):0,du--,Lr===10&&(du=1,Km--),Lr}function Yn(){return Lr=Bn2||Od(Lr)>3?"":" "}function WI(e,t){for(;--t&&Yn()&&!(Lr<48||Lr>102||Lr>57&&Lr<65||Lr>70&&Lr<97););return tf(e,zh()+(t<6&&vo()==32&&Yn()==32))}function Xv(e){for(;Yn();)switch(Lr){case e:return Bn;case 34:case 39:e!==34&&e!==39&&Xv(Lr);break;case 40:e===41&&Xv(e);break;case 92:Yn();break}return Bn}function qI(e,t){for(;Yn()&&e+Lr!==57;)if(e+Lr===84&&vo()===47)break;return"/*"+tf(t,Bn-1)+"*"+qm(e===47?e:Yn())}function KI(e){for(;!Od(vo());)Yn();return tf(e,Bn)}function GI(e){return D9(Uh("",null,null,null,[""],e=N9(e),0,[0],e))}function Uh(e,t,r,n,i,o,s,u,l){for(var a=0,c=0,h=s,f=0,d=0,m=0,g=1,p=1,v=1,y=0,b="",_=i,E=o,$=n,M=b;p;)switch(m=y,y=Yn()){case 40:if(m!=108&&on(M,h-1)==58){Gv(M+=Qt(Vh(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:M+=Vh(y);break;case 9:case 10:case 13:case 32:M+=HI(m);break;case 92:M+=WI(zh()-1,7);continue;case 47:switch(vo()){case 42:case 47:Zf(XI(qI(Yn(),zh()),t,r),l);break;default:M+="/"}break;case 123*g:u[a++]=ao(M)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+c:v==-1&&(M=Qt(M,/\f/g,"")),d>0&&ao(M)-h&&Zf(d>32?mx(M+";",n,r,h-1):mx(Qt(M," ","")+";",n,r,h-2),l);break;case 59:M+=";";default:if(Zf($=px(M,t,r,a,c,i,u,b,_=[],E=[],h),o),y===123)if(c===0)Uh(M,t,$,$,_,o,h,u,E);else switch(f===99&&on(M,3)===110?100:f){case 100:case 108:case 109:case 115:Uh(e,$,$,n&&Zf(px(e,$,$,0,0,i,u,b,i,_=[],h),E),i,E,h,u,n?_:E);break;default:Uh(M,$,$,$,[""],E,0,u,E)}}a=c=d=0,g=v=1,b=M="",h=s;break;case 58:h=1+ao(M),d=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&UI()==125)continue}switch(M+=qm(y),y*g){case 38:v=c>0?1:(M+="\f",-1);break;case 44:u[a++]=(ao(M)-1)*v,v=1;break;case 64:vo()===45&&(M+=Vh(Yn())),f=vo(),c=h=ao(b=M+=KI(zh())),y++;break;case 45:m===45&&ao(M)==2&&(g=0)}}return o}function px(e,t,r,n,i,o,s,u,l,a,c){for(var h=i-1,f=i===0?o:[""],d=s2(f),m=0,g=0,p=0;m0?f[v]+" "+y:Qt(y,/&\f/g,f[v])))&&(l[p++]=b);return Gm(e,t,r,i===0?i2:u,l,a,c)}function XI(e,t,r){return Gm(e,t,r,M9,qm(VI()),Pd(e,2,-2),0)}function mx(e,t,r,n){return Gm(e,t,r,o2,Pd(e,0,n),Pd(e,n+1,-1),n)}function Xl(e,t){for(var r="",n=s2(e),i=0;i6)switch(on(e,t+1)){case 109:if(on(e,t+4)!==45)break;case 102:return Qt(e,/(.+:)(.+)-([^]+)/,"$1"+Zt+"$2-$3$1"+Bp+(on(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gv(e,"stretch")?L9(Qt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(on(e,t+1)!==115)break;case 6444:switch(on(e,ao(e)-3-(~Gv(e,"!important")&&10))){case 107:return Qt(e,":",":"+Zt)+e;case 101:return Qt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Zt+(on(e,14)===45?"inline-":"")+"box$3$1"+Zt+"$2$3$1"+pn+"$2box$3")+e}break;case 5936:switch(on(e,t+11)){case 114:return Zt+e+pn+Qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Zt+e+pn+Qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Zt+e+pn+Qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Zt+e+pn+e+e}return e}var iR=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case o2:t.return=L9(t.value,t.length);break;case I9:return Xl([dc(t,{value:Qt(t.value,"@","@"+Zt)})],i);case i2:if(t.length)return zI(t.props,function(o){switch(BI(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xl([dc(t,{props:[Qt(o,/:(read-\w+)/,":"+Bp+"$1")]})],i);case"::placeholder":return Xl([dc(t,{props:[Qt(o,/:(plac\w+)/,":"+Zt+"input-$1")]}),dc(t,{props:[Qt(o,/:(plac\w+)/,":"+Bp+"$1")]}),dc(t,{props:[Qt(o,/:(plac\w+)/,pn+"input-$1")]})],i)}return""})}},oR=[iR],sR=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||oR,o={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),v=1;v<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[uo]=t,e[Sd]=n,h9(e,t,!1,!1),t.stateNode=e;e:{switch(s=hv(r,n),r){case"dialog":mr("cancel",e),mr("close",e),i=n;break;case"iframe":case"object":case"embed":mr("load",e),i=n;break;case"video":case"audio":for(i=0;i<$c.length;i++)mr($c[i],e);i=n;break;case"source":mr("error",e),i=n;break;case"img":case"image":case"link":mr("error",e),mr("load",e),i=n;break;case"details":mr("toggle",e),i=n;break;case"input":d3(e,n),i=av(e,n),mr("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Tr({},n,{value:void 0}),mr("invalid",e);break;case"textarea":h3(e,n),i=cv(e,n),mr("invalid",e);break;default:i=n}fv(r,i),u=i;for(o in u)if(u.hasOwnProperty(o)){var l=u[o];o==="style"?W8(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&U8(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&pd(e,l):typeof l=="number"&&pd(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(hd.hasOwnProperty(o)?l!=null&&o==="onScroll"&&mr("scroll",e):l!=null&&gb(e,o,l,s))}switch(r){case"input":Nf(e),f3(e,n,!1);break;case"textarea":Nf(e),p3(e);break;case"option":n.value!=null&&e.setAttribute("value",""+qs(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ul(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ul(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=kp)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return fn(t),null;case 6:if(e&&t.stateNode!=null)m9(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Ne(166));if(r=ka(Cd.current),ka(go.current),Wf(t)){if(n=t.stateNode,r=t.memoizedProps,n[uo]=t,(o=n.nodeValue!==r)&&(e=Xn,e!==null))switch(e.tag){case 3:Hf(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hf(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[uo]=t,t.stateNode=n}return fn(t),null;case 13:if(br(Sr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xr&&Kn!==null&&t.mode&1&&!(t.flags&128))Mk(),su(),t.flags|=98560,o=!1;else if(o=Wf(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(Ne(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Ne(317));o[uo]=t}else su(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fn(t),o=!1}else Ni!==null&&(Kv(Ni),Ni=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Sr.current&1?Ur===0&&(Ur=3):Qb())),t.updateQueue!==null&&(t.flags|=4),fn(t),null);case 4:return lu(),Lv(e,t),e===null&&_d(t.stateNode.containerInfo),fn(t),null;case 10:return jb(t.type._context),fn(t),null;case 17:return Nn(t.type)&&Cp(),fn(t),null;case 19:if(br(Sr),o=t.memoizedState,o===null)return fn(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)uc(o,!1);else{if(Ur!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Mp(e),s!==null){for(t.flags|=128,uc(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return fr(Sr,Sr.current&1|2),t.child}e=e.sibling}o.tail!==null&&Nr()>cu&&(t.flags|=128,n=!0,uc(o,!1),t.lanes=4194304)}else{if(!n)if(e=Mp(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),uc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!xr)return fn(t),null}else 2*Nr()-o.renderingStartTime>cu&&r!==1073741824&&(t.flags|=128,n=!0,uc(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Nr(),t.sibling=null,r=Sr.current,fr(Sr,n?r&1|2:r&1),t):(fn(t),null);case 22:case 23:return Zb(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Wn&1073741824&&(fn(t),t.subtreeFlags&6&&(t.flags|=8192)):fn(t),null;case 24:return null;case 25:return null}throw Error(Ne(156,t.tag))}function hI(e,t){switch(Ob(t),t.tag){case 1:return Nn(t.type)&&Cp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lu(),br(jn),br(vn),Bb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lb(t),null;case 13:if(br(Sr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ne(340));su()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return br(Sr),null;case 4:return lu(),null;case 10:return jb(t.type._context),null;case 22:case 23:return Zb(),null;case 24:return null;default:return null}}var Gf=!1,gn=!1,pI=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Al(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ar(e,t,n)}else r.current=null}function Bv(e,t,r){try{r()}catch(n){Ar(e,t,n)}}var nx=!1;function mI(e,t){if(Sv=_p,e=bk(),Ab(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,u=-1,l=-1,a=0,c=0,h=e,f=null;t:for(;;){for(var d;h!==r||i!==0&&h.nodeType!==3||(u=s+i),h!==o||n!==0&&h.nodeType!==3||(l=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(d=h.firstChild)!==null;)f=h,h=d;for(;;){if(h===e)break t;if(f===r&&++a===i&&(u=s),f===o&&++c===n&&(l=s),(d=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=d}r=u===-1||l===-1?null:{start:u,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(kv={focusedElem:e,selectionRange:r},_p=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){t=Ge;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,p=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ri(t.type,g),p);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ne(163))}}catch(_){Ar(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}return m=nx,nx=!1,m}function Uc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Bv(t,r,o)}i=i.next}while(i!==n)}}function Fm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function zv(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function g9(e){var t=e.alternate;t!==null&&(e.alternate=null,g9(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[uo],delete t[Sd],delete t[Tv],delete t[ZM],delete t[QM])),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 v9(e){return e.tag===5||e.tag===3||e.tag===4}function ix(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||v9(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 Vv(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=kp));else if(n!==4&&(e=e.child,e!==null))for(Vv(e,t,r),e=e.sibling;e!==null;)Vv(e,t,r),e=e.sibling}function Uv(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Uv(e,t,r),e=e.sibling;e!==null;)Uv(e,t,r),e=e.sibling}var nn=null,ji=!1;function ds(e,t,r){for(r=r.child;r!==null;)y9(e,t,r),r=r.sibling}function y9(e,t,r){if(mo&&typeof mo.onCommitFiberUnmount=="function")try{mo.onCommitFiberUnmount(Pm,r)}catch{}switch(r.tag){case 5:gn||Al(r,t);case 6:var n=nn,i=ji;nn=null,ds(e,t,r),nn=n,ji=i,nn!==null&&(ji?(e=nn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):nn.removeChild(r.stateNode));break;case 18:nn!==null&&(ji?(e=nn,r=r.stateNode,e.nodeType===8?Mg(e.parentNode,r):e.nodeType===1&&Mg(e,r),yd(e)):Mg(nn,r.stateNode));break;case 4:n=nn,i=ji,nn=r.stateNode.containerInfo,ji=!0,ds(e,t,r),nn=n,ji=i;break;case 0:case 11:case 14:case 15:if(!gn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Bv(r,t,s),i=i.next}while(i!==n)}ds(e,t,r);break;case 1:if(!gn&&(Al(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(u){Ar(r,t,u)}ds(e,t,r);break;case 21:ds(e,t,r);break;case 22:r.mode&1?(gn=(n=gn)||r.memoizedState!==null,ds(e,t,r),gn=n):ds(e,t,r);break;default:ds(e,t,r)}}function ox(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new pI),t.forEach(function(n){var i=kI.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ai(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=s),n&=~o}if(n=i,n=Nr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*vI(n/1960))-n,10e?16:e,As===null)var n=!1;else{if(e=As,As=null,Dp=0,Wt&6)throw Error(Ne(331));var i=Wt;for(Wt|=4,Ge=e.current;Ge!==null;){var o=Ge,s=o.child;if(Ge.flags&16){var u=o.deletions;if(u!==null){for(var l=0;lNr()-Xb?Ta(e,0):Gb|=r),Dn(e,t)}function E9(e,t){t===0&&(e.mode&1?(t=Lf,Lf<<=1,!(Lf&130023424)&&(Lf=4194304)):t=1);var r=Cn();e=Xo(e,t),e!==null&&(Zd(e,t,r),Dn(e,r))}function SI(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),E9(e,r)}function kI(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ne(314))}n!==null&&n.delete(t),E9(e,r)}var T9;T9=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||jn.current)Rn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Rn=!1,dI(e,t,r);Rn=!!(e.flags&131072)}else Rn=!1,xr&&t.flags&1048576&&Pk(t,$p,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Dh(e,t),e=t.pendingProps;var i=ou(t,vn.current);Kl(t,r),i=Vb(null,t,n,e,i,r);var o=Ub();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nn(n)?(o=!0,Ep(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Db(t),i.updater=Nm,t.stateNode=i,i._reactInternals=t,Iv(t,n,e,r),t=Nv(null,t,n,!0,o,r)):(t.tag=0,xr&&o&&Pb(t),_n(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Dh(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=EI(n),e=Ri(n,e),i){case 0:t=jv(null,t,n,e,r);break e;case 1:t=ex(null,t,n,e,r);break e;case 11:t=Q3(null,t,n,e,r);break e;case 14:t=J3(null,t,n,Ri(n.type,e),r);break e}throw Error(Ne(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ri(n,i),jv(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ri(n,i),ex(e,t,n,i,r);case 3:e:{if(c9(t),e===null)throw Error(Ne(387));n=t.pendingProps,o=t.memoizedState,i=o.element,Rk(e,t),Op(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=uu(Error(Ne(423)),t),t=tx(e,t,n,r,i);break e}else if(n!==i){i=uu(Error(Ne(424)),t),t=tx(e,t,n,r,i);break e}else for(Kn=js(t.stateNode.containerInfo.firstChild),Xn=t,xr=!0,Ni=null,r=Fk(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(su(),n===i){t=Yo(e,t,r);break e}_n(e,t,n,r)}t=t.child}return t;case 5:return Lk(t),e===null&&Pv(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Cv(n,i)?s=null:o!==null&&Cv(n,o)&&(t.flags|=32),u9(e,t),_n(e,t,s,r),t.child;case 6:return e===null&&Pv(t),null;case 13:return d9(e,t,r);case 4:return Fb(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=au(t,null,n,r):_n(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ri(n,i),Q3(e,t,n,i,r);case 7:return _n(e,t,t.pendingProps,r),t.child;case 8:return _n(e,t,t.pendingProps.children,r),t.child;case 12:return _n(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,fr(Ap,n._currentValue),n._currentValue=s,o!==null)if(Ki(o.value,s)){if(o.children===i.children&&!jn.current){t=Yo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){s=o.child;for(var l=u.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Do(-1,r&-r),l.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?l.next=l:(l.next=c.next,c.next=l),a.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Ov(o.return,r,t),u.lanes|=r;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Ne(341));s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),Ov(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}_n(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Kl(t,r),i=wi(i),n=n(i),t.flags|=1,_n(e,t,n,r),t.child;case 14:return n=t.type,i=Ri(n,t.pendingProps),i=Ri(n.type,i),J3(e,t,n,i,r);case 15:return a9(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ri(n,i),Dh(e,t),t.tag=1,Nn(n)?(e=!0,Ep(t)):e=!1,Kl(t,r),Nk(t,n,i),Iv(t,n,i,r),Nv(null,t,n,!0,e,r);case 19:return f9(e,t,r);case 22:return l9(e,t,r)}throw Error(Ne(156,t.tag))};function $9(e,t){return ek(e,t)}function CI(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(e,t,r,n){return new CI(e,t,r,n)}function Jb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function EI(e){if(typeof e=="function")return Jb(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yb)return 11;if(e===bb)return 14}return 2}function Ls(e,t){var r=e.alternate;return r===null?(r=gi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Bh(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")Jb(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wl:return $a(r.children,i,o,t);case vb:s=8,i|=8;break;case nv:return e=gi(12,r,t,i|2),e.elementType=nv,e.lanes=o,e;case iv:return e=gi(13,r,t,i),e.elementType=iv,e.lanes=o,e;case ov:return e=gi(19,r,t,i),e.elementType=ov,e.lanes=o,e;case D8:return Bm(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j8:s=10;break e;case N8:s=9;break e;case yb:s=11;break e;case bb:s=14;break e;case xs:s=16,n=null;break e}throw Error(Ne(130,e==null?e:typeof e,""))}return t=gi(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function $a(e,t,r,n){return e=gi(7,e,n,t),e.lanes=r,e}function Bm(e,t,r,n){return e=gi(22,e,n,t),e.elementType=D8,e.lanes=r,e.stateNode={isHidden:!1},e}function Bg(e,t,r){return e=gi(6,e,null,t),e.lanes=r,e}function zg(e,t,r){return t=gi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function TI(e,t,r,n,i){this.tag=t,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=_g(0),this.expirationTimes=_g(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_g(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function e2(e,t,r,n,i,o,s,u,l){return e=new TI(e,t,r,u,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=gi(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Db(o),e}function $I(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(M9)}catch(e){console.error(e)}}M9(),P8.exports=ri;var Wm=P8.exports,hx=Wm;tv.createRoot=hx.createRoot,tv.hydrateRoot=hx.hydrateRoot;function II(e){if(e.sheet)return e.sheet;for(var t=0;t0?on(ju,--Bn):0,du--,Lr===10&&(du=1,Km--),Lr}function Yn(){return Lr=Bn2||Od(Lr)>3?"":" "}function qI(e,t){for(;--t&&Yn()&&!(Lr<48||Lr>102||Lr>57&&Lr<65||Lr>70&&Lr<97););return tf(e,zh()+(t<6&&vo()==32&&Yn()==32))}function Xv(e){for(;Yn();)switch(Lr){case e:return Bn;case 34:case 39:e!==34&&e!==39&&Xv(Lr);break;case 40:e===41&&Xv(e);break;case 92:Yn();break}return Bn}function KI(e,t){for(;Yn()&&e+Lr!==57;)if(e+Lr===84&&vo()===47)break;return"/*"+tf(t,Bn-1)+"*"+qm(e===47?e:Yn())}function GI(e){for(;!Od(vo());)Yn();return tf(e,Bn)}function XI(e){return F9(Uh("",null,null,null,[""],e=D9(e),0,[0],e))}function Uh(e,t,r,n,i,o,s,u,l){for(var a=0,c=0,h=s,f=0,d=0,m=0,g=1,p=1,v=1,y=0,b="",_=i,E=o,$=n,M=b;p;)switch(m=y,y=Yn()){case 40:if(m!=108&&on(M,h-1)==58){Gv(M+=Qt(Vh(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:M+=Vh(y);break;case 9:case 10:case 13:case 32:M+=WI(m);break;case 92:M+=qI(zh()-1,7);continue;case 47:switch(vo()){case 42:case 47:Zf(YI(KI(Yn(),zh()),t,r),l);break;default:M+="/"}break;case 123*g:u[a++]=ao(M)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+c:v==-1&&(M=Qt(M,/\f/g,"")),d>0&&ao(M)-h&&Zf(d>32?mx(M+";",n,r,h-1):mx(Qt(M," ","")+";",n,r,h-2),l);break;case 59:M+=";";default:if(Zf($=px(M,t,r,a,c,i,u,b,_=[],E=[],h),o),y===123)if(c===0)Uh(M,t,$,$,_,o,h,u,E);else switch(f===99&&on(M,3)===110?100:f){case 100:case 108:case 109:case 115:Uh(e,$,$,n&&Zf(px(e,$,$,0,0,i,u,b,i,_=[],h),E),i,E,h,u,n?_:E);break;default:Uh(M,$,$,$,[""],E,0,u,E)}}a=c=d=0,g=v=1,b=M="",h=s;break;case 58:h=1+ao(M),d=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&HI()==125)continue}switch(M+=qm(y),y*g){case 38:v=c>0?1:(M+="\f",-1);break;case 44:u[a++]=(ao(M)-1)*v,v=1;break;case 64:vo()===45&&(M+=Vh(Yn())),f=vo(),c=h=ao(b=M+=GI(zh())),y++;break;case 45:m===45&&ao(M)==2&&(g=0)}}return o}function px(e,t,r,n,i,o,s,u,l,a,c){for(var h=i-1,f=i===0?o:[""],d=s2(f),m=0,g=0,p=0;m0?f[v]+" "+y:Qt(y,/&\f/g,f[v])))&&(l[p++]=b);return Gm(e,t,r,i===0?i2:u,l,a,c)}function YI(e,t,r){return Gm(e,t,r,I9,qm(UI()),Pd(e,2,-2),0)}function mx(e,t,r,n){return Gm(e,t,r,o2,Pd(e,0,n),Pd(e,n+1,-1),n)}function Xl(e,t){for(var r="",n=s2(e),i=0;i6)switch(on(e,t+1)){case 109:if(on(e,t+4)!==45)break;case 102:return Qt(e,/(.+:)(.+)-([^]+)/,"$1"+Zt+"$2-$3$1"+Bp+(on(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gv(e,"stretch")?B9(Qt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(on(e,t+1)!==115)break;case 6444:switch(on(e,ao(e)-3-(~Gv(e,"!important")&&10))){case 107:return Qt(e,":",":"+Zt)+e;case 101:return Qt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Zt+(on(e,14)===45?"inline-":"")+"box$3$1"+Zt+"$2$3$1"+pn+"$2box$3")+e}break;case 5936:switch(on(e,t+11)){case 114:return Zt+e+pn+Qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Zt+e+pn+Qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Zt+e+pn+Qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Zt+e+pn+e+e}return e}var oR=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case o2:t.return=B9(t.value,t.length);break;case R9:return Xl([dc(t,{value:Qt(t.value,"@","@"+Zt)})],i);case i2:if(t.length)return VI(t.props,function(o){switch(zI(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xl([dc(t,{props:[Qt(o,/:(read-\w+)/,":"+Bp+"$1")]})],i);case"::placeholder":return Xl([dc(t,{props:[Qt(o,/:(plac\w+)/,":"+Zt+"input-$1")]}),dc(t,{props:[Qt(o,/:(plac\w+)/,":"+Bp+"$1")]}),dc(t,{props:[Qt(o,/:(plac\w+)/,pn+"input-$1")]})],i)}return""})}},sR=[oR],aR=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||sR,o={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),v=1;v=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var vR={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,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},yR=/[A-Z]|^ms/g,bR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W9=function(t){return t.charCodeAt(1)===45},yx=function(t){return t!=null&&typeof t!="boolean"},Vg=F9(function(e){return W9(e)?e:e.replace(yR,"-$&").toLowerCase()}),bx=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(bR,function(n,i,o){return lo={name:i,styles:o,next:lo},i})}return vR[t]!==1&&!W9(t)&&typeof r=="number"&&r!==0?r+"px":r};function Md(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return lo={name:r.name,styles:r.styles,next:lo},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)lo={name:n.name,styles:n.styles,next:lo},n=n.next;var i=r.styles+";";return i}return wR(e,t,r)}case"function":{if(e!==void 0){var o=lo,s=r(e);return lo=o,Md(e,t,s)}break}}if(t==null)return r;var u=t[r];return u!==void 0?u:r}function wR(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var yR={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,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},bR=/[A-Z]|^ms/g,wR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,q9=function(t){return t.charCodeAt(1)===45},yx=function(t){return t!=null&&typeof t!="boolean"},Vg=L9(function(e){return q9(e)?e:e.replace(bR,"-$&").toLowerCase()}),bx=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(wR,function(n,i,o){return lo={name:i,styles:o,next:lo},i})}return yR[t]!==1&&!q9(t)&&typeof r=="number"&&r!==0?r+"px":r};function Md(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return lo={name:r.name,styles:r.styles,next:lo},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)lo={name:n.name,styles:n.styles,next:lo},n=n.next;var i=r.styles+";";return i}return _R(e,t,r)}case"function":{if(e!==void 0){var o=lo,s=r(e);return lo=o,Md(e,t,s)}break}}if(t==null)return r;var u=t[r];return u!==void 0?u:r}function _R(e,t,r){var n="";if(Array.isArray(r))for(var i=0;iX.jsx(s0,{styles:Y9}),PR=({scope:e=""})=>X.jsx(s0,{styles:X9` +`,PR=()=>X.jsx(s0,{styles:Z9}),OR=({scope:e=""})=>X.jsx(s0,{styles:Y9` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -322,8 +322,8 @@ Error generating stack: `+o.message+` display: none; } - ${Y9} - `});function OR(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Wr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,u=G.createContext(s);u.displayName=t;function l(){var a;const c=G.useContext(u);if(!c&&r){const h=new Error(o??OR(n,i));throw h.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,h,l),h}return c}return[u.Provider,l,u]}var[MR,IR]=Wr({strict:!1,name:"PortalManagerContext"});function Z9(e){const{children:t,zIndex:r}=e;return X.jsx(MR,{value:{zIndex:r},children:t})}Z9.displayName="PortalManager";var Fo=globalThis!=null&&globalThis.document?G.useLayoutEffect:G.useEffect,[Q9,RR]=Wr({strict:!1,name:"PortalContext"}),m2="chakra-portal",jR=".chakra-portal",NR=e=>X.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),DR=e=>{const{appendToParentPortal:t,children:r}=e,[n,i]=G.useState(null),o=G.useRef(null),[,s]=G.useState({});G.useEffect(()=>s({}),[]);const u=RR(),l=IR();Fo(()=>{if(!n)return;const c=n.ownerDocument,h=t?u??c.body:c.body;if(!h)return;o.current=c.createElement("div"),o.current.className=m2,h.appendChild(o.current),s({});const f=o.current;return()=>{h.contains(f)&&h.removeChild(f)}},[n]);const a=l!=null&&l.zIndex?X.jsx(NR,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return o.current?Wm.createPortal(X.jsx(Q9,{value:o.current,children:a}),o.current):X.jsx("span",{ref:c=>{c&&i(c)}})},FR=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,i=r.current,o=i??(typeof window<"u"?document.body:void 0),s=G.useMemo(()=>{const l=i==null?void 0:i.ownerDocument.createElement("div");return l&&(l.className=m2),l},[i]),[,u]=G.useState({});return Fo(()=>u({}),[]),Fo(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?Wm.createPortal(X.jsx(Q9,{value:n?s:null,children:t}),s):null};function a0(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?X.jsx(FR,{containerRef:r,...n}):X.jsx(DR,{...n})}a0.className=m2;a0.selector=jR;a0.displayName="Portal";function Ga(){const e=G.useContext(fu);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var g2=G.createContext({});g2.displayName="ColorModeContext";function l0(){const e=G.useContext(g2);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function xx(e,t){const{colorMode:r}=l0();return r==="dark"?t:e}var Qf={light:"chakra-ui-light",dark:"chakra-ui-dark"};function LR(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,i==null||i()},setClassName(n){document.body.classList.add(n?Qf.dark:Qf.light),document.body.classList.remove(n?Qf.light:Qf.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var i;return((i=r.query().matches)!=null?i:n==="dark")?"dark":"light"},addListener(n){const i=r.query(),o=s=>{n(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var BR="chakra-ui-color-mode";function zR(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var VR=zR(BR),Sx=()=>{};function kx(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function J9(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:s=VR}=e,u=i==="dark"?"dark":"light",[l,a]=G.useState(()=>kx(s,u)),[c,h]=G.useState(()=>kx(s)),{getSystemTheme:f,setClassName:d,setDataset:m,addListener:g}=G.useMemo(()=>LR({preventTransition:o}),[o]),p=i==="system"&&!l?c:l,v=G.useCallback(_=>{const E=_==="system"?f():_;a(E),d(E==="dark"),m(E),s.set(E)},[s,f,d,m]);Fo(()=>{i==="system"&&h(f())},[]),G.useEffect(()=>{const _=s.get();if(_){v(_);return}if(i==="system"){v("system");return}v(u)},[s,u,i,v]);const y=G.useCallback(()=>{v(p==="dark"?"light":"dark")},[p,v]);G.useEffect(()=>{if(n)return g(v)},[n,g,v]);const b=G.useMemo(()=>({colorMode:t??p,toggleColorMode:t?Sx:y,setColorMode:t?Sx:v,forced:t!==void 0}),[p,y,v,t]);return X.jsx(g2.Provider,{value:b,children:r})}J9.displayName="ColorModeProvider";function UR(){const e=l0(),t=Ga();return{...e,theme:t}}var sr=(...e)=>e.filter(Boolean).join(" ");function ln(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Ro(e,...t){return HR(e)?e(...t):e}var HR=e=>typeof e=="function",gt=e=>e?"":void 0,Lo=e=>e?!0:void 0;function Ht(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function eC(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var zp={exports:{}};zp.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,u="[object Arguments]",l="[object Array]",a="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",m="[object GeneratorFunction]",g="[object Map]",p="[object Number]",v="[object Null]",y="[object Object]",b="[object Proxy]",_="[object RegExp]",E="[object Set]",$="[object String]",M="[object Undefined]",P="[object WeakMap]",D="[object ArrayBuffer]",F="[object DataView]",U="[object Float32Array]",V="[object Float64Array]",A="[object Int8Array]",O="[object Int16Array]",C="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",x="[object Uint16Array]",k="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,I=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,z={};z[U]=z[V]=z[A]=z[O]=z[C]=z[w]=z[S]=z[x]=z[k]=!0,z[u]=z[l]=z[D]=z[c]=z[F]=z[h]=z[f]=z[d]=z[g]=z[p]=z[y]=z[_]=z[E]=z[$]=z[P]=!1;var B=typeof _t=="object"&&_t&&_t.Object===Object&&_t,W=typeof self=="object"&&self&&self.Object===Object&&self,N=B||W||Function("return this")(),q=t&&!t.nodeType&&t,j=q&&!0&&e&&!e.nodeType&&e,R=j&&j.exports===q,H=R&&B.process,K=function(){try{var oe=j&&j.require&&j.require("util").types;return oe||H&&H.binding&&H.binding("util")}catch{}}(),ee=K&&K.isTypedArray;function Y(oe,me,_e){switch(_e.length){case 0:return oe.call(me);case 1:return oe.call(me,_e[0]);case 2:return oe.call(me,_e[0],_e[1]);case 3:return oe.call(me,_e[0],_e[1],_e[2])}return oe.apply(me,_e)}function te(oe,me){for(var _e=-1,qe=Array(oe);++_e-1}function Z(oe,me){var _e=this.__data__,qe=ve(_e,oe);return qe<0?(++this.size,_e.push([oe,me])):_e[qe][1]=me,this}xt.prototype.clear=Vt,xt.prototype.delete=pt,xt.prototype.get=ce,xt.prototype.has=J,xt.prototype.set=Z;function ne(oe){var me=-1,_e=oe==null?0:oe.length;for(this.clear();++me<_e;){var qe=oe[me];this.set(qe[0],qe[1])}}function he(){this.size=0,this.__data__={hash:new kt,map:new(Ct||xt),string:new kt}}function ue(oe){var me=Ti(this,oe).delete(oe);return this.size-=me?1:0,me}function $e(oe){return Ti(this,oe).get(oe)}function Te(oe){return Ti(this,oe).has(oe)}function je(oe,me){var _e=Ti(this,oe),qe=_e.size;return _e.set(oe,me),this.size+=_e.size==qe?0:1,this}ne.prototype.clear=he,ne.prototype.delete=ue,ne.prototype.get=$e,ne.prototype.has=Te,ne.prototype.set=je;function Ve(oe){var me=this.__data__=new xt(oe);this.size=me.size}function We(){this.__data__=new xt,this.size=0}function Ue(oe){var me=this.__data__,_e=me.delete(oe);return this.size=me.size,_e}function ct(oe){return this.__data__.get(oe)}function dt(oe){return this.__data__.has(oe)}function Ke(oe,me){var _e=this.__data__;if(_e instanceof xt){var qe=_e.__data__;if(!Ct||qe.length1?_e[Ut-1]:void 0,wr=Ut>2?_e[2]:void 0;for(cr=oe.length>3&&typeof cr=="function"?(Ut--,cr):void 0,wr&&ko(_e[0],_e[1],wr)&&(cr=Ut<3?void 0:cr,Ut=1),me=Object(me);++qe-1&&oe%1==0&&oe0){if(++me>=i)return arguments[0]}else me=0;return oe.apply(void 0,arguments)}}function ol(oe){if(oe!=null){try{return pe.call(oe)}catch{}try{return oe+""}catch{}}return""}function ls(oe,me){return oe===me||oe!==oe&&me!==me}var us=Me(function(){return arguments}())?Me:function(oe){return tc(oe)&&ye.call(oe,"callee")&&!Pe.call(oe,"callee")},cs=Array.isArray;function sl(oe){return oe!=null&&J_(oe.length)&&!hg(oe)}function al(oe){return tc(oe)&&sl(oe)}var oa=St||sO;function hg(oe){if(!sa(oe))return!1;var me=He(oe);return me==d||me==m||me==a||me==b}function J_(oe){return typeof oe=="number"&&oe>-1&&oe%1==0&&oe<=s}function sa(oe){var me=typeof oe;return oe!=null&&(me=="object"||me=="function")}function tc(oe){return oe!=null&&typeof oe=="object"}function rO(oe){if(!tc(oe)||He(oe)!=y)return!1;var me=Se(oe);if(me===null)return!0;var _e=ye.call(me,"constructor")&&me.constructor;return typeof _e=="function"&&_e instanceof _e&&pe.call(_e)==Ie}var e3=ee?ie(ee):ft;function nO(oe){return cn(oe,t3(oe))}function t3(oe){return sl(oe)?yt(oe,!0):it(oe)}var iO=Gr(function(oe,me,_e,qe){tt(oe,me,_e,qe)});function oO(oe){return function(){return oe}}function r3(oe){return oe}function sO(){return!1}e.exports=iO})(zp,zp.exports);var WR=zp.exports;const fo=ir(WR);var qR=e=>/!(important)?$/.test(e),Cx=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,KR=(e,t)=>r=>{const n=String(t),i=qR(n),o=Cx(n),s=e?`${e}.${o}`:o;let u=ln(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return u=Cx(u),i?`${u} !important`:u};function v2(e){const{scale:t,transform:r,compose:n}=e;return(o,s)=>{var u;const l=KR(t,o)(s);let a=(u=r==null?void 0:r(l,s))!=null?u:l;return n&&(a=n(a,s)),a}}var Jf=(...e)=>t=>e.reduce((r,n)=>n(r),t);function li(e,t){return r=>{const n={property:r,scale:e};return n.transform=v2({scale:e,transform:t}),n}}var GR=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function XR(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:GR(t),transform:r?v2({scale:r,compose:n}):n}}var tC=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function YR(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...tC].join(" ")}function ZR(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...tC].join(" ")}var QR={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},JR={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function ej(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var tj={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Zv={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},rj=new Set(Object.values(Zv)),Qv=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),nj=e=>e.trim();function ij(e,t){if(e==null||Qv.has(e))return e;if(!(Jv(e)||Qv.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!o||!s)return e;const u=o.includes("-gradient")?o:`${o}-gradient`,[l,...a]=s.split(",").map(nj).filter(Boolean);if((a==null?void 0:a.length)===0)return e;const c=l in Zv?Zv[l]:l;a.unshift(c);const h=a.map(f=>{if(rj.has(f))return f;const d=f.indexOf(" "),[m,g]=d!==-1?[f.substr(0,d),f.substr(d+1)]:[f],p=Jv(g)?g:g&&g.split(" "),v=`colors.${m}`,y=v in t.__cssMap?t.__cssMap[v].varRef:m;return p?[y,...Array.isArray(p)?p:[p]].join(" "):y});return`${u}(${h.join(", ")})`}var Jv=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),oj=(e,t)=>ij(e,t??{});function sj(e){return/^var\(--.+\)$/.test(e)}var aj=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},no=e=>t=>`${e}(${t})`,zt={filter(e){return e!=="auto"?e:QR},backdropFilter(e){return e!=="auto"?e:JR},ring(e){return ej(zt.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?YR():e==="auto-gpu"?ZR():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=aj(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(sj(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:oj,blur:no("blur"),opacity:no("opacity"),brightness:no("brightness"),contrast:no("contrast"),dropShadow:no("drop-shadow"),grayscale:no("grayscale"),hueRotate:e=>no("hue-rotate")(zt.degree(e)),invert:no("invert"),saturate:no("saturate"),sepia:no("sepia"),bgImage(e){return e==null||Jv(e)||Qv.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=tj[e])!=null?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},ge={borderWidths:li("borderWidths"),borderStyles:li("borderStyles"),colors:li("colors"),borders:li("borders"),gradients:li("gradients",zt.gradient),radii:li("radii",zt.px),space:li("space",Jf(zt.vh,zt.px)),spaceT:li("space",Jf(zt.vh,zt.px)),degreeT(e){return{property:e,transform:zt.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:v2({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:li("sizes",Jf(zt.vh,zt.px)),sizesT:li("sizes",Jf(zt.vh,zt.fraction)),shadows:li("shadows"),logical:XR,blur:li("blur",zt.blur)},Hh={background:ge.colors("background"),backgroundColor:ge.colors("backgroundColor"),backgroundImage:ge.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:zt.bgClip},bgSize:ge.prop("backgroundSize"),bgPosition:ge.prop("backgroundPosition"),bg:ge.colors("background"),bgColor:ge.colors("backgroundColor"),bgPos:ge.prop("backgroundPosition"),bgRepeat:ge.prop("backgroundRepeat"),bgAttachment:ge.prop("backgroundAttachment"),bgGradient:ge.gradients("backgroundImage"),bgClip:{transform:zt.bgClip}};Object.assign(Hh,{bgImage:Hh.backgroundImage,bgImg:Hh.backgroundImage});var Yt={border:ge.borders("border"),borderWidth:ge.borderWidths("borderWidth"),borderStyle:ge.borderStyles("borderStyle"),borderColor:ge.colors("borderColor"),borderRadius:ge.radii("borderRadius"),borderTop:ge.borders("borderTop"),borderBlockStart:ge.borders("borderBlockStart"),borderTopLeftRadius:ge.radii("borderTopLeftRadius"),borderStartStartRadius:ge.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ge.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ge.radii("borderTopRightRadius"),borderStartEndRadius:ge.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ge.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ge.borders("borderRight"),borderInlineEnd:ge.borders("borderInlineEnd"),borderBottom:ge.borders("borderBottom"),borderBlockEnd:ge.borders("borderBlockEnd"),borderBottomLeftRadius:ge.radii("borderBottomLeftRadius"),borderBottomRightRadius:ge.radii("borderBottomRightRadius"),borderLeft:ge.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ge.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ge.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ge.borders(["borderLeft","borderRight"]),borderInline:ge.borders("borderInline"),borderY:ge.borders(["borderTop","borderBottom"]),borderBlock:ge.borders("borderBlock"),borderTopWidth:ge.borderWidths("borderTopWidth"),borderBlockStartWidth:ge.borderWidths("borderBlockStartWidth"),borderTopColor:ge.colors("borderTopColor"),borderBlockStartColor:ge.colors("borderBlockStartColor"),borderTopStyle:ge.borderStyles("borderTopStyle"),borderBlockStartStyle:ge.borderStyles("borderBlockStartStyle"),borderBottomWidth:ge.borderWidths("borderBottomWidth"),borderBlockEndWidth:ge.borderWidths("borderBlockEndWidth"),borderBottomColor:ge.colors("borderBottomColor"),borderBlockEndColor:ge.colors("borderBlockEndColor"),borderBottomStyle:ge.borderStyles("borderBottomStyle"),borderBlockEndStyle:ge.borderStyles("borderBlockEndStyle"),borderLeftWidth:ge.borderWidths("borderLeftWidth"),borderInlineStartWidth:ge.borderWidths("borderInlineStartWidth"),borderLeftColor:ge.colors("borderLeftColor"),borderInlineStartColor:ge.colors("borderInlineStartColor"),borderLeftStyle:ge.borderStyles("borderLeftStyle"),borderInlineStartStyle:ge.borderStyles("borderInlineStartStyle"),borderRightWidth:ge.borderWidths("borderRightWidth"),borderInlineEndWidth:ge.borderWidths("borderInlineEndWidth"),borderRightColor:ge.colors("borderRightColor"),borderInlineEndColor:ge.colors("borderInlineEndColor"),borderRightStyle:ge.borderStyles("borderRightStyle"),borderInlineEndStyle:ge.borderStyles("borderInlineEndStyle"),borderTopRadius:ge.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ge.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ge.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ge.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Yt,{rounded:Yt.borderRadius,roundedTop:Yt.borderTopRadius,roundedTopLeft:Yt.borderTopLeftRadius,roundedTopRight:Yt.borderTopRightRadius,roundedTopStart:Yt.borderStartStartRadius,roundedTopEnd:Yt.borderStartEndRadius,roundedBottom:Yt.borderBottomRadius,roundedBottomLeft:Yt.borderBottomLeftRadius,roundedBottomRight:Yt.borderBottomRightRadius,roundedBottomStart:Yt.borderEndStartRadius,roundedBottomEnd:Yt.borderEndEndRadius,roundedLeft:Yt.borderLeftRadius,roundedRight:Yt.borderRightRadius,roundedStart:Yt.borderInlineStartRadius,roundedEnd:Yt.borderInlineEndRadius,borderStart:Yt.borderInlineStart,borderEnd:Yt.borderInlineEnd,borderTopStartRadius:Yt.borderStartStartRadius,borderTopEndRadius:Yt.borderStartEndRadius,borderBottomStartRadius:Yt.borderEndStartRadius,borderBottomEndRadius:Yt.borderEndEndRadius,borderStartRadius:Yt.borderInlineStartRadius,borderEndRadius:Yt.borderInlineEndRadius,borderStartWidth:Yt.borderInlineStartWidth,borderEndWidth:Yt.borderInlineEndWidth,borderStartColor:Yt.borderInlineStartColor,borderEndColor:Yt.borderInlineEndColor,borderStartStyle:Yt.borderInlineStartStyle,borderEndStyle:Yt.borderInlineEndStyle});var lj={color:ge.colors("color"),textColor:ge.colors("color"),fill:ge.colors("fill"),stroke:ge.colors("stroke")},ey={boxShadow:ge.shadows("boxShadow"),mixBlendMode:!0,blendMode:ge.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ge.prop("backgroundBlendMode"),opacity:!0};Object.assign(ey,{shadow:ey.boxShadow});var uj={filter:{transform:zt.filter},blur:ge.blur("--chakra-blur"),brightness:ge.propT("--chakra-brightness",zt.brightness),contrast:ge.propT("--chakra-contrast",zt.contrast),hueRotate:ge.propT("--chakra-hue-rotate",zt.hueRotate),invert:ge.propT("--chakra-invert",zt.invert),saturate:ge.propT("--chakra-saturate",zt.saturate),dropShadow:ge.propT("--chakra-drop-shadow",zt.dropShadow),backdropFilter:{transform:zt.backdropFilter},backdropBlur:ge.blur("--chakra-backdrop-blur"),backdropBrightness:ge.propT("--chakra-backdrop-brightness",zt.brightness),backdropContrast:ge.propT("--chakra-backdrop-contrast",zt.contrast),backdropHueRotate:ge.propT("--chakra-backdrop-hue-rotate",zt.hueRotate),backdropInvert:ge.propT("--chakra-backdrop-invert",zt.invert),backdropSaturate:ge.propT("--chakra-backdrop-saturate",zt.saturate)},Vp={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:zt.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ge.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ge.space("gap"),rowGap:ge.space("rowGap"),columnGap:ge.space("columnGap")};Object.assign(Vp,{flexDir:Vp.flexDirection});var rC={gridGap:ge.space("gridGap"),gridColumnGap:ge.space("gridColumnGap"),gridRowGap:ge.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},cj={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:zt.outline},outlineOffset:!0,outlineColor:ge.colors("outlineColor")},ci={width:ge.sizesT("width"),inlineSize:ge.sizesT("inlineSize"),height:ge.sizes("height"),blockSize:ge.sizes("blockSize"),boxSize:ge.sizes(["width","height"]),minWidth:ge.sizes("minWidth"),minInlineSize:ge.sizes("minInlineSize"),minHeight:ge.sizes("minHeight"),minBlockSize:ge.sizes("minBlockSize"),maxWidth:ge.sizes("maxWidth"),maxInlineSize:ge.sizes("maxInlineSize"),maxHeight:ge.sizes("maxHeight"),maxBlockSize:ge.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (min-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (max-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ge.propT("float",zt.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ci,{w:ci.width,h:ci.height,minW:ci.minWidth,maxW:ci.maxWidth,minH:ci.minHeight,maxH:ci.maxHeight,overscroll:ci.overscrollBehavior,overscrollX:ci.overscrollBehaviorX,overscrollY:ci.overscrollBehaviorY});var dj={listStyleType:!0,listStylePosition:!0,listStylePos:ge.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ge.prop("listStyleImage")};function fj(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,o,s)=>{if(typeof n>"u")return e(n,i,o);t.has(n)||t.set(n,new Map);const u=t.get(n);if(u.has(i))return u.get(i);const l=e(n,i,o,s);return u.set(i,l),l}},pj=hj(fj),mj={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},gj={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Ug=(e,t,r)=>{const n={},i=pj(e,t,{});for(const o in i)o in r&&r[o]!=null||(n[o]=i[o]);return n},vj={srOnly:{transform(e){return e===!0?mj:e==="focusable"?gj:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Ug(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Ug(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Ug(t,e,r)}},qc={position:!0,pos:ge.prop("position"),zIndex:ge.prop("zIndex","zIndices"),inset:ge.spaceT("inset"),insetX:ge.spaceT(["left","right"]),insetInline:ge.spaceT("insetInline"),insetY:ge.spaceT(["top","bottom"]),insetBlock:ge.spaceT("insetBlock"),top:ge.spaceT("top"),insetBlockStart:ge.spaceT("insetBlockStart"),bottom:ge.spaceT("bottom"),insetBlockEnd:ge.spaceT("insetBlockEnd"),left:ge.spaceT("left"),insetInlineStart:ge.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ge.spaceT("right"),insetInlineEnd:ge.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(qc,{insetStart:qc.insetInlineStart,insetEnd:qc.insetInlineEnd});var yj={ring:{transform:zt.ring},ringColor:ge.colors("--chakra-ring-color"),ringOffset:ge.prop("--chakra-ring-offset-width"),ringOffsetColor:ge.colors("--chakra-ring-offset-color"),ringInset:ge.prop("--chakra-ring-inset")},gr={margin:ge.spaceT("margin"),marginTop:ge.spaceT("marginTop"),marginBlockStart:ge.spaceT("marginBlockStart"),marginRight:ge.spaceT("marginRight"),marginInlineEnd:ge.spaceT("marginInlineEnd"),marginBottom:ge.spaceT("marginBottom"),marginBlockEnd:ge.spaceT("marginBlockEnd"),marginLeft:ge.spaceT("marginLeft"),marginInlineStart:ge.spaceT("marginInlineStart"),marginX:ge.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ge.spaceT("marginInline"),marginY:ge.spaceT(["marginTop","marginBottom"]),marginBlock:ge.spaceT("marginBlock"),padding:ge.space("padding"),paddingTop:ge.space("paddingTop"),paddingBlockStart:ge.space("paddingBlockStart"),paddingRight:ge.space("paddingRight"),paddingBottom:ge.space("paddingBottom"),paddingBlockEnd:ge.space("paddingBlockEnd"),paddingLeft:ge.space("paddingLeft"),paddingInlineStart:ge.space("paddingInlineStart"),paddingInlineEnd:ge.space("paddingInlineEnd"),paddingX:ge.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ge.space("paddingInline"),paddingY:ge.space(["paddingTop","paddingBottom"]),paddingBlock:ge.space("paddingBlock")};Object.assign(gr,{m:gr.margin,mt:gr.marginTop,mr:gr.marginRight,me:gr.marginInlineEnd,marginEnd:gr.marginInlineEnd,mb:gr.marginBottom,ml:gr.marginLeft,ms:gr.marginInlineStart,marginStart:gr.marginInlineStart,mx:gr.marginX,my:gr.marginY,p:gr.padding,pt:gr.paddingTop,py:gr.paddingY,px:gr.paddingX,pb:gr.paddingBottom,pl:gr.paddingLeft,ps:gr.paddingInlineStart,paddingStart:gr.paddingInlineStart,pr:gr.paddingRight,pe:gr.paddingInlineEnd,paddingEnd:gr.paddingInlineEnd});var bj={textDecorationColor:ge.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ge.shadows("textShadow")},wj={clipPath:!0,transform:ge.propT("transform",zt.transform),transformOrigin:!0,translateX:ge.spaceT("--chakra-translate-x"),translateY:ge.spaceT("--chakra-translate-y"),skewX:ge.degreeT("--chakra-skew-x"),skewY:ge.degreeT("--chakra-skew-y"),scaleX:ge.prop("--chakra-scale-x"),scaleY:ge.prop("--chakra-scale-y"),scale:ge.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ge.degreeT("--chakra-rotate")},_j={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ge.prop("transitionDuration","transition.duration"),transitionProperty:ge.prop("transitionProperty","transition.property"),transitionTimingFunction:ge.prop("transitionTimingFunction","transition.easing")},xj={fontFamily:ge.prop("fontFamily","fonts"),fontSize:ge.prop("fontSize","fontSizes",zt.px),fontWeight:ge.prop("fontWeight","fontWeights"),lineHeight:ge.prop("lineHeight","lineHeights"),letterSpacing:ge.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Sj={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ge.spaceT("scrollMargin"),scrollMarginTop:ge.spaceT("scrollMarginTop"),scrollMarginBottom:ge.spaceT("scrollMarginBottom"),scrollMarginLeft:ge.spaceT("scrollMarginLeft"),scrollMarginRight:ge.spaceT("scrollMarginRight"),scrollMarginX:ge.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ge.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ge.spaceT("scrollPadding"),scrollPaddingTop:ge.spaceT("scrollPaddingTop"),scrollPaddingBottom:ge.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ge.spaceT("scrollPaddingLeft"),scrollPaddingRight:ge.spaceT("scrollPaddingRight"),scrollPaddingX:ge.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ge.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function nC(e){return ln(e)&&e.reference?e.reference:String(e)}var u0=(e,...t)=>t.map(nC).join(` ${e} `).replace(/calc/g,""),Ex=(...e)=>`calc(${u0("+",...e)})`,Tx=(...e)=>`calc(${u0("-",...e)})`,ty=(...e)=>`calc(${u0("*",...e)})`,$x=(...e)=>`calc(${u0("/",...e)})`,Ax=e=>{const t=nC(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ty(t,-1)},ga=Object.assign(e=>({add:(...t)=>ga(Ex(e,...t)),subtract:(...t)=>ga(Tx(e,...t)),multiply:(...t)=>ga(ty(e,...t)),divide:(...t)=>ga($x(e,...t)),negate:()=>ga(Ax(e)),toString:()=>e.toString()}),{add:Ex,subtract:Tx,multiply:ty,divide:$x,negate:Ax});function kj(e,t="-"){return e.replace(/\s+/g,t)}function Cj(e){const t=kj(e.toString());return Tj(Ej(t))}function Ej(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Tj(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function $j(e,t=""){return[t,e].filter(Boolean).join("-")}function Aj(e,t){return`var(${e}${t?`, ${t}`:""})`}function Pj(e,t=""){return Cj(`--${$j(e,t)}`)}function lt(e,t,r){const n=Pj(e,r);return{variable:n,reference:Aj(n,t)}}function Oj(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[i,o]=n;r[i]=lt(`${e}-${i}`,o);continue}r[n]=lt(`${e}-${n}`)}return r}function Mj(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Ij(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function ry(e){if(e==null)return e;const{unitless:t}=Ij(e);return t||typeof e=="number"?`${e}px`:e}var iC=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,y2=e=>Object.fromEntries(Object.entries(e).sort(iC));function Px(e){const t=y2(e);return Object.assign(Object.values(t),t)}function Rj(e){const t=Object.keys(y2(e));return new Set(t)}function Ox(e){var t;if(!e)return e;e=(t=ry(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Ac(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${ry(e)})`),t&&r.push("and",`(max-width: ${ry(t)})`),r.join(" ")}function jj(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Px(e),n=Object.entries(e).sort(iC).map(([s,u],l,a)=>{var c;let[,h]=(c=a[l+1])!=null?c:[];return h=parseFloat(h)>0?Ox(h):void 0,{_minW:Ox(u),breakpoint:s,minW:u,maxW:h,maxWQuery:Ac(null,h),minWQuery:Ac(u),minMaxQuery:Ac(u,h)}}),i=Rj(e),o=Array.from(i.values());return{keys:i,normalized:r,isResponsive(s){const u=Object.keys(s);return u.length>0&&u.every(l=>i.has(l))},asObject:y2(e),asArray:Px(e),details:n,get(s){return n.find(u=>u.breakpoint===s)},media:[null,...r.map(s=>Ac(s)).slice(1)],toArrayValue(s){if(!ln(s))throw new Error("toArrayValue: value must be an object");const u=o.map(l=>{var a;return(a=s[l])!=null?a:null});for(;Mj(u)===null;)u.pop();return u},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((u,l,a)=>{const c=o[a];return c!=null&&l!=null&&(u[c]=l),u},{})}}}var tn={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},fs=e=>oC(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Co=e=>oC(t=>e(t,"~ &"),"[data-peer]",".peer"),oC=(e,...t)=>t.map(e).join(", "),c0={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:fs(tn.hover),_peerHover:Co(tn.hover),_groupFocus:fs(tn.focus),_peerFocus:Co(tn.focus),_groupFocusVisible:fs(tn.focusVisible),_peerFocusVisible:Co(tn.focusVisible),_groupActive:fs(tn.active),_peerActive:Co(tn.active),_groupDisabled:fs(tn.disabled),_peerDisabled:Co(tn.disabled),_groupInvalid:fs(tn.invalid),_peerInvalid:Co(tn.invalid),_groupChecked:fs(tn.checked),_peerChecked:Co(tn.checked),_groupFocusWithin:fs(tn.focusWithin),_peerFocusWithin:Co(tn.focusWithin),_peerPlaceholderShown:Co(tn.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},sC=Object.keys(c0);function Mx(e,t){return lt(String(e).replace(/\./g,"-"),void 0,t)}function Nj(e,t){let r={};const n={};for(const[i,o]of Object.entries(e)){const{isSemantic:s,value:u}=o,{variable:l,reference:a}=Mx(i,t==null?void 0:t.cssVarPrefix);if(!s){if(i.startsWith("space")){const f=i.split("."),[d,...m]=f,g=`${d}.-${m.join(".")}`,p=ga.negate(u),v=ga.negate(a);n[g]={value:p,var:l,varRef:v}}r[l]=u,n[i]={value:u,var:l,varRef:a};continue}const c=f=>{const m=[String(i).split(".")[0],f].join(".");if(!e[m])return f;const{reference:p}=Mx(m,t==null?void 0:t.cssVarPrefix);return p},h=ln(u)?u:{default:u};r=fo(r,Object.entries(h).reduce((f,[d,m])=>{var g,p;if(!m)return f;const v=c(`${m}`);if(d==="default")return f[l]=v,f;const y=(p=(g=c0)==null?void 0:g[d])!=null?p:d;return f[y]={[l]:v},f},{})),n[i]={value:a,var:l,varRef:a}}return{cssVars:r,cssMap:n}}function Dj(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Fj(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Lj(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function Ix(e,t,r={}){const{stop:n,getKey:i}=r;function o(s,u=[]){var l;if(Lj(s)||Array.isArray(s)){const a={};for(const[c,h]of Object.entries(s)){const f=(l=i==null?void 0:i(c))!=null?l:c,d=[...u,f];if(n!=null&&n(s,d))return t(s,u);a[f]=o(h,d)}return a}return t(s,u)}return o(e)}var Bj=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function zj(e){return Fj(e,Bj)}function Vj(e){return e.semanticTokens}function Uj(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}var Hj=e=>sC.includes(e)||e==="default";function Wj({tokens:e,semanticTokens:t}){const r={};return Ix(e,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!1,value:n})}),Ix(t,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(Hj)}),r}function qj(e){var t;const r=Uj(e),n=zj(r),i=Vj(r),o=Wj({tokens:n,semanticTokens:i}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:l}=Nj(o,{cssVarPrefix:s});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:u,__breakpoints:jj(r.breakpoints)}),r}var b2=fo({},Hh,Yt,lj,Vp,ci,uj,yj,cj,rC,vj,qc,ey,gr,Sj,xj,bj,wj,dj,_j),Kj=Object.assign({},gr,ci,Vp,rC,qc),Gj=Object.keys(Kj),Xj=[...Object.keys(b2),...sC],Yj={...b2,...c0},Zj=e=>e in Yj,Qj=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:i}=t.__breakpoints,o={};for(const s in e){let u=Ro(e[s],t);if(u==null)continue;if(u=ln(u)&&r(u)?n(u):u,!Array.isArray(u)){o[s]=u;continue}const l=u.slice(0,i.length).length;for(let a=0;ae.startsWith("--")&&typeof t=="string"&&!eN(t),rN=(e,t)=>{var r,n;if(t==null)return t;const i=l=>{var a,c;return(c=(a=e.__cssMap)==null?void 0:a[l])==null?void 0:c.varRef},o=l=>{var a;return(a=i(l))!=null?a:l},[s,u]=Jj(t);return t=(n=(r=i(s))!=null?r:o(u))!=null?n:o(t),t};function nN(e){const{configs:t={},pseudos:r={},theme:n}=e,i=(o,s=!1)=>{var u,l,a;const c=Ro(o,n),h=Qj(c)(n);let f={};for(let d in h){const m=h[d];let g=Ro(m,n);d in r&&(d=r[d]),tN(d,g)&&(g=rN(n,g));let p=t[d];if(p===!0&&(p={property:d}),ln(g)){f[d]=(u=f[d])!=null?u:{},f[d]=fo({},f[d],i(g,!0));continue}let v=(a=(l=p==null?void 0:p.transform)==null?void 0:l.call(p,g,n,c))!=null?a:g;v=p!=null&&p.processResult?i(v,!0):v;const y=Ro(p==null?void 0:p.property,n);if(!s&&(p!=null&&p.static)){const b=Ro(p.static,n);f=fo({},f,b)}if(y&&Array.isArray(y)){for(const b of y)f[b]=v;continue}if(y){y==="&"&&ln(v)?f=fo({},f,v):f[y]=v;continue}if(ln(v)){f=fo({},f,v);continue}f[d]=v}return f};return i}var aC=e=>t=>nN({theme:t,pseudos:c0,configs:b2})(e);function pr(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function iN(e,t){if(Array.isArray(e))return e;if(ln(e))return t(e);if(e!=null)return[e]}function oN(e,t){for(let r=t+1;r{fo(a,{[b]:f?y[b]:{[v]:y[b]}})});continue}if(!d){f?fo(a,y):a[v]=y;continue}a[v]=y}}return a}}function aN(e){return t=>{var r;const{variant:n,size:i,theme:o}=t,s=sN(o);return fo({},Ro((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",i,t),s(e,"variants",n,t))}}function qr(e){return Dj(e,["styleConfig","size","variant","colorScheme"])}var lN={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},uN={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},cN={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},dN={property:lN,easing:uN,duration:cN},fN=dN,hN={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},pN=hN,mN={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},gN=mN,vN={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},yN=vN,bN={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},wN=bN,_N={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},xN=_N,SN={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},kN=SN,CN={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},EN=CN,TN={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},lC=TN,uC={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},$N={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},AN={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},PN={...uC,...$N,container:AN},cC=PN,ON={breakpoints:yN,zIndices:pN,radii:xN,blur:EN,colors:wN,...lC,sizes:cC,shadows:kN,space:uC,borders:gN,transition:fN},{defineMultiStyleConfig:MN,definePartsStyle:Pc}=pr(["stepper","step","title","description","indicator","separator","icon","number"]),Po=lt("stepper-indicator-size"),Ol=lt("stepper-icon-size"),Ml=lt("stepper-title-font-size"),Oc=lt("stepper-description-font-size"),fc=lt("stepper-accent-color"),IN=Pc(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[fc.variable]:`colors.${e}.500`,_dark:{[fc.variable]:`colors.${e}.200`}},title:{fontSize:Ml.reference,fontWeight:"medium"},description:{fontSize:Oc.reference,color:"chakra-subtle-text"},number:{fontSize:Ml.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Ol.reference,height:Ol.reference},indicator:{flexShrink:0,borderRadius:"full",width:Po.reference,height:Po.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:fc.reference},"&[data-status=complete]":{bg:fc.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:fc.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Po.reference} - 8px)`,top:`calc(${Po.reference} + 4px)`,insetStart:`calc(${Po.reference} / 2 - 1px)`}}})),RN=MN({baseStyle:IN,sizes:{xs:Pc({stepper:{[Po.variable]:"sizes.4",[Ol.variable]:"sizes.3",[Ml.variable]:"fontSizes.xs",[Oc.variable]:"fontSizes.xs"}}),sm:Pc({stepper:{[Po.variable]:"sizes.6",[Ol.variable]:"sizes.4",[Ml.variable]:"fontSizes.sm",[Oc.variable]:"fontSizes.xs"}}),md:Pc({stepper:{[Po.variable]:"sizes.8",[Ol.variable]:"sizes.5",[Ml.variable]:"fontSizes.md",[Oc.variable]:"fontSizes.sm"}}),lg:Pc({stepper:{[Po.variable]:"sizes.10",[Ol.variable]:"sizes.6",[Ml.variable]:"fontSizes.lg",[Oc.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function er(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...c){n();for(const h of c)t[h]=l(h);return er(e,t)}function o(...c){for(const h of c)h in t||(t[h]=l(h));return er(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,f])=>[h,f.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([h,f])=>[h,f.className]))}function l(c){const d=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:d,selector:`.${d}`,toString:()=>c}}return{parts:i,toPart:l,extend:o,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var jN=er("accordion").parts("root","container","button","panel").extend("icon"),NN=er("alert").parts("title","description","container").extend("icon","spinner"),DN=er("avatar").parts("label","badge","container").extend("excessLabel","group"),FN=er("breadcrumb").parts("link","item","container").extend("separator");er("button").parts();var LN=er("checkbox").parts("control","icon","container").extend("label");er("progress").parts("track","filledTrack").extend("label");var BN=er("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),zN=er("editable").parts("preview","input","textarea"),VN=er("form").parts("container","requiredIndicator","helperText"),UN=er("formError").parts("text","icon"),HN=er("input").parts("addon","field","element","group"),WN=er("list").parts("container","item","icon"),qN=er("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),KN=er("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),GN=er("numberinput").parts("root","field","stepperGroup","stepper");er("pininput").parts("field");var XN=er("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),YN=er("progress").parts("label","filledTrack","track"),ZN=er("radio").parts("container","control","label"),QN=er("select").parts("field","icon"),JN=er("slider").parts("container","track","thumb","filledTrack","mark"),eD=er("stat").parts("container","label","helpText","number","icon"),tD=er("switch").parts("container","track","thumb","label"),rD=er("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),nD=er("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),iD=er("tag").parts("container","label","closeButton"),oD=er("card").parts("container","header","body","footer");er("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Ca(e,t,r){return Math.min(Math.max(e,r),t)}class sD extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Mc=sD;function w2(e){if(typeof e!="string")throw new Mc(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=pD.test(e)?uD(e):e;const r=cD.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(u=>parseInt(Id(u,2),16)),parseInt(Id(s[3]||"f",2),16)/255]}const n=dD.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,16)),parseInt(s[3]||"ff",16)/255]}const i=fD.exec(t);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,10)),parseFloat(s[3]||"1")]}const o=hD.exec(t);if(o){const[s,u,l,a]=Array.from(o).slice(1).map(parseFloat);if(Ca(0,100,u)!==u)throw new Mc(e);if(Ca(0,100,l)!==l)throw new Mc(e);return[...mD(s,u,l),Number.isNaN(a)?1:a]}throw new Mc(e)}function aD(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Rx=e=>parseInt(e.replace(/_/g,""),36),lD="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=Rx(t.substring(0,3)),n=Rx(t.substring(3)).toString(16);let i="";for(let o=0;o<6-n.length;o++)i+="0";return e[r]=`${i}${n}`,e},{});function uD(e){const t=e.toLowerCase().trim(),r=lD[aD(t)];if(!r)throw new Mc(e);return`#${r}`}const Id=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),cD=new RegExp(`^#${Id("([a-f0-9])",3)}([a-f0-9])?$`,"i"),dD=new RegExp(`^#${Id("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),fD=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Id(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hD=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,pD=/^[a-z]+$/i,jx=e=>Math.round(e*255),mD=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(jx);const i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),s=o*(1-Math.abs(i%2-1));let u=0,l=0,a=0;i>=0&&i<1?(u=o,l=s):i>=1&&i<2?(u=s,l=o):i>=2&&i<3?(l=o,a=s):i>=3&&i<4?(l=s,a=o):i>=4&&i<5?(u=s,a=o):i>=5&&i<6&&(u=o,a=s);const c=n-o/2,h=u+c,f=l+c,d=a+c;return[h,f,d].map(jx)};function gD(e,t,r,n){return`rgba(${Ca(0,255,e).toFixed()}, ${Ca(0,255,t).toFixed()}, ${Ca(0,255,r).toFixed()}, ${parseFloat(Ca(0,1,n).toFixed(3))})`}function vD(e,t){const[r,n,i,o]=w2(e);return gD(r,n,i,o-t)}function yD(e){const[t,r,n,i]=w2(e);let o=s=>{const u=Ca(0,255,s).toString(16);return u.length===1?`0${u}`:u};return`#${o(t)}${o(r)}${o(n)}${i<1?o(Math.round(i*255)):""}`}function bD(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,kn=(e,t,r)=>{const n=bD(e,`colors.${t}`,t);try{return yD(n),n}catch{return r??"#000000"}},_D=e=>{const[t,r,n]=w2(e);return(t*299+r*587+n*114)/1e3},xD=e=>t=>{const r=kn(t,e);return _D(r)<128?"dark":"light"},SD=e=>t=>xD(e)(t)==="dark",hu=(e,t)=>r=>{const n=kn(r,e);return vD(n,1-t)};function Nx(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + ${Z9} + `});function MR(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Wr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,u=G.createContext(s);u.displayName=t;function l(){var a;const c=G.useContext(u);if(!c&&r){const h=new Error(o??MR(n,i));throw h.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,h,l),h}return c}return[u.Provider,l,u]}var[IR,RR]=Wr({strict:!1,name:"PortalManagerContext"});function Q9(e){const{children:t,zIndex:r}=e;return X.jsx(IR,{value:{zIndex:r},children:t})}Q9.displayName="PortalManager";var Fo=globalThis!=null&&globalThis.document?G.useLayoutEffect:G.useEffect,[J9,jR]=Wr({strict:!1,name:"PortalContext"}),m2="chakra-portal",NR=".chakra-portal",DR=e=>X.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),FR=e=>{const{appendToParentPortal:t,children:r}=e,[n,i]=G.useState(null),o=G.useRef(null),[,s]=G.useState({});G.useEffect(()=>s({}),[]);const u=jR(),l=RR();Fo(()=>{if(!n)return;const c=n.ownerDocument,h=t?u??c.body:c.body;if(!h)return;o.current=c.createElement("div"),o.current.className=m2,h.appendChild(o.current),s({});const f=o.current;return()=>{h.contains(f)&&h.removeChild(f)}},[n]);const a=l!=null&&l.zIndex?X.jsx(DR,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return o.current?Wm.createPortal(X.jsx(J9,{value:o.current,children:a}),o.current):X.jsx("span",{ref:c=>{c&&i(c)}})},LR=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,i=r.current,o=i??(typeof window<"u"?document.body:void 0),s=G.useMemo(()=>{const l=i==null?void 0:i.ownerDocument.createElement("div");return l&&(l.className=m2),l},[i]),[,u]=G.useState({});return Fo(()=>u({}),[]),Fo(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?Wm.createPortal(X.jsx(J9,{value:n?s:null,children:t}),s):null};function a0(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?X.jsx(LR,{containerRef:r,...n}):X.jsx(FR,{...n})}a0.className=m2;a0.selector=NR;a0.displayName="Portal";function Ga(){const e=G.useContext(fu);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var g2=G.createContext({});g2.displayName="ColorModeContext";function l0(){const e=G.useContext(g2);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function xx(e,t){const{colorMode:r}=l0();return r==="dark"?t:e}var Qf={light:"chakra-ui-light",dark:"chakra-ui-dark"};function BR(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,i==null||i()},setClassName(n){document.body.classList.add(n?Qf.dark:Qf.light),document.body.classList.remove(n?Qf.light:Qf.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var i;return((i=r.query().matches)!=null?i:n==="dark")?"dark":"light"},addListener(n){const i=r.query(),o=s=>{n(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var zR="chakra-ui-color-mode";function VR(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var UR=VR(zR),Sx=()=>{};function kx(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function eC(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:s=UR}=e,u=i==="dark"?"dark":"light",[l,a]=G.useState(()=>kx(s,u)),[c,h]=G.useState(()=>kx(s)),{getSystemTheme:f,setClassName:d,setDataset:m,addListener:g}=G.useMemo(()=>BR({preventTransition:o}),[o]),p=i==="system"&&!l?c:l,v=G.useCallback(_=>{const E=_==="system"?f():_;a(E),d(E==="dark"),m(E),s.set(E)},[s,f,d,m]);Fo(()=>{i==="system"&&h(f())},[]),G.useEffect(()=>{const _=s.get();if(_){v(_);return}if(i==="system"){v("system");return}v(u)},[s,u,i,v]);const y=G.useCallback(()=>{v(p==="dark"?"light":"dark")},[p,v]);G.useEffect(()=>{if(n)return g(v)},[n,g,v]);const b=G.useMemo(()=>({colorMode:t??p,toggleColorMode:t?Sx:y,setColorMode:t?Sx:v,forced:t!==void 0}),[p,y,v,t]);return X.jsx(g2.Provider,{value:b,children:r})}eC.displayName="ColorModeProvider";function HR(){const e=l0(),t=Ga();return{...e,theme:t}}var sr=(...e)=>e.filter(Boolean).join(" ");function ln(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Ro(e,...t){return WR(e)?e(...t):e}var WR=e=>typeof e=="function",gt=e=>e?"":void 0,Lo=e=>e?!0:void 0;function Ht(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function tC(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var zp={exports:{}};zp.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,u="[object Arguments]",l="[object Array]",a="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",m="[object GeneratorFunction]",g="[object Map]",p="[object Number]",v="[object Null]",y="[object Object]",b="[object Proxy]",_="[object RegExp]",E="[object Set]",$="[object String]",M="[object Undefined]",P="[object WeakMap]",D="[object ArrayBuffer]",F="[object DataView]",U="[object Float32Array]",V="[object Float64Array]",A="[object Int8Array]",O="[object Int16Array]",C="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",x="[object Uint16Array]",k="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,I=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,z={};z[U]=z[V]=z[A]=z[O]=z[C]=z[w]=z[S]=z[x]=z[k]=!0,z[u]=z[l]=z[D]=z[c]=z[F]=z[h]=z[f]=z[d]=z[g]=z[p]=z[y]=z[_]=z[E]=z[$]=z[P]=!1;var B=typeof _t=="object"&&_t&&_t.Object===Object&&_t,W=typeof self=="object"&&self&&self.Object===Object&&self,N=B||W||Function("return this")(),q=t&&!t.nodeType&&t,j=q&&!0&&e&&!e.nodeType&&e,R=j&&j.exports===q,H=R&&B.process,K=function(){try{var oe=j&&j.require&&j.require("util").types;return oe||H&&H.binding&&H.binding("util")}catch{}}(),ee=K&&K.isTypedArray;function Y(oe,me,_e){switch(_e.length){case 0:return oe.call(me);case 1:return oe.call(me,_e[0]);case 2:return oe.call(me,_e[0],_e[1]);case 3:return oe.call(me,_e[0],_e[1],_e[2])}return oe.apply(me,_e)}function te(oe,me){for(var _e=-1,qe=Array(oe);++_e-1}function Z(oe,me){var _e=this.__data__,qe=ve(_e,oe);return qe<0?(++this.size,_e.push([oe,me])):_e[qe][1]=me,this}xt.prototype.clear=Vt,xt.prototype.delete=pt,xt.prototype.get=ce,xt.prototype.has=J,xt.prototype.set=Z;function ne(oe){var me=-1,_e=oe==null?0:oe.length;for(this.clear();++me<_e;){var qe=oe[me];this.set(qe[0],qe[1])}}function he(){this.size=0,this.__data__={hash:new kt,map:new(Ct||xt),string:new kt}}function ue(oe){var me=Ti(this,oe).delete(oe);return this.size-=me?1:0,me}function $e(oe){return Ti(this,oe).get(oe)}function Te(oe){return Ti(this,oe).has(oe)}function je(oe,me){var _e=Ti(this,oe),qe=_e.size;return _e.set(oe,me),this.size+=_e.size==qe?0:1,this}ne.prototype.clear=he,ne.prototype.delete=ue,ne.prototype.get=$e,ne.prototype.has=Te,ne.prototype.set=je;function Ve(oe){var me=this.__data__=new xt(oe);this.size=me.size}function We(){this.__data__=new xt,this.size=0}function Ue(oe){var me=this.__data__,_e=me.delete(oe);return this.size=me.size,_e}function ct(oe){return this.__data__.get(oe)}function dt(oe){return this.__data__.has(oe)}function Ke(oe,me){var _e=this.__data__;if(_e instanceof xt){var qe=_e.__data__;if(!Ct||qe.length1?_e[Ut-1]:void 0,wr=Ut>2?_e[2]:void 0;for(cr=oe.length>3&&typeof cr=="function"?(Ut--,cr):void 0,wr&&ko(_e[0],_e[1],wr)&&(cr=Ut<3?void 0:cr,Ut=1),me=Object(me);++qe-1&&oe%1==0&&oe0){if(++me>=i)return arguments[0]}else me=0;return oe.apply(void 0,arguments)}}function ol(oe){if(oe!=null){try{return pe.call(oe)}catch{}try{return oe+""}catch{}}return""}function ls(oe,me){return oe===me||oe!==oe&&me!==me}var us=Me(function(){return arguments}())?Me:function(oe){return tc(oe)&&ye.call(oe,"callee")&&!Pe.call(oe,"callee")},cs=Array.isArray;function sl(oe){return oe!=null&&J_(oe.length)&&!hg(oe)}function al(oe){return tc(oe)&&sl(oe)}var oa=St||aO;function hg(oe){if(!sa(oe))return!1;var me=He(oe);return me==d||me==m||me==a||me==b}function J_(oe){return typeof oe=="number"&&oe>-1&&oe%1==0&&oe<=s}function sa(oe){var me=typeof oe;return oe!=null&&(me=="object"||me=="function")}function tc(oe){return oe!=null&&typeof oe=="object"}function nO(oe){if(!tc(oe)||He(oe)!=y)return!1;var me=Se(oe);if(me===null)return!0;var _e=ye.call(me,"constructor")&&me.constructor;return typeof _e=="function"&&_e instanceof _e&&pe.call(_e)==Ie}var e3=ee?ie(ee):ft;function iO(oe){return cn(oe,t3(oe))}function t3(oe){return sl(oe)?yt(oe,!0):it(oe)}var oO=Gr(function(oe,me,_e,qe){tt(oe,me,_e,qe)});function sO(oe){return function(){return oe}}function r3(oe){return oe}function aO(){return!1}e.exports=oO})(zp,zp.exports);var qR=zp.exports;const fo=ir(qR);var KR=e=>/!(important)?$/.test(e),Cx=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,GR=(e,t)=>r=>{const n=String(t),i=KR(n),o=Cx(n),s=e?`${e}.${o}`:o;let u=ln(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return u=Cx(u),i?`${u} !important`:u};function v2(e){const{scale:t,transform:r,compose:n}=e;return(o,s)=>{var u;const l=GR(t,o)(s);let a=(u=r==null?void 0:r(l,s))!=null?u:l;return n&&(a=n(a,s)),a}}var Jf=(...e)=>t=>e.reduce((r,n)=>n(r),t);function li(e,t){return r=>{const n={property:r,scale:e};return n.transform=v2({scale:e,transform:t}),n}}var XR=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function YR(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:XR(t),transform:r?v2({scale:r,compose:n}):n}}var rC=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function ZR(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...rC].join(" ")}function QR(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...rC].join(" ")}var JR={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},ej={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function tj(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var rj={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Zv={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},nj=new Set(Object.values(Zv)),Qv=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),ij=e=>e.trim();function oj(e,t){if(e==null||Qv.has(e))return e;if(!(Jv(e)||Qv.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!o||!s)return e;const u=o.includes("-gradient")?o:`${o}-gradient`,[l,...a]=s.split(",").map(ij).filter(Boolean);if((a==null?void 0:a.length)===0)return e;const c=l in Zv?Zv[l]:l;a.unshift(c);const h=a.map(f=>{if(nj.has(f))return f;const d=f.indexOf(" "),[m,g]=d!==-1?[f.substr(0,d),f.substr(d+1)]:[f],p=Jv(g)?g:g&&g.split(" "),v=`colors.${m}`,y=v in t.__cssMap?t.__cssMap[v].varRef:m;return p?[y,...Array.isArray(p)?p:[p]].join(" "):y});return`${u}(${h.join(", ")})`}var Jv=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),sj=(e,t)=>oj(e,t??{});function aj(e){return/^var\(--.+\)$/.test(e)}var lj=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},no=e=>t=>`${e}(${t})`,zt={filter(e){return e!=="auto"?e:JR},backdropFilter(e){return e!=="auto"?e:ej},ring(e){return tj(zt.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?ZR():e==="auto-gpu"?QR():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=lj(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(aj(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:sj,blur:no("blur"),opacity:no("opacity"),brightness:no("brightness"),contrast:no("contrast"),dropShadow:no("drop-shadow"),grayscale:no("grayscale"),hueRotate:e=>no("hue-rotate")(zt.degree(e)),invert:no("invert"),saturate:no("saturate"),sepia:no("sepia"),bgImage(e){return e==null||Jv(e)||Qv.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=rj[e])!=null?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},ge={borderWidths:li("borderWidths"),borderStyles:li("borderStyles"),colors:li("colors"),borders:li("borders"),gradients:li("gradients",zt.gradient),radii:li("radii",zt.px),space:li("space",Jf(zt.vh,zt.px)),spaceT:li("space",Jf(zt.vh,zt.px)),degreeT(e){return{property:e,transform:zt.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:v2({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:li("sizes",Jf(zt.vh,zt.px)),sizesT:li("sizes",Jf(zt.vh,zt.fraction)),shadows:li("shadows"),logical:YR,blur:li("blur",zt.blur)},Hh={background:ge.colors("background"),backgroundColor:ge.colors("backgroundColor"),backgroundImage:ge.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:zt.bgClip},bgSize:ge.prop("backgroundSize"),bgPosition:ge.prop("backgroundPosition"),bg:ge.colors("background"),bgColor:ge.colors("backgroundColor"),bgPos:ge.prop("backgroundPosition"),bgRepeat:ge.prop("backgroundRepeat"),bgAttachment:ge.prop("backgroundAttachment"),bgGradient:ge.gradients("backgroundImage"),bgClip:{transform:zt.bgClip}};Object.assign(Hh,{bgImage:Hh.backgroundImage,bgImg:Hh.backgroundImage});var Yt={border:ge.borders("border"),borderWidth:ge.borderWidths("borderWidth"),borderStyle:ge.borderStyles("borderStyle"),borderColor:ge.colors("borderColor"),borderRadius:ge.radii("borderRadius"),borderTop:ge.borders("borderTop"),borderBlockStart:ge.borders("borderBlockStart"),borderTopLeftRadius:ge.radii("borderTopLeftRadius"),borderStartStartRadius:ge.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ge.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ge.radii("borderTopRightRadius"),borderStartEndRadius:ge.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ge.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ge.borders("borderRight"),borderInlineEnd:ge.borders("borderInlineEnd"),borderBottom:ge.borders("borderBottom"),borderBlockEnd:ge.borders("borderBlockEnd"),borderBottomLeftRadius:ge.radii("borderBottomLeftRadius"),borderBottomRightRadius:ge.radii("borderBottomRightRadius"),borderLeft:ge.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ge.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ge.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ge.borders(["borderLeft","borderRight"]),borderInline:ge.borders("borderInline"),borderY:ge.borders(["borderTop","borderBottom"]),borderBlock:ge.borders("borderBlock"),borderTopWidth:ge.borderWidths("borderTopWidth"),borderBlockStartWidth:ge.borderWidths("borderBlockStartWidth"),borderTopColor:ge.colors("borderTopColor"),borderBlockStartColor:ge.colors("borderBlockStartColor"),borderTopStyle:ge.borderStyles("borderTopStyle"),borderBlockStartStyle:ge.borderStyles("borderBlockStartStyle"),borderBottomWidth:ge.borderWidths("borderBottomWidth"),borderBlockEndWidth:ge.borderWidths("borderBlockEndWidth"),borderBottomColor:ge.colors("borderBottomColor"),borderBlockEndColor:ge.colors("borderBlockEndColor"),borderBottomStyle:ge.borderStyles("borderBottomStyle"),borderBlockEndStyle:ge.borderStyles("borderBlockEndStyle"),borderLeftWidth:ge.borderWidths("borderLeftWidth"),borderInlineStartWidth:ge.borderWidths("borderInlineStartWidth"),borderLeftColor:ge.colors("borderLeftColor"),borderInlineStartColor:ge.colors("borderInlineStartColor"),borderLeftStyle:ge.borderStyles("borderLeftStyle"),borderInlineStartStyle:ge.borderStyles("borderInlineStartStyle"),borderRightWidth:ge.borderWidths("borderRightWidth"),borderInlineEndWidth:ge.borderWidths("borderInlineEndWidth"),borderRightColor:ge.colors("borderRightColor"),borderInlineEndColor:ge.colors("borderInlineEndColor"),borderRightStyle:ge.borderStyles("borderRightStyle"),borderInlineEndStyle:ge.borderStyles("borderInlineEndStyle"),borderTopRadius:ge.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ge.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ge.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ge.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Yt,{rounded:Yt.borderRadius,roundedTop:Yt.borderTopRadius,roundedTopLeft:Yt.borderTopLeftRadius,roundedTopRight:Yt.borderTopRightRadius,roundedTopStart:Yt.borderStartStartRadius,roundedTopEnd:Yt.borderStartEndRadius,roundedBottom:Yt.borderBottomRadius,roundedBottomLeft:Yt.borderBottomLeftRadius,roundedBottomRight:Yt.borderBottomRightRadius,roundedBottomStart:Yt.borderEndStartRadius,roundedBottomEnd:Yt.borderEndEndRadius,roundedLeft:Yt.borderLeftRadius,roundedRight:Yt.borderRightRadius,roundedStart:Yt.borderInlineStartRadius,roundedEnd:Yt.borderInlineEndRadius,borderStart:Yt.borderInlineStart,borderEnd:Yt.borderInlineEnd,borderTopStartRadius:Yt.borderStartStartRadius,borderTopEndRadius:Yt.borderStartEndRadius,borderBottomStartRadius:Yt.borderEndStartRadius,borderBottomEndRadius:Yt.borderEndEndRadius,borderStartRadius:Yt.borderInlineStartRadius,borderEndRadius:Yt.borderInlineEndRadius,borderStartWidth:Yt.borderInlineStartWidth,borderEndWidth:Yt.borderInlineEndWidth,borderStartColor:Yt.borderInlineStartColor,borderEndColor:Yt.borderInlineEndColor,borderStartStyle:Yt.borderInlineStartStyle,borderEndStyle:Yt.borderInlineEndStyle});var uj={color:ge.colors("color"),textColor:ge.colors("color"),fill:ge.colors("fill"),stroke:ge.colors("stroke")},ey={boxShadow:ge.shadows("boxShadow"),mixBlendMode:!0,blendMode:ge.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ge.prop("backgroundBlendMode"),opacity:!0};Object.assign(ey,{shadow:ey.boxShadow});var cj={filter:{transform:zt.filter},blur:ge.blur("--chakra-blur"),brightness:ge.propT("--chakra-brightness",zt.brightness),contrast:ge.propT("--chakra-contrast",zt.contrast),hueRotate:ge.propT("--chakra-hue-rotate",zt.hueRotate),invert:ge.propT("--chakra-invert",zt.invert),saturate:ge.propT("--chakra-saturate",zt.saturate),dropShadow:ge.propT("--chakra-drop-shadow",zt.dropShadow),backdropFilter:{transform:zt.backdropFilter},backdropBlur:ge.blur("--chakra-backdrop-blur"),backdropBrightness:ge.propT("--chakra-backdrop-brightness",zt.brightness),backdropContrast:ge.propT("--chakra-backdrop-contrast",zt.contrast),backdropHueRotate:ge.propT("--chakra-backdrop-hue-rotate",zt.hueRotate),backdropInvert:ge.propT("--chakra-backdrop-invert",zt.invert),backdropSaturate:ge.propT("--chakra-backdrop-saturate",zt.saturate)},Vp={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:zt.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ge.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ge.space("gap"),rowGap:ge.space("rowGap"),columnGap:ge.space("columnGap")};Object.assign(Vp,{flexDir:Vp.flexDirection});var nC={gridGap:ge.space("gridGap"),gridColumnGap:ge.space("gridColumnGap"),gridRowGap:ge.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},dj={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:zt.outline},outlineOffset:!0,outlineColor:ge.colors("outlineColor")},ci={width:ge.sizesT("width"),inlineSize:ge.sizesT("inlineSize"),height:ge.sizes("height"),blockSize:ge.sizes("blockSize"),boxSize:ge.sizes(["width","height"]),minWidth:ge.sizes("minWidth"),minInlineSize:ge.sizes("minInlineSize"),minHeight:ge.sizes("minHeight"),minBlockSize:ge.sizes("minBlockSize"),maxWidth:ge.sizes("maxWidth"),maxInlineSize:ge.sizes("maxInlineSize"),maxHeight:ge.sizes("maxHeight"),maxBlockSize:ge.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (min-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (max-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ge.propT("float",zt.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ci,{w:ci.width,h:ci.height,minW:ci.minWidth,maxW:ci.maxWidth,minH:ci.minHeight,maxH:ci.maxHeight,overscroll:ci.overscrollBehavior,overscrollX:ci.overscrollBehaviorX,overscrollY:ci.overscrollBehaviorY});var fj={listStyleType:!0,listStylePosition:!0,listStylePos:ge.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ge.prop("listStyleImage")};function hj(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,o,s)=>{if(typeof n>"u")return e(n,i,o);t.has(n)||t.set(n,new Map);const u=t.get(n);if(u.has(i))return u.get(i);const l=e(n,i,o,s);return u.set(i,l),l}},mj=pj(hj),gj={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},vj={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Ug=(e,t,r)=>{const n={},i=mj(e,t,{});for(const o in i)o in r&&r[o]!=null||(n[o]=i[o]);return n},yj={srOnly:{transform(e){return e===!0?gj:e==="focusable"?vj:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Ug(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Ug(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Ug(t,e,r)}},qc={position:!0,pos:ge.prop("position"),zIndex:ge.prop("zIndex","zIndices"),inset:ge.spaceT("inset"),insetX:ge.spaceT(["left","right"]),insetInline:ge.spaceT("insetInline"),insetY:ge.spaceT(["top","bottom"]),insetBlock:ge.spaceT("insetBlock"),top:ge.spaceT("top"),insetBlockStart:ge.spaceT("insetBlockStart"),bottom:ge.spaceT("bottom"),insetBlockEnd:ge.spaceT("insetBlockEnd"),left:ge.spaceT("left"),insetInlineStart:ge.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ge.spaceT("right"),insetInlineEnd:ge.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(qc,{insetStart:qc.insetInlineStart,insetEnd:qc.insetInlineEnd});var bj={ring:{transform:zt.ring},ringColor:ge.colors("--chakra-ring-color"),ringOffset:ge.prop("--chakra-ring-offset-width"),ringOffsetColor:ge.colors("--chakra-ring-offset-color"),ringInset:ge.prop("--chakra-ring-inset")},gr={margin:ge.spaceT("margin"),marginTop:ge.spaceT("marginTop"),marginBlockStart:ge.spaceT("marginBlockStart"),marginRight:ge.spaceT("marginRight"),marginInlineEnd:ge.spaceT("marginInlineEnd"),marginBottom:ge.spaceT("marginBottom"),marginBlockEnd:ge.spaceT("marginBlockEnd"),marginLeft:ge.spaceT("marginLeft"),marginInlineStart:ge.spaceT("marginInlineStart"),marginX:ge.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ge.spaceT("marginInline"),marginY:ge.spaceT(["marginTop","marginBottom"]),marginBlock:ge.spaceT("marginBlock"),padding:ge.space("padding"),paddingTop:ge.space("paddingTop"),paddingBlockStart:ge.space("paddingBlockStart"),paddingRight:ge.space("paddingRight"),paddingBottom:ge.space("paddingBottom"),paddingBlockEnd:ge.space("paddingBlockEnd"),paddingLeft:ge.space("paddingLeft"),paddingInlineStart:ge.space("paddingInlineStart"),paddingInlineEnd:ge.space("paddingInlineEnd"),paddingX:ge.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ge.space("paddingInline"),paddingY:ge.space(["paddingTop","paddingBottom"]),paddingBlock:ge.space("paddingBlock")};Object.assign(gr,{m:gr.margin,mt:gr.marginTop,mr:gr.marginRight,me:gr.marginInlineEnd,marginEnd:gr.marginInlineEnd,mb:gr.marginBottom,ml:gr.marginLeft,ms:gr.marginInlineStart,marginStart:gr.marginInlineStart,mx:gr.marginX,my:gr.marginY,p:gr.padding,pt:gr.paddingTop,py:gr.paddingY,px:gr.paddingX,pb:gr.paddingBottom,pl:gr.paddingLeft,ps:gr.paddingInlineStart,paddingStart:gr.paddingInlineStart,pr:gr.paddingRight,pe:gr.paddingInlineEnd,paddingEnd:gr.paddingInlineEnd});var wj={textDecorationColor:ge.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ge.shadows("textShadow")},_j={clipPath:!0,transform:ge.propT("transform",zt.transform),transformOrigin:!0,translateX:ge.spaceT("--chakra-translate-x"),translateY:ge.spaceT("--chakra-translate-y"),skewX:ge.degreeT("--chakra-skew-x"),skewY:ge.degreeT("--chakra-skew-y"),scaleX:ge.prop("--chakra-scale-x"),scaleY:ge.prop("--chakra-scale-y"),scale:ge.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ge.degreeT("--chakra-rotate")},xj={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ge.prop("transitionDuration","transition.duration"),transitionProperty:ge.prop("transitionProperty","transition.property"),transitionTimingFunction:ge.prop("transitionTimingFunction","transition.easing")},Sj={fontFamily:ge.prop("fontFamily","fonts"),fontSize:ge.prop("fontSize","fontSizes",zt.px),fontWeight:ge.prop("fontWeight","fontWeights"),lineHeight:ge.prop("lineHeight","lineHeights"),letterSpacing:ge.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},kj={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ge.spaceT("scrollMargin"),scrollMarginTop:ge.spaceT("scrollMarginTop"),scrollMarginBottom:ge.spaceT("scrollMarginBottom"),scrollMarginLeft:ge.spaceT("scrollMarginLeft"),scrollMarginRight:ge.spaceT("scrollMarginRight"),scrollMarginX:ge.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ge.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ge.spaceT("scrollPadding"),scrollPaddingTop:ge.spaceT("scrollPaddingTop"),scrollPaddingBottom:ge.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ge.spaceT("scrollPaddingLeft"),scrollPaddingRight:ge.spaceT("scrollPaddingRight"),scrollPaddingX:ge.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ge.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function iC(e){return ln(e)&&e.reference?e.reference:String(e)}var u0=(e,...t)=>t.map(iC).join(` ${e} `).replace(/calc/g,""),Ex=(...e)=>`calc(${u0("+",...e)})`,Tx=(...e)=>`calc(${u0("-",...e)})`,ty=(...e)=>`calc(${u0("*",...e)})`,$x=(...e)=>`calc(${u0("/",...e)})`,Ax=e=>{const t=iC(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ty(t,-1)},ga=Object.assign(e=>({add:(...t)=>ga(Ex(e,...t)),subtract:(...t)=>ga(Tx(e,...t)),multiply:(...t)=>ga(ty(e,...t)),divide:(...t)=>ga($x(e,...t)),negate:()=>ga(Ax(e)),toString:()=>e.toString()}),{add:Ex,subtract:Tx,multiply:ty,divide:$x,negate:Ax});function Cj(e,t="-"){return e.replace(/\s+/g,t)}function Ej(e){const t=Cj(e.toString());return $j(Tj(t))}function Tj(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function $j(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Aj(e,t=""){return[t,e].filter(Boolean).join("-")}function Pj(e,t){return`var(${e}${t?`, ${t}`:""})`}function Oj(e,t=""){return Ej(`--${Aj(e,t)}`)}function lt(e,t,r){const n=Oj(e,r);return{variable:n,reference:Pj(n,t)}}function Mj(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[i,o]=n;r[i]=lt(`${e}-${i}`,o);continue}r[n]=lt(`${e}-${n}`)}return r}function Ij(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Rj(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function ry(e){if(e==null)return e;const{unitless:t}=Rj(e);return t||typeof e=="number"?`${e}px`:e}var oC=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,y2=e=>Object.fromEntries(Object.entries(e).sort(oC));function Px(e){const t=y2(e);return Object.assign(Object.values(t),t)}function jj(e){const t=Object.keys(y2(e));return new Set(t)}function Ox(e){var t;if(!e)return e;e=(t=ry(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Ac(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${ry(e)})`),t&&r.push("and",`(max-width: ${ry(t)})`),r.join(" ")}function Nj(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Px(e),n=Object.entries(e).sort(oC).map(([s,u],l,a)=>{var c;let[,h]=(c=a[l+1])!=null?c:[];return h=parseFloat(h)>0?Ox(h):void 0,{_minW:Ox(u),breakpoint:s,minW:u,maxW:h,maxWQuery:Ac(null,h),minWQuery:Ac(u),minMaxQuery:Ac(u,h)}}),i=jj(e),o=Array.from(i.values());return{keys:i,normalized:r,isResponsive(s){const u=Object.keys(s);return u.length>0&&u.every(l=>i.has(l))},asObject:y2(e),asArray:Px(e),details:n,get(s){return n.find(u=>u.breakpoint===s)},media:[null,...r.map(s=>Ac(s)).slice(1)],toArrayValue(s){if(!ln(s))throw new Error("toArrayValue: value must be an object");const u=o.map(l=>{var a;return(a=s[l])!=null?a:null});for(;Ij(u)===null;)u.pop();return u},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((u,l,a)=>{const c=o[a];return c!=null&&l!=null&&(u[c]=l),u},{})}}}var tn={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},fs=e=>sC(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Co=e=>sC(t=>e(t,"~ &"),"[data-peer]",".peer"),sC=(e,...t)=>t.map(e).join(", "),c0={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:fs(tn.hover),_peerHover:Co(tn.hover),_groupFocus:fs(tn.focus),_peerFocus:Co(tn.focus),_groupFocusVisible:fs(tn.focusVisible),_peerFocusVisible:Co(tn.focusVisible),_groupActive:fs(tn.active),_peerActive:Co(tn.active),_groupDisabled:fs(tn.disabled),_peerDisabled:Co(tn.disabled),_groupInvalid:fs(tn.invalid),_peerInvalid:Co(tn.invalid),_groupChecked:fs(tn.checked),_peerChecked:Co(tn.checked),_groupFocusWithin:fs(tn.focusWithin),_peerFocusWithin:Co(tn.focusWithin),_peerPlaceholderShown:Co(tn.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},aC=Object.keys(c0);function Mx(e,t){return lt(String(e).replace(/\./g,"-"),void 0,t)}function Dj(e,t){let r={};const n={};for(const[i,o]of Object.entries(e)){const{isSemantic:s,value:u}=o,{variable:l,reference:a}=Mx(i,t==null?void 0:t.cssVarPrefix);if(!s){if(i.startsWith("space")){const f=i.split("."),[d,...m]=f,g=`${d}.-${m.join(".")}`,p=ga.negate(u),v=ga.negate(a);n[g]={value:p,var:l,varRef:v}}r[l]=u,n[i]={value:u,var:l,varRef:a};continue}const c=f=>{const m=[String(i).split(".")[0],f].join(".");if(!e[m])return f;const{reference:p}=Mx(m,t==null?void 0:t.cssVarPrefix);return p},h=ln(u)?u:{default:u};r=fo(r,Object.entries(h).reduce((f,[d,m])=>{var g,p;if(!m)return f;const v=c(`${m}`);if(d==="default")return f[l]=v,f;const y=(p=(g=c0)==null?void 0:g[d])!=null?p:d;return f[y]={[l]:v},f},{})),n[i]={value:a,var:l,varRef:a}}return{cssVars:r,cssMap:n}}function Fj(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Lj(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Bj(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function Ix(e,t,r={}){const{stop:n,getKey:i}=r;function o(s,u=[]){var l;if(Bj(s)||Array.isArray(s)){const a={};for(const[c,h]of Object.entries(s)){const f=(l=i==null?void 0:i(c))!=null?l:c,d=[...u,f];if(n!=null&&n(s,d))return t(s,u);a[f]=o(h,d)}return a}return t(s,u)}return o(e)}var zj=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Vj(e){return Lj(e,zj)}function Uj(e){return e.semanticTokens}function Hj(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}var Wj=e=>aC.includes(e)||e==="default";function qj({tokens:e,semanticTokens:t}){const r={};return Ix(e,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!1,value:n})}),Ix(t,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(Wj)}),r}function Kj(e){var t;const r=Hj(e),n=Vj(r),i=Uj(r),o=qj({tokens:n,semanticTokens:i}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:l}=Dj(o,{cssVarPrefix:s});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:u,__breakpoints:Nj(r.breakpoints)}),r}var b2=fo({},Hh,Yt,uj,Vp,ci,cj,bj,dj,nC,yj,qc,ey,gr,kj,Sj,wj,_j,fj,xj),Gj=Object.assign({},gr,ci,Vp,nC,qc),Xj=Object.keys(Gj),Yj=[...Object.keys(b2),...aC],Zj={...b2,...c0},Qj=e=>e in Zj,Jj=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:i}=t.__breakpoints,o={};for(const s in e){let u=Ro(e[s],t);if(u==null)continue;if(u=ln(u)&&r(u)?n(u):u,!Array.isArray(u)){o[s]=u;continue}const l=u.slice(0,i.length).length;for(let a=0;ae.startsWith("--")&&typeof t=="string"&&!tN(t),nN=(e,t)=>{var r,n;if(t==null)return t;const i=l=>{var a,c;return(c=(a=e.__cssMap)==null?void 0:a[l])==null?void 0:c.varRef},o=l=>{var a;return(a=i(l))!=null?a:l},[s,u]=eN(t);return t=(n=(r=i(s))!=null?r:o(u))!=null?n:o(t),t};function iN(e){const{configs:t={},pseudos:r={},theme:n}=e,i=(o,s=!1)=>{var u,l,a;const c=Ro(o,n),h=Jj(c)(n);let f={};for(let d in h){const m=h[d];let g=Ro(m,n);d in r&&(d=r[d]),rN(d,g)&&(g=nN(n,g));let p=t[d];if(p===!0&&(p={property:d}),ln(g)){f[d]=(u=f[d])!=null?u:{},f[d]=fo({},f[d],i(g,!0));continue}let v=(a=(l=p==null?void 0:p.transform)==null?void 0:l.call(p,g,n,c))!=null?a:g;v=p!=null&&p.processResult?i(v,!0):v;const y=Ro(p==null?void 0:p.property,n);if(!s&&(p!=null&&p.static)){const b=Ro(p.static,n);f=fo({},f,b)}if(y&&Array.isArray(y)){for(const b of y)f[b]=v;continue}if(y){y==="&"&&ln(v)?f=fo({},f,v):f[y]=v;continue}if(ln(v)){f=fo({},f,v);continue}f[d]=v}return f};return i}var lC=e=>t=>iN({theme:t,pseudos:c0,configs:b2})(e);function pr(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function oN(e,t){if(Array.isArray(e))return e;if(ln(e))return t(e);if(e!=null)return[e]}function sN(e,t){for(let r=t+1;r{fo(a,{[b]:f?y[b]:{[v]:y[b]}})});continue}if(!d){f?fo(a,y):a[v]=y;continue}a[v]=y}}return a}}function lN(e){return t=>{var r;const{variant:n,size:i,theme:o}=t,s=aN(o);return fo({},Ro((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",i,t),s(e,"variants",n,t))}}function qr(e){return Fj(e,["styleConfig","size","variant","colorScheme"])}var uN={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},cN={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},dN={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},fN={property:uN,easing:cN,duration:dN},hN=fN,pN={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},mN=pN,gN={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},vN=gN,yN={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},bN=yN,wN={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},_N=wN,xN={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},SN=xN,kN={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},CN=kN,EN={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},TN=EN,$N={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},uC=$N,cC={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},AN={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},PN={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},ON={...cC,...AN,container:PN},dC=ON,MN={breakpoints:bN,zIndices:mN,radii:SN,blur:TN,colors:_N,...uC,sizes:dC,shadows:CN,space:cC,borders:vN,transition:hN},{defineMultiStyleConfig:IN,definePartsStyle:Pc}=pr(["stepper","step","title","description","indicator","separator","icon","number"]),Po=lt("stepper-indicator-size"),Ol=lt("stepper-icon-size"),Ml=lt("stepper-title-font-size"),Oc=lt("stepper-description-font-size"),fc=lt("stepper-accent-color"),RN=Pc(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[fc.variable]:`colors.${e}.500`,_dark:{[fc.variable]:`colors.${e}.200`}},title:{fontSize:Ml.reference,fontWeight:"medium"},description:{fontSize:Oc.reference,color:"chakra-subtle-text"},number:{fontSize:Ml.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Ol.reference,height:Ol.reference},indicator:{flexShrink:0,borderRadius:"full",width:Po.reference,height:Po.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:fc.reference},"&[data-status=complete]":{bg:fc.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:fc.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Po.reference} - 8px)`,top:`calc(${Po.reference} + 4px)`,insetStart:`calc(${Po.reference} / 2 - 1px)`}}})),jN=IN({baseStyle:RN,sizes:{xs:Pc({stepper:{[Po.variable]:"sizes.4",[Ol.variable]:"sizes.3",[Ml.variable]:"fontSizes.xs",[Oc.variable]:"fontSizes.xs"}}),sm:Pc({stepper:{[Po.variable]:"sizes.6",[Ol.variable]:"sizes.4",[Ml.variable]:"fontSizes.sm",[Oc.variable]:"fontSizes.xs"}}),md:Pc({stepper:{[Po.variable]:"sizes.8",[Ol.variable]:"sizes.5",[Ml.variable]:"fontSizes.md",[Oc.variable]:"fontSizes.sm"}}),lg:Pc({stepper:{[Po.variable]:"sizes.10",[Ol.variable]:"sizes.6",[Ml.variable]:"fontSizes.lg",[Oc.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function er(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...c){n();for(const h of c)t[h]=l(h);return er(e,t)}function o(...c){for(const h of c)h in t||(t[h]=l(h));return er(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,f])=>[h,f.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([h,f])=>[h,f.className]))}function l(c){const d=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:d,selector:`.${d}`,toString:()=>c}}return{parts:i,toPart:l,extend:o,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var NN=er("accordion").parts("root","container","button","panel").extend("icon"),DN=er("alert").parts("title","description","container").extend("icon","spinner"),FN=er("avatar").parts("label","badge","container").extend("excessLabel","group"),LN=er("breadcrumb").parts("link","item","container").extend("separator");er("button").parts();var BN=er("checkbox").parts("control","icon","container").extend("label");er("progress").parts("track","filledTrack").extend("label");var zN=er("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),VN=er("editable").parts("preview","input","textarea"),UN=er("form").parts("container","requiredIndicator","helperText"),HN=er("formError").parts("text","icon"),WN=er("input").parts("addon","field","element","group"),qN=er("list").parts("container","item","icon"),KN=er("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),GN=er("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),XN=er("numberinput").parts("root","field","stepperGroup","stepper");er("pininput").parts("field");var YN=er("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),ZN=er("progress").parts("label","filledTrack","track"),QN=er("radio").parts("container","control","label"),JN=er("select").parts("field","icon"),eD=er("slider").parts("container","track","thumb","filledTrack","mark"),tD=er("stat").parts("container","label","helpText","number","icon"),rD=er("switch").parts("container","track","thumb","label"),nD=er("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),iD=er("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),oD=er("tag").parts("container","label","closeButton"),sD=er("card").parts("container","header","body","footer");er("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Ca(e,t,r){return Math.min(Math.max(e,r),t)}class aD extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Mc=aD;function w2(e){if(typeof e!="string")throw new Mc(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=mD.test(e)?cD(e):e;const r=dD.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(u=>parseInt(Id(u,2),16)),parseInt(Id(s[3]||"f",2),16)/255]}const n=fD.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,16)),parseInt(s[3]||"ff",16)/255]}const i=hD.exec(t);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,10)),parseFloat(s[3]||"1")]}const o=pD.exec(t);if(o){const[s,u,l,a]=Array.from(o).slice(1).map(parseFloat);if(Ca(0,100,u)!==u)throw new Mc(e);if(Ca(0,100,l)!==l)throw new Mc(e);return[...gD(s,u,l),Number.isNaN(a)?1:a]}throw new Mc(e)}function lD(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Rx=e=>parseInt(e.replace(/_/g,""),36),uD="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=Rx(t.substring(0,3)),n=Rx(t.substring(3)).toString(16);let i="";for(let o=0;o<6-n.length;o++)i+="0";return e[r]=`${i}${n}`,e},{});function cD(e){const t=e.toLowerCase().trim(),r=uD[lD(t)];if(!r)throw new Mc(e);return`#${r}`}const Id=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),dD=new RegExp(`^#${Id("([a-f0-9])",3)}([a-f0-9])?$`,"i"),fD=new RegExp(`^#${Id("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),hD=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Id(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),pD=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,mD=/^[a-z]+$/i,jx=e=>Math.round(e*255),gD=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(jx);const i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),s=o*(1-Math.abs(i%2-1));let u=0,l=0,a=0;i>=0&&i<1?(u=o,l=s):i>=1&&i<2?(u=s,l=o):i>=2&&i<3?(l=o,a=s):i>=3&&i<4?(l=s,a=o):i>=4&&i<5?(u=s,a=o):i>=5&&i<6&&(u=o,a=s);const c=n-o/2,h=u+c,f=l+c,d=a+c;return[h,f,d].map(jx)};function vD(e,t,r,n){return`rgba(${Ca(0,255,e).toFixed()}, ${Ca(0,255,t).toFixed()}, ${Ca(0,255,r).toFixed()}, ${parseFloat(Ca(0,1,n).toFixed(3))})`}function yD(e,t){const[r,n,i,o]=w2(e);return vD(r,n,i,o-t)}function bD(e){const[t,r,n,i]=w2(e);let o=s=>{const u=Ca(0,255,s).toString(16);return u.length===1?`0${u}`:u};return`#${o(t)}${o(r)}${o(n)}${i<1?o(Math.round(i*255)):""}`}function wD(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,kn=(e,t,r)=>{const n=wD(e,`colors.${t}`,t);try{return bD(n),n}catch{return r??"#000000"}},xD=e=>{const[t,r,n]=w2(e);return(t*299+r*587+n*114)/1e3},SD=e=>t=>{const r=kn(t,e);return xD(r)<128?"dark":"light"},kD=e=>t=>SD(e)(t)==="dark",hu=(e,t)=>r=>{const n=kn(r,e);return yD(n,1-t)};function Nx(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -332,12 +332,12 @@ Error generating stack: `+o.message+` ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}var kD=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function CD(e){const t=kD();return!e||wD(e)?t:e.string&&e.colors?TD(e.string,e.colors):e.string&&!e.colors?ED(e.string):e.colors&&!e.string?$D(e.colors):t}function ED(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${i.toString(16)}`.substr(-2)}return r}function TD(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function _2(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function dC(e){return ln(e)&&e.reference?e.reference:String(e)}var d0=(e,...t)=>t.map(dC).join(` ${e} `).replace(/calc/g,""),Dx=(...e)=>`calc(${d0("+",...e)})`,Fx=(...e)=>`calc(${d0("-",...e)})`,ny=(...e)=>`calc(${d0("*",...e)})`,Lx=(...e)=>`calc(${d0("/",...e)})`,Bx=e=>{const t=dC(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ny(t,-1)},Oo=Object.assign(e=>({add:(...t)=>Oo(Dx(e,...t)),subtract:(...t)=>Oo(Fx(e,...t)),multiply:(...t)=>Oo(ny(e,...t)),divide:(...t)=>Oo(Lx(e,...t)),negate:()=>Oo(Bx(e)),toString:()=>e.toString()}),{add:Dx,subtract:Fx,multiply:ny,divide:Lx,negate:Bx});function AD(e){return!Number.isInteger(parseFloat(e.toString()))}function PD(e,t="-"){return e.replace(/\s+/g,t)}function fC(e){const t=PD(e.toString());return t.includes("\\.")?e:AD(e)?t.replace(".","\\."):e}function OD(e,t=""){return[t,fC(e)].filter(Boolean).join("-")}function MD(e,t){return`var(${fC(e)}${t?`, ${t}`:""})`}function ID(e,t=""){return`--${OD(e,t)}`}function Kr(e,t){const r=ID(e,t==null?void 0:t.prefix);return{variable:r,reference:MD(r,RD(t==null?void 0:t.fallback))}}function RD(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:jD,definePartsStyle:Wh}=pr(tD.keys),Kc=Kr("switch-track-width"),Aa=Kr("switch-track-height"),Hg=Kr("switch-track-diff"),ND=Oo.subtract(Kc,Aa),iy=Kr("switch-thumb-x"),hc=Kr("switch-bg"),DD=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Kc.reference],height:[Aa.reference],transitionProperty:"common",transitionDuration:"fast",[hc.variable]:"colors.gray.300",_dark:{[hc.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[hc.variable]:`colors.${t}.500`,_dark:{[hc.variable]:`colors.${t}.200`}},bg:hc.reference}},FD={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Aa.reference],height:[Aa.reference],_checked:{transform:`translateX(${iy.reference})`}},LD=Wh(e=>({container:{[Hg.variable]:ND,[iy.variable]:Hg.reference,_rtl:{[iy.variable]:Oo(Hg).negate().toString()}},track:DD(e),thumb:FD})),BD={sm:Wh({container:{[Kc.variable]:"1.375rem",[Aa.variable]:"sizes.3"}}),md:Wh({container:{[Kc.variable]:"1.875rem",[Aa.variable]:"sizes.4"}}),lg:Wh({container:{[Kc.variable]:"2.875rem",[Aa.variable]:"sizes.6"}})},zD=jD({baseStyle:LD,sizes:BD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:VD,definePartsStyle:Yl}=pr(rD.keys),UD=Yl({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Up={"&[data-is-numeric=true]":{textAlign:"end"}},HD=Yl(e=>{const{colorScheme:t}=e;return{th:{color:st("gray.600","gray.400")(e),borderBottom:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e),...Up},td:{borderBottom:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e),...Up},caption:{color:st("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),WD=Yl(e=>{const{colorScheme:t}=e;return{th:{color:st("gray.600","gray.400")(e),borderBottom:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e),...Up},td:{borderBottom:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e),...Up},caption:{color:st("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e)},td:{background:st(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),qD={simple:HD,striped:WD,unstyled:{}},KD={sm:Yl({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Yl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Yl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},GD=VD({baseStyle:UD,variants:qD,sizes:KD,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Mn=lt("tabs-color"),Di=lt("tabs-bg"),eh=lt("tabs-border-color"),{defineMultiStyleConfig:XD,definePartsStyle:yo}=pr(nD.keys),YD=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},ZD=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},QD=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},JD={p:4},eF=yo(e=>({root:YD(e),tab:ZD(e),tablist:QD(e),tabpanel:JD})),tF={sm:yo({tab:{py:1,px:4,fontSize:"sm"}}),md:yo({tab:{fontSize:"md",py:2,px:4}}),lg:yo({tab:{fontSize:"lg",py:3,px:4}})},rF=yo(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",i=n?"borderStart":"borderBottom",o=n?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[Mn.variable]:`colors.${t}.600`,_dark:{[Mn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Di.variable]:"colors.gray.200",_dark:{[Di.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Mn.reference,bg:Di.reference}}}),nF=yo(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[eh.variable]:"transparent",_selected:{[Mn.variable]:`colors.${t}.600`,[eh.variable]:"colors.white",_dark:{[Mn.variable]:`colors.${t}.300`,[eh.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:eh.reference},color:Mn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),iF=yo(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Di.variable]:"colors.gray.50",_dark:{[Di.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Di.variable]:"colors.white",[Mn.variable]:`colors.${t}.600`,_dark:{[Di.variable]:"colors.gray.800",[Mn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Mn.reference,bg:Di.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),oF=yo(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:kn(r,`${t}.700`),bg:kn(r,`${t}.100`)}}}}),sF=yo(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Mn.variable]:"colors.gray.600",_dark:{[Mn.variable]:"inherit"},_selected:{[Mn.variable]:"colors.white",[Di.variable]:`colors.${t}.600`,_dark:{[Mn.variable]:"colors.gray.800",[Di.variable]:`colors.${t}.300`}},color:Mn.reference,bg:Di.reference}}}),aF=yo({}),lF={line:rF,enclosed:nF,"enclosed-colored":iF,"soft-rounded":oF,"solid-rounded":sF,unstyled:aF},uF=XD({baseStyle:eF,sizes:tF,variants:lF,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Dr=Oj("badge",["bg","color","shadow"]),cF={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Dr.bg.reference,color:Dr.color.reference,boxShadow:Dr.shadow.reference},dF=e=>{const{colorScheme:t,theme:r}=e,n=hu(`${t}.500`,.6)(r);return{[Dr.bg.variable]:`colors.${t}.500`,[Dr.color.variable]:"colors.white",_dark:{[Dr.bg.variable]:n,[Dr.color.variable]:"colors.whiteAlpha.800"}}},fF=e=>{const{colorScheme:t,theme:r}=e,n=hu(`${t}.200`,.16)(r);return{[Dr.bg.variable]:`colors.${t}.100`,[Dr.color.variable]:`colors.${t}.800`,_dark:{[Dr.bg.variable]:n,[Dr.color.variable]:`colors.${t}.200`}}},hF=e=>{const{colorScheme:t,theme:r}=e,n=hu(`${t}.200`,.8)(r);return{[Dr.color.variable]:`colors.${t}.500`,_dark:{[Dr.color.variable]:n},[Dr.shadow.variable]:`inset 0 0 0px 1px ${Dr.color.reference}`}},pF={solid:dF,subtle:fF,outline:hF},Gc={baseStyle:cF,variants:pF,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:mF,definePartsStyle:Pa}=pr(iD.keys),zx=lt("tag-bg"),Vx=lt("tag-color"),Wg=lt("tag-shadow"),qh=lt("tag-min-height"),Kh=lt("tag-min-width"),Gh=lt("tag-font-size"),Xh=lt("tag-padding-inline"),gF={fontWeight:"medium",lineHeight:1.2,outline:0,[Vx.variable]:Dr.color.reference,[zx.variable]:Dr.bg.reference,[Wg.variable]:Dr.shadow.reference,color:Vx.reference,bg:zx.reference,boxShadow:Wg.reference,borderRadius:"md",minH:qh.reference,minW:Kh.reference,fontSize:Gh.reference,px:Xh.reference,_focusVisible:{[Wg.variable]:"shadows.outline"}},vF={lineHeight:1.2,overflow:"visible"},yF={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},bF=Pa({container:gF,label:vF,closeButton:yF}),wF={sm:Pa({container:{[qh.variable]:"sizes.5",[Kh.variable]:"sizes.5",[Gh.variable]:"fontSizes.xs",[Xh.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Pa({container:{[qh.variable]:"sizes.6",[Kh.variable]:"sizes.6",[Gh.variable]:"fontSizes.sm",[Xh.variable]:"space.2"}}),lg:Pa({container:{[qh.variable]:"sizes.8",[Kh.variable]:"sizes.8",[Gh.variable]:"fontSizes.md",[Xh.variable]:"space.3"}})},_F={subtle:Pa(e=>{var t;return{container:(t=Gc.variants)==null?void 0:t.subtle(e)}}),solid:Pa(e=>{var t;return{container:(t=Gc.variants)==null?void 0:t.solid(e)}}),outline:Pa(e=>{var t;return{container:(t=Gc.variants)==null?void 0:t.outline(e)}})},xF=mF({variants:_F,baseStyle:bF,sizes:wF,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:jo,defineMultiStyleConfig:SF}=pr(HN.keys),Il=lt("input-height"),Rl=lt("input-font-size"),jl=lt("input-padding"),Nl=lt("input-border-radius"),kF=jo({addon:{height:Il.reference,fontSize:Rl.reference,px:jl.reference,borderRadius:Nl.reference},field:{width:"100%",height:Il.reference,fontSize:Rl.reference,px:jl.reference,borderRadius:Nl.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),hs={lg:{[Rl.variable]:"fontSizes.lg",[jl.variable]:"space.4",[Nl.variable]:"radii.md",[Il.variable]:"sizes.12"},md:{[Rl.variable]:"fontSizes.md",[jl.variable]:"space.4",[Nl.variable]:"radii.md",[Il.variable]:"sizes.10"},sm:{[Rl.variable]:"fontSizes.sm",[jl.variable]:"space.3",[Nl.variable]:"radii.sm",[Il.variable]:"sizes.8"},xs:{[Rl.variable]:"fontSizes.xs",[jl.variable]:"space.2",[Nl.variable]:"radii.sm",[Il.variable]:"sizes.6"}},CF={lg:jo({field:hs.lg,group:hs.lg}),md:jo({field:hs.md,group:hs.md}),sm:jo({field:hs.sm,group:hs.sm}),xs:jo({field:hs.xs,group:hs.xs})};function x2(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||st("blue.500","blue.300")(e),errorBorderColor:r||st("red.500","red.300")(e)}}var EF=jo(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=x2(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:st("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kn(t,n),boxShadow:`0 0 0 1px ${kn(t,n)}`},_focusVisible:{zIndex:1,borderColor:kn(t,r),boxShadow:`0 0 0 1px ${kn(t,r)}`}},addon:{border:"1px solid",borderColor:st("inherit","whiteAlpha.50")(e),bg:st("gray.100","whiteAlpha.300")(e)}}}),TF=jo(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=x2(e);return{field:{border:"2px solid",borderColor:"transparent",bg:st("gray.100","whiteAlpha.50")(e),_hover:{bg:st("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kn(t,n)},_focusVisible:{bg:"transparent",borderColor:kn(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:st("gray.100","whiteAlpha.50")(e)}}}),$F=jo(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=x2(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kn(t,n),boxShadow:`0px 1px 0px 0px ${kn(t,n)}`},_focusVisible:{borderColor:kn(t,r),boxShadow:`0px 1px 0px 0px ${kn(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),AF=jo({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),PF={outline:EF,filled:TF,flushed:$F,unstyled:AF},Jt=SF({baseStyle:kF,sizes:CF,variants:PF,defaultProps:{size:"md",variant:"outline"}}),Ux,OF={...(Ux=Jt.baseStyle)==null?void 0:Ux.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Hx,Wx,MF={outline:e=>{var t,r;return(r=(t=Jt.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=Jt.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=Jt.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(Wx=(Hx=Jt.variants)==null?void 0:Hx.unstyled.field)!=null?Wx:{}},qx,Kx,Gx,Xx,Yx,Zx,Qx,Jx,IF={xs:(Kx=(qx=Jt.sizes)==null?void 0:qx.xs.field)!=null?Kx:{},sm:(Xx=(Gx=Jt.sizes)==null?void 0:Gx.sm.field)!=null?Xx:{},md:(Zx=(Yx=Jt.sizes)==null?void 0:Yx.md.field)!=null?Zx:{},lg:(Jx=(Qx=Jt.sizes)==null?void 0:Qx.lg.field)!=null?Jx:{}},RF={baseStyle:OF,sizes:IF,variants:MF,defaultProps:{size:"md",variant:"outline"}},th=Kr("tooltip-bg"),qg=Kr("tooltip-fg"),jF=Kr("popper-arrow-bg"),NF={bg:th.reference,color:qg.reference,[th.variable]:"colors.gray.700",[qg.variable]:"colors.whiteAlpha.900",_dark:{[th.variable]:"colors.gray.300",[qg.variable]:"colors.gray.900"},[jF.variable]:th.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},DF={baseStyle:NF},{defineMultiStyleConfig:FF,definePartsStyle:Ic}=pr(YN.keys),LF=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=st(Nx(),Nx("1rem","rgba(0,0,0,0.1)"))(e),s=st(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}var CD=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function ED(e){const t=CD();return!e||_D(e)?t:e.string&&e.colors?$D(e.string,e.colors):e.string&&!e.colors?TD(e.string):e.colors&&!e.string?AD(e.colors):t}function TD(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${i.toString(16)}`.substr(-2)}return r}function $D(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function _2(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function fC(e){return ln(e)&&e.reference?e.reference:String(e)}var d0=(e,...t)=>t.map(fC).join(` ${e} `).replace(/calc/g,""),Dx=(...e)=>`calc(${d0("+",...e)})`,Fx=(...e)=>`calc(${d0("-",...e)})`,ny=(...e)=>`calc(${d0("*",...e)})`,Lx=(...e)=>`calc(${d0("/",...e)})`,Bx=e=>{const t=fC(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ny(t,-1)},Oo=Object.assign(e=>({add:(...t)=>Oo(Dx(e,...t)),subtract:(...t)=>Oo(Fx(e,...t)),multiply:(...t)=>Oo(ny(e,...t)),divide:(...t)=>Oo(Lx(e,...t)),negate:()=>Oo(Bx(e)),toString:()=>e.toString()}),{add:Dx,subtract:Fx,multiply:ny,divide:Lx,negate:Bx});function PD(e){return!Number.isInteger(parseFloat(e.toString()))}function OD(e,t="-"){return e.replace(/\s+/g,t)}function hC(e){const t=OD(e.toString());return t.includes("\\.")?e:PD(e)?t.replace(".","\\."):e}function MD(e,t=""){return[t,hC(e)].filter(Boolean).join("-")}function ID(e,t){return`var(${hC(e)}${t?`, ${t}`:""})`}function RD(e,t=""){return`--${MD(e,t)}`}function Kr(e,t){const r=RD(e,t==null?void 0:t.prefix);return{variable:r,reference:ID(r,jD(t==null?void 0:t.fallback))}}function jD(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:ND,definePartsStyle:Wh}=pr(rD.keys),Kc=Kr("switch-track-width"),Aa=Kr("switch-track-height"),Hg=Kr("switch-track-diff"),DD=Oo.subtract(Kc,Aa),iy=Kr("switch-thumb-x"),hc=Kr("switch-bg"),FD=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Kc.reference],height:[Aa.reference],transitionProperty:"common",transitionDuration:"fast",[hc.variable]:"colors.gray.300",_dark:{[hc.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[hc.variable]:`colors.${t}.500`,_dark:{[hc.variable]:`colors.${t}.200`}},bg:hc.reference}},LD={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Aa.reference],height:[Aa.reference],_checked:{transform:`translateX(${iy.reference})`}},BD=Wh(e=>({container:{[Hg.variable]:DD,[iy.variable]:Hg.reference,_rtl:{[iy.variable]:Oo(Hg).negate().toString()}},track:FD(e),thumb:LD})),zD={sm:Wh({container:{[Kc.variable]:"1.375rem",[Aa.variable]:"sizes.3"}}),md:Wh({container:{[Kc.variable]:"1.875rem",[Aa.variable]:"sizes.4"}}),lg:Wh({container:{[Kc.variable]:"2.875rem",[Aa.variable]:"sizes.6"}})},VD=ND({baseStyle:BD,sizes:zD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:UD,definePartsStyle:Yl}=pr(nD.keys),HD=Yl({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Up={"&[data-is-numeric=true]":{textAlign:"end"}},WD=Yl(e=>{const{colorScheme:t}=e;return{th:{color:st("gray.600","gray.400")(e),borderBottom:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e),...Up},td:{borderBottom:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e),...Up},caption:{color:st("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),qD=Yl(e=>{const{colorScheme:t}=e;return{th:{color:st("gray.600","gray.400")(e),borderBottom:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e),...Up},td:{borderBottom:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e),...Up},caption:{color:st("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:st(`${t}.100`,`${t}.700`)(e)},td:{background:st(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),KD={simple:WD,striped:qD,unstyled:{}},GD={sm:Yl({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Yl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Yl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},XD=UD({baseStyle:HD,variants:KD,sizes:GD,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Mn=lt("tabs-color"),Di=lt("tabs-bg"),eh=lt("tabs-border-color"),{defineMultiStyleConfig:YD,definePartsStyle:yo}=pr(iD.keys),ZD=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},QD=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},JD=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},eF={p:4},tF=yo(e=>({root:ZD(e),tab:QD(e),tablist:JD(e),tabpanel:eF})),rF={sm:yo({tab:{py:1,px:4,fontSize:"sm"}}),md:yo({tab:{fontSize:"md",py:2,px:4}}),lg:yo({tab:{fontSize:"lg",py:3,px:4}})},nF=yo(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",i=n?"borderStart":"borderBottom",o=n?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[Mn.variable]:`colors.${t}.600`,_dark:{[Mn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Di.variable]:"colors.gray.200",_dark:{[Di.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Mn.reference,bg:Di.reference}}}),iF=yo(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[eh.variable]:"transparent",_selected:{[Mn.variable]:`colors.${t}.600`,[eh.variable]:"colors.white",_dark:{[Mn.variable]:`colors.${t}.300`,[eh.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:eh.reference},color:Mn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),oF=yo(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Di.variable]:"colors.gray.50",_dark:{[Di.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Di.variable]:"colors.white",[Mn.variable]:`colors.${t}.600`,_dark:{[Di.variable]:"colors.gray.800",[Mn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Mn.reference,bg:Di.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),sF=yo(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:kn(r,`${t}.700`),bg:kn(r,`${t}.100`)}}}}),aF=yo(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Mn.variable]:"colors.gray.600",_dark:{[Mn.variable]:"inherit"},_selected:{[Mn.variable]:"colors.white",[Di.variable]:`colors.${t}.600`,_dark:{[Mn.variable]:"colors.gray.800",[Di.variable]:`colors.${t}.300`}},color:Mn.reference,bg:Di.reference}}}),lF=yo({}),uF={line:nF,enclosed:iF,"enclosed-colored":oF,"soft-rounded":sF,"solid-rounded":aF,unstyled:lF},cF=YD({baseStyle:tF,sizes:rF,variants:uF,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Dr=Mj("badge",["bg","color","shadow"]),dF={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Dr.bg.reference,color:Dr.color.reference,boxShadow:Dr.shadow.reference},fF=e=>{const{colorScheme:t,theme:r}=e,n=hu(`${t}.500`,.6)(r);return{[Dr.bg.variable]:`colors.${t}.500`,[Dr.color.variable]:"colors.white",_dark:{[Dr.bg.variable]:n,[Dr.color.variable]:"colors.whiteAlpha.800"}}},hF=e=>{const{colorScheme:t,theme:r}=e,n=hu(`${t}.200`,.16)(r);return{[Dr.bg.variable]:`colors.${t}.100`,[Dr.color.variable]:`colors.${t}.800`,_dark:{[Dr.bg.variable]:n,[Dr.color.variable]:`colors.${t}.200`}}},pF=e=>{const{colorScheme:t,theme:r}=e,n=hu(`${t}.200`,.8)(r);return{[Dr.color.variable]:`colors.${t}.500`,_dark:{[Dr.color.variable]:n},[Dr.shadow.variable]:`inset 0 0 0px 1px ${Dr.color.reference}`}},mF={solid:fF,subtle:hF,outline:pF},Gc={baseStyle:dF,variants:mF,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:gF,definePartsStyle:Pa}=pr(oD.keys),zx=lt("tag-bg"),Vx=lt("tag-color"),Wg=lt("tag-shadow"),qh=lt("tag-min-height"),Kh=lt("tag-min-width"),Gh=lt("tag-font-size"),Xh=lt("tag-padding-inline"),vF={fontWeight:"medium",lineHeight:1.2,outline:0,[Vx.variable]:Dr.color.reference,[zx.variable]:Dr.bg.reference,[Wg.variable]:Dr.shadow.reference,color:Vx.reference,bg:zx.reference,boxShadow:Wg.reference,borderRadius:"md",minH:qh.reference,minW:Kh.reference,fontSize:Gh.reference,px:Xh.reference,_focusVisible:{[Wg.variable]:"shadows.outline"}},yF={lineHeight:1.2,overflow:"visible"},bF={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},wF=Pa({container:vF,label:yF,closeButton:bF}),_F={sm:Pa({container:{[qh.variable]:"sizes.5",[Kh.variable]:"sizes.5",[Gh.variable]:"fontSizes.xs",[Xh.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Pa({container:{[qh.variable]:"sizes.6",[Kh.variable]:"sizes.6",[Gh.variable]:"fontSizes.sm",[Xh.variable]:"space.2"}}),lg:Pa({container:{[qh.variable]:"sizes.8",[Kh.variable]:"sizes.8",[Gh.variable]:"fontSizes.md",[Xh.variable]:"space.3"}})},xF={subtle:Pa(e=>{var t;return{container:(t=Gc.variants)==null?void 0:t.subtle(e)}}),solid:Pa(e=>{var t;return{container:(t=Gc.variants)==null?void 0:t.solid(e)}}),outline:Pa(e=>{var t;return{container:(t=Gc.variants)==null?void 0:t.outline(e)}})},SF=gF({variants:xF,baseStyle:wF,sizes:_F,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:jo,defineMultiStyleConfig:kF}=pr(WN.keys),Il=lt("input-height"),Rl=lt("input-font-size"),jl=lt("input-padding"),Nl=lt("input-border-radius"),CF=jo({addon:{height:Il.reference,fontSize:Rl.reference,px:jl.reference,borderRadius:Nl.reference},field:{width:"100%",height:Il.reference,fontSize:Rl.reference,px:jl.reference,borderRadius:Nl.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),hs={lg:{[Rl.variable]:"fontSizes.lg",[jl.variable]:"space.4",[Nl.variable]:"radii.md",[Il.variable]:"sizes.12"},md:{[Rl.variable]:"fontSizes.md",[jl.variable]:"space.4",[Nl.variable]:"radii.md",[Il.variable]:"sizes.10"},sm:{[Rl.variable]:"fontSizes.sm",[jl.variable]:"space.3",[Nl.variable]:"radii.sm",[Il.variable]:"sizes.8"},xs:{[Rl.variable]:"fontSizes.xs",[jl.variable]:"space.2",[Nl.variable]:"radii.sm",[Il.variable]:"sizes.6"}},EF={lg:jo({field:hs.lg,group:hs.lg}),md:jo({field:hs.md,group:hs.md}),sm:jo({field:hs.sm,group:hs.sm}),xs:jo({field:hs.xs,group:hs.xs})};function x2(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||st("blue.500","blue.300")(e),errorBorderColor:r||st("red.500","red.300")(e)}}var TF=jo(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=x2(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:st("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kn(t,n),boxShadow:`0 0 0 1px ${kn(t,n)}`},_focusVisible:{zIndex:1,borderColor:kn(t,r),boxShadow:`0 0 0 1px ${kn(t,r)}`}},addon:{border:"1px solid",borderColor:st("inherit","whiteAlpha.50")(e),bg:st("gray.100","whiteAlpha.300")(e)}}}),$F=jo(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=x2(e);return{field:{border:"2px solid",borderColor:"transparent",bg:st("gray.100","whiteAlpha.50")(e),_hover:{bg:st("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kn(t,n)},_focusVisible:{bg:"transparent",borderColor:kn(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:st("gray.100","whiteAlpha.50")(e)}}}),AF=jo(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=x2(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kn(t,n),boxShadow:`0px 1px 0px 0px ${kn(t,n)}`},_focusVisible:{borderColor:kn(t,r),boxShadow:`0px 1px 0px 0px ${kn(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),PF=jo({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),OF={outline:TF,filled:$F,flushed:AF,unstyled:PF},Jt=kF({baseStyle:CF,sizes:EF,variants:OF,defaultProps:{size:"md",variant:"outline"}}),Ux,MF={...(Ux=Jt.baseStyle)==null?void 0:Ux.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Hx,Wx,IF={outline:e=>{var t,r;return(r=(t=Jt.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=Jt.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=Jt.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(Wx=(Hx=Jt.variants)==null?void 0:Hx.unstyled.field)!=null?Wx:{}},qx,Kx,Gx,Xx,Yx,Zx,Qx,Jx,RF={xs:(Kx=(qx=Jt.sizes)==null?void 0:qx.xs.field)!=null?Kx:{},sm:(Xx=(Gx=Jt.sizes)==null?void 0:Gx.sm.field)!=null?Xx:{},md:(Zx=(Yx=Jt.sizes)==null?void 0:Yx.md.field)!=null?Zx:{},lg:(Jx=(Qx=Jt.sizes)==null?void 0:Qx.lg.field)!=null?Jx:{}},jF={baseStyle:MF,sizes:RF,variants:IF,defaultProps:{size:"md",variant:"outline"}},th=Kr("tooltip-bg"),qg=Kr("tooltip-fg"),NF=Kr("popper-arrow-bg"),DF={bg:th.reference,color:qg.reference,[th.variable]:"colors.gray.700",[qg.variable]:"colors.whiteAlpha.900",_dark:{[th.variable]:"colors.gray.300",[qg.variable]:"colors.gray.900"},[NF.variable]:th.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},FF={baseStyle:DF},{defineMultiStyleConfig:LF,definePartsStyle:Ic}=pr(ZN.keys),BF=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=st(Nx(),Nx("1rem","rgba(0,0,0,0.1)"))(e),s=st(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( to right, transparent 0%, ${kn(r,s)} 50%, transparent 100% - )`;return{...!n&&i&&o,...n?{bgImage:u}:{bgColor:s}}},BF={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},zF=e=>({bg:st("gray.100","whiteAlpha.300")(e)}),VF=e=>({transitionProperty:"common",transitionDuration:"slow",...LF(e)}),UF=Ic(e=>({label:BF,filledTrack:VF(e),track:zF(e)})),HF={xs:Ic({track:{h:"1"}}),sm:Ic({track:{h:"2"}}),md:Ic({track:{h:"3"}}),lg:Ic({track:{h:"4"}})},WF=FF({sizes:HF,baseStyle:UF,defaultProps:{size:"md",colorScheme:"blue"}}),qF=e=>typeof e=="function";function En(e,...t){return qF(e)?e(...t):e}var{definePartsStyle:Yh,defineMultiStyleConfig:KF}=pr(LN.keys),Xc=lt("checkbox-size"),GF=e=>{const{colorScheme:t}=e;return{w:Xc.reference,h:Xc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:st(`${t}.500`,`${t}.200`)(e),borderColor:st(`${t}.500`,`${t}.200`)(e),color:st("white","gray.900")(e),_hover:{bg:st(`${t}.600`,`${t}.300`)(e),borderColor:st(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:st("gray.200","transparent")(e),bg:st("gray.200","whiteAlpha.300")(e),color:st("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:st(`${t}.500`,`${t}.200`)(e),borderColor:st(`${t}.500`,`${t}.200`)(e),color:st("white","gray.900")(e)},_disabled:{bg:st("gray.100","whiteAlpha.100")(e),borderColor:st("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:st("red.500","red.300")(e)}}},XF={_disabled:{cursor:"not-allowed"}},YF={userSelect:"none",_disabled:{opacity:.4}},ZF={transitionProperty:"transform",transitionDuration:"normal"},QF=Yh(e=>({icon:ZF,container:XF,control:En(GF,e),label:YF})),JF={sm:Yh({control:{[Xc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Yh({control:{[Xc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Yh({control:{[Xc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Hp=KF({baseStyle:QF,sizes:JF,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:eL,definePartsStyle:Zh}=pr(ZN.keys),tL=e=>{var t;const r=(t=En(Hp.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},rL=Zh(e=>{var t,r,n,i;return{label:(r=(t=Hp).baseStyle)==null?void 0:r.call(t,e).label,container:(i=(n=Hp).baseStyle)==null?void 0:i.call(n,e).container,control:tL(e)}}),nL={md:Zh({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Zh({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Zh({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},iL=eL({baseStyle:rL,sizes:nL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:oL,definePartsStyle:sL}=pr(QN.keys),rh=lt("select-bg"),e4,aL={...(e4=Jt.baseStyle)==null?void 0:e4.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:rh.reference,[rh.variable]:"colors.white",_dark:{[rh.variable]:"colors.gray.700"},"> option, > optgroup":{bg:rh.reference}},lL={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},uL=sL({field:aL,icon:lL}),nh={paddingInlineEnd:"8"},t4,r4,n4,i4,o4,s4,a4,l4,cL={lg:{...(t4=Jt.sizes)==null?void 0:t4.lg,field:{...(r4=Jt.sizes)==null?void 0:r4.lg.field,...nh}},md:{...(n4=Jt.sizes)==null?void 0:n4.md,field:{...(i4=Jt.sizes)==null?void 0:i4.md.field,...nh}},sm:{...(o4=Jt.sizes)==null?void 0:o4.sm,field:{...(s4=Jt.sizes)==null?void 0:s4.sm.field,...nh}},xs:{...(a4=Jt.sizes)==null?void 0:a4.xs,field:{...(l4=Jt.sizes)==null?void 0:l4.xs.field,...nh},icon:{insetEnd:"1"}}},dL=oL({baseStyle:uL,sizes:cL,variants:Jt.variants,defaultProps:Jt.defaultProps}),Kg=lt("skeleton-start-color"),Gg=lt("skeleton-end-color"),fL={[Kg.variable]:"colors.gray.100",[Gg.variable]:"colors.gray.400",_dark:{[Kg.variable]:"colors.gray.800",[Gg.variable]:"colors.gray.600"},background:Kg.reference,borderColor:Gg.reference,opacity:.7,borderRadius:"sm"},hL={baseStyle:fL},Xg=lt("skip-link-bg"),pL={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Xg.variable]:"colors.white",_dark:{[Xg.variable]:"colors.gray.700"},bg:Xg.reference}},mL={baseStyle:pL},{defineMultiStyleConfig:gL,definePartsStyle:f0}=pr(JN.keys),Rd=lt("slider-thumb-size"),jd=lt("slider-track-size"),Ts=lt("slider-bg"),vL=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},..._2({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},yL=e=>({..._2({orientation:e.orientation,horizontal:{h:jd.reference},vertical:{w:jd.reference}}),overflow:"hidden",borderRadius:"sm",[Ts.variable]:"colors.gray.200",_dark:{[Ts.variable]:"colors.whiteAlpha.200"},_disabled:{[Ts.variable]:"colors.gray.300",_dark:{[Ts.variable]:"colors.whiteAlpha.300"}},bg:Ts.reference}),bL=e=>{const{orientation:t}=e;return{..._2({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Rd.reference,h:Rd.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},wL=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ts.variable]:`colors.${t}.500`,_dark:{[Ts.variable]:`colors.${t}.200`},bg:Ts.reference}},_L=f0(e=>({container:vL(e),track:yL(e),thumb:bL(e),filledTrack:wL(e)})),xL=f0({container:{[Rd.variable]:"sizes.4",[jd.variable]:"sizes.1"}}),SL=f0({container:{[Rd.variable]:"sizes.3.5",[jd.variable]:"sizes.1"}}),kL=f0({container:{[Rd.variable]:"sizes.2.5",[jd.variable]:"sizes.0.5"}}),CL={lg:xL,md:SL,sm:kL},EL=gL({baseStyle:_L,sizes:CL,defaultProps:{size:"md",colorScheme:"blue"}}),va=Kr("spinner-size"),TL={width:[va.reference],height:[va.reference]},$L={xs:{[va.variable]:"sizes.3"},sm:{[va.variable]:"sizes.4"},md:{[va.variable]:"sizes.6"},lg:{[va.variable]:"sizes.8"},xl:{[va.variable]:"sizes.12"}},AL={baseStyle:TL,sizes:$L,defaultProps:{size:"md"}},{defineMultiStyleConfig:PL,definePartsStyle:hC}=pr(eD.keys),OL={fontWeight:"medium"},ML={opacity:.8,marginBottom:"2"},IL={verticalAlign:"baseline",fontWeight:"semibold"},RL={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},jL=hC({container:{},label:OL,helpText:ML,number:IL,icon:RL}),NL={md:hC({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},DL=PL({baseStyle:jL,sizes:NL,defaultProps:{size:"md"}}),Yg=lt("kbd-bg"),FL={[Yg.variable]:"colors.gray.100",_dark:{[Yg.variable]:"colors.whiteAlpha.100"},bg:Yg.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},LL={baseStyle:FL},BL={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},zL={baseStyle:BL},{defineMultiStyleConfig:VL,definePartsStyle:UL}=pr(WN.keys),HL={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},WL=UL({icon:HL}),qL=VL({baseStyle:WL}),{defineMultiStyleConfig:KL,definePartsStyle:GL}=pr(qN.keys),so=lt("menu-bg"),Zg=lt("menu-shadow"),XL={[so.variable]:"#fff",[Zg.variable]:"shadows.sm",_dark:{[so.variable]:"colors.gray.700",[Zg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:so.reference,boxShadow:Zg.reference},YL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[so.variable]:"colors.gray.100",_dark:{[so.variable]:"colors.whiteAlpha.100"}},_active:{[so.variable]:"colors.gray.200",_dark:{[so.variable]:"colors.whiteAlpha.200"}},_expanded:{[so.variable]:"colors.gray.100",_dark:{[so.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:so.reference},ZL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},QL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},JL={opacity:.6},eB={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},tB={transitionProperty:"common",transitionDuration:"normal"},rB=GL({button:tB,list:XL,item:YL,groupTitle:ZL,icon:QL,command:JL,divider:eB}),nB=KL({baseStyle:rB}),{defineMultiStyleConfig:iB,definePartsStyle:oy}=pr(KN.keys),Qg=lt("modal-bg"),Jg=lt("modal-shadow"),oB={bg:"blackAlpha.600",zIndex:"modal"},sB=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},aB=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Qg.variable]:"colors.white",[Jg.variable]:"shadows.lg",_dark:{[Qg.variable]:"colors.gray.700",[Jg.variable]:"shadows.dark-lg"},bg:Qg.reference,boxShadow:Jg.reference}},lB={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},uB={position:"absolute",top:"2",insetEnd:"3"},cB=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},dB={px:"6",py:"4"},fB=oy(e=>({overlay:oB,dialogContainer:En(sB,e),dialog:En(aB,e),header:lB,closeButton:uB,body:En(cB,e),footer:dB}));function Pi(e){return oy(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var hB={xs:Pi("xs"),sm:Pi("sm"),md:Pi("md"),lg:Pi("lg"),xl:Pi("xl"),"2xl":Pi("2xl"),"3xl":Pi("3xl"),"4xl":Pi("4xl"),"5xl":Pi("5xl"),"6xl":Pi("6xl"),full:Pi("full")},pB=iB({baseStyle:fB,sizes:hB,defaultProps:{size:"md"}}),{defineMultiStyleConfig:mB,definePartsStyle:pC}=pr(GN.keys),S2=Kr("number-input-stepper-width"),mC=Kr("number-input-input-padding"),gB=Oo(S2).add("0.5rem").toString(),e1=Kr("number-input-bg"),t1=Kr("number-input-color"),r1=Kr("number-input-border-color"),vB={[S2.variable]:"sizes.6",[mC.variable]:gB},yB=e=>{var t,r;return(r=(t=En(Jt.baseStyle,e))==null?void 0:t.field)!=null?r:{}},bB={width:S2.reference},wB={borderStart:"1px solid",borderStartColor:r1.reference,color:t1.reference,bg:e1.reference,[t1.variable]:"colors.chakra-body-text",[r1.variable]:"colors.chakra-border-color",_dark:{[t1.variable]:"colors.whiteAlpha.800",[r1.variable]:"colors.whiteAlpha.300"},_active:{[e1.variable]:"colors.gray.200",_dark:{[e1.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},_B=pC(e=>{var t;return{root:vB,field:(t=En(yB,e))!=null?t:{},stepperGroup:bB,stepper:wB}});function ih(e){var t,r,n;const i=(t=Jt.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=i.field)==null?void 0:r.fontSize)!=null?n:"md",u=lC.fontSizes[s];return pC({field:{...i.field,paddingInlineEnd:mC.reference,verticalAlign:"top"},stepper:{fontSize:Oo(u).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var xB={xs:ih("xs"),sm:ih("sm"),md:ih("md"),lg:ih("lg")},SB=mB({baseStyle:_B,sizes:xB,variants:Jt.variants,defaultProps:Jt.defaultProps}),u4,kB={...(u4=Jt.baseStyle)==null?void 0:u4.field,textAlign:"center"},CB={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},c4,d4,EB={outline:e=>{var t,r,n;return(n=(r=En((t=Jt.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=En((t=Jt.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=En((t=Jt.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(d4=(c4=Jt.variants)==null?void 0:c4.unstyled.field)!=null?d4:{}},TB={baseStyle:kB,sizes:CB,variants:EB,defaultProps:Jt.defaultProps},{defineMultiStyleConfig:$B,definePartsStyle:AB}=pr(XN.keys),oh=Kr("popper-bg"),PB=Kr("popper-arrow-bg"),f4=Kr("popper-arrow-shadow-color"),OB={zIndex:10},MB={[oh.variable]:"colors.white",bg:oh.reference,[PB.variable]:oh.reference,[f4.variable]:"colors.gray.200",_dark:{[oh.variable]:"colors.gray.700",[f4.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},IB={px:3,py:2,borderBottomWidth:"1px"},RB={px:3,py:2},jB={px:3,py:2,borderTopWidth:"1px"},NB={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},DB=AB({popper:OB,content:MB,header:IB,body:RB,footer:jB,closeButton:NB}),FB=$B({baseStyle:DB}),{definePartsStyle:sy,defineMultiStyleConfig:LB}=pr(BN.keys),n1=lt("drawer-bg"),i1=lt("drawer-box-shadow");function ul(e){return sy(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var BB={bg:"blackAlpha.600",zIndex:"modal"},zB={display:"flex",zIndex:"modal",justifyContent:"center"},VB=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[n1.variable]:"colors.white",[i1.variable]:"shadows.lg",_dark:{[n1.variable]:"colors.gray.700",[i1.variable]:"shadows.dark-lg"},bg:n1.reference,boxShadow:i1.reference}},UB={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},HB={position:"absolute",top:"2",insetEnd:"3"},WB={px:"6",py:"2",flex:"1",overflow:"auto"},qB={px:"6",py:"4"},KB=sy(e=>({overlay:BB,dialogContainer:zB,dialog:En(VB,e),header:UB,closeButton:HB,body:WB,footer:qB})),GB={xs:ul("xs"),sm:ul("md"),md:ul("lg"),lg:ul("2xl"),xl:ul("4xl"),full:ul("full")},XB=LB({baseStyle:KB,sizes:GB,defaultProps:{size:"xs"}}),{definePartsStyle:YB,defineMultiStyleConfig:ZB}=pr(zN.keys),QB={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},JB={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},ez={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},tz=YB({preview:QB,input:JB,textarea:ez}),rz=ZB({baseStyle:tz}),{definePartsStyle:nz,defineMultiStyleConfig:iz}=pr(VN.keys),Zl=lt("form-control-color"),oz={marginStart:"1",[Zl.variable]:"colors.red.500",_dark:{[Zl.variable]:"colors.red.300"},color:Zl.reference},sz={mt:"2",[Zl.variable]:"colors.gray.600",_dark:{[Zl.variable]:"colors.whiteAlpha.600"},color:Zl.reference,lineHeight:"normal",fontSize:"sm"},az=nz({container:{width:"100%",position:"relative"},requiredIndicator:oz,helperText:sz}),lz=iz({baseStyle:az}),{definePartsStyle:uz,defineMultiStyleConfig:cz}=pr(UN.keys),Ql=lt("form-error-color"),dz={[Ql.variable]:"colors.red.500",_dark:{[Ql.variable]:"colors.red.300"},color:Ql.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},fz={marginEnd:"0.5em",[Ql.variable]:"colors.red.500",_dark:{[Ql.variable]:"colors.red.300"},color:Ql.reference},hz=uz({text:dz,icon:fz}),pz=cz({baseStyle:hz}),mz={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},gz={baseStyle:mz},vz={fontFamily:"heading",fontWeight:"bold"},yz={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},bz={baseStyle:vz,sizes:yz,defaultProps:{size:"xl"}},{defineMultiStyleConfig:wz,definePartsStyle:_z}=pr(FN.keys),o1=lt("breadcrumb-link-decor"),xz={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:o1.reference,[o1.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[o1.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Sz=_z({link:xz}),kz=wz({baseStyle:Sz}),Cz={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},gC=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:st("gray.800","whiteAlpha.900")(e),_hover:{bg:st("gray.100","whiteAlpha.200")(e)},_active:{bg:st("gray.200","whiteAlpha.300")(e)}};const n=hu(`${t}.200`,.12)(r),i=hu(`${t}.200`,.24)(r);return{color:st(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:st(`${t}.50`,n)(e)},_active:{bg:st(`${t}.100`,i)(e)}}},Ez=e=>{const{colorScheme:t}=e,r=st("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...En(gC,e)}},Tz={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},$z=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=st("gray.100","whiteAlpha.200")(e);return{bg:l,color:st("gray.800","whiteAlpha.900")(e),_hover:{bg:st("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:st("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:s=`${r}.700`}=(t=Tz[r])!=null?t:{},u=st(n,`${r}.200`)(e);return{bg:u,color:st(i,"gray.800")(e),_hover:{bg:st(o,`${r}.300`)(e),_disabled:{bg:u}},_active:{bg:st(s,`${r}.400`)(e)}}},Az=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:st(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:st(`${t}.700`,`${t}.500`)(e)}}},Pz={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Oz={ghost:gC,outline:Ez,solid:$z,link:Az,unstyled:Pz},Mz={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Iz={baseStyle:Cz,variants:Oz,sizes:Mz,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Oa,defineMultiStyleConfig:Rz}=pr(oD.keys),Wp=lt("card-bg"),Bo=lt("card-padding"),vC=lt("card-shadow"),Qh=lt("card-radius"),yC=lt("card-border-width","0"),bC=lt("card-border-color"),jz=Oa({container:{[Wp.variable]:"colors.chakra-body-bg",backgroundColor:Wp.reference,boxShadow:vC.reference,borderRadius:Qh.reference,color:"chakra-body-text",borderWidth:yC.reference,borderColor:bC.reference},body:{padding:Bo.reference,flex:"1 1 0%"},header:{padding:Bo.reference},footer:{padding:Bo.reference}}),Nz={sm:Oa({container:{[Qh.variable]:"radii.base",[Bo.variable]:"space.3"}}),md:Oa({container:{[Qh.variable]:"radii.md",[Bo.variable]:"space.5"}}),lg:Oa({container:{[Qh.variable]:"radii.xl",[Bo.variable]:"space.7"}})},Dz={elevated:Oa({container:{[vC.variable]:"shadows.base",_dark:{[Wp.variable]:"colors.gray.700"}}}),outline:Oa({container:{[yC.variable]:"1px",[bC.variable]:"colors.chakra-border-color"}}),filled:Oa({container:{[Wp.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Bo.variable]:0},header:{[Bo.variable]:0},footer:{[Bo.variable]:0}}},Fz=Rz({baseStyle:jz,variants:Dz,sizes:Nz,defaultProps:{variant:"elevated",size:"md"}}),Yc=Kr("close-button-size"),pc=Kr("close-button-bg"),Lz={w:[Yc.reference],h:[Yc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[pc.variable]:"colors.blackAlpha.100",_dark:{[pc.variable]:"colors.whiteAlpha.100"}},_active:{[pc.variable]:"colors.blackAlpha.200",_dark:{[pc.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:pc.reference},Bz={lg:{[Yc.variable]:"sizes.10",fontSize:"md"},md:{[Yc.variable]:"sizes.8",fontSize:"xs"},sm:{[Yc.variable]:"sizes.6",fontSize:"2xs"}},zz={baseStyle:Lz,sizes:Bz,defaultProps:{size:"md"}},{variants:Vz,defaultProps:Uz}=Gc,Hz={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Dr.bg.reference,color:Dr.color.reference,boxShadow:Dr.shadow.reference},Wz={baseStyle:Hz,variants:Vz,defaultProps:Uz},qz={w:"100%",mx:"auto",maxW:"prose",px:"4"},Kz={baseStyle:qz},Gz={opacity:.6,borderColor:"inherit"},Xz={borderStyle:"solid"},Yz={borderStyle:"dashed"},Zz={solid:Xz,dashed:Yz},Qz={baseStyle:Gz,variants:Zz,defaultProps:{variant:"solid"}},{definePartsStyle:Jz,defineMultiStyleConfig:eV}=pr(jN.keys),tV={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},rV={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},nV={pt:"2",px:"4",pb:"5"},iV={fontSize:"1.25em"},oV=Jz({container:tV,button:rV,panel:nV,icon:iV}),sV=eV({baseStyle:oV}),{definePartsStyle:nf,defineMultiStyleConfig:aV}=pr(NN.keys),Zn=lt("alert-fg"),Zo=lt("alert-bg"),lV=nf({container:{bg:Zo.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Zn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Zn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function k2(e){const{theme:t,colorScheme:r}=e,n=hu(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var uV=nf(e=>{const{colorScheme:t}=e,r=k2(e);return{container:{[Zn.variable]:`colors.${t}.600`,[Zo.variable]:r.light,_dark:{[Zn.variable]:`colors.${t}.200`,[Zo.variable]:r.dark}}}}),cV=nf(e=>{const{colorScheme:t}=e,r=k2(e);return{container:{[Zn.variable]:`colors.${t}.600`,[Zo.variable]:r.light,_dark:{[Zn.variable]:`colors.${t}.200`,[Zo.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Zn.reference}}}),dV=nf(e=>{const{colorScheme:t}=e,r=k2(e);return{container:{[Zn.variable]:`colors.${t}.600`,[Zo.variable]:r.light,_dark:{[Zn.variable]:`colors.${t}.200`,[Zo.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Zn.reference}}}),fV=nf(e=>{const{colorScheme:t}=e;return{container:{[Zn.variable]:"colors.white",[Zo.variable]:`colors.${t}.600`,_dark:{[Zn.variable]:"colors.gray.900",[Zo.variable]:`colors.${t}.200`},color:Zn.reference}}}),hV={subtle:uV,"left-accent":cV,"top-accent":dV,solid:fV},pV=aV({baseStyle:lV,variants:hV,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:wC,defineMultiStyleConfig:mV}=pr(DN.keys),Jl=lt("avatar-border-color"),Zc=lt("avatar-bg"),Nd=lt("avatar-font-size"),pu=lt("avatar-size"),gV={borderRadius:"full",border:"0.2em solid",borderColor:Jl.reference,[Jl.variable]:"white",_dark:{[Jl.variable]:"colors.gray.800"}},vV={bg:Zc.reference,fontSize:Nd.reference,width:pu.reference,height:pu.reference,lineHeight:"1",[Zc.variable]:"colors.gray.200",_dark:{[Zc.variable]:"colors.whiteAlpha.400"}},yV=e=>{const{name:t,theme:r}=e,n=t?CD({string:t}):"colors.gray.400",i=SD(n)(r);let o="white";return i||(o="gray.800"),{bg:Zc.reference,fontSize:Nd.reference,color:o,borderColor:Jl.reference,verticalAlign:"top",width:pu.reference,height:pu.reference,"&:not([data-loaded])":{[Zc.variable]:n},[Jl.variable]:"colors.white",_dark:{[Jl.variable]:"colors.gray.800"}}},bV={fontSize:Nd.reference,lineHeight:"1"},wV=wC(e=>({badge:En(gV,e),excessLabel:En(vV,e),container:En(yV,e),label:bV}));function ps(e){const t=e!=="100%"?cC[e]:void 0;return wC({container:{[pu.variable]:t??e,[Nd.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[pu.variable]:t??e,[Nd.variable]:`calc(${t??e} / 2.5)`}})}var _V={"2xs":ps(4),xs:ps(6),sm:ps(8),md:ps(12),lg:ps(16),xl:ps(24),"2xl":ps(32),full:ps("100%")},xV=mV({baseStyle:wV,sizes:_V,defaultProps:{size:"md"}}),SV={Accordion:sV,Alert:pV,Avatar:xV,Badge:Gc,Breadcrumb:kz,Button:Iz,Checkbox:Hp,CloseButton:zz,Code:Wz,Container:Kz,Divider:Qz,Drawer:XB,Editable:rz,Form:lz,FormError:pz,FormLabel:gz,Heading:bz,Input:Jt,Kbd:LL,Link:zL,List:qL,Menu:nB,Modal:pB,NumberInput:SB,PinInput:TB,Popover:FB,Progress:WF,Radio:iL,Select:dL,Skeleton:hL,SkipLink:mL,Slider:EL,Spinner:AL,Stat:DL,Switch:zD,Table:GD,Tabs:uF,Tag:xF,Textarea:RF,Tooltip:DF,Card:Fz,Stepper:RN},kV={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},CV={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},EV="ltr",TV={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},$V={semanticTokens:kV,direction:EV,...ON,components:SV,styles:CV,config:TV};function AV(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function PV(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,o,s)=>{if(typeof n>"u")return e(n,i,o);t.has(n)||t.set(n,new Map);const u=t.get(n);if(u.has(i))return u.get(i);const l=e(n,i,o,s);return u.set(i,l),l}},_C=OV(PV);function xC(e,t){const r={};return Object.keys(e).forEach(n=>{const i=e[n];t(i,n,e)&&(r[n]=i)}),r}var SC=e=>xC(e,t=>t!=null);function MV(e){return typeof e=="function"}function kC(e,...t){return MV(e)?e(...t):e}const CC=1/60*1e3,IV=typeof performance<"u"?()=>performance.now():()=>Date.now(),EC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(IV()),CC);function RV(e){let t=[],r=[],n=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(l,a=!1,c=!1)=>{const h=c&&i,f=h?t:r;return a&&s.add(l),f.indexOf(l)===-1&&(f.push(l),h&&i&&(n=t.length)),l},cancel:l=>{const a=r.indexOf(l);a!==-1&&r.splice(a,1),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let a=0;a(e[t]=RV(()=>Dd=!0),e),{}),NV=of.reduce((e,t)=>{const r=h0[t];return e[t]=(n,i=!1,o=!1)=>(Dd||LV(),r.schedule(n,i,o)),e},{}),DV=of.reduce((e,t)=>(e[t]=h0[t].cancel,e),{});of.reduce((e,t)=>(e[t]=()=>h0[t].process(eu),e),{});const FV=e=>h0[e].process(eu),TC=e=>{Dd=!1,eu.delta=ay?CC:Math.max(Math.min(e-eu.timestamp,jV),1),eu.timestamp=e,ly=!0,of.forEach(FV),ly=!1,Dd&&(ay=!1,EC(TC))},LV=()=>{Dd=!0,ay=!0,ly||EC(TC)},h4=()=>eu;var BV=typeof Element<"u",zV=typeof Map=="function",VV=typeof Set=="function",UV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Jh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Jh(e[n],t[n]))return!1;return!0}var o;if(zV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!Jh(n.value[1],t.get(n.value[0])))return!1;return!0}if(VV&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(UV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(BV&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!Jh(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var HV=function(t,r){try{return Jh(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const WV=ir(HV);function $C(e,t={}){var r;const{styleConfig:n,...i}=t,{theme:o,colorMode:s}=UR(),u=e?_C(o,`components.${e}`):void 0,l=n||u,a=fo({theme:o,colorMode:s},(r=l==null?void 0:l.defaultProps)!=null?r:{},SC(AV(i,["children"]))),c=G.useRef({});if(l){const f=aN(l)(a);WV(c.current,f)||(c.current=f)}return c.current}function Xi(e,t={}){return $C(e,t)}function Qr(e,t={}){return $C(e,t)}var qV=new Set([...Xj,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),KV=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function AC(e){return KV.has(e)||!qV.has(e)}function GV(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(i in r&&delete r[i],r[i]=n[i]);return r}function PC(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var XV=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,YV=F9(function(e){return XV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ZV=YV,QV=function(t){return t!=="theme"},p4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ZV:QV},m4=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},JV=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return c2(r,n,i),K9(function(){return d2(r,n,i)}),null},eU=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var u=m4(t,r,n),l=u||p4(i),a=!l("as");return function(){var c=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)h.push.apply(h,c);else{h.push(c[0][0]);for(var f=c.length,d=1;dt=>{const{theme:r,css:n,__css:i,sx:o,...s}=t,u=xC(s,(h,f)=>Zj(f)),l=kC(e,t),a=GV({},i,l,SC(u),o),c=aC(a)(t.theme);return n?[c,n]:c};function s1(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=AC);const i=nU({baseStyle:r}),o=rU(e,n)(i);return vt.forwardRef(function(l,a){const{colorMode:c,forced:h}=l0();return vt.createElement(o,{ref:a,"data-theme":h?c:void 0,...l})})}function iU(){const e=new Map;return new Proxy(s1,{apply(t,r,n){return s1(...n)},get(t,r){return e.has(r)||e.set(r,s1(r)),e.get(r)}})}var et=iU();function wt(e){return G.forwardRef(e)}function oU(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,i=G.createContext(void 0);i.displayName=n;function o(){var s;const u=G.useContext(i);if(!u&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,o),l}return u}return[i.Provider,o,i]}function sU(e){const{cssVarsRoot:t,theme:r,children:n}=e,i=G.useMemo(()=>qj(r),[r]);return X.jsxs(kR,{theme:i,children:[X.jsx(aU,{root:t}),n]})}function aU({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return X.jsx(s0,{styles:r=>({[t]:r.__cssVars})})}oU({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function lU(){const{colorMode:e}=l0();return X.jsx(s0,{styles:t=>{const r=_C(t,"styles.global"),n=kC(r,{theme:t,colorMode:e});return n?aC(n)(t):void 0}})}var C2=G.createContext({getDocument(){return document},getWindow(){return window}});C2.displayName="EnvironmentContext";function uU({defer:e}={}){const[,t]=G.useReducer(r=>r+1,0);return Fo(()=>{e&&t()},[e]),G.useContext(C2)}function OC(e){const{children:t,environment:r,disabled:n}=e,i=G.useRef(null),o=G.useMemo(()=>r||{getDocument:()=>{var u,l;return(l=(u=i.current)==null?void 0:u.ownerDocument)!=null?l:document},getWindow:()=>{var u,l;return(l=(u=i.current)==null?void 0:u.ownerDocument.defaultView)!=null?l:window}},[r]),s=!n||!r;return X.jsxs(C2.Provider,{value:o,children:[t,s&&X.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}OC.displayName="EnvironmentProvider";var cU=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:s={},environment:u,cssVarsRoot:l,disableEnvironment:a,disableGlobalStyle:c}=e,h=X.jsx(OC,{environment:u,disabled:a,children:t});return X.jsx(sU,{theme:s,cssVarsRoot:l,children:X.jsxs(J9,{colorModeManager:r,options:s.config,children:[o?X.jsx(PR,{scope:i}):X.jsx(AR,{}),!c&&X.jsx(lU,{}),n?X.jsx(Z9,{zIndex:n,children:h}):h]})})},dU=(e,t)=>e.find(r=>r.id===t);function v4(e,t){const r=MC(e,t),n=r?e[r].findIndex(i=>i.id===t):-1;return{position:r,index:n}}function MC(e,t){for(const[r,n]of Object.entries(e))if(dU(n,t))return r}function fU(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function hU(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:i,right:o,left:s}}function Or(e,t=[]){const r=G.useRef(e);return G.useEffect(()=>{r.current=e}),G.useCallback((...n)=>{var i;return(i=r.current)==null?void 0:i.call(r,...n)},t)}function pU(e,t){const r=Or(e);G.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Fa(e,t){const r=G.useRef(!1),n=G.useRef(!1);G.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),G.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const IC=G.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),p0=G.createContext({}),sf=G.createContext(null),m0=typeof document<"u",E2=m0?G.useLayoutEffect:G.useEffect,RC=G.createContext({strict:!1});function mU(e,t,r,n){const{visualElement:i}=G.useContext(p0),o=G.useContext(RC),s=G.useContext(sf),u=G.useContext(IC).reducedMotion,l=G.useRef();n=n||o.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const a=l.current;G.useInsertionEffect(()=>{a&&a.update(r,s)});const c=G.useRef(!!window.HandoffAppearAnimations);return E2(()=>{a&&(a.render(),c.current&&a.animationState&&a.animationState.animateChanges())}),G.useEffect(()=>{a&&(a.updateFeatures(),!c.current&&a.animationState&&a.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),a}function Dl(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gU(e,t,r){return G.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Dl(r)&&(r.current=n))},[t])}function Fd(e){return typeof e=="string"||Array.isArray(e)}function g0(e){return typeof e=="object"&&typeof e.start=="function"}const T2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$2=["initial",...T2];function v0(e){return g0(e.animate)||$2.some(t=>Fd(e[t]))}function jC(e){return!!(v0(e)||e.variants)}function vU(e,t){if(v0(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Fd(r)?r:void 0,animate:Fd(n)?n:void 0}}return e.inherit!==!1?t:{}}function yU(e){const{initial:t,animate:r}=vU(e,G.useContext(p0));return G.useMemo(()=>({initial:t,animate:r}),[y4(t),y4(r)])}function y4(e){return Array.isArray(e)?e.join(" "):e}const b4={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ld={};for(const e in b4)Ld[e]={isEnabled:t=>b4[e].some(r=>!!t[r])};function bU(e){for(const t in e)Ld[t]={...Ld[t],...e[t]}}const A2=G.createContext({}),NC=G.createContext({}),wU=Symbol.for("motionComponentSymbol");function _U({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&bU(e);function o(u,l){let a;const c={...G.useContext(IC),...u,layoutId:xU(u)},{isStatic:h}=c,f=yU(u),d=n(u,h);if(!h&&m0){f.visualElement=mU(i,d,c,t);const m=G.useContext(NC),g=G.useContext(RC).strict;f.visualElement&&(a=f.visualElement.loadFeatures(c,g,e,m))}return G.createElement(p0.Provider,{value:f},a&&f.visualElement?G.createElement(a,{visualElement:f.visualElement,...c}):null,r(i,u,gU(d,f.visualElement,l),d,h,f.visualElement))}const s=G.forwardRef(o);return s[wU]=i,s}function xU({layoutId:e}){const t=G.useContext(A2).id;return t&&e!==void 0?t+"-"+e:e}function SU(e){function t(n,i={}){return _U(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const kU=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function P2(e){return typeof e!="string"||e.includes("-")?!1:!!(kU.indexOf(e)>-1||/[A-Z]/.test(e))}const Kp={};function CU(e){Object.assign(Kp,e)}const af=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xa=new Set(af);function DC(e,{layout:t,layoutId:r}){return Xa.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Kp[e]||e==="opacity")}const zn=e=>!!(e&&e.getVelocity),EU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},TU=af.length;function $U(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),LC=FC("--"),uy=FC("var(--"),AU=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,PU=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gs=(e,t,r)=>Math.min(Math.max(r,e),t),Ya={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qc={...Ya,transform:e=>Gs(0,1,e)},sh={...Ya,default:1},Jc=e=>Math.round(e*1e5)/1e5,y0=/(-)?([\d]*\.?[\d])+/g,BC=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,OU=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function lf(e){return typeof e=="string"}const uf=e=>({test:t=>lf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bs=uf("deg"),bo=uf("%"),mt=uf("px"),MU=uf("vh"),IU=uf("vw"),w4={...bo,parse:e=>bo.parse(e)/100,transform:e=>bo.transform(e*100)},_4={...Ya,transform:Math.round},zC={borderWidth:mt,borderTopWidth:mt,borderRightWidth:mt,borderBottomWidth:mt,borderLeftWidth:mt,borderRadius:mt,radius:mt,borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomRightRadius:mt,borderBottomLeftRadius:mt,width:mt,maxWidth:mt,height:mt,maxHeight:mt,size:mt,top:mt,right:mt,bottom:mt,left:mt,padding:mt,paddingTop:mt,paddingRight:mt,paddingBottom:mt,paddingLeft:mt,margin:mt,marginTop:mt,marginRight:mt,marginBottom:mt,marginLeft:mt,rotate:bs,rotateX:bs,rotateY:bs,rotateZ:bs,scale:sh,scaleX:sh,scaleY:sh,scaleZ:sh,skew:bs,skewX:bs,skewY:bs,distance:mt,translateX:mt,translateY:mt,translateZ:mt,x:mt,y:mt,z:mt,perspective:mt,transformPerspective:mt,opacity:Qc,originX:w4,originY:w4,originZ:mt,zIndex:_4,fillOpacity:Qc,strokeOpacity:Qc,numOctaves:_4};function O2(e,t,r,n){const{style:i,vars:o,transform:s,transformOrigin:u}=e;let l=!1,a=!1,c=!0;for(const h in t){const f=t[h];if(LC(h)){o[h]=f;continue}const d=zC[h],m=PU(f,d);if(Xa.has(h)){if(l=!0,s[h]=m,!c)continue;f!==(d.default||0)&&(c=!1)}else h.startsWith("origin")?(a=!0,u[h]=m):i[h]=m}if(t.transform||(l||n?i.transform=$U(e.transform,r,c,n):i.transform&&(i.transform="none")),a){const{originX:h="50%",originY:f="50%",originZ:d=0}=u;i.transformOrigin=`${h} ${f} ${d}`}}const M2=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function VC(e,t,r){for(const n in t)!zn(t[n])&&!DC(n,r)&&(e[n]=t[n])}function RU({transformTemplate:e},t,r){return G.useMemo(()=>{const n=M2();return O2(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function jU(e,t,r){const n=e.style||{},i={};return VC(i,n,e),Object.assign(i,RU(e,t,r)),e.transformValues?e.transformValues(i):i}function NU(e,t,r){const n={},i=jU(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const DU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Gp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||DU.has(e)}let UC=e=>!Gp(e);function FU(e){e&&(UC=t=>t.startsWith("on")?!Gp(t):e(t))}try{FU(require("@emotion/is-prop-valid").default)}catch{}function LU(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(UC(i)||r===!0&&Gp(i)||!t&&!Gp(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function x4(e,t,r){return typeof e=="string"?e:mt.transform(t+r*e)}function BU(e,t,r){const n=x4(t,e.x,e.width),i=x4(r,e.y,e.height);return`${n} ${i}`}const zU={offset:"stroke-dashoffset",array:"stroke-dasharray"},VU={offset:"strokeDashoffset",array:"strokeDasharray"};function UU(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?zU:VU;e[o.offset]=mt.transform(-n);const s=mt.transform(t),u=mt.transform(r);e[o.array]=`${s} ${u}`}function I2(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...a},c,h,f){if(O2(e,a,c,f),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m,dimensions:g}=e;d.transform&&(g&&(m.transform=d.transform),delete d.transform),g&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=BU(g,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),s!==void 0&&UU(d,s,u,l,!1)}const HC=()=>({...M2(),attrs:{}}),R2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function HU(e,t,r,n){const i=G.useMemo(()=>{const o=HC();return I2(o,t,{enableHardwareAcceleration:!1},R2(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};VC(o,e.style,e),i.style={...o,...i.style}}return i}function WU(e=!1){return(r,n,i,{latestValues:o},s)=>{const l=(P2(r)?HU:NU)(n,o,s,r),c={...LU(n,typeof r=="string",e),...l,ref:i},{children:h}=n,f=G.useMemo(()=>zn(h)?h.get():h,[h]);return G.createElement(r,{...c,children:f})}}const j2=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function WC(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const qC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function KC(e,t,r,n){WC(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(qC.has(i)?i:j2(i),t.attrs[i])}function N2(e,t){const{style:r}=e,n={};for(const i in r)(zn(r[i])||t.style&&zn(t.style[i])||DC(i,e))&&(n[i]=r[i]);return n}function GC(e,t){const r=N2(e,t);for(const n in e)if(zn(e[n])||zn(t[n])){const i=af.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function D2(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function XC(e){const t=G.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xp=e=>Array.isArray(e),qU=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KU=e=>Xp(e)?e[e.length-1]||0:e;function ep(e){const t=zn(e)?e.get():e;return qU(t)?t.toValue():t}function GU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const s={latestValues:XU(n,i,o,e),renderState:t()};return r&&(s.mount=u=>r(n,u,s)),s}const YC=e=>(t,r)=>{const n=G.useContext(p0),i=G.useContext(sf),o=()=>GU(e,t,n,i);return r?o():XC(o)};function XU(e,t,r,n){const i={},o=n(e,{});for(const f in o)i[f]=ep(o[f]);let{initial:s,animate:u}=e;const l=v0(e),a=jC(e);t&&a&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let c=r?r.initial===!1:!1;c=c||s===!1;const h=c?u:s;return h&&typeof h!="boolean"&&!g0(h)&&(Array.isArray(h)?h:[h]).forEach(d=>{const m=D2(e,d);if(!m)return;const{transitionEnd:g,transition:p,...v}=m;for(const y in v){let b=v[y];if(Array.isArray(b)){const _=c?b.length-1:0;b=b[_]}b!==null&&(i[y]=b)}for(const y in g)i[y]=g[y]}),i}const Mr=e=>e;class S4{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function YU(e){let t=new S4,r=new S4,n=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(l,a=!1,c=!1)=>{const h=c&&i,f=h?t:r;return a&&s.add(l),f.add(l)&&h&&i&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let a=0;a(h[f]=YU(()=>r=!0),h),{}),s=h=>o[h].process(i),u=()=>{const h=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(h-i.timestamp,ZU),1),i.timestamp=h,i.isProcessing=!0,ah.forEach(s),i.isProcessing=!1,r&&t&&(n=!1,e(u))},l=()=>{r=!0,n=!0,i.isProcessing||e(u)};return{schedule:ah.reduce((h,f)=>{const d=o[f];return h[f]=(m,g=!1,p=!1)=>(r||l(),d.schedule(m,g,p)),h},{}),cancel:h=>ah.forEach(f=>o[f].cancel(h)),state:i,steps:o}}const{schedule:hr,cancel:Qo,state:Xr,steps:a1}=QU(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mr,!0),JU={useVisualState:YC({scrapeMotionValuesFromProps:GC,createRenderState:HC,onMount:(e,t,{renderState:r,latestValues:n})=>{hr.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),hr.render(()=>{I2(r,n,{enableHardwareAcceleration:!1},R2(t.tagName),e.transformTemplate),KC(t,r)})}})},eH={useVisualState:YC({scrapeMotionValuesFromProps:N2,createRenderState:M2})};function tH(e,{forwardMotionProps:t=!1},r,n){return{...P2(e)?JU:eH,preloadedFeatures:r,useRender:WU(t),createVisualElement:n,Component:e}}function No(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const ZC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function b0(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const rH=e=>t=>ZC(t)&&e(t,b0(t));function zo(e,t,r,n){return No(e,t,rH(r),n)}const nH=(e,t)=>r=>t(e(r)),Bs=(...e)=>e.reduce(nH);function QC(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const k4=QC("dragHorizontal"),C4=QC("dragVertical");function JC(e){let t=!1;if(e==="y")t=C4();else if(e==="x")t=k4();else{const r=k4(),n=C4();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function e7(){const e=JC(!0);return e?(e(),!1):!0}class ea{constructor(t){this.isMounted=!1,this.node=t}update(){}}function E4(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||e7())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[n]&&hr.update(()=>u[n](o,s))};return zo(e.current,r,i,{passive:!e.getProps()[n]})}class iH extends ea{mount(){this.unmount=Bs(E4(this.node,!0),E4(this.node,!1))}unmount(){}}class oH extends ea{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bs(No(this.node.current,"focus",()=>this.onFocus()),No(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const t7=(e,t)=>t?e===t?!0:t7(e,t.parentElement):!1;function l1(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,b0(r))}class sH extends ea{constructor(){super(...arguments),this.removeStartListeners=Mr,this.removeEndListeners=Mr,this.removeAccessibleListeners=Mr,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),o=zo(window,"pointerup",(u,l)=>{if(!this.checkPressEnd())return;const{onTap:a,onTapCancel:c}=this.node.getProps();hr.update(()=>{t7(this.node.current,u.target)?a&&a(u,l):c&&c(u,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=zo(window,"pointercancel",(u,l)=>this.cancelPress(u,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Bs(o,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=u=>{u.key!=="Enter"||!this.checkPressEnd()||l1("up",(l,a)=>{const{onTap:c}=this.node.getProps();c&&hr.update(()=>c(l,a))})};this.removeEndListeners(),this.removeEndListeners=No(this.node.current,"keyup",s),l1("down",(u,l)=>{this.startPress(u,l)})},r=No(this.node.current,"keydown",t),n=()=>{this.isPressing&&l1("cancel",(o,s)=>this.cancelPress(o,s))},i=No(this.node.current,"blur",n);this.removeAccessibleListeners=Bs(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&hr.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!e7()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&hr.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=zo(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=No(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Bs(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const cy=new WeakMap,u1=new WeakMap,aH=e=>{const t=cy.get(e.target);t&&t(e)},lH=e=>{e.forEach(aH)};function uH({root:e,...t}){const r=e||document;u1.has(r)||u1.set(r,{});const n=u1.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(lH,{root:e,...t})),n[i]}function cH(e,t,r){const n=uH(t);return cy.set(e,r),n.observe(e),()=>{cy.delete(e),n.unobserve(e)}}const dH={some:0,all:1};class fH extends ea{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:o}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:dH[i]},u=l=>{const{isIntersecting:a}=l;if(this.isInView===a||(this.isInView=a,o&&!a&&this.hasEnteredView))return;a&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",a);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=a?c:h;f&&f(l)};return cH(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(hH(t,r))&&this.startObserver()}unmount(){}}function hH({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const pH={inView:{Feature:fH},tap:{Feature:sH},focus:{Feature:oH},hover:{Feature:iH}};function r7(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function gH(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function w0(e,t,r){const n=e.getProps();return D2(n,t,r!==void 0?r:n.custom,mH(e),gH(e))}const vH="framerAppearId",yH="data-"+j2(vH);let bH=Mr,F2=Mr;const zs=e=>e*1e3,Vo=e=>e/1e3,wH={current:!1},n7=e=>Array.isArray(e)&&typeof e[0]=="number";function i7(e){return!!(!e||typeof e=="string"&&o7[e]||n7(e)||Array.isArray(e)&&e.every(i7))}const Rc=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,o7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rc([0,.65,.55,1]),circOut:Rc([.55,0,1,.45]),backIn:Rc([.31,.01,.66,-.59]),backOut:Rc([.33,1.53,.69,.99])};function s7(e){if(e)return n7(e)?Rc(e):Array.isArray(e)?e.map(s7):o7[e]}function _H(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:s="loop",ease:u,times:l}={}){const a={[t]:r};l&&(a.offset=l);const c=s7(u);return Array.isArray(c)&&(a.easing=c),e.animate(a,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function xH(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const a7=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,SH=1e-7,kH=12;function CH(e,t,r,n,i){let o,s,u=0;do s=t+(r-t)/2,o=a7(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>SH&&++uCH(o,0,1,e,r);return o=>o===0||o===1?o:a7(i(o),t,n)}const EH=cf(.42,0,1,1),TH=cf(0,0,.58,1),l7=cf(.42,0,.58,1),$H=e=>Array.isArray(e)&&typeof e[0]!="number",u7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,c7=e=>t=>1-e(1-t),d7=e=>1-Math.sin(Math.acos(e)),L2=c7(d7),AH=u7(L2),f7=cf(.33,1.53,.69,.99),B2=c7(f7),PH=u7(B2),OH=e=>(e*=2)<1?.5*B2(e):.5*(2-Math.pow(2,-10*(e-1))),MH={linear:Mr,easeIn:EH,easeInOut:l7,easeOut:TH,circIn:d7,circInOut:AH,circOut:L2,backIn:B2,backInOut:PH,backOut:f7,anticipate:OH},T4=e=>{if(Array.isArray(e)){F2(e.length===4);const[t,r,n,i]=e;return cf(t,r,n,i)}else if(typeof e=="string")return MH[e];return e},z2=(e,t)=>r=>!!(lf(r)&&OU.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),h7=(e,t,r)=>n=>{if(!lf(n))return n;const[i,o,s,u]=n.match(y0);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},IH=e=>Gs(0,255,e),c1={...Ya,transform:e=>Math.round(IH(e))},Ea={test:z2("rgb","red"),parse:h7("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+c1.transform(e)+", "+c1.transform(t)+", "+c1.transform(r)+", "+Jc(Qc.transform(n))+")"};function RH(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const dy={test:z2("#"),parse:RH,transform:Ea.transform},Fl={test:z2("hsl","hue"),parse:h7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+bo.transform(Jc(t))+", "+bo.transform(Jc(r))+", "+Jc(Qc.transform(n))+")"},wn={test:e=>Ea.test(e)||dy.test(e)||Fl.test(e),parse:e=>Ea.test(e)?Ea.parse(e):Fl.test(e)?Fl.parse(e):dy.parse(e),transform:e=>lf(e)?e:e.hasOwnProperty("red")?Ea.transform(e):Fl.transform(e)},Cr=(e,t,r)=>-r*e+r*t+e;function d1(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function jH({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{const u=r<.5?r*(1+t):r+t-r*t,l=2*r-u;i=d1(l,u,e+1/3),o=d1(l,u,e),s=d1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}const f1=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},NH=[dy,Ea,Fl],DH=e=>NH.find(t=>t.test(e));function $4(e){const t=DH(e);let r=t.parse(e);return t===Fl&&(r=jH(r)),r}const p7=(e,t)=>{const r=$4(e),n=$4(t),i={...r};return o=>(i.red=f1(r.red,n.red,o),i.green=f1(r.green,n.green,o),i.blue=f1(r.blue,n.blue,o),i.alpha=Cr(r.alpha,n.alpha,o),Ea.transform(i))};function FH(e){var t,r;return isNaN(e)&&lf(e)&&(((t=e.match(y0))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(BC))===null||r===void 0?void 0:r.length)||0)>0}const m7={regex:AU,countKey:"Vars",token:"${v}",parse:Mr},g7={regex:BC,countKey:"Colors",token:"${c}",parse:wn.parse},v7={regex:y0,countKey:"Numbers",token:"${n}",parse:Ya.parse};function h1(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function Yp(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&h1(r,m7),h1(r,g7),h1(r,v7),r}function y7(e){return Yp(e).values}function b7(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Yp(e),o=t.length;return s=>{let u=i;for(let l=0;ltypeof e=="number"?0:e;function BH(e){const t=y7(e);return b7(e)(t.map(LH))}const Xs={test:FH,parse:y7,createTransformer:b7,getAnimatableNone:BH},w7=(e,t)=>r=>`${r>0?t:e}`;function _7(e,t){return typeof e=="number"?r=>Cr(e,t,r):wn.test(e)?p7(e,t):e.startsWith("var(")?w7(e,t):S7(e,t)}const x7=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,s)=>_7(o,t[s]));return o=>{for(let s=0;s{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=_7(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}},S7=(e,t)=>{const r=Xs.createTransformer(t),n=Yp(e),i=Yp(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Bs(x7(n.values,i.values),r):w7(e,t)},Bd=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},A4=(e,t)=>r=>Cr(e,t,r);function VH(e){return typeof e=="number"?A4:typeof e=="string"?wn.test(e)?p7:S7:Array.isArray(e)?x7:typeof e=="object"?zH:A4}function UH(e,t,r){const n=[],i=r||VH(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=UH(t,n,i),u=s.length,l=a=>{let c=0;if(u>1)for(;cl(Gs(e[0],e[o-1],a)):l}function HH(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=Bd(0,t,n);e.push(Cr(r,1,i))}}function WH(e){const t=[0];return HH(t,e.length-1),t}function qH(e,t){return e.map(r=>r*t)}function KH(e,t){return e.map(()=>t||l7).splice(0,e.length-1)}function Zp({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=$H(n)?n.map(T4):T4(n),o={done:!1,value:t[0]},s=qH(r&&r.length===t.length?r:WH(t),e),u=k7(s,t,{ease:Array.isArray(i)?i:KH(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}function C7(e,t){return t?e*(1e3/t):0}const GH=5;function E7(e,t,r){const n=Math.max(t-GH,0);return C7(r-e(n),t-n)}const p1=.001,XH=.01,P4=10,YH=.05,ZH=1;function QH({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;bH(e<=zs(P4));let s=1-t;s=Gs(YH,ZH,s),e=Gs(XH,P4,Vo(e)),s<1?(i=a=>{const c=a*s,h=c*e,f=c-r,d=fy(a,s),m=Math.exp(-h);return p1-f/d*m},o=a=>{const h=a*s*e,f=h*r+r,d=Math.pow(s,2)*Math.pow(a,2)*e,m=Math.exp(-h),g=fy(Math.pow(a,2),s);return(-i(a)+p1>0?-1:1)*((f-d)*m)/g}):(i=a=>{const c=Math.exp(-a*e),h=(a-r)*e+1;return-p1+c*h},o=a=>{const c=Math.exp(-a*e),h=(r-a)*(e*e);return c*h});const u=5/e,l=eW(i,o,u);if(e=zs(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const a=Math.pow(l,2)*n;return{stiffness:a,damping:s*2*Math.sqrt(n*a),duration:e}}}const JH=12;function eW(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function nW(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!O4(e,rW)&&O4(e,tW)){const r=QH(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function T7({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:u,damping:l,mass:a,velocity:c,duration:h,isResolvedFromDuration:f}=nW(n),d=c?-Vo(c):0,m=l/(2*Math.sqrt(u*a)),g=o-i,p=Vo(Math.sqrt(u/a)),v=Math.abs(g)<5;r||(r=v?.01:2),t||(t=v?.005:.5);let y;if(m<1){const b=fy(p,m);y=_=>{const E=Math.exp(-m*p*_);return o-E*((d+m*p*g)/b*Math.sin(b*_)+g*Math.cos(b*_))}}else if(m===1)y=b=>o-Math.exp(-p*b)*(g+(d+p*g)*b);else{const b=p*Math.sqrt(m*m-1);y=_=>{const E=Math.exp(-m*p*_),$=Math.min(b*_,300);return o-E*((d+m*p*g)*Math.sinh($)+b*g*Math.cosh($))/b}}return{calculatedDuration:f&&h||null,next:b=>{const _=y(b);if(f)s.done=b>=h;else{let E=d;b!==0&&(m<1?E=E7(y,b,_):E=0);const $=Math.abs(E)<=r,M=Math.abs(o-_)<=t;s.done=$&&M}return s.value=s.done?o:_,s}}}function M4({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:l,restDelta:a=.5,restSpeed:c}){const h=e[0],f={done:!1,value:h},d=P=>u!==void 0&&Pl,m=P=>u===void 0?l:l===void 0||Math.abs(u-P)-g*Math.exp(-P/n),b=P=>v+y(P),_=P=>{const D=y(P),F=b(P);f.done=Math.abs(D)<=a,f.value=f.done?v:F};let E,$;const M=P=>{d(f.value)&&(E=P,$=T7({keyframes:[f.value,m(f.value)],velocity:E7(b,P,f.value),damping:i,stiffness:o,restDelta:a,restSpeed:c}))};return M(0),{calculatedDuration:null,next:P=>{let D=!1;return!$&&E===void 0&&(D=!0,_(P),M(P)),E!==void 0&&P>E?$.next(P-E):(!D&&_(P),f)}}}const iW=e=>{const t=({timestamp:r})=>e(r);return{start:()=>hr.update(t,!0),stop:()=>Qo(t),now:()=>Xr.isProcessing?Xr.timestamp:performance.now()}},I4=2e4;function R4(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=I4?1/0:t}const oW={decay:M4,inertia:M4,tween:Zp,keyframes:Zp,spring:T7};function Qp({autoplay:e=!0,delay:t=0,driver:r=iW,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:u="loop",onPlay:l,onStop:a,onComplete:c,onUpdate:h,...f}){let d=1,m=!1,g,p;const v=()=>{p=new Promise(I=>{g=I})};v();let y;const b=oW[i]||Zp;let _;b!==Zp&&typeof n[0]!="number"&&(_=k7([0,100],n,{clamp:!1}),n=[0,100]);const E=b({...f,keyframes:n});let $;u==="mirror"&&($=b({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let M="idle",P=null,D=null,F=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=R4(E));const{calculatedDuration:U}=E;let V=1/0,A=1/0;U!==null&&(V=U+s,A=V*(o+1)-s);let O=0;const C=I=>{if(D===null)return;d>0&&(D=Math.min(D,I)),d<0&&(D=Math.min(I-A/d,D)),P!==null?O=P:O=Math.round(I-D)*d;const L=O-t*(d>=0?1:-1),z=d>=0?L<0:L>A;O=Math.max(L,0),M==="finished"&&P===null&&(O=A);let B=O,W=E;if(o){const R=O/V;let H=Math.floor(R),K=R%1;!K&&R>=1&&(K=1),K===1&&H--,H=Math.min(H,o+1);const ee=!!(H%2);ee&&(u==="reverse"?(K=1-K,s&&(K-=s/V)):u==="mirror"&&(W=$));let Y=Gs(0,1,K);O>A&&(Y=u==="reverse"&&ee?1:0),B=Y*V}const N=z?{done:!1,value:n[0]}:W.next(B);_&&(N.value=_(N.value));let{done:q}=N;!z&&U!==null&&(q=d>=0?O>=A:O<=0);const j=P===null&&(M==="finished"||M==="running"&&q);return h&&h(N.value),j&&x(),N},w=()=>{y&&y.stop(),y=void 0},S=()=>{M="idle",w(),g(),v(),D=F=null},x=()=>{M="finished",c&&c(),w(),g()},k=()=>{if(m)return;y||(y=r(C));const I=y.now();l&&l(),P!==null?D=I-P:(!D||M==="finished")&&(D=I),M==="finished"&&v(),F=D,P=null,M="running",y.start()};e&&k();const T={then(I,L){return p.then(I,L)},get time(){return Vo(O)},set time(I){I=zs(I),O=I,P!==null||!y||d===0?P=I:D=y.now()-I/d},get duration(){const I=E.calculatedDuration===null?R4(E):E.calculatedDuration;return Vo(I)},get speed(){return d},set speed(I){I===d||!y||(d=I,T.time=Vo(O))},get state(){return M},play:k,pause:()=>{M="paused",P=O},stop:()=>{m=!0,M!=="idle"&&(M="idle",a&&a(),S())},cancel:()=>{F!==null&&C(F),S()},complete:()=>{M="finished"},sample:I=>(D=0,C(I))};return T}function sW(e){let t;return()=>(t===void 0&&(t=e()),t)}const aW=sW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),lW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),lh=10,uW=2e4,cW=(e,t)=>t.type==="spring"||e==="backgroundColor"||!i7(t.ease);function dW(e,t,{onUpdate:r,onComplete:n,...i}){if(!(aW()&&lW.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,u,l;const a=()=>{l=new Promise(y=>{u=y})};a();let{keyframes:c,duration:h=300,ease:f,times:d}=i;if(cW(t,i)){const y=Qp({...i,repeat:0,delay:0});let b={done:!1,value:c[0]};const _=[];let E=0;for(;!b.done&&Em.cancel(),p=()=>{hr.update(g),u(),a()};return m.onfinish=()=>{e.set(xH(c,i)),n&&n(),p()},{then(y,b){return l.then(y,b)},attachTimeline(y){return m.timeline=y,m.onfinish=null,Mr},get time(){return Vo(m.currentTime||0)},set time(y){m.currentTime=zs(y)},get speed(){return m.playbackRate},set speed(y){m.playbackRate=y},get duration(){return Vo(h)},play:()=>{s||(m.play(),Qo(g))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:y}=m;if(y){const b=Qp({...i,autoplay:!1});e.setWithVelocity(b.sample(y-lh).value,b.sample(y).value,lh)}p()},complete:()=>m.finish(),cancel:p}}function fW({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Mr,pause:Mr,stop:Mr,then:o=>(o(),Promise.resolve()),cancel:Mr,complete:Mr});return t?Qp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const hW={type:"spring",stiffness:500,damping:25,restSpeed:10},pW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mW={type:"keyframes",duration:.8},gW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vW=(e,{keyframes:t})=>t.length>2?mW:Xa.has(e)?e.startsWith("scale")?pW(t[1]):hW:gW,hy=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Xs.test(t)||t==="0")&&!t.startsWith("url(")),yW=new Set(["brightness","contrast","saturate","opacity"]);function bW(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(y0)||[];if(!n)return e;const i=r.replace(n,"");let o=yW.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const wW=/([a-z-]*)\(.*?\)/g,py={...Xs,getAnimatableNone:e=>{const t=e.match(wW);return t?t.map(bW).join(" "):e}},_W={...zC,color:wn,backgroundColor:wn,outlineColor:wn,fill:wn,stroke:wn,borderColor:wn,borderTopColor:wn,borderRightColor:wn,borderBottomColor:wn,borderLeftColor:wn,filter:py,WebkitFilter:py},V2=e=>_W[e];function $7(e,t){let r=V2(e);return r!==py&&(r=Xs),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const A7=e=>/^0[^.\s]+$/.test(e);function xW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||A7(e)}function SW(e,t,r,n){const i=hy(t,r);let o;Array.isArray(r)?o=[...r]:o=[null,r];const s=n.from!==void 0?n.from:e.get();let u;const l=[];for(let a=0;ai=>{const o=P7(n,e)||{},s=o.delay||n.delay||0;let{elapsed:u=0}=n;u=u-zs(s);const l=SW(t,e,r,o),a=l[0],c=l[l.length-1],h=hy(e,a),f=hy(e,c);let d={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(kW(o)||(d={...d,...vW(e,d)}),d.duration&&(d.duration=zs(d.duration)),d.repeatDelay&&(d.repeatDelay=zs(d.repeatDelay)),!h||!f||wH.current||o.type===!1)return fW(d);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=dW(t,e,d);if(m)return m}return Qp(d)};function Jp(e){return!!(zn(e)&&e.add)}const O7=e=>/^\-?\d*\.?\d+$/.test(e);function H2(e,t){e.indexOf(t)===-1&&e.push(t)}function W2(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class q2{constructor(){this.subscriptions=[]}add(t){return H2(this.subscriptions,t),()=>W2(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o!isNaN(parseFloat(e));class EW{constructor(t,r={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:s}=Xr;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,hr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>hr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=CW(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new q2);const n=this.events[t].add(r);return t==="change"?()=>{n(),hr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?C7(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mu(e,t){return new EW(e,t)}const M7=e=>t=>t.test(e),TW={test:e=>e==="auto",parse:e=>e},I7=[Ya,mt,bo,bs,IU,MU,TW],mc=e=>I7.find(M7(e)),$W=[...I7,wn,Xs],AW=e=>$W.find(M7(e));function PW(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,mu(r))}function OW(e,t){const r=w0(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const s in o){const u=KU(o[s]);PW(e,s,u)}}function MW(e,t,r){var n,i;const o=Object.keys(t).filter(u=>!e.hasValue(u)),s=o.length;if(s)for(let u=0;ul.remove(h))),a.push(g)}return s&&Promise.all(a).then(()=>{s&&OW(e,s)}),a}function my(e,t,r={}){const n=w0(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(R7(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:a=0,staggerChildren:c,staggerDirection:h}=i;return NW(e,t,a+l,c,h,r)}:()=>Promise.resolve(),{when:u}=i;if(u){const[l,a]=u==="beforeChildren"?[o,s]:[s,o];return l().then(()=>a())}else return Promise.all([o(),s(r.delay)])}function NW(e,t,r=0,n=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*n,l=i===1?(a=0)=>a*n:(a=0)=>u-a*n;return Array.from(e.variantChildren).sort(DW).forEach((a,c)=>{a.notify("AnimationStart",t),s.push(my(a,t,{...o,delay:r+l(c)}).then(()=>a.notify("AnimationComplete",t)))}),Promise.all(s)}function DW(e,t){return e.sortNodePosition(t)}function FW(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>my(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=my(e,t,r);else{const i=typeof t=="function"?w0(e,t,r.custom):t;n=Promise.all(R7(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const LW=[...T2].reverse(),BW=T2.length;function zW(e){return t=>Promise.all(t.map(({animation:r,options:n})=>FW(e,r,n)))}function VW(e){let t=zW(e);const r=HW();let n=!0;const i=(l,a)=>{const c=w0(e,a);if(c){const{transition:h,transitionEnd:f,...d}=c;l={...l,...d,...f}}return l};function o(l){t=l(e)}function s(l,a){const c=e.getProps(),h=e.getVariantContext(!0)||{},f=[],d=new Set;let m={},g=1/0;for(let v=0;vg&&E;const F=Array.isArray(_)?_:[_];let U=F.reduce(i,{});$===!1&&(U={});const{prevResolvedValues:V={}}=b,A={...V,...U},O=C=>{D=!0,d.delete(C),b.needsAnimating[C]=!0};for(const C in A){const w=U[C],S=V[C];m.hasOwnProperty(C)||(w!==S?Xp(w)&&Xp(S)?!r7(w,S)||P?O(C):b.protectedKeys[C]=!0:w!==void 0?O(C):d.add(C):w!==void 0&&d.has(C)?O(C):b.protectedKeys[C]=!0)}b.prevProp=_,b.prevResolvedValues=U,b.isActive&&(m={...m,...U}),n&&e.blockInitialAnimation&&(D=!1),D&&!M&&f.push(...F.map(C=>({animation:C,options:{type:y,...l}})))}if(d.size){const v={};d.forEach(y=>{const b=e.getBaseTarget(y);b!==void 0&&(v[y]=b)}),f.push({animation:v})}let p=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(f):Promise.resolve()}function u(l,a,c){var h;if(r[l].isActive===a)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,a)}),r[l].isActive=a;const f=s(c,l);for(const d in r)r[d].protectedKeys={};return f}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>r}}function UW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!r7(t,e):!1}function aa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function HW(){return{animate:aa(!0),whileInView:aa(),whileHover:aa(),whileTap:aa(),whileDrag:aa(),whileFocus:aa(),exit:aa()}}class WW extends ea{constructor(t){super(t),t.animationState||(t.animationState=VW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),g0(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let qW=0;class KW extends ea{constructor(){super(...arguments),this.id=qW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const GW={animation:{Feature:WW},exit:{Feature:KW}},j4=(e,t)=>Math.abs(e-t);function XW(e,t){const r=j4(e.x,t.x),n=j4(e.y,t.y);return Math.sqrt(r**2+n**2)}class j7{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const a=g1(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,h=XW(a.offset,{x:0,y:0})>=3;if(!c&&!h)return;const{point:f}=a,{timestamp:d}=Xr;this.history.push({...f,timestamp:d});const{onStart:m,onMove:g}=this.handlers;c||(m&&m(this.lastMoveEvent,a),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,a)},this.handlePointerMove=(a,c)=>{this.lastMoveEvent=a,this.lastMoveEventInfo=m1(c,this.transformPagePoint),hr.update(this.updatePoint,!0)},this.handlePointerUp=(a,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:h,onSessionEnd:f}=this.handlers,d=g1(a.type==="pointercancel"?this.lastMoveEventInfo:m1(c,this.transformPagePoint),this.history);this.startEvent&&h&&h(a,d),f&&f(a,d)},!ZC(t))return;this.handlers=r,this.transformPagePoint=n;const i=b0(t),o=m1(i,this.transformPagePoint),{point:s}=o,{timestamp:u}=Xr;this.history=[{...s,timestamp:u}];const{onSessionStart:l}=r;l&&l(t,g1(o,this.history)),this.removeListeners=Bs(zo(window,"pointermove",this.handlePointerMove),zo(window,"pointerup",this.handlePointerUp),zo(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qo(this.updatePoint)}}function m1(e,t){return t?{point:t(e.point)}:e}function N4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function g1({point:e},t){return{point:e,delta:N4(e,N7(t)),offset:N4(e,YW(t)),velocity:ZW(t,.1)}}function YW(e){return e[0]}function N7(e){return e[e.length-1]}function ZW(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=N7(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>zs(t)));)r--;if(!n)return{x:0,y:0};const o=Vo(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Jn(e){return e.max-e.min}function gy(e,t=0,r=.01){return Math.abs(e-t)<=r}function D4(e,t,r,n=.5){e.origin=n,e.originPoint=Cr(t.min,t.max,e.origin),e.scale=Jn(r)/Jn(t),(gy(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Cr(r.min,r.max,e.origin)-e.originPoint,(gy(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ed(e,t,r,n){D4(e.x,t.x,r.x,n?n.originX:void 0),D4(e.y,t.y,r.y,n?n.originY:void 0)}function F4(e,t,r){e.min=r.min+t.min,e.max=e.min+Jn(t)}function QW(e,t,r){F4(e.x,t.x,r.x),F4(e.y,t.y,r.y)}function L4(e,t,r){e.min=t.min-r.min,e.max=e.min+Jn(t)}function td(e,t,r){L4(e.x,t.x,r.x),L4(e.y,t.y,r.y)}function JW(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?Cr(r,e,n.max):Math.min(e,r)),e}function B4(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function eq(e,{top:t,left:r,bottom:n,right:i}){return{x:B4(e.x,r,i),y:B4(e.y,t,n)}}function z4(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Bd(t.min,t.max-n,e.min):n>i&&(r=Bd(e.min,e.max-i,t.min)),Gs(0,1,r)}function nq(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const vy=.35;function iq(e=vy){return e===!1?e=0:e===!0&&(e=vy),{x:V4(e,"left","right"),y:V4(e,"top","bottom")}}function V4(e,t,r){return{min:U4(e,t),max:U4(e,r)}}function U4(e,t){return typeof e=="number"?e:e[t]||0}const H4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ll=()=>({x:H4(),y:H4()}),W4=()=>({min:0,max:0}),Fr=()=>({x:W4(),y:W4()});function oo(e){return[e("x"),e("y")]}function D7({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function oq({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sq(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function v1(e){return e===void 0||e===1}function yy({scale:e,scaleX:t,scaleY:r}){return!v1(e)||!v1(t)||!v1(r)}function da(e){return yy(e)||F7(e)||e.z||e.rotate||e.rotateX||e.rotateY}function F7(e){return q4(e.x)||q4(e.y)}function q4(e){return e&&e!=="0%"}function em(e,t,r){const n=e-r,i=t*n;return r+i}function K4(e,t,r,n,i){return i!==void 0&&(e=em(e,i,n)),em(e,r,n)+t}function by(e,t=0,r=1,n,i){e.min=K4(e.min,t,r,n,i),e.max=K4(e.max,t,r,n,i)}function L7(e,{x:t,y:r}){by(e.x,t.translate,t.scale,t.originPoint),by(e.y,r.translate,r.scale,r.originPoint)}function aq(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let o,s;for(let u=0;u1.0000000000001||e<.999999999999?e:1}function ks(e,t){e.min=e.min+t,e.max=e.max+t}function X4(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,s=Cr(e.min,e.max,o);by(e,t[r],t[n],s,t.scale)}const lq=["x","scaleX","originX"],uq=["y","scaleY","originY"];function Bl(e,t){X4(e.x,t,lq),X4(e.y,t,uq)}function B7(e,t){return D7(sq(e.getBoundingClientRect(),t))}function cq(e,t,r){const n=B7(e,r),{scroll:i}=t;return i&&(ks(n.x,i.offset.x),ks(n.y,i.offset.y)),n}const dq=new WeakMap;class fq{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fr(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=l=>{this.stopAnimation(),r&&this.snapToCursor(b0(l,"page").point)},o=(l,a)=>{const{drag:c,dragPropagation:h,onDragStart:f}=this.getProps();if(c&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=JC(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),oo(m=>{let g=this.getAxisMotionValue(m).get()||0;if(bo.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const v=p.layout.layoutBox[m];v&&(g=Jn(v)*(parseFloat(g)/100))}}this.originPoint[m]=g}),f&&hr.update(()=>f(l,a),!1,!0);const{animationState:d}=this.visualElement;d&&d.setActive("whileDrag",!0)},s=(l,a)=>{const{dragPropagation:c,dragDirectionLock:h,onDirectionLock:f,onDrag:d}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=a;if(h&&this.currentDirection===null){this.currentDirection=hq(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",a.point,m),this.updateAxis("y",a.point,m),this.visualElement.render(),d&&d(l,a)},u=(l,a)=>this.stop(l,a);this.panSession=new j7(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&hr.update(()=>o(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!uh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=JW(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Dl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=eq(n.layoutBox,t):this.constraints=!1,this.elastic=iq(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&oo(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=nq(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Dl(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=cq(n,i.root,this.visualElement.getTransformPagePoint());let s=tq(i.layout.layoutBox,o);if(r){const u=r(oq(s));this.hasMutatedConstraints=!!u,u&&(s=D7(u))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},a=oo(c=>{if(!uh(c,r,this.currentDirection))return;let h=l&&l[c]||{};s&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(a).then(u)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(U2(t,n,0,r))}stopAnimation(){oo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){oo(r=>{const{drag:n}=this.getProps();if(!uh(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[r];o.set(t[r]-Cr(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Dl(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};oo(s=>{const u=this.getAxisMotionValue(s);if(u){const l=u.get();i[s]=rq({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),oo(s=>{if(!uh(s,t,null))return;const u=this.getAxisMotionValue(s),{min:l,max:a}=this.constraints[s];u.set(Cr(l,a,i[s]))})}addListeners(){if(!this.visualElement.current)return;dq.set(this.visualElement,this);const t=this.visualElement.current,r=zo(t,"pointerdown",l=>{const{drag:a,dragListener:c=!0}=this.getProps();a&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Dl(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const s=No(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:a})=>{this.isDragging&&a&&(oo(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),r(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=vy,dragMomentum:u=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function uh(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function hq(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class pq extends ea{constructor(t){super(t),this.removeGroupControls=Mr,this.removeListeners=Mr,this.controls=new fq(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mr}unmount(){this.removeGroupControls(),this.removeListeners()}}const Y4=e=>(t,r)=>{e&&hr.update(()=>e(t,r))};class mq extends ea{constructor(){super(...arguments),this.removePointerDownListener=Mr}onPointerDown(t){this.session=new j7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Y4(t),onStart:Y4(r),onMove:n,onEnd:(o,s)=>{delete this.session,i&&hr.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=zo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function gq(){const e=G.useContext(sf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=G.useId();return G.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function vq(){return yq(G.useContext(sf))}function yq(e){return e===null?!0:e.isPresent}const tp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Z4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(mt.test(e))e=parseFloat(e);else return e;const r=Z4(e,t.target.x),n=Z4(e,t.target.y);return`${r}% ${n}%`}},bq={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Xs.parse(e);if(i.length>5)return n;const o=Xs.createTransformer(e),s=typeof i[0]!="number"?1:0,u=r.x.scale*t.x,l=r.y.scale*t.y;i[0+s]/=u,i[1+s]/=l;const a=Cr(u,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=a),typeof i[3+s]=="number"&&(i[3+s]/=a),o(i)}};class wq extends vt.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;CU(_q),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),tp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||hr.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function z7(e){const[t,r]=gq(),n=G.useContext(A2);return vt.createElement(wq,{...e,layoutGroup:n,switchLayoutGroup:G.useContext(NC),isPresent:t,safeToRemove:r})}const _q={borderRadius:{...gc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gc,borderTopRightRadius:gc,borderBottomLeftRadius:gc,borderBottomRightRadius:gc,boxShadow:bq},V7=["TopLeft","TopRight","BottomLeft","BottomRight"],xq=V7.length,Q4=e=>typeof e=="string"?parseFloat(e):e,J4=e=>typeof e=="number"||mt.test(e);function Sq(e,t,r,n,i,o){i?(e.opacity=Cr(0,r.opacity!==void 0?r.opacity:1,kq(n)),e.opacityExit=Cr(t.opacity!==void 0?t.opacity:1,0,Cq(n))):o&&(e.opacity=Cr(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(Bd(e,t,n))}function tS(e,t){e.min=t.min,e.max=t.max}function ui(e,t){tS(e.x,t.x),tS(e.y,t.y)}function rS(e,t,r,n,i){return e-=t,e=em(e,1/r,n),i!==void 0&&(e=em(e,1/i,n)),e}function Eq(e,t=0,r=1,n=.5,i,o=e,s=e){if(bo.test(t)&&(t=parseFloat(t),t=Cr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=Cr(o.min,o.max,n);e===o&&(u-=t),e.min=rS(e.min,t,r,u,i),e.max=rS(e.max,t,r,u,i)}function nS(e,t,[r,n,i],o,s){Eq(e,t[r],t[n],t[i],t.scale,o,s)}const Tq=["x","scaleX","originX"],$q=["y","scaleY","originY"];function iS(e,t,r,n){nS(e.x,t,Tq,r?r.x:void 0,n?n.x:void 0),nS(e.y,t,$q,r?r.y:void 0,n?n.y:void 0)}function oS(e){return e.translate===0&&e.scale===1}function H7(e){return oS(e.x)&&oS(e.y)}function Aq(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function W7(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function sS(e){return Jn(e.x)/Jn(e.y)}class Pq{constructor(){this.members=[]}add(t){H2(this.members,t),t.scheduleRender()}remove(t){if(W2(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function aS(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:a,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),a&&(n+=`rotateX(${a}deg) `),c&&(n+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(n+=`scale(${s}, ${u})`),n||"none"}const Oq=(e,t)=>e.depth-t.depth;class Mq{constructor(){this.children=[],this.isDirty=!1}add(t){H2(this.children,t),this.isDirty=!0}remove(t){W2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Oq),this.isDirty=!1,this.children.forEach(t)}}function Iq(e,t){const r=performance.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(Qo(n),e(o-t))};return hr.read(n,!0),()=>Qo(n)}function Rq(e){window.MotionDebug&&window.MotionDebug.record(e)}function jq(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Nq(e,t,r){const n=zn(e)?e:mu(e);return n.start(U2("",n,t,r)),n.animation}const lS=["","X","Y","Z"],uS=1e3;let Dq=0;const fa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function q7({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=Dq++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{fa.totalNodes=fa.resolvedTargetDeltas=fa.recalculatedProjection=0,this.nodes.forEach(Bq),this.nodes.forEach(Wq),this.nodes.forEach(qq),this.nodes.forEach(zq),Rq(fa)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Iq(f,250),tp.hasAnimatedSinceResize&&(tp.hasAnimatedSinceResize=!1,this.nodes.forEach(dS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||a)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||Zq,{onLayoutAnimationStart:p,onLayoutAnimationComplete:v}=c.getProps(),y=!this.targetLayout||!W7(this.targetLayout,m)||d,b=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,b);const _={...P7(g,"layout"),onPlay:p,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else f||dS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Kq),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(Vq),this.sharedNodes.forEach(Gq)}scheduleUpdateProjection(){hr.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){hr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=_/1e3;fS(h.x,s.x,E),fS(h.y,s.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(td(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xq(this.relativeTarget,this.relativeTargetOrigin,f,E),b&&Aq(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Fr()),ui(b,this.relativeTarget)),g&&(this.animationValues=c,Sq(c,a,this.latestValues,E,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=hr.update(()=>{tp.hasAnimatedSinceResize=!0,this.currentAnimation=Nq(0,uS,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:l,layout:a,latestValues:c}=s;if(!(!u||!l||!a)){if(this!==s&&this.layout&&a&&K7(this.options.animationType,this.layout.layoutBox,a.layoutBox)){l=this.target||Fr();const h=Jn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+h;const f=Jn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}ui(u,l),Bl(u,c),ed(this.projectionDeltaWithTransform,this.layoutCorrected,u,c)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Pq),this.sharedNodes.get(s).add(u);const a=u.options.initialPromotionConfig;u.promote({transition:a?a.transition:void 0,preserveFollowOpacity:a&&a.shouldPreserveFollowOpacity?a.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:l}={}){const a=this.getStack();a&&a.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(u=!0),!u)return;const a={};for(let c=0;c{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(cS),this.root.sharedNodes.clear()}}}function Fq(e){e.updateLayout()}function Lq(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,s=r.source!==e.layout.source;o==="size"?oo(h=>{const f=s?r.measuredBox[h]:r.layoutBox[h],d=Jn(f);f.min=n[h].min,f.max=f.min+d}):K7(o,r.layoutBox,n)&&oo(h=>{const f=s?r.measuredBox[h]:r.layoutBox[h],d=Jn(n[h]);f.max=f.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+d)});const u=Ll();ed(u,n,r.layoutBox);const l=Ll();s?ed(l,e.applyTransform(i,!0),r.measuredBox):ed(l,n,r.layoutBox);const a=!H7(u);let c=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=Fr();td(m,r.layoutBox,f.layoutBox);const g=Fr();td(g,n,d.layoutBox),W7(m,g)||(c=!0),h.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:u,hasLayoutChanged:a,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Bq(e){fa.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vq(e){e.clearSnapshot()}function cS(e){e.clearMeasurements()}function Uq(e){e.isLayoutDirty=!1}function Hq(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Wq(e){e.resolveTargetDelta()}function qq(e){e.calcProjection()}function Kq(e){e.resetRotation()}function Gq(e){e.removeLeadSnapshot()}function fS(e,t,r){e.translate=Cr(t.translate,0,r),e.scale=Cr(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function hS(e,t,r,n){e.min=Cr(t.min,r.min,n),e.max=Cr(t.max,r.max,n)}function Xq(e,t,r,n){hS(e.x,t.x,r.x,n),hS(e.y,t.y,r.y,n)}function Yq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Zq={duration:.45,ease:[.4,0,.1,1]},pS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),mS=pS("applewebkit/")&&!pS("chrome/")?Math.round:Mr;function gS(e){e.min=mS(e.min),e.max=mS(e.max)}function Qq(e){gS(e.x),gS(e.y)}function K7(e,t,r){return e==="position"||e==="preserve-aspect"&&!gy(sS(t),sS(r),.2)}const Jq=q7({attachResizeListener:(e,t)=>No(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),y1={current:void 0},G7=q7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!y1.current){const e=new Jq({});e.mount(window),e.setOptions({layoutScroll:!0}),y1.current=e}return y1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),eK={pan:{Feature:mq},drag:{Feature:pq,ProjectionNode:G7,MeasureLayout:z7}},tK=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rK(e){const t=tK.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function wy(e,t,r=1){const[n,i]=rK(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const s=o.trim();return O7(s)?parseFloat(s):s}else return uy(i)?wy(i,t,r+1):i}function nK(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const o=i.get();if(!uy(o))return;const s=wy(o,n);s&&i.set(s)});for(const i in t){const o=t[i];if(!uy(o))continue;const s=wy(o,n);s&&(t[i]=s,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}const iK=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),X7=e=>iK.has(e),oK=e=>Object.keys(e).some(X7),vS=e=>e===Ya||e===mt,yS=(e,t)=>parseFloat(e.split(", ")[t]),bS=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return yS(i[1],t);{const o=n.match(/^matrix\((.+)\)$/);return o?yS(o[1],e):0}},sK=new Set(["x","y","z"]),aK=af.filter(e=>!sK.has(e));function lK(e){const t=[];return aK.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const gu={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:bS(4,13),y:bS(5,14)};gu.translateX=gu.x;gu.translateY=gu.y;const uK=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(a=>{u[a]=gu[a](n,o)}),t.render();const l=t.measureViewportBox();return r.forEach(a=>{const c=t.getValue(a);c&&c.jump(u[a]),e[a]=gu[a](l,o)}),e},cK=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(X7);let o=[],s=!1;const u=[];if(i.forEach(l=>{const a=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],h=mc(c);const f=t[l];let d;if(Xp(f)){const m=f.length,g=f[0]===null?1:0;c=f[g],h=mc(c);for(let p=g;p=0?window.pageYOffset:null,a=uK(t,e,u);return o.length&&o.forEach(([c,h])=>{e.getValue(c).set(h)}),e.render(),m0&&l!==null&&window.scrollTo({top:l}),{target:a,transitionEnd:n}}else return{target:t,transitionEnd:n}};function dK(e,t,r,n){return oK(t)?cK(e,t,r,n):{target:t,transitionEnd:n}}const fK=(e,t,r,n)=>{const i=nK(e,t,n);return t=i.target,n=i.transitionEnd,dK(e,t,r,n)},_y={current:null},Y7={current:!1};function hK(){if(Y7.current=!0,!!m0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_y.current=e.matches;e.addListener(t),t()}else _y.current=!1}function pK(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],s=r[i];if(zn(o))e.addValue(i,o),Jp(n)&&n.add(i);else if(zn(s))e.addValue(i,mu(o,{owner:e})),Jp(n)&&n.remove(i);else if(s!==o)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(o)}else{const u=e.getStaticValue(i);e.addValue(i,mu(u!==void 0?u:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const wS=new WeakMap,Z7=Object.keys(Ld),mK=Z7.length,_S=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],gK=$2.length;class vK{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>hr.render(this.render,!1,!0);const{latestValues:u,renderState:l}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=v0(r),this.isVariantNode=jC(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:a,...c}=this.scrapeMotionValuesFromProps(r,{});for(const h in c){const f=c[h];u[h]!==void 0&&zn(f)&&(f.set(u[h],!1),Jp(a)&&a.add(h))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,wS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Y7.current||hK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_y.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wS.delete(this.current),this.projection&&this.projection.unmount(),Qo(this.notifyUpdate),Qo(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=Xa.has(t),i=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&hr.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,o){let s,u;for(let l=0;lthis.scheduleRender(),animationType:typeof a=="string"?a:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:d})}return u}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<_S.length;n++){const i=_S[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=pK(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=mu(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=D2(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!zn(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new q2),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Q7 extends vK{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},o){let s=RW(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),s&&(s=i(s))),o){MW(this,n,s);const u=fK(this,n,s,r);r=u.transitionEnd,n=u.target}return{transition:t,transitionEnd:r,...n}}}function yK(e){return window.getComputedStyle(e)}class bK extends Q7{readValueFromInstance(t,r){if(Xa.has(r)){const n=V2(r);return n&&n.default||0}else{const n=yK(t),i=(LC(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return B7(t,r)}build(t,r,n,i){O2(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return N2(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zn(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){WC(t,r,n,i)}}class wK extends Q7{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Xa.has(r)){const n=V2(r);return n&&n.default||0}return r=qC.has(r)?r:j2(r),t.getAttribute(r)}measureInstanceViewportBox(){return Fr()}scrapeMotionValuesFromProps(t,r){return GC(t,r)}build(t,r,n,i){I2(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){KC(t,r,n,i)}mount(t){this.isSVGTag=R2(t.tagName),super.mount(t)}}const _K=(e,t)=>P2(e)?new wK(t,{enableHardwareAcceleration:!1}):new bK(t,{enableHardwareAcceleration:!0}),xK={layout:{ProjectionNode:G7,MeasureLayout:z7}},SK={...GW,...pH,...eK,...xK},kK=SU((e,t)=>tH(e,t,SK,_K));function J7(){const e=G.useRef(!1);return E2(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function CK(){const e=J7(),[t,r]=G.useState(0),n=G.useCallback(()=>{e.current&&r(t+1)},[t]);return[G.useCallback(()=>hr.postRender(n),[n]),t]}class EK extends G.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function TK({children:e,isPresent:t}){const r=G.useId(),n=G.useRef(null),i=G.useRef({width:0,height:0,top:0,left:0});return G.useInsertionEffect(()=>{const{width:o,height:s,top:u,left:l}=i.current;if(t||!n.current||!o||!s)return;n.current.dataset.motionPopId=r;const a=document.createElement("style");return document.head.appendChild(a),a.sheet&&a.sheet.insertRule(` + )`;return{...!n&&i&&o,...n?{bgImage:u}:{bgColor:s}}},zF={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},VF=e=>({bg:st("gray.100","whiteAlpha.300")(e)}),UF=e=>({transitionProperty:"common",transitionDuration:"slow",...BF(e)}),HF=Ic(e=>({label:zF,filledTrack:UF(e),track:VF(e)})),WF={xs:Ic({track:{h:"1"}}),sm:Ic({track:{h:"2"}}),md:Ic({track:{h:"3"}}),lg:Ic({track:{h:"4"}})},qF=LF({sizes:WF,baseStyle:HF,defaultProps:{size:"md",colorScheme:"blue"}}),KF=e=>typeof e=="function";function En(e,...t){return KF(e)?e(...t):e}var{definePartsStyle:Yh,defineMultiStyleConfig:GF}=pr(BN.keys),Xc=lt("checkbox-size"),XF=e=>{const{colorScheme:t}=e;return{w:Xc.reference,h:Xc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:st(`${t}.500`,`${t}.200`)(e),borderColor:st(`${t}.500`,`${t}.200`)(e),color:st("white","gray.900")(e),_hover:{bg:st(`${t}.600`,`${t}.300`)(e),borderColor:st(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:st("gray.200","transparent")(e),bg:st("gray.200","whiteAlpha.300")(e),color:st("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:st(`${t}.500`,`${t}.200`)(e),borderColor:st(`${t}.500`,`${t}.200`)(e),color:st("white","gray.900")(e)},_disabled:{bg:st("gray.100","whiteAlpha.100")(e),borderColor:st("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:st("red.500","red.300")(e)}}},YF={_disabled:{cursor:"not-allowed"}},ZF={userSelect:"none",_disabled:{opacity:.4}},QF={transitionProperty:"transform",transitionDuration:"normal"},JF=Yh(e=>({icon:QF,container:YF,control:En(XF,e),label:ZF})),eL={sm:Yh({control:{[Xc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Yh({control:{[Xc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Yh({control:{[Xc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Hp=GF({baseStyle:JF,sizes:eL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tL,definePartsStyle:Zh}=pr(QN.keys),rL=e=>{var t;const r=(t=En(Hp.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},nL=Zh(e=>{var t,r,n,i;return{label:(r=(t=Hp).baseStyle)==null?void 0:r.call(t,e).label,container:(i=(n=Hp).baseStyle)==null?void 0:i.call(n,e).container,control:rL(e)}}),iL={md:Zh({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Zh({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Zh({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},oL=tL({baseStyle:nL,sizes:iL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:sL,definePartsStyle:aL}=pr(JN.keys),rh=lt("select-bg"),e4,lL={...(e4=Jt.baseStyle)==null?void 0:e4.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:rh.reference,[rh.variable]:"colors.white",_dark:{[rh.variable]:"colors.gray.700"},"> option, > optgroup":{bg:rh.reference}},uL={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},cL=aL({field:lL,icon:uL}),nh={paddingInlineEnd:"8"},t4,r4,n4,i4,o4,s4,a4,l4,dL={lg:{...(t4=Jt.sizes)==null?void 0:t4.lg,field:{...(r4=Jt.sizes)==null?void 0:r4.lg.field,...nh}},md:{...(n4=Jt.sizes)==null?void 0:n4.md,field:{...(i4=Jt.sizes)==null?void 0:i4.md.field,...nh}},sm:{...(o4=Jt.sizes)==null?void 0:o4.sm,field:{...(s4=Jt.sizes)==null?void 0:s4.sm.field,...nh}},xs:{...(a4=Jt.sizes)==null?void 0:a4.xs,field:{...(l4=Jt.sizes)==null?void 0:l4.xs.field,...nh},icon:{insetEnd:"1"}}},fL=sL({baseStyle:cL,sizes:dL,variants:Jt.variants,defaultProps:Jt.defaultProps}),Kg=lt("skeleton-start-color"),Gg=lt("skeleton-end-color"),hL={[Kg.variable]:"colors.gray.100",[Gg.variable]:"colors.gray.400",_dark:{[Kg.variable]:"colors.gray.800",[Gg.variable]:"colors.gray.600"},background:Kg.reference,borderColor:Gg.reference,opacity:.7,borderRadius:"sm"},pL={baseStyle:hL},Xg=lt("skip-link-bg"),mL={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Xg.variable]:"colors.white",_dark:{[Xg.variable]:"colors.gray.700"},bg:Xg.reference}},gL={baseStyle:mL},{defineMultiStyleConfig:vL,definePartsStyle:f0}=pr(eD.keys),Rd=lt("slider-thumb-size"),jd=lt("slider-track-size"),Ts=lt("slider-bg"),yL=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},..._2({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},bL=e=>({..._2({orientation:e.orientation,horizontal:{h:jd.reference},vertical:{w:jd.reference}}),overflow:"hidden",borderRadius:"sm",[Ts.variable]:"colors.gray.200",_dark:{[Ts.variable]:"colors.whiteAlpha.200"},_disabled:{[Ts.variable]:"colors.gray.300",_dark:{[Ts.variable]:"colors.whiteAlpha.300"}},bg:Ts.reference}),wL=e=>{const{orientation:t}=e;return{..._2({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Rd.reference,h:Rd.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},_L=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ts.variable]:`colors.${t}.500`,_dark:{[Ts.variable]:`colors.${t}.200`},bg:Ts.reference}},xL=f0(e=>({container:yL(e),track:bL(e),thumb:wL(e),filledTrack:_L(e)})),SL=f0({container:{[Rd.variable]:"sizes.4",[jd.variable]:"sizes.1"}}),kL=f0({container:{[Rd.variable]:"sizes.3.5",[jd.variable]:"sizes.1"}}),CL=f0({container:{[Rd.variable]:"sizes.2.5",[jd.variable]:"sizes.0.5"}}),EL={lg:SL,md:kL,sm:CL},TL=vL({baseStyle:xL,sizes:EL,defaultProps:{size:"md",colorScheme:"blue"}}),va=Kr("spinner-size"),$L={width:[va.reference],height:[va.reference]},AL={xs:{[va.variable]:"sizes.3"},sm:{[va.variable]:"sizes.4"},md:{[va.variable]:"sizes.6"},lg:{[va.variable]:"sizes.8"},xl:{[va.variable]:"sizes.12"}},PL={baseStyle:$L,sizes:AL,defaultProps:{size:"md"}},{defineMultiStyleConfig:OL,definePartsStyle:pC}=pr(tD.keys),ML={fontWeight:"medium"},IL={opacity:.8,marginBottom:"2"},RL={verticalAlign:"baseline",fontWeight:"semibold"},jL={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},NL=pC({container:{},label:ML,helpText:IL,number:RL,icon:jL}),DL={md:pC({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},FL=OL({baseStyle:NL,sizes:DL,defaultProps:{size:"md"}}),Yg=lt("kbd-bg"),LL={[Yg.variable]:"colors.gray.100",_dark:{[Yg.variable]:"colors.whiteAlpha.100"},bg:Yg.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},BL={baseStyle:LL},zL={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},VL={baseStyle:zL},{defineMultiStyleConfig:UL,definePartsStyle:HL}=pr(qN.keys),WL={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},qL=HL({icon:WL}),KL=UL({baseStyle:qL}),{defineMultiStyleConfig:GL,definePartsStyle:XL}=pr(KN.keys),so=lt("menu-bg"),Zg=lt("menu-shadow"),YL={[so.variable]:"#fff",[Zg.variable]:"shadows.sm",_dark:{[so.variable]:"colors.gray.700",[Zg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:so.reference,boxShadow:Zg.reference},ZL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[so.variable]:"colors.gray.100",_dark:{[so.variable]:"colors.whiteAlpha.100"}},_active:{[so.variable]:"colors.gray.200",_dark:{[so.variable]:"colors.whiteAlpha.200"}},_expanded:{[so.variable]:"colors.gray.100",_dark:{[so.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:so.reference},QL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},JL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},eB={opacity:.6},tB={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},rB={transitionProperty:"common",transitionDuration:"normal"},nB=XL({button:rB,list:YL,item:ZL,groupTitle:QL,icon:JL,command:eB,divider:tB}),iB=GL({baseStyle:nB}),{defineMultiStyleConfig:oB,definePartsStyle:oy}=pr(GN.keys),Qg=lt("modal-bg"),Jg=lt("modal-shadow"),sB={bg:"blackAlpha.600",zIndex:"modal"},aB=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},lB=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Qg.variable]:"colors.white",[Jg.variable]:"shadows.lg",_dark:{[Qg.variable]:"colors.gray.700",[Jg.variable]:"shadows.dark-lg"},bg:Qg.reference,boxShadow:Jg.reference}},uB={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},cB={position:"absolute",top:"2",insetEnd:"3"},dB=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},fB={px:"6",py:"4"},hB=oy(e=>({overlay:sB,dialogContainer:En(aB,e),dialog:En(lB,e),header:uB,closeButton:cB,body:En(dB,e),footer:fB}));function Pi(e){return oy(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var pB={xs:Pi("xs"),sm:Pi("sm"),md:Pi("md"),lg:Pi("lg"),xl:Pi("xl"),"2xl":Pi("2xl"),"3xl":Pi("3xl"),"4xl":Pi("4xl"),"5xl":Pi("5xl"),"6xl":Pi("6xl"),full:Pi("full")},mB=oB({baseStyle:hB,sizes:pB,defaultProps:{size:"md"}}),{defineMultiStyleConfig:gB,definePartsStyle:mC}=pr(XN.keys),S2=Kr("number-input-stepper-width"),gC=Kr("number-input-input-padding"),vB=Oo(S2).add("0.5rem").toString(),e1=Kr("number-input-bg"),t1=Kr("number-input-color"),r1=Kr("number-input-border-color"),yB={[S2.variable]:"sizes.6",[gC.variable]:vB},bB=e=>{var t,r;return(r=(t=En(Jt.baseStyle,e))==null?void 0:t.field)!=null?r:{}},wB={width:S2.reference},_B={borderStart:"1px solid",borderStartColor:r1.reference,color:t1.reference,bg:e1.reference,[t1.variable]:"colors.chakra-body-text",[r1.variable]:"colors.chakra-border-color",_dark:{[t1.variable]:"colors.whiteAlpha.800",[r1.variable]:"colors.whiteAlpha.300"},_active:{[e1.variable]:"colors.gray.200",_dark:{[e1.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},xB=mC(e=>{var t;return{root:yB,field:(t=En(bB,e))!=null?t:{},stepperGroup:wB,stepper:_B}});function ih(e){var t,r,n;const i=(t=Jt.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=i.field)==null?void 0:r.fontSize)!=null?n:"md",u=uC.fontSizes[s];return mC({field:{...i.field,paddingInlineEnd:gC.reference,verticalAlign:"top"},stepper:{fontSize:Oo(u).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var SB={xs:ih("xs"),sm:ih("sm"),md:ih("md"),lg:ih("lg")},kB=gB({baseStyle:xB,sizes:SB,variants:Jt.variants,defaultProps:Jt.defaultProps}),u4,CB={...(u4=Jt.baseStyle)==null?void 0:u4.field,textAlign:"center"},EB={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},c4,d4,TB={outline:e=>{var t,r,n;return(n=(r=En((t=Jt.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=En((t=Jt.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=En((t=Jt.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(d4=(c4=Jt.variants)==null?void 0:c4.unstyled.field)!=null?d4:{}},$B={baseStyle:CB,sizes:EB,variants:TB,defaultProps:Jt.defaultProps},{defineMultiStyleConfig:AB,definePartsStyle:PB}=pr(YN.keys),oh=Kr("popper-bg"),OB=Kr("popper-arrow-bg"),f4=Kr("popper-arrow-shadow-color"),MB={zIndex:10},IB={[oh.variable]:"colors.white",bg:oh.reference,[OB.variable]:oh.reference,[f4.variable]:"colors.gray.200",_dark:{[oh.variable]:"colors.gray.700",[f4.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},RB={px:3,py:2,borderBottomWidth:"1px"},jB={px:3,py:2},NB={px:3,py:2,borderTopWidth:"1px"},DB={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},FB=PB({popper:MB,content:IB,header:RB,body:jB,footer:NB,closeButton:DB}),LB=AB({baseStyle:FB}),{definePartsStyle:sy,defineMultiStyleConfig:BB}=pr(zN.keys),n1=lt("drawer-bg"),i1=lt("drawer-box-shadow");function ul(e){return sy(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var zB={bg:"blackAlpha.600",zIndex:"modal"},VB={display:"flex",zIndex:"modal",justifyContent:"center"},UB=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[n1.variable]:"colors.white",[i1.variable]:"shadows.lg",_dark:{[n1.variable]:"colors.gray.700",[i1.variable]:"shadows.dark-lg"},bg:n1.reference,boxShadow:i1.reference}},HB={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},WB={position:"absolute",top:"2",insetEnd:"3"},qB={px:"6",py:"2",flex:"1",overflow:"auto"},KB={px:"6",py:"4"},GB=sy(e=>({overlay:zB,dialogContainer:VB,dialog:En(UB,e),header:HB,closeButton:WB,body:qB,footer:KB})),XB={xs:ul("xs"),sm:ul("md"),md:ul("lg"),lg:ul("2xl"),xl:ul("4xl"),full:ul("full")},YB=BB({baseStyle:GB,sizes:XB,defaultProps:{size:"xs"}}),{definePartsStyle:ZB,defineMultiStyleConfig:QB}=pr(VN.keys),JB={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},ez={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},tz={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},rz=ZB({preview:JB,input:ez,textarea:tz}),nz=QB({baseStyle:rz}),{definePartsStyle:iz,defineMultiStyleConfig:oz}=pr(UN.keys),Zl=lt("form-control-color"),sz={marginStart:"1",[Zl.variable]:"colors.red.500",_dark:{[Zl.variable]:"colors.red.300"},color:Zl.reference},az={mt:"2",[Zl.variable]:"colors.gray.600",_dark:{[Zl.variable]:"colors.whiteAlpha.600"},color:Zl.reference,lineHeight:"normal",fontSize:"sm"},lz=iz({container:{width:"100%",position:"relative"},requiredIndicator:sz,helperText:az}),uz=oz({baseStyle:lz}),{definePartsStyle:cz,defineMultiStyleConfig:dz}=pr(HN.keys),Ql=lt("form-error-color"),fz={[Ql.variable]:"colors.red.500",_dark:{[Ql.variable]:"colors.red.300"},color:Ql.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},hz={marginEnd:"0.5em",[Ql.variable]:"colors.red.500",_dark:{[Ql.variable]:"colors.red.300"},color:Ql.reference},pz=cz({text:fz,icon:hz}),mz=dz({baseStyle:pz}),gz={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},vz={baseStyle:gz},yz={fontFamily:"heading",fontWeight:"bold"},bz={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},wz={baseStyle:yz,sizes:bz,defaultProps:{size:"xl"}},{defineMultiStyleConfig:_z,definePartsStyle:xz}=pr(LN.keys),o1=lt("breadcrumb-link-decor"),Sz={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:o1.reference,[o1.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[o1.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},kz=xz({link:Sz}),Cz=_z({baseStyle:kz}),Ez={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},vC=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:st("gray.800","whiteAlpha.900")(e),_hover:{bg:st("gray.100","whiteAlpha.200")(e)},_active:{bg:st("gray.200","whiteAlpha.300")(e)}};const n=hu(`${t}.200`,.12)(r),i=hu(`${t}.200`,.24)(r);return{color:st(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:st(`${t}.50`,n)(e)},_active:{bg:st(`${t}.100`,i)(e)}}},Tz=e=>{const{colorScheme:t}=e,r=st("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...En(vC,e)}},$z={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Az=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=st("gray.100","whiteAlpha.200")(e);return{bg:l,color:st("gray.800","whiteAlpha.900")(e),_hover:{bg:st("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:st("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:s=`${r}.700`}=(t=$z[r])!=null?t:{},u=st(n,`${r}.200`)(e);return{bg:u,color:st(i,"gray.800")(e),_hover:{bg:st(o,`${r}.300`)(e),_disabled:{bg:u}},_active:{bg:st(s,`${r}.400`)(e)}}},Pz=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:st(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:st(`${t}.700`,`${t}.500`)(e)}}},Oz={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Mz={ghost:vC,outline:Tz,solid:Az,link:Pz,unstyled:Oz},Iz={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},Rz={baseStyle:Ez,variants:Mz,sizes:Iz,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Oa,defineMultiStyleConfig:jz}=pr(sD.keys),Wp=lt("card-bg"),Bo=lt("card-padding"),yC=lt("card-shadow"),Qh=lt("card-radius"),bC=lt("card-border-width","0"),wC=lt("card-border-color"),Nz=Oa({container:{[Wp.variable]:"colors.chakra-body-bg",backgroundColor:Wp.reference,boxShadow:yC.reference,borderRadius:Qh.reference,color:"chakra-body-text",borderWidth:bC.reference,borderColor:wC.reference},body:{padding:Bo.reference,flex:"1 1 0%"},header:{padding:Bo.reference},footer:{padding:Bo.reference}}),Dz={sm:Oa({container:{[Qh.variable]:"radii.base",[Bo.variable]:"space.3"}}),md:Oa({container:{[Qh.variable]:"radii.md",[Bo.variable]:"space.5"}}),lg:Oa({container:{[Qh.variable]:"radii.xl",[Bo.variable]:"space.7"}})},Fz={elevated:Oa({container:{[yC.variable]:"shadows.base",_dark:{[Wp.variable]:"colors.gray.700"}}}),outline:Oa({container:{[bC.variable]:"1px",[wC.variable]:"colors.chakra-border-color"}}),filled:Oa({container:{[Wp.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Bo.variable]:0},header:{[Bo.variable]:0},footer:{[Bo.variable]:0}}},Lz=jz({baseStyle:Nz,variants:Fz,sizes:Dz,defaultProps:{variant:"elevated",size:"md"}}),Yc=Kr("close-button-size"),pc=Kr("close-button-bg"),Bz={w:[Yc.reference],h:[Yc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[pc.variable]:"colors.blackAlpha.100",_dark:{[pc.variable]:"colors.whiteAlpha.100"}},_active:{[pc.variable]:"colors.blackAlpha.200",_dark:{[pc.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:pc.reference},zz={lg:{[Yc.variable]:"sizes.10",fontSize:"md"},md:{[Yc.variable]:"sizes.8",fontSize:"xs"},sm:{[Yc.variable]:"sizes.6",fontSize:"2xs"}},Vz={baseStyle:Bz,sizes:zz,defaultProps:{size:"md"}},{variants:Uz,defaultProps:Hz}=Gc,Wz={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Dr.bg.reference,color:Dr.color.reference,boxShadow:Dr.shadow.reference},qz={baseStyle:Wz,variants:Uz,defaultProps:Hz},Kz={w:"100%",mx:"auto",maxW:"prose",px:"4"},Gz={baseStyle:Kz},Xz={opacity:.6,borderColor:"inherit"},Yz={borderStyle:"solid"},Zz={borderStyle:"dashed"},Qz={solid:Yz,dashed:Zz},Jz={baseStyle:Xz,variants:Qz,defaultProps:{variant:"solid"}},{definePartsStyle:eV,defineMultiStyleConfig:tV}=pr(NN.keys),rV={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},nV={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},iV={pt:"2",px:"4",pb:"5"},oV={fontSize:"1.25em"},sV=eV({container:rV,button:nV,panel:iV,icon:oV}),aV=tV({baseStyle:sV}),{definePartsStyle:nf,defineMultiStyleConfig:lV}=pr(DN.keys),Zn=lt("alert-fg"),Zo=lt("alert-bg"),uV=nf({container:{bg:Zo.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Zn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Zn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function k2(e){const{theme:t,colorScheme:r}=e,n=hu(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var cV=nf(e=>{const{colorScheme:t}=e,r=k2(e);return{container:{[Zn.variable]:`colors.${t}.600`,[Zo.variable]:r.light,_dark:{[Zn.variable]:`colors.${t}.200`,[Zo.variable]:r.dark}}}}),dV=nf(e=>{const{colorScheme:t}=e,r=k2(e);return{container:{[Zn.variable]:`colors.${t}.600`,[Zo.variable]:r.light,_dark:{[Zn.variable]:`colors.${t}.200`,[Zo.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Zn.reference}}}),fV=nf(e=>{const{colorScheme:t}=e,r=k2(e);return{container:{[Zn.variable]:`colors.${t}.600`,[Zo.variable]:r.light,_dark:{[Zn.variable]:`colors.${t}.200`,[Zo.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Zn.reference}}}),hV=nf(e=>{const{colorScheme:t}=e;return{container:{[Zn.variable]:"colors.white",[Zo.variable]:`colors.${t}.600`,_dark:{[Zn.variable]:"colors.gray.900",[Zo.variable]:`colors.${t}.200`},color:Zn.reference}}}),pV={subtle:cV,"left-accent":dV,"top-accent":fV,solid:hV},mV=lV({baseStyle:uV,variants:pV,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:_C,defineMultiStyleConfig:gV}=pr(FN.keys),Jl=lt("avatar-border-color"),Zc=lt("avatar-bg"),Nd=lt("avatar-font-size"),pu=lt("avatar-size"),vV={borderRadius:"full",border:"0.2em solid",borderColor:Jl.reference,[Jl.variable]:"white",_dark:{[Jl.variable]:"colors.gray.800"}},yV={bg:Zc.reference,fontSize:Nd.reference,width:pu.reference,height:pu.reference,lineHeight:"1",[Zc.variable]:"colors.gray.200",_dark:{[Zc.variable]:"colors.whiteAlpha.400"}},bV=e=>{const{name:t,theme:r}=e,n=t?ED({string:t}):"colors.gray.400",i=kD(n)(r);let o="white";return i||(o="gray.800"),{bg:Zc.reference,fontSize:Nd.reference,color:o,borderColor:Jl.reference,verticalAlign:"top",width:pu.reference,height:pu.reference,"&:not([data-loaded])":{[Zc.variable]:n},[Jl.variable]:"colors.white",_dark:{[Jl.variable]:"colors.gray.800"}}},wV={fontSize:Nd.reference,lineHeight:"1"},_V=_C(e=>({badge:En(vV,e),excessLabel:En(yV,e),container:En(bV,e),label:wV}));function ps(e){const t=e!=="100%"?dC[e]:void 0;return _C({container:{[pu.variable]:t??e,[Nd.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[pu.variable]:t??e,[Nd.variable]:`calc(${t??e} / 2.5)`}})}var xV={"2xs":ps(4),xs:ps(6),sm:ps(8),md:ps(12),lg:ps(16),xl:ps(24),"2xl":ps(32),full:ps("100%")},SV=gV({baseStyle:_V,sizes:xV,defaultProps:{size:"md"}}),kV={Accordion:aV,Alert:mV,Avatar:SV,Badge:Gc,Breadcrumb:Cz,Button:Rz,Checkbox:Hp,CloseButton:Vz,Code:qz,Container:Gz,Divider:Jz,Drawer:YB,Editable:nz,Form:uz,FormError:mz,FormLabel:vz,Heading:wz,Input:Jt,Kbd:BL,Link:VL,List:KL,Menu:iB,Modal:mB,NumberInput:kB,PinInput:$B,Popover:LB,Progress:qF,Radio:oL,Select:fL,Skeleton:pL,SkipLink:gL,Slider:TL,Spinner:PL,Stat:FL,Switch:VD,Table:XD,Tabs:cF,Tag:SF,Textarea:jF,Tooltip:FF,Card:Lz,Stepper:jN},CV={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},EV={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},TV="ltr",$V={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},AV={semanticTokens:CV,direction:TV,...MN,components:kV,styles:EV,config:$V};function PV(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function OV(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,o,s)=>{if(typeof n>"u")return e(n,i,o);t.has(n)||t.set(n,new Map);const u=t.get(n);if(u.has(i))return u.get(i);const l=e(n,i,o,s);return u.set(i,l),l}},xC=MV(OV);function SC(e,t){const r={};return Object.keys(e).forEach(n=>{const i=e[n];t(i,n,e)&&(r[n]=i)}),r}var kC=e=>SC(e,t=>t!=null);function IV(e){return typeof e=="function"}function CC(e,...t){return IV(e)?e(...t):e}const EC=1/60*1e3,RV=typeof performance<"u"?()=>performance.now():()=>Date.now(),TC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(RV()),EC);function jV(e){let t=[],r=[],n=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(l,a=!1,c=!1)=>{const h=c&&i,f=h?t:r;return a&&s.add(l),f.indexOf(l)===-1&&(f.push(l),h&&i&&(n=t.length)),l},cancel:l=>{const a=r.indexOf(l);a!==-1&&r.splice(a,1),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let a=0;a(e[t]=jV(()=>Dd=!0),e),{}),DV=of.reduce((e,t)=>{const r=h0[t];return e[t]=(n,i=!1,o=!1)=>(Dd||BV(),r.schedule(n,i,o)),e},{}),FV=of.reduce((e,t)=>(e[t]=h0[t].cancel,e),{});of.reduce((e,t)=>(e[t]=()=>h0[t].process(eu),e),{});const LV=e=>h0[e].process(eu),$C=e=>{Dd=!1,eu.delta=ay?EC:Math.max(Math.min(e-eu.timestamp,NV),1),eu.timestamp=e,ly=!0,of.forEach(LV),ly=!1,Dd&&(ay=!1,TC($C))},BV=()=>{Dd=!0,ay=!0,ly||TC($C)},h4=()=>eu;var zV=typeof Element<"u",VV=typeof Map=="function",UV=typeof Set=="function",HV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Jh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Jh(e[n],t[n]))return!1;return!0}var o;if(VV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!Jh(n.value[1],t.get(n.value[0])))return!1;return!0}if(UV&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(HV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(zV&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!Jh(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var WV=function(t,r){try{return Jh(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const qV=ir(WV);function AC(e,t={}){var r;const{styleConfig:n,...i}=t,{theme:o,colorMode:s}=HR(),u=e?xC(o,`components.${e}`):void 0,l=n||u,a=fo({theme:o,colorMode:s},(r=l==null?void 0:l.defaultProps)!=null?r:{},kC(PV(i,["children"]))),c=G.useRef({});if(l){const f=lN(l)(a);qV(c.current,f)||(c.current=f)}return c.current}function Xi(e,t={}){return AC(e,t)}function Qr(e,t={}){return AC(e,t)}var KV=new Set([...Yj,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),GV=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function PC(e){return GV.has(e)||!KV.has(e)}function XV(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(i in r&&delete r[i],r[i]=n[i]);return r}function OC(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var YV=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,ZV=L9(function(e){return YV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),QV=ZV,JV=function(t){return t!=="theme"},p4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?QV:JV},m4=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},eU=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return c2(r,n,i),G9(function(){return d2(r,n,i)}),null},tU=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var u=m4(t,r,n),l=u||p4(i),a=!l("as");return function(){var c=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)h.push.apply(h,c);else{h.push(c[0][0]);for(var f=c.length,d=1;dt=>{const{theme:r,css:n,__css:i,sx:o,...s}=t,u=SC(s,(h,f)=>Qj(f)),l=CC(e,t),a=XV({},i,l,kC(u),o),c=lC(a)(t.theme);return n?[c,n]:c};function s1(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=PC);const i=iU({baseStyle:r}),o=nU(e,n)(i);return vt.forwardRef(function(l,a){const{colorMode:c,forced:h}=l0();return vt.createElement(o,{ref:a,"data-theme":h?c:void 0,...l})})}function oU(){const e=new Map;return new Proxy(s1,{apply(t,r,n){return s1(...n)},get(t,r){return e.has(r)||e.set(r,s1(r)),e.get(r)}})}var et=oU();function wt(e){return G.forwardRef(e)}function sU(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,i=G.createContext(void 0);i.displayName=n;function o(){var s;const u=G.useContext(i);if(!u&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,o),l}return u}return[i.Provider,o,i]}function aU(e){const{cssVarsRoot:t,theme:r,children:n}=e,i=G.useMemo(()=>Kj(r),[r]);return X.jsxs(CR,{theme:i,children:[X.jsx(lU,{root:t}),n]})}function lU({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return X.jsx(s0,{styles:r=>({[t]:r.__cssVars})})}sU({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function uU(){const{colorMode:e}=l0();return X.jsx(s0,{styles:t=>{const r=xC(t,"styles.global"),n=CC(r,{theme:t,colorMode:e});return n?lC(n)(t):void 0}})}var C2=G.createContext({getDocument(){return document},getWindow(){return window}});C2.displayName="EnvironmentContext";function cU({defer:e}={}){const[,t]=G.useReducer(r=>r+1,0);return Fo(()=>{e&&t()},[e]),G.useContext(C2)}function MC(e){const{children:t,environment:r,disabled:n}=e,i=G.useRef(null),o=G.useMemo(()=>r||{getDocument:()=>{var u,l;return(l=(u=i.current)==null?void 0:u.ownerDocument)!=null?l:document},getWindow:()=>{var u,l;return(l=(u=i.current)==null?void 0:u.ownerDocument.defaultView)!=null?l:window}},[r]),s=!n||!r;return X.jsxs(C2.Provider,{value:o,children:[t,s&&X.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}MC.displayName="EnvironmentProvider";var dU=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:s={},environment:u,cssVarsRoot:l,disableEnvironment:a,disableGlobalStyle:c}=e,h=X.jsx(MC,{environment:u,disabled:a,children:t});return X.jsx(aU,{theme:s,cssVarsRoot:l,children:X.jsxs(eC,{colorModeManager:r,options:s.config,children:[o?X.jsx(OR,{scope:i}):X.jsx(PR,{}),!c&&X.jsx(uU,{}),n?X.jsx(Q9,{zIndex:n,children:h}):h]})})},fU=(e,t)=>e.find(r=>r.id===t);function v4(e,t){const r=IC(e,t),n=r?e[r].findIndex(i=>i.id===t):-1;return{position:r,index:n}}function IC(e,t){for(const[r,n]of Object.entries(e))if(fU(n,t))return r}function hU(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function pU(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:i,right:o,left:s}}function Or(e,t=[]){const r=G.useRef(e);return G.useEffect(()=>{r.current=e}),G.useCallback((...n)=>{var i;return(i=r.current)==null?void 0:i.call(r,...n)},t)}function mU(e,t){const r=Or(e);G.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Fa(e,t){const r=G.useRef(!1),n=G.useRef(!1);G.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),G.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const RC=G.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),p0=G.createContext({}),sf=G.createContext(null),m0=typeof document<"u",E2=m0?G.useLayoutEffect:G.useEffect,jC=G.createContext({strict:!1});function gU(e,t,r,n){const{visualElement:i}=G.useContext(p0),o=G.useContext(jC),s=G.useContext(sf),u=G.useContext(RC).reducedMotion,l=G.useRef();n=n||o.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const a=l.current;G.useInsertionEffect(()=>{a&&a.update(r,s)});const c=G.useRef(!!window.HandoffAppearAnimations);return E2(()=>{a&&(a.render(),c.current&&a.animationState&&a.animationState.animateChanges())}),G.useEffect(()=>{a&&(a.updateFeatures(),!c.current&&a.animationState&&a.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),a}function Dl(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function vU(e,t,r){return G.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Dl(r)&&(r.current=n))},[t])}function Fd(e){return typeof e=="string"||Array.isArray(e)}function g0(e){return typeof e=="object"&&typeof e.start=="function"}const T2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$2=["initial",...T2];function v0(e){return g0(e.animate)||$2.some(t=>Fd(e[t]))}function NC(e){return!!(v0(e)||e.variants)}function yU(e,t){if(v0(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Fd(r)?r:void 0,animate:Fd(n)?n:void 0}}return e.inherit!==!1?t:{}}function bU(e){const{initial:t,animate:r}=yU(e,G.useContext(p0));return G.useMemo(()=>({initial:t,animate:r}),[y4(t),y4(r)])}function y4(e){return Array.isArray(e)?e.join(" "):e}const b4={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ld={};for(const e in b4)Ld[e]={isEnabled:t=>b4[e].some(r=>!!t[r])};function wU(e){for(const t in e)Ld[t]={...Ld[t],...e[t]}}const A2=G.createContext({}),DC=G.createContext({}),_U=Symbol.for("motionComponentSymbol");function xU({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&wU(e);function o(u,l){let a;const c={...G.useContext(RC),...u,layoutId:SU(u)},{isStatic:h}=c,f=bU(u),d=n(u,h);if(!h&&m0){f.visualElement=gU(i,d,c,t);const m=G.useContext(DC),g=G.useContext(jC).strict;f.visualElement&&(a=f.visualElement.loadFeatures(c,g,e,m))}return G.createElement(p0.Provider,{value:f},a&&f.visualElement?G.createElement(a,{visualElement:f.visualElement,...c}):null,r(i,u,vU(d,f.visualElement,l),d,h,f.visualElement))}const s=G.forwardRef(o);return s[_U]=i,s}function SU({layoutId:e}){const t=G.useContext(A2).id;return t&&e!==void 0?t+"-"+e:e}function kU(e){function t(n,i={}){return xU(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const CU=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function P2(e){return typeof e!="string"||e.includes("-")?!1:!!(CU.indexOf(e)>-1||/[A-Z]/.test(e))}const Kp={};function EU(e){Object.assign(Kp,e)}const af=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xa=new Set(af);function FC(e,{layout:t,layoutId:r}){return Xa.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Kp[e]||e==="opacity")}const zn=e=>!!(e&&e.getVelocity),TU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$U=af.length;function AU(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let s=0;s<$U;s++){const u=af[s];if(e[u]!==void 0){const l=TU[u]||u;o+=`${l}(${e[u]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}const LC=e=>t=>typeof t=="string"&&t.startsWith(e),BC=LC("--"),uy=LC("var(--"),PU=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,OU=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gs=(e,t,r)=>Math.min(Math.max(r,e),t),Ya={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qc={...Ya,transform:e=>Gs(0,1,e)},sh={...Ya,default:1},Jc=e=>Math.round(e*1e5)/1e5,y0=/(-)?([\d]*\.?[\d])+/g,zC=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,MU=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function lf(e){return typeof e=="string"}const uf=e=>({test:t=>lf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bs=uf("deg"),bo=uf("%"),mt=uf("px"),IU=uf("vh"),RU=uf("vw"),w4={...bo,parse:e=>bo.parse(e)/100,transform:e=>bo.transform(e*100)},_4={...Ya,transform:Math.round},VC={borderWidth:mt,borderTopWidth:mt,borderRightWidth:mt,borderBottomWidth:mt,borderLeftWidth:mt,borderRadius:mt,radius:mt,borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomRightRadius:mt,borderBottomLeftRadius:mt,width:mt,maxWidth:mt,height:mt,maxHeight:mt,size:mt,top:mt,right:mt,bottom:mt,left:mt,padding:mt,paddingTop:mt,paddingRight:mt,paddingBottom:mt,paddingLeft:mt,margin:mt,marginTop:mt,marginRight:mt,marginBottom:mt,marginLeft:mt,rotate:bs,rotateX:bs,rotateY:bs,rotateZ:bs,scale:sh,scaleX:sh,scaleY:sh,scaleZ:sh,skew:bs,skewX:bs,skewY:bs,distance:mt,translateX:mt,translateY:mt,translateZ:mt,x:mt,y:mt,z:mt,perspective:mt,transformPerspective:mt,opacity:Qc,originX:w4,originY:w4,originZ:mt,zIndex:_4,fillOpacity:Qc,strokeOpacity:Qc,numOctaves:_4};function O2(e,t,r,n){const{style:i,vars:o,transform:s,transformOrigin:u}=e;let l=!1,a=!1,c=!0;for(const h in t){const f=t[h];if(BC(h)){o[h]=f;continue}const d=VC[h],m=OU(f,d);if(Xa.has(h)){if(l=!0,s[h]=m,!c)continue;f!==(d.default||0)&&(c=!1)}else h.startsWith("origin")?(a=!0,u[h]=m):i[h]=m}if(t.transform||(l||n?i.transform=AU(e.transform,r,c,n):i.transform&&(i.transform="none")),a){const{originX:h="50%",originY:f="50%",originZ:d=0}=u;i.transformOrigin=`${h} ${f} ${d}`}}const M2=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function UC(e,t,r){for(const n in t)!zn(t[n])&&!FC(n,r)&&(e[n]=t[n])}function jU({transformTemplate:e},t,r){return G.useMemo(()=>{const n=M2();return O2(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function NU(e,t,r){const n=e.style||{},i={};return UC(i,n,e),Object.assign(i,jU(e,t,r)),e.transformValues?e.transformValues(i):i}function DU(e,t,r){const n={},i=NU(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const FU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Gp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||FU.has(e)}let HC=e=>!Gp(e);function LU(e){e&&(HC=t=>t.startsWith("on")?!Gp(t):e(t))}try{LU(require("@emotion/is-prop-valid").default)}catch{}function BU(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(HC(i)||r===!0&&Gp(i)||!t&&!Gp(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function x4(e,t,r){return typeof e=="string"?e:mt.transform(t+r*e)}function zU(e,t,r){const n=x4(t,e.x,e.width),i=x4(r,e.y,e.height);return`${n} ${i}`}const VU={offset:"stroke-dashoffset",array:"stroke-dasharray"},UU={offset:"strokeDashoffset",array:"strokeDasharray"};function HU(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?VU:UU;e[o.offset]=mt.transform(-n);const s=mt.transform(t),u=mt.transform(r);e[o.array]=`${s} ${u}`}function I2(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...a},c,h,f){if(O2(e,a,c,f),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m,dimensions:g}=e;d.transform&&(g&&(m.transform=d.transform),delete d.transform),g&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=zU(g,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),s!==void 0&&HU(d,s,u,l,!1)}const WC=()=>({...M2(),attrs:{}}),R2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function WU(e,t,r,n){const i=G.useMemo(()=>{const o=WC();return I2(o,t,{enableHardwareAcceleration:!1},R2(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};UC(o,e.style,e),i.style={...o,...i.style}}return i}function qU(e=!1){return(r,n,i,{latestValues:o},s)=>{const l=(P2(r)?WU:DU)(n,o,s,r),c={...BU(n,typeof r=="string",e),...l,ref:i},{children:h}=n,f=G.useMemo(()=>zn(h)?h.get():h,[h]);return G.createElement(r,{...c,children:f})}}const j2=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function qC(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const KC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function GC(e,t,r,n){qC(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(KC.has(i)?i:j2(i),t.attrs[i])}function N2(e,t){const{style:r}=e,n={};for(const i in r)(zn(r[i])||t.style&&zn(t.style[i])||FC(i,e))&&(n[i]=r[i]);return n}function XC(e,t){const r=N2(e,t);for(const n in e)if(zn(e[n])||zn(t[n])){const i=af.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function D2(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function YC(e){const t=G.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xp=e=>Array.isArray(e),KU=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),GU=e=>Xp(e)?e[e.length-1]||0:e;function ep(e){const t=zn(e)?e.get():e;return KU(t)?t.toValue():t}function XU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const s={latestValues:YU(n,i,o,e),renderState:t()};return r&&(s.mount=u=>r(n,u,s)),s}const ZC=e=>(t,r)=>{const n=G.useContext(p0),i=G.useContext(sf),o=()=>XU(e,t,n,i);return r?o():YC(o)};function YU(e,t,r,n){const i={},o=n(e,{});for(const f in o)i[f]=ep(o[f]);let{initial:s,animate:u}=e;const l=v0(e),a=NC(e);t&&a&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let c=r?r.initial===!1:!1;c=c||s===!1;const h=c?u:s;return h&&typeof h!="boolean"&&!g0(h)&&(Array.isArray(h)?h:[h]).forEach(d=>{const m=D2(e,d);if(!m)return;const{transitionEnd:g,transition:p,...v}=m;for(const y in v){let b=v[y];if(Array.isArray(b)){const _=c?b.length-1:0;b=b[_]}b!==null&&(i[y]=b)}for(const y in g)i[y]=g[y]}),i}const Mr=e=>e;class S4{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function ZU(e){let t=new S4,r=new S4,n=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(l,a=!1,c=!1)=>{const h=c&&i,f=h?t:r;return a&&s.add(l),f.add(l)&&h&&i&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let a=0;a(h[f]=ZU(()=>r=!0),h),{}),s=h=>o[h].process(i),u=()=>{const h=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(h-i.timestamp,QU),1),i.timestamp=h,i.isProcessing=!0,ah.forEach(s),i.isProcessing=!1,r&&t&&(n=!1,e(u))},l=()=>{r=!0,n=!0,i.isProcessing||e(u)};return{schedule:ah.reduce((h,f)=>{const d=o[f];return h[f]=(m,g=!1,p=!1)=>(r||l(),d.schedule(m,g,p)),h},{}),cancel:h=>ah.forEach(f=>o[f].cancel(h)),state:i,steps:o}}const{schedule:hr,cancel:Qo,state:Xr,steps:a1}=JU(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mr,!0),eH={useVisualState:ZC({scrapeMotionValuesFromProps:XC,createRenderState:WC,onMount:(e,t,{renderState:r,latestValues:n})=>{hr.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),hr.render(()=>{I2(r,n,{enableHardwareAcceleration:!1},R2(t.tagName),e.transformTemplate),GC(t,r)})}})},tH={useVisualState:ZC({scrapeMotionValuesFromProps:N2,createRenderState:M2})};function rH(e,{forwardMotionProps:t=!1},r,n){return{...P2(e)?eH:tH,preloadedFeatures:r,useRender:qU(t),createVisualElement:n,Component:e}}function No(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const QC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function b0(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const nH=e=>t=>QC(t)&&e(t,b0(t));function zo(e,t,r,n){return No(e,t,nH(r),n)}const iH=(e,t)=>r=>t(e(r)),Bs=(...e)=>e.reduce(iH);function JC(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const k4=JC("dragHorizontal"),C4=JC("dragVertical");function e7(e){let t=!1;if(e==="y")t=C4();else if(e==="x")t=k4();else{const r=k4(),n=C4();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function t7(){const e=e7(!0);return e?(e(),!1):!0}class ea{constructor(t){this.isMounted=!1,this.node=t}update(){}}function E4(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||t7())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[n]&&hr.update(()=>u[n](o,s))};return zo(e.current,r,i,{passive:!e.getProps()[n]})}class oH extends ea{mount(){this.unmount=Bs(E4(this.node,!0),E4(this.node,!1))}unmount(){}}class sH extends ea{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bs(No(this.node.current,"focus",()=>this.onFocus()),No(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const r7=(e,t)=>t?e===t?!0:r7(e,t.parentElement):!1;function l1(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,b0(r))}class aH extends ea{constructor(){super(...arguments),this.removeStartListeners=Mr,this.removeEndListeners=Mr,this.removeAccessibleListeners=Mr,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),o=zo(window,"pointerup",(u,l)=>{if(!this.checkPressEnd())return;const{onTap:a,onTapCancel:c}=this.node.getProps();hr.update(()=>{r7(this.node.current,u.target)?a&&a(u,l):c&&c(u,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=zo(window,"pointercancel",(u,l)=>this.cancelPress(u,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Bs(o,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=u=>{u.key!=="Enter"||!this.checkPressEnd()||l1("up",(l,a)=>{const{onTap:c}=this.node.getProps();c&&hr.update(()=>c(l,a))})};this.removeEndListeners(),this.removeEndListeners=No(this.node.current,"keyup",s),l1("down",(u,l)=>{this.startPress(u,l)})},r=No(this.node.current,"keydown",t),n=()=>{this.isPressing&&l1("cancel",(o,s)=>this.cancelPress(o,s))},i=No(this.node.current,"blur",n);this.removeAccessibleListeners=Bs(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&hr.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!t7()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&hr.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=zo(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=No(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Bs(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const cy=new WeakMap,u1=new WeakMap,lH=e=>{const t=cy.get(e.target);t&&t(e)},uH=e=>{e.forEach(lH)};function cH({root:e,...t}){const r=e||document;u1.has(r)||u1.set(r,{});const n=u1.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(uH,{root:e,...t})),n[i]}function dH(e,t,r){const n=cH(t);return cy.set(e,r),n.observe(e),()=>{cy.delete(e),n.unobserve(e)}}const fH={some:0,all:1};class hH extends ea{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:o}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:fH[i]},u=l=>{const{isIntersecting:a}=l;if(this.isInView===a||(this.isInView=a,o&&!a&&this.hasEnteredView))return;a&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",a);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=a?c:h;f&&f(l)};return dH(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(pH(t,r))&&this.startObserver()}unmount(){}}function pH({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const mH={inView:{Feature:hH},tap:{Feature:aH},focus:{Feature:sH},hover:{Feature:oH}};function n7(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function vH(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function w0(e,t,r){const n=e.getProps();return D2(n,t,r!==void 0?r:n.custom,gH(e),vH(e))}const yH="framerAppearId",bH="data-"+j2(yH);let wH=Mr,F2=Mr;const zs=e=>e*1e3,Vo=e=>e/1e3,_H={current:!1},i7=e=>Array.isArray(e)&&typeof e[0]=="number";function o7(e){return!!(!e||typeof e=="string"&&s7[e]||i7(e)||Array.isArray(e)&&e.every(o7))}const Rc=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,s7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rc([0,.65,.55,1]),circOut:Rc([.55,0,1,.45]),backIn:Rc([.31,.01,.66,-.59]),backOut:Rc([.33,1.53,.69,.99])};function a7(e){if(e)return i7(e)?Rc(e):Array.isArray(e)?e.map(a7):s7[e]}function xH(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:s="loop",ease:u,times:l}={}){const a={[t]:r};l&&(a.offset=l);const c=a7(u);return Array.isArray(c)&&(a.easing=c),e.animate(a,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function SH(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const l7=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,kH=1e-7,CH=12;function EH(e,t,r,n,i){let o,s,u=0;do s=t+(r-t)/2,o=l7(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>kH&&++uEH(o,0,1,e,r);return o=>o===0||o===1?o:l7(i(o),t,n)}const TH=cf(.42,0,1,1),$H=cf(0,0,.58,1),u7=cf(.42,0,.58,1),AH=e=>Array.isArray(e)&&typeof e[0]!="number",c7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,d7=e=>t=>1-e(1-t),f7=e=>1-Math.sin(Math.acos(e)),L2=d7(f7),PH=c7(L2),h7=cf(.33,1.53,.69,.99),B2=d7(h7),OH=c7(B2),MH=e=>(e*=2)<1?.5*B2(e):.5*(2-Math.pow(2,-10*(e-1))),IH={linear:Mr,easeIn:TH,easeInOut:u7,easeOut:$H,circIn:f7,circInOut:PH,circOut:L2,backIn:B2,backInOut:OH,backOut:h7,anticipate:MH},T4=e=>{if(Array.isArray(e)){F2(e.length===4);const[t,r,n,i]=e;return cf(t,r,n,i)}else if(typeof e=="string")return IH[e];return e},z2=(e,t)=>r=>!!(lf(r)&&MU.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),p7=(e,t,r)=>n=>{if(!lf(n))return n;const[i,o,s,u]=n.match(y0);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},RH=e=>Gs(0,255,e),c1={...Ya,transform:e=>Math.round(RH(e))},Ea={test:z2("rgb","red"),parse:p7("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+c1.transform(e)+", "+c1.transform(t)+", "+c1.transform(r)+", "+Jc(Qc.transform(n))+")"};function jH(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const dy={test:z2("#"),parse:jH,transform:Ea.transform},Fl={test:z2("hsl","hue"),parse:p7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+bo.transform(Jc(t))+", "+bo.transform(Jc(r))+", "+Jc(Qc.transform(n))+")"},wn={test:e=>Ea.test(e)||dy.test(e)||Fl.test(e),parse:e=>Ea.test(e)?Ea.parse(e):Fl.test(e)?Fl.parse(e):dy.parse(e),transform:e=>lf(e)?e:e.hasOwnProperty("red")?Ea.transform(e):Fl.transform(e)},Cr=(e,t,r)=>-r*e+r*t+e;function d1(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function NH({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{const u=r<.5?r*(1+t):r+t-r*t,l=2*r-u;i=d1(l,u,e+1/3),o=d1(l,u,e),s=d1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}const f1=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},DH=[dy,Ea,Fl],FH=e=>DH.find(t=>t.test(e));function $4(e){const t=FH(e);let r=t.parse(e);return t===Fl&&(r=NH(r)),r}const m7=(e,t)=>{const r=$4(e),n=$4(t),i={...r};return o=>(i.red=f1(r.red,n.red,o),i.green=f1(r.green,n.green,o),i.blue=f1(r.blue,n.blue,o),i.alpha=Cr(r.alpha,n.alpha,o),Ea.transform(i))};function LH(e){var t,r;return isNaN(e)&&lf(e)&&(((t=e.match(y0))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(zC))===null||r===void 0?void 0:r.length)||0)>0}const g7={regex:PU,countKey:"Vars",token:"${v}",parse:Mr},v7={regex:zC,countKey:"Colors",token:"${c}",parse:wn.parse},y7={regex:y0,countKey:"Numbers",token:"${n}",parse:Ya.parse};function h1(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function Yp(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&h1(r,g7),h1(r,v7),h1(r,y7),r}function b7(e){return Yp(e).values}function w7(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Yp(e),o=t.length;return s=>{let u=i;for(let l=0;ltypeof e=="number"?0:e;function zH(e){const t=b7(e);return w7(e)(t.map(BH))}const Xs={test:LH,parse:b7,createTransformer:w7,getAnimatableNone:zH},_7=(e,t)=>r=>`${r>0?t:e}`;function x7(e,t){return typeof e=="number"?r=>Cr(e,t,r):wn.test(e)?m7(e,t):e.startsWith("var(")?_7(e,t):k7(e,t)}const S7=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,s)=>x7(o,t[s]));return o=>{for(let s=0;s{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=x7(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}},k7=(e,t)=>{const r=Xs.createTransformer(t),n=Yp(e),i=Yp(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Bs(S7(n.values,i.values),r):_7(e,t)},Bd=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},A4=(e,t)=>r=>Cr(e,t,r);function UH(e){return typeof e=="number"?A4:typeof e=="string"?wn.test(e)?m7:k7:Array.isArray(e)?S7:typeof e=="object"?VH:A4}function HH(e,t,r){const n=[],i=r||UH(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=HH(t,n,i),u=s.length,l=a=>{let c=0;if(u>1)for(;cl(Gs(e[0],e[o-1],a)):l}function WH(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=Bd(0,t,n);e.push(Cr(r,1,i))}}function qH(e){const t=[0];return WH(t,e.length-1),t}function KH(e,t){return e.map(r=>r*t)}function GH(e,t){return e.map(()=>t||u7).splice(0,e.length-1)}function Zp({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=AH(n)?n.map(T4):T4(n),o={done:!1,value:t[0]},s=KH(r&&r.length===t.length?r:qH(t),e),u=C7(s,t,{ease:Array.isArray(i)?i:GH(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}function E7(e,t){return t?e*(1e3/t):0}const XH=5;function T7(e,t,r){const n=Math.max(t-XH,0);return E7(r-e(n),t-n)}const p1=.001,YH=.01,P4=10,ZH=.05,QH=1;function JH({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;wH(e<=zs(P4));let s=1-t;s=Gs(ZH,QH,s),e=Gs(YH,P4,Vo(e)),s<1?(i=a=>{const c=a*s,h=c*e,f=c-r,d=fy(a,s),m=Math.exp(-h);return p1-f/d*m},o=a=>{const h=a*s*e,f=h*r+r,d=Math.pow(s,2)*Math.pow(a,2)*e,m=Math.exp(-h),g=fy(Math.pow(a,2),s);return(-i(a)+p1>0?-1:1)*((f-d)*m)/g}):(i=a=>{const c=Math.exp(-a*e),h=(a-r)*e+1;return-p1+c*h},o=a=>{const c=Math.exp(-a*e),h=(r-a)*(e*e);return c*h});const u=5/e,l=tW(i,o,u);if(e=zs(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const a=Math.pow(l,2)*n;return{stiffness:a,damping:s*2*Math.sqrt(n*a),duration:e}}}const eW=12;function tW(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function iW(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!O4(e,nW)&&O4(e,rW)){const r=JH(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function $7({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:u,damping:l,mass:a,velocity:c,duration:h,isResolvedFromDuration:f}=iW(n),d=c?-Vo(c):0,m=l/(2*Math.sqrt(u*a)),g=o-i,p=Vo(Math.sqrt(u/a)),v=Math.abs(g)<5;r||(r=v?.01:2),t||(t=v?.005:.5);let y;if(m<1){const b=fy(p,m);y=_=>{const E=Math.exp(-m*p*_);return o-E*((d+m*p*g)/b*Math.sin(b*_)+g*Math.cos(b*_))}}else if(m===1)y=b=>o-Math.exp(-p*b)*(g+(d+p*g)*b);else{const b=p*Math.sqrt(m*m-1);y=_=>{const E=Math.exp(-m*p*_),$=Math.min(b*_,300);return o-E*((d+m*p*g)*Math.sinh($)+b*g*Math.cosh($))/b}}return{calculatedDuration:f&&h||null,next:b=>{const _=y(b);if(f)s.done=b>=h;else{let E=d;b!==0&&(m<1?E=T7(y,b,_):E=0);const $=Math.abs(E)<=r,M=Math.abs(o-_)<=t;s.done=$&&M}return s.value=s.done?o:_,s}}}function M4({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:l,restDelta:a=.5,restSpeed:c}){const h=e[0],f={done:!1,value:h},d=P=>u!==void 0&&Pl,m=P=>u===void 0?l:l===void 0||Math.abs(u-P)-g*Math.exp(-P/n),b=P=>v+y(P),_=P=>{const D=y(P),F=b(P);f.done=Math.abs(D)<=a,f.value=f.done?v:F};let E,$;const M=P=>{d(f.value)&&(E=P,$=$7({keyframes:[f.value,m(f.value)],velocity:T7(b,P,f.value),damping:i,stiffness:o,restDelta:a,restSpeed:c}))};return M(0),{calculatedDuration:null,next:P=>{let D=!1;return!$&&E===void 0&&(D=!0,_(P),M(P)),E!==void 0&&P>E?$.next(P-E):(!D&&_(P),f)}}}const oW=e=>{const t=({timestamp:r})=>e(r);return{start:()=>hr.update(t,!0),stop:()=>Qo(t),now:()=>Xr.isProcessing?Xr.timestamp:performance.now()}},I4=2e4;function R4(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=I4?1/0:t}const sW={decay:M4,inertia:M4,tween:Zp,keyframes:Zp,spring:$7};function Qp({autoplay:e=!0,delay:t=0,driver:r=oW,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:u="loop",onPlay:l,onStop:a,onComplete:c,onUpdate:h,...f}){let d=1,m=!1,g,p;const v=()=>{p=new Promise(I=>{g=I})};v();let y;const b=sW[i]||Zp;let _;b!==Zp&&typeof n[0]!="number"&&(_=C7([0,100],n,{clamp:!1}),n=[0,100]);const E=b({...f,keyframes:n});let $;u==="mirror"&&($=b({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let M="idle",P=null,D=null,F=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=R4(E));const{calculatedDuration:U}=E;let V=1/0,A=1/0;U!==null&&(V=U+s,A=V*(o+1)-s);let O=0;const C=I=>{if(D===null)return;d>0&&(D=Math.min(D,I)),d<0&&(D=Math.min(I-A/d,D)),P!==null?O=P:O=Math.round(I-D)*d;const L=O-t*(d>=0?1:-1),z=d>=0?L<0:L>A;O=Math.max(L,0),M==="finished"&&P===null&&(O=A);let B=O,W=E;if(o){const R=O/V;let H=Math.floor(R),K=R%1;!K&&R>=1&&(K=1),K===1&&H--,H=Math.min(H,o+1);const ee=!!(H%2);ee&&(u==="reverse"?(K=1-K,s&&(K-=s/V)):u==="mirror"&&(W=$));let Y=Gs(0,1,K);O>A&&(Y=u==="reverse"&&ee?1:0),B=Y*V}const N=z?{done:!1,value:n[0]}:W.next(B);_&&(N.value=_(N.value));let{done:q}=N;!z&&U!==null&&(q=d>=0?O>=A:O<=0);const j=P===null&&(M==="finished"||M==="running"&&q);return h&&h(N.value),j&&x(),N},w=()=>{y&&y.stop(),y=void 0},S=()=>{M="idle",w(),g(),v(),D=F=null},x=()=>{M="finished",c&&c(),w(),g()},k=()=>{if(m)return;y||(y=r(C));const I=y.now();l&&l(),P!==null?D=I-P:(!D||M==="finished")&&(D=I),M==="finished"&&v(),F=D,P=null,M="running",y.start()};e&&k();const T={then(I,L){return p.then(I,L)},get time(){return Vo(O)},set time(I){I=zs(I),O=I,P!==null||!y||d===0?P=I:D=y.now()-I/d},get duration(){const I=E.calculatedDuration===null?R4(E):E.calculatedDuration;return Vo(I)},get speed(){return d},set speed(I){I===d||!y||(d=I,T.time=Vo(O))},get state(){return M},play:k,pause:()=>{M="paused",P=O},stop:()=>{m=!0,M!=="idle"&&(M="idle",a&&a(),S())},cancel:()=>{F!==null&&C(F),S()},complete:()=>{M="finished"},sample:I=>(D=0,C(I))};return T}function aW(e){let t;return()=>(t===void 0&&(t=e()),t)}const lW=aW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),uW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),lh=10,cW=2e4,dW=(e,t)=>t.type==="spring"||e==="backgroundColor"||!o7(t.ease);function fW(e,t,{onUpdate:r,onComplete:n,...i}){if(!(lW()&&uW.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,u,l;const a=()=>{l=new Promise(y=>{u=y})};a();let{keyframes:c,duration:h=300,ease:f,times:d}=i;if(dW(t,i)){const y=Qp({...i,repeat:0,delay:0});let b={done:!1,value:c[0]};const _=[];let E=0;for(;!b.done&&Em.cancel(),p=()=>{hr.update(g),u(),a()};return m.onfinish=()=>{e.set(SH(c,i)),n&&n(),p()},{then(y,b){return l.then(y,b)},attachTimeline(y){return m.timeline=y,m.onfinish=null,Mr},get time(){return Vo(m.currentTime||0)},set time(y){m.currentTime=zs(y)},get speed(){return m.playbackRate},set speed(y){m.playbackRate=y},get duration(){return Vo(h)},play:()=>{s||(m.play(),Qo(g))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:y}=m;if(y){const b=Qp({...i,autoplay:!1});e.setWithVelocity(b.sample(y-lh).value,b.sample(y).value,lh)}p()},complete:()=>m.finish(),cancel:p}}function hW({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Mr,pause:Mr,stop:Mr,then:o=>(o(),Promise.resolve()),cancel:Mr,complete:Mr});return t?Qp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const pW={type:"spring",stiffness:500,damping:25,restSpeed:10},mW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gW={type:"keyframes",duration:.8},vW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yW=(e,{keyframes:t})=>t.length>2?gW:Xa.has(e)?e.startsWith("scale")?mW(t[1]):pW:vW,hy=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Xs.test(t)||t==="0")&&!t.startsWith("url(")),bW=new Set(["brightness","contrast","saturate","opacity"]);function wW(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(y0)||[];if(!n)return e;const i=r.replace(n,"");let o=bW.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const _W=/([a-z-]*)\(.*?\)/g,py={...Xs,getAnimatableNone:e=>{const t=e.match(_W);return t?t.map(wW).join(" "):e}},xW={...VC,color:wn,backgroundColor:wn,outlineColor:wn,fill:wn,stroke:wn,borderColor:wn,borderTopColor:wn,borderRightColor:wn,borderBottomColor:wn,borderLeftColor:wn,filter:py,WebkitFilter:py},V2=e=>xW[e];function A7(e,t){let r=V2(e);return r!==py&&(r=Xs),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const P7=e=>/^0[^.\s]+$/.test(e);function SW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||P7(e)}function kW(e,t,r,n){const i=hy(t,r);let o;Array.isArray(r)?o=[...r]:o=[null,r];const s=n.from!==void 0?n.from:e.get();let u;const l=[];for(let a=0;ai=>{const o=O7(n,e)||{},s=o.delay||n.delay||0;let{elapsed:u=0}=n;u=u-zs(s);const l=kW(t,e,r,o),a=l[0],c=l[l.length-1],h=hy(e,a),f=hy(e,c);let d={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(CW(o)||(d={...d,...yW(e,d)}),d.duration&&(d.duration=zs(d.duration)),d.repeatDelay&&(d.repeatDelay=zs(d.repeatDelay)),!h||!f||_H.current||o.type===!1)return hW(d);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=fW(t,e,d);if(m)return m}return Qp(d)};function Jp(e){return!!(zn(e)&&e.add)}const M7=e=>/^\-?\d*\.?\d+$/.test(e);function H2(e,t){e.indexOf(t)===-1&&e.push(t)}function W2(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class q2{constructor(){this.subscriptions=[]}add(t){return H2(this.subscriptions,t),()=>W2(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o!isNaN(parseFloat(e));class TW{constructor(t,r={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:s}=Xr;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,hr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>hr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=EW(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new q2);const n=this.events[t].add(r);return t==="change"?()=>{n(),hr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?E7(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mu(e,t){return new TW(e,t)}const I7=e=>t=>t.test(e),$W={test:e=>e==="auto",parse:e=>e},R7=[Ya,mt,bo,bs,RU,IU,$W],mc=e=>R7.find(I7(e)),AW=[...R7,wn,Xs],PW=e=>AW.find(I7(e));function OW(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,mu(r))}function MW(e,t){const r=w0(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const s in o){const u=GU(o[s]);OW(e,s,u)}}function IW(e,t,r){var n,i;const o=Object.keys(t).filter(u=>!e.hasValue(u)),s=o.length;if(s)for(let u=0;ul.remove(h))),a.push(g)}return s&&Promise.all(a).then(()=>{s&&MW(e,s)}),a}function my(e,t,r={}){const n=w0(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(j7(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:a=0,staggerChildren:c,staggerDirection:h}=i;return DW(e,t,a+l,c,h,r)}:()=>Promise.resolve(),{when:u}=i;if(u){const[l,a]=u==="beforeChildren"?[o,s]:[s,o];return l().then(()=>a())}else return Promise.all([o(),s(r.delay)])}function DW(e,t,r=0,n=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*n,l=i===1?(a=0)=>a*n:(a=0)=>u-a*n;return Array.from(e.variantChildren).sort(FW).forEach((a,c)=>{a.notify("AnimationStart",t),s.push(my(a,t,{...o,delay:r+l(c)}).then(()=>a.notify("AnimationComplete",t)))}),Promise.all(s)}function FW(e,t){return e.sortNodePosition(t)}function LW(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>my(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=my(e,t,r);else{const i=typeof t=="function"?w0(e,t,r.custom):t;n=Promise.all(j7(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const BW=[...T2].reverse(),zW=T2.length;function VW(e){return t=>Promise.all(t.map(({animation:r,options:n})=>LW(e,r,n)))}function UW(e){let t=VW(e);const r=WW();let n=!0;const i=(l,a)=>{const c=w0(e,a);if(c){const{transition:h,transitionEnd:f,...d}=c;l={...l,...d,...f}}return l};function o(l){t=l(e)}function s(l,a){const c=e.getProps(),h=e.getVariantContext(!0)||{},f=[],d=new Set;let m={},g=1/0;for(let v=0;vg&&E;const F=Array.isArray(_)?_:[_];let U=F.reduce(i,{});$===!1&&(U={});const{prevResolvedValues:V={}}=b,A={...V,...U},O=C=>{D=!0,d.delete(C),b.needsAnimating[C]=!0};for(const C in A){const w=U[C],S=V[C];m.hasOwnProperty(C)||(w!==S?Xp(w)&&Xp(S)?!n7(w,S)||P?O(C):b.protectedKeys[C]=!0:w!==void 0?O(C):d.add(C):w!==void 0&&d.has(C)?O(C):b.protectedKeys[C]=!0)}b.prevProp=_,b.prevResolvedValues=U,b.isActive&&(m={...m,...U}),n&&e.blockInitialAnimation&&(D=!1),D&&!M&&f.push(...F.map(C=>({animation:C,options:{type:y,...l}})))}if(d.size){const v={};d.forEach(y=>{const b=e.getBaseTarget(y);b!==void 0&&(v[y]=b)}),f.push({animation:v})}let p=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(f):Promise.resolve()}function u(l,a,c){var h;if(r[l].isActive===a)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,a)}),r[l].isActive=a;const f=s(c,l);for(const d in r)r[d].protectedKeys={};return f}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>r}}function HW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n7(t,e):!1}function aa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WW(){return{animate:aa(!0),whileInView:aa(),whileHover:aa(),whileTap:aa(),whileDrag:aa(),whileFocus:aa(),exit:aa()}}class qW extends ea{constructor(t){super(t),t.animationState||(t.animationState=UW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),g0(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let KW=0;class GW extends ea{constructor(){super(...arguments),this.id=KW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const XW={animation:{Feature:qW},exit:{Feature:GW}},j4=(e,t)=>Math.abs(e-t);function YW(e,t){const r=j4(e.x,t.x),n=j4(e.y,t.y);return Math.sqrt(r**2+n**2)}class N7{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const a=g1(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,h=YW(a.offset,{x:0,y:0})>=3;if(!c&&!h)return;const{point:f}=a,{timestamp:d}=Xr;this.history.push({...f,timestamp:d});const{onStart:m,onMove:g}=this.handlers;c||(m&&m(this.lastMoveEvent,a),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,a)},this.handlePointerMove=(a,c)=>{this.lastMoveEvent=a,this.lastMoveEventInfo=m1(c,this.transformPagePoint),hr.update(this.updatePoint,!0)},this.handlePointerUp=(a,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:h,onSessionEnd:f}=this.handlers,d=g1(a.type==="pointercancel"?this.lastMoveEventInfo:m1(c,this.transformPagePoint),this.history);this.startEvent&&h&&h(a,d),f&&f(a,d)},!QC(t))return;this.handlers=r,this.transformPagePoint=n;const i=b0(t),o=m1(i,this.transformPagePoint),{point:s}=o,{timestamp:u}=Xr;this.history=[{...s,timestamp:u}];const{onSessionStart:l}=r;l&&l(t,g1(o,this.history)),this.removeListeners=Bs(zo(window,"pointermove",this.handlePointerMove),zo(window,"pointerup",this.handlePointerUp),zo(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qo(this.updatePoint)}}function m1(e,t){return t?{point:t(e.point)}:e}function N4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function g1({point:e},t){return{point:e,delta:N4(e,D7(t)),offset:N4(e,ZW(t)),velocity:QW(t,.1)}}function ZW(e){return e[0]}function D7(e){return e[e.length-1]}function QW(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=D7(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>zs(t)));)r--;if(!n)return{x:0,y:0};const o=Vo(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Jn(e){return e.max-e.min}function gy(e,t=0,r=.01){return Math.abs(e-t)<=r}function D4(e,t,r,n=.5){e.origin=n,e.originPoint=Cr(t.min,t.max,e.origin),e.scale=Jn(r)/Jn(t),(gy(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Cr(r.min,r.max,e.origin)-e.originPoint,(gy(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ed(e,t,r,n){D4(e.x,t.x,r.x,n?n.originX:void 0),D4(e.y,t.y,r.y,n?n.originY:void 0)}function F4(e,t,r){e.min=r.min+t.min,e.max=e.min+Jn(t)}function JW(e,t,r){F4(e.x,t.x,r.x),F4(e.y,t.y,r.y)}function L4(e,t,r){e.min=t.min-r.min,e.max=e.min+Jn(t)}function td(e,t,r){L4(e.x,t.x,r.x),L4(e.y,t.y,r.y)}function eq(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?Cr(r,e,n.max):Math.min(e,r)),e}function B4(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function tq(e,{top:t,left:r,bottom:n,right:i}){return{x:B4(e.x,r,i),y:B4(e.y,t,n)}}function z4(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Bd(t.min,t.max-n,e.min):n>i&&(r=Bd(e.min,e.max-i,t.min)),Gs(0,1,r)}function iq(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const vy=.35;function oq(e=vy){return e===!1?e=0:e===!0&&(e=vy),{x:V4(e,"left","right"),y:V4(e,"top","bottom")}}function V4(e,t,r){return{min:U4(e,t),max:U4(e,r)}}function U4(e,t){return typeof e=="number"?e:e[t]||0}const H4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ll=()=>({x:H4(),y:H4()}),W4=()=>({min:0,max:0}),Fr=()=>({x:W4(),y:W4()});function oo(e){return[e("x"),e("y")]}function F7({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function sq({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aq(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function v1(e){return e===void 0||e===1}function yy({scale:e,scaleX:t,scaleY:r}){return!v1(e)||!v1(t)||!v1(r)}function da(e){return yy(e)||L7(e)||e.z||e.rotate||e.rotateX||e.rotateY}function L7(e){return q4(e.x)||q4(e.y)}function q4(e){return e&&e!=="0%"}function em(e,t,r){const n=e-r,i=t*n;return r+i}function K4(e,t,r,n,i){return i!==void 0&&(e=em(e,i,n)),em(e,r,n)+t}function by(e,t=0,r=1,n,i){e.min=K4(e.min,t,r,n,i),e.max=K4(e.max,t,r,n,i)}function B7(e,{x:t,y:r}){by(e.x,t.translate,t.scale,t.originPoint),by(e.y,r.translate,r.scale,r.originPoint)}function lq(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let o,s;for(let u=0;u1.0000000000001||e<.999999999999?e:1}function ks(e,t){e.min=e.min+t,e.max=e.max+t}function X4(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,s=Cr(e.min,e.max,o);by(e,t[r],t[n],s,t.scale)}const uq=["x","scaleX","originX"],cq=["y","scaleY","originY"];function Bl(e,t){X4(e.x,t,uq),X4(e.y,t,cq)}function z7(e,t){return F7(aq(e.getBoundingClientRect(),t))}function dq(e,t,r){const n=z7(e,r),{scroll:i}=t;return i&&(ks(n.x,i.offset.x),ks(n.y,i.offset.y)),n}const fq=new WeakMap;class hq{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fr(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=l=>{this.stopAnimation(),r&&this.snapToCursor(b0(l,"page").point)},o=(l,a)=>{const{drag:c,dragPropagation:h,onDragStart:f}=this.getProps();if(c&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=e7(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),oo(m=>{let g=this.getAxisMotionValue(m).get()||0;if(bo.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const v=p.layout.layoutBox[m];v&&(g=Jn(v)*(parseFloat(g)/100))}}this.originPoint[m]=g}),f&&hr.update(()=>f(l,a),!1,!0);const{animationState:d}=this.visualElement;d&&d.setActive("whileDrag",!0)},s=(l,a)=>{const{dragPropagation:c,dragDirectionLock:h,onDirectionLock:f,onDrag:d}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=a;if(h&&this.currentDirection===null){this.currentDirection=pq(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",a.point,m),this.updateAxis("y",a.point,m),this.visualElement.render(),d&&d(l,a)},u=(l,a)=>this.stop(l,a);this.panSession=new N7(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&hr.update(()=>o(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!uh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=eq(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Dl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=tq(n.layoutBox,t):this.constraints=!1,this.elastic=oq(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&oo(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=iq(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Dl(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=dq(n,i.root,this.visualElement.getTransformPagePoint());let s=rq(i.layout.layoutBox,o);if(r){const u=r(sq(s));this.hasMutatedConstraints=!!u,u&&(s=F7(u))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},a=oo(c=>{if(!uh(c,r,this.currentDirection))return;let h=l&&l[c]||{};s&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(a).then(u)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(U2(t,n,0,r))}stopAnimation(){oo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){oo(r=>{const{drag:n}=this.getProps();if(!uh(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[r];o.set(t[r]-Cr(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Dl(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};oo(s=>{const u=this.getAxisMotionValue(s);if(u){const l=u.get();i[s]=nq({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),oo(s=>{if(!uh(s,t,null))return;const u=this.getAxisMotionValue(s),{min:l,max:a}=this.constraints[s];u.set(Cr(l,a,i[s]))})}addListeners(){if(!this.visualElement.current)return;fq.set(this.visualElement,this);const t=this.visualElement.current,r=zo(t,"pointerdown",l=>{const{drag:a,dragListener:c=!0}=this.getProps();a&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Dl(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const s=No(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:a})=>{this.isDragging&&a&&(oo(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),r(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=vy,dragMomentum:u=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function uh(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function pq(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class mq extends ea{constructor(t){super(t),this.removeGroupControls=Mr,this.removeListeners=Mr,this.controls=new hq(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mr}unmount(){this.removeGroupControls(),this.removeListeners()}}const Y4=e=>(t,r)=>{e&&hr.update(()=>e(t,r))};class gq extends ea{constructor(){super(...arguments),this.removePointerDownListener=Mr}onPointerDown(t){this.session=new N7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Y4(t),onStart:Y4(r),onMove:n,onEnd:(o,s)=>{delete this.session,i&&hr.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=zo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function vq(){const e=G.useContext(sf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=G.useId();return G.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function yq(){return bq(G.useContext(sf))}function bq(e){return e===null?!0:e.isPresent}const tp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Z4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(mt.test(e))e=parseFloat(e);else return e;const r=Z4(e,t.target.x),n=Z4(e,t.target.y);return`${r}% ${n}%`}},wq={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Xs.parse(e);if(i.length>5)return n;const o=Xs.createTransformer(e),s=typeof i[0]!="number"?1:0,u=r.x.scale*t.x,l=r.y.scale*t.y;i[0+s]/=u,i[1+s]/=l;const a=Cr(u,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=a),typeof i[3+s]=="number"&&(i[3+s]/=a),o(i)}};class _q extends vt.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;EU(xq),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),tp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||hr.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function V7(e){const[t,r]=vq(),n=G.useContext(A2);return vt.createElement(_q,{...e,layoutGroup:n,switchLayoutGroup:G.useContext(DC),isPresent:t,safeToRemove:r})}const xq={borderRadius:{...gc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gc,borderTopRightRadius:gc,borderBottomLeftRadius:gc,borderBottomRightRadius:gc,boxShadow:wq},U7=["TopLeft","TopRight","BottomLeft","BottomRight"],Sq=U7.length,Q4=e=>typeof e=="string"?parseFloat(e):e,J4=e=>typeof e=="number"||mt.test(e);function kq(e,t,r,n,i,o){i?(e.opacity=Cr(0,r.opacity!==void 0?r.opacity:1,Cq(n)),e.opacityExit=Cr(t.opacity!==void 0?t.opacity:1,0,Eq(n))):o&&(e.opacity=Cr(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(Bd(e,t,n))}function tS(e,t){e.min=t.min,e.max=t.max}function ui(e,t){tS(e.x,t.x),tS(e.y,t.y)}function rS(e,t,r,n,i){return e-=t,e=em(e,1/r,n),i!==void 0&&(e=em(e,1/i,n)),e}function Tq(e,t=0,r=1,n=.5,i,o=e,s=e){if(bo.test(t)&&(t=parseFloat(t),t=Cr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=Cr(o.min,o.max,n);e===o&&(u-=t),e.min=rS(e.min,t,r,u,i),e.max=rS(e.max,t,r,u,i)}function nS(e,t,[r,n,i],o,s){Tq(e,t[r],t[n],t[i],t.scale,o,s)}const $q=["x","scaleX","originX"],Aq=["y","scaleY","originY"];function iS(e,t,r,n){nS(e.x,t,$q,r?r.x:void 0,n?n.x:void 0),nS(e.y,t,Aq,r?r.y:void 0,n?n.y:void 0)}function oS(e){return e.translate===0&&e.scale===1}function W7(e){return oS(e.x)&&oS(e.y)}function Pq(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function q7(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function sS(e){return Jn(e.x)/Jn(e.y)}class Oq{constructor(){this.members=[]}add(t){H2(this.members,t),t.scheduleRender()}remove(t){if(W2(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function aS(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:a,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),a&&(n+=`rotateX(${a}deg) `),c&&(n+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(n+=`scale(${s}, ${u})`),n||"none"}const Mq=(e,t)=>e.depth-t.depth;class Iq{constructor(){this.children=[],this.isDirty=!1}add(t){H2(this.children,t),this.isDirty=!0}remove(t){W2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Mq),this.isDirty=!1,this.children.forEach(t)}}function Rq(e,t){const r=performance.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(Qo(n),e(o-t))};return hr.read(n,!0),()=>Qo(n)}function jq(e){window.MotionDebug&&window.MotionDebug.record(e)}function Nq(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Dq(e,t,r){const n=zn(e)?e:mu(e);return n.start(U2("",n,t,r)),n.animation}const lS=["","X","Y","Z"],uS=1e3;let Fq=0;const fa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function K7({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=Fq++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{fa.totalNodes=fa.resolvedTargetDeltas=fa.recalculatedProjection=0,this.nodes.forEach(zq),this.nodes.forEach(qq),this.nodes.forEach(Kq),this.nodes.forEach(Vq),jq(fa)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Rq(f,250),tp.hasAnimatedSinceResize&&(tp.hasAnimatedSinceResize=!1,this.nodes.forEach(dS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||a)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||Qq,{onLayoutAnimationStart:p,onLayoutAnimationComplete:v}=c.getProps(),y=!this.targetLayout||!q7(this.targetLayout,m)||d,b=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,b);const _={...O7(g,"layout"),onPlay:p,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else f||dS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Gq),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(Uq),this.sharedNodes.forEach(Xq)}scheduleUpdateProjection(){hr.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){hr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=_/1e3;fS(h.x,s.x,E),fS(h.y,s.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(td(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yq(this.relativeTarget,this.relativeTargetOrigin,f,E),b&&Pq(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Fr()),ui(b,this.relativeTarget)),g&&(this.animationValues=c,kq(c,a,this.latestValues,E,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=hr.update(()=>{tp.hasAnimatedSinceResize=!0,this.currentAnimation=Dq(0,uS,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:l,layout:a,latestValues:c}=s;if(!(!u||!l||!a)){if(this!==s&&this.layout&&a&&G7(this.options.animationType,this.layout.layoutBox,a.layoutBox)){l=this.target||Fr();const h=Jn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+h;const f=Jn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}ui(u,l),Bl(u,c),ed(this.projectionDeltaWithTransform,this.layoutCorrected,u,c)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Oq),this.sharedNodes.get(s).add(u);const a=u.options.initialPromotionConfig;u.promote({transition:a?a.transition:void 0,preserveFollowOpacity:a&&a.shouldPreserveFollowOpacity?a.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:l}={}){const a=this.getStack();a&&a.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(u=!0),!u)return;const a={};for(let c=0;c{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(cS),this.root.sharedNodes.clear()}}}function Lq(e){e.updateLayout()}function Bq(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,s=r.source!==e.layout.source;o==="size"?oo(h=>{const f=s?r.measuredBox[h]:r.layoutBox[h],d=Jn(f);f.min=n[h].min,f.max=f.min+d}):G7(o,r.layoutBox,n)&&oo(h=>{const f=s?r.measuredBox[h]:r.layoutBox[h],d=Jn(n[h]);f.max=f.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+d)});const u=Ll();ed(u,n,r.layoutBox);const l=Ll();s?ed(l,e.applyTransform(i,!0),r.measuredBox):ed(l,n,r.layoutBox);const a=!W7(u);let c=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=Fr();td(m,r.layoutBox,f.layoutBox);const g=Fr();td(g,n,d.layoutBox),q7(m,g)||(c=!0),h.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:u,hasLayoutChanged:a,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function zq(e){fa.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Vq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Uq(e){e.clearSnapshot()}function cS(e){e.clearMeasurements()}function Hq(e){e.isLayoutDirty=!1}function Wq(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qq(e){e.resolveTargetDelta()}function Kq(e){e.calcProjection()}function Gq(e){e.resetRotation()}function Xq(e){e.removeLeadSnapshot()}function fS(e,t,r){e.translate=Cr(t.translate,0,r),e.scale=Cr(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function hS(e,t,r,n){e.min=Cr(t.min,r.min,n),e.max=Cr(t.max,r.max,n)}function Yq(e,t,r,n){hS(e.x,t.x,r.x,n),hS(e.y,t.y,r.y,n)}function Zq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Qq={duration:.45,ease:[.4,0,.1,1]},pS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),mS=pS("applewebkit/")&&!pS("chrome/")?Math.round:Mr;function gS(e){e.min=mS(e.min),e.max=mS(e.max)}function Jq(e){gS(e.x),gS(e.y)}function G7(e,t,r){return e==="position"||e==="preserve-aspect"&&!gy(sS(t),sS(r),.2)}const eK=K7({attachResizeListener:(e,t)=>No(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),y1={current:void 0},X7=K7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!y1.current){const e=new eK({});e.mount(window),e.setOptions({layoutScroll:!0}),y1.current=e}return y1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),tK={pan:{Feature:gq},drag:{Feature:mq,ProjectionNode:X7,MeasureLayout:V7}},rK=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nK(e){const t=rK.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function wy(e,t,r=1){const[n,i]=nK(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const s=o.trim();return M7(s)?parseFloat(s):s}else return uy(i)?wy(i,t,r+1):i}function iK(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const o=i.get();if(!uy(o))return;const s=wy(o,n);s&&i.set(s)});for(const i in t){const o=t[i];if(!uy(o))continue;const s=wy(o,n);s&&(t[i]=s,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}const oK=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Y7=e=>oK.has(e),sK=e=>Object.keys(e).some(Y7),vS=e=>e===Ya||e===mt,yS=(e,t)=>parseFloat(e.split(", ")[t]),bS=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return yS(i[1],t);{const o=n.match(/^matrix\((.+)\)$/);return o?yS(o[1],e):0}},aK=new Set(["x","y","z"]),lK=af.filter(e=>!aK.has(e));function uK(e){const t=[];return lK.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const gu={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:bS(4,13),y:bS(5,14)};gu.translateX=gu.x;gu.translateY=gu.y;const cK=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(a=>{u[a]=gu[a](n,o)}),t.render();const l=t.measureViewportBox();return r.forEach(a=>{const c=t.getValue(a);c&&c.jump(u[a]),e[a]=gu[a](l,o)}),e},dK=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(Y7);let o=[],s=!1;const u=[];if(i.forEach(l=>{const a=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],h=mc(c);const f=t[l];let d;if(Xp(f)){const m=f.length,g=f[0]===null?1:0;c=f[g],h=mc(c);for(let p=g;p=0?window.pageYOffset:null,a=cK(t,e,u);return o.length&&o.forEach(([c,h])=>{e.getValue(c).set(h)}),e.render(),m0&&l!==null&&window.scrollTo({top:l}),{target:a,transitionEnd:n}}else return{target:t,transitionEnd:n}};function fK(e,t,r,n){return sK(t)?dK(e,t,r,n):{target:t,transitionEnd:n}}const hK=(e,t,r,n)=>{const i=iK(e,t,n);return t=i.target,n=i.transitionEnd,fK(e,t,r,n)},_y={current:null},Z7={current:!1};function pK(){if(Z7.current=!0,!!m0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_y.current=e.matches;e.addListener(t),t()}else _y.current=!1}function mK(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],s=r[i];if(zn(o))e.addValue(i,o),Jp(n)&&n.add(i);else if(zn(s))e.addValue(i,mu(o,{owner:e})),Jp(n)&&n.remove(i);else if(s!==o)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(o)}else{const u=e.getStaticValue(i);e.addValue(i,mu(u!==void 0?u:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const wS=new WeakMap,Q7=Object.keys(Ld),gK=Q7.length,_S=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],vK=$2.length;class yK{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>hr.render(this.render,!1,!0);const{latestValues:u,renderState:l}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=v0(r),this.isVariantNode=NC(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:a,...c}=this.scrapeMotionValuesFromProps(r,{});for(const h in c){const f=c[h];u[h]!==void 0&&zn(f)&&(f.set(u[h],!1),Jp(a)&&a.add(h))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,wS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Z7.current||pK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_y.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wS.delete(this.current),this.projection&&this.projection.unmount(),Qo(this.notifyUpdate),Qo(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=Xa.has(t),i=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&hr.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,o){let s,u;for(let l=0;lthis.scheduleRender(),animationType:typeof a=="string"?a:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:d})}return u}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<_S.length;n++){const i=_S[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=mK(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=mu(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=D2(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!zn(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new q2),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class J7 extends yK{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},o){let s=jW(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),s&&(s=i(s))),o){IW(this,n,s);const u=hK(this,n,s,r);r=u.transitionEnd,n=u.target}return{transition:t,transitionEnd:r,...n}}}function bK(e){return window.getComputedStyle(e)}class wK extends J7{readValueFromInstance(t,r){if(Xa.has(r)){const n=V2(r);return n&&n.default||0}else{const n=bK(t),i=(BC(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return z7(t,r)}build(t,r,n,i){O2(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return N2(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zn(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){qC(t,r,n,i)}}class _K extends J7{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Xa.has(r)){const n=V2(r);return n&&n.default||0}return r=KC.has(r)?r:j2(r),t.getAttribute(r)}measureInstanceViewportBox(){return Fr()}scrapeMotionValuesFromProps(t,r){return XC(t,r)}build(t,r,n,i){I2(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){GC(t,r,n,i)}mount(t){this.isSVGTag=R2(t.tagName),super.mount(t)}}const xK=(e,t)=>P2(e)?new _K(t,{enableHardwareAcceleration:!1}):new wK(t,{enableHardwareAcceleration:!0}),SK={layout:{ProjectionNode:X7,MeasureLayout:V7}},kK={...XW,...mH,...tK,...SK},CK=kU((e,t)=>rH(e,t,kK,xK));function eE(){const e=G.useRef(!1);return E2(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function EK(){const e=eE(),[t,r]=G.useState(0),n=G.useCallback(()=>{e.current&&r(t+1)},[t]);return[G.useCallback(()=>hr.postRender(n),[n]),t]}class TK extends G.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function $K({children:e,isPresent:t}){const r=G.useId(),n=G.useRef(null),i=G.useRef({width:0,height:0,top:0,left:0});return G.useInsertionEffect(()=>{const{width:o,height:s,top:u,left:l}=i.current;if(t||!n.current||!o||!s)return;n.current.dataset.motionPopId=r;const a=document.createElement("style");return document.head.appendChild(a),a.sheet&&a.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${o}px !important; @@ -345,10 +345,10 @@ Error generating stack: `+o.message+` top: ${u}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(a)}},[t]),G.createElement(EK,{isPresent:t,childRef:n,sizeRef:i},G.cloneElement(e,{ref:n}))}const b1=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{const u=XC($K),l=G.useId(),a=G.useMemo(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:c=>{u.set(c,!0);for(const h of u.values())if(!h)return;n&&n()},register:c=>(u.set(c,!1),()=>u.delete(c))}),o?void 0:[r]);return G.useMemo(()=>{u.forEach((c,h)=>u.set(h,!1))},[r]),G.useEffect(()=>{!r&&!u.size&&n&&n()},[r]),s==="popLayout"&&(e=G.createElement(TK,{isPresent:r},e)),G.createElement(sf.Provider,{value:a},e)};function $K(){return new Map}function AK(e){return G.useEffect(()=>()=>e(),[])}const ha=e=>e.key||"";function PK(e,t){e.forEach(r=>{const n=ha(r);t.set(n,r)})}function OK(e){const t=[];return G.Children.forEach(e,r=>{G.isValidElement(r)&&t.push(r)}),t}const MK=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const u=G.useContext(A2).forceRender||CK()[0],l=J7(),a=OK(e);let c=a;const h=G.useRef(new Map).current,f=G.useRef(c),d=G.useRef(new Map).current,m=G.useRef(!0);if(E2(()=>{m.current=!1,PK(a,d),f.current=c}),AK(()=>{m.current=!0,d.clear(),h.clear()}),m.current)return G.createElement(G.Fragment,null,c.map(y=>G.createElement(b1,{key:ha(y),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const g=f.current.map(ha),p=a.map(ha),v=g.length;for(let y=0;y{if(p.indexOf(b)!==-1)return;const _=d.get(b);if(!_)return;const E=g.indexOf(b);let $=y;if(!$){const M=()=>{h.delete(b);const P=Array.from(d.keys()).filter(D=>!p.includes(D));if(P.forEach(D=>d.delete(D)),f.current=a.filter(D=>{const F=ha(D);return F===b||P.includes(F)}),!h.size){if(l.current===!1)return;u(),n&&n()}};$=G.createElement(b1,{key:ha(_),isPresent:!1,onExitComplete:M,custom:t,presenceAffectsLayout:o,mode:s},_),h.set(b,$)}c.splice(E,0,$)}),c=c.map(y=>{const b=y.key;return h.has(b)?y:G.createElement(b1,{key:ha(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),G.createElement(G.Fragment,null,h.size?c:c.map(y=>G.cloneElement(y)))};var IK={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},eE=G.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:u=5e3,containerStyle:l,motionVariants:a=IK,toastSpacing:c="0.5rem"}=e,[h,f]=G.useState(u),d=vq();Fa(()=>{d||n==null||n()},[d]),Fa(()=>{f(u)},[u]);const m=()=>f(null),g=()=>f(u),p=()=>{d&&i()};G.useEffect(()=>{d&&o&&i()},[d,o,i]),pU(p,h);const v=G.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),y=G.useMemo(()=>fU(s),[s]);return X.jsx(kK.div,{layout:!0,className:"chakra-toast",variants:a,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:g,custom:{position:s},style:y,children:X.jsx(et.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:Ro(r,{id:t,onClose:p})})})});eE.displayName="ToastComponent";var xS={path:X.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[X.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),X.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),X.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},oi=wt((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:o=!1,children:s,className:u,__css:l,...a}=e,c=sr("chakra-icon",u),h=Xi("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...h},d={ref:t,focusable:o,className:c,__css:f},m=n??xS.viewBox;if(r&&typeof r!="string")return X.jsx(et.svg,{as:r,...d,...a});const g=s??xS.path;return X.jsx(et.svg,{verticalAlign:"middle",viewBox:m,...d,...a,children:g})});oi.displayName="Icon";function Nu(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,o=G.Children.toArray(e.path),s=wt((u,l)=>X.jsx(oi,{ref:l,viewBox:t,...i,...u,children:o.length?o:X.jsx("path",{fill:"currentColor",d:r})}));return s.displayName=n,s}function RK(e){return X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function jK(e){return X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function SS(e){return X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var NK=rf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),_0=wt((e,t)=>{const r=Xi("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:u,...l}=qr(e),a=sr("chakra-spinner",u),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${NK} ${o} linear infinite`,...r};return X.jsx(et.div,{ref:t,__css:c,className:a,...l,children:n&&X.jsx(et.span,{srOnly:!0,children:n})})});_0.displayName="Spinner";var[DK,K2]=Wr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[FK,G2]=Wr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),tE={info:{icon:jK,colorScheme:"blue"},warning:{icon:SS,colorScheme:"orange"},success:{icon:RK,colorScheme:"green"},error:{icon:SS,colorScheme:"red"},loading:{icon:_0,colorScheme:"blue"}};function LK(e){return tE[e].colorScheme}function BK(e){return tE[e].icon}var rE=wt(function(t,r){const n=G2(),{status:i}=K2(),o={display:"inline",...n.description};return X.jsx(et.div,{ref:r,"data-status":i,...t,className:sr("chakra-alert__desc",t.className),__css:o})});rE.displayName="AlertDescription";function nE(e){const{status:t}=K2(),r=BK(t),n=G2(),i=t==="loading"?n.spinner:n.icon;return X.jsx(et.span,{display:"inherit","data-status":t,...e,className:sr("chakra-alert__icon",e.className),__css:i,children:e.children||X.jsx(r,{h:"100%",w:"100%"})})}nE.displayName="AlertIcon";var X2=wt(function(t,r){const n=G2(),{status:i}=K2();return X.jsx(et.div,{ref:r,"data-status":i,...t,className:sr("chakra-alert__title",t.className),__css:n.title})});X2.displayName="AlertTitle";var Y2=wt(function(t,r){var n;const{status:i="info",addRole:o=!0,...s}=qr(t),u=(n=t.colorScheme)!=null?n:LK(i),l=Qr("Alert",{...t,colorScheme:u}),a={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return X.jsx(DK,{value:{status:i},children:X.jsx(FK,{value:l,children:X.jsx(et.div,{"data-status":i,role:o?"alert":void 0,ref:r,...s,className:sr("chakra-alert",t.className),__css:a})})})});Y2.displayName="Alert";function zK(e){return X.jsx(oi,{focusable:"false","aria-hidden":!0,...e,children:X.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var iE=wt(function(t,r){const n=Xi("CloseButton",t),{children:i,isDisabled:o,__css:s,...u}=qr(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return X.jsx(et.button,{type:"button","aria-label":"Close",ref:r,disabled:o,__css:{...l,...n,...s},...u,children:i||X.jsx(zK,{width:"1em",height:"1em"})})});iE.displayName="CloseButton";var VK={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},rd=UK(VK);function UK(e){let t=e;const r=new Set,n=i=>{t=i(t),r.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(r.add(i),()=>{n(()=>e),r.delete(i)}),removeToast:(i,o)=>{n(s=>({...s,[o]:s[o].filter(u=>u.id!=i)}))},notify:(i,o)=>{const s=HK(i,o),{position:u,id:l}=s;return n(a=>{var c,h;const d=u.includes("top")?[s,...(c=a[u])!=null?c:[]]:[...(h=a[u])!=null?h:[],s];return{...a,[u]:d}}),l},update:(i,o)=>{i&&n(s=>{const u={...s},{position:l,index:a}=v4(u,i);return l&&a!==-1&&(u[l][a]={...u[l][a],...o,message:qK(o)}),u})},closeAll:({positions:i}={})=>{n(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,a)=>(l[a]=o[a].map(c=>({...c,requestClose:!0})),l),{...o}))},close:i=>{n(o=>{const s=MC(o,i);return s?{...o,[s]:o[s].map(u=>u.id==i?{...u,requestClose:!0}:u)}:o})},isActive:i=>!!v4(rd.getState(),i).position}}var kS=0;function HK(e,t={}){var r,n;kS+=1;const i=(r=t.id)!=null?r:kS,o=(n=t.position)!=null?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>rd.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var WK=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:s,description:u,colorScheme:l,icon:a}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return X.jsxs(Y2,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[X.jsx(nE,{children:a}),X.jsxs(et.div,{flex:"1",maxWidth:"100%",children:[i&&X.jsx(X2,{id:c==null?void 0:c.title,children:i}),u&&X.jsx(rE,{id:c==null?void 0:c.description,display:"block",children:u})]}),o&&X.jsx(iE,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function qK(e={}){const{render:t,toastComponent:r=WK}=e;return i=>typeof t=="function"?t({...i,...e}):X.jsx(r,{...i,...e})}var[KK,f6e]=Wr({name:"ToastOptionsContext",strict:!1}),GK=e=>{const t=G.useSyncExternalStore(rd.subscribe,rd.getState,rd.getState),{motionVariants:r,component:n=eE,portalProps:i}=e,s=Object.keys(t).map(u=>{const l=t[u];return X.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${u}`,id:`chakra-toast-manager-${u}`,style:hU(u),children:X.jsx(MK,{initial:!1,children:l.map(a=>X.jsx(n,{motionVariants:r,...a},a.id))})},u)});return X.jsx(a0,{...i,children:s})},XK=e=>function({children:r,theme:n=e,toastOptions:i,...o}){return X.jsxs(cU,{theme:n,...o,children:[X.jsx(KK,{value:i==null?void 0:i.defaultOptions,children:r}),X.jsx(GK,{...i})]})},YK=XK($V),ZK=Object.defineProperty,QK=(e,t,r)=>t in e?ZK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$r=(e,t,r)=>(QK(e,typeof t!="symbol"?t+"":t,r),r);function CS(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var JK=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function ES(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function TS(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var xy=typeof window<"u"?G.useLayoutEffect:G.useEffect,tm=e=>e,eG=class{constructor(){$r(this,"descendants",new Map),$r(this,"register",e=>{if(e!=null)return JK(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),$r(this,"unregister",e=>{this.descendants.delete(e);const t=CS(Array.from(this.descendants.keys()));this.assignIndex(t)}),$r(this,"destroy",()=>{this.descendants.clear()}),$r(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),$r(this,"count",()=>this.descendants.size),$r(this,"enabledCount",()=>this.enabledValues().length),$r(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),$r(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),$r(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),$r(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),$r(this,"first",()=>this.item(0)),$r(this,"firstEnabled",()=>this.enabledItem(0)),$r(this,"last",()=>this.item(this.descendants.size-1)),$r(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),$r(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),$r(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),$r(this,"next",(e,t=!0)=>{const r=ES(e,this.count(),t);return this.item(r)}),$r(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=ES(n,this.enabledCount(),t);return this.enabledItem(i)}),$r(this,"prev",(e,t=!0)=>{const r=TS(e,this.count()-1,t);return this.item(r)}),$r(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=TS(n,this.enabledCount()-1,t);return this.enabledItem(i)}),$r(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=CS(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(n)})}};function tG(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Tn(...e){return t=>{e.forEach(r=>{tG(r,t)})}}function rG(...e){return G.useMemo(()=>Tn(...e),e)}function nG(){const e=G.useRef(new eG);return xy(()=>()=>e.current.destroy()),e.current}var[iG,oE]=Wr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function oG(e){const t=oE(),[r,n]=G.useState(-1),i=G.useRef(null);xy(()=>()=>{i.current&&t.unregister(i.current)},[]),xy(()=>{if(!i.current)return;const s=Number(i.current.dataset.index);r!=s&&!Number.isNaN(s)&&n(s)});const o=tm(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(i.current),register:Tn(o,i)}}function sG(){return[tm(iG),()=>tm(oE()),()=>nG(),i=>oG(i)]}function sE(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:i=(f,d)=>f!==d}=e,o=Or(n),s=Or(i),[u,l]=G.useState(r),a=t!==void 0,c=a?t:u,h=Or(f=>{const m=typeof f=="function"?f(c):f;s(c,m)&&(a||l(m),o(m))},[a,o,c,s]);return[c,h]}function aE(e){return G.Children.toArray(e).filter(t=>G.isValidElement(t))}var[aG,lG]=Wr({strict:!1,name:"ButtonGroupContext"}),uG={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},cG={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},lE=wt(function(t,r){const{size:n,colorScheme:i,variant:o,className:s,spacing:u="0.5rem",isAttached:l,isDisabled:a,orientation:c="horizontal",...h}=t,f=sr("chakra-button__group",s),d=G.useMemo(()=>({size:n,colorScheme:i,variant:o,isDisabled:a}),[n,i,o,a]);let m={display:"inline-flex",...l?uG[c]:cG[c](u)};const g=c==="vertical";return X.jsx(aG,{value:d,children:X.jsx(et.div,{ref:r,role:"group",__css:m,className:f,"data-attached":l?"":void 0,"data-orientation":c,flexDir:g?"column":void 0,...h})})});lE.displayName="ButtonGroup";function dG(e){const[t,r]=G.useState(!e);return{ref:G.useCallback(o=>{o&&r(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Sy(e){const{children:t,className:r,...n}=e,i=G.isValidElement(t)?G.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=sr("chakra-button__icon",r);return X.jsx(et.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:o,children:i})}Sy.displayName="ButtonIcon";function ky(e){const{label:t,placement:r,spacing:n="0.5rem",children:i=X.jsx(_0,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...u}=e,l=sr("chakra-button__spinner",o),a=r==="start"?"marginEnd":"marginStart",c=G.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[a]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,a,n]);return X.jsx(et.div,{className:l,...u,__css:c,children:i})}ky.displayName="ButtonSpinner";var pi=wt((e,t)=>{const r=lG(),n=Xi("Button",{...r,...e}),{isDisabled:i=r==null?void 0:r.isDisabled,isLoading:o,isActive:s,children:u,leftIcon:l,rightIcon:a,loadingText:c,iconSpacing:h="0.5rem",type:f,spinner:d,spinnerPlacement:m="start",className:g,as:p,...v}=qr(e),y=G.useMemo(()=>{const $={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:$}}},[n,r]),{ref:b,type:_}=dG(p),E={rightIcon:a,leftIcon:l,iconSpacing:h,children:u};return X.jsxs(et.button,{ref:rG(t,b),as:p,type:f??_,"data-active":gt(s),"data-loading":gt(o),__css:y,className:sr("chakra-button",g),...v,disabled:i||o,children:[o&&m==="start"&&X.jsx(ky,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:h,children:d}),o?c||X.jsx(et.span,{opacity:0,children:X.jsx($S,{...E})}):X.jsx($S,{...E}),o&&m==="end"&&X.jsx(ky,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:h,children:d})]})});pi.displayName="Button";function $S(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return X.jsxs(X.Fragment,{children:[t&&X.jsx(Sy,{marginEnd:i,children:t}),n,r&&X.jsx(Sy,{marginStart:i,children:r})]})}var uE=wt((e,t)=>{const{icon:r,children:n,isRound:i,"aria-label":o,...s}=e,u=r||n,l=G.isValidElement(u)?G.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return X.jsx(pi,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...s,children:l})});uE.displayName="IconButton";var[fG,hG]=Wr({name:"CheckboxGroupContext",strict:!1});function AS(e){return e&&ln(e)&&ln(e.target)}function pG(e={}){const{defaultValue:t,value:r,onChange:n,isDisabled:i,isNative:o}=e,s=Or(n),[u,l]=sE({value:r,defaultValue:t||[],onChange:s}),a=G.useCallback(h=>{if(!u)return;const f=AS(h)?h.target.checked:!u.includes(h),d=AS(h)?h.target.value:h,m=f?[...u,d]:u.filter(g=>String(g)!==String(d));l(m)},[l,u]),c=G.useCallback((h={})=>({...h,[o?"checked":"isChecked"]:u.some(d=>String(h.value)===String(d)),onChange:a}),[a,o,u]);return{value:u,isDisabled:i,onChange:a,setValue:l,getCheckboxProps:c}}function cE(e){const{colorScheme:t,size:r,variant:n,children:i,isDisabled:o}=e,{value:s,onChange:u}=pG(e),l=G.useMemo(()=>({size:r,onChange:u,colorScheme:t,value:s,variant:n,isDisabled:o}),[r,u,t,s,n,o]);return X.jsx(fG,{value:l,children:i})}cE.displayName="CheckboxGroup";function mG(e){const[t,r]=G.useState(e),[n,i]=G.useState(!1);return e!==t&&(i(!0),r(e)),n}function gG(e){return X.jsx(et.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:X.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function vG(e){return X.jsx(et.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:X.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function yG(e){const{isIndeterminate:t,isChecked:r,...n}=e,i=t?vG:gG;return r||t?X.jsx(et.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:X.jsx(i,{...n})}):null}var[bG,dE]=Wr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[wG,Za]=Wr({strict:!1,name:"FormControlContext"});function _G(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:i,isReadOnly:o,...s}=e,u=G.useId(),l=t||`field-${u}`,a=`${l}-label`,c=`${l}-feedback`,h=`${l}-helptext`,[f,d]=G.useState(!1),[m,g]=G.useState(!1),[p,v]=G.useState(!1),y=G.useCallback((M={},P=null)=>({id:h,...M,ref:Tn(P,D=>{D&&g(!0)})}),[h]),b=G.useCallback((M={},P=null)=>({...M,ref:P,"data-focus":gt(p),"data-disabled":gt(i),"data-invalid":gt(n),"data-readonly":gt(o),id:M.id!==void 0?M.id:a,htmlFor:M.htmlFor!==void 0?M.htmlFor:l}),[l,i,p,n,o,a]),_=G.useCallback((M={},P=null)=>({id:c,...M,ref:Tn(P,D=>{D&&d(!0)}),"aria-live":"polite"}),[c]),E=G.useCallback((M={},P=null)=>({...M,...s,ref:P,role:"group","data-focus":gt(p),"data-disabled":gt(i),"data-invalid":gt(n),"data-readonly":gt(o)}),[s,i,p,n,o]),$=G.useCallback((M={},P=null)=>({...M,ref:P,role:"presentation","aria-hidden":!0,children:M.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!o,isDisabled:!!i,isFocused:!!p,onFocus:()=>v(!0),onBlur:()=>v(!1),hasFeedbackText:f,setHasFeedbackText:d,hasHelpText:m,setHasHelpText:g,id:l,labelId:a,feedbackId:c,helpTextId:h,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:_,getRootProps:E,getLabelProps:b,getRequiredIndicatorProps:$}}var Yi=wt(function(t,r){const n=Qr("Form",t),i=qr(t),{getRootProps:o,htmlProps:s,...u}=_G(i),l=sr("chakra-form-control",t.className);return X.jsx(wG,{value:u,children:X.jsx(bG,{value:n,children:X.jsx(et.div,{...o({},r),className:l,__css:n.container})})})});Yi.displayName="FormControl";var fE=wt(function(t,r){const n=Za(),i=dE(),o=sr("chakra-form__helper-text",t.className);return X.jsx(et.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:i.helperText,className:o})});fE.displayName="FormHelperText";var[xG,SG]=Wr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),hE=wt((e,t)=>{const r=Qr("FormError",e),n=qr(e),i=Za();return i!=null&&i.isInvalid?X.jsx(xG,{value:r,children:X.jsx(et.div,{...i==null?void 0:i.getErrorMessageProps(n,t),className:sr("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});hE.displayName="FormErrorMessage";var kG=wt((e,t)=>{const r=SG(),n=Za();if(!(n!=null&&n.isInvalid))return null;const i=sr("chakra-form__error-icon",e.className);return X.jsx(oi,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:i,children:X.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});kG.displayName="FormErrorIcon";var rs=wt(function(t,r){var n;const i=Xi("FormLabel",t),o=qr(t),{className:s,children:u,requiredIndicator:l=X.jsx(pE,{}),optionalIndicator:a=null,...c}=o,h=Za(),f=(n=h==null?void 0:h.getLabelProps(c,r))!=null?n:{ref:r,...c};return X.jsxs(et.label,{...f,className:sr("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i},children:[u,h!=null&&h.isRequired?l:a]})});rs.displayName="FormLabel";var pE=wt(function(t,r){const n=Za(),i=dE();if(!(n!=null&&n.isRequired))return null;const o=sr("chakra-form__required-indicator",t.className);return X.jsx(et.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:i.requiredIndicator,className:o})});pE.displayName="RequiredIndicator";function Z2(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...o}=Q2(e);return{...o,disabled:t,readOnly:n,required:i,"aria-invalid":Lo(r),"aria-required":Lo(i),"aria-readonly":Lo(n)}}function Q2(e){var t,r,n;const i=Za(),{id:o,disabled:s,readOnly:u,required:l,isRequired:a,isInvalid:c,isReadOnly:h,isDisabled:f,onFocus:d,onBlur:m,...g}=e,p=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&p.push(i.feedbackId),i!=null&&i.hasHelpText&&p.push(i.helpTextId),{...g,"aria-describedby":p.join(" ")||void 0,id:o??(i==null?void 0:i.id),isDisabled:(t=s??f)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(r=u??h)!=null?r:i==null?void 0:i.isReadOnly,isRequired:(n=l??a)!=null?n:i==null?void 0:i.isRequired,isInvalid:c??(i==null?void 0:i.isInvalid),onFocus:Ht(i==null?void 0:i.onFocus,d),onBlur:Ht(i==null?void 0:i.onBlur,m)}}var CG={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},EG=()=>typeof document<"u",PS=!1,df=null,La=!1,Cy=!1,Ey=new Set;function J2(e,t){Ey.forEach(r=>r(e,t))}var TG=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function $G(e){return!(e.metaKey||!TG&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function OS(e){La=!0,$G(e)&&(df="keyboard",J2("keyboard",e))}function cl(e){if(df="pointer",e.type==="mousedown"||e.type==="pointerdown"){La=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;J2("pointer",e)}}function AG(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function PG(e){AG(e)&&(La=!0,df="virtual")}function OG(e){e.target===window||e.target===document||(!La&&!Cy&&(df="virtual",J2("virtual",e)),La=!1,Cy=!1)}function MG(){La=!1,Cy=!0}function MS(){return df!=="pointer"}function IG(){if(!EG()||PS)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){La=!0,e.apply(this,r)},document.addEventListener("keydown",OS,!0),document.addEventListener("keyup",OS,!0),document.addEventListener("click",PG,!0),window.addEventListener("focus",OG,!0),window.addEventListener("blur",MG,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",cl,!0),document.addEventListener("pointermove",cl,!0),document.addEventListener("pointerup",cl,!0)):(document.addEventListener("mousedown",cl,!0),document.addEventListener("mousemove",cl,!0),document.addEventListener("mouseup",cl,!0)),PS=!0}function mE(e){IG(),e(MS());const t=()=>e(MS());return Ey.add(t),()=>{Ey.delete(t)}}function RG(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function jG(e={}){const t=Q2(e),{isDisabled:r,isReadOnly:n,isRequired:i,isInvalid:o,id:s,onBlur:u,onFocus:l,"aria-describedby":a}=t,{defaultChecked:c,isChecked:h,isFocusable:f,onChange:d,isIndeterminate:m,name:g,value:p,tabIndex:v=void 0,"aria-label":y,"aria-labelledby":b,"aria-invalid":_,...E}=e,$=RG(E,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),M=Or(d),P=Or(u),D=Or(l),[F,U]=G.useState(!1),[V,A]=G.useState(!1),[O,C]=G.useState(!1),[w,S]=G.useState(!1);G.useEffect(()=>mE(U),[]);const x=G.useRef(null),[k,T]=G.useState(!0),[I,L]=G.useState(!!c),z=h!==void 0,B=z?h:I,W=G.useCallback(ie=>{if(n||r){ie.preventDefault();return}z||L(B?ie.target.checked:m?!0:ie.target.checked),M==null||M(ie)},[n,r,B,z,m,M]);Fo(()=>{x.current&&(x.current.indeterminate=!!m)},[m]),Fa(()=>{r&&A(!1)},[r,A]),Fo(()=>{const ie=x.current;if(!(ie!=null&&ie.form))return;const le=()=>{L(!!c)};return ie.form.addEventListener("reset",le),()=>{var Q;return(Q=ie.form)==null?void 0:Q.removeEventListener("reset",le)}},[]);const N=r&&!f,q=G.useCallback(ie=>{ie.key===" "&&S(!0)},[S]),j=G.useCallback(ie=>{ie.key===" "&&S(!1)},[S]);Fo(()=>{if(!x.current)return;x.current.checked!==B&&L(x.current.checked)},[x.current]);const R=G.useCallback((ie={},le=null)=>{const Q=se=>{V&&se.preventDefault(),S(!0)};return{...ie,ref:le,"data-active":gt(w),"data-hover":gt(O),"data-checked":gt(B),"data-focus":gt(V),"data-focus-visible":gt(V&&F),"data-indeterminate":gt(m),"data-disabled":gt(r),"data-invalid":gt(o),"data-readonly":gt(n),"aria-hidden":!0,onMouseDown:Ht(ie.onMouseDown,Q),onMouseUp:Ht(ie.onMouseUp,()=>S(!1)),onMouseEnter:Ht(ie.onMouseEnter,()=>C(!0)),onMouseLeave:Ht(ie.onMouseLeave,()=>C(!1))}},[w,B,r,V,F,O,m,o,n]),H=G.useCallback((ie={},le=null)=>({...ie,ref:le,"data-active":gt(w),"data-hover":gt(O),"data-checked":gt(B),"data-focus":gt(V),"data-focus-visible":gt(V&&F),"data-indeterminate":gt(m),"data-disabled":gt(r),"data-invalid":gt(o),"data-readonly":gt(n)}),[w,B,r,V,F,O,m,o,n]),K=G.useCallback((ie={},le=null)=>({...$,...ie,ref:Tn(le,Q=>{Q&&T(Q.tagName==="LABEL")}),onClick:Ht(ie.onClick,()=>{var Q;k||((Q=x.current)==null||Q.click(),requestAnimationFrame(()=>{var se;(se=x.current)==null||se.focus({preventScroll:!0})}))}),"data-disabled":gt(r),"data-checked":gt(B),"data-invalid":gt(o)}),[$,r,B,o,k]),ee=G.useCallback((ie={},le=null)=>({...ie,ref:Tn(x,le),type:"checkbox",name:g,value:p,id:s,tabIndex:v,onChange:Ht(ie.onChange,W),onBlur:Ht(ie.onBlur,P,()=>A(!1)),onFocus:Ht(ie.onFocus,D,()=>A(!0)),onKeyDown:Ht(ie.onKeyDown,q),onKeyUp:Ht(ie.onKeyUp,j),required:i,checked:B,disabled:N,readOnly:n,"aria-label":y,"aria-labelledby":b,"aria-invalid":_?!!_:o,"aria-describedby":a,"aria-disabled":r,style:CG}),[g,p,s,W,P,D,q,j,i,B,N,n,y,b,_,o,a,r,v]),Y=G.useCallback((ie={},le=null)=>({...ie,ref:le,onMouseDown:Ht(ie.onMouseDown,NG),"data-disabled":gt(r),"data-checked":gt(B),"data-invalid":gt(o)}),[B,r,o]);return{state:{isInvalid:o,isFocused:V,isChecked:B,isActive:w,isHovered:O,isIndeterminate:m,isDisabled:r,isReadOnly:n,isRequired:i},getRootProps:K,getCheckboxProps:R,getIndicatorProps:H,getInputProps:ee,getLabelProps:Y,htmlProps:$}}function NG(e){e.preventDefault(),e.stopPropagation()}var DG={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},FG={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},LG=rf({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),BG=rf({from:{opacity:0},to:{opacity:1}}),zG=rf({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),ew=wt(function(t,r){const n=hG(),i={...n,...t},o=Qr("Checkbox",i),s=qr(t),{spacing:u="0.5rem",className:l,children:a,iconColor:c,iconSize:h,icon:f=X.jsx(yG,{}),isChecked:d,isDisabled:m=n==null?void 0:n.isDisabled,onChange:g,inputProps:p,...v}=s;let y=d;n!=null&&n.value&&s.value&&(y=n.value.includes(s.value));let b=g;n!=null&&n.onChange&&s.value&&(b=eC(n.onChange,g));const{state:_,getInputProps:E,getCheckboxProps:$,getLabelProps:M,getRootProps:P}=jG({...v,isDisabled:m,isChecked:y,onChange:b}),D=mG(_.isChecked),F=G.useMemo(()=>({animation:D?_.isIndeterminate?`${BG} 20ms linear, ${zG} 200ms linear`:`${LG} 200ms linear`:void 0,fontSize:h,color:c,...o.icon}),[c,h,D,_.isIndeterminate,o.icon]),U=G.cloneElement(f,{__css:F,isIndeterminate:_.isIndeterminate,isChecked:_.isChecked});return X.jsxs(et.label,{__css:{...FG,...o.container},className:sr("chakra-checkbox",l),...P(),children:[X.jsx("input",{className:"chakra-checkbox__input",...E(p,r)}),X.jsx(et.span,{__css:{...DG,...o.control},className:"chakra-checkbox__control",...$(),children:U}),a&&X.jsx(et.span,{className:"chakra-checkbox__label",...M(),__css:{marginStart:u,...o.label},children:a})]})});ew.displayName="Checkbox";function VG(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function tw(e,t){let r=VG(e);const n=10**(t??10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function Ty(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function IS(e,t,r){return(e-t)*100/(r-t)}function UG(e,t,r){return(r-t)*e+t}function RS(e,t,r){const n=Math.round((e-t)/r)*r+t,i=Ty(r);return tw(n,i)}function rp(e,t,r){return e==null?e:(r{var F;return n==null?"":(F=w1(n,o,r))!=null?F:""}),f=typeof i<"u",d=f?i:c,m=gE(ws(d),o),g=r??m,p=G.useCallback(F=>{F!==d&&(f||h(F.toString()),a==null||a(F.toString(),ws(F)))},[a,f,d]),v=G.useCallback(F=>{let U=F;return l&&(U=rp(U,s,u)),tw(U,g)},[g,l,u,s]),y=G.useCallback((F=o)=>{let U;d===""?U=ws(F):U=ws(d)+F,U=v(U),p(U)},[v,o,p,d]),b=G.useCallback((F=o)=>{let U;d===""?U=ws(-F):U=ws(d)-F,U=v(U),p(U)},[v,o,p,d]),_=G.useCallback(()=>{var F;let U;n==null?U="":U=(F=w1(n,o,r))!=null?F:s,p(U)},[n,r,o,p,s]),E=G.useCallback(F=>{var U;const V=(U=w1(F,o,g))!=null?U:s;p(V)},[g,o,p,s]),$=ws(d);return{isOutOfRange:$>u||${const o=typeof e=="function"?e():e??document;if(!(!r||!o))return o.addEventListener(t,i,n),()=>{o.removeEventListener(t,i,n)}},[t,e,n,i,r]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,n)}}function WG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function $y(e,t){return $y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$y(e,t)}function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function qG(e,t){if(Ba(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ba(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yE(e){var t=qG(e,"string");return Ba(t)==="symbol"?t:String(t)}function jc(e,t,r){return t=yE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bE(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function wE(e){var t;if(!bE(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function KG(e){var t,r;return(r=(t=_E(e))==null?void 0:t.defaultView)!=null?r:window}function _E(e){return bE(e)?e.ownerDocument:document}function GG(e){return _E(e).activeElement}var xE=e=>e.hasAttribute("tabindex"),XG=e=>xE(e)&&e.tabIndex===-1;function YG(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function SE(e){return e.parentElement&&SE(e.parentElement)?!0:e.hidden}function ZG(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function QG(e){if(!wE(e)||SE(e)||YG(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():ZG(e)?!0:xE(e)}function JG(e){return e?wE(e)&&QG(e)&&!XG(e):!1}var x0=wt(function(t,r){const{htmlSize:n,...i}=t,o=Qr("Input",i),s=qr(i),u=Z2(s),l=sr("chakra-input",t.className);return X.jsx(et.input,{size:n,...u,__css:o.field,ref:r,className:l})});x0.displayName="Input";x0.id="Input";var kE=wt(function(t,r){const n=Xi("Link",t),{className:i,isExternal:o,...s}=qr(t);return X.jsx(et.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:r,className:sr("chakra-link",i),...s,__css:n})});kE.displayName="Link";var[eX,CE]=Wr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ff=wt(function(t,r){const n=Qr("List",t),{children:i,styleType:o="none",stylePosition:s,spacing:u,...l}=qr(t),a=aE(i),h=u?{["& > *:not(style) ~ *:not(style)"]:{mt:u}}:{};return X.jsx(eX,{value:n,children:X.jsx(et.ul,{ref:r,listStyleType:o,listStylePosition:s,role:"list",__css:{...n.container,...h},...l,children:a})})});ff.displayName="List";var tX=wt((e,t)=>{const{as:r,...n}=e;return X.jsx(ff,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});tX.displayName="OrderedList";var rX=wt(function(t,r){const{as:n,...i}=t;return X.jsx(ff,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...i})});rX.displayName="UnorderedList";var rw=wt(function(t,r){const n=CE();return X.jsx(et.li,{ref:r,...t,__css:n.item})});rw.displayName="ListItem";var EE=wt(function(t,r){const n=CE();return X.jsx(oi,{ref:r,role:"presentation",...t,__css:n.icon})});EE.displayName="ListIcon";var S0=wt(function(t,r){const{templateAreas:n,gap:i,rowGap:o,columnGap:s,column:u,row:l,autoFlow:a,autoRows:c,templateRows:h,autoColumns:f,templateColumns:d,...m}=t,g={display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:o,gridColumnGap:s,gridAutoColumns:f,gridColumn:u,gridRow:l,gridAutoFlow:a,gridAutoRows:c,gridTemplateRows:h,gridTemplateColumns:d};return X.jsx(et.div,{ref:r,__css:g,...m})});S0.displayName="Grid";var TE=Object.freeze(["base","sm","md","lg","xl","2xl"]);function $E(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):ln(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function nX(e,t=TE){const r={};return e.forEach((n,i)=>{const o=t[i];n!=null&&(r[o]=n)}),r}var hf=wt(function(t,r){const n=Xi("Text",t),{className:i,align:o,decoration:s,casing:u,...l}=qr(t),a=PC({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return X.jsx(et.p,{ref:r,className:sr("chakra-text",t.className),...a,...l,__css:n})});hf.displayName="Text";var AE=e=>X.jsx(et.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});AE.displayName="StackItem";function iX(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":$E(r,i=>n[i])}}var vu=wt((e,t)=>{const{isInline:r,direction:n,align:i,justify:o,spacing:s="0.5rem",wrap:u,children:l,divider:a,className:c,shouldWrapChildren:h,...f}=e,d=r?"row":n??"column",m=G.useMemo(()=>iX({spacing:s,direction:d}),[s,d]),g=!!a,p=!h&&!g,v=G.useMemo(()=>{const b=aE(l);return p?b:b.map((_,E)=>{const $=typeof _.key<"u"?_.key:E,M=E+1===b.length,D=h?X.jsx(AE,{children:_},$):_;if(!g)return D;const F=G.cloneElement(a,{__css:m}),U=M?null:F;return X.jsxs(G.Fragment,{children:[D,U]},$)})},[a,m,g,p,h,l]),y=sr("chakra-stack",c);return X.jsx(et.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:d,flexWrap:u,gap:g?void 0:s,className:y,...f,children:v})});vu.displayName="Stack";var PE=wt((e,t)=>X.jsx(vu,{align:"center",...e,direction:"row",ref:t}));PE.displayName="HStack";function jS(e){return $E(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Vs=wt(function(t,r){const{area:n,colSpan:i,colStart:o,colEnd:s,rowEnd:u,rowSpan:l,rowStart:a,...c}=t,h=PC({gridArea:n,gridColumn:jS(i),gridRow:jS(l),gridColumnStart:o,gridColumnEnd:s,gridRowStart:a,gridRowEnd:u});return X.jsx(et.div,{ref:r,__css:h,...c})});Vs.displayName="GridItem";var nw=wt(function(t,r){const n=Xi("Heading",t),{className:i,...o}=qr(t);return X.jsx(et.h2,{ref:r,className:sr("chakra-heading",t.className),...o,__css:n})});nw.displayName="Heading";var nr=et("div");nr.displayName="Box";var OE=wt(function(t,r){const{size:n,centerContent:i=!0,...o}=t,s=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return X.jsx(nr,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...o})});OE.displayName="Square";var oX=wt(function(t,r){const{size:n,...i}=t;return X.jsx(OE,{size:n,ref:r,borderRadius:"9999px",...i})});oX.displayName="Circle";var iw=wt(function(t,r){const{borderLeftWidth:n,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:s,borderWidth:u,borderStyle:l,borderColor:a,...c}=Xi("Divider",t),{className:h,orientation:f="horizontal",__css:d,...m}=qr(t),g={vertical:{borderLeftWidth:n||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||u||"1px",width:"100%"}};return X.jsx(et.hr,{ref:r,"aria-orientation":f,...m,__css:{...c,border:"0",borderColor:a,borderStyle:l,...g[f],...d},className:sr("chakra-divider",h)})});iw.displayName="Divider";function sX(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:i}=uU(),o=Array.isArray(e)?e:[e];let s=Array.isArray(n)?n:[n];s=s.filter(a=>a!=null);const[u,l]=G.useState(()=>o.map((a,c)=>({media:a,matches:r?!!s[c]:i().matchMedia(a).matches})));return G.useEffect(()=>{const a=i();l(o.map(f=>({media:f,matches:a.matchMedia(f).matches})));const c=o.map(f=>a.matchMedia(f)),h=f=>{l(d=>d.slice().map(m=>m.media===f.media?{...m,matches:f.matches}:m))};return c.forEach(f=>{typeof f.addListener=="function"?f.addListener(h):f.addEventListener("change",h)}),()=>{c.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(h):f.removeEventListener("change",h)})}},[i]),u.map(a=>a.matches)}function aX(e,t,r=TE){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let i=r.indexOf(t);for(;i>=0;){const o=r[i];if(e.hasOwnProperty(o)){n=i;break}i-=1}if(n!==-1){const o=r[n];return e[o]}}function lX(e){var t,r;const n=ln(e)?e:{fallback:e??"base"},o=Ga().__breakpoints.details.map(({minMaxQuery:a,breakpoint:c})=>({breakpoint:c,query:a.replace("@media screen and ","")})),s=o.map(a=>a.breakpoint===n.fallback),l=sX(o.map(a=>a.query),{fallback:s,ssr:n.ssr}).findIndex(a=>a==!0);return(r=(t=o[l])==null?void 0:t.breakpoint)!=null?r:n.fallback}function uX(e,t){var r;const n=ln(t)?t:{fallback:t??"base"},i=lX(n),o=Ga();if(!i)return;const s=Array.from(((r=o.__breakpoints)==null?void 0:r.keys)||[]),u=Array.isArray(e)?Object.fromEntries(Object.entries(nX(e,s)).map(([l,a])=>[l,a])):e;return aX(u,i,s)}function cX(e){const t=e.current;if(!t)return!1;const r=GG(t);return!r||t.contains(r)?!1:!!JG(r)}function dX(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,o=r&&!n;Fa(()=>{if(!o||cX(e))return;const s=(i==null?void 0:i.current)||e.current;let u;if(s)return u=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(u)}},[o,e,i])}var dl=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),qn={arrowShadowColor:dl("--popper-arrow-shadow-color"),arrowSize:dl("--popper-arrow-size","8px"),arrowSizeHalf:dl("--popper-arrow-size-half"),arrowBg:dl("--popper-arrow-bg"),transformOrigin:dl("--popper-transform-origin"),arrowOffset:dl("--popper-arrow-offset")};function fX(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var hX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},pX=e=>hX[e],NS={scroll:!0,resize:!0};function mX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...NS,...e}}:t={enabled:e,options:NS},t}var gX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},vX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{DS(e)},effect:({state:e})=>()=>{DS(e)}},DS=e=>{e.elements.popper.style.setProperty(qn.transformOrigin.var,pX(e.placement))},yX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{bX(e)}},bX=e=>{var t;if(!e.placement)return;const r=wX(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:qn.arrowSize.varRef,height:qn.arrowSize.varRef,zIndex:-1});const n={[qn.arrowSizeHalf.var]:`calc(${qn.arrowSize.varRef} / 2 - 1px)`,[qn.arrowOffset.var]:`calc(${qn.arrowSizeHalf.varRef} * -1)`};for(const i in n)e.elements.arrow.style.setProperty(i,n[i])}},wX=e=>{if(e.startsWith("top"))return{property:"bottom",value:qn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:qn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:qn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:qn.arrowOffset.varRef}},_X={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{FS(e)},effect:({state:e})=>()=>{FS(e)}},FS=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=fX(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:qn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},xX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},SX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function kX(e,t="ltr"){var r,n;const i=((r=xX[e])==null?void 0:r[t])||e;return t==="ltr"?i:(n=SX[e])!=null?n:i}var Fn="top",xi="bottom",Si="right",Ln="left",ow="auto",pf=[Fn,xi,Si,Ln],yu="start",zd="end",CX="clippingParents",ME="viewport",vc="popper",EX="reference",LS=pf.reduce(function(e,t){return e.concat([t+"-"+yu,t+"-"+zd])},[]),IE=[].concat(pf,[ow]).reduce(function(e,t){return e.concat([t,t+"-"+yu,t+"-"+zd])},[]),TX="beforeRead",$X="read",AX="afterRead",PX="beforeMain",OX="main",MX="afterMain",IX="beforeWrite",RX="write",jX="afterWrite",NX=[TX,$X,AX,PX,OX,MX,IX,RX,jX];function _o(e){return e?(e.nodeName||"").toLowerCase():null}function ei(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function za(e){var t=ei(e).Element;return e instanceof t||e instanceof Element}function bi(e){var t=ei(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sw(e){if(typeof ShadowRoot>"u")return!1;var t=ei(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function DX(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!bi(o)||!_o(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var u=i[s];u===!1?o.removeAttribute(s):o.setAttribute(s,u===!0?"":u)}))})}function FX(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=s.reduce(function(l,a){return l[a]="",l},{});!bi(i)||!_o(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const LX={name:"applyStyles",enabled:!0,phase:"write",fn:DX,effect:FX,requires:["computeStyles"]};function wo(e){return e.split("-")[0]}var Ma=Math.max,rm=Math.min,bu=Math.round;function Ay(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function RE(){return!/^((?!chrome|android).)*safari/i.test(Ay())}function wu(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&bi(e)&&(i=e.offsetWidth>0&&bu(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&bu(n.height)/e.offsetHeight||1);var s=za(e)?ei(e):window,u=s.visualViewport,l=!RE()&&r,a=(n.left+(l&&u?u.offsetLeft:0))/i,c=(n.top+(l&&u?u.offsetTop:0))/o,h=n.width/i,f=n.height/o;return{width:h,height:f,top:c,right:a+h,bottom:c+f,left:a,x:a,y:c}}function aw(e){var t=wu(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function jE(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sw(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Jo(e){return ei(e).getComputedStyle(e)}function BX(e){return["table","td","th"].indexOf(_o(e))>=0}function ta(e){return((za(e)?e.ownerDocument:e.document)||window.document).documentElement}function k0(e){return _o(e)==="html"?e:e.assignedSlot||e.parentNode||(sw(e)?e.host:null)||ta(e)}function BS(e){return!bi(e)||Jo(e).position==="fixed"?null:e.offsetParent}function zX(e){var t=/firefox/i.test(Ay()),r=/Trident/i.test(Ay());if(r&&bi(e)){var n=Jo(e);if(n.position==="fixed")return null}var i=k0(e);for(sw(i)&&(i=i.host);bi(i)&&["html","body"].indexOf(_o(i))<0;){var o=Jo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function mf(e){for(var t=ei(e),r=BS(e);r&&BX(r)&&Jo(r).position==="static";)r=BS(r);return r&&(_o(r)==="html"||_o(r)==="body"&&Jo(r).position==="static")?t:r||zX(e)||t}function lw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nd(e,t,r){return Ma(e,rm(t,r))}function VX(e,t,r){var n=nd(e,t,r);return n>r?r:n}function NE(){return{top:0,right:0,bottom:0,left:0}}function DE(e){return Object.assign({},NE(),e)}function FE(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var UX=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,DE(typeof t!="number"?t:FE(t,pf))};function HX(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,u=wo(r.placement),l=lw(u),a=[Ln,Si].indexOf(u)>=0,c=a?"height":"width";if(!(!o||!s)){var h=UX(i.padding,r),f=aw(o),d=l==="y"?Fn:Ln,m=l==="y"?xi:Si,g=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],p=s[l]-r.rects.reference[l],v=mf(o),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-p/2,_=h[d],E=y-f[c]-h[m],$=y/2-f[c]/2+b,M=nd(_,$,E),P=l;r.modifiersData[n]=(t={},t[P]=M,t.centerOffset=M-$,t)}}function WX(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||jE(t.elements.popper,i)&&(t.elements.arrow=i))}const qX={name:"arrow",enabled:!0,phase:"main",fn:HX,effect:WX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _u(e){return e.split("-")[1]}var KX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function GX(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:bu(r*i)/i||0,y:bu(n*i)/i||0}}function zS(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,u=e.position,l=e.gpuAcceleration,a=e.adaptive,c=e.roundOffsets,h=e.isFixed,f=s.x,d=f===void 0?0:f,m=s.y,g=m===void 0?0:m,p=typeof c=="function"?c({x:d,y:g}):{x:d,y:g};d=p.x,g=p.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=Ln,_=Fn,E=window;if(a){var $=mf(r),M="clientHeight",P="clientWidth";if($===ei(r)&&($=ta(r),Jo($).position!=="static"&&u==="absolute"&&(M="scrollHeight",P="scrollWidth")),$=$,i===Fn||(i===Ln||i===Si)&&o===zd){_=xi;var D=h&&$===E&&E.visualViewport?E.visualViewport.height:$[M];g-=D-n.height,g*=l?1:-1}if(i===Ln||(i===Fn||i===xi)&&o===zd){b=Si;var F=h&&$===E&&E.visualViewport?E.visualViewport.width:$[P];d-=F-n.width,d*=l?1:-1}}var U=Object.assign({position:u},a&&KX),V=c===!0?GX({x:d,y:g},ei(r)):{x:d,y:g};if(d=V.x,g=V.y,l){var A;return Object.assign({},U,(A={},A[_]=y?"0":"",A[b]=v?"0":"",A.transform=(E.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",A))}return Object.assign({},U,(t={},t[_]=y?g+"px":"",t[b]=v?d+"px":"",t.transform="",t))}function XX(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,u=r.roundOffsets,l=u===void 0?!0:u,a={placement:wo(t.placement),variation:_u(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zS(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zS(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const YX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:XX,data:{}};var ch={passive:!0};function ZX(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,u=s===void 0?!0:s,l=ei(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&a.forEach(function(c){c.addEventListener("scroll",r.update,ch)}),u&&l.addEventListener("resize",r.update,ch),function(){o&&a.forEach(function(c){c.removeEventListener("scroll",r.update,ch)}),u&&l.removeEventListener("resize",r.update,ch)}}const QX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZX,data:{}};var JX={left:"right",right:"left",bottom:"top",top:"bottom"};function np(e){return e.replace(/left|right|bottom|top/g,function(t){return JX[t]})}var eY={start:"end",end:"start"};function VS(e){return e.replace(/start|end/g,function(t){return eY[t]})}function uw(e){var t=ei(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function cw(e){return wu(ta(e)).left+uw(e).scrollLeft}function tY(e,t){var r=ei(e),n=ta(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,u=0,l=0;if(i){o=i.width,s=i.height;var a=RE();(a||!a&&t==="fixed")&&(u=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:u+cw(e),y:l}}function rY(e){var t,r=ta(e),n=uw(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ma(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Ma(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-n.scrollLeft+cw(e),l=-n.scrollTop;return Jo(i||r).direction==="rtl"&&(u+=Ma(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:u,y:l}}function dw(e){var t=Jo(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function LE(e){return["html","body","#document"].indexOf(_o(e))>=0?e.ownerDocument.body:bi(e)&&dw(e)?e:LE(k0(e))}function id(e,t){var r;t===void 0&&(t=[]);var n=LE(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ei(n),s=i?[o].concat(o.visualViewport||[],dw(n)?n:[]):n,u=t.concat(s);return i?u:u.concat(id(k0(s)))}function Py(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nY(e,t){var r=wu(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function US(e,t,r){return t===ME?Py(tY(e,r)):za(t)?nY(t,r):Py(rY(ta(e)))}function iY(e){var t=id(k0(e)),r=["absolute","fixed"].indexOf(Jo(e).position)>=0,n=r&&bi(e)?mf(e):e;return za(n)?t.filter(function(i){return za(i)&&jE(i,n)&&_o(i)!=="body"}):[]}function oY(e,t,r,n){var i=t==="clippingParents"?iY(e):[].concat(t),o=[].concat(i,[r]),s=o[0],u=o.reduce(function(l,a){var c=US(e,a,n);return l.top=Ma(c.top,l.top),l.right=rm(c.right,l.right),l.bottom=rm(c.bottom,l.bottom),l.left=Ma(c.left,l.left),l},US(e,s,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function BE(e){var t=e.reference,r=e.element,n=e.placement,i=n?wo(n):null,o=n?_u(n):null,s=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,l;switch(i){case Fn:l={x:s,y:t.y-r.height};break;case xi:l={x:s,y:t.y+t.height};break;case Si:l={x:t.x+t.width,y:u};break;case Ln:l={x:t.x-r.width,y:u};break;default:l={x:t.x,y:t.y}}var a=i?lw(i):null;if(a!=null){var c=a==="y"?"height":"width";switch(o){case yu:l[a]=l[a]-(t[c]/2-r[c]/2);break;case zd:l[a]=l[a]+(t[c]/2-r[c]/2);break}}return l}function Vd(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,u=r.boundary,l=u===void 0?CX:u,a=r.rootBoundary,c=a===void 0?ME:a,h=r.elementContext,f=h===void 0?vc:h,d=r.altBoundary,m=d===void 0?!1:d,g=r.padding,p=g===void 0?0:g,v=DE(typeof p!="number"?p:FE(p,pf)),y=f===vc?EX:vc,b=e.rects.popper,_=e.elements[m?y:f],E=oY(za(_)?_:_.contextElement||ta(e.elements.popper),l,c,s),$=wu(e.elements.reference),M=BE({reference:$,element:b,strategy:"absolute",placement:i}),P=Py(Object.assign({},b,M)),D=f===vc?P:$,F={top:E.top-D.top+v.top,bottom:D.bottom-E.bottom+v.bottom,left:E.left-D.left+v.left,right:D.right-E.right+v.right},U=e.modifiersData.offset;if(f===vc&&U){var V=U[i];Object.keys(F).forEach(function(A){var O=[Si,xi].indexOf(A)>=0?1:-1,C=[Fn,xi].indexOf(A)>=0?"y":"x";F[A]+=V[C]*O})}return F}function sY(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,u=r.flipVariations,l=r.allowedAutoPlacements,a=l===void 0?IE:l,c=_u(n),h=c?u?LS:LS.filter(function(m){return _u(m)===c}):pf,f=h.filter(function(m){return a.indexOf(m)>=0});f.length===0&&(f=h);var d=f.reduce(function(m,g){return m[g]=Vd(e,{placement:g,boundary:i,rootBoundary:o,padding:s})[wo(g)],m},{});return Object.keys(d).sort(function(m,g){return d[m]-d[g]})}function aY(e){if(wo(e)===ow)return[];var t=np(e);return[VS(e),t,VS(t)]}function lY(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!0:s,l=r.fallbackPlacements,a=r.padding,c=r.boundary,h=r.rootBoundary,f=r.altBoundary,d=r.flipVariations,m=d===void 0?!0:d,g=r.allowedAutoPlacements,p=t.options.placement,v=wo(p),y=v===p,b=l||(y||!m?[np(p)]:aY(p)),_=[p].concat(b).reduce(function(B,W){return B.concat(wo(W)===ow?sY(t,{placement:W,boundary:c,rootBoundary:h,padding:a,flipVariations:m,allowedAutoPlacements:g}):W)},[]),E=t.rects.reference,$=t.rects.popper,M=new Map,P=!0,D=_[0],F=0;F<_.length;F++){var U=_[F],V=wo(U),A=_u(U)===yu,O=[Fn,xi].indexOf(V)>=0,C=O?"width":"height",w=Vd(t,{placement:U,boundary:c,rootBoundary:h,altBoundary:f,padding:a}),S=O?A?Si:Ln:A?xi:Fn;E[C]>$[C]&&(S=np(S));var x=np(S),k=[];if(o&&k.push(w[V]<=0),u&&k.push(w[S]<=0,w[x]<=0),k.every(function(B){return B})){D=U,P=!1;break}M.set(U,k)}if(P)for(var T=m?3:1,I=function(W){var N=_.find(function(q){var j=M.get(q);if(j)return j.slice(0,W).every(function(R){return R})});if(N)return D=N,"break"},L=T;L>0;L--){var z=I(L);if(z==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const uY={name:"flip",enabled:!0,phase:"main",fn:lY,requiresIfExists:["offset"],data:{_skip:!1}};function HS(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function WS(e){return[Fn,Si,xi,Ln].some(function(t){return e[t]>=0})}function cY(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Vd(t,{elementContext:"reference"}),u=Vd(t,{altBoundary:!0}),l=HS(s,n),a=HS(u,i,o),c=WS(l),h=WS(a);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:a,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const dY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cY};function fY(e,t,r){var n=wo(e),i=[Ln,Fn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],u=o[1];return s=s||0,u=(u||0)*i,[Ln,Si].indexOf(n)>=0?{x:u,y:s}:{x:s,y:u}}function hY(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=IE.reduce(function(c,h){return c[h]=fY(h,t.rects,o),c},{}),u=s[t.placement],l=u.x,a=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=a),t.modifiersData[n]=s}const pY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hY};function mY(e){var t=e.state,r=e.name;t.modifiersData[r]=BE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const gY={name:"popperOffsets",enabled:!0,phase:"read",fn:mY,data:{}};function vY(e){return e==="x"?"y":"x"}function yY(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!1:s,l=r.boundary,a=r.rootBoundary,c=r.altBoundary,h=r.padding,f=r.tether,d=f===void 0?!0:f,m=r.tetherOffset,g=m===void 0?0:m,p=Vd(t,{boundary:l,rootBoundary:a,padding:h,altBoundary:c}),v=wo(t.placement),y=_u(t.placement),b=!y,_=lw(v),E=vY(_),$=t.modifiersData.popperOffsets,M=t.rects.reference,P=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,F=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if($){if(o){var A,O=_==="y"?Fn:Ln,C=_==="y"?xi:Si,w=_==="y"?"height":"width",S=$[_],x=S+p[O],k=S-p[C],T=d?-P[w]/2:0,I=y===yu?M[w]:P[w],L=y===yu?-P[w]:-M[w],z=t.elements.arrow,B=d&&z?aw(z):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:NE(),N=W[O],q=W[C],j=nd(0,M[w],B[w]),R=b?M[w]/2-T-j-N-F.mainAxis:I-j-N-F.mainAxis,H=b?-M[w]/2+T+j+q+F.mainAxis:L+j+q+F.mainAxis,K=t.elements.arrow&&mf(t.elements.arrow),ee=K?_==="y"?K.clientTop||0:K.clientLeft||0:0,Y=(A=U==null?void 0:U[_])!=null?A:0,te=S+R-Y-ee,ie=S+H-Y,le=nd(d?rm(x,te):x,S,d?Ma(k,ie):k);$[_]=le,V[_]=le-S}if(u){var Q,se=_==="x"?Fn:Ln,ae=_==="x"?xi:Si,fe=$[E],de=E==="y"?"height":"width",pe=fe+p[se],ye=fe-p[ae],we=[Fn,Ln].indexOf(v)!==-1,Ce=(Q=U==null?void 0:U[E])!=null?Q:0,Ie=we?pe:fe-M[de]-P[de]-Ce+F.altAxis,Re=we?fe+M[de]+P[de]-Ce-F.altAxis:ye,be=d&&we?VX(Ie,fe,Re):nd(d?Ie:pe,fe,d?Re:ye);$[E]=be,V[E]=be-fe}t.modifiersData[n]=V}}const bY={name:"preventOverflow",enabled:!0,phase:"main",fn:yY,requiresIfExists:["offset"]};function wY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _Y(e){return e===ei(e)||!bi(e)?uw(e):wY(e)}function xY(e){var t=e.getBoundingClientRect(),r=bu(t.width)/e.offsetWidth||1,n=bu(t.height)/e.offsetHeight||1;return r!==1||n!==1}function SY(e,t,r){r===void 0&&(r=!1);var n=bi(t),i=bi(t)&&xY(t),o=ta(t),s=wu(e,i,r),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((_o(t)!=="body"||dw(o))&&(u=_Y(t)),bi(t)?(l=wu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=cw(o))),{x:s.left+u.scrollLeft-l.x,y:s.top+u.scrollTop-l.y,width:s.width,height:s.height}}function kY(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(u){if(!r.has(u)){var l=t.get(u);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function CY(e){var t=kY(e);return NX.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function EY(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function TY(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var qS={placement:"bottom",modifiers:[],strategy:"absolute"};function KS(){for(var e=arguments.length,t=new Array(e),r=0;r{}),b=G.useCallback(()=>{var F;!t||!m.current||!g.current||((F=y.current)==null||F.call(y),p.current=PY(m.current,g.current,{placement:v,modifiers:[_X,yX,vX,{...gX,enabled:!!f},{name:"eventListeners",...mX(s)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:u??[0,l]}},{name:"flip",enabled:!!a,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:c}},...r??[]],strategy:i}),p.current.forceUpdate(),y.current=p.current.destroy)},[v,t,r,f,s,o,u,l,a,h,c,i]);G.useEffect(()=>()=>{var F;!m.current&&!g.current&&((F=p.current)==null||F.destroy(),p.current=null)},[]);const _=G.useCallback(F=>{m.current=F,b()},[b]),E=G.useCallback((F={},U=null)=>({...F,ref:Tn(_,U)}),[_]),$=G.useCallback(F=>{g.current=F,b()},[b]),M=G.useCallback((F={},U=null)=>({...F,ref:Tn($,U),style:{...F.style,position:i,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[i,$,f]),P=G.useCallback((F={},U=null)=>{const{size:V,shadowColor:A,bg:O,style:C,...w}=F;return{...w,ref:U,"data-popper-arrow":"",style:MY(F)}},[]),D=G.useCallback((F={},U=null)=>({...F,ref:U,"data-popper-arrow-inner":""}),[]);return{update(){var F;(F=p.current)==null||F.update()},forceUpdate(){var F;(F=p.current)==null||F.forceUpdate()},transformOrigin:qn.transformOrigin.varRef,referenceRef:_,popperRef:$,getPopperProps:M,getArrowProps:P,getArrowInnerProps:D,getReferenceProps:E}}function MY(e){const{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function IY(e={}){const{onClose:t,onOpen:r,isOpen:n,id:i}=e,o=Or(r),s=Or(t),[u,l]=G.useState(e.defaultIsOpen||!1),a=n!==void 0?n:u,c=n!==void 0,h=G.useId(),f=i??`disclosure-${h}`,d=G.useCallback(()=>{c||l(!1),s==null||s()},[c,s]),m=G.useCallback(()=>{c||l(!0),o==null||o()},[c,o]),g=G.useCallback(()=>{a?d():m()},[a,m,d]);function p(y={}){return{...y,"aria-expanded":a,"aria-controls":f,onClick(b){var _;(_=y.onClick)==null||_.call(y,b),g()}}}function v(y={}){return{...y,hidden:!a,id:f}}return{isOpen:a,onOpen:m,onClose:d,onToggle:g,isControlled:c,getButtonProps:p,getDisclosureProps:v}}function RY(e){const{ref:t,handler:r,enabled:n=!0}=e,i=Or(r),s=G.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;G.useEffect(()=>{if(!n)return;const u=h=>{_1(h,t)&&(s.isPointerDown=!0)},l=h=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&r&&_1(h,t)&&(s.isPointerDown=!1,i(h))},a=h=>{s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&_1(h,t)&&(s.isPointerDown=!1,i(h))},c=zE(t.current);return c.addEventListener("mousedown",u,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",u,!0),c.addEventListener("touchend",a,!0),()=>{c.removeEventListener("mousedown",u,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",u,!0),c.removeEventListener("touchend",a,!0)}},[r,t,i,s,n])}function _1(e,t){var r;const n=e.target;return n&&!zE(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function zE(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function jY(e){const{isOpen:t,ref:r}=e,[n,i]=G.useState(t),[o,s]=G.useState(!1);return G.useEffect(()=>{o||(i(t),s(!0))},[t,o,n]),vE(()=>r.current,"animationend",()=>{i(t)}),{present:!(t?!1:!n),onComplete(){var l;const a=KG(r.current),c=new a.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(c)}}}var[NY,h6e,DY,p6e]=sG(),[FY,m6e]=Wr({strict:!1,name:"MenuContext"});function LY(e,...t){const r=G.useId(),n=e||r;return G.useMemo(()=>t.map(i=>`${i}-${n}`),[n,t])}function BY(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function zY(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:i,autoSelect:o=!0,isLazy:s,isOpen:u,defaultIsOpen:l,onClose:a,onOpen:c,placement:h="bottom-start",lazyBehavior:f="unmount",direction:d,computePositionOnMount:m=!1,...g}=e,p=G.useRef(null),v=G.useRef(null),y=DY(),b=G.useCallback(()=>{requestAnimationFrame(()=>{var z;(z=p.current)==null||z.focus({preventScroll:!1})})},[]),_=G.useCallback(()=>{const z=setTimeout(()=>{var B;if(i)(B=i.current)==null||B.focus();else{const W=y.firstEnabled();W&&A(W.index)}});x.current.add(z)},[y,i]),E=G.useCallback(()=>{const z=setTimeout(()=>{const B=y.lastEnabled();B&&A(B.index)});x.current.add(z)},[y]),$=G.useCallback(()=>{c==null||c(),o?_():b()},[o,_,b,c]),{isOpen:M,onOpen:P,onClose:D,onToggle:F}=IY({isOpen:u,defaultIsOpen:l,onClose:a,onOpen:$});RY({enabled:M&&n,ref:p,handler:z=>{var B;(B=v.current)!=null&&B.contains(z.target)||D()}});const U=OY({...g,enabled:M||m,placement:h,direction:d}),[V,A]=G.useState(-1);Fa(()=>{M||A(-1)},[M]),dX(p,{focusRef:v,visible:M,shouldFocus:!0});const O=jY({isOpen:M,ref:p}),[C,w]=LY(t,"menu-button","menu-list"),S=G.useCallback(()=>{P(),b()},[P,b]),x=G.useRef(new Set([]));G.useEffect(()=>{const z=x.current;return()=>{z.forEach(B=>clearTimeout(B)),z.clear()}},[]);const k=G.useCallback(()=>{P(),_()},[_,P]),T=G.useCallback(()=>{P(),E()},[P,E]),I=G.useCallback(()=>{var z,B;const W=BY(p.current),N=(z=p.current)==null?void 0:z.contains(W.activeElement);if(!(M&&!N))return;const j=(B=y.item(V))==null?void 0:B.node;j==null||j.focus({preventScroll:!0})},[M,V,y]),L=G.useRef(null);return{openAndFocusMenu:S,openAndFocusFirstItem:k,openAndFocusLastItem:T,onTransitionEnd:I,unstable__animationState:O,descendants:y,popper:U,buttonId:C,menuId:w,forceUpdate:U.forceUpdate,orientation:"vertical",isOpen:M,onToggle:F,onOpen:P,onClose:D,menuRef:p,buttonRef:v,focusedIndex:V,closeOnSelect:r,closeOnBlur:n,autoSelect:o,setFocusedIndex:A,isLazy:s,lazyBehavior:f,initialFocusRef:i,rafId:L}}var[VY,UY]=Wr({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),VE=e=>{const{children:t}=e,r=Qr("Menu",e),n=qr(e),{direction:i}=Ga(),{descendants:o,...s}=zY({...n,direction:i}),u=G.useMemo(()=>s,[s]),{isOpen:l,onClose:a,forceUpdate:c}=u;return X.jsx(NY,{value:o,children:X.jsx(FY,{value:u,children:X.jsx(VY,{value:r,children:Ro(t,{isOpen:l,onClose:a,forceUpdate:c})})})})};VE.displayName="Menu";var UE=e=>{const{className:t,children:r,...n}=e,i=UY(),o=G.Children.only(r),s=G.isValidElement(o)?G.cloneElement(o,{focusable:"false","aria-hidden":!0,className:sr("chakra-menu__icon",o.props.className)}):null,u=sr("chakra-menu__icon-wrapper",t);return X.jsx(et.span,{className:u,...n,__css:i.icon,children:s})};UE.displayName="MenuIcon";var HY=e=>X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),WY=e=>X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function GS(e,t,r,n){G.useEffect(()=>{var i;if(!e.current||!n)return;const o=(i=e.current.ownerDocument.defaultView)!=null?i:window,s=Array.isArray(t)?t:[t],u=new o.MutationObserver(l=>{for(const a of l)a.type==="attributes"&&a.attributeName&&s.includes(a.attributeName)&&r(a)});return u.observe(e.current,{attributes:!0,attributeFilter:s}),()=>u.disconnect()})}function qY(e,t){const r=Or(e);G.useEffect(()=>{let n=null;const i=()=>r();return t!==null&&(n=window.setInterval(i,t)),()=>{n&&window.clearInterval(n)}},[t,r])}var KY=50,XS=300;function GY(e,t){const[r,n]=G.useState(!1),[i,o]=G.useState(null),[s,u]=G.useState(!0),l=G.useRef(null),a=()=>clearTimeout(l.current);qY(()=>{i==="increment"&&e(),i==="decrement"&&t()},r?KY:null);const c=G.useCallback(()=>{s&&e(),l.current=setTimeout(()=>{u(!1),n(!0),o("increment")},XS)},[e,s]),h=G.useCallback(()=>{s&&t(),l.current=setTimeout(()=>{u(!1),n(!0),o("decrement")},XS)},[t,s]),f=G.useCallback(()=>{u(!0),n(!1),a()},[]);return G.useEffect(()=>()=>a(),[]),{up:c,down:h,stop:f,isSpinning:r}}var XY=/^[Ee0-9+\-.]$/;function YY(e){return XY.test(e)}function ZY(e,t){if(e.key==null)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||r?!0:t(e.key)}function QY(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:n=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:l,isRequired:a,isInvalid:c,pattern:h="[0-9]*(.[0-9]+)?",inputMode:f="decimal",allowMouseWheel:d,id:m,onChange:g,precision:p,name:v,"aria-describedby":y,"aria-label":b,"aria-labelledby":_,onFocus:E,onBlur:$,onInvalid:M,getAriaValueText:P,isValidCharacter:D,format:F,parse:U,...V}=e,A=Or(E),O=Or($),C=Or(M),w=Or(D??YY),S=Or(P),x=HG(e),{update:k,increment:T,decrement:I}=x,[L,z]=G.useState(!1),B=!(u||l),W=G.useRef(null),N=G.useRef(null),q=G.useRef(null),j=G.useRef(null),R=G.useCallback(be=>be.split("").filter(w).join(""),[w]),H=G.useCallback(be=>{var Ae;return(Ae=U==null?void 0:U(be))!=null?Ae:be},[U]),K=G.useCallback(be=>{var Ae;return((Ae=F==null?void 0:F(be))!=null?Ae:be).toString()},[F]);Fa(()=>{(x.valueAsNumber>o||x.valueAsNumber{if(!W.current)return;if(W.current.value!=x.value){const Ae=H(W.current.value);x.setValue(R(Ae))}},[H,R]);const ee=G.useCallback((be=s)=>{B&&T(be)},[T,B,s]),Y=G.useCallback((be=s)=>{B&&I(be)},[I,B,s]),te=GY(ee,Y);GS(q,"disabled",te.stop,te.isSpinning),GS(j,"disabled",te.stop,te.isSpinning);const ie=G.useCallback(be=>{if(be.nativeEvent.isComposing)return;const De=H(be.currentTarget.value);k(R(De)),N.current={start:be.currentTarget.selectionStart,end:be.currentTarget.selectionEnd}},[k,R,H]),le=G.useCallback(be=>{var Ae,De,ze;A==null||A(be),N.current&&(be.target.selectionStart=(De=N.current.start)!=null?De:(Ae=be.currentTarget.value)==null?void 0:Ae.length,be.currentTarget.selectionEnd=(ze=N.current.end)!=null?ze:be.currentTarget.selectionStart)},[A]),Q=G.useCallback(be=>{if(be.nativeEvent.isComposing)return;ZY(be,w)||be.preventDefault();const Ae=se(be)*s,De=be.key,Se={ArrowUp:()=>ee(Ae),ArrowDown:()=>Y(Ae),Home:()=>k(i),End:()=>k(o)}[De];Se&&(be.preventDefault(),Se(be))},[w,s,ee,Y,k,i,o]),se=be=>{let Ae=1;return(be.metaKey||be.ctrlKey)&&(Ae=.1),be.shiftKey&&(Ae=10),Ae},ae=G.useMemo(()=>{const be=S==null?void 0:S(x.value);if(be!=null)return be;const Ae=x.value.toString();return Ae||void 0},[x.value,S]),fe=G.useCallback(()=>{let be=x.value;if(x.value==="")return;/^[eE]/.test(x.value.toString())?x.setValue(""):(x.valueAsNumbero&&(be=o),x.cast(be))},[x,o,i]),de=G.useCallback(()=>{z(!1),r&&fe()},[r,z,fe]),pe=G.useCallback(()=>{t&&requestAnimationFrame(()=>{var be;(be=W.current)==null||be.focus()})},[t]),ye=G.useCallback(be=>{be.preventDefault(),te.up(),pe()},[pe,te]),we=G.useCallback(be=>{be.preventDefault(),te.down(),pe()},[pe,te]);vE(()=>W.current,"wheel",be=>{var Ae,De;const Se=((De=(Ae=W.current)==null?void 0:Ae.ownerDocument)!=null?De:document).activeElement===W.current;if(!d||!Se)return;be.preventDefault();const xe=se(be)*s,Pe=Math.sign(be.deltaY);Pe===-1?ee(xe):Pe===1&&Y(xe)},{passive:!1});const Ce=G.useCallback((be={},Ae=null)=>{const De=l||n&&x.isAtMax;return{...be,ref:Tn(Ae,q),role:"button",tabIndex:-1,onPointerDown:Ht(be.onPointerDown,ze=>{ze.button!==0||De||ye(ze)}),onPointerLeave:Ht(be.onPointerLeave,te.stop),onPointerUp:Ht(be.onPointerUp,te.stop),disabled:De,"aria-disabled":Lo(De)}},[x.isAtMax,n,ye,te.stop,l]),Ie=G.useCallback((be={},Ae=null)=>{const De=l||n&&x.isAtMin;return{...be,ref:Tn(Ae,j),role:"button",tabIndex:-1,onPointerDown:Ht(be.onPointerDown,ze=>{ze.button!==0||De||we(ze)}),onPointerLeave:Ht(be.onPointerLeave,te.stop),onPointerUp:Ht(be.onPointerUp,te.stop),disabled:De,"aria-disabled":Lo(De)}},[x.isAtMin,n,we,te.stop,l]),Re=G.useCallback((be={},Ae=null)=>{var De,ze,Se,xe;return{name:v,inputMode:f,type:"text",pattern:h,"aria-labelledby":_,"aria-label":b,"aria-describedby":y,id:m,disabled:l,...be,readOnly:(De=be.readOnly)!=null?De:u,"aria-readonly":(ze=be.readOnly)!=null?ze:u,"aria-required":(Se=be.required)!=null?Se:a,required:(xe=be.required)!=null?xe:a,ref:Tn(W,Ae),value:K(x.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(x.valueAsNumber)?void 0:x.valueAsNumber,"aria-invalid":Lo(c??x.isOutOfRange),"aria-valuetext":ae,autoComplete:"off",autoCorrect:"off",onChange:Ht(be.onChange,ie),onKeyDown:Ht(be.onKeyDown,Q),onFocus:Ht(be.onFocus,le,()=>z(!0)),onBlur:Ht(be.onBlur,O,de)}},[v,f,h,_,b,K,y,m,l,a,u,c,x.value,x.valueAsNumber,x.isOutOfRange,i,o,ae,ie,Q,le,O,de]);return{value:K(x.value),valueAsNumber:x.valueAsNumber,isFocused:L,isDisabled:l,isReadOnly:u,getIncrementButtonProps:Ce,getDecrementButtonProps:Ie,getInputProps:Re,htmlProps:V}}var[JY,C0]=Wr({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[eZ,fw]=Wr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),HE=wt(function(t,r){const n=Qr("NumberInput",t),i=qr(t),o=Q2(i),{htmlProps:s,...u}=QY(o),l=G.useMemo(()=>u,[u]);return X.jsx(eZ,{value:l,children:X.jsx(JY,{value:n,children:X.jsx(et.div,{...s,ref:r,className:sr("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...n.root}})})})});HE.displayName="NumberInput";var WE=wt(function(t,r){const n=C0();return X.jsx(et.div,{"aria-hidden":!0,ref:r,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})});WE.displayName="NumberInputStepper";var qE=wt(function(t,r){const{getInputProps:n}=fw(),i=n(t,r),o=C0();return X.jsx(et.input,{...i,className:sr("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});qE.displayName="NumberInputField";var KE=et("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),GE=wt(function(t,r){var n;const i=C0(),{getDecrementButtonProps:o}=fw(),s=o(t,r);return X.jsx(KE,{...s,__css:i.stepper,children:(n=t.children)!=null?n:X.jsx(HY,{})})});GE.displayName="NumberDecrementStepper";var XE=wt(function(t,r){var n;const{getIncrementButtonProps:i}=fw(),o=i(t,r),s=C0();return X.jsx(KE,{...o,__css:s.stepper,children:(n=t.children)!=null?n:X.jsx(WY,{})})});XE.displayName="NumberIncrementStepper";function tZ(e){return e&&ln(e)&&ln(e.target)}function rZ(e={}){const{onChange:t,value:r,defaultValue:n,name:i,isDisabled:o,isFocusable:s,isNative:u,...l}=e,[a,c]=G.useState(n||""),h=typeof r<"u",f=h?r:a,d=G.useRef(null),m=G.useCallback(()=>{const E=d.current;if(!E)return;let $="input:not(:disabled):checked";const M=E.querySelector($);if(M){M.focus();return}$="input:not(:disabled)";const P=E.querySelector($);P==null||P.focus()},[]),p=`radio-${G.useId()}`,v=i||p,y=G.useCallback(E=>{const $=tZ(E)?E.target.value:E;h||c($),t==null||t(String($))},[t,h]),b=G.useCallback((E={},$=null)=>({...E,ref:Tn($,d),role:"radiogroup"}),[]),_=G.useCallback((E={},$=null)=>({...E,ref:$,name:v,[u?"checked":"isChecked"]:f!=null?E.value===f:void 0,onChange(P){y(P)},"data-radiogroup":!0}),[u,v,y,f]);return{getRootProps:b,getRadioProps:_,name:v,ref:d,focus:m,setValue:c,value:f,onChange:y,isDisabled:o,isFocusable:s,htmlProps:l}}var[nZ,YE]=Wr({name:"RadioGroupContext",strict:!1}),ZE=wt((e,t)=>{const{colorScheme:r,size:n,variant:i,children:o,className:s,isDisabled:u,isFocusable:l,...a}=e,{value:c,onChange:h,getRootProps:f,name:d,htmlProps:m}=rZ(a),g=G.useMemo(()=>({name:d,size:n,onChange:h,colorScheme:r,value:c,variant:i,isDisabled:u,isFocusable:l}),[d,n,h,r,c,i,u,l]);return X.jsx(nZ,{value:g,children:X.jsx(et.div,{...f(m,t),className:sr("chakra-radio-group",s),children:o})})});ZE.displayName="RadioGroup";var iZ={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function oZ(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:i,isReadOnly:o,isRequired:s,onChange:u,isInvalid:l,name:a,value:c,id:h,"data-radiogroup":f,"aria-describedby":d,...m}=e,g=`radio-${G.useId()}`,p=Za(),y=!!YE()||!!f;let _=!!p&&!y?p.id:g;_=h??_;const E=i??(p==null?void 0:p.isDisabled),$=o??(p==null?void 0:p.isReadOnly),M=s??(p==null?void 0:p.isRequired),P=l??(p==null?void 0:p.isInvalid),[D,F]=G.useState(!1),[U,V]=G.useState(!1),[A,O]=G.useState(!1),[C,w]=G.useState(!1),[S,x]=G.useState(!!t),k=typeof r<"u",T=k?r:S;G.useEffect(()=>mE(F),[]);const I=G.useCallback(K=>{if($||E){K.preventDefault();return}k||x(K.target.checked),u==null||u(K)},[k,E,$,u]),L=G.useCallback(K=>{K.key===" "&&w(!0)},[w]),z=G.useCallback(K=>{K.key===" "&&w(!1)},[w]),B=G.useCallback((K={},ee=null)=>({...K,ref:ee,"data-active":gt(C),"data-hover":gt(A),"data-disabled":gt(E),"data-invalid":gt(P),"data-checked":gt(T),"data-focus":gt(U),"data-focus-visible":gt(U&&D),"data-readonly":gt($),"aria-hidden":!0,onMouseDown:Ht(K.onMouseDown,()=>w(!0)),onMouseUp:Ht(K.onMouseUp,()=>w(!1)),onMouseEnter:Ht(K.onMouseEnter,()=>O(!0)),onMouseLeave:Ht(K.onMouseLeave,()=>O(!1))}),[C,A,E,P,T,U,$,D]),{onFocus:W,onBlur:N}=p??{},q=G.useCallback((K={},ee=null)=>{const Y=E&&!n;return{...K,id:_,ref:ee,type:"radio",name:a,value:c,onChange:Ht(K.onChange,I),onBlur:Ht(N,K.onBlur,()=>V(!1)),onFocus:Ht(W,K.onFocus,()=>V(!0)),onKeyDown:Ht(K.onKeyDown,L),onKeyUp:Ht(K.onKeyUp,z),checked:T,disabled:Y,readOnly:$,required:M,"aria-invalid":Lo(P),"aria-disabled":Lo(Y),"aria-required":Lo(M),"data-readonly":gt($),"aria-describedby":d,style:iZ}},[E,n,_,a,c,I,N,W,L,z,T,$,M,P,d]);return{state:{isInvalid:P,isFocused:U,isChecked:T,isActive:C,isHovered:A,isDisabled:E,isReadOnly:$,isRequired:M},getCheckboxProps:B,getRadioProps:B,getInputProps:q,getLabelProps:(K={},ee=null)=>({...K,ref:ee,onMouseDown:Ht(K.onMouseDown,sZ),"data-disabled":gt(E),"data-checked":gt(T),"data-invalid":gt(P)}),getRootProps:(K,ee=null)=>({...K,ref:ee,"data-disabled":gt(E),"data-checked":gt(T),"data-invalid":gt(P)}),htmlProps:m}}function sZ(e){e.preventDefault(),e.stopPropagation()}function aZ(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}var QE=wt((e,t)=>{var r;const n=YE(),{onChange:i,value:o}=e,s=Qr("Radio",{...n,...e}),u=qr(e),{spacing:l="0.5rem",children:a,isDisabled:c=n==null?void 0:n.isDisabled,isFocusable:h=n==null?void 0:n.isFocusable,inputProps:f,...d}=u;let m=e.isChecked;(n==null?void 0:n.value)!=null&&o!=null&&(m=n.value===o);let g=i;n!=null&&n.onChange&&o!=null&&(g=eC(n.onChange,i));const p=(r=e==null?void 0:e.name)!=null?r:n==null?void 0:n.name,{getInputProps:v,getCheckboxProps:y,getLabelProps:b,getRootProps:_,htmlProps:E}=oZ({...d,isChecked:m,isFocusable:h,isDisabled:c,onChange:g,name:p}),[$,M]=aZ(E,Gj),P=y(M),D=v(f,t),F=b(),U=Object.assign({},$,_()),V={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...s.container},A={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...s.control},O={userSelect:"none",marginStart:l,...s.label};return X.jsxs(et.label,{className:"chakra-radio",...U,__css:V,children:[X.jsx("input",{className:"chakra-radio__input",...D}),X.jsx(et.span,{className:"chakra-radio__control",...P,__css:A}),a&&X.jsx(et.span,{className:"chakra-radio__label",...F,__css:O,children:a})]})});QE.displayName="Radio";var fl=e=>e?"":void 0,x1=e=>e?!0:void 0,gf=(...e)=>e.filter(Boolean).join(" ");function S1(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function dh(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}var ip={width:0,height:0},fh=e=>e||ip;function lZ(e){const{orientation:t,thumbPercents:r,thumbRects:n,isReversed:i}=e,o=g=>{var p;const v=(p=n[g])!=null?p:ip;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...dh({orientation:t,vertical:{bottom:`calc(${r[g]}% - ${v.height/2}px)`},horizontal:{left:`calc(${r[g]}% - ${v.width/2}px)`}})}},s=t==="vertical"?n.reduce((g,p)=>fh(g).height>fh(p).height?g:p,ip):n.reduce((g,p)=>fh(g).width>fh(p).width?g:p,ip),u={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...dh({orientation:t,vertical:s?{paddingLeft:s.width/2,paddingRight:s.width/2}:{},horizontal:s?{paddingTop:s.height/2,paddingBottom:s.height/2}:{}})},l={position:"absolute",...dh({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},a=r.length===1,c=[0,i?100-r[0]:r[0]],h=a?c:r;let f=h[0];!a&&i&&(f=100-f);const d=Math.abs(h[h.length-1]-h[0]),m={...l,...dh({orientation:t,vertical:i?{height:`${d}%`,top:`${f}%`}:{height:`${d}%`,bottom:`${f}%`},horizontal:i?{width:`${d}%`,right:`${f}%`}:{width:`${d}%`,left:`${f}%`}})};return{trackStyle:l,innerTrackStyle:m,rootStyle:u,getThumbStyle:o}}function uZ(e){const{isReversed:t,direction:r,orientation:n}=e;return r==="ltr"||n==="vertical"?t:!t}function cZ(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function dZ(e){const t=hZ(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function JE(e){return!!e.touches}function fZ(e){return JE(e)&&e.touches.length>1}function hZ(e){var t;return(t=e.view)!=null?t:window}function pZ(e,t="page"){const r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}function mZ(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function eT(e,t="page"){return JE(e)?pZ(e,t):mZ(e,t)}function gZ(e){return t=>{const r=dZ(t);(!r||r&&t.button===0)&&e(t)}}function vZ(e,t=!1){function r(i){e(i,{point:eT(i)})}return t?gZ(r):r}function op(e,t,r,n){return cZ(e,t,vZ(r,t==="pointerdown"),n)}var yZ=Object.defineProperty,bZ=(e,t,r)=>t in e?yZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oi=(e,t,r)=>(bZ(e,typeof t!="symbol"?t+"":t,r),r),wZ=class{constructor(e,t,r){Oi(this,"history",[]),Oi(this,"startEvent",null),Oi(this,"lastEvent",null),Oi(this,"lastEventInfo",null),Oi(this,"handlers",{}),Oi(this,"removeListeners",()=>{}),Oi(this,"threshold",3),Oi(this,"win"),Oi(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const u=k1(this.lastEventInfo,this.history),l=this.startEvent!==null,a=kZ(u.offset,{x:0,y:0})>=this.threshold;if(!l&&!a)return;const{timestamp:c}=h4();this.history.push({...u.point,timestamp:c});const{onStart:h,onMove:f}=this.handlers;l||(h==null||h(this.lastEvent,u),this.startEvent=this.lastEvent),f==null||f(this.lastEvent,u)}),Oi(this,"onPointerMove",(u,l)=>{this.lastEvent=u,this.lastEventInfo=l,NV.update(this.updatePoint,!0)}),Oi(this,"onPointerUp",(u,l)=>{const a=k1(l,this.history),{onEnd:c,onSessionEnd:h}=this.handlers;h==null||h(u,a),this.end(),!(!c||!this.startEvent)&&(c==null||c(u,a))});var n;if(this.win=(n=e.view)!=null?n:window,fZ(e))return;this.handlers=t,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const i={point:eT(e)},{timestamp:o}=h4();this.history=[{...i.point,timestamp:o}];const{onSessionStart:s}=t;s==null||s(e,k1(i,this.history)),this.removeListeners=SZ(op(this.win,"pointermove",this.onPointerMove),op(this.win,"pointerup",this.onPointerUp),op(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),DV.update(this.updatePoint)}};function YS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function k1(e,t){return{point:e.point,delta:YS(e.point,t[t.length-1]),offset:YS(e.point,t[0]),velocity:xZ(t,.1)}}var _Z=e=>e*1e3;function xZ(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=e[e.length-1];for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>_Z(t)));)r--;if(!n)return{x:0,y:0};const o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};const s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function SZ(...e){return t=>e.reduce((r,n)=>n(r),t)}function C1(e,t){return Math.abs(e-t)}function ZS(e){return"x"in e&&"y"in e}function kZ(e,t){if(typeof e=="number"&&typeof t=="number")return C1(e,t);if(ZS(e)&&ZS(t)){const r=C1(e.x,t.x),n=C1(e.y,t.y);return Math.sqrt(r**2+n**2)}return 0}function tT(e){const t=G.useRef(null);return t.current=e,t}function CZ(e,t){const{onPan:r,onPanStart:n,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:s,threshold:u}=t,l=!!(r||n||i||o||s),a=G.useRef(null),c=tT({onSessionStart:o,onSessionEnd:s,onStart:n,onMove:r,onEnd(h,f){a.current=null,i==null||i(h,f)}});G.useEffect(()=>{var h;(h=a.current)==null||h.updateHandlers(c.current)}),G.useEffect(()=>{const h=e.current;if(!h||!l)return;function f(d){a.current=new wZ(d,c.current,u)}return op(h,"pointerdown",f)},[e,l,c,u]),G.useEffect(()=>()=>{var h;(h=a.current)==null||h.end(),a.current=null},[])}function EZ(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const r=e.ownerDocument.defaultView??window,n=new r.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[o]=i;let s,u;if("borderBoxSize"in o){const l=o.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,u=a.blockSize}else s=e.offsetWidth,u=e.offsetHeight;t({width:s,height:u})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}var TZ=globalThis!=null&&globalThis.document?G.useLayoutEffect:G.useEffect;function $Z(e,t){var r,n;if(!e||!e.parentElement)return;const i=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}function AZ({getNodes:e,observeMutation:t=!0}){const[r,n]=G.useState([]),[i,o]=G.useState(0);return TZ(()=>{const s=e(),u=s.map((l,a)=>EZ(l,c=>{n(h=>[...h.slice(0,a),c,...h.slice(a+1)])}));if(t){const l=s[0];u.push($Z(l,()=>{o(a=>a+1)}))}return()=>{u.forEach(l=>{l==null||l()})}},[i]),r}function PZ(e){return typeof e=="object"&&e!==null&&"current"in e}function OZ(e){const[t]=AZ({observeMutation:!1,getNodes(){return[PZ(e)?e.current:e]}});return t}function MZ(e){var t;const{min:r=0,max:n=100,onChange:i,value:o,defaultValue:s,isReversed:u,direction:l="ltr",orientation:a="horizontal",id:c,isDisabled:h,isReadOnly:f,onChangeStart:d,onChangeEnd:m,step:g=1,getAriaValueText:p,"aria-valuetext":v,"aria-label":y,"aria-labelledby":b,name:_,focusThumbOnChange:E=!0,...$}=e,M=Or(d),P=Or(m),D=Or(p),F=uZ({isReversed:u,direction:l,orientation:a}),[U,V]=sE({value:o,defaultValue:s??RZ(r,n),onChange:i}),[A,O]=G.useState(!1),[C,w]=G.useState(!1),S=!(h||f),x=(n-r)/10,k=g||(n-r)/100,T=rp(U,r,n),I=n-T+r,z=IS(F?I:T,r,n),B=a==="vertical",W=tT({min:r,max:n,step:g,isDisabled:h,value:T,isInteractive:S,isReversed:F,isVertical:B,eventSource:null,focusThumbOnChange:E,orientation:a}),N=G.useRef(null),q=G.useRef(null),j=G.useRef(null),R=G.useId(),H=c??R,[K,ee]=[`slider-thumb-${H}`,`slider-track-${H}`],Y=G.useCallback(Se=>{var xe,Pe;if(!N.current)return;const Fe=W.current;Fe.eventSource="pointer";const Be=N.current.getBoundingClientRect(),{clientX:Le,clientY:St}=(Pe=(xe=Se.touches)==null?void 0:xe[0])!=null?Pe:Se,Pt=B?Be.bottom-St:Le-Be.left,Xe=B?Be.height:Be.width;let Ct=Pt/Xe;F&&(Ct=1-Ct);let nt=UG(Ct,Fe.min,Fe.max);return Fe.step&&(nt=parseFloat(RS(nt,Fe.min,Fe.step))),nt=rp(nt,Fe.min,Fe.max),nt},[B,F,W]),te=G.useCallback(Se=>{const xe=W.current;xe.isInteractive&&(Se=parseFloat(RS(Se,xe.min,k)),Se=rp(Se,xe.min,xe.max),V(Se))},[k,V,W]),ie=G.useMemo(()=>({stepUp(Se=k){const xe=F?T-Se:T+Se;te(xe)},stepDown(Se=k){const xe=F?T+Se:T-Se;te(xe)},reset(){te(s||0)},stepTo(Se){te(Se)}}),[te,F,T,k,s]),le=G.useCallback(Se=>{const xe=W.current,Fe={ArrowRight:()=>ie.stepUp(),ArrowUp:()=>ie.stepUp(),ArrowLeft:()=>ie.stepDown(),ArrowDown:()=>ie.stepDown(),PageUp:()=>ie.stepUp(x),PageDown:()=>ie.stepDown(x),Home:()=>te(xe.min),End:()=>te(xe.max)}[Se.key];Fe&&(Se.preventDefault(),Se.stopPropagation(),Fe(Se),xe.eventSource="keyboard")},[ie,te,x,W]),Q=(t=D==null?void 0:D(T))!=null?t:v,se=OZ(q),{getThumbStyle:ae,rootStyle:fe,trackStyle:de,innerTrackStyle:pe}=G.useMemo(()=>{const Se=W.current,xe=se??{width:0,height:0};return lZ({isReversed:F,orientation:Se.orientation,thumbRects:[xe],thumbPercents:[z]})},[F,se,z,W]),ye=G.useCallback(()=>{W.current.focusThumbOnChange&&setTimeout(()=>{var xe;return(xe=q.current)==null?void 0:xe.focus()})},[W]);Fa(()=>{const Se=W.current;ye(),Se.eventSource==="keyboard"&&(P==null||P(Se.value))},[T,P]);function we(Se){const xe=Y(Se);xe!=null&&xe!==W.current.value&&V(xe)}CZ(j,{onPanSessionStart(Se){const xe=W.current;xe.isInteractive&&(O(!0),ye(),we(Se),M==null||M(xe.value))},onPanSessionEnd(){const Se=W.current;Se.isInteractive&&(O(!1),P==null||P(Se.value))},onPan(Se){W.current.isInteractive&&we(Se)}});const Ce=G.useCallback((Se={},xe=null)=>({...Se,...$,ref:Tn(xe,j),tabIndex:-1,"aria-disabled":x1(h),"data-focused":fl(C),style:{...Se.style,...fe}}),[$,h,C,fe]),Ie=G.useCallback((Se={},xe=null)=>({...Se,ref:Tn(xe,N),id:ee,"data-disabled":fl(h),style:{...Se.style,...de}}),[h,ee,de]),Re=G.useCallback((Se={},xe=null)=>({...Se,ref:xe,style:{...Se.style,...pe}}),[pe]),be=G.useCallback((Se={},xe=null)=>({...Se,ref:Tn(xe,q),role:"slider",tabIndex:S?0:void 0,id:K,"data-active":fl(A),"aria-valuetext":Q,"aria-valuemin":r,"aria-valuemax":n,"aria-valuenow":T,"aria-orientation":a,"aria-disabled":x1(h),"aria-readonly":x1(f),"aria-label":y,"aria-labelledby":y?void 0:b,style:{...Se.style,...ae(0)},onKeyDown:S1(Se.onKeyDown,le),onFocus:S1(Se.onFocus,()=>w(!0)),onBlur:S1(Se.onBlur,()=>w(!1))}),[S,K,A,Q,r,n,T,a,h,f,y,b,ae,le]),Ae=G.useCallback((Se,xe=null)=>{const Pe=!(Se.valuen),Fe=T>=Se.value,Be=IS(Se.value,r,n),Le={position:"absolute",pointerEvents:"none",...IZ({orientation:a,vertical:{bottom:F?`${100-Be}%`:`${Be}%`},horizontal:{left:F?`${100-Be}%`:`${Be}%`}})};return{...Se,ref:xe,role:"presentation","aria-hidden":!0,"data-disabled":fl(h),"data-invalid":fl(!Pe),"data-highlighted":fl(Fe),style:{...Se.style,...Le}}},[h,F,n,r,a,T]),De=G.useCallback((Se={},xe=null)=>({...Se,ref:xe,type:"hidden",value:T,name:_}),[_,T]);return{state:{value:T,isFocused:C,isDragging:A},actions:ie,getRootProps:Ce,getTrackProps:Ie,getInnerTrackProps:Re,getThumbProps:be,getMarkerProps:Ae,getInputProps:De}}function IZ(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}function RZ(e,t){return t"}),[NZ,T0]=Wr({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),rT=wt((e,t)=>{var r;const n={...e,orientation:(r=e==null?void 0:e.orientation)!=null?r:"horizontal"},i=Qr("Slider",n),o=qr(n),{direction:s}=Ga();o.direction=s;const{getInputProps:u,getRootProps:l,...a}=MZ(o),c=l(),h=u({},t);return X.jsx(jZ,{value:a,children:X.jsx(NZ,{value:i,children:X.jsxs(et.div,{...c,className:gf("chakra-slider",n.className),__css:i.container,children:[n.children,X.jsx("input",{...h})]})})})});rT.displayName="Slider";var nT=wt((e,t)=>{const{getThumbProps:r}=E0(),n=T0(),i=r(e,t);return X.jsx(et.div,{...i,className:gf("chakra-slider__thumb",e.className),__css:n.thumb})});nT.displayName="SliderThumb";var iT=wt((e,t)=>{const{getTrackProps:r}=E0(),n=T0(),i=r(e,t);return X.jsx(et.div,{...i,className:gf("chakra-slider__track",e.className),__css:n.track})});iT.displayName="SliderTrack";var oT=wt((e,t)=>{const{getInnerTrackProps:r}=E0(),n=T0(),i=r(e,t);return X.jsx(et.div,{...i,className:gf("chakra-slider__filled-track",e.className),__css:n.filledTrack})});oT.displayName="SliderFilledTrack";var DZ=wt((e,t)=>{const{getMarkerProps:r}=E0(),n=T0(),i=r(e,t);return X.jsx(et.div,{...i,className:gf("chakra-slider__marker",e.className),__css:n.mark})});DZ.displayName="SliderMark";function FZ(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var LZ=["h","minH","height","minHeight"],hw=wt((e,t)=>{const r=Xi("Textarea",e),{className:n,rows:i,...o}=qr(e),s=Z2(o),u=i?FZ(r,LZ):r;return X.jsx(et.textarea,{ref:t,rows:i,...s,className:sr("chakra-textarea",n),__css:u})});hw.displayName="Textarea";function kr(e){return typeof File<"u"&&e instanceof File||typeof Date<"u"&&e instanceof Date?!1:typeof e=="object"&&e!==null&&!Array.isArray(e)}function BZ(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),kr(e.additionalItems)}function QS(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const Du="__additional_property",Oy="additionalProperties",vf="allOf",xu="anyOf",sT="const",zZ="default",$0="dependencies",VZ="enum",Bi="__errors",Ps="$id",UZ="if",Us="items",HZ="_$junk_option_schema_id$_",sp="$name",Hs="oneOf",Pr="properties",WZ="required",nm="submitButtonOptions",Hr="$ref",pw="__rjsf_additionalProperties",aT="__rjsf_rootSchema",qZ="ui:field",mw="ui:widget",od="ui:options",KZ="ui:globalOptions";function Gt(e={},t={}){return Object.keys(e).filter(r=>r.indexOf("ui:")===0).reduce((r,n)=>{const i=e[n];return n===mw&&kr(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):n===od&&kr(i)?{...r,...i}:{...r,[n.substring(3)]:i}},{...t})}function lT(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=Gt(t);return n===!1?n:e.maxProperties!==void 0&&r?Object.keys(r).length({...r,[i]:My(n)}),t);if(gw(e)){const r=e;return Object.keys(r).reduce((n,i)=>({...n,[i]:My(r[i])}),t)}return t}function EQ(){this.__data__=[],this.size=0}var TQ=EQ;function $Q(e,t){return e===t||e!==e&&t!==t}var Bu=$Q,AQ=Bu;function PQ(e,t){for(var r=e.length;r--;)if(AQ(e[r][0],t))return r;return-1}var P0=PQ,OQ=P0,MQ=Array.prototype,IQ=MQ.splice;function RQ(e){var t=this.__data__,r=OQ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():IQ.call(t,r,1),--this.size,!0}var jQ=RQ,NQ=P0;function DQ(e){var t=this.__data__,r=NQ(t,e);return r<0?void 0:t[r][1]}var FQ=DQ,LQ=P0;function BQ(e){return LQ(this.__data__,e)>-1}var zQ=BQ,VQ=P0;function UQ(e,t){var r=this.__data__,n=VQ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var HQ=UQ,WQ=TQ,qQ=jQ,KQ=FQ,GQ=zQ,XQ=HQ;function zu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++tu))return!1;var a=o.get(e),c=o.get(t);if(a&&c)return a==t&&c==e;var h=-1,f=!0,d=r&hte?new ute:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=hre}var xw=pre,mre=ns,gre=xw,vre=Ci,yre="[object Arguments]",bre="[object Array]",wre="[object Boolean]",_re="[object Date]",xre="[object Error]",Sre="[object Function]",kre="[object Map]",Cre="[object Number]",Ere="[object Object]",Tre="[object RegExp]",$re="[object Set]",Are="[object String]",Pre="[object WeakMap]",Ore="[object ArrayBuffer]",Mre="[object DataView]",Ire="[object Float32Array]",Rre="[object Float64Array]",jre="[object Int8Array]",Nre="[object Int16Array]",Dre="[object Int32Array]",Fre="[object Uint8Array]",Lre="[object Uint8ClampedArray]",Bre="[object Uint16Array]",zre="[object Uint32Array]",vr={};vr[Ire]=vr[Rre]=vr[jre]=vr[Nre]=vr[Dre]=vr[Fre]=vr[Lre]=vr[Bre]=vr[zre]=!0;vr[yre]=vr[bre]=vr[Ore]=vr[wre]=vr[Mre]=vr[_re]=vr[xre]=vr[Sre]=vr[kre]=vr[Cre]=vr[Ere]=vr[Tre]=vr[$re]=vr[Are]=vr[Pre]=!1;function Vre(e){return vre(e)&&gre(e.length)&&!!vr[mre(e)]}var Ure=Vre;function Hre(e){return function(t){return e(t)}}var Ja=Hre,sm={exports:{}};sm.exports;(function(e,t){var r=uT,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o&&r.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(sm,sm.exports);var Sw=sm.exports,Wre=Ure,qre=Ja,c5=Sw,d5=c5&&c5.isTypedArray,Kre=d5?qre(d5):Wre,bf=Kre,Gre=yT,Xre=yf,Yre=en,Zre=Wu,Qre=F0,Jre=bf,ene=Object.prototype,tne=ene.hasOwnProperty;function rne(e,t){var r=Yre(e),n=!r&&Xre(e),i=!r&&!n&&Zre(e),o=!r&&!n&&!i&&Jre(e),s=r||n||i||o,u=s?Gre(e.length,String):[],l=u.length;for(var a in e)(t||tne.call(e,a))&&!(s&&(a=="length"||i&&(a=="offset"||a=="parent")||o&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||Qre(a,l)))&&u.push(a);return u}var wT=rne,nne=Object.prototype;function ine(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nne;return e===r}var L0=ine,one=dT,sne=one(Object.keys,Object),ane=sne,lne=L0,une=ane,cne=Object.prototype,dne=cne.hasOwnProperty;function fne(e){if(!lne(e))return une(e);var t=[];for(var r in Object(e))dne.call(e,r)&&r!="constructor"&&t.push(r);return t}var _T=fne,hne=M0,pne=xw;function mne(e){return e!=null&&pne(e.length)&&!hne(e)}var el=mne,gne=wT,vne=_T,yne=el;function bne(e){return yne(e)?gne(e):vne(e)}var wf=bne,wne=gT,_ne=_w,xne=wf;function Sne(e){return wne(e,xne,_ne)}var xT=Sne,f5=xT,kne=1,Cne=Object.prototype,Ene=Cne.hasOwnProperty;function Tne(e,t,r,n,i,o){var s=r&kne,u=f5(e),l=u.length,a=f5(t),c=a.length;if(l!=c&&!s)return!1;for(var h=l;h--;){var f=u[h];if(!(s?f in t:Ene.call(t,f)))return!1}var d=o.get(e),m=o.get(t);if(d&&m)return d==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var p=s;++h{if(typeof r=="function"&&typeof n=="function")return!0})}var uie=ns,cie=Ci,die="[object Symbol]";function fie(e){return typeof e=="symbol"||cie(e)&&uie(e)==die}var Ku=fie,hie=en,pie=Ku,mie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gie=/^\w*$/;function vie(e,t){if(hie(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pie(e)?!0:gie.test(e)||!mie.test(e)||t!=null&&e in Object(t)}var kw=vie,ET=yw,yie="Expected a function";function Cw(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yie);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Cw.Cache||ET),r}Cw.Cache=ET;var bie=Cw,wie=bie,_ie=500;function xie(e){var t=wie(e,function(n){return r.size===_ie&&r.clear(),n}),r=t.cache;return t}var Sie=xie,kie=Sie,Cie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Eie=/\\(\\)?/g,Tie=kie(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Cie,function(r,n,i,o){t.push(i?o.replace(Eie,"$1"):n||r)}),t}),TT=Tie;function $ie(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++ro,typeof e[n]>"u"&&(Array.isArray(e)&&n==="-"&&(n=e.length),i&&(t[o]!==""&&t[o]<1/0||t[o]==="-"?e[n]=[]:e[n]={})),!i)break;e=e[n]}var u=e[n];return r===void 0?delete e[n]:e[n]=r,u}function Ew(e){if(typeof e=="string"){if(e=e.split("/"),e[0]==="")return e;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(e)){for(const t of e)if(typeof t!="string"&&typeof t!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function MT(e,t){if(typeof e!="object")throw new Error("Invalid input object.");t=Ew(t);var r=t.length;if(r===1)return e;for(var n=1;ni?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n0&&r(u)?t>1?KT(u,t-1,r,n,i):Nle(i,u):n||(i[i.length]=u)}return i}var U0=KT,Fle=U0;function Lle(e){var t=e==null?0:e.length;return t?Fle(e,1):[]}var Ow=Lle;function Ble(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var GT=Ble,zle=GT,B5=Math.max;function Vle(e,t,r){return t=B5(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=B5(n.length-t,0),s=Array(o);++i0){if(++t>=Yle)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var eue=Jle,tue=Xle,rue=eue,nue=rue(tue),YT=nue,iue=Ow,oue=XT,sue=YT;function aue(e){return sue(oue(e,void 0,iue),e+"")}var ZT=aue,lue=is,uue=HT,cue=qT,due=Gu,fue=Xu,hue=Ole,pue=ZT,mue=DT,gue=1,vue=2,yue=4,bue=pue(function(e,t){var r={};if(e==null)return r;var n=!1;t=lue(t,function(o){return o=due(o,e),n||(n=o.length>1),o}),fue(e,mue(e),r),n&&(r=uue(r,gue|vue|yue,hue));for(var i=t.length;i--;)cue(r,t[i]);return r}),wue=bue;const lm=ir(wue);function Mw(e,t){const r=t[e];return[lm(t,[e]),r]}function Iw(e,t={}){let r=e||"";if(r.startsWith("#"))r=decodeURIComponent(r.substring(1));else throw new Error(`Could not find a definition for ${e}.`);const n=z0.get(t,r);if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);if(n[Hr]){const[i,o]=Mw(Hr,n),s=Iw(o,t);return Object.keys(i).length>0?{...i,...s}:s}return n}var _ue=Object.prototype,xue=_ue.hasOwnProperty;function Sue(e,t){return e!=null&&xue.call(e,t)}var kue=Sue,Cue=Gu,Eue=yf,Tue=en,$ue=F0,Aue=xw,Pue=tl;function Oue(e,t,r){t=Cue(t,e);for(var n=-1,i=t.length,o=!1;++nVde)return[];var r=A1,n=Ude(e,A1);t=Bde(t),e-=A1;for(var i=Lde(n,t);++r({required:[c]}))};let a;if(u.anyOf){const{...c}=u;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),a=c}else a=Object.assign({},u,l);if(delete a.required,e.isValid(a,t,n))return s}else if(e.isValid(u,t,n))return s}return 0}function Dw(e,t,r,n,i){return l$(e,t,r,n,i)}var qde=B0;function Kde(e,t){return qde(e,t)}var Fw=Kde;const Ua=ir(Fw);var Gde=Aw,Xde=Gu,Yde=F0,W5=Un,Zde=tl;function Qde(e,t,r,n){if(!W5(e))return e;t=Xde(t,e);for(var i=-1,o=t.length,s=o-1,u=e;u!=null&&++i1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&rhe(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n-1}var Vw=khe;function Che(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Lhe){var a=t?null:Dhe(e);if(a)return Fhe(a);s=!1,i=Nhe,l=new Ihe}else l=t?[]:u;e:for(;++nt||o&&s&&l&&!u&&!a||n&&s&&l||!r&&l||!i)return 1;if(!n&&!o&&!a&&e=u)return l;var a=r[n];return l*(a=="desc"?-1:1)}}return e.index-t.index}var ipe=npe,O1=is,ope=xf,spe=Nw,ape=Zhe,lpe=Jhe,upe=Ja,cpe=ipe,dpe=Sf,fpe=en;function hpe(e,t,r){t.length?t=O1(t,function(o){return fpe(o)?function(s){return ope(s,o.length===1?o[0]:o)}:o}):t=[dpe];var n=-1;t=O1(t,upe(spe));var i=ape(e,function(o,s,u){var l=O1(t,function(a){return a(o)});return{criteria:l,index:++n,value:o}});return lpe(i,function(o,s){return cpe(o,s,r)})}var ppe=hpe,mpe=U0,gpe=ppe,vpe=ra,Z5=Bw,ype=vpe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Z5(e,t[0],t[1])?t=[]:r>2&&Z5(t[0],t[1],t[2])&&(t=[t[0]]),gpe(e,mpe(t,1),[])}),v$=ype,bpe=Hw;function wpe(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?bpe(e,void 0,t):[]}var Ww=wpe,_pe=ra,xpe=Bu,Spe=Bw,kpe=Yu,y$=Object.prototype,Cpe=y$.hasOwnProperty,Epe=_pe(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&Spe(t[0],t[1],i)&&(n=1);++r=120&&c.length>=120)?new $pe(s&&c):void 0}c=e[0];var h=-1,f=u[0];e:for(;++hArray.isArray(e)?e:[e],vi=e=>e===void 0,ph=e=>um(e)||Array.isArray(e)?Object.keys(e):[],zl=(e,t)=>e.hasOwnProperty(t),Su=e=>Gpe(qw(e)),t6=e=>vi(e)||Array.isArray(e)&&e.length===0,Zpe=(e,t,r,n)=>t&&zl(t,r)&&e&&zl(e,r)&&n(e[r],t[r]),I1=(e,t)=>vi(e)&&t===0||vi(t)&&e===0||Gi(e,t),Qpe=(e,t)=>vi(e)&&t===!1||vi(t)&&e===!1||Gi(e,t),r6=e=>vi(e)||Gi(e,{})||e===!0,mh=e=>vi(e)||Gi(e,{}),n6=e=>vi(e)||um(e)||e===!0||e===!1;function i6(e,t){return t6(e)&&t6(t)?!0:Gi(Su(e),Su(t))}function Jpe(e,t){return e=e6(e),t=e6(t),Gi(Su(e),Su(t))}function lp(e,t,r,n){var i=qw(ph(e).concat(ph(t)));return mh(e)&&mh(t)?!0:mh(e)&&ph(t).length||mh(t)&&ph(e).length?!1:i.every(function(o){var s=e[o],u=t[o];return Array.isArray(s)&&Array.isArray(u)?Gi(Su(e),Su(t)):Array.isArray(s)&&!Array.isArray(u)||Array.isArray(u)&&!Array.isArray(s)?!1:Zpe(e,t,o,n)})}function eme(e,t,r,n){return um(e)&&um(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?lp(e,t,r,n):Gi(e,t)}function R1(e,t,r,n){var i=J5(e,n),o=J5(t,n),s=Ype(i,o,n);return s.length===Math.max(i.length,o.length)}var tme={title:Gi,uniqueItems:Qpe,minLength:I1,minItems:I1,minProperties:I1,required:i6,enum:i6,type:Jpe,items:eme,anyOf:R1,allOf:R1,oneOf:R1,properties:lp,patternProperties:lp,dependencies:lp},rme=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],nme=["additionalProperties","additionalItems","contains","propertyNames","not"];function Fy(e,t,r){if(r=Xpe(r,{ignore:[]}),r6(e)&&r6(t))return!0;if(!n6(e)||!n6(t))throw new Error("Either of the values are not a JSON schema.");if(e===t)return!0;if(M1(e)&&M1(t))return e===t;if(e===void 0&&t===!1||t===void 0&&e===!1||vi(e)&&!vi(t)||!vi(e)&&vi(t))return!1;var n=qw(Object.keys(e).concat(Object.keys(t)));if(r.ignore.length&&(n=n.filter(o=>r.ignore.indexOf(o)===-1)),!n.length)return!0;function i(o,s){return Fy(o,s,r)}return n.every(function(o){var s=e[o],u=t[o];if(nme.indexOf(o)!==-1)return Fy(s,u,r);var l=tme[o];if(l||(l=Gi),Gi(s,u))return!0;if(rme.indexOf(o)===-1&&(!zl(e,o)&&zl(t,o)||zl(e,o)&&!zl(t,o)))return s===u;var a=l(s,u,o,i);if(!M1(a))throw new Error("Comparer must return true or false");return a})}var Kw=Fy;function ime(e){return Object.prototype.toString.call(e)==="[object Array]"}var Gw=Array.isArray||ime;function ome(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}var sme=ome,ame=sme;function lme(e){return ame(e)&&e%1===0}var ume=lme,cme=Gw,dme=ume;function fme(e){var t;if(!cme(e)||(t=e.length,!t))return!1;for(var r=0;rt&&(n=t,t=e,e=n),t=t-e}return r*e}function a6(e,t){var r=0,n;if(e===0)return t;if(t===0)return e;for(;!(e&1)&&!(t&1);)e>>>=1,t>>>=1,r++;for(;!(e&1);)e>>>=1;for(;t;){for(;!(t&1);)t>>>=1;e>t&&(n=t,t=e,e=n),t=t-e}return e<1){if(n=t[0],r=t[1],!mme(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(i=n.length,i<2)return null;if(r){for(o=new Array(i),u=0;u1){if(n=t[0],r=t[1],!bme(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(i=n.length,i<2)return null;if(r){for(o=new Array(i),u=0;u-1;)u!==e&&d6.call(u,l,1),d6.call(e,l,1);return e}var Xme=Gme,Yme=Xme;function Zme(e,t){return e&&e.length&&t&&t.length?Yme(e,t):e}var Qme=Zme,Jme=Tw,e0e=jw,t0e=o$,r0e=en;function n0e(e,t){var r=r0e(e)?Jme:e0e;return r(e,t0e(t))}var C$=n0e,i0e=N0,o0e=Vw,s0e=Uw,a0e=is,l0e=Ja,u0e=D0,c0e=200;function d0e(e,t,r,n){var i=-1,o=o0e,s=!0,u=e.length,l=[],a=t.length;if(!u)return l;r&&(t=a0e(t,l0e(r))),n?(o=s0e,s=!1):t.length>=c0e&&(o=u0e,s=!1,t=new i0e(t));e:for(;++iw0e(b0e(e.map(Xw))),C0e=(e,t)=>e.map(r=>r&&r[t]),T$=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Xw=e=>E$(e)||Array.isArray(e)?Object.keys(e):[],E0e=e=>e!==void 0,T0e=e=>E$(e)||e===!0||e===!1,$$=e=>!Xw(e).length&&e!==!1&&e!==!0,$0e=(e,...t)=>x0e.apply(null,[e].concat(y0e(t)));var A$={allUniqueKeys:k0e,deleteUndefinedProps:S0e,getValues:C0e,has:T$,isEmptySchema:$$,isSchema:T0e,keys:Xw,notUndefined:E0e,uniqWith:_0e,withoutArr:$0e};const A0e=Kw,P0e=C$,{allUniqueKeys:O0e,deleteUndefinedProps:M0e,getValues:I0e,keys:bc,notUndefined:R0e,uniqWith:j0e,withoutArr:f6}=A$;function N0e(e){P0e(e,function(t,r){t===!1&&delete e[r]})}function h6(e,t){return O0e(e).reduce(function(n,i){const o=I0e(e,i),s=j0e(o.filter(R0e),A0e);return n[i]=t(s,i),n},{})}var D0e={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach(function(o){const s=e.filter(c=>c!==o),u=bc(o.properties),a=bc(o.patternProperties).map(c=>new RegExp(c));s.forEach(function(c){const h=bc(c.properties),f=h.filter(m=>a.some(g=>g.test(m)));f6(h,u,f).forEach(function(m){c.properties[m]=r.properties([c.properties[m],o.additionalProperties],m)})})}),e.forEach(function(o){const s=e.filter(l=>l!==o),u=bc(o.patternProperties);o.additionalProperties===!1&&s.forEach(function(l){const a=bc(l.patternProperties);f6(a,u).forEach(h=>delete l.patternProperties[h])})}));const i={additionalProperties:r.additionalProperties(e.map(o=>o.additionalProperties)),patternProperties:h6(e.map(o=>o.patternProperties),r.patternProperties),properties:h6(e.map(o=>o.properties),r.properties)};return i.additionalProperties===!1&&N0e(i.properties),M0e(i)}};const F0e=Kw,L0e=C$,{allUniqueKeys:B0e,deleteUndefinedProps:z0e,has:V0e,isSchema:P$,notUndefined:O$,uniqWith:U0e}=A$;function H0e(e){L0e(e,function(t,r){t===!1&&e.splice(r,1)})}function W0e(e,t){return e.map(function(r){if(r)if(Array.isArray(r.items)){const n=r.items[t];if(P$(n))return n;if(V0e(r,"additionalItems"))return r.additionalItems}else return r.items})}function q0e(e){return e.map(function(t){if(t)return Array.isArray(t.items)?t.additionalItems:t.items})}function K0e(e,t,r){return B0e(r).reduce(function(i,o){const s=W0e(e,o),u=U0e(s.filter(O$),F0e);return i[o]=t(u,o),i},[])}var G0e={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map(u=>u.items),i=n.filter(O$),o={};i.every(P$)?o.items=r.items(n):o.items=K0e(e,r.items,n);let s;return i.every(Array.isArray)?s=e.map(u=>u.additionalItems):i.some(Array.isArray)&&(s=q0e(e)),s&&(o.additionalItems=r.additionalItems(s)),o.additionalItems===!1&&Array.isArray(o.items)&&H0e(o.items),z0e(o)}};const M$=m$,cm=Kw,X0e=_me,Y0e=Ime,I$=Ow,Yw=zw,Z0e=Lme,Q0e=_$,Ly=Fw,ku=Lu,J0e=Qme,R$=v$,Zw=W0,tu=Ww,j$=D0e,N$=G0e,vh=(e,t)=>e.indexOf(t)!==-1,ege=e=>ku(e)||e===!0||e===!1,tge=e=>e===!1,D$=e=>e===!0,q0=(e,t,r)=>r(e),F$=e=>R$(Zw(Yw(e))),dm=e=>e!==void 0,L$=e=>Zw(Yw(e.map(age))),Zu=e=>e[0],rge=e=>F$(e),kf=e=>Math.max.apply(Math,e),Cf=e=>Math.min.apply(Math,e),nge=e=>e.some(D$),ige=e=>tu(I$(e),Ly);function oge(e){return function(t,r){return cm({[e]:t},{[e]:r})}}function B$(e){let{allOf:t=[],...r}=e;return r=ku(e)?r:e,[r,...t.map(B$)]}function z$(e,t){return e.map(r=>r&&r[t])}function sge(e,t){return e.map(function(r,n){try{return t(r,n)}catch{return}}).filter(dm)}function age(e){return ku(e)||Array.isArray(e)?Object.keys(e):[]}function By(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?By(n,I$(t.map(i=>r.map(o=>[o].concat(i))))):By(n,r.map(i=>i))}function V$(e,t){let r;try{r=e.map(function(n){return JSON.stringify(n,null,2)}).join(` + `),()=>{document.head.removeChild(a)}},[t]),G.createElement(TK,{isPresent:t,childRef:n,sizeRef:i},G.cloneElement(e,{ref:n}))}const b1=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{const u=YC(AK),l=G.useId(),a=G.useMemo(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:c=>{u.set(c,!0);for(const h of u.values())if(!h)return;n&&n()},register:c=>(u.set(c,!1),()=>u.delete(c))}),o?void 0:[r]);return G.useMemo(()=>{u.forEach((c,h)=>u.set(h,!1))},[r]),G.useEffect(()=>{!r&&!u.size&&n&&n()},[r]),s==="popLayout"&&(e=G.createElement($K,{isPresent:r},e)),G.createElement(sf.Provider,{value:a},e)};function AK(){return new Map}function PK(e){return G.useEffect(()=>()=>e(),[])}const ha=e=>e.key||"";function OK(e,t){e.forEach(r=>{const n=ha(r);t.set(n,r)})}function MK(e){const t=[];return G.Children.forEach(e,r=>{G.isValidElement(r)&&t.push(r)}),t}const IK=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const u=G.useContext(A2).forceRender||EK()[0],l=eE(),a=MK(e);let c=a;const h=G.useRef(new Map).current,f=G.useRef(c),d=G.useRef(new Map).current,m=G.useRef(!0);if(E2(()=>{m.current=!1,OK(a,d),f.current=c}),PK(()=>{m.current=!0,d.clear(),h.clear()}),m.current)return G.createElement(G.Fragment,null,c.map(y=>G.createElement(b1,{key:ha(y),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const g=f.current.map(ha),p=a.map(ha),v=g.length;for(let y=0;y{if(p.indexOf(b)!==-1)return;const _=d.get(b);if(!_)return;const E=g.indexOf(b);let $=y;if(!$){const M=()=>{h.delete(b);const P=Array.from(d.keys()).filter(D=>!p.includes(D));if(P.forEach(D=>d.delete(D)),f.current=a.filter(D=>{const F=ha(D);return F===b||P.includes(F)}),!h.size){if(l.current===!1)return;u(),n&&n()}};$=G.createElement(b1,{key:ha(_),isPresent:!1,onExitComplete:M,custom:t,presenceAffectsLayout:o,mode:s},_),h.set(b,$)}c.splice(E,0,$)}),c=c.map(y=>{const b=y.key;return h.has(b)?y:G.createElement(b1,{key:ha(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),G.createElement(G.Fragment,null,h.size?c:c.map(y=>G.cloneElement(y)))};var RK={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},tE=G.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:u=5e3,containerStyle:l,motionVariants:a=RK,toastSpacing:c="0.5rem"}=e,[h,f]=G.useState(u),d=yq();Fa(()=>{d||n==null||n()},[d]),Fa(()=>{f(u)},[u]);const m=()=>f(null),g=()=>f(u),p=()=>{d&&i()};G.useEffect(()=>{d&&o&&i()},[d,o,i]),mU(p,h);const v=G.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),y=G.useMemo(()=>hU(s),[s]);return X.jsx(CK.div,{layout:!0,className:"chakra-toast",variants:a,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:g,custom:{position:s},style:y,children:X.jsx(et.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:Ro(r,{id:t,onClose:p})})})});tE.displayName="ToastComponent";var xS={path:X.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[X.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),X.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),X.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},oi=wt((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:o=!1,children:s,className:u,__css:l,...a}=e,c=sr("chakra-icon",u),h=Xi("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...h},d={ref:t,focusable:o,className:c,__css:f},m=n??xS.viewBox;if(r&&typeof r!="string")return X.jsx(et.svg,{as:r,...d,...a});const g=s??xS.path;return X.jsx(et.svg,{verticalAlign:"middle",viewBox:m,...d,...a,children:g})});oi.displayName="Icon";function Nu(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,o=G.Children.toArray(e.path),s=wt((u,l)=>X.jsx(oi,{ref:l,viewBox:t,...i,...u,children:o.length?o:X.jsx("path",{fill:"currentColor",d:r})}));return s.displayName=n,s}function jK(e){return X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function NK(e){return X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function SS(e){return X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var DK=rf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),_0=wt((e,t)=>{const r=Xi("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:u,...l}=qr(e),a=sr("chakra-spinner",u),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${DK} ${o} linear infinite`,...r};return X.jsx(et.div,{ref:t,__css:c,className:a,...l,children:n&&X.jsx(et.span,{srOnly:!0,children:n})})});_0.displayName="Spinner";var[FK,K2]=Wr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[LK,G2]=Wr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),rE={info:{icon:NK,colorScheme:"blue"},warning:{icon:SS,colorScheme:"orange"},success:{icon:jK,colorScheme:"green"},error:{icon:SS,colorScheme:"red"},loading:{icon:_0,colorScheme:"blue"}};function BK(e){return rE[e].colorScheme}function zK(e){return rE[e].icon}var nE=wt(function(t,r){const n=G2(),{status:i}=K2(),o={display:"inline",...n.description};return X.jsx(et.div,{ref:r,"data-status":i,...t,className:sr("chakra-alert__desc",t.className),__css:o})});nE.displayName="AlertDescription";function iE(e){const{status:t}=K2(),r=zK(t),n=G2(),i=t==="loading"?n.spinner:n.icon;return X.jsx(et.span,{display:"inherit","data-status":t,...e,className:sr("chakra-alert__icon",e.className),__css:i,children:e.children||X.jsx(r,{h:"100%",w:"100%"})})}iE.displayName="AlertIcon";var X2=wt(function(t,r){const n=G2(),{status:i}=K2();return X.jsx(et.div,{ref:r,"data-status":i,...t,className:sr("chakra-alert__title",t.className),__css:n.title})});X2.displayName="AlertTitle";var Y2=wt(function(t,r){var n;const{status:i="info",addRole:o=!0,...s}=qr(t),u=(n=t.colorScheme)!=null?n:BK(i),l=Qr("Alert",{...t,colorScheme:u}),a={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return X.jsx(FK,{value:{status:i},children:X.jsx(LK,{value:l,children:X.jsx(et.div,{"data-status":i,role:o?"alert":void 0,ref:r,...s,className:sr("chakra-alert",t.className),__css:a})})})});Y2.displayName="Alert";function VK(e){return X.jsx(oi,{focusable:"false","aria-hidden":!0,...e,children:X.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var oE=wt(function(t,r){const n=Xi("CloseButton",t),{children:i,isDisabled:o,__css:s,...u}=qr(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return X.jsx(et.button,{type:"button","aria-label":"Close",ref:r,disabled:o,__css:{...l,...n,...s},...u,children:i||X.jsx(VK,{width:"1em",height:"1em"})})});oE.displayName="CloseButton";var UK={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},rd=HK(UK);function HK(e){let t=e;const r=new Set,n=i=>{t=i(t),r.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(r.add(i),()=>{n(()=>e),r.delete(i)}),removeToast:(i,o)=>{n(s=>({...s,[o]:s[o].filter(u=>u.id!=i)}))},notify:(i,o)=>{const s=WK(i,o),{position:u,id:l}=s;return n(a=>{var c,h;const d=u.includes("top")?[s,...(c=a[u])!=null?c:[]]:[...(h=a[u])!=null?h:[],s];return{...a,[u]:d}}),l},update:(i,o)=>{i&&n(s=>{const u={...s},{position:l,index:a}=v4(u,i);return l&&a!==-1&&(u[l][a]={...u[l][a],...o,message:KK(o)}),u})},closeAll:({positions:i}={})=>{n(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,a)=>(l[a]=o[a].map(c=>({...c,requestClose:!0})),l),{...o}))},close:i=>{n(o=>{const s=IC(o,i);return s?{...o,[s]:o[s].map(u=>u.id==i?{...u,requestClose:!0}:u)}:o})},isActive:i=>!!v4(rd.getState(),i).position}}var kS=0;function WK(e,t={}){var r,n;kS+=1;const i=(r=t.id)!=null?r:kS,o=(n=t.position)!=null?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>rd.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var qK=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:s,description:u,colorScheme:l,icon:a}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return X.jsxs(Y2,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[X.jsx(iE,{children:a}),X.jsxs(et.div,{flex:"1",maxWidth:"100%",children:[i&&X.jsx(X2,{id:c==null?void 0:c.title,children:i}),u&&X.jsx(nE,{id:c==null?void 0:c.description,display:"block",children:u})]}),o&&X.jsx(oE,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function KK(e={}){const{render:t,toastComponent:r=qK}=e;return i=>typeof t=="function"?t({...i,...e}):X.jsx(r,{...i,...e})}var[GK,f6e]=Wr({name:"ToastOptionsContext",strict:!1}),XK=e=>{const t=G.useSyncExternalStore(rd.subscribe,rd.getState,rd.getState),{motionVariants:r,component:n=tE,portalProps:i}=e,s=Object.keys(t).map(u=>{const l=t[u];return X.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${u}`,id:`chakra-toast-manager-${u}`,style:pU(u),children:X.jsx(IK,{initial:!1,children:l.map(a=>X.jsx(n,{motionVariants:r,...a},a.id))})},u)});return X.jsx(a0,{...i,children:s})},YK=e=>function({children:r,theme:n=e,toastOptions:i,...o}){return X.jsxs(dU,{theme:n,...o,children:[X.jsx(GK,{value:i==null?void 0:i.defaultOptions,children:r}),X.jsx(XK,{...i})]})},ZK=YK(AV),QK=Object.defineProperty,JK=(e,t,r)=>t in e?QK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$r=(e,t,r)=>(JK(e,typeof t!="symbol"?t+"":t,r),r);function CS(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var eG=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function ES(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function TS(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var xy=typeof window<"u"?G.useLayoutEffect:G.useEffect,tm=e=>e,tG=class{constructor(){$r(this,"descendants",new Map),$r(this,"register",e=>{if(e!=null)return eG(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),$r(this,"unregister",e=>{this.descendants.delete(e);const t=CS(Array.from(this.descendants.keys()));this.assignIndex(t)}),$r(this,"destroy",()=>{this.descendants.clear()}),$r(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),$r(this,"count",()=>this.descendants.size),$r(this,"enabledCount",()=>this.enabledValues().length),$r(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),$r(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),$r(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),$r(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),$r(this,"first",()=>this.item(0)),$r(this,"firstEnabled",()=>this.enabledItem(0)),$r(this,"last",()=>this.item(this.descendants.size-1)),$r(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),$r(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),$r(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),$r(this,"next",(e,t=!0)=>{const r=ES(e,this.count(),t);return this.item(r)}),$r(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=ES(n,this.enabledCount(),t);return this.enabledItem(i)}),$r(this,"prev",(e,t=!0)=>{const r=TS(e,this.count()-1,t);return this.item(r)}),$r(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=TS(n,this.enabledCount()-1,t);return this.enabledItem(i)}),$r(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=CS(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(n)})}};function rG(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Tn(...e){return t=>{e.forEach(r=>{rG(r,t)})}}function nG(...e){return G.useMemo(()=>Tn(...e),e)}function iG(){const e=G.useRef(new tG);return xy(()=>()=>e.current.destroy()),e.current}var[oG,sE]=Wr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function sG(e){const t=sE(),[r,n]=G.useState(-1),i=G.useRef(null);xy(()=>()=>{i.current&&t.unregister(i.current)},[]),xy(()=>{if(!i.current)return;const s=Number(i.current.dataset.index);r!=s&&!Number.isNaN(s)&&n(s)});const o=tm(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(i.current),register:Tn(o,i)}}function aG(){return[tm(oG),()=>tm(sE()),()=>iG(),i=>sG(i)]}function aE(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:i=(f,d)=>f!==d}=e,o=Or(n),s=Or(i),[u,l]=G.useState(r),a=t!==void 0,c=a?t:u,h=Or(f=>{const m=typeof f=="function"?f(c):f;s(c,m)&&(a||l(m),o(m))},[a,o,c,s]);return[c,h]}function lE(e){return G.Children.toArray(e).filter(t=>G.isValidElement(t))}var[lG,uG]=Wr({strict:!1,name:"ButtonGroupContext"}),cG={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},dG={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},uE=wt(function(t,r){const{size:n,colorScheme:i,variant:o,className:s,spacing:u="0.5rem",isAttached:l,isDisabled:a,orientation:c="horizontal",...h}=t,f=sr("chakra-button__group",s),d=G.useMemo(()=>({size:n,colorScheme:i,variant:o,isDisabled:a}),[n,i,o,a]);let m={display:"inline-flex",...l?cG[c]:dG[c](u)};const g=c==="vertical";return X.jsx(lG,{value:d,children:X.jsx(et.div,{ref:r,role:"group",__css:m,className:f,"data-attached":l?"":void 0,"data-orientation":c,flexDir:g?"column":void 0,...h})})});uE.displayName="ButtonGroup";function fG(e){const[t,r]=G.useState(!e);return{ref:G.useCallback(o=>{o&&r(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Sy(e){const{children:t,className:r,...n}=e,i=G.isValidElement(t)?G.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=sr("chakra-button__icon",r);return X.jsx(et.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:o,children:i})}Sy.displayName="ButtonIcon";function ky(e){const{label:t,placement:r,spacing:n="0.5rem",children:i=X.jsx(_0,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...u}=e,l=sr("chakra-button__spinner",o),a=r==="start"?"marginEnd":"marginStart",c=G.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[a]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,a,n]);return X.jsx(et.div,{className:l,...u,__css:c,children:i})}ky.displayName="ButtonSpinner";var pi=wt((e,t)=>{const r=uG(),n=Xi("Button",{...r,...e}),{isDisabled:i=r==null?void 0:r.isDisabled,isLoading:o,isActive:s,children:u,leftIcon:l,rightIcon:a,loadingText:c,iconSpacing:h="0.5rem",type:f,spinner:d,spinnerPlacement:m="start",className:g,as:p,...v}=qr(e),y=G.useMemo(()=>{const $={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:$}}},[n,r]),{ref:b,type:_}=fG(p),E={rightIcon:a,leftIcon:l,iconSpacing:h,children:u};return X.jsxs(et.button,{ref:nG(t,b),as:p,type:f??_,"data-active":gt(s),"data-loading":gt(o),__css:y,className:sr("chakra-button",g),...v,disabled:i||o,children:[o&&m==="start"&&X.jsx(ky,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:h,children:d}),o?c||X.jsx(et.span,{opacity:0,children:X.jsx($S,{...E})}):X.jsx($S,{...E}),o&&m==="end"&&X.jsx(ky,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:h,children:d})]})});pi.displayName="Button";function $S(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return X.jsxs(X.Fragment,{children:[t&&X.jsx(Sy,{marginEnd:i,children:t}),n,r&&X.jsx(Sy,{marginStart:i,children:r})]})}var cE=wt((e,t)=>{const{icon:r,children:n,isRound:i,"aria-label":o,...s}=e,u=r||n,l=G.isValidElement(u)?G.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return X.jsx(pi,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...s,children:l})});cE.displayName="IconButton";var[hG,pG]=Wr({name:"CheckboxGroupContext",strict:!1});function AS(e){return e&&ln(e)&&ln(e.target)}function mG(e={}){const{defaultValue:t,value:r,onChange:n,isDisabled:i,isNative:o}=e,s=Or(n),[u,l]=aE({value:r,defaultValue:t||[],onChange:s}),a=G.useCallback(h=>{if(!u)return;const f=AS(h)?h.target.checked:!u.includes(h),d=AS(h)?h.target.value:h,m=f?[...u,d]:u.filter(g=>String(g)!==String(d));l(m)},[l,u]),c=G.useCallback((h={})=>({...h,[o?"checked":"isChecked"]:u.some(d=>String(h.value)===String(d)),onChange:a}),[a,o,u]);return{value:u,isDisabled:i,onChange:a,setValue:l,getCheckboxProps:c}}function dE(e){const{colorScheme:t,size:r,variant:n,children:i,isDisabled:o}=e,{value:s,onChange:u}=mG(e),l=G.useMemo(()=>({size:r,onChange:u,colorScheme:t,value:s,variant:n,isDisabled:o}),[r,u,t,s,n,o]);return X.jsx(hG,{value:l,children:i})}dE.displayName="CheckboxGroup";function gG(e){const[t,r]=G.useState(e),[n,i]=G.useState(!1);return e!==t&&(i(!0),r(e)),n}function vG(e){return X.jsx(et.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:X.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function yG(e){return X.jsx(et.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:X.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function bG(e){const{isIndeterminate:t,isChecked:r,...n}=e,i=t?yG:vG;return r||t?X.jsx(et.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:X.jsx(i,{...n})}):null}var[wG,fE]=Wr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[_G,Za]=Wr({strict:!1,name:"FormControlContext"});function xG(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:i,isReadOnly:o,...s}=e,u=G.useId(),l=t||`field-${u}`,a=`${l}-label`,c=`${l}-feedback`,h=`${l}-helptext`,[f,d]=G.useState(!1),[m,g]=G.useState(!1),[p,v]=G.useState(!1),y=G.useCallback((M={},P=null)=>({id:h,...M,ref:Tn(P,D=>{D&&g(!0)})}),[h]),b=G.useCallback((M={},P=null)=>({...M,ref:P,"data-focus":gt(p),"data-disabled":gt(i),"data-invalid":gt(n),"data-readonly":gt(o),id:M.id!==void 0?M.id:a,htmlFor:M.htmlFor!==void 0?M.htmlFor:l}),[l,i,p,n,o,a]),_=G.useCallback((M={},P=null)=>({id:c,...M,ref:Tn(P,D=>{D&&d(!0)}),"aria-live":"polite"}),[c]),E=G.useCallback((M={},P=null)=>({...M,...s,ref:P,role:"group","data-focus":gt(p),"data-disabled":gt(i),"data-invalid":gt(n),"data-readonly":gt(o)}),[s,i,p,n,o]),$=G.useCallback((M={},P=null)=>({...M,ref:P,role:"presentation","aria-hidden":!0,children:M.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!o,isDisabled:!!i,isFocused:!!p,onFocus:()=>v(!0),onBlur:()=>v(!1),hasFeedbackText:f,setHasFeedbackText:d,hasHelpText:m,setHasHelpText:g,id:l,labelId:a,feedbackId:c,helpTextId:h,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:_,getRootProps:E,getLabelProps:b,getRequiredIndicatorProps:$}}var Yi=wt(function(t,r){const n=Qr("Form",t),i=qr(t),{getRootProps:o,htmlProps:s,...u}=xG(i),l=sr("chakra-form-control",t.className);return X.jsx(_G,{value:u,children:X.jsx(wG,{value:n,children:X.jsx(et.div,{...o({},r),className:l,__css:n.container})})})});Yi.displayName="FormControl";var hE=wt(function(t,r){const n=Za(),i=fE(),o=sr("chakra-form__helper-text",t.className);return X.jsx(et.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:i.helperText,className:o})});hE.displayName="FormHelperText";var[SG,kG]=Wr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),pE=wt((e,t)=>{const r=Qr("FormError",e),n=qr(e),i=Za();return i!=null&&i.isInvalid?X.jsx(SG,{value:r,children:X.jsx(et.div,{...i==null?void 0:i.getErrorMessageProps(n,t),className:sr("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});pE.displayName="FormErrorMessage";var CG=wt((e,t)=>{const r=kG(),n=Za();if(!(n!=null&&n.isInvalid))return null;const i=sr("chakra-form__error-icon",e.className);return X.jsx(oi,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:i,children:X.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});CG.displayName="FormErrorIcon";var rs=wt(function(t,r){var n;const i=Xi("FormLabel",t),o=qr(t),{className:s,children:u,requiredIndicator:l=X.jsx(mE,{}),optionalIndicator:a=null,...c}=o,h=Za(),f=(n=h==null?void 0:h.getLabelProps(c,r))!=null?n:{ref:r,...c};return X.jsxs(et.label,{...f,className:sr("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i},children:[u,h!=null&&h.isRequired?l:a]})});rs.displayName="FormLabel";var mE=wt(function(t,r){const n=Za(),i=fE();if(!(n!=null&&n.isRequired))return null;const o=sr("chakra-form__required-indicator",t.className);return X.jsx(et.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:i.requiredIndicator,className:o})});mE.displayName="RequiredIndicator";function Z2(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...o}=Q2(e);return{...o,disabled:t,readOnly:n,required:i,"aria-invalid":Lo(r),"aria-required":Lo(i),"aria-readonly":Lo(n)}}function Q2(e){var t,r,n;const i=Za(),{id:o,disabled:s,readOnly:u,required:l,isRequired:a,isInvalid:c,isReadOnly:h,isDisabled:f,onFocus:d,onBlur:m,...g}=e,p=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&p.push(i.feedbackId),i!=null&&i.hasHelpText&&p.push(i.helpTextId),{...g,"aria-describedby":p.join(" ")||void 0,id:o??(i==null?void 0:i.id),isDisabled:(t=s??f)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(r=u??h)!=null?r:i==null?void 0:i.isReadOnly,isRequired:(n=l??a)!=null?n:i==null?void 0:i.isRequired,isInvalid:c??(i==null?void 0:i.isInvalid),onFocus:Ht(i==null?void 0:i.onFocus,d),onBlur:Ht(i==null?void 0:i.onBlur,m)}}var EG={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},TG=()=>typeof document<"u",PS=!1,df=null,La=!1,Cy=!1,Ey=new Set;function J2(e,t){Ey.forEach(r=>r(e,t))}var $G=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function AG(e){return!(e.metaKey||!$G&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function OS(e){La=!0,AG(e)&&(df="keyboard",J2("keyboard",e))}function cl(e){if(df="pointer",e.type==="mousedown"||e.type==="pointerdown"){La=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;J2("pointer",e)}}function PG(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function OG(e){PG(e)&&(La=!0,df="virtual")}function MG(e){e.target===window||e.target===document||(!La&&!Cy&&(df="virtual",J2("virtual",e)),La=!1,Cy=!1)}function IG(){La=!1,Cy=!0}function MS(){return df!=="pointer"}function RG(){if(!TG()||PS)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){La=!0,e.apply(this,r)},document.addEventListener("keydown",OS,!0),document.addEventListener("keyup",OS,!0),document.addEventListener("click",OG,!0),window.addEventListener("focus",MG,!0),window.addEventListener("blur",IG,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",cl,!0),document.addEventListener("pointermove",cl,!0),document.addEventListener("pointerup",cl,!0)):(document.addEventListener("mousedown",cl,!0),document.addEventListener("mousemove",cl,!0),document.addEventListener("mouseup",cl,!0)),PS=!0}function gE(e){RG(),e(MS());const t=()=>e(MS());return Ey.add(t),()=>{Ey.delete(t)}}function jG(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function NG(e={}){const t=Q2(e),{isDisabled:r,isReadOnly:n,isRequired:i,isInvalid:o,id:s,onBlur:u,onFocus:l,"aria-describedby":a}=t,{defaultChecked:c,isChecked:h,isFocusable:f,onChange:d,isIndeterminate:m,name:g,value:p,tabIndex:v=void 0,"aria-label":y,"aria-labelledby":b,"aria-invalid":_,...E}=e,$=jG(E,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),M=Or(d),P=Or(u),D=Or(l),[F,U]=G.useState(!1),[V,A]=G.useState(!1),[O,C]=G.useState(!1),[w,S]=G.useState(!1);G.useEffect(()=>gE(U),[]);const x=G.useRef(null),[k,T]=G.useState(!0),[I,L]=G.useState(!!c),z=h!==void 0,B=z?h:I,W=G.useCallback(ie=>{if(n||r){ie.preventDefault();return}z||L(B?ie.target.checked:m?!0:ie.target.checked),M==null||M(ie)},[n,r,B,z,m,M]);Fo(()=>{x.current&&(x.current.indeterminate=!!m)},[m]),Fa(()=>{r&&A(!1)},[r,A]),Fo(()=>{const ie=x.current;if(!(ie!=null&&ie.form))return;const le=()=>{L(!!c)};return ie.form.addEventListener("reset",le),()=>{var Q;return(Q=ie.form)==null?void 0:Q.removeEventListener("reset",le)}},[]);const N=r&&!f,q=G.useCallback(ie=>{ie.key===" "&&S(!0)},[S]),j=G.useCallback(ie=>{ie.key===" "&&S(!1)},[S]);Fo(()=>{if(!x.current)return;x.current.checked!==B&&L(x.current.checked)},[x.current]);const R=G.useCallback((ie={},le=null)=>{const Q=se=>{V&&se.preventDefault(),S(!0)};return{...ie,ref:le,"data-active":gt(w),"data-hover":gt(O),"data-checked":gt(B),"data-focus":gt(V),"data-focus-visible":gt(V&&F),"data-indeterminate":gt(m),"data-disabled":gt(r),"data-invalid":gt(o),"data-readonly":gt(n),"aria-hidden":!0,onMouseDown:Ht(ie.onMouseDown,Q),onMouseUp:Ht(ie.onMouseUp,()=>S(!1)),onMouseEnter:Ht(ie.onMouseEnter,()=>C(!0)),onMouseLeave:Ht(ie.onMouseLeave,()=>C(!1))}},[w,B,r,V,F,O,m,o,n]),H=G.useCallback((ie={},le=null)=>({...ie,ref:le,"data-active":gt(w),"data-hover":gt(O),"data-checked":gt(B),"data-focus":gt(V),"data-focus-visible":gt(V&&F),"data-indeterminate":gt(m),"data-disabled":gt(r),"data-invalid":gt(o),"data-readonly":gt(n)}),[w,B,r,V,F,O,m,o,n]),K=G.useCallback((ie={},le=null)=>({...$,...ie,ref:Tn(le,Q=>{Q&&T(Q.tagName==="LABEL")}),onClick:Ht(ie.onClick,()=>{var Q;k||((Q=x.current)==null||Q.click(),requestAnimationFrame(()=>{var se;(se=x.current)==null||se.focus({preventScroll:!0})}))}),"data-disabled":gt(r),"data-checked":gt(B),"data-invalid":gt(o)}),[$,r,B,o,k]),ee=G.useCallback((ie={},le=null)=>({...ie,ref:Tn(x,le),type:"checkbox",name:g,value:p,id:s,tabIndex:v,onChange:Ht(ie.onChange,W),onBlur:Ht(ie.onBlur,P,()=>A(!1)),onFocus:Ht(ie.onFocus,D,()=>A(!0)),onKeyDown:Ht(ie.onKeyDown,q),onKeyUp:Ht(ie.onKeyUp,j),required:i,checked:B,disabled:N,readOnly:n,"aria-label":y,"aria-labelledby":b,"aria-invalid":_?!!_:o,"aria-describedby":a,"aria-disabled":r,style:EG}),[g,p,s,W,P,D,q,j,i,B,N,n,y,b,_,o,a,r,v]),Y=G.useCallback((ie={},le=null)=>({...ie,ref:le,onMouseDown:Ht(ie.onMouseDown,DG),"data-disabled":gt(r),"data-checked":gt(B),"data-invalid":gt(o)}),[B,r,o]);return{state:{isInvalid:o,isFocused:V,isChecked:B,isActive:w,isHovered:O,isIndeterminate:m,isDisabled:r,isReadOnly:n,isRequired:i},getRootProps:K,getCheckboxProps:R,getIndicatorProps:H,getInputProps:ee,getLabelProps:Y,htmlProps:$}}function DG(e){e.preventDefault(),e.stopPropagation()}var FG={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},LG={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},BG=rf({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),zG=rf({from:{opacity:0},to:{opacity:1}}),VG=rf({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),ew=wt(function(t,r){const n=pG(),i={...n,...t},o=Qr("Checkbox",i),s=qr(t),{spacing:u="0.5rem",className:l,children:a,iconColor:c,iconSize:h,icon:f=X.jsx(bG,{}),isChecked:d,isDisabled:m=n==null?void 0:n.isDisabled,onChange:g,inputProps:p,...v}=s;let y=d;n!=null&&n.value&&s.value&&(y=n.value.includes(s.value));let b=g;n!=null&&n.onChange&&s.value&&(b=tC(n.onChange,g));const{state:_,getInputProps:E,getCheckboxProps:$,getLabelProps:M,getRootProps:P}=NG({...v,isDisabled:m,isChecked:y,onChange:b}),D=gG(_.isChecked),F=G.useMemo(()=>({animation:D?_.isIndeterminate?`${zG} 20ms linear, ${VG} 200ms linear`:`${BG} 200ms linear`:void 0,fontSize:h,color:c,...o.icon}),[c,h,D,_.isIndeterminate,o.icon]),U=G.cloneElement(f,{__css:F,isIndeterminate:_.isIndeterminate,isChecked:_.isChecked});return X.jsxs(et.label,{__css:{...LG,...o.container},className:sr("chakra-checkbox",l),...P(),children:[X.jsx("input",{className:"chakra-checkbox__input",...E(p,r)}),X.jsx(et.span,{__css:{...FG,...o.control},className:"chakra-checkbox__control",...$(),children:U}),a&&X.jsx(et.span,{className:"chakra-checkbox__label",...M(),__css:{marginStart:u,...o.label},children:a})]})});ew.displayName="Checkbox";function UG(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function tw(e,t){let r=UG(e);const n=10**(t??10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function Ty(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function IS(e,t,r){return(e-t)*100/(r-t)}function HG(e,t,r){return(r-t)*e+t}function RS(e,t,r){const n=Math.round((e-t)/r)*r+t,i=Ty(r);return tw(n,i)}function rp(e,t,r){return e==null?e:(r{var F;return n==null?"":(F=w1(n,o,r))!=null?F:""}),f=typeof i<"u",d=f?i:c,m=vE(ws(d),o),g=r??m,p=G.useCallback(F=>{F!==d&&(f||h(F.toString()),a==null||a(F.toString(),ws(F)))},[a,f,d]),v=G.useCallback(F=>{let U=F;return l&&(U=rp(U,s,u)),tw(U,g)},[g,l,u,s]),y=G.useCallback((F=o)=>{let U;d===""?U=ws(F):U=ws(d)+F,U=v(U),p(U)},[v,o,p,d]),b=G.useCallback((F=o)=>{let U;d===""?U=ws(-F):U=ws(d)-F,U=v(U),p(U)},[v,o,p,d]),_=G.useCallback(()=>{var F;let U;n==null?U="":U=(F=w1(n,o,r))!=null?F:s,p(U)},[n,r,o,p,s]),E=G.useCallback(F=>{var U;const V=(U=w1(F,o,g))!=null?U:s;p(V)},[g,o,p,s]),$=ws(d);return{isOutOfRange:$>u||${const o=typeof e=="function"?e():e??document;if(!(!r||!o))return o.addEventListener(t,i,n),()=>{o.removeEventListener(t,i,n)}},[t,e,n,i,r]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,n)}}function qG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function $y(e,t){return $y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$y(e,t)}function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function KG(e,t){if(Ba(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ba(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bE(e){var t=KG(e,"string");return Ba(t)==="symbol"?t:String(t)}function jc(e,t,r){return t=bE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wE(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function _E(e){var t;if(!wE(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function GG(e){var t,r;return(r=(t=xE(e))==null?void 0:t.defaultView)!=null?r:window}function xE(e){return wE(e)?e.ownerDocument:document}function XG(e){return xE(e).activeElement}var SE=e=>e.hasAttribute("tabindex"),YG=e=>SE(e)&&e.tabIndex===-1;function ZG(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function kE(e){return e.parentElement&&kE(e.parentElement)?!0:e.hidden}function QG(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function JG(e){if(!_E(e)||kE(e)||ZG(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():QG(e)?!0:SE(e)}function eX(e){return e?_E(e)&&JG(e)&&!YG(e):!1}var x0=wt(function(t,r){const{htmlSize:n,...i}=t,o=Qr("Input",i),s=qr(i),u=Z2(s),l=sr("chakra-input",t.className);return X.jsx(et.input,{size:n,...u,__css:o.field,ref:r,className:l})});x0.displayName="Input";x0.id="Input";var CE=wt(function(t,r){const n=Xi("Link",t),{className:i,isExternal:o,...s}=qr(t);return X.jsx(et.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:r,className:sr("chakra-link",i),...s,__css:n})});CE.displayName="Link";var[tX,EE]=Wr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ff=wt(function(t,r){const n=Qr("List",t),{children:i,styleType:o="none",stylePosition:s,spacing:u,...l}=qr(t),a=lE(i),h=u?{["& > *:not(style) ~ *:not(style)"]:{mt:u}}:{};return X.jsx(tX,{value:n,children:X.jsx(et.ul,{ref:r,listStyleType:o,listStylePosition:s,role:"list",__css:{...n.container,...h},...l,children:a})})});ff.displayName="List";var rX=wt((e,t)=>{const{as:r,...n}=e;return X.jsx(ff,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});rX.displayName="OrderedList";var nX=wt(function(t,r){const{as:n,...i}=t;return X.jsx(ff,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...i})});nX.displayName="UnorderedList";var rw=wt(function(t,r){const n=EE();return X.jsx(et.li,{ref:r,...t,__css:n.item})});rw.displayName="ListItem";var TE=wt(function(t,r){const n=EE();return X.jsx(oi,{ref:r,role:"presentation",...t,__css:n.icon})});TE.displayName="ListIcon";var S0=wt(function(t,r){const{templateAreas:n,gap:i,rowGap:o,columnGap:s,column:u,row:l,autoFlow:a,autoRows:c,templateRows:h,autoColumns:f,templateColumns:d,...m}=t,g={display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:o,gridColumnGap:s,gridAutoColumns:f,gridColumn:u,gridRow:l,gridAutoFlow:a,gridAutoRows:c,gridTemplateRows:h,gridTemplateColumns:d};return X.jsx(et.div,{ref:r,__css:g,...m})});S0.displayName="Grid";var $E=Object.freeze(["base","sm","md","lg","xl","2xl"]);function AE(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):ln(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function iX(e,t=$E){const r={};return e.forEach((n,i)=>{const o=t[i];n!=null&&(r[o]=n)}),r}var hf=wt(function(t,r){const n=Xi("Text",t),{className:i,align:o,decoration:s,casing:u,...l}=qr(t),a=OC({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return X.jsx(et.p,{ref:r,className:sr("chakra-text",t.className),...a,...l,__css:n})});hf.displayName="Text";var PE=e=>X.jsx(et.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});PE.displayName="StackItem";function oX(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":AE(r,i=>n[i])}}var vu=wt((e,t)=>{const{isInline:r,direction:n,align:i,justify:o,spacing:s="0.5rem",wrap:u,children:l,divider:a,className:c,shouldWrapChildren:h,...f}=e,d=r?"row":n??"column",m=G.useMemo(()=>oX({spacing:s,direction:d}),[s,d]),g=!!a,p=!h&&!g,v=G.useMemo(()=>{const b=lE(l);return p?b:b.map((_,E)=>{const $=typeof _.key<"u"?_.key:E,M=E+1===b.length,D=h?X.jsx(PE,{children:_},$):_;if(!g)return D;const F=G.cloneElement(a,{__css:m}),U=M?null:F;return X.jsxs(G.Fragment,{children:[D,U]},$)})},[a,m,g,p,h,l]),y=sr("chakra-stack",c);return X.jsx(et.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:d,flexWrap:u,gap:g?void 0:s,className:y,...f,children:v})});vu.displayName="Stack";var OE=wt((e,t)=>X.jsx(vu,{align:"center",...e,direction:"row",ref:t}));OE.displayName="HStack";function jS(e){return AE(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Vs=wt(function(t,r){const{area:n,colSpan:i,colStart:o,colEnd:s,rowEnd:u,rowSpan:l,rowStart:a,...c}=t,h=OC({gridArea:n,gridColumn:jS(i),gridRow:jS(l),gridColumnStart:o,gridColumnEnd:s,gridRowStart:a,gridRowEnd:u});return X.jsx(et.div,{ref:r,__css:h,...c})});Vs.displayName="GridItem";var nw=wt(function(t,r){const n=Xi("Heading",t),{className:i,...o}=qr(t);return X.jsx(et.h2,{ref:r,className:sr("chakra-heading",t.className),...o,__css:n})});nw.displayName="Heading";var nr=et("div");nr.displayName="Box";var ME=wt(function(t,r){const{size:n,centerContent:i=!0,...o}=t,s=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return X.jsx(nr,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...o})});ME.displayName="Square";var sX=wt(function(t,r){const{size:n,...i}=t;return X.jsx(ME,{size:n,ref:r,borderRadius:"9999px",...i})});sX.displayName="Circle";var iw=wt(function(t,r){const{borderLeftWidth:n,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:s,borderWidth:u,borderStyle:l,borderColor:a,...c}=Xi("Divider",t),{className:h,orientation:f="horizontal",__css:d,...m}=qr(t),g={vertical:{borderLeftWidth:n||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||u||"1px",width:"100%"}};return X.jsx(et.hr,{ref:r,"aria-orientation":f,...m,__css:{...c,border:"0",borderColor:a,borderStyle:l,...g[f],...d},className:sr("chakra-divider",h)})});iw.displayName="Divider";function aX(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:i}=cU(),o=Array.isArray(e)?e:[e];let s=Array.isArray(n)?n:[n];s=s.filter(a=>a!=null);const[u,l]=G.useState(()=>o.map((a,c)=>({media:a,matches:r?!!s[c]:i().matchMedia(a).matches})));return G.useEffect(()=>{const a=i();l(o.map(f=>({media:f,matches:a.matchMedia(f).matches})));const c=o.map(f=>a.matchMedia(f)),h=f=>{l(d=>d.slice().map(m=>m.media===f.media?{...m,matches:f.matches}:m))};return c.forEach(f=>{typeof f.addListener=="function"?f.addListener(h):f.addEventListener("change",h)}),()=>{c.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(h):f.removeEventListener("change",h)})}},[i]),u.map(a=>a.matches)}function lX(e,t,r=$E){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let i=r.indexOf(t);for(;i>=0;){const o=r[i];if(e.hasOwnProperty(o)){n=i;break}i-=1}if(n!==-1){const o=r[n];return e[o]}}function uX(e){var t,r;const n=ln(e)?e:{fallback:e??"base"},o=Ga().__breakpoints.details.map(({minMaxQuery:a,breakpoint:c})=>({breakpoint:c,query:a.replace("@media screen and ","")})),s=o.map(a=>a.breakpoint===n.fallback),l=aX(o.map(a=>a.query),{fallback:s,ssr:n.ssr}).findIndex(a=>a==!0);return(r=(t=o[l])==null?void 0:t.breakpoint)!=null?r:n.fallback}function cX(e,t){var r;const n=ln(t)?t:{fallback:t??"base"},i=uX(n),o=Ga();if(!i)return;const s=Array.from(((r=o.__breakpoints)==null?void 0:r.keys)||[]),u=Array.isArray(e)?Object.fromEntries(Object.entries(iX(e,s)).map(([l,a])=>[l,a])):e;return lX(u,i,s)}function dX(e){const t=e.current;if(!t)return!1;const r=XG(t);return!r||t.contains(r)?!1:!!eX(r)}function fX(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,o=r&&!n;Fa(()=>{if(!o||dX(e))return;const s=(i==null?void 0:i.current)||e.current;let u;if(s)return u=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(u)}},[o,e,i])}var dl=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),qn={arrowShadowColor:dl("--popper-arrow-shadow-color"),arrowSize:dl("--popper-arrow-size","8px"),arrowSizeHalf:dl("--popper-arrow-size-half"),arrowBg:dl("--popper-arrow-bg"),transformOrigin:dl("--popper-transform-origin"),arrowOffset:dl("--popper-arrow-offset")};function hX(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var pX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},mX=e=>pX[e],NS={scroll:!0,resize:!0};function gX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...NS,...e}}:t={enabled:e,options:NS},t}var vX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},yX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{DS(e)},effect:({state:e})=>()=>{DS(e)}},DS=e=>{e.elements.popper.style.setProperty(qn.transformOrigin.var,mX(e.placement))},bX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{wX(e)}},wX=e=>{var t;if(!e.placement)return;const r=_X(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:qn.arrowSize.varRef,height:qn.arrowSize.varRef,zIndex:-1});const n={[qn.arrowSizeHalf.var]:`calc(${qn.arrowSize.varRef} / 2 - 1px)`,[qn.arrowOffset.var]:`calc(${qn.arrowSizeHalf.varRef} * -1)`};for(const i in n)e.elements.arrow.style.setProperty(i,n[i])}},_X=e=>{if(e.startsWith("top"))return{property:"bottom",value:qn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:qn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:qn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:qn.arrowOffset.varRef}},xX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{FS(e)},effect:({state:e})=>()=>{FS(e)}},FS=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=hX(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:qn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},SX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},kX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function CX(e,t="ltr"){var r,n;const i=((r=SX[e])==null?void 0:r[t])||e;return t==="ltr"?i:(n=kX[e])!=null?n:i}var Fn="top",xi="bottom",Si="right",Ln="left",ow="auto",pf=[Fn,xi,Si,Ln],yu="start",zd="end",EX="clippingParents",IE="viewport",vc="popper",TX="reference",LS=pf.reduce(function(e,t){return e.concat([t+"-"+yu,t+"-"+zd])},[]),RE=[].concat(pf,[ow]).reduce(function(e,t){return e.concat([t,t+"-"+yu,t+"-"+zd])},[]),$X="beforeRead",AX="read",PX="afterRead",OX="beforeMain",MX="main",IX="afterMain",RX="beforeWrite",jX="write",NX="afterWrite",DX=[$X,AX,PX,OX,MX,IX,RX,jX,NX];function _o(e){return e?(e.nodeName||"").toLowerCase():null}function ei(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function za(e){var t=ei(e).Element;return e instanceof t||e instanceof Element}function bi(e){var t=ei(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sw(e){if(typeof ShadowRoot>"u")return!1;var t=ei(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function FX(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!bi(o)||!_o(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var u=i[s];u===!1?o.removeAttribute(s):o.setAttribute(s,u===!0?"":u)}))})}function LX(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=s.reduce(function(l,a){return l[a]="",l},{});!bi(i)||!_o(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const BX={name:"applyStyles",enabled:!0,phase:"write",fn:FX,effect:LX,requires:["computeStyles"]};function wo(e){return e.split("-")[0]}var Ma=Math.max,rm=Math.min,bu=Math.round;function Ay(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function jE(){return!/^((?!chrome|android).)*safari/i.test(Ay())}function wu(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&bi(e)&&(i=e.offsetWidth>0&&bu(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&bu(n.height)/e.offsetHeight||1);var s=za(e)?ei(e):window,u=s.visualViewport,l=!jE()&&r,a=(n.left+(l&&u?u.offsetLeft:0))/i,c=(n.top+(l&&u?u.offsetTop:0))/o,h=n.width/i,f=n.height/o;return{width:h,height:f,top:c,right:a+h,bottom:c+f,left:a,x:a,y:c}}function aw(e){var t=wu(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function NE(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sw(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Jo(e){return ei(e).getComputedStyle(e)}function zX(e){return["table","td","th"].indexOf(_o(e))>=0}function ta(e){return((za(e)?e.ownerDocument:e.document)||window.document).documentElement}function k0(e){return _o(e)==="html"?e:e.assignedSlot||e.parentNode||(sw(e)?e.host:null)||ta(e)}function BS(e){return!bi(e)||Jo(e).position==="fixed"?null:e.offsetParent}function VX(e){var t=/firefox/i.test(Ay()),r=/Trident/i.test(Ay());if(r&&bi(e)){var n=Jo(e);if(n.position==="fixed")return null}var i=k0(e);for(sw(i)&&(i=i.host);bi(i)&&["html","body"].indexOf(_o(i))<0;){var o=Jo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function mf(e){for(var t=ei(e),r=BS(e);r&&zX(r)&&Jo(r).position==="static";)r=BS(r);return r&&(_o(r)==="html"||_o(r)==="body"&&Jo(r).position==="static")?t:r||VX(e)||t}function lw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nd(e,t,r){return Ma(e,rm(t,r))}function UX(e,t,r){var n=nd(e,t,r);return n>r?r:n}function DE(){return{top:0,right:0,bottom:0,left:0}}function FE(e){return Object.assign({},DE(),e)}function LE(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var HX=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,FE(typeof t!="number"?t:LE(t,pf))};function WX(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,u=wo(r.placement),l=lw(u),a=[Ln,Si].indexOf(u)>=0,c=a?"height":"width";if(!(!o||!s)){var h=HX(i.padding,r),f=aw(o),d=l==="y"?Fn:Ln,m=l==="y"?xi:Si,g=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],p=s[l]-r.rects.reference[l],v=mf(o),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-p/2,_=h[d],E=y-f[c]-h[m],$=y/2-f[c]/2+b,M=nd(_,$,E),P=l;r.modifiersData[n]=(t={},t[P]=M,t.centerOffset=M-$,t)}}function qX(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||NE(t.elements.popper,i)&&(t.elements.arrow=i))}const KX={name:"arrow",enabled:!0,phase:"main",fn:WX,effect:qX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _u(e){return e.split("-")[1]}var GX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function XX(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:bu(r*i)/i||0,y:bu(n*i)/i||0}}function zS(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,u=e.position,l=e.gpuAcceleration,a=e.adaptive,c=e.roundOffsets,h=e.isFixed,f=s.x,d=f===void 0?0:f,m=s.y,g=m===void 0?0:m,p=typeof c=="function"?c({x:d,y:g}):{x:d,y:g};d=p.x,g=p.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=Ln,_=Fn,E=window;if(a){var $=mf(r),M="clientHeight",P="clientWidth";if($===ei(r)&&($=ta(r),Jo($).position!=="static"&&u==="absolute"&&(M="scrollHeight",P="scrollWidth")),$=$,i===Fn||(i===Ln||i===Si)&&o===zd){_=xi;var D=h&&$===E&&E.visualViewport?E.visualViewport.height:$[M];g-=D-n.height,g*=l?1:-1}if(i===Ln||(i===Fn||i===xi)&&o===zd){b=Si;var F=h&&$===E&&E.visualViewport?E.visualViewport.width:$[P];d-=F-n.width,d*=l?1:-1}}var U=Object.assign({position:u},a&&GX),V=c===!0?XX({x:d,y:g},ei(r)):{x:d,y:g};if(d=V.x,g=V.y,l){var A;return Object.assign({},U,(A={},A[_]=y?"0":"",A[b]=v?"0":"",A.transform=(E.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",A))}return Object.assign({},U,(t={},t[_]=y?g+"px":"",t[b]=v?d+"px":"",t.transform="",t))}function YX(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,u=r.roundOffsets,l=u===void 0?!0:u,a={placement:wo(t.placement),variation:_u(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zS(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zS(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ZX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YX,data:{}};var ch={passive:!0};function QX(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,u=s===void 0?!0:s,l=ei(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&a.forEach(function(c){c.addEventListener("scroll",r.update,ch)}),u&&l.addEventListener("resize",r.update,ch),function(){o&&a.forEach(function(c){c.removeEventListener("scroll",r.update,ch)}),u&&l.removeEventListener("resize",r.update,ch)}}const JX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:QX,data:{}};var eY={left:"right",right:"left",bottom:"top",top:"bottom"};function np(e){return e.replace(/left|right|bottom|top/g,function(t){return eY[t]})}var tY={start:"end",end:"start"};function VS(e){return e.replace(/start|end/g,function(t){return tY[t]})}function uw(e){var t=ei(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function cw(e){return wu(ta(e)).left+uw(e).scrollLeft}function rY(e,t){var r=ei(e),n=ta(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,u=0,l=0;if(i){o=i.width,s=i.height;var a=jE();(a||!a&&t==="fixed")&&(u=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:u+cw(e),y:l}}function nY(e){var t,r=ta(e),n=uw(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ma(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Ma(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-n.scrollLeft+cw(e),l=-n.scrollTop;return Jo(i||r).direction==="rtl"&&(u+=Ma(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:u,y:l}}function dw(e){var t=Jo(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function BE(e){return["html","body","#document"].indexOf(_o(e))>=0?e.ownerDocument.body:bi(e)&&dw(e)?e:BE(k0(e))}function id(e,t){var r;t===void 0&&(t=[]);var n=BE(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ei(n),s=i?[o].concat(o.visualViewport||[],dw(n)?n:[]):n,u=t.concat(s);return i?u:u.concat(id(k0(s)))}function Py(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function iY(e,t){var r=wu(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function US(e,t,r){return t===IE?Py(rY(e,r)):za(t)?iY(t,r):Py(nY(ta(e)))}function oY(e){var t=id(k0(e)),r=["absolute","fixed"].indexOf(Jo(e).position)>=0,n=r&&bi(e)?mf(e):e;return za(n)?t.filter(function(i){return za(i)&&NE(i,n)&&_o(i)!=="body"}):[]}function sY(e,t,r,n){var i=t==="clippingParents"?oY(e):[].concat(t),o=[].concat(i,[r]),s=o[0],u=o.reduce(function(l,a){var c=US(e,a,n);return l.top=Ma(c.top,l.top),l.right=rm(c.right,l.right),l.bottom=rm(c.bottom,l.bottom),l.left=Ma(c.left,l.left),l},US(e,s,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function zE(e){var t=e.reference,r=e.element,n=e.placement,i=n?wo(n):null,o=n?_u(n):null,s=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,l;switch(i){case Fn:l={x:s,y:t.y-r.height};break;case xi:l={x:s,y:t.y+t.height};break;case Si:l={x:t.x+t.width,y:u};break;case Ln:l={x:t.x-r.width,y:u};break;default:l={x:t.x,y:t.y}}var a=i?lw(i):null;if(a!=null){var c=a==="y"?"height":"width";switch(o){case yu:l[a]=l[a]-(t[c]/2-r[c]/2);break;case zd:l[a]=l[a]+(t[c]/2-r[c]/2);break}}return l}function Vd(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,u=r.boundary,l=u===void 0?EX:u,a=r.rootBoundary,c=a===void 0?IE:a,h=r.elementContext,f=h===void 0?vc:h,d=r.altBoundary,m=d===void 0?!1:d,g=r.padding,p=g===void 0?0:g,v=FE(typeof p!="number"?p:LE(p,pf)),y=f===vc?TX:vc,b=e.rects.popper,_=e.elements[m?y:f],E=sY(za(_)?_:_.contextElement||ta(e.elements.popper),l,c,s),$=wu(e.elements.reference),M=zE({reference:$,element:b,strategy:"absolute",placement:i}),P=Py(Object.assign({},b,M)),D=f===vc?P:$,F={top:E.top-D.top+v.top,bottom:D.bottom-E.bottom+v.bottom,left:E.left-D.left+v.left,right:D.right-E.right+v.right},U=e.modifiersData.offset;if(f===vc&&U){var V=U[i];Object.keys(F).forEach(function(A){var O=[Si,xi].indexOf(A)>=0?1:-1,C=[Fn,xi].indexOf(A)>=0?"y":"x";F[A]+=V[C]*O})}return F}function aY(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,u=r.flipVariations,l=r.allowedAutoPlacements,a=l===void 0?RE:l,c=_u(n),h=c?u?LS:LS.filter(function(m){return _u(m)===c}):pf,f=h.filter(function(m){return a.indexOf(m)>=0});f.length===0&&(f=h);var d=f.reduce(function(m,g){return m[g]=Vd(e,{placement:g,boundary:i,rootBoundary:o,padding:s})[wo(g)],m},{});return Object.keys(d).sort(function(m,g){return d[m]-d[g]})}function lY(e){if(wo(e)===ow)return[];var t=np(e);return[VS(e),t,VS(t)]}function uY(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!0:s,l=r.fallbackPlacements,a=r.padding,c=r.boundary,h=r.rootBoundary,f=r.altBoundary,d=r.flipVariations,m=d===void 0?!0:d,g=r.allowedAutoPlacements,p=t.options.placement,v=wo(p),y=v===p,b=l||(y||!m?[np(p)]:lY(p)),_=[p].concat(b).reduce(function(B,W){return B.concat(wo(W)===ow?aY(t,{placement:W,boundary:c,rootBoundary:h,padding:a,flipVariations:m,allowedAutoPlacements:g}):W)},[]),E=t.rects.reference,$=t.rects.popper,M=new Map,P=!0,D=_[0],F=0;F<_.length;F++){var U=_[F],V=wo(U),A=_u(U)===yu,O=[Fn,xi].indexOf(V)>=0,C=O?"width":"height",w=Vd(t,{placement:U,boundary:c,rootBoundary:h,altBoundary:f,padding:a}),S=O?A?Si:Ln:A?xi:Fn;E[C]>$[C]&&(S=np(S));var x=np(S),k=[];if(o&&k.push(w[V]<=0),u&&k.push(w[S]<=0,w[x]<=0),k.every(function(B){return B})){D=U,P=!1;break}M.set(U,k)}if(P)for(var T=m?3:1,I=function(W){var N=_.find(function(q){var j=M.get(q);if(j)return j.slice(0,W).every(function(R){return R})});if(N)return D=N,"break"},L=T;L>0;L--){var z=I(L);if(z==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const cY={name:"flip",enabled:!0,phase:"main",fn:uY,requiresIfExists:["offset"],data:{_skip:!1}};function HS(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function WS(e){return[Fn,Si,xi,Ln].some(function(t){return e[t]>=0})}function dY(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Vd(t,{elementContext:"reference"}),u=Vd(t,{altBoundary:!0}),l=HS(s,n),a=HS(u,i,o),c=WS(l),h=WS(a);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:a,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const fY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dY};function hY(e,t,r){var n=wo(e),i=[Ln,Fn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],u=o[1];return s=s||0,u=(u||0)*i,[Ln,Si].indexOf(n)>=0?{x:u,y:s}:{x:s,y:u}}function pY(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=RE.reduce(function(c,h){return c[h]=hY(h,t.rects,o),c},{}),u=s[t.placement],l=u.x,a=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=a),t.modifiersData[n]=s}const mY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pY};function gY(e){var t=e.state,r=e.name;t.modifiersData[r]=zE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const vY={name:"popperOffsets",enabled:!0,phase:"read",fn:gY,data:{}};function yY(e){return e==="x"?"y":"x"}function bY(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,u=s===void 0?!1:s,l=r.boundary,a=r.rootBoundary,c=r.altBoundary,h=r.padding,f=r.tether,d=f===void 0?!0:f,m=r.tetherOffset,g=m===void 0?0:m,p=Vd(t,{boundary:l,rootBoundary:a,padding:h,altBoundary:c}),v=wo(t.placement),y=_u(t.placement),b=!y,_=lw(v),E=yY(_),$=t.modifiersData.popperOffsets,M=t.rects.reference,P=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,F=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if($){if(o){var A,O=_==="y"?Fn:Ln,C=_==="y"?xi:Si,w=_==="y"?"height":"width",S=$[_],x=S+p[O],k=S-p[C],T=d?-P[w]/2:0,I=y===yu?M[w]:P[w],L=y===yu?-P[w]:-M[w],z=t.elements.arrow,B=d&&z?aw(z):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:DE(),N=W[O],q=W[C],j=nd(0,M[w],B[w]),R=b?M[w]/2-T-j-N-F.mainAxis:I-j-N-F.mainAxis,H=b?-M[w]/2+T+j+q+F.mainAxis:L+j+q+F.mainAxis,K=t.elements.arrow&&mf(t.elements.arrow),ee=K?_==="y"?K.clientTop||0:K.clientLeft||0:0,Y=(A=U==null?void 0:U[_])!=null?A:0,te=S+R-Y-ee,ie=S+H-Y,le=nd(d?rm(x,te):x,S,d?Ma(k,ie):k);$[_]=le,V[_]=le-S}if(u){var Q,se=_==="x"?Fn:Ln,ae=_==="x"?xi:Si,fe=$[E],de=E==="y"?"height":"width",pe=fe+p[se],ye=fe-p[ae],we=[Fn,Ln].indexOf(v)!==-1,Ce=(Q=U==null?void 0:U[E])!=null?Q:0,Ie=we?pe:fe-M[de]-P[de]-Ce+F.altAxis,Re=we?fe+M[de]+P[de]-Ce-F.altAxis:ye,be=d&&we?UX(Ie,fe,Re):nd(d?Ie:pe,fe,d?Re:ye);$[E]=be,V[E]=be-fe}t.modifiersData[n]=V}}const wY={name:"preventOverflow",enabled:!0,phase:"main",fn:bY,requiresIfExists:["offset"]};function _Y(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xY(e){return e===ei(e)||!bi(e)?uw(e):_Y(e)}function SY(e){var t=e.getBoundingClientRect(),r=bu(t.width)/e.offsetWidth||1,n=bu(t.height)/e.offsetHeight||1;return r!==1||n!==1}function kY(e,t,r){r===void 0&&(r=!1);var n=bi(t),i=bi(t)&&SY(t),o=ta(t),s=wu(e,i,r),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((_o(t)!=="body"||dw(o))&&(u=xY(t)),bi(t)?(l=wu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=cw(o))),{x:s.left+u.scrollLeft-l.x,y:s.top+u.scrollTop-l.y,width:s.width,height:s.height}}function CY(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(u){if(!r.has(u)){var l=t.get(u);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function EY(e){var t=CY(e);return DX.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function TY(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function $Y(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var qS={placement:"bottom",modifiers:[],strategy:"absolute"};function KS(){for(var e=arguments.length,t=new Array(e),r=0;r{}),b=G.useCallback(()=>{var F;!t||!m.current||!g.current||((F=y.current)==null||F.call(y),p.current=OY(m.current,g.current,{placement:v,modifiers:[xX,bX,yX,{...vX,enabled:!!f},{name:"eventListeners",...gX(s)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:u??[0,l]}},{name:"flip",enabled:!!a,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:c}},...r??[]],strategy:i}),p.current.forceUpdate(),y.current=p.current.destroy)},[v,t,r,f,s,o,u,l,a,h,c,i]);G.useEffect(()=>()=>{var F;!m.current&&!g.current&&((F=p.current)==null||F.destroy(),p.current=null)},[]);const _=G.useCallback(F=>{m.current=F,b()},[b]),E=G.useCallback((F={},U=null)=>({...F,ref:Tn(_,U)}),[_]),$=G.useCallback(F=>{g.current=F,b()},[b]),M=G.useCallback((F={},U=null)=>({...F,ref:Tn($,U),style:{...F.style,position:i,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[i,$,f]),P=G.useCallback((F={},U=null)=>{const{size:V,shadowColor:A,bg:O,style:C,...w}=F;return{...w,ref:U,"data-popper-arrow":"",style:IY(F)}},[]),D=G.useCallback((F={},U=null)=>({...F,ref:U,"data-popper-arrow-inner":""}),[]);return{update(){var F;(F=p.current)==null||F.update()},forceUpdate(){var F;(F=p.current)==null||F.forceUpdate()},transformOrigin:qn.transformOrigin.varRef,referenceRef:_,popperRef:$,getPopperProps:M,getArrowProps:P,getArrowInnerProps:D,getReferenceProps:E}}function IY(e){const{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function RY(e={}){const{onClose:t,onOpen:r,isOpen:n,id:i}=e,o=Or(r),s=Or(t),[u,l]=G.useState(e.defaultIsOpen||!1),a=n!==void 0?n:u,c=n!==void 0,h=G.useId(),f=i??`disclosure-${h}`,d=G.useCallback(()=>{c||l(!1),s==null||s()},[c,s]),m=G.useCallback(()=>{c||l(!0),o==null||o()},[c,o]),g=G.useCallback(()=>{a?d():m()},[a,m,d]);function p(y={}){return{...y,"aria-expanded":a,"aria-controls":f,onClick(b){var _;(_=y.onClick)==null||_.call(y,b),g()}}}function v(y={}){return{...y,hidden:!a,id:f}}return{isOpen:a,onOpen:m,onClose:d,onToggle:g,isControlled:c,getButtonProps:p,getDisclosureProps:v}}function jY(e){const{ref:t,handler:r,enabled:n=!0}=e,i=Or(r),s=G.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;G.useEffect(()=>{if(!n)return;const u=h=>{_1(h,t)&&(s.isPointerDown=!0)},l=h=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&r&&_1(h,t)&&(s.isPointerDown=!1,i(h))},a=h=>{s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&_1(h,t)&&(s.isPointerDown=!1,i(h))},c=VE(t.current);return c.addEventListener("mousedown",u,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",u,!0),c.addEventListener("touchend",a,!0),()=>{c.removeEventListener("mousedown",u,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",u,!0),c.removeEventListener("touchend",a,!0)}},[r,t,i,s,n])}function _1(e,t){var r;const n=e.target;return n&&!VE(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function VE(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function NY(e){const{isOpen:t,ref:r}=e,[n,i]=G.useState(t),[o,s]=G.useState(!1);return G.useEffect(()=>{o||(i(t),s(!0))},[t,o,n]),yE(()=>r.current,"animationend",()=>{i(t)}),{present:!(t?!1:!n),onComplete(){var l;const a=GG(r.current),c=new a.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(c)}}}var[DY,h6e,FY,p6e]=aG(),[LY,m6e]=Wr({strict:!1,name:"MenuContext"});function BY(e,...t){const r=G.useId(),n=e||r;return G.useMemo(()=>t.map(i=>`${i}-${n}`),[n,t])}function zY(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function VY(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:i,autoSelect:o=!0,isLazy:s,isOpen:u,defaultIsOpen:l,onClose:a,onOpen:c,placement:h="bottom-start",lazyBehavior:f="unmount",direction:d,computePositionOnMount:m=!1,...g}=e,p=G.useRef(null),v=G.useRef(null),y=FY(),b=G.useCallback(()=>{requestAnimationFrame(()=>{var z;(z=p.current)==null||z.focus({preventScroll:!1})})},[]),_=G.useCallback(()=>{const z=setTimeout(()=>{var B;if(i)(B=i.current)==null||B.focus();else{const W=y.firstEnabled();W&&A(W.index)}});x.current.add(z)},[y,i]),E=G.useCallback(()=>{const z=setTimeout(()=>{const B=y.lastEnabled();B&&A(B.index)});x.current.add(z)},[y]),$=G.useCallback(()=>{c==null||c(),o?_():b()},[o,_,b,c]),{isOpen:M,onOpen:P,onClose:D,onToggle:F}=RY({isOpen:u,defaultIsOpen:l,onClose:a,onOpen:$});jY({enabled:M&&n,ref:p,handler:z=>{var B;(B=v.current)!=null&&B.contains(z.target)||D()}});const U=MY({...g,enabled:M||m,placement:h,direction:d}),[V,A]=G.useState(-1);Fa(()=>{M||A(-1)},[M]),fX(p,{focusRef:v,visible:M,shouldFocus:!0});const O=NY({isOpen:M,ref:p}),[C,w]=BY(t,"menu-button","menu-list"),S=G.useCallback(()=>{P(),b()},[P,b]),x=G.useRef(new Set([]));G.useEffect(()=>{const z=x.current;return()=>{z.forEach(B=>clearTimeout(B)),z.clear()}},[]);const k=G.useCallback(()=>{P(),_()},[_,P]),T=G.useCallback(()=>{P(),E()},[P,E]),I=G.useCallback(()=>{var z,B;const W=zY(p.current),N=(z=p.current)==null?void 0:z.contains(W.activeElement);if(!(M&&!N))return;const j=(B=y.item(V))==null?void 0:B.node;j==null||j.focus({preventScroll:!0})},[M,V,y]),L=G.useRef(null);return{openAndFocusMenu:S,openAndFocusFirstItem:k,openAndFocusLastItem:T,onTransitionEnd:I,unstable__animationState:O,descendants:y,popper:U,buttonId:C,menuId:w,forceUpdate:U.forceUpdate,orientation:"vertical",isOpen:M,onToggle:F,onOpen:P,onClose:D,menuRef:p,buttonRef:v,focusedIndex:V,closeOnSelect:r,closeOnBlur:n,autoSelect:o,setFocusedIndex:A,isLazy:s,lazyBehavior:f,initialFocusRef:i,rafId:L}}var[UY,HY]=Wr({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),UE=e=>{const{children:t}=e,r=Qr("Menu",e),n=qr(e),{direction:i}=Ga(),{descendants:o,...s}=VY({...n,direction:i}),u=G.useMemo(()=>s,[s]),{isOpen:l,onClose:a,forceUpdate:c}=u;return X.jsx(DY,{value:o,children:X.jsx(LY,{value:u,children:X.jsx(UY,{value:r,children:Ro(t,{isOpen:l,onClose:a,forceUpdate:c})})})})};UE.displayName="Menu";var HE=e=>{const{className:t,children:r,...n}=e,i=HY(),o=G.Children.only(r),s=G.isValidElement(o)?G.cloneElement(o,{focusable:"false","aria-hidden":!0,className:sr("chakra-menu__icon",o.props.className)}):null,u=sr("chakra-menu__icon-wrapper",t);return X.jsx(et.span,{className:u,...n,__css:i.icon,children:s})};HE.displayName="MenuIcon";var WY=e=>X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),qY=e=>X.jsx(oi,{viewBox:"0 0 24 24",...e,children:X.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function GS(e,t,r,n){G.useEffect(()=>{var i;if(!e.current||!n)return;const o=(i=e.current.ownerDocument.defaultView)!=null?i:window,s=Array.isArray(t)?t:[t],u=new o.MutationObserver(l=>{for(const a of l)a.type==="attributes"&&a.attributeName&&s.includes(a.attributeName)&&r(a)});return u.observe(e.current,{attributes:!0,attributeFilter:s}),()=>u.disconnect()})}function KY(e,t){const r=Or(e);G.useEffect(()=>{let n=null;const i=()=>r();return t!==null&&(n=window.setInterval(i,t)),()=>{n&&window.clearInterval(n)}},[t,r])}var GY=50,XS=300;function XY(e,t){const[r,n]=G.useState(!1),[i,o]=G.useState(null),[s,u]=G.useState(!0),l=G.useRef(null),a=()=>clearTimeout(l.current);KY(()=>{i==="increment"&&e(),i==="decrement"&&t()},r?GY:null);const c=G.useCallback(()=>{s&&e(),l.current=setTimeout(()=>{u(!1),n(!0),o("increment")},XS)},[e,s]),h=G.useCallback(()=>{s&&t(),l.current=setTimeout(()=>{u(!1),n(!0),o("decrement")},XS)},[t,s]),f=G.useCallback(()=>{u(!0),n(!1),a()},[]);return G.useEffect(()=>()=>a(),[]),{up:c,down:h,stop:f,isSpinning:r}}var YY=/^[Ee0-9+\-.]$/;function ZY(e){return YY.test(e)}function QY(e,t){if(e.key==null)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||r?!0:t(e.key)}function JY(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:n=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:l,isRequired:a,isInvalid:c,pattern:h="[0-9]*(.[0-9]+)?",inputMode:f="decimal",allowMouseWheel:d,id:m,onChange:g,precision:p,name:v,"aria-describedby":y,"aria-label":b,"aria-labelledby":_,onFocus:E,onBlur:$,onInvalid:M,getAriaValueText:P,isValidCharacter:D,format:F,parse:U,...V}=e,A=Or(E),O=Or($),C=Or(M),w=Or(D??ZY),S=Or(P),x=WG(e),{update:k,increment:T,decrement:I}=x,[L,z]=G.useState(!1),B=!(u||l),W=G.useRef(null),N=G.useRef(null),q=G.useRef(null),j=G.useRef(null),R=G.useCallback(be=>be.split("").filter(w).join(""),[w]),H=G.useCallback(be=>{var Ae;return(Ae=U==null?void 0:U(be))!=null?Ae:be},[U]),K=G.useCallback(be=>{var Ae;return((Ae=F==null?void 0:F(be))!=null?Ae:be).toString()},[F]);Fa(()=>{(x.valueAsNumber>o||x.valueAsNumber{if(!W.current)return;if(W.current.value!=x.value){const Ae=H(W.current.value);x.setValue(R(Ae))}},[H,R]);const ee=G.useCallback((be=s)=>{B&&T(be)},[T,B,s]),Y=G.useCallback((be=s)=>{B&&I(be)},[I,B,s]),te=XY(ee,Y);GS(q,"disabled",te.stop,te.isSpinning),GS(j,"disabled",te.stop,te.isSpinning);const ie=G.useCallback(be=>{if(be.nativeEvent.isComposing)return;const De=H(be.currentTarget.value);k(R(De)),N.current={start:be.currentTarget.selectionStart,end:be.currentTarget.selectionEnd}},[k,R,H]),le=G.useCallback(be=>{var Ae,De,ze;A==null||A(be),N.current&&(be.target.selectionStart=(De=N.current.start)!=null?De:(Ae=be.currentTarget.value)==null?void 0:Ae.length,be.currentTarget.selectionEnd=(ze=N.current.end)!=null?ze:be.currentTarget.selectionStart)},[A]),Q=G.useCallback(be=>{if(be.nativeEvent.isComposing)return;QY(be,w)||be.preventDefault();const Ae=se(be)*s,De=be.key,Se={ArrowUp:()=>ee(Ae),ArrowDown:()=>Y(Ae),Home:()=>k(i),End:()=>k(o)}[De];Se&&(be.preventDefault(),Se(be))},[w,s,ee,Y,k,i,o]),se=be=>{let Ae=1;return(be.metaKey||be.ctrlKey)&&(Ae=.1),be.shiftKey&&(Ae=10),Ae},ae=G.useMemo(()=>{const be=S==null?void 0:S(x.value);if(be!=null)return be;const Ae=x.value.toString();return Ae||void 0},[x.value,S]),fe=G.useCallback(()=>{let be=x.value;if(x.value==="")return;/^[eE]/.test(x.value.toString())?x.setValue(""):(x.valueAsNumbero&&(be=o),x.cast(be))},[x,o,i]),de=G.useCallback(()=>{z(!1),r&&fe()},[r,z,fe]),pe=G.useCallback(()=>{t&&requestAnimationFrame(()=>{var be;(be=W.current)==null||be.focus()})},[t]),ye=G.useCallback(be=>{be.preventDefault(),te.up(),pe()},[pe,te]),we=G.useCallback(be=>{be.preventDefault(),te.down(),pe()},[pe,te]);yE(()=>W.current,"wheel",be=>{var Ae,De;const Se=((De=(Ae=W.current)==null?void 0:Ae.ownerDocument)!=null?De:document).activeElement===W.current;if(!d||!Se)return;be.preventDefault();const xe=se(be)*s,Pe=Math.sign(be.deltaY);Pe===-1?ee(xe):Pe===1&&Y(xe)},{passive:!1});const Ce=G.useCallback((be={},Ae=null)=>{const De=l||n&&x.isAtMax;return{...be,ref:Tn(Ae,q),role:"button",tabIndex:-1,onPointerDown:Ht(be.onPointerDown,ze=>{ze.button!==0||De||ye(ze)}),onPointerLeave:Ht(be.onPointerLeave,te.stop),onPointerUp:Ht(be.onPointerUp,te.stop),disabled:De,"aria-disabled":Lo(De)}},[x.isAtMax,n,ye,te.stop,l]),Ie=G.useCallback((be={},Ae=null)=>{const De=l||n&&x.isAtMin;return{...be,ref:Tn(Ae,j),role:"button",tabIndex:-1,onPointerDown:Ht(be.onPointerDown,ze=>{ze.button!==0||De||we(ze)}),onPointerLeave:Ht(be.onPointerLeave,te.stop),onPointerUp:Ht(be.onPointerUp,te.stop),disabled:De,"aria-disabled":Lo(De)}},[x.isAtMin,n,we,te.stop,l]),Re=G.useCallback((be={},Ae=null)=>{var De,ze,Se,xe;return{name:v,inputMode:f,type:"text",pattern:h,"aria-labelledby":_,"aria-label":b,"aria-describedby":y,id:m,disabled:l,...be,readOnly:(De=be.readOnly)!=null?De:u,"aria-readonly":(ze=be.readOnly)!=null?ze:u,"aria-required":(Se=be.required)!=null?Se:a,required:(xe=be.required)!=null?xe:a,ref:Tn(W,Ae),value:K(x.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(x.valueAsNumber)?void 0:x.valueAsNumber,"aria-invalid":Lo(c??x.isOutOfRange),"aria-valuetext":ae,autoComplete:"off",autoCorrect:"off",onChange:Ht(be.onChange,ie),onKeyDown:Ht(be.onKeyDown,Q),onFocus:Ht(be.onFocus,le,()=>z(!0)),onBlur:Ht(be.onBlur,O,de)}},[v,f,h,_,b,K,y,m,l,a,u,c,x.value,x.valueAsNumber,x.isOutOfRange,i,o,ae,ie,Q,le,O,de]);return{value:K(x.value),valueAsNumber:x.valueAsNumber,isFocused:L,isDisabled:l,isReadOnly:u,getIncrementButtonProps:Ce,getDecrementButtonProps:Ie,getInputProps:Re,htmlProps:V}}var[eZ,C0]=Wr({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[tZ,fw]=Wr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),WE=wt(function(t,r){const n=Qr("NumberInput",t),i=qr(t),o=Q2(i),{htmlProps:s,...u}=JY(o),l=G.useMemo(()=>u,[u]);return X.jsx(tZ,{value:l,children:X.jsx(eZ,{value:n,children:X.jsx(et.div,{...s,ref:r,className:sr("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...n.root}})})})});WE.displayName="NumberInput";var qE=wt(function(t,r){const n=C0();return X.jsx(et.div,{"aria-hidden":!0,ref:r,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})});qE.displayName="NumberInputStepper";var KE=wt(function(t,r){const{getInputProps:n}=fw(),i=n(t,r),o=C0();return X.jsx(et.input,{...i,className:sr("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});KE.displayName="NumberInputField";var GE=et("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),XE=wt(function(t,r){var n;const i=C0(),{getDecrementButtonProps:o}=fw(),s=o(t,r);return X.jsx(GE,{...s,__css:i.stepper,children:(n=t.children)!=null?n:X.jsx(WY,{})})});XE.displayName="NumberDecrementStepper";var YE=wt(function(t,r){var n;const{getIncrementButtonProps:i}=fw(),o=i(t,r),s=C0();return X.jsx(GE,{...o,__css:s.stepper,children:(n=t.children)!=null?n:X.jsx(qY,{})})});YE.displayName="NumberIncrementStepper";function rZ(e){return e&&ln(e)&&ln(e.target)}function nZ(e={}){const{onChange:t,value:r,defaultValue:n,name:i,isDisabled:o,isFocusable:s,isNative:u,...l}=e,[a,c]=G.useState(n||""),h=typeof r<"u",f=h?r:a,d=G.useRef(null),m=G.useCallback(()=>{const E=d.current;if(!E)return;let $="input:not(:disabled):checked";const M=E.querySelector($);if(M){M.focus();return}$="input:not(:disabled)";const P=E.querySelector($);P==null||P.focus()},[]),p=`radio-${G.useId()}`,v=i||p,y=G.useCallback(E=>{const $=rZ(E)?E.target.value:E;h||c($),t==null||t(String($))},[t,h]),b=G.useCallback((E={},$=null)=>({...E,ref:Tn($,d),role:"radiogroup"}),[]),_=G.useCallback((E={},$=null)=>({...E,ref:$,name:v,[u?"checked":"isChecked"]:f!=null?E.value===f:void 0,onChange(P){y(P)},"data-radiogroup":!0}),[u,v,y,f]);return{getRootProps:b,getRadioProps:_,name:v,ref:d,focus:m,setValue:c,value:f,onChange:y,isDisabled:o,isFocusable:s,htmlProps:l}}var[iZ,ZE]=Wr({name:"RadioGroupContext",strict:!1}),QE=wt((e,t)=>{const{colorScheme:r,size:n,variant:i,children:o,className:s,isDisabled:u,isFocusable:l,...a}=e,{value:c,onChange:h,getRootProps:f,name:d,htmlProps:m}=nZ(a),g=G.useMemo(()=>({name:d,size:n,onChange:h,colorScheme:r,value:c,variant:i,isDisabled:u,isFocusable:l}),[d,n,h,r,c,i,u,l]);return X.jsx(iZ,{value:g,children:X.jsx(et.div,{...f(m,t),className:sr("chakra-radio-group",s),children:o})})});QE.displayName="RadioGroup";var oZ={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function sZ(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:i,isReadOnly:o,isRequired:s,onChange:u,isInvalid:l,name:a,value:c,id:h,"data-radiogroup":f,"aria-describedby":d,...m}=e,g=`radio-${G.useId()}`,p=Za(),y=!!ZE()||!!f;let _=!!p&&!y?p.id:g;_=h??_;const E=i??(p==null?void 0:p.isDisabled),$=o??(p==null?void 0:p.isReadOnly),M=s??(p==null?void 0:p.isRequired),P=l??(p==null?void 0:p.isInvalid),[D,F]=G.useState(!1),[U,V]=G.useState(!1),[A,O]=G.useState(!1),[C,w]=G.useState(!1),[S,x]=G.useState(!!t),k=typeof r<"u",T=k?r:S;G.useEffect(()=>gE(F),[]);const I=G.useCallback(K=>{if($||E){K.preventDefault();return}k||x(K.target.checked),u==null||u(K)},[k,E,$,u]),L=G.useCallback(K=>{K.key===" "&&w(!0)},[w]),z=G.useCallback(K=>{K.key===" "&&w(!1)},[w]),B=G.useCallback((K={},ee=null)=>({...K,ref:ee,"data-active":gt(C),"data-hover":gt(A),"data-disabled":gt(E),"data-invalid":gt(P),"data-checked":gt(T),"data-focus":gt(U),"data-focus-visible":gt(U&&D),"data-readonly":gt($),"aria-hidden":!0,onMouseDown:Ht(K.onMouseDown,()=>w(!0)),onMouseUp:Ht(K.onMouseUp,()=>w(!1)),onMouseEnter:Ht(K.onMouseEnter,()=>O(!0)),onMouseLeave:Ht(K.onMouseLeave,()=>O(!1))}),[C,A,E,P,T,U,$,D]),{onFocus:W,onBlur:N}=p??{},q=G.useCallback((K={},ee=null)=>{const Y=E&&!n;return{...K,id:_,ref:ee,type:"radio",name:a,value:c,onChange:Ht(K.onChange,I),onBlur:Ht(N,K.onBlur,()=>V(!1)),onFocus:Ht(W,K.onFocus,()=>V(!0)),onKeyDown:Ht(K.onKeyDown,L),onKeyUp:Ht(K.onKeyUp,z),checked:T,disabled:Y,readOnly:$,required:M,"aria-invalid":Lo(P),"aria-disabled":Lo(Y),"aria-required":Lo(M),"data-readonly":gt($),"aria-describedby":d,style:oZ}},[E,n,_,a,c,I,N,W,L,z,T,$,M,P,d]);return{state:{isInvalid:P,isFocused:U,isChecked:T,isActive:C,isHovered:A,isDisabled:E,isReadOnly:$,isRequired:M},getCheckboxProps:B,getRadioProps:B,getInputProps:q,getLabelProps:(K={},ee=null)=>({...K,ref:ee,onMouseDown:Ht(K.onMouseDown,aZ),"data-disabled":gt(E),"data-checked":gt(T),"data-invalid":gt(P)}),getRootProps:(K,ee=null)=>({...K,ref:ee,"data-disabled":gt(E),"data-checked":gt(T),"data-invalid":gt(P)}),htmlProps:m}}function aZ(e){e.preventDefault(),e.stopPropagation()}function lZ(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}var JE=wt((e,t)=>{var r;const n=ZE(),{onChange:i,value:o}=e,s=Qr("Radio",{...n,...e}),u=qr(e),{spacing:l="0.5rem",children:a,isDisabled:c=n==null?void 0:n.isDisabled,isFocusable:h=n==null?void 0:n.isFocusable,inputProps:f,...d}=u;let m=e.isChecked;(n==null?void 0:n.value)!=null&&o!=null&&(m=n.value===o);let g=i;n!=null&&n.onChange&&o!=null&&(g=tC(n.onChange,i));const p=(r=e==null?void 0:e.name)!=null?r:n==null?void 0:n.name,{getInputProps:v,getCheckboxProps:y,getLabelProps:b,getRootProps:_,htmlProps:E}=sZ({...d,isChecked:m,isFocusable:h,isDisabled:c,onChange:g,name:p}),[$,M]=lZ(E,Xj),P=y(M),D=v(f,t),F=b(),U=Object.assign({},$,_()),V={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...s.container},A={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...s.control},O={userSelect:"none",marginStart:l,...s.label};return X.jsxs(et.label,{className:"chakra-radio",...U,__css:V,children:[X.jsx("input",{className:"chakra-radio__input",...D}),X.jsx(et.span,{className:"chakra-radio__control",...P,__css:A}),a&&X.jsx(et.span,{className:"chakra-radio__label",...F,__css:O,children:a})]})});JE.displayName="Radio";var fl=e=>e?"":void 0,x1=e=>e?!0:void 0,gf=(...e)=>e.filter(Boolean).join(" ");function S1(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function dh(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}var ip={width:0,height:0},fh=e=>e||ip;function uZ(e){const{orientation:t,thumbPercents:r,thumbRects:n,isReversed:i}=e,o=g=>{var p;const v=(p=n[g])!=null?p:ip;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...dh({orientation:t,vertical:{bottom:`calc(${r[g]}% - ${v.height/2}px)`},horizontal:{left:`calc(${r[g]}% - ${v.width/2}px)`}})}},s=t==="vertical"?n.reduce((g,p)=>fh(g).height>fh(p).height?g:p,ip):n.reduce((g,p)=>fh(g).width>fh(p).width?g:p,ip),u={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...dh({orientation:t,vertical:s?{paddingLeft:s.width/2,paddingRight:s.width/2}:{},horizontal:s?{paddingTop:s.height/2,paddingBottom:s.height/2}:{}})},l={position:"absolute",...dh({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},a=r.length===1,c=[0,i?100-r[0]:r[0]],h=a?c:r;let f=h[0];!a&&i&&(f=100-f);const d=Math.abs(h[h.length-1]-h[0]),m={...l,...dh({orientation:t,vertical:i?{height:`${d}%`,top:`${f}%`}:{height:`${d}%`,bottom:`${f}%`},horizontal:i?{width:`${d}%`,right:`${f}%`}:{width:`${d}%`,left:`${f}%`}})};return{trackStyle:l,innerTrackStyle:m,rootStyle:u,getThumbStyle:o}}function cZ(e){const{isReversed:t,direction:r,orientation:n}=e;return r==="ltr"||n==="vertical"?t:!t}function dZ(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function fZ(e){const t=pZ(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function eT(e){return!!e.touches}function hZ(e){return eT(e)&&e.touches.length>1}function pZ(e){var t;return(t=e.view)!=null?t:window}function mZ(e,t="page"){const r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}function gZ(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function tT(e,t="page"){return eT(e)?mZ(e,t):gZ(e,t)}function vZ(e){return t=>{const r=fZ(t);(!r||r&&t.button===0)&&e(t)}}function yZ(e,t=!1){function r(i){e(i,{point:tT(i)})}return t?vZ(r):r}function op(e,t,r,n){return dZ(e,t,yZ(r,t==="pointerdown"),n)}var bZ=Object.defineProperty,wZ=(e,t,r)=>t in e?bZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oi=(e,t,r)=>(wZ(e,typeof t!="symbol"?t+"":t,r),r),_Z=class{constructor(e,t,r){Oi(this,"history",[]),Oi(this,"startEvent",null),Oi(this,"lastEvent",null),Oi(this,"lastEventInfo",null),Oi(this,"handlers",{}),Oi(this,"removeListeners",()=>{}),Oi(this,"threshold",3),Oi(this,"win"),Oi(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const u=k1(this.lastEventInfo,this.history),l=this.startEvent!==null,a=CZ(u.offset,{x:0,y:0})>=this.threshold;if(!l&&!a)return;const{timestamp:c}=h4();this.history.push({...u.point,timestamp:c});const{onStart:h,onMove:f}=this.handlers;l||(h==null||h(this.lastEvent,u),this.startEvent=this.lastEvent),f==null||f(this.lastEvent,u)}),Oi(this,"onPointerMove",(u,l)=>{this.lastEvent=u,this.lastEventInfo=l,DV.update(this.updatePoint,!0)}),Oi(this,"onPointerUp",(u,l)=>{const a=k1(l,this.history),{onEnd:c,onSessionEnd:h}=this.handlers;h==null||h(u,a),this.end(),!(!c||!this.startEvent)&&(c==null||c(u,a))});var n;if(this.win=(n=e.view)!=null?n:window,hZ(e))return;this.handlers=t,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const i={point:tT(e)},{timestamp:o}=h4();this.history=[{...i.point,timestamp:o}];const{onSessionStart:s}=t;s==null||s(e,k1(i,this.history)),this.removeListeners=kZ(op(this.win,"pointermove",this.onPointerMove),op(this.win,"pointerup",this.onPointerUp),op(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),FV.update(this.updatePoint)}};function YS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function k1(e,t){return{point:e.point,delta:YS(e.point,t[t.length-1]),offset:YS(e.point,t[0]),velocity:SZ(t,.1)}}var xZ=e=>e*1e3;function SZ(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=e[e.length-1];for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>xZ(t)));)r--;if(!n)return{x:0,y:0};const o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};const s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function kZ(...e){return t=>e.reduce((r,n)=>n(r),t)}function C1(e,t){return Math.abs(e-t)}function ZS(e){return"x"in e&&"y"in e}function CZ(e,t){if(typeof e=="number"&&typeof t=="number")return C1(e,t);if(ZS(e)&&ZS(t)){const r=C1(e.x,t.x),n=C1(e.y,t.y);return Math.sqrt(r**2+n**2)}return 0}function rT(e){const t=G.useRef(null);return t.current=e,t}function EZ(e,t){const{onPan:r,onPanStart:n,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:s,threshold:u}=t,l=!!(r||n||i||o||s),a=G.useRef(null),c=rT({onSessionStart:o,onSessionEnd:s,onStart:n,onMove:r,onEnd(h,f){a.current=null,i==null||i(h,f)}});G.useEffect(()=>{var h;(h=a.current)==null||h.updateHandlers(c.current)}),G.useEffect(()=>{const h=e.current;if(!h||!l)return;function f(d){a.current=new _Z(d,c.current,u)}return op(h,"pointerdown",f)},[e,l,c,u]),G.useEffect(()=>()=>{var h;(h=a.current)==null||h.end(),a.current=null},[])}function TZ(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const r=e.ownerDocument.defaultView??window,n=new r.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[o]=i;let s,u;if("borderBoxSize"in o){const l=o.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,u=a.blockSize}else s=e.offsetWidth,u=e.offsetHeight;t({width:s,height:u})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}var $Z=globalThis!=null&&globalThis.document?G.useLayoutEffect:G.useEffect;function AZ(e,t){var r,n;if(!e||!e.parentElement)return;const i=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}function PZ({getNodes:e,observeMutation:t=!0}){const[r,n]=G.useState([]),[i,o]=G.useState(0);return $Z(()=>{const s=e(),u=s.map((l,a)=>TZ(l,c=>{n(h=>[...h.slice(0,a),c,...h.slice(a+1)])}));if(t){const l=s[0];u.push(AZ(l,()=>{o(a=>a+1)}))}return()=>{u.forEach(l=>{l==null||l()})}},[i]),r}function OZ(e){return typeof e=="object"&&e!==null&&"current"in e}function MZ(e){const[t]=PZ({observeMutation:!1,getNodes(){return[OZ(e)?e.current:e]}});return t}function IZ(e){var t;const{min:r=0,max:n=100,onChange:i,value:o,defaultValue:s,isReversed:u,direction:l="ltr",orientation:a="horizontal",id:c,isDisabled:h,isReadOnly:f,onChangeStart:d,onChangeEnd:m,step:g=1,getAriaValueText:p,"aria-valuetext":v,"aria-label":y,"aria-labelledby":b,name:_,focusThumbOnChange:E=!0,...$}=e,M=Or(d),P=Or(m),D=Or(p),F=cZ({isReversed:u,direction:l,orientation:a}),[U,V]=aE({value:o,defaultValue:s??jZ(r,n),onChange:i}),[A,O]=G.useState(!1),[C,w]=G.useState(!1),S=!(h||f),x=(n-r)/10,k=g||(n-r)/100,T=rp(U,r,n),I=n-T+r,z=IS(F?I:T,r,n),B=a==="vertical",W=rT({min:r,max:n,step:g,isDisabled:h,value:T,isInteractive:S,isReversed:F,isVertical:B,eventSource:null,focusThumbOnChange:E,orientation:a}),N=G.useRef(null),q=G.useRef(null),j=G.useRef(null),R=G.useId(),H=c??R,[K,ee]=[`slider-thumb-${H}`,`slider-track-${H}`],Y=G.useCallback(Se=>{var xe,Pe;if(!N.current)return;const Fe=W.current;Fe.eventSource="pointer";const Be=N.current.getBoundingClientRect(),{clientX:Le,clientY:St}=(Pe=(xe=Se.touches)==null?void 0:xe[0])!=null?Pe:Se,Pt=B?Be.bottom-St:Le-Be.left,Xe=B?Be.height:Be.width;let Ct=Pt/Xe;F&&(Ct=1-Ct);let nt=HG(Ct,Fe.min,Fe.max);return Fe.step&&(nt=parseFloat(RS(nt,Fe.min,Fe.step))),nt=rp(nt,Fe.min,Fe.max),nt},[B,F,W]),te=G.useCallback(Se=>{const xe=W.current;xe.isInteractive&&(Se=parseFloat(RS(Se,xe.min,k)),Se=rp(Se,xe.min,xe.max),V(Se))},[k,V,W]),ie=G.useMemo(()=>({stepUp(Se=k){const xe=F?T-Se:T+Se;te(xe)},stepDown(Se=k){const xe=F?T+Se:T-Se;te(xe)},reset(){te(s||0)},stepTo(Se){te(Se)}}),[te,F,T,k,s]),le=G.useCallback(Se=>{const xe=W.current,Fe={ArrowRight:()=>ie.stepUp(),ArrowUp:()=>ie.stepUp(),ArrowLeft:()=>ie.stepDown(),ArrowDown:()=>ie.stepDown(),PageUp:()=>ie.stepUp(x),PageDown:()=>ie.stepDown(x),Home:()=>te(xe.min),End:()=>te(xe.max)}[Se.key];Fe&&(Se.preventDefault(),Se.stopPropagation(),Fe(Se),xe.eventSource="keyboard")},[ie,te,x,W]),Q=(t=D==null?void 0:D(T))!=null?t:v,se=MZ(q),{getThumbStyle:ae,rootStyle:fe,trackStyle:de,innerTrackStyle:pe}=G.useMemo(()=>{const Se=W.current,xe=se??{width:0,height:0};return uZ({isReversed:F,orientation:Se.orientation,thumbRects:[xe],thumbPercents:[z]})},[F,se,z,W]),ye=G.useCallback(()=>{W.current.focusThumbOnChange&&setTimeout(()=>{var xe;return(xe=q.current)==null?void 0:xe.focus()})},[W]);Fa(()=>{const Se=W.current;ye(),Se.eventSource==="keyboard"&&(P==null||P(Se.value))},[T,P]);function we(Se){const xe=Y(Se);xe!=null&&xe!==W.current.value&&V(xe)}EZ(j,{onPanSessionStart(Se){const xe=W.current;xe.isInteractive&&(O(!0),ye(),we(Se),M==null||M(xe.value))},onPanSessionEnd(){const Se=W.current;Se.isInteractive&&(O(!1),P==null||P(Se.value))},onPan(Se){W.current.isInteractive&&we(Se)}});const Ce=G.useCallback((Se={},xe=null)=>({...Se,...$,ref:Tn(xe,j),tabIndex:-1,"aria-disabled":x1(h),"data-focused":fl(C),style:{...Se.style,...fe}}),[$,h,C,fe]),Ie=G.useCallback((Se={},xe=null)=>({...Se,ref:Tn(xe,N),id:ee,"data-disabled":fl(h),style:{...Se.style,...de}}),[h,ee,de]),Re=G.useCallback((Se={},xe=null)=>({...Se,ref:xe,style:{...Se.style,...pe}}),[pe]),be=G.useCallback((Se={},xe=null)=>({...Se,ref:Tn(xe,q),role:"slider",tabIndex:S?0:void 0,id:K,"data-active":fl(A),"aria-valuetext":Q,"aria-valuemin":r,"aria-valuemax":n,"aria-valuenow":T,"aria-orientation":a,"aria-disabled":x1(h),"aria-readonly":x1(f),"aria-label":y,"aria-labelledby":y?void 0:b,style:{...Se.style,...ae(0)},onKeyDown:S1(Se.onKeyDown,le),onFocus:S1(Se.onFocus,()=>w(!0)),onBlur:S1(Se.onBlur,()=>w(!1))}),[S,K,A,Q,r,n,T,a,h,f,y,b,ae,le]),Ae=G.useCallback((Se,xe=null)=>{const Pe=!(Se.valuen),Fe=T>=Se.value,Be=IS(Se.value,r,n),Le={position:"absolute",pointerEvents:"none",...RZ({orientation:a,vertical:{bottom:F?`${100-Be}%`:`${Be}%`},horizontal:{left:F?`${100-Be}%`:`${Be}%`}})};return{...Se,ref:xe,role:"presentation","aria-hidden":!0,"data-disabled":fl(h),"data-invalid":fl(!Pe),"data-highlighted":fl(Fe),style:{...Se.style,...Le}}},[h,F,n,r,a,T]),De=G.useCallback((Se={},xe=null)=>({...Se,ref:xe,type:"hidden",value:T,name:_}),[_,T]);return{state:{value:T,isFocused:C,isDragging:A},actions:ie,getRootProps:Ce,getTrackProps:Ie,getInnerTrackProps:Re,getThumbProps:be,getMarkerProps:Ae,getInputProps:De}}function RZ(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}function jZ(e,t){return t"}),[DZ,T0]=Wr({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),nT=wt((e,t)=>{var r;const n={...e,orientation:(r=e==null?void 0:e.orientation)!=null?r:"horizontal"},i=Qr("Slider",n),o=qr(n),{direction:s}=Ga();o.direction=s;const{getInputProps:u,getRootProps:l,...a}=IZ(o),c=l(),h=u({},t);return X.jsx(NZ,{value:a,children:X.jsx(DZ,{value:i,children:X.jsxs(et.div,{...c,className:gf("chakra-slider",n.className),__css:i.container,children:[n.children,X.jsx("input",{...h})]})})})});nT.displayName="Slider";var iT=wt((e,t)=>{const{getThumbProps:r}=E0(),n=T0(),i=r(e,t);return X.jsx(et.div,{...i,className:gf("chakra-slider__thumb",e.className),__css:n.thumb})});iT.displayName="SliderThumb";var oT=wt((e,t)=>{const{getTrackProps:r}=E0(),n=T0(),i=r(e,t);return X.jsx(et.div,{...i,className:gf("chakra-slider__track",e.className),__css:n.track})});oT.displayName="SliderTrack";var sT=wt((e,t)=>{const{getInnerTrackProps:r}=E0(),n=T0(),i=r(e,t);return X.jsx(et.div,{...i,className:gf("chakra-slider__filled-track",e.className),__css:n.filledTrack})});sT.displayName="SliderFilledTrack";var FZ=wt((e,t)=>{const{getMarkerProps:r}=E0(),n=T0(),i=r(e,t);return X.jsx(et.div,{...i,className:gf("chakra-slider__marker",e.className),__css:n.mark})});FZ.displayName="SliderMark";function LZ(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var BZ=["h","minH","height","minHeight"],hw=wt((e,t)=>{const r=Xi("Textarea",e),{className:n,rows:i,...o}=qr(e),s=Z2(o),u=i?LZ(r,BZ):r;return X.jsx(et.textarea,{ref:t,rows:i,...s,className:sr("chakra-textarea",n),__css:u})});hw.displayName="Textarea";function kr(e){return typeof File<"u"&&e instanceof File||typeof Date<"u"&&e instanceof Date?!1:typeof e=="object"&&e!==null&&!Array.isArray(e)}function zZ(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),kr(e.additionalItems)}function QS(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const Du="__additional_property",Oy="additionalProperties",vf="allOf",xu="anyOf",aT="const",VZ="default",$0="dependencies",UZ="enum",Bi="__errors",Ps="$id",HZ="if",Us="items",WZ="_$junk_option_schema_id$_",sp="$name",Hs="oneOf",Pr="properties",qZ="required",nm="submitButtonOptions",Hr="$ref",pw="__rjsf_additionalProperties",lT="__rjsf_rootSchema",KZ="ui:field",mw="ui:widget",od="ui:options",GZ="ui:globalOptions";function Gt(e={},t={}){return Object.keys(e).filter(r=>r.indexOf("ui:")===0).reduce((r,n)=>{const i=e[n];return n===mw&&kr(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):n===od&&kr(i)?{...r,...i}:{...r,[n.substring(3)]:i}},{...t})}function uT(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=Gt(t);return n===!1?n:e.maxProperties!==void 0&&r?Object.keys(r).length({...r,[i]:My(n)}),t);if(gw(e)){const r=e;return Object.keys(r).reduce((n,i)=>({...n,[i]:My(r[i])}),t)}return t}function TQ(){this.__data__=[],this.size=0}var $Q=TQ;function AQ(e,t){return e===t||e!==e&&t!==t}var Bu=AQ,PQ=Bu;function OQ(e,t){for(var r=e.length;r--;)if(PQ(e[r][0],t))return r;return-1}var P0=OQ,MQ=P0,IQ=Array.prototype,RQ=IQ.splice;function jQ(e){var t=this.__data__,r=MQ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():RQ.call(t,r,1),--this.size,!0}var NQ=jQ,DQ=P0;function FQ(e){var t=this.__data__,r=DQ(t,e);return r<0?void 0:t[r][1]}var LQ=FQ,BQ=P0;function zQ(e){return BQ(this.__data__,e)>-1}var VQ=zQ,UQ=P0;function HQ(e,t){var r=this.__data__,n=UQ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var WQ=HQ,qQ=$Q,KQ=NQ,GQ=LQ,XQ=VQ,YQ=WQ;function zu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++tu))return!1;var a=o.get(e),c=o.get(t);if(a&&c)return a==t&&c==e;var h=-1,f=!0,d=r&pte?new cte:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=pre}var xw=mre,gre=ns,vre=xw,yre=Ci,bre="[object Arguments]",wre="[object Array]",_re="[object Boolean]",xre="[object Date]",Sre="[object Error]",kre="[object Function]",Cre="[object Map]",Ere="[object Number]",Tre="[object Object]",$re="[object RegExp]",Are="[object Set]",Pre="[object String]",Ore="[object WeakMap]",Mre="[object ArrayBuffer]",Ire="[object DataView]",Rre="[object Float32Array]",jre="[object Float64Array]",Nre="[object Int8Array]",Dre="[object Int16Array]",Fre="[object Int32Array]",Lre="[object Uint8Array]",Bre="[object Uint8ClampedArray]",zre="[object Uint16Array]",Vre="[object Uint32Array]",vr={};vr[Rre]=vr[jre]=vr[Nre]=vr[Dre]=vr[Fre]=vr[Lre]=vr[Bre]=vr[zre]=vr[Vre]=!0;vr[bre]=vr[wre]=vr[Mre]=vr[_re]=vr[Ire]=vr[xre]=vr[Sre]=vr[kre]=vr[Cre]=vr[Ere]=vr[Tre]=vr[$re]=vr[Are]=vr[Pre]=vr[Ore]=!1;function Ure(e){return yre(e)&&vre(e.length)&&!!vr[gre(e)]}var Hre=Ure;function Wre(e){return function(t){return e(t)}}var Ja=Wre,sm={exports:{}};sm.exports;(function(e,t){var r=cT,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o&&r.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(sm,sm.exports);var Sw=sm.exports,qre=Hre,Kre=Ja,c5=Sw,d5=c5&&c5.isTypedArray,Gre=d5?Kre(d5):qre,bf=Gre,Xre=bT,Yre=yf,Zre=en,Qre=Wu,Jre=F0,ene=bf,tne=Object.prototype,rne=tne.hasOwnProperty;function nne(e,t){var r=Zre(e),n=!r&&Yre(e),i=!r&&!n&&Qre(e),o=!r&&!n&&!i&&ene(e),s=r||n||i||o,u=s?Xre(e.length,String):[],l=u.length;for(var a in e)(t||rne.call(e,a))&&!(s&&(a=="length"||i&&(a=="offset"||a=="parent")||o&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||Jre(a,l)))&&u.push(a);return u}var _T=nne,ine=Object.prototype;function one(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ine;return e===r}var L0=one,sne=fT,ane=sne(Object.keys,Object),lne=ane,une=L0,cne=lne,dne=Object.prototype,fne=dne.hasOwnProperty;function hne(e){if(!une(e))return cne(e);var t=[];for(var r in Object(e))fne.call(e,r)&&r!="constructor"&&t.push(r);return t}var xT=hne,pne=M0,mne=xw;function gne(e){return e!=null&&mne(e.length)&&!pne(e)}var el=gne,vne=_T,yne=xT,bne=el;function wne(e){return bne(e)?vne(e):yne(e)}var wf=wne,_ne=vT,xne=_w,Sne=wf;function kne(e){return _ne(e,Sne,xne)}var ST=kne,f5=ST,Cne=1,Ene=Object.prototype,Tne=Ene.hasOwnProperty;function $ne(e,t,r,n,i,o){var s=r&Cne,u=f5(e),l=u.length,a=f5(t),c=a.length;if(l!=c&&!s)return!1;for(var h=l;h--;){var f=u[h];if(!(s?f in t:Tne.call(t,f)))return!1}var d=o.get(e),m=o.get(t);if(d&&m)return d==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var p=s;++h{if(typeof r=="function"&&typeof n=="function")return!0})}var cie=ns,die=Ci,fie="[object Symbol]";function hie(e){return typeof e=="symbol"||die(e)&&cie(e)==fie}var Ku=hie,pie=en,mie=Ku,gie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vie=/^\w*$/;function yie(e,t){if(pie(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mie(e)?!0:vie.test(e)||!gie.test(e)||t!=null&&e in Object(t)}var kw=yie,TT=yw,bie="Expected a function";function Cw(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bie);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Cw.Cache||TT),r}Cw.Cache=TT;var wie=Cw,_ie=wie,xie=500;function Sie(e){var t=_ie(e,function(n){return r.size===xie&&r.clear(),n}),r=t.cache;return t}var kie=Sie,Cie=kie,Eie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tie=/\\(\\)?/g,$ie=Cie(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Eie,function(r,n,i,o){t.push(i?o.replace(Tie,"$1"):n||r)}),t}),$T=$ie;function Aie(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++ro,typeof e[n]>"u"&&(Array.isArray(e)&&n==="-"&&(n=e.length),i&&(t[o]!==""&&t[o]<1/0||t[o]==="-"?e[n]=[]:e[n]={})),!i)break;e=e[n]}var u=e[n];return r===void 0?delete e[n]:e[n]=r,u}function Ew(e){if(typeof e=="string"){if(e=e.split("/"),e[0]==="")return e;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(e)){for(const t of e)if(typeof t!="string"&&typeof t!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function IT(e,t){if(typeof e!="object")throw new Error("Invalid input object.");t=Ew(t);var r=t.length;if(r===1)return e;for(var n=1;ni?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n0&&r(u)?t>1?GT(u,t-1,r,n,i):Dle(i,u):n||(i[i.length]=u)}return i}var U0=GT,Lle=U0;function Ble(e){var t=e==null?0:e.length;return t?Lle(e,1):[]}var Ow=Ble;function zle(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var XT=zle,Vle=XT,B5=Math.max;function Ule(e,t,r){return t=B5(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=B5(n.length-t,0),s=Array(o);++i0){if(++t>=Zle)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var tue=eue,rue=Yle,nue=tue,iue=nue(rue),ZT=iue,oue=Ow,sue=YT,aue=ZT;function lue(e){return aue(sue(e,void 0,oue),e+"")}var QT=lue,uue=is,cue=WT,due=KT,fue=Gu,hue=Xu,pue=Mle,mue=QT,gue=FT,vue=1,yue=2,bue=4,wue=mue(function(e,t){var r={};if(e==null)return r;var n=!1;t=uue(t,function(o){return o=fue(o,e),n||(n=o.length>1),o}),hue(e,gue(e),r),n&&(r=cue(r,vue|yue|bue,pue));for(var i=t.length;i--;)due(r,t[i]);return r}),_ue=wue;const lm=ir(_ue);function Mw(e,t){const r=t[e];return[lm(t,[e]),r]}function Iw(e,t={}){let r=e||"";if(r.startsWith("#"))r=decodeURIComponent(r.substring(1));else throw new Error(`Could not find a definition for ${e}.`);const n=z0.get(t,r);if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);if(n[Hr]){const[i,o]=Mw(Hr,n),s=Iw(o,t);return Object.keys(i).length>0?{...i,...s}:s}return n}var xue=Object.prototype,Sue=xue.hasOwnProperty;function kue(e,t){return e!=null&&Sue.call(e,t)}var Cue=kue,Eue=Gu,Tue=yf,$ue=en,Aue=F0,Pue=xw,Oue=tl;function Mue(e,t,r){t=Eue(t,e);for(var n=-1,i=t.length,o=!1;++nUde)return[];var r=A1,n=Hde(e,A1);t=zde(t),e-=A1;for(var i=Bde(n,t);++r({required:[c]}))};let a;if(u.anyOf){const{...c}=u;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),a=c}else a=Object.assign({},u,l);if(delete a.required,e.isValid(a,t,n))return s}else if(e.isValid(u,t,n))return s}return 0}function Dw(e,t,r,n,i){return u$(e,t,r,n,i)}var Kde=B0;function Gde(e,t){return Kde(e,t)}var Fw=Gde;const Ua=ir(Fw);var Xde=Aw,Yde=Gu,Zde=F0,W5=Un,Qde=tl;function Jde(e,t,r,n){if(!W5(e))return e;t=Yde(t,e);for(var i=-1,o=t.length,s=o-1,u=e;u!=null&&++i1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&nhe(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n-1}var Vw=Che;function Ehe(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Bhe){var a=t?null:Fhe(e);if(a)return Lhe(a);s=!1,i=Dhe,l=new Rhe}else l=t?[]:u;e:for(;++nt||o&&s&&l&&!u&&!a||n&&s&&l||!r&&l||!i)return 1;if(!n&&!o&&!a&&e=u)return l;var a=r[n];return l*(a=="desc"?-1:1)}}return e.index-t.index}var ope=ipe,O1=is,spe=xf,ape=Nw,lpe=Qhe,upe=epe,cpe=Ja,dpe=ope,fpe=Sf,hpe=en;function ppe(e,t,r){t.length?t=O1(t,function(o){return hpe(o)?function(s){return spe(s,o.length===1?o[0]:o)}:o}):t=[fpe];var n=-1;t=O1(t,cpe(ape));var i=lpe(e,function(o,s,u){var l=O1(t,function(a){return a(o)});return{criteria:l,index:++n,value:o}});return upe(i,function(o,s){return dpe(o,s,r)})}var mpe=ppe,gpe=U0,vpe=mpe,ype=ra,Z5=Bw,bpe=ype(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Z5(e,t[0],t[1])?t=[]:r>2&&Z5(t[0],t[1],t[2])&&(t=[t[0]]),vpe(e,gpe(t,1),[])}),y$=bpe,wpe=Hw;function _pe(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?wpe(e,void 0,t):[]}var Ww=_pe,xpe=ra,Spe=Bu,kpe=Bw,Cpe=Yu,b$=Object.prototype,Epe=b$.hasOwnProperty,Tpe=xpe(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&kpe(t[0],t[1],i)&&(n=1);++r=120&&c.length>=120)?new Ape(s&&c):void 0}c=e[0];var h=-1,f=u[0];e:for(;++hArray.isArray(e)?e:[e],vi=e=>e===void 0,ph=e=>um(e)||Array.isArray(e)?Object.keys(e):[],zl=(e,t)=>e.hasOwnProperty(t),Su=e=>Xpe(qw(e)),t6=e=>vi(e)||Array.isArray(e)&&e.length===0,Qpe=(e,t,r,n)=>t&&zl(t,r)&&e&&zl(e,r)&&n(e[r],t[r]),I1=(e,t)=>vi(e)&&t===0||vi(t)&&e===0||Gi(e,t),Jpe=(e,t)=>vi(e)&&t===!1||vi(t)&&e===!1||Gi(e,t),r6=e=>vi(e)||Gi(e,{})||e===!0,mh=e=>vi(e)||Gi(e,{}),n6=e=>vi(e)||um(e)||e===!0||e===!1;function i6(e,t){return t6(e)&&t6(t)?!0:Gi(Su(e),Su(t))}function eme(e,t){return e=e6(e),t=e6(t),Gi(Su(e),Su(t))}function lp(e,t,r,n){var i=qw(ph(e).concat(ph(t)));return mh(e)&&mh(t)?!0:mh(e)&&ph(t).length||mh(t)&&ph(e).length?!1:i.every(function(o){var s=e[o],u=t[o];return Array.isArray(s)&&Array.isArray(u)?Gi(Su(e),Su(t)):Array.isArray(s)&&!Array.isArray(u)||Array.isArray(u)&&!Array.isArray(s)?!1:Qpe(e,t,o,n)})}function tme(e,t,r,n){return um(e)&&um(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?lp(e,t,r,n):Gi(e,t)}function R1(e,t,r,n){var i=J5(e,n),o=J5(t,n),s=Zpe(i,o,n);return s.length===Math.max(i.length,o.length)}var rme={title:Gi,uniqueItems:Jpe,minLength:I1,minItems:I1,minProperties:I1,required:i6,enum:i6,type:eme,items:tme,anyOf:R1,allOf:R1,oneOf:R1,properties:lp,patternProperties:lp,dependencies:lp},nme=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],ime=["additionalProperties","additionalItems","contains","propertyNames","not"];function Fy(e,t,r){if(r=Ype(r,{ignore:[]}),r6(e)&&r6(t))return!0;if(!n6(e)||!n6(t))throw new Error("Either of the values are not a JSON schema.");if(e===t)return!0;if(M1(e)&&M1(t))return e===t;if(e===void 0&&t===!1||t===void 0&&e===!1||vi(e)&&!vi(t)||!vi(e)&&vi(t))return!1;var n=qw(Object.keys(e).concat(Object.keys(t)));if(r.ignore.length&&(n=n.filter(o=>r.ignore.indexOf(o)===-1)),!n.length)return!0;function i(o,s){return Fy(o,s,r)}return n.every(function(o){var s=e[o],u=t[o];if(ime.indexOf(o)!==-1)return Fy(s,u,r);var l=rme[o];if(l||(l=Gi),Gi(s,u))return!0;if(nme.indexOf(o)===-1&&(!zl(e,o)&&zl(t,o)||zl(e,o)&&!zl(t,o)))return s===u;var a=l(s,u,o,i);if(!M1(a))throw new Error("Comparer must return true or false");return a})}var Kw=Fy;function ome(e){return Object.prototype.toString.call(e)==="[object Array]"}var Gw=Array.isArray||ome;function sme(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}var ame=sme,lme=ame;function ume(e){return lme(e)&&e%1===0}var cme=ume,dme=Gw,fme=cme;function hme(e){var t;if(!dme(e)||(t=e.length,!t))return!1;for(var r=0;rt&&(n=t,t=e,e=n),t=t-e}return r*e}function a6(e,t){var r=0,n;if(e===0)return t;if(t===0)return e;for(;!(e&1)&&!(t&1);)e>>>=1,t>>>=1,r++;for(;!(e&1);)e>>>=1;for(;t;){for(;!(t&1);)t>>>=1;e>t&&(n=t,t=e,e=n),t=t-e}return e<1){if(n=t[0],r=t[1],!gme(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(i=n.length,i<2)return null;if(r){for(o=new Array(i),u=0;u1){if(n=t[0],r=t[1],!wme(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(i=n.length,i<2)return null;if(r){for(o=new Array(i),u=0;u-1;)u!==e&&d6.call(u,l,1),d6.call(e,l,1);return e}var Yme=Xme,Zme=Yme;function Qme(e,t){return e&&e.length&&t&&t.length?Zme(e,t):e}var Jme=Qme,e0e=Tw,t0e=jw,r0e=s$,n0e=en;function i0e(e,t){var r=n0e(e)?e0e:t0e;return r(e,r0e(t))}var E$=i0e,o0e=N0,s0e=Vw,a0e=Uw,l0e=is,u0e=Ja,c0e=D0,d0e=200;function f0e(e,t,r,n){var i=-1,o=s0e,s=!0,u=e.length,l=[],a=t.length;if(!u)return l;r&&(t=l0e(t,u0e(r))),n?(o=a0e,s=!1):t.length>=d0e&&(o=c0e,s=!1,t=new o0e(t));e:for(;++i_0e(w0e(e.map(Xw))),E0e=(e,t)=>e.map(r=>r&&r[t]),$$=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Xw=e=>T$(e)||Array.isArray(e)?Object.keys(e):[],T0e=e=>e!==void 0,$0e=e=>T$(e)||e===!0||e===!1,A$=e=>!Xw(e).length&&e!==!1&&e!==!0,A0e=(e,...t)=>S0e.apply(null,[e].concat(b0e(t)));var P$={allUniqueKeys:C0e,deleteUndefinedProps:k0e,getValues:E0e,has:$$,isEmptySchema:A$,isSchema:$0e,keys:Xw,notUndefined:T0e,uniqWith:x0e,withoutArr:A0e};const P0e=Kw,O0e=E$,{allUniqueKeys:M0e,deleteUndefinedProps:I0e,getValues:R0e,keys:bc,notUndefined:j0e,uniqWith:N0e,withoutArr:f6}=P$;function D0e(e){O0e(e,function(t,r){t===!1&&delete e[r]})}function h6(e,t){return M0e(e).reduce(function(n,i){const o=R0e(e,i),s=N0e(o.filter(j0e),P0e);return n[i]=t(s,i),n},{})}var F0e={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach(function(o){const s=e.filter(c=>c!==o),u=bc(o.properties),a=bc(o.patternProperties).map(c=>new RegExp(c));s.forEach(function(c){const h=bc(c.properties),f=h.filter(m=>a.some(g=>g.test(m)));f6(h,u,f).forEach(function(m){c.properties[m]=r.properties([c.properties[m],o.additionalProperties],m)})})}),e.forEach(function(o){const s=e.filter(l=>l!==o),u=bc(o.patternProperties);o.additionalProperties===!1&&s.forEach(function(l){const a=bc(l.patternProperties);f6(a,u).forEach(h=>delete l.patternProperties[h])})}));const i={additionalProperties:r.additionalProperties(e.map(o=>o.additionalProperties)),patternProperties:h6(e.map(o=>o.patternProperties),r.patternProperties),properties:h6(e.map(o=>o.properties),r.properties)};return i.additionalProperties===!1&&D0e(i.properties),I0e(i)}};const L0e=Kw,B0e=E$,{allUniqueKeys:z0e,deleteUndefinedProps:V0e,has:U0e,isSchema:O$,notUndefined:M$,uniqWith:H0e}=P$;function W0e(e){B0e(e,function(t,r){t===!1&&e.splice(r,1)})}function q0e(e,t){return e.map(function(r){if(r)if(Array.isArray(r.items)){const n=r.items[t];if(O$(n))return n;if(U0e(r,"additionalItems"))return r.additionalItems}else return r.items})}function K0e(e){return e.map(function(t){if(t)return Array.isArray(t.items)?t.additionalItems:t.items})}function G0e(e,t,r){return z0e(r).reduce(function(i,o){const s=q0e(e,o),u=H0e(s.filter(M$),L0e);return i[o]=t(u,o),i},[])}var X0e={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map(u=>u.items),i=n.filter(M$),o={};i.every(O$)?o.items=r.items(n):o.items=G0e(e,r.items,n);let s;return i.every(Array.isArray)?s=e.map(u=>u.additionalItems):i.some(Array.isArray)&&(s=K0e(e)),s&&(o.additionalItems=r.additionalItems(s)),o.additionalItems===!1&&Array.isArray(o.items)&&W0e(o.items),V0e(o)}};const I$=g$,cm=Kw,Y0e=xme,Z0e=Rme,R$=Ow,Yw=zw,Q0e=Bme,J0e=x$,Ly=Fw,ku=Lu,ege=Jme,j$=y$,Zw=W0,tu=Ww,N$=F0e,D$=X0e,vh=(e,t)=>e.indexOf(t)!==-1,tge=e=>ku(e)||e===!0||e===!1,rge=e=>e===!1,F$=e=>e===!0,q0=(e,t,r)=>r(e),L$=e=>j$(Zw(Yw(e))),dm=e=>e!==void 0,B$=e=>Zw(Yw(e.map(lge))),Zu=e=>e[0],nge=e=>L$(e),kf=e=>Math.max.apply(Math,e),Cf=e=>Math.min.apply(Math,e),ige=e=>e.some(F$),oge=e=>tu(R$(e),Ly);function sge(e){return function(t,r){return cm({[e]:t},{[e]:r})}}function z$(e){let{allOf:t=[],...r}=e;return r=ku(e)?r:e,[r,...t.map(z$)]}function V$(e,t){return e.map(r=>r&&r[t])}function age(e,t){return e.map(function(r,n){try{return t(r,n)}catch{return}}).filter(dm)}function lge(e){return ku(e)||Array.isArray(e)?Object.keys(e):[]}function By(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?By(n,R$(t.map(i=>r.map(o=>[o].concat(i))))):By(n,r.map(i=>i))}function U$(e,t){let r;try{r=e.map(function(n){return JSON.stringify(n,null,2)}).join(` `)}catch{r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+`". They are probably incompatible. Values: -`+r)}function lge(e,t,r,n,i,o){if(e.length){const s=i.complexResolvers[t];if(!s||!s.resolver)throw new Error("No resolver found for "+t);const u=r.map(h=>e.reduce((f,d)=>(h[d]!==void 0&&(f[d]=h[d]),f),{})),l=tu(u,cm),a=s.keywords.reduce((h,f)=>({...h,[f]:(d,m=[])=>n(d,null,o.concat(f,m))}),{}),c=s.resolver(l,o.concat(t),a,i);return ku(c)||V$(l,o.concat(t)),c}}function uge(e){return{required:e}}const cge=["properties","patternProperties","definitions","dependencies"],dge=["anyOf","oneOf"],fge=["additionalProperties","additionalItems","contains","propertyNames","not","items"],tr={type(e){if(e.some(Array.isArray)){const t=e.map(function(n){return Array.isArray(n)?n:[n]}),r=Z0e.apply(null,t);if(r.length===1)return r[0];if(r.length>1)return Zw(r)}},dependencies(e,t,r){return L$(e).reduce(function(i,o){const s=z$(e,o);let u=tu(s.filter(dm),Ly);const l=u.filter(Array.isArray);if(l.length){if(l.length===u.length)i[o]=F$(u);else{const a=u.filter(ege),c=l.map(uge);i[o]=r(a.concat(c),o)}return i}return u=tu(u,cm),i[o]=r(u,o),i},{})},oneOf(e,t,r){const n=By(M$(e)),i=sge(n,r),o=tu(i,cm);if(o.length)return o},not(e){return{anyOf:e}},pattern(e){return e.map(t=>"(?="+t+")").join("")},multipleOf(e){let t=e.slice(0),r=1;for(;t.some(n=>!Number.isInteger(n));)t=t.map(n=>n*10),r=r*10;return X0e(t)/r},enum(e){const t=Q0e.apply(null,e.concat(Ly));if(t.length)return R$(t)}};tr.$id=Zu;tr.$ref=Zu;tr.$schema=Zu;tr.additionalItems=q0;tr.additionalProperties=q0;tr.anyOf=tr.oneOf;tr.contains=q0;tr.default=Zu;tr.definitions=tr.dependencies;tr.description=Zu;tr.examples=ige;tr.exclusiveMaximum=Cf;tr.exclusiveMinimum=kf;tr.items=N$;tr.maximum=Cf;tr.maxItems=Cf;tr.maxLength=Cf;tr.maxProperties=Cf;tr.minimum=kf;tr.minItems=kf;tr.minLength=kf;tr.minProperties=kf;tr.properties=j$;tr.propertyNames=q0;tr.required=rge;tr.title=Zu;tr.uniqueItems=nge;const hge={properties:j$,items:N$};function Qw(e,t,r){t=Y0e(t,{ignoreAdditionalProperties:!1,resolvers:tr,complexResolvers:hge,deep:!0});const n=Object.entries(t.complexResolvers);function i(u,l,a){u=M$(u.filter(dm)),a=a||[];const c=ku(l)?l:{};if(!u.length)return;if(u.some(tge))return!1;if(u.every(D$))return!0;u=u.filter(ku);const h=L$(u);if(t.deep&&vh(h,"allOf"))return Qw({allOf:u},t);const f=n.map(([d,m])=>h.filter(g=>m.keywords.includes(g)));return f.forEach(d=>J0e(h,d)),h.forEach(function(d){const m=z$(u,d),g=tu(m.filter(dm),oge(d));if(g.length===1&&vh(dge,d))c[d]=g[0].map(p=>i([p],p));else if(g.length===1&&!vh(cge,d)&&!vh(fge,d))c[d]=g[0];else{const p=t.resolvers[d]||t.resolvers.defaultResolver;if(!p)throw new Error("No resolver found for key "+d+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const v=(y,b=[])=>i(y,null,a.concat(d,b));c[d]=p(g,a.concat(d),v,t),c[d]===void 0?V$(g,a.concat(d)):c[d]===void 0&&delete c[d]}}),n.reduce((d,[m,g],p)=>({...d,...lge(f[p],m,u,i,t,a)}),c)}const o=Yw(B$(e));return i(o)}Qw.options={resolvers:tr};var pge=Qw;const mge=ir(pge);function Cu(e){let t;const r=Ze(e,"discriminator.propertyName",void 0);return Rw(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function Ud(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":isNaN(e)?typeof e=="object"?"object":"string":"number"}var gge=U0,vge=ra,yge=Hw,bge=H0,wge=vge(function(e){return yge(gge(e,1,bge,!0))}),_ge=wge;const xge=ir(_ge);function Ys(e){let{type:t}=e;return!t&&e.const?Ud(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function es(e,t){const r=Object.assign({},e);return Object.keys(t).reduce((n,i)=>{const o=e?e[i]:{},s=t[i];return e&&i in e&&kr(s)?n[i]=es(o,s):e&&t&&(Ys(e)==="object"||Ys(t)==="object")&&i===WZ&&Array.isArray(o)&&Array.isArray(s)?n[i]=xge(o,s):n[i]=s,n},r)}function Gn(e,t,r={},n){return ho(e,t,r,n)[0]}function Sge(e,t,r,n,i,o){const{if:s,then:u,else:l,...a}=t,c=e.isValid(s,o||{},r);let h=[a],f=[];if(n)u&&typeof u!="boolean"&&(f=f.concat(ho(e,u,r,o,n,i))),l&&typeof l!="boolean"&&(f=f.concat(ho(e,l,r,o,n,i)));else{const d=c?u:l;d&&typeof d!="boolean"&&(f=f.concat(ho(e,d,r,o,n,i)))}return f.length&&(h=f.map(d=>es(a,d))),h.flatMap(d=>ho(e,d,r,o,n,i))}function U$(e){return e.reduce((r,n)=>n.length>1?n.flatMap(i=>s$(r.length,o=>[...r[o]].concat(i))):(r.forEach(i=>i.push(n[0])),r),[[]])}function kge(e,t,r,n,i,o){const s=H$(e,t,r,n,i,o);if(s.length>1||s[0]!==t)return s;if($0 in t)return W$(e,t,r,n,i,o).flatMap(l=>ho(e,l,r,o,n,i));if(vf in t&&Array.isArray(t.allOf)){const u=t.allOf.map(a=>ho(e,a,r,o,n,i));return U$(u).map(a=>({...t,allOf:a}))}return[t]}function H$(e,t,r,n,i,o){const s=Hd(t,r,i);return s!==t?ho(e,s,r,o,n,i):[t]}function Hd(e,t,r){if(!kr(e))return e;let n=e;if(Hr in n){const{$ref:i,...o}=n;if(r.includes(i))return n;r.push(i),n={...Iw(i,t),...o}}if(Pr in n){const i=[],o=pfe(n[Pr],(s,u,l)=>{const a=[...r];s[l]=Hd(u,t,a),i.push(a)},{});lhe(r,Uhe(fhe(i))),n={...n,[Pr]:o}}return Us in n&&!Array.isArray(n.items)&&typeof n.items!="boolean"&&(n={...n,items:Hd(n.items,t,r)}),Ua(e,n)?e:n}function Cge(e,t,r,n){const i={...t,properties:{...t.properties}},o=n&&kr(n)?n:{};return Object.keys(o).forEach(s=>{if(s in i.properties)return;let u={};typeof i.additionalProperties!="boolean"?Hr in i.additionalProperties?u=Gn(e,{$ref:Ze(i.additionalProperties,[Hr])},r,o):"type"in i.additionalProperties?u={...i.additionalProperties}:xu in i.additionalProperties||Hs in i.additionalProperties?u={type:"object",...i.additionalProperties}:u={type:Ud(Ze(o,[s]))}:u={type:Ud(Ze(o,[s]))},i.properties[s]=u,mn(i.properties,[s,Du],!0)}),i}function ho(e,t,r,n,i=!1,o=[]){return kr(t)?kge(e,t,r,i,o,n).flatMap(u=>{let l=u;if(UZ in l)return Sge(e,l,r,i,o,n);if(vf in l){if(i){const{allOf:c,...h}=l;return[...c,h]}try{l=mge(l,{deep:!1})}catch(c){console.warn(`could not merge subschemas in allOf: -`,c);const{allOf:h,...f}=l;return f}}return Oy in l&&l.additionalProperties!==!1?Cge(e,l,r,n):l}):[{}]}function Ege(e,t,r,n,i){let o;const{oneOf:s,anyOf:u,...l}=t;if(Array.isArray(s)?o=s:Array.isArray(u)&&(o=u),o){const a=i===void 0&&n?{}:i,c=Cu(t);o=o.map(f=>Hd(f,r,[]));const h=Dw(e,a,o,r,c);if(n)return o.map(f=>es(l,f));t=es(l,o[h])}return[t]}function W$(e,t,r,n,i,o){const{dependencies:s,...u}=t;return Ege(e,u,r,n,o).flatMap(a=>q$(e,s,a,r,n,i,o))}function q$(e,t,r,n,i,o,s){let u=[r];for(const l in t){if(!i&&Ze(s,[l])===void 0||r.properties&&!(l in r.properties))continue;const[a,c]=Mw(l,t);return Array.isArray(c)?u[0]=Tge(r,c):kr(c)&&(u=$ge(e,r,n,l,c,i,o,s)),u.flatMap(h=>q$(e,a,h,n,i,o,s))}return u}function Tge(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function $ge(e,t,r,n,i,o,s,u){return ho(e,i,r,u,o,s).flatMap(a=>{const{oneOf:c,...h}=a;if(t=es(t,h),c===void 0)return t;const f=c.map(m=>typeof m=="boolean"||!(Hr in m)?[m]:H$(e,m,r,o,s,u));return U$(f).flatMap(m=>Age(e,t,r,n,m,o,s,u))})}function Age(e,t,r,n,i,o,s,u){const l=i.filter(a=>{if(typeof a=="boolean"||!a||!a.properties)return!1;const{[n]:c}=a.properties;if(c){const h={type:"object",properties:{[n]:c}};return e.isValid(h,u,r)||o}return!1});return!o&&l.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):l.flatMap(a=>{const c=a,[h]=Mw(n,c.properties),f={...c,properties:h};return ho(e,f,r,u,o,s).map(m=>es(t,m))})}const Pge={type:"object",$id:HZ,properties:{__not_really_there__:{type:"number"}}};function zy(e,t,r,n={}){let i=0;return r&&(zi(r.properties)?i+=pde(r.properties,(o,s,u)=>{const l=Ze(n,u);if(typeof s=="boolean")return o;if(Sn(s,Hr)){const a=Gn(e,s,t,l);return o+zy(e,t,a,l||{})}if((Sn(s,Hs)||Sn(s,xu))&&l){const a=Sn(s,Hs)?Hs:xu,c=Cu(s);return o+Wd(e,t,l,Ze(s,a),-1,c)}if(s.type==="object")return o+zy(e,t,s,l||{});if(s.type===Ud(l)){let a=o+1;return s.default?a+=l===s.default?1:-1:s.const&&(a+=l===s.const?1:-1),a}return o},0):Rw(r.type)&&r.type===Ud(n)&&(i+=1)),i}function Wd(e,t,r,n,i=-1,o){const s=n.map(h=>Hd(h,t,[])),u=a$(r,n,o);if(JT(u))return u;const l=s.reduce((h,f,d)=>(Dw(e,r,[Pge,f],t,o)===1&&h.push(d),h),[]);if(l.length===1)return l[0];l.length||s$(s.length,h=>l.push(h));const a=new Set,{bestIndex:c}=l.reduce((h,f)=>{const{bestScore:d}=h,m=s[f],g=zy(e,t,m,r);return a.add(g),g>d?{bestIndex:f,bestScore:g}:h},{bestIndex:i,bestScore:0});return a.size===1&&i>=0?i:c}function Vy(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(t=>kr(t))}function fm(e,t,r=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],i=t.map((o,s)=>n[s]?fm(n[s],o,r):o);return r&&i.length(i[o]=fm(e?Ze(e,o):{},Ze(t,o),r),i),n)}return t}function Qu(e,t,r=!1){return Object.keys(t).reduce((n,i)=>{const o=e?e[i]:{},s=t[i];if(e&&i in e&&kr(s))n[i]=Qu(o,s,r);else if(r&&Array.isArray(o)&&Array.isArray(s)){let u=s;r==="preventDuplicates"&&(u=s.reduce((l,a)=>(o.includes(a)||l.push(a),l),[])),n[i]=o.concat(u)}else n[i]=s;return n},Object.assign({},e))}function Oge(e){return Array.isArray(e.enum)&&e.enum.length===1||sT in e}function K$(e,t,r={}){const n=Gn(e,t,r,void 0),i=n.oneOf||n.anyOf;return Array.isArray(n.enum)?!0:Array.isArray(i)?i.every(o=>typeof o!="boolean"&&Oge(o)):!1}function Jw(e,t,r){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:K$(e,t.items,r)}var Eu;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Eu||(Eu={}));function j1(e,t=Eu.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r_s(e,p,{rootSchema:i,includeUndefinedValues:o,_recurseList:s,experimental_defaultFormStateBehavior:u,parentDefaults:Array.isArray(r)?r[v]:void 0,rawFormData:h,required:l}));else if(Hs in f){const{oneOf:p,...v}=f;if(p.length===0)return;const y=Cu(f);m=p[Wd(e,i,Va(h)?void 0:h,p,0,y)],m=es(v,m)}else if(xu in f){const{anyOf:p,...v}=f;if(p.length===0)return;const y=Cu(f);m=p[Wd(e,i,Va(h)?void 0:h,p,0,y)],m=es(v,m)}if(m)return _s(e,m,{rootSchema:i,includeUndefinedValues:o,_recurseList:g,experimental_defaultFormStateBehavior:u,parentDefaults:d,rawFormData:h,required:l});switch(d===void 0&&(d=f.default),Ys(f)){case"object":{const p=(u==null?void 0:u.allOf)==="populateDefaults"&&vf in f?Gn(e,f,i,h):f,v=Object.keys(p.properties||{}).reduce((y,b)=>{var _;const E=_s(e,Ze(p,[Pr,b]),{rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,includeUndefinedValues:o===!0,parentDefaults:Ze(d,[b]),rawFormData:Ze(h,[b]),required:(_=p.required)===null||_===void 0?void 0:_.includes(b)});return p6(y,b,E,o,l,p.required,u),y},{});if(p.additionalProperties){const y=kr(p.additionalProperties)?p.additionalProperties:{},b=new Set;kr(d)&&Object.keys(d).filter(E=>!p.properties||!p.properties[E]).forEach(E=>b.add(E));const _=[];Object.keys(h).filter(E=>!p.properties||!p.properties[E]).forEach(E=>{b.add(E),_.push(E)}),b.forEach(E=>{var $;const M=_s(e,y,{rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,includeUndefinedValues:o===!0,parentDefaults:Ze(d,[E]),rawFormData:Ze(h,[E]),required:($=p.required)===null||$===void 0?void 0:$.includes(E)});p6(v,E,M,o,l,_)})}return v}case"array":{const p=((a=u==null?void 0:u.arrayMinItems)===null||a===void 0?void 0:a.populate)==="never",v=((c=u==null?void 0:u.arrayMinItems)===null||c===void 0?void 0:c.populate)==="requiredOnly";if(Array.isArray(d)&&(d=d.map((M,P)=>{const D=j1(f,Eu.Fallback,P);return _s(e,D,{rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,parentDefaults:M,required:l})})),Array.isArray(n)){const M=j1(f);p?d=n:d=n.map((P,D)=>_s(e,M,{rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,rawFormData:P,parentDefaults:Ze(d,[D]),required:l}))}if(p)return d??[];if(v&&!l)return d||void 0;const y=Array.isArray(d)?d.length:0;if(!f.minItems||Jw(e,f,i)||f.minItems<=y)return d||[];const b=d||[],_=j1(f,Eu.Invert),E=_.default,$=new Array(f.minItems-y).fill(_s(e,_,{parentDefaults:E,rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,required:l}));return b.concat($)}}return d}function G$(e,t,r,n,i=!1,o){if(!kr(t))throw new Error("Invalid schema: "+t);const s=Gn(e,t,n,r),u=_s(e,s,{rootSchema:n,includeUndefinedValues:i,experimental_defaultFormStateBehavior:o,rawFormData:r});if(r==null||typeof r=="number"&&isNaN(r))return u;const{mergeExtraDefaults:l}=(o==null?void 0:o.arrayMinItems)||{};return kr(r)||Array.isArray(r)?fm(u,r,l):r}function X$(e={}){return"widget"in Gt(e)&&Gt(e).widget!=="hidden"}function Y$(e,t,r={},n){if(r[mw]==="files")return!0;if(t.items){const i=Gn(e,t.items,n);return i.type==="string"&&i.format==="data-url"}return!1}function Mge(e,t,r={},n,i){const o=Gt(r,i),{label:s=!0}=o;let u=!!s;const l=Ys(t);return l==="array"&&(u=Jw(e,t,n)||Y$(e,t,r,n)||X$(r)),l==="object"&&(u=!1),l==="boolean"&&!r[mw]&&(u=!1),r[qZ]&&(u=!1),u}function Ige(e,t,r){if(!r)return t;const{errors:n,errorSchema:i}=t;let o=e.toErrorList(r),s=r;return Va(i)||(s=Qu(i,r,!0),o=[...n].concat(o)),{errorSchema:s,errors:o}}const hl=Symbol("no Value");function Uy(e,t,r,n,i={}){let o;if(Sn(r,Pr)){const s={};if(Sn(n,Pr)){const a=Ze(n,Pr,{});Object.keys(a).forEach(c=>{Sn(i,c)&&(s[c]=void 0)})}const u=Object.keys(Ze(r,Pr,{})),l={};u.forEach(a=>{const c=Ze(i,a);let h=Ze(n,[Pr,a],{}),f=Ze(r,[Pr,a],{});Sn(h,Hr)&&(h=Gn(e,h,t,c)),Sn(f,Hr)&&(f=Gn(e,f,t,c));const d=Ze(h,"type"),m=Ze(f,"type");if(!d||d===m)if(Sn(s,a)&&delete s[a],m==="object"||m==="array"&&Array.isArray(c)){const g=Uy(e,t,f,h,c);(g!==void 0||m==="array")&&(l[a]=g)}else{const g=Ze(f,"default",hl),p=Ze(h,"default",hl);g!==hl&&g!==c&&(p===c?s[a]=g:Ze(f,"readOnly")===!0&&(s[a]=void 0));const v=Ze(f,"const",hl),y=Ze(h,"const",hl);v!==hl&&v!==c&&(s[a]=y===c?v:void 0)}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...s,...l}}else if(Ze(n,"type")==="array"&&Ze(r,"type")==="array"&&Array.isArray(i)){let s=Ze(n,"items"),u=Ze(r,"items");if(typeof s=="object"&&typeof u=="object"&&!Array.isArray(s)&&!Array.isArray(u)){Sn(s,Hr)&&(s=Gn(e,s,t,i)),Sn(u,Hr)&&(u=Gn(e,u,t,i));const l=Ze(s,"type"),a=Ze(u,"type");if(!l||l===a){const c=Ze(r,"maxItems",-1);a==="object"?o=i.reduce((h,f)=>{const d=Uy(e,t,u,s,f);return d!==void 0&&(c<0||h.length0&&i.length>c?i.slice(0,c):i}}else typeof s=="boolean"&&typeof u=="boolean"&&s===u&&(o=i)}return o}function up(e,t,r,n,i,o,s,u=[]){if(Hr in t||$0 in t||vf in t){const c=Gn(e,t,o,s);if(u.findIndex(f=>Ua(f,c))===-1)return up(e,c,r,n,i,o,s,u.concat(c))}if(Us in t&&!Ze(t,[Us,Hr]))return up(e,Ze(t,Us),r,n,i,o,s,u);const a={$id:i||r};if(Ys(t)==="object"&&Pr in t)for(const c in t.properties){const h=Ze(t,[Pr,c]),f=a[Ps]+n+c;a[c]=up(e,kr(h)?h:{},r,n,f,o,Ze(s,[c]),u)}return a}function Rge(e,t,r,n,i,o="root",s="_"){return up(e,t,o,s,r,n,i)}function ma(e,t,r,n,i,o=[]){if(Hr in t||$0 in t||vf in t){const u=Gn(e,t,n,i);if(o.findIndex(a=>Ua(a,u))===-1)return ma(e,u,r,n,i,o.concat(u))}let s={[sp]:r.replace(/^\./,"")};if(Hs in t||xu in t){const u=Hs in t?t.oneOf:t.anyOf,l=Cu(t),a=Wd(e,n,i,u,0,l),c=u[a];s={...s,...ma(e,c,r,n,i,o)}}if(Oy in t&&t[Oy]!==!1&&mn(s,pw,!0),Us in t&&Array.isArray(i)){const{items:u,additionalItems:l}=t;Array.isArray(u)?i.forEach((a,c)=>{u[c]?s[c]=ma(e,u[c],`${r}.${c}`,n,a,o):l?s[c]=ma(e,l,`${r}.${c}`,n,a,o):console.warn(`Unable to generate path schema for "${r}.${c}". No schema defined for it`)}):i.forEach((a,c)=>{s[c]=ma(e,u,`${r}.${c}`,n,a,o)})}else if(Pr in t)for(const u in t.properties){const l=Ze(t,[Pr,u]);s[u]=ma(e,l,`${r}.${u}`,n,Ze(i,[u]),o)}return s}function jge(e,t,r="",n,i){return ma(e,t,r,n,i)}class Nge{constructor(t,r,n){this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=n}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,n={}){return!t||!r?!1:this.validator!==t||!mi(this.rootSchema,r)||!mi(this.experimental_defaultFormStateBehavior,n)}getDefaultFormState(t,r,n=!1){return G$(this.validator,t,r,this.rootSchema,n,this.experimental_defaultFormStateBehavior)}getDisplayLabel(t,r,n){return Mge(this.validator,t,r,this.rootSchema,n)}getClosestMatchingOption(t,r,n,i){return Wd(this.validator,this.rootSchema,t,r,n,i)}getFirstMatchingOption(t,r,n){return Dw(this.validator,t,r,this.rootSchema,n)}getMatchingOption(t,r,n){return l$(this.validator,t,r,this.rootSchema,n)}isFilesArray(t,r){return Y$(this.validator,t,r,this.rootSchema)}isMultiSelect(t){return Jw(this.validator,t,this.rootSchema)}isSelect(t){return K$(this.validator,t,this.rootSchema)}mergeValidationData(t,r){return Ige(this.validator,t,r)}retrieveSchema(t,r){return Gn(this.validator,t,this.rootSchema,r)}sanitizeDataForNewSchema(t,r,n){return Uy(this.validator,this.rootSchema,t,r,n)}toIdSchema(t,r,n,i="root",o="_"){return Rge(this.validator,t,r,this.rootSchema,n,i,o)}toPathSchema(t,r,n){return jge(this.validator,t,r,this.rootSchema,n)}}function Dge(e,t,r={}){return new Nge(e,t,r)}function Fge(e){const t=e.split(","),r=t[0].split(";"),n=r[0].replace("data:",""),i=r.filter(s=>s.split("=")[0]==="name");let o;i.length!==1?o="unknown":o=decodeURI(i[0].split("=")[1]);try{const s=atob(t[1]),u=[];for(let a=0;a{const s=n.findIndex(u=>u===`%${o+1}`);s>=0&&(n[s]=i)}),r=n.join("")}return r}function Bge(e,t){return Lge(e,t)}function zr(e,t=[],r){if(Array.isArray(e))return e.map(o=>zr(o,t)).filter(o=>o);const n=e===""||e===null?-1:Number(e),i=t[n];return i?i.value:r}function zge(e,t,r=[]){const n=zr(e,r);return Array.isArray(t)?t.filter(i=>!Ua(i,n)):Ua(n,t)?void 0:t}function K0(e,t){return Array.isArray(t)?t.some(r=>Ua(r,e)):Ua(t,e)}function G0(e,t=[],r=!1){const n=t.map((i,o)=>K0(i.value,e)?String(o):void 0).filter(i=>typeof i<"u");return r?n:n[0]}function Vge(e){return e==null}var Uge=Vge;const Hge=ir(Uge);function Wge(e,t,r=[]){const n=zr(e,r);if(!Hge(n)){const i=r.findIndex(u=>n===u.value),o=r.map(({value:u})=>u);return t.slice(0,i).concat(n,t.slice(i)).sort((u,l)=>+(o.indexOf(u)>o.indexOf(l)))}return t}class qge{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let n=Array.isArray(t)&&t.length>0||typeof t=="string"?Ze(this.errorSchema,t):this.errorSchema;return!n&&t&&(n={},mn(this.errorSchema,t,n)),n}resetAllErrors(t){return this.errorSchema=t?g$(t):{},this}addErrors(t,r){const n=this.getOrCreateErrorBlock(r);let i=Ze(n,Bi);return Array.isArray(i)||(i=[],n[Bi]=i),Array.isArray(t)?i.push(...t):i.push(t),this}setErrors(t,r){const n=this.getOrCreateErrorBlock(r),i=Array.isArray(t)?[...t]:[t];return mn(n,Bi,i),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return mn(r,Bi,[]),this}}function Z$(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function Q$(e,t,r={},n=!0){const i={type:t||"text",...Z$(e)};return r.inputType?i.type=r.inputType:t||(e.type==="number"?(i.type="number",n&&i.step===void 0&&(i.step="any")):e.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),r.autocomplete&&(i.autoComplete=r.autocomplete),i}const m6={props:{disabled:!1},submitText:"Submit",norender:!1};function J$(e={}){const t=Gt(e);if(t&&t[nm]){const r=t[nm];return{...m6,...r}}return m6}function jt(e,t,r={}){const{templates:n}=t;return e==="ButtonTemplates"?n[e]:r[e]||n[e]}var eA={exports:{}},lr={};/** +`+r)}function uge(e,t,r,n,i,o){if(e.length){const s=i.complexResolvers[t];if(!s||!s.resolver)throw new Error("No resolver found for "+t);const u=r.map(h=>e.reduce((f,d)=>(h[d]!==void 0&&(f[d]=h[d]),f),{})),l=tu(u,cm),a=s.keywords.reduce((h,f)=>({...h,[f]:(d,m=[])=>n(d,null,o.concat(f,m))}),{}),c=s.resolver(l,o.concat(t),a,i);return ku(c)||U$(l,o.concat(t)),c}}function cge(e){return{required:e}}const dge=["properties","patternProperties","definitions","dependencies"],fge=["anyOf","oneOf"],hge=["additionalProperties","additionalItems","contains","propertyNames","not","items"],tr={type(e){if(e.some(Array.isArray)){const t=e.map(function(n){return Array.isArray(n)?n:[n]}),r=Q0e.apply(null,t);if(r.length===1)return r[0];if(r.length>1)return Zw(r)}},dependencies(e,t,r){return B$(e).reduce(function(i,o){const s=V$(e,o);let u=tu(s.filter(dm),Ly);const l=u.filter(Array.isArray);if(l.length){if(l.length===u.length)i[o]=L$(u);else{const a=u.filter(tge),c=l.map(cge);i[o]=r(a.concat(c),o)}return i}return u=tu(u,cm),i[o]=r(u,o),i},{})},oneOf(e,t,r){const n=By(I$(e)),i=age(n,r),o=tu(i,cm);if(o.length)return o},not(e){return{anyOf:e}},pattern(e){return e.map(t=>"(?="+t+")").join("")},multipleOf(e){let t=e.slice(0),r=1;for(;t.some(n=>!Number.isInteger(n));)t=t.map(n=>n*10),r=r*10;return Y0e(t)/r},enum(e){const t=J0e.apply(null,e.concat(Ly));if(t.length)return j$(t)}};tr.$id=Zu;tr.$ref=Zu;tr.$schema=Zu;tr.additionalItems=q0;tr.additionalProperties=q0;tr.anyOf=tr.oneOf;tr.contains=q0;tr.default=Zu;tr.definitions=tr.dependencies;tr.description=Zu;tr.examples=oge;tr.exclusiveMaximum=Cf;tr.exclusiveMinimum=kf;tr.items=D$;tr.maximum=Cf;tr.maxItems=Cf;tr.maxLength=Cf;tr.maxProperties=Cf;tr.minimum=kf;tr.minItems=kf;tr.minLength=kf;tr.minProperties=kf;tr.properties=N$;tr.propertyNames=q0;tr.required=nge;tr.title=Zu;tr.uniqueItems=ige;const pge={properties:N$,items:D$};function Qw(e,t,r){t=Z0e(t,{ignoreAdditionalProperties:!1,resolvers:tr,complexResolvers:pge,deep:!0});const n=Object.entries(t.complexResolvers);function i(u,l,a){u=I$(u.filter(dm)),a=a||[];const c=ku(l)?l:{};if(!u.length)return;if(u.some(rge))return!1;if(u.every(F$))return!0;u=u.filter(ku);const h=B$(u);if(t.deep&&vh(h,"allOf"))return Qw({allOf:u},t);const f=n.map(([d,m])=>h.filter(g=>m.keywords.includes(g)));return f.forEach(d=>ege(h,d)),h.forEach(function(d){const m=V$(u,d),g=tu(m.filter(dm),sge(d));if(g.length===1&&vh(fge,d))c[d]=g[0].map(p=>i([p],p));else if(g.length===1&&!vh(dge,d)&&!vh(hge,d))c[d]=g[0];else{const p=t.resolvers[d]||t.resolvers.defaultResolver;if(!p)throw new Error("No resolver found for key "+d+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const v=(y,b=[])=>i(y,null,a.concat(d,b));c[d]=p(g,a.concat(d),v,t),c[d]===void 0?U$(g,a.concat(d)):c[d]===void 0&&delete c[d]}}),n.reduce((d,[m,g],p)=>({...d,...uge(f[p],m,u,i,t,a)}),c)}const o=Yw(z$(e));return i(o)}Qw.options={resolvers:tr};var mge=Qw;const gge=ir(mge);function Cu(e){let t;const r=Ze(e,"discriminator.propertyName",void 0);return Rw(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function Ud(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":isNaN(e)?typeof e=="object"?"object":"string":"number"}var vge=U0,yge=ra,bge=Hw,wge=H0,_ge=yge(function(e){return bge(vge(e,1,wge,!0))}),xge=_ge;const Sge=ir(xge);function Ys(e){let{type:t}=e;return!t&&e.const?Ud(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function es(e,t){const r=Object.assign({},e);return Object.keys(t).reduce((n,i)=>{const o=e?e[i]:{},s=t[i];return e&&i in e&&kr(s)?n[i]=es(o,s):e&&t&&(Ys(e)==="object"||Ys(t)==="object")&&i===qZ&&Array.isArray(o)&&Array.isArray(s)?n[i]=Sge(o,s):n[i]=s,n},r)}function Gn(e,t,r={},n){return ho(e,t,r,n)[0]}function kge(e,t,r,n,i,o){const{if:s,then:u,else:l,...a}=t,c=e.isValid(s,o||{},r);let h=[a],f=[];if(n)u&&typeof u!="boolean"&&(f=f.concat(ho(e,u,r,o,n,i))),l&&typeof l!="boolean"&&(f=f.concat(ho(e,l,r,o,n,i)));else{const d=c?u:l;d&&typeof d!="boolean"&&(f=f.concat(ho(e,d,r,o,n,i)))}return f.length&&(h=f.map(d=>es(a,d))),h.flatMap(d=>ho(e,d,r,o,n,i))}function H$(e){return e.reduce((r,n)=>n.length>1?n.flatMap(i=>a$(r.length,o=>[...r[o]].concat(i))):(r.forEach(i=>i.push(n[0])),r),[[]])}function Cge(e,t,r,n,i,o){const s=W$(e,t,r,n,i,o);if(s.length>1||s[0]!==t)return s;if($0 in t)return q$(e,t,r,n,i,o).flatMap(l=>ho(e,l,r,o,n,i));if(vf in t&&Array.isArray(t.allOf)){const u=t.allOf.map(a=>ho(e,a,r,o,n,i));return H$(u).map(a=>({...t,allOf:a}))}return[t]}function W$(e,t,r,n,i,o){const s=Hd(t,r,i);return s!==t?ho(e,s,r,o,n,i):[t]}function Hd(e,t,r){if(!kr(e))return e;let n=e;if(Hr in n){const{$ref:i,...o}=n;if(r.includes(i))return n;r.push(i),n={...Iw(i,t),...o}}if(Pr in n){const i=[],o=mfe(n[Pr],(s,u,l)=>{const a=[...r];s[l]=Hd(u,t,a),i.push(a)},{});uhe(r,Hhe(hhe(i))),n={...n,[Pr]:o}}return Us in n&&!Array.isArray(n.items)&&typeof n.items!="boolean"&&(n={...n,items:Hd(n.items,t,r)}),Ua(e,n)?e:n}function Ege(e,t,r,n){const i={...t,properties:{...t.properties}},o=n&&kr(n)?n:{};return Object.keys(o).forEach(s=>{if(s in i.properties)return;let u={};typeof i.additionalProperties!="boolean"?Hr in i.additionalProperties?u=Gn(e,{$ref:Ze(i.additionalProperties,[Hr])},r,o):"type"in i.additionalProperties?u={...i.additionalProperties}:xu in i.additionalProperties||Hs in i.additionalProperties?u={type:"object",...i.additionalProperties}:u={type:Ud(Ze(o,[s]))}:u={type:Ud(Ze(o,[s]))},i.properties[s]=u,mn(i.properties,[s,Du],!0)}),i}function ho(e,t,r,n,i=!1,o=[]){return kr(t)?Cge(e,t,r,i,o,n).flatMap(u=>{let l=u;if(HZ in l)return kge(e,l,r,i,o,n);if(vf in l){if(i){const{allOf:c,...h}=l;return[...c,h]}try{l=gge(l,{deep:!1})}catch(c){console.warn(`could not merge subschemas in allOf: +`,c);const{allOf:h,...f}=l;return f}}return Oy in l&&l.additionalProperties!==!1?Ege(e,l,r,n):l}):[{}]}function Tge(e,t,r,n,i){let o;const{oneOf:s,anyOf:u,...l}=t;if(Array.isArray(s)?o=s:Array.isArray(u)&&(o=u),o){const a=i===void 0&&n?{}:i,c=Cu(t);o=o.map(f=>Hd(f,r,[]));const h=Dw(e,a,o,r,c);if(n)return o.map(f=>es(l,f));t=es(l,o[h])}return[t]}function q$(e,t,r,n,i,o){const{dependencies:s,...u}=t;return Tge(e,u,r,n,o).flatMap(a=>K$(e,s,a,r,n,i,o))}function K$(e,t,r,n,i,o,s){let u=[r];for(const l in t){if(!i&&Ze(s,[l])===void 0||r.properties&&!(l in r.properties))continue;const[a,c]=Mw(l,t);return Array.isArray(c)?u[0]=$ge(r,c):kr(c)&&(u=Age(e,r,n,l,c,i,o,s)),u.flatMap(h=>K$(e,a,h,n,i,o,s))}return u}function $ge(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function Age(e,t,r,n,i,o,s,u){return ho(e,i,r,u,o,s).flatMap(a=>{const{oneOf:c,...h}=a;if(t=es(t,h),c===void 0)return t;const f=c.map(m=>typeof m=="boolean"||!(Hr in m)?[m]:W$(e,m,r,o,s,u));return H$(f).flatMap(m=>Pge(e,t,r,n,m,o,s,u))})}function Pge(e,t,r,n,i,o,s,u){const l=i.filter(a=>{if(typeof a=="boolean"||!a||!a.properties)return!1;const{[n]:c}=a.properties;if(c){const h={type:"object",properties:{[n]:c}};return e.isValid(h,u,r)||o}return!1});return!o&&l.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):l.flatMap(a=>{const c=a,[h]=Mw(n,c.properties),f={...c,properties:h};return ho(e,f,r,u,o,s).map(m=>es(t,m))})}const Oge={type:"object",$id:WZ,properties:{__not_really_there__:{type:"number"}}};function zy(e,t,r,n={}){let i=0;return r&&(zi(r.properties)?i+=mde(r.properties,(o,s,u)=>{const l=Ze(n,u);if(typeof s=="boolean")return o;if(Sn(s,Hr)){const a=Gn(e,s,t,l);return o+zy(e,t,a,l||{})}if((Sn(s,Hs)||Sn(s,xu))&&l){const a=Sn(s,Hs)?Hs:xu,c=Cu(s);return o+Wd(e,t,l,Ze(s,a),-1,c)}if(s.type==="object")return o+zy(e,t,s,l||{});if(s.type===Ud(l)){let a=o+1;return s.default?a+=l===s.default?1:-1:s.const&&(a+=l===s.const?1:-1),a}return o},0):Rw(r.type)&&r.type===Ud(n)&&(i+=1)),i}function Wd(e,t,r,n,i=-1,o){const s=n.map(h=>Hd(h,t,[])),u=l$(r,n,o);if(e$(u))return u;const l=s.reduce((h,f,d)=>(Dw(e,r,[Oge,f],t,o)===1&&h.push(d),h),[]);if(l.length===1)return l[0];l.length||a$(s.length,h=>l.push(h));const a=new Set,{bestIndex:c}=l.reduce((h,f)=>{const{bestScore:d}=h,m=s[f],g=zy(e,t,m,r);return a.add(g),g>d?{bestIndex:f,bestScore:g}:h},{bestIndex:i,bestScore:0});return a.size===1&&i>=0?i:c}function Vy(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(t=>kr(t))}function fm(e,t,r=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],i=t.map((o,s)=>n[s]?fm(n[s],o,r):o);return r&&i.length(i[o]=fm(e?Ze(e,o):{},Ze(t,o),r),i),n)}return t}function Qu(e,t,r=!1){return Object.keys(t).reduce((n,i)=>{const o=e?e[i]:{},s=t[i];if(e&&i in e&&kr(s))n[i]=Qu(o,s,r);else if(r&&Array.isArray(o)&&Array.isArray(s)){let u=s;r==="preventDuplicates"&&(u=s.reduce((l,a)=>(o.includes(a)||l.push(a),l),[])),n[i]=o.concat(u)}else n[i]=s;return n},Object.assign({},e))}function Mge(e){return Array.isArray(e.enum)&&e.enum.length===1||aT in e}function G$(e,t,r={}){const n=Gn(e,t,r,void 0),i=n.oneOf||n.anyOf;return Array.isArray(n.enum)?!0:Array.isArray(i)?i.every(o=>typeof o!="boolean"&&Mge(o)):!1}function Jw(e,t,r){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:G$(e,t.items,r)}var Eu;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Eu||(Eu={}));function j1(e,t=Eu.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r_s(e,p,{rootSchema:i,includeUndefinedValues:o,_recurseList:s,experimental_defaultFormStateBehavior:u,parentDefaults:Array.isArray(r)?r[v]:void 0,rawFormData:h,required:l}));else if(Hs in f){const{oneOf:p,...v}=f;if(p.length===0)return;const y=Cu(f);m=p[Wd(e,i,Va(h)?void 0:h,p,0,y)],m=es(v,m)}else if(xu in f){const{anyOf:p,...v}=f;if(p.length===0)return;const y=Cu(f);m=p[Wd(e,i,Va(h)?void 0:h,p,0,y)],m=es(v,m)}if(m)return _s(e,m,{rootSchema:i,includeUndefinedValues:o,_recurseList:g,experimental_defaultFormStateBehavior:u,parentDefaults:d,rawFormData:h,required:l});switch(d===void 0&&(d=f.default),Ys(f)){case"object":{const p=(u==null?void 0:u.allOf)==="populateDefaults"&&vf in f?Gn(e,f,i,h):f,v=Object.keys(p.properties||{}).reduce((y,b)=>{var _;const E=_s(e,Ze(p,[Pr,b]),{rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,includeUndefinedValues:o===!0,parentDefaults:Ze(d,[b]),rawFormData:Ze(h,[b]),required:(_=p.required)===null||_===void 0?void 0:_.includes(b)});return p6(y,b,E,o,l,p.required,u),y},{});if(p.additionalProperties){const y=kr(p.additionalProperties)?p.additionalProperties:{},b=new Set;kr(d)&&Object.keys(d).filter(E=>!p.properties||!p.properties[E]).forEach(E=>b.add(E));const _=[];Object.keys(h).filter(E=>!p.properties||!p.properties[E]).forEach(E=>{b.add(E),_.push(E)}),b.forEach(E=>{var $;const M=_s(e,y,{rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,includeUndefinedValues:o===!0,parentDefaults:Ze(d,[E]),rawFormData:Ze(h,[E]),required:($=p.required)===null||$===void 0?void 0:$.includes(E)});p6(v,E,M,o,l,_)})}return v}case"array":{const p=((a=u==null?void 0:u.arrayMinItems)===null||a===void 0?void 0:a.populate)==="never",v=((c=u==null?void 0:u.arrayMinItems)===null||c===void 0?void 0:c.populate)==="requiredOnly";if(Array.isArray(d)&&(d=d.map((M,P)=>{const D=j1(f,Eu.Fallback,P);return _s(e,D,{rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,parentDefaults:M,required:l})})),Array.isArray(n)){const M=j1(f);p?d=n:d=n.map((P,D)=>_s(e,M,{rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,rawFormData:P,parentDefaults:Ze(d,[D]),required:l}))}if(p)return d??[];if(v&&!l)return d||void 0;const y=Array.isArray(d)?d.length:0;if(!f.minItems||Jw(e,f,i)||f.minItems<=y)return d||[];const b=d||[],_=j1(f,Eu.Invert),E=_.default,$=new Array(f.minItems-y).fill(_s(e,_,{parentDefaults:E,rootSchema:i,_recurseList:s,experimental_defaultFormStateBehavior:u,required:l}));return b.concat($)}}return d}function X$(e,t,r,n,i=!1,o){if(!kr(t))throw new Error("Invalid schema: "+t);const s=Gn(e,t,n,r),u=_s(e,s,{rootSchema:n,includeUndefinedValues:i,experimental_defaultFormStateBehavior:o,rawFormData:r});if(r==null||typeof r=="number"&&isNaN(r))return u;const{mergeExtraDefaults:l}=(o==null?void 0:o.arrayMinItems)||{};return kr(r)||Array.isArray(r)?fm(u,r,l):r}function Y$(e={}){return"widget"in Gt(e)&&Gt(e).widget!=="hidden"}function Z$(e,t,r={},n){if(r[mw]==="files")return!0;if(t.items){const i=Gn(e,t.items,n);return i.type==="string"&&i.format==="data-url"}return!1}function Ige(e,t,r={},n,i){const o=Gt(r,i),{label:s=!0}=o;let u=!!s;const l=Ys(t);return l==="array"&&(u=Jw(e,t,n)||Z$(e,t,r,n)||Y$(r)),l==="object"&&(u=!1),l==="boolean"&&!r[mw]&&(u=!1),r[KZ]&&(u=!1),u}function Rge(e,t,r){if(!r)return t;const{errors:n,errorSchema:i}=t;let o=e.toErrorList(r),s=r;return Va(i)||(s=Qu(i,r,!0),o=[...n].concat(o)),{errorSchema:s,errors:o}}const hl=Symbol("no Value");function Uy(e,t,r,n,i={}){let o;if(Sn(r,Pr)){const s={};if(Sn(n,Pr)){const a=Ze(n,Pr,{});Object.keys(a).forEach(c=>{Sn(i,c)&&(s[c]=void 0)})}const u=Object.keys(Ze(r,Pr,{})),l={};u.forEach(a=>{const c=Ze(i,a);let h=Ze(n,[Pr,a],{}),f=Ze(r,[Pr,a],{});Sn(h,Hr)&&(h=Gn(e,h,t,c)),Sn(f,Hr)&&(f=Gn(e,f,t,c));const d=Ze(h,"type"),m=Ze(f,"type");if(!d||d===m)if(Sn(s,a)&&delete s[a],m==="object"||m==="array"&&Array.isArray(c)){const g=Uy(e,t,f,h,c);(g!==void 0||m==="array")&&(l[a]=g)}else{const g=Ze(f,"default",hl),p=Ze(h,"default",hl);g!==hl&&g!==c&&(p===c?s[a]=g:Ze(f,"readOnly")===!0&&(s[a]=void 0));const v=Ze(f,"const",hl),y=Ze(h,"const",hl);v!==hl&&v!==c&&(s[a]=y===c?v:void 0)}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...s,...l}}else if(Ze(n,"type")==="array"&&Ze(r,"type")==="array"&&Array.isArray(i)){let s=Ze(n,"items"),u=Ze(r,"items");if(typeof s=="object"&&typeof u=="object"&&!Array.isArray(s)&&!Array.isArray(u)){Sn(s,Hr)&&(s=Gn(e,s,t,i)),Sn(u,Hr)&&(u=Gn(e,u,t,i));const l=Ze(s,"type"),a=Ze(u,"type");if(!l||l===a){const c=Ze(r,"maxItems",-1);a==="object"?o=i.reduce((h,f)=>{const d=Uy(e,t,u,s,f);return d!==void 0&&(c<0||h.length0&&i.length>c?i.slice(0,c):i}}else typeof s=="boolean"&&typeof u=="boolean"&&s===u&&(o=i)}return o}function up(e,t,r,n,i,o,s,u=[]){if(Hr in t||$0 in t||vf in t){const c=Gn(e,t,o,s);if(u.findIndex(f=>Ua(f,c))===-1)return up(e,c,r,n,i,o,s,u.concat(c))}if(Us in t&&!Ze(t,[Us,Hr]))return up(e,Ze(t,Us),r,n,i,o,s,u);const a={$id:i||r};if(Ys(t)==="object"&&Pr in t)for(const c in t.properties){const h=Ze(t,[Pr,c]),f=a[Ps]+n+c;a[c]=up(e,kr(h)?h:{},r,n,f,o,Ze(s,[c]),u)}return a}function jge(e,t,r,n,i,o="root",s="_"){return up(e,t,o,s,r,n,i)}function ma(e,t,r,n,i,o=[]){if(Hr in t||$0 in t||vf in t){const u=Gn(e,t,n,i);if(o.findIndex(a=>Ua(a,u))===-1)return ma(e,u,r,n,i,o.concat(u))}let s={[sp]:r.replace(/^\./,"")};if(Hs in t||xu in t){const u=Hs in t?t.oneOf:t.anyOf,l=Cu(t),a=Wd(e,n,i,u,0,l),c=u[a];s={...s,...ma(e,c,r,n,i,o)}}if(Oy in t&&t[Oy]!==!1&&mn(s,pw,!0),Us in t&&Array.isArray(i)){const{items:u,additionalItems:l}=t;Array.isArray(u)?i.forEach((a,c)=>{u[c]?s[c]=ma(e,u[c],`${r}.${c}`,n,a,o):l?s[c]=ma(e,l,`${r}.${c}`,n,a,o):console.warn(`Unable to generate path schema for "${r}.${c}". No schema defined for it`)}):i.forEach((a,c)=>{s[c]=ma(e,u,`${r}.${c}`,n,a,o)})}else if(Pr in t)for(const u in t.properties){const l=Ze(t,[Pr,u]);s[u]=ma(e,l,`${r}.${u}`,n,Ze(i,[u]),o)}return s}function Nge(e,t,r="",n,i){return ma(e,t,r,n,i)}class Dge{constructor(t,r,n){this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=n}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,n={}){return!t||!r?!1:this.validator!==t||!mi(this.rootSchema,r)||!mi(this.experimental_defaultFormStateBehavior,n)}getDefaultFormState(t,r,n=!1){return X$(this.validator,t,r,this.rootSchema,n,this.experimental_defaultFormStateBehavior)}getDisplayLabel(t,r,n){return Ige(this.validator,t,r,this.rootSchema,n)}getClosestMatchingOption(t,r,n,i){return Wd(this.validator,this.rootSchema,t,r,n,i)}getFirstMatchingOption(t,r,n){return Dw(this.validator,t,r,this.rootSchema,n)}getMatchingOption(t,r,n){return u$(this.validator,t,r,this.rootSchema,n)}isFilesArray(t,r){return Z$(this.validator,t,r,this.rootSchema)}isMultiSelect(t){return Jw(this.validator,t,this.rootSchema)}isSelect(t){return G$(this.validator,t,this.rootSchema)}mergeValidationData(t,r){return Rge(this.validator,t,r)}retrieveSchema(t,r){return Gn(this.validator,t,this.rootSchema,r)}sanitizeDataForNewSchema(t,r,n){return Uy(this.validator,this.rootSchema,t,r,n)}toIdSchema(t,r,n,i="root",o="_"){return jge(this.validator,t,r,this.rootSchema,n,i,o)}toPathSchema(t,r,n){return Nge(this.validator,t,r,this.rootSchema,n)}}function Fge(e,t,r={}){return new Dge(e,t,r)}function Lge(e){const t=e.split(","),r=t[0].split(";"),n=r[0].replace("data:",""),i=r.filter(s=>s.split("=")[0]==="name");let o;i.length!==1?o="unknown":o=decodeURI(i[0].split("=")[1]);try{const s=atob(t[1]),u=[];for(let a=0;a{const s=n.findIndex(u=>u===`%${o+1}`);s>=0&&(n[s]=i)}),r=n.join("")}return r}function zge(e,t){return Bge(e,t)}function zr(e,t=[],r){if(Array.isArray(e))return e.map(o=>zr(o,t)).filter(o=>o);const n=e===""||e===null?-1:Number(e),i=t[n];return i?i.value:r}function Vge(e,t,r=[]){const n=zr(e,r);return Array.isArray(t)?t.filter(i=>!Ua(i,n)):Ua(n,t)?void 0:t}function K0(e,t){return Array.isArray(t)?t.some(r=>Ua(r,e)):Ua(t,e)}function G0(e,t=[],r=!1){const n=t.map((i,o)=>K0(i.value,e)?String(o):void 0).filter(i=>typeof i<"u");return r?n:n[0]}function Uge(e){return e==null}var Hge=Uge;const Wge=ir(Hge);function qge(e,t,r=[]){const n=zr(e,r);if(!Wge(n)){const i=r.findIndex(u=>n===u.value),o=r.map(({value:u})=>u);return t.slice(0,i).concat(n,t.slice(i)).sort((u,l)=>+(o.indexOf(u)>o.indexOf(l)))}return t}class Kge{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let n=Array.isArray(t)&&t.length>0||typeof t=="string"?Ze(this.errorSchema,t):this.errorSchema;return!n&&t&&(n={},mn(this.errorSchema,t,n)),n}resetAllErrors(t){return this.errorSchema=t?v$(t):{},this}addErrors(t,r){const n=this.getOrCreateErrorBlock(r);let i=Ze(n,Bi);return Array.isArray(i)||(i=[],n[Bi]=i),Array.isArray(t)?i.push(...t):i.push(t),this}setErrors(t,r){const n=this.getOrCreateErrorBlock(r),i=Array.isArray(t)?[...t]:[t];return mn(n,Bi,i),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return mn(r,Bi,[]),this}}function Q$(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function J$(e,t,r={},n=!0){const i={type:t||"text",...Q$(e)};return r.inputType?i.type=r.inputType:t||(e.type==="number"?(i.type="number",n&&i.step===void 0&&(i.step="any")):e.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),r.autocomplete&&(i.autoComplete=r.autocomplete),i}const m6={props:{disabled:!1},submitText:"Submit",norender:!1};function eA(e={}){const t=Gt(e);if(t&&t[nm]){const r=t[nm];return{...m6,...r}}return m6}function jt(e,t,r={}){const{templates:n}=t;return e==="ButtonTemplates"?n[e]:r[e]||n[e]}var tA={exports:{}},lr={};/** * @license React * react-is.production.min.js * @@ -356,32 +356,32 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var e_=Symbol.for("react.element"),t_=Symbol.for("react.portal"),X0=Symbol.for("react.fragment"),Y0=Symbol.for("react.strict_mode"),Z0=Symbol.for("react.profiler"),Q0=Symbol.for("react.provider"),J0=Symbol.for("react.context"),Kge=Symbol.for("react.server_context"),eg=Symbol.for("react.forward_ref"),tg=Symbol.for("react.suspense"),rg=Symbol.for("react.suspense_list"),ng=Symbol.for("react.memo"),ig=Symbol.for("react.lazy"),Gge=Symbol.for("react.offscreen"),tA;tA=Symbol.for("react.module.reference");function Ei(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case e_:switch(e=e.type,e){case X0:case Z0:case Y0:case tg:case rg:return e;default:switch(e=e&&e.$$typeof,e){case Kge:case J0:case eg:case ig:case ng:case Q0:return e;default:return t}}case t_:return t}}}lr.ContextConsumer=J0;lr.ContextProvider=Q0;lr.Element=e_;lr.ForwardRef=eg;lr.Fragment=X0;lr.Lazy=ig;lr.Memo=ng;lr.Portal=t_;lr.Profiler=Z0;lr.StrictMode=Y0;lr.Suspense=tg;lr.SuspenseList=rg;lr.isAsyncMode=function(){return!1};lr.isConcurrentMode=function(){return!1};lr.isContextConsumer=function(e){return Ei(e)===J0};lr.isContextProvider=function(e){return Ei(e)===Q0};lr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===e_};lr.isForwardRef=function(e){return Ei(e)===eg};lr.isFragment=function(e){return Ei(e)===X0};lr.isLazy=function(e){return Ei(e)===ig};lr.isMemo=function(e){return Ei(e)===ng};lr.isPortal=function(e){return Ei(e)===t_};lr.isProfiler=function(e){return Ei(e)===Z0};lr.isStrictMode=function(e){return Ei(e)===Y0};lr.isSuspense=function(e){return Ei(e)===tg};lr.isSuspenseList=function(e){return Ei(e)===rg};lr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===X0||e===Z0||e===Y0||e===tg||e===rg||e===Gge||typeof e=="object"&&e!==null&&(e.$$typeof===ig||e.$$typeof===ng||e.$$typeof===Q0||e.$$typeof===J0||e.$$typeof===eg||e.$$typeof===tA||e.getModuleId!==void 0)};lr.typeOf=Ei;eA.exports=lr;var Xge=eA.exports;const g6=ir(Xge),N1={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Yge(e){let t=Ze(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:n,...i})=>X.jsx(e,{options:{...r,...n},...i}),mn(e,"MergedWidget",t)}return t}function Uo(e,t,r={}){const n=Ys(e);if(typeof t=="function"||t&&g6.isForwardRef(G.createElement(t))||g6.isMemo(t))return Yge(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t}`);if(t in r){const i=r[t];return Uo(e,i,r)}if(typeof n=="string"){if(!(n in N1))throw new Error(`No widget for type '${n}'`);if(t in N1[n]){const i=r[N1[n][t]];return Uo(e,i,r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function Zge(e){let t=0;for(let r=0;r(t.add(r),n)),Zge(JSON.stringify(e,Array.from(t).sort()))}function Jge(e,t,r={}){try{return Uo(e,t,r),!0}catch(n){const i=n;if(i.message&&(i.message.startsWith("No widget")||i.message.startsWith("Unsupported widget")))return!1;throw n}}function Ef(e,t){return`${Rw(e)?e:e[Ps]}__${t}`}function rl(e){return Ef(e,"description")}function r_(e){return Ef(e,"error")}function qd(e){return Ef(e,"examples")}function n_(e){return Ef(e,"help")}function i_(e){return Ef(e,"title")}function yn(e,t=!1){const r=t?` ${qd(e)}`:"";return`${r_(e)} ${rl(e)} ${n_(e)}${r}`}function og(e,t){return`${e}-${t}`}function os(e,t,r){return t?r:e}function e1e(e){return e?new Date(e).toJSON():void 0}function t1e(e){if(VZ in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(sT in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function hm(e){const t=e;if(t.enumNames,e.enum)return e.enum.map((n,i)=>({label:t.enumNames&&t.enumNames[i]||String(n),value:n}));const r=e.oneOf||e.anyOf;return r&&r.map(n=>{const i=n,o=t1e(i),s=i.title||String(o);return{schema:i,label:s,value:o}})}function r1e(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((h,f)=>(h[f]=!0,h),{}),n=c=>c.length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`,i=r(e),o=t.filter(c=>c==="*"||i[c]),s=r(o),u=e.filter(c=>!s[c]),l=o.indexOf("*");if(l===-1){if(u.length)throw new Error(`uiSchema order list does not contain ${n(u)}`);return o}if(l!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const a=[...o];return a.splice(l,1,...u),a}function $o(e,t){let r=String(e);for(;r.lengthsd(r);return e.allOf.some(t)}return!1}function n1e(e,t,r){const{props:n,state:i}=e;return!mi(n,t)||!mi(i,r)}function pm(e,t=!0){const{year:r,month:n,day:i,hour:o=0,minute:s=0,second:u=0}=e,l=Date.UTC(r,n-1,i,o,s,u),a=new Date(l).toJSON();return t?a:a.slice(0,10)}function Kd(e,t=[]){if(!e)return[];let r=[];return Bi in e&&(r=r.concat(e[Bi].map(n=>{const i=`.${t.join(".")}`;return{property:i,message:n,stack:`${i} ${n}`}}))),Object.keys(e).reduce((n,i)=>{if(i!==Bi){const o=e[i];gw(o)&&(n=n.concat(Kd(o,[...t,i])))}return n},r)}var i1e=is,o1e=V0,s1e=en,a1e=Ku,l1e=TT,u1e=tl,c1e=AT;function d1e(e){return s1e(e)?i1e(e,u1e):a1e(e)?[e]:o1e(l1e(c1e(e)))}var f1e=d1e;const rA=ir(f1e);function h1e(e){const t=new qge;return e.length&&e.forEach(r=>{const{property:n,message:i}=r,o=n==="."?[]:rA(n);o.length>0&&o[0]===""&&o.splice(0,1),i&&t.addErrors(i,o)}),t.ErrorSchema}function nA(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;{const n=e[r];return gw(n)?{...t,[r]:nA(n)}:{...t,[r]:n}}},{})}function p1e(e){if(!e)return"";const t=new Date(e),r=$o(t.getFullYear(),4),n=$o(t.getMonth()+1,2),i=$o(t.getDate(),2),o=$o(t.getHours(),2),s=$o(t.getMinutes(),2),u=$o(t.getSeconds(),2),l=$o(t.getMilliseconds(),3);return`${r}-${n}-${i}T${o}:${s}:${u}.${l}`}function cp(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let i=Kd(t),o=t;return Va(n)||(o=Qu(n,t,!0),i=[...r].concat(i)),{errorSchema:o,errors:i}}function m1e(e){for(const t in e){const r=e,n=r[t];t===Hr&&typeof n=="string"&&n.startsWith("#")?r[t]=aT+n:r[t]=o_(n)}return e}function g1e(e){for(let t=0;tcrypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");function Hy(){return O1e()}function v6(e){return Array.isArray(e)?e.map(t=>({key:Hy(),item:t})):[]}function wc(e){return Array.isArray(e)?e.map(t=>t.item):[]}class M1e extends G.Component{constructor(t){super(t),this._getNewFormDataRow=()=>{const{schema:i,registry:o}=this.props,{schemaUtils:s}=o;let u=i.items;return Vy(i)&&BZ(i)&&(u=i.additionalItems),s.getDefaultFormState(u)},this.onAddClick=i=>{this._handleAddClick(i)},this.onAddIndexClick=i=>o=>{this._handleAddClick(o,i)},this.onCopyIndexClick=i=>o=>{o&&o.preventDefault();const{onChange:s,errorSchema:u}=this.props,{keyedFormData:l}=this.state;let a;if(u){a={};for(const f in u){const d=parseInt(f);d<=i?mn(a,[d],u[f]):d>i&&mn(a,[d+1],u[f])}}const c={key:Hy(),item:g$(l[i].item)},h=[...l];i!==void 0?h.splice(i+1,0,c):h.push(c),this.setState({keyedFormData:h,updatedKeyedFormData:!0},()=>s(wc(h),a))},this.onDropIndexClick=i=>o=>{o&&o.preventDefault();const{onChange:s,errorSchema:u}=this.props,{keyedFormData:l}=this.state;let a;if(u){a={};for(const h in u){const f=parseInt(h);fi&&mn(a,[f-1],u[h])}}const c=l.filter((h,f)=>f!==i);this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>s(wc(c),a))},this.onReorderClick=(i,o)=>s=>{s&&(s.preventDefault(),s.currentTarget.blur());const{onChange:u,errorSchema:l}=this.props;let a;if(l){a={};for(const d in l){const m=parseInt(d);m==i?mn(a,[o],l[i]):m==o?mn(a,[i],l[o]):mn(a,[d],l[m])}}const{keyedFormData:c}=this.state;function h(){const d=c.slice();return d.splice(i,1),d.splice(o,0,c[i]),d}const f=h();this.setState({keyedFormData:f},()=>u(wc(f),a))},this.onChangeForIndex=i=>(o,s,u)=>{const{formData:l,onChange:a,errorSchema:c}=this.props,f=(Array.isArray(l)?l:[]).map((d,m)=>i===m?typeof o>"u"?null:o:d);a(f,c&&c&&{...c,[i]:s},u)},this.onSelectChange=i=>{const{onChange:o,idSchema:s}=this.props;o(i,void 0,s&&s.$id)};const{formData:r=[]}=t,n=v6(r);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(t,r){if(r.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(t.formData)?t.formData:[],i=r.keyedFormData||[];return{keyedFormData:n.length===i.length?i.map((s,u)=>({key:s.key,item:n[u]})):v6(n)}}get itemTitle(){const{schema:t,registry:r}=this.props,{translateString:n}=r;return Ze(t,[Us,"title"],Ze(t,[Us,"description"],n(Rt.ArrayItemTitle)))}isItemRequired(t){return Array.isArray(t.type)?!t.type.includes("null"):t.type!=="null"}canAddItem(t){const{schema:r,uiSchema:n,registry:i}=this.props;let{addable:o}=Gt(n,i.globalUiOptions);return o!==!1&&(r.maxItems!==void 0?o=t.length=r&&mn(s,[c+1],i[a])}}const u={key:Hy(),item:this._getNewFormDataRow()},l=[...o];r!==void 0?l.splice(r,0,u):l.push(u),this.setState({keyedFormData:l,updatedKeyedFormData:!0},()=>n(wc(l),s))}render(){const{schema:t,uiSchema:r,idSchema:n,registry:i}=this.props,{schemaUtils:o,translateString:s}=i;if(!(Us in t)){const u=Gt(r),l=jt("UnsupportedFieldTemplate",i,u);return X.jsx(l,{schema:t,idSchema:n,reason:s(Rt.MissingItems),registry:i})}return o.isMultiSelect(t)?this.renderMultiSelect():X$(r)?this.renderCustomWidget():Vy(t)?this.renderFixedArray():o.isFilesArray(t,r)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:t,uiSchema:r={},errorSchema:n,idSchema:i,name:o,disabled:s=!1,readonly:u=!1,autofocus:l=!1,required:a=!1,registry:c,onBlur:h,onFocus:f,idPrefix:d,idSeparator:m="_",rawErrors:g}=this.props,{keyedFormData:p}=this.state,v=t.title===void 0?o:t.title,{schemaUtils:y,formContext:b}=c,_=Gt(r),E=zi(t.items)?t.items:{},$=y.retrieveSchema(E),M=wc(this.state.keyedFormData),P=this.canAddItem(M),D={canAdd:P,items:p.map((U,V)=>{const{key:A,item:O}=U,C=O,w=y.retrieveSchema(E,C),S=n?n[V]:void 0,x=i.$id+m+V,k=y.toIdSchema(w,x,C,d,m);return this.renderArrayFieldItem({key:A,index:V,name:o&&`${o}-${V}`,canAdd:P,canMoveUp:V>0,canMoveDown:VE.retrieveSchema(A,n[O])),D=zi(t.additionalItems)?E.retrieveSchema(t.additionalItems,n):null;(!y||y.length{const{key:C,item:w}=A,S=w,x=O>=P.length,k=(x&&zi(t.additionalItems)?E.retrieveSchema(t.additionalItems,S):P[O])||{},T=u.$id+s+O,I=E.toIdSchema(k,T,S,o,s),L=x?r.additionalItems||{}:Array.isArray(r.items)?r.items[O]:r.items||{},z=i?i[O]:void 0;return this.renderArrayFieldItem({key:C,index:O,name:l&&`${l}-${O}`,canAdd:F,canRemove:x,canMoveUp:O>=P.length+1,canMoveDown:x&&Ox[k]),{children:X.jsx(O,{name:i,index:n,schema:a,uiSchema:h,formData:c,formContext:F,errorSchema:d,idPrefix:E,idSeparator:$,idSchema:f,required:this.isItemRequired(a),onChange:this.onChangeForIndex(n),onBlur:g,onFocus:p,registry:D,disabled:b,readonly:M,hideError:_,autofocus:m,rawErrors:v}),className:"array-item",disabled:b,canAdd:o,hasCopy:x.copy,hasToolbar:x.toolbar,hasMoveUp:x.moveUp,hasMoveDown:x.moveDown,hasRemove:x.remove,index:n,totalItems:y,key:r,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:M,registry:D,schema:a,uiSchema:h}}}function I1e(e){var t,r;const{schema:n,name:i,uiSchema:o,idSchema:s,formData:u,registry:l,required:a,disabled:c,readonly:h,hideError:f,autofocus:d,onChange:m,onFocus:g,onBlur:p,rawErrors:v}=e,{title:y}=n,{widgets:b,formContext:_,translateString:E,globalUiOptions:$}=l,{widget:M="checkbox",title:P,label:D=!0,...F}=Gt(o,$),U=Uo(n,M,b),V=E(Rt.YesLabel),A=E(Rt.NoLabel);let O;const C=(t=P??y)!==null&&t!==void 0?t:i;if(Array.isArray(n.oneOf))O=hm({oneOf:n.oneOf.map(w=>{if(zi(w))return{...w,title:w.title||(w.const===!0?V:A)}}).filter(w=>w)});else{const w=n,S=(r=n.enum)!==null&&r!==void 0?r:[!0,!1];!w.enumNames&&S.length===2&&S.every(x=>typeof x=="boolean")?O=[{value:S[0],label:S[0]?V:A},{value:S[1],label:S[1]?V:A}]:O=hm({enum:S,enumNames:w.enumNames})}return X.jsx(U,{options:{...F,enumOptions:O},schema:n,uiSchema:o,id:s.$id,name:i,onChange:m,onFocus:g,onBlur:p,label:C,hideLabel:!D,value:u,required:a,disabled:c,readonly:h,hideError:f,registry:l,formContext:_,autofocus:d,rawErrors:v})}class y6 extends G.Component{constructor(t){super(t),this.onOptionChange=s=>{const{selectedOption:u,retrievedOptions:l}=this.state,{formData:a,onChange:c,registry:h}=this.props,{schemaUtils:f}=h,d=s!==void 0?parseInt(s,10):-1;if(d===u)return;const m=d>=0?l[d]:void 0,g=u>=0?l[u]:void 0;let p=f.sanitizeDataForNewSchema(m,g,a);p&&m&&(p=f.getDefaultFormState(m,p,"excludeObjectChildren")),c(p,void 0,this.getFieldId()),this.setState({selectedOption:d})};const{formData:r,options:n,registry:{schemaUtils:i}}=this.props,o=n.map(s=>i.retrieveSchema(s,r));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,r,o)}}componentDidUpdate(t,r){const{formData:n,options:i,idSchema:o}=this.props,{selectedOption:s}=this.state;let u=this.state;if(!mi(t.options,i)){const{registry:{schemaUtils:l}}=this.props,a=i.map(c=>l.retrieveSchema(c,n));u={selectedOption:s,retrievedOptions:a}}if(!mi(n,t.formData)&&o.$id===t.idSchema.$id){const{retrievedOptions:l}=u,a=this.getMatchingOption(s,n,l);r&&a!==s&&(u={selectedOption:a,retrievedOptions:l})}u!==this.state&&this.setState(u)}getMatchingOption(t,r,n){const{schema:i,registry:{schemaUtils:o}}=this.props,s=Cu(i);return o.getClosestMatchingOption(r,n,t,s)}getFieldId(){const{idSchema:t,schema:r}=this.props;return`${t.$id}${r.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:t,disabled:r=!1,errorSchema:n={},formContext:i,onBlur:o,onFocus:s,registry:u,schema:l,uiSchema:a}=this.props,{widgets:c,fields:h,translateString:f,globalUiOptions:d,schemaUtils:m}=u,{SchemaField:g}=h,{selectedOption:p,retrievedOptions:v}=this.state,{widget:y="select",placeholder:b,autofocus:_,autocomplete:E,title:$=l.title,...M}=Gt(a,d),P=Uo({type:"number"},y,c),D=Ze(n,Bi,[]),F=lm(n,[Bi]),U=m.getDisplayLabel(l,a,d),V=p>=0&&v[p]||null;let A;if(V){const{required:S}=l;A=S?es({required:S},V):V}const O=$?Rt.TitleOptionPrefix:Rt.OptionPrefix,C=$?[$]:[],w=v.map((S,x)=>({label:S.title||f(O,C.concat(String(x+1))),value:x}));return X.jsxs("div",{className:"panel panel-default panel-body",children:[X.jsx("div",{className:"form-group",children:X.jsx(P,{id:this.getFieldId(),name:`${t}${l.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:s,disabled:r||Va(w),multiple:!1,rawErrors:D,errorSchema:F,value:p>=0?p:void 0,options:{enumOptions:w,...M},registry:u,formContext:i,placeholder:b,autocomplete:E,autofocus:_,label:$??t,hideLabel:!U})}),V!==null&&X.jsx(g,{...this.props,schema:A})]})}}const R1e=/\.([0-9]*0)*$/,j1e=/[0.]0*$/;function N1e(e){const{registry:t,onChange:r,formData:n,value:i}=e,[o,s]=G.useState(i),{StringField:u}=t.fields;let l=n;const a=G.useCallback(c=>{s(c),`${c}`.charAt(0)==="."&&(c=`0${c}`);const h=typeof c=="string"&&c.match(R1e)?QS(c.replace(j1e,"")):QS(c);r(h)},[r]);if(typeof o=="string"&&typeof l=="number"){const c=new RegExp(`${l}`.replace(".","\\.")+"\\.?0*$");o.match(c)&&(l=o)}return X.jsx(u,{...e,formData:l,onChange:a})}function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),w6={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},F1e=["style","script"],L1e=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,B1e=/mailto:/i,z1e=/\n{2,}$/,iA=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,V1e=/^ *> ?/gm,U1e=/^ {2,}\n/,H1e=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,oA=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,sA=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,W1e=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,q1e=/^(?:\n *)*\n/,K1e=/\r\n?/g,G1e=/^\[\^([^\]]+)](:.*)\n/,X1e=/^\[\^([^\]]+)]/,Y1e=/\f/g,Z1e=/^\s*?\[(x|\s)\]/,aA=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,lA=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,uA=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Wy=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,Q1e=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,cA=/^)/,J1e=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,qy=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,eve=/^\{.*\}$/,tve=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,rve=/^<([^ >]+@[^ >]+)>/,nve=/^<([^ >]+:\/[^ >]+)>/,ive=/-([a-z])?/gi,dA=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,ove=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,sve=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,ave=/^\[([^\]]*)\] ?\[([^\]]*)\]/,lve=/(\[|\])/g,uve=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,cve=/\t/g,dve=/^ *\| */,fve=/(^ *\||\| *$)/g,hve=/ *$/,pve=/^ *:-+: *$/,mve=/^ *:-+ *$/,gve=/^ *-+: *$/,vve=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,yve=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,bve=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,wve=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,_ve=/^\\([^0-9A-Za-z\s])/,xve=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Sve=/^\n+/,kve=/^([ \t]*)/,Cve=/\\([^\\])/g,_6=/ *\n+$/,Eve=/(?:^|\n)( *)$/,s_="(?:\\d+\\.)",a_="(?:[*+-])";function fA(e){return"( *)("+(e===1?s_:a_)+") +"}const hA=fA(1),pA=fA(2);function mA(e){return new RegExp("^"+(e===1?hA:pA))}const Tve=mA(1),$ve=mA(2);function gA(e){return new RegExp("^"+(e===1?hA:pA)+"[^\\n]*(?:\\n(?!\\1"+(e===1?s_:a_)+" )[^\\n]*)*(\\n|$)","gm")}const vA=gA(1),yA=gA(2);function bA(e){const t=e===1?s_:a_;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const wA=bA(1),_A=bA(2);function x6(e,t){const r=t===1,n=r?wA:_A,i=r?vA:yA,o=r?Tve:$ve;return{t(s,u,l){const a=Eve.exec(l);return a&&(u.o||!u._&&!u.u)?n.exec(s=a[1]+s):null},i:Bt.HIGH,l(s,u,l){const a=r?+s[2]:void 0,c=s[0].replace(z1e,` + */var e_=Symbol.for("react.element"),t_=Symbol.for("react.portal"),X0=Symbol.for("react.fragment"),Y0=Symbol.for("react.strict_mode"),Z0=Symbol.for("react.profiler"),Q0=Symbol.for("react.provider"),J0=Symbol.for("react.context"),Gge=Symbol.for("react.server_context"),eg=Symbol.for("react.forward_ref"),tg=Symbol.for("react.suspense"),rg=Symbol.for("react.suspense_list"),ng=Symbol.for("react.memo"),ig=Symbol.for("react.lazy"),Xge=Symbol.for("react.offscreen"),rA;rA=Symbol.for("react.module.reference");function Ei(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case e_:switch(e=e.type,e){case X0:case Z0:case Y0:case tg:case rg:return e;default:switch(e=e&&e.$$typeof,e){case Gge:case J0:case eg:case ig:case ng:case Q0:return e;default:return t}}case t_:return t}}}lr.ContextConsumer=J0;lr.ContextProvider=Q0;lr.Element=e_;lr.ForwardRef=eg;lr.Fragment=X0;lr.Lazy=ig;lr.Memo=ng;lr.Portal=t_;lr.Profiler=Z0;lr.StrictMode=Y0;lr.Suspense=tg;lr.SuspenseList=rg;lr.isAsyncMode=function(){return!1};lr.isConcurrentMode=function(){return!1};lr.isContextConsumer=function(e){return Ei(e)===J0};lr.isContextProvider=function(e){return Ei(e)===Q0};lr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===e_};lr.isForwardRef=function(e){return Ei(e)===eg};lr.isFragment=function(e){return Ei(e)===X0};lr.isLazy=function(e){return Ei(e)===ig};lr.isMemo=function(e){return Ei(e)===ng};lr.isPortal=function(e){return Ei(e)===t_};lr.isProfiler=function(e){return Ei(e)===Z0};lr.isStrictMode=function(e){return Ei(e)===Y0};lr.isSuspense=function(e){return Ei(e)===tg};lr.isSuspenseList=function(e){return Ei(e)===rg};lr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===X0||e===Z0||e===Y0||e===tg||e===rg||e===Xge||typeof e=="object"&&e!==null&&(e.$$typeof===ig||e.$$typeof===ng||e.$$typeof===Q0||e.$$typeof===J0||e.$$typeof===eg||e.$$typeof===rA||e.getModuleId!==void 0)};lr.typeOf=Ei;tA.exports=lr;var Yge=tA.exports;const g6=ir(Yge),N1={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Zge(e){let t=Ze(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:n,...i})=>X.jsx(e,{options:{...r,...n},...i}),mn(e,"MergedWidget",t)}return t}function Uo(e,t,r={}){const n=Ys(e);if(typeof t=="function"||t&&g6.isForwardRef(G.createElement(t))||g6.isMemo(t))return Zge(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t}`);if(t in r){const i=r[t];return Uo(e,i,r)}if(typeof n=="string"){if(!(n in N1))throw new Error(`No widget for type '${n}'`);if(t in N1[n]){const i=r[N1[n][t]];return Uo(e,i,r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function Qge(e){let t=0;for(let r=0;r(t.add(r),n)),Qge(JSON.stringify(e,Array.from(t).sort()))}function e1e(e,t,r={}){try{return Uo(e,t,r),!0}catch(n){const i=n;if(i.message&&(i.message.startsWith("No widget")||i.message.startsWith("Unsupported widget")))return!1;throw n}}function Ef(e,t){return`${Rw(e)?e:e[Ps]}__${t}`}function rl(e){return Ef(e,"description")}function r_(e){return Ef(e,"error")}function qd(e){return Ef(e,"examples")}function n_(e){return Ef(e,"help")}function i_(e){return Ef(e,"title")}function yn(e,t=!1){const r=t?` ${qd(e)}`:"";return`${r_(e)} ${rl(e)} ${n_(e)}${r}`}function og(e,t){return`${e}-${t}`}function os(e,t,r){return t?r:e}function t1e(e){return e?new Date(e).toJSON():void 0}function r1e(e){if(UZ in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(aT in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function hm(e){const t=e;if(t.enumNames,e.enum)return e.enum.map((n,i)=>({label:t.enumNames&&t.enumNames[i]||String(n),value:n}));const r=e.oneOf||e.anyOf;return r&&r.map(n=>{const i=n,o=r1e(i),s=i.title||String(o);return{schema:i,label:s,value:o}})}function n1e(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((h,f)=>(h[f]=!0,h),{}),n=c=>c.length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`,i=r(e),o=t.filter(c=>c==="*"||i[c]),s=r(o),u=e.filter(c=>!s[c]),l=o.indexOf("*");if(l===-1){if(u.length)throw new Error(`uiSchema order list does not contain ${n(u)}`);return o}if(l!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const a=[...o];return a.splice(l,1,...u),a}function $o(e,t){let r=String(e);for(;r.lengthsd(r);return e.allOf.some(t)}return!1}function i1e(e,t,r){const{props:n,state:i}=e;return!mi(n,t)||!mi(i,r)}function pm(e,t=!0){const{year:r,month:n,day:i,hour:o=0,minute:s=0,second:u=0}=e,l=Date.UTC(r,n-1,i,o,s,u),a=new Date(l).toJSON();return t?a:a.slice(0,10)}function Kd(e,t=[]){if(!e)return[];let r=[];return Bi in e&&(r=r.concat(e[Bi].map(n=>{const i=`.${t.join(".")}`;return{property:i,message:n,stack:`${i} ${n}`}}))),Object.keys(e).reduce((n,i)=>{if(i!==Bi){const o=e[i];gw(o)&&(n=n.concat(Kd(o,[...t,i])))}return n},r)}var o1e=is,s1e=V0,a1e=en,l1e=Ku,u1e=$T,c1e=tl,d1e=PT;function f1e(e){return a1e(e)?o1e(e,c1e):l1e(e)?[e]:s1e(u1e(d1e(e)))}var h1e=f1e;const nA=ir(h1e);function p1e(e){const t=new Kge;return e.length&&e.forEach(r=>{const{property:n,message:i}=r,o=n==="."?[]:nA(n);o.length>0&&o[0]===""&&o.splice(0,1),i&&t.addErrors(i,o)}),t.ErrorSchema}function iA(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;{const n=e[r];return gw(n)?{...t,[r]:iA(n)}:{...t,[r]:n}}},{})}function m1e(e){if(!e)return"";const t=new Date(e),r=$o(t.getFullYear(),4),n=$o(t.getMonth()+1,2),i=$o(t.getDate(),2),o=$o(t.getHours(),2),s=$o(t.getMinutes(),2),u=$o(t.getSeconds(),2),l=$o(t.getMilliseconds(),3);return`${r}-${n}-${i}T${o}:${s}:${u}.${l}`}function cp(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let i=Kd(t),o=t;return Va(n)||(o=Qu(n,t,!0),i=[...r].concat(i)),{errorSchema:o,errors:i}}function g1e(e){for(const t in e){const r=e,n=r[t];t===Hr&&typeof n=="string"&&n.startsWith("#")?r[t]=lT+n:r[t]=o_(n)}return e}function v1e(e){for(let t=0;tcrypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");function Hy(){return M1e()}function v6(e){return Array.isArray(e)?e.map(t=>({key:Hy(),item:t})):[]}function wc(e){return Array.isArray(e)?e.map(t=>t.item):[]}class I1e extends G.Component{constructor(t){super(t),this._getNewFormDataRow=()=>{const{schema:i,registry:o}=this.props,{schemaUtils:s}=o;let u=i.items;return Vy(i)&&zZ(i)&&(u=i.additionalItems),s.getDefaultFormState(u)},this.onAddClick=i=>{this._handleAddClick(i)},this.onAddIndexClick=i=>o=>{this._handleAddClick(o,i)},this.onCopyIndexClick=i=>o=>{o&&o.preventDefault();const{onChange:s,errorSchema:u}=this.props,{keyedFormData:l}=this.state;let a;if(u){a={};for(const f in u){const d=parseInt(f);d<=i?mn(a,[d],u[f]):d>i&&mn(a,[d+1],u[f])}}const c={key:Hy(),item:v$(l[i].item)},h=[...l];i!==void 0?h.splice(i+1,0,c):h.push(c),this.setState({keyedFormData:h,updatedKeyedFormData:!0},()=>s(wc(h),a))},this.onDropIndexClick=i=>o=>{o&&o.preventDefault();const{onChange:s,errorSchema:u}=this.props,{keyedFormData:l}=this.state;let a;if(u){a={};for(const h in u){const f=parseInt(h);fi&&mn(a,[f-1],u[h])}}const c=l.filter((h,f)=>f!==i);this.setState({keyedFormData:c,updatedKeyedFormData:!0},()=>s(wc(c),a))},this.onReorderClick=(i,o)=>s=>{s&&(s.preventDefault(),s.currentTarget.blur());const{onChange:u,errorSchema:l}=this.props;let a;if(l){a={};for(const d in l){const m=parseInt(d);m==i?mn(a,[o],l[i]):m==o?mn(a,[i],l[o]):mn(a,[d],l[m])}}const{keyedFormData:c}=this.state;function h(){const d=c.slice();return d.splice(i,1),d.splice(o,0,c[i]),d}const f=h();this.setState({keyedFormData:f},()=>u(wc(f),a))},this.onChangeForIndex=i=>(o,s,u)=>{const{formData:l,onChange:a,errorSchema:c}=this.props,f=(Array.isArray(l)?l:[]).map((d,m)=>i===m?typeof o>"u"?null:o:d);a(f,c&&c&&{...c,[i]:s},u)},this.onSelectChange=i=>{const{onChange:o,idSchema:s}=this.props;o(i,void 0,s&&s.$id)};const{formData:r=[]}=t,n=v6(r);this.state={keyedFormData:n,updatedKeyedFormData:!1}}static getDerivedStateFromProps(t,r){if(r.updatedKeyedFormData)return{updatedKeyedFormData:!1};const n=Array.isArray(t.formData)?t.formData:[],i=r.keyedFormData||[];return{keyedFormData:n.length===i.length?i.map((s,u)=>({key:s.key,item:n[u]})):v6(n)}}get itemTitle(){const{schema:t,registry:r}=this.props,{translateString:n}=r;return Ze(t,[Us,"title"],Ze(t,[Us,"description"],n(Rt.ArrayItemTitle)))}isItemRequired(t){return Array.isArray(t.type)?!t.type.includes("null"):t.type!=="null"}canAddItem(t){const{schema:r,uiSchema:n,registry:i}=this.props;let{addable:o}=Gt(n,i.globalUiOptions);return o!==!1&&(r.maxItems!==void 0?o=t.length=r&&mn(s,[c+1],i[a])}}const u={key:Hy(),item:this._getNewFormDataRow()},l=[...o];r!==void 0?l.splice(r,0,u):l.push(u),this.setState({keyedFormData:l,updatedKeyedFormData:!0},()=>n(wc(l),s))}render(){const{schema:t,uiSchema:r,idSchema:n,registry:i}=this.props,{schemaUtils:o,translateString:s}=i;if(!(Us in t)){const u=Gt(r),l=jt("UnsupportedFieldTemplate",i,u);return X.jsx(l,{schema:t,idSchema:n,reason:s(Rt.MissingItems),registry:i})}return o.isMultiSelect(t)?this.renderMultiSelect():Y$(r)?this.renderCustomWidget():Vy(t)?this.renderFixedArray():o.isFilesArray(t,r)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:t,uiSchema:r={},errorSchema:n,idSchema:i,name:o,disabled:s=!1,readonly:u=!1,autofocus:l=!1,required:a=!1,registry:c,onBlur:h,onFocus:f,idPrefix:d,idSeparator:m="_",rawErrors:g}=this.props,{keyedFormData:p}=this.state,v=t.title===void 0?o:t.title,{schemaUtils:y,formContext:b}=c,_=Gt(r),E=zi(t.items)?t.items:{},$=y.retrieveSchema(E),M=wc(this.state.keyedFormData),P=this.canAddItem(M),D={canAdd:P,items:p.map((U,V)=>{const{key:A,item:O}=U,C=O,w=y.retrieveSchema(E,C),S=n?n[V]:void 0,x=i.$id+m+V,k=y.toIdSchema(w,x,C,d,m);return this.renderArrayFieldItem({key:A,index:V,name:o&&`${o}-${V}`,canAdd:P,canMoveUp:V>0,canMoveDown:VE.retrieveSchema(A,n[O])),D=zi(t.additionalItems)?E.retrieveSchema(t.additionalItems,n):null;(!y||y.length{const{key:C,item:w}=A,S=w,x=O>=P.length,k=(x&&zi(t.additionalItems)?E.retrieveSchema(t.additionalItems,S):P[O])||{},T=u.$id+s+O,I=E.toIdSchema(k,T,S,o,s),L=x?r.additionalItems||{}:Array.isArray(r.items)?r.items[O]:r.items||{},z=i?i[O]:void 0;return this.renderArrayFieldItem({key:C,index:O,name:l&&`${l}-${O}`,canAdd:F,canRemove:x,canMoveUp:O>=P.length+1,canMoveDown:x&&Ox[k]),{children:X.jsx(O,{name:i,index:n,schema:a,uiSchema:h,formData:c,formContext:F,errorSchema:d,idPrefix:E,idSeparator:$,idSchema:f,required:this.isItemRequired(a),onChange:this.onChangeForIndex(n),onBlur:g,onFocus:p,registry:D,disabled:b,readonly:M,hideError:_,autofocus:m,rawErrors:v}),className:"array-item",disabled:b,canAdd:o,hasCopy:x.copy,hasToolbar:x.toolbar,hasMoveUp:x.moveUp,hasMoveDown:x.moveDown,hasRemove:x.remove,index:n,totalItems:y,key:r,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:M,registry:D,schema:a,uiSchema:h}}}function R1e(e){var t,r;const{schema:n,name:i,uiSchema:o,idSchema:s,formData:u,registry:l,required:a,disabled:c,readonly:h,hideError:f,autofocus:d,onChange:m,onFocus:g,onBlur:p,rawErrors:v}=e,{title:y}=n,{widgets:b,formContext:_,translateString:E,globalUiOptions:$}=l,{widget:M="checkbox",title:P,label:D=!0,...F}=Gt(o,$),U=Uo(n,M,b),V=E(Rt.YesLabel),A=E(Rt.NoLabel);let O;const C=(t=P??y)!==null&&t!==void 0?t:i;if(Array.isArray(n.oneOf))O=hm({oneOf:n.oneOf.map(w=>{if(zi(w))return{...w,title:w.title||(w.const===!0?V:A)}}).filter(w=>w)});else{const w=n,S=(r=n.enum)!==null&&r!==void 0?r:[!0,!1];!w.enumNames&&S.length===2&&S.every(x=>typeof x=="boolean")?O=[{value:S[0],label:S[0]?V:A},{value:S[1],label:S[1]?V:A}]:O=hm({enum:S,enumNames:w.enumNames})}return X.jsx(U,{options:{...F,enumOptions:O},schema:n,uiSchema:o,id:s.$id,name:i,onChange:m,onFocus:g,onBlur:p,label:C,hideLabel:!D,value:u,required:a,disabled:c,readonly:h,hideError:f,registry:l,formContext:_,autofocus:d,rawErrors:v})}class y6 extends G.Component{constructor(t){super(t),this.onOptionChange=s=>{const{selectedOption:u,retrievedOptions:l}=this.state,{formData:a,onChange:c,registry:h}=this.props,{schemaUtils:f}=h,d=s!==void 0?parseInt(s,10):-1;if(d===u)return;const m=d>=0?l[d]:void 0,g=u>=0?l[u]:void 0;let p=f.sanitizeDataForNewSchema(m,g,a);p&&m&&(p=f.getDefaultFormState(m,p,"excludeObjectChildren")),c(p,void 0,this.getFieldId()),this.setState({selectedOption:d})};const{formData:r,options:n,registry:{schemaUtils:i}}=this.props,o=n.map(s=>i.retrieveSchema(s,r));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,r,o)}}componentDidUpdate(t,r){const{formData:n,options:i,idSchema:o}=this.props,{selectedOption:s}=this.state;let u=this.state;if(!mi(t.options,i)){const{registry:{schemaUtils:l}}=this.props,a=i.map(c=>l.retrieveSchema(c,n));u={selectedOption:s,retrievedOptions:a}}if(!mi(n,t.formData)&&o.$id===t.idSchema.$id){const{retrievedOptions:l}=u,a=this.getMatchingOption(s,n,l);r&&a!==s&&(u={selectedOption:a,retrievedOptions:l})}u!==this.state&&this.setState(u)}getMatchingOption(t,r,n){const{schema:i,registry:{schemaUtils:o}}=this.props,s=Cu(i);return o.getClosestMatchingOption(r,n,t,s)}getFieldId(){const{idSchema:t,schema:r}=this.props;return`${t.$id}${r.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:t,disabled:r=!1,errorSchema:n={},formContext:i,onBlur:o,onFocus:s,registry:u,schema:l,uiSchema:a}=this.props,{widgets:c,fields:h,translateString:f,globalUiOptions:d,schemaUtils:m}=u,{SchemaField:g}=h,{selectedOption:p,retrievedOptions:v}=this.state,{widget:y="select",placeholder:b,autofocus:_,autocomplete:E,title:$=l.title,...M}=Gt(a,d),P=Uo({type:"number"},y,c),D=Ze(n,Bi,[]),F=lm(n,[Bi]),U=m.getDisplayLabel(l,a,d),V=p>=0&&v[p]||null;let A;if(V){const{required:S}=l;A=S?es({required:S},V):V}const O=$?Rt.TitleOptionPrefix:Rt.OptionPrefix,C=$?[$]:[],w=v.map((S,x)=>({label:S.title||f(O,C.concat(String(x+1))),value:x}));return X.jsxs("div",{className:"panel panel-default panel-body",children:[X.jsx("div",{className:"form-group",children:X.jsx(P,{id:this.getFieldId(),name:`${t}${l.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:s,disabled:r||Va(w),multiple:!1,rawErrors:D,errorSchema:F,value:p>=0?p:void 0,options:{enumOptions:w,...M},registry:u,formContext:i,placeholder:b,autocomplete:E,autofocus:_,label:$??t,hideLabel:!U})}),V!==null&&X.jsx(g,{...this.props,schema:A})]})}}const j1e=/\.([0-9]*0)*$/,N1e=/[0.]0*$/;function D1e(e){const{registry:t,onChange:r,formData:n,value:i}=e,[o,s]=G.useState(i),{StringField:u}=t.fields;let l=n;const a=G.useCallback(c=>{s(c),`${c}`.charAt(0)==="."&&(c=`0${c}`);const h=typeof c=="string"&&c.match(j1e)?QS(c.replace(N1e,"")):QS(c);r(h)},[r]);if(typeof o=="string"&&typeof l=="number"){const c=new RegExp(`${l}`.replace(".","\\.")+"\\.?0*$");o.match(c)&&(l=o)}return X.jsx(u,{...e,formData:l,onChange:a})}function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),w6={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},L1e=["style","script"],B1e=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,z1e=/mailto:/i,V1e=/\n{2,}$/,oA=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,U1e=/^ *> ?/gm,H1e=/^ {2,}\n/,W1e=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,sA=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,aA=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,q1e=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,K1e=/^(?:\n *)*\n/,G1e=/\r\n?/g,X1e=/^\[\^([^\]]+)](:.*)\n/,Y1e=/^\[\^([^\]]+)]/,Z1e=/\f/g,Q1e=/^\s*?\[(x|\s)\]/,lA=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,uA=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,cA=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Wy=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,J1e=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,dA=/^)/,eve=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,qy=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,tve=/^\{.*\}$/,rve=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,nve=/^<([^ >]+@[^ >]+)>/,ive=/^<([^ >]+:\/[^ >]+)>/,ove=/-([a-z])?/gi,fA=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,sve=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,ave=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,lve=/^\[([^\]]*)\] ?\[([^\]]*)\]/,uve=/(\[|\])/g,cve=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,dve=/\t/g,fve=/^ *\| */,hve=/(^ *\||\| *$)/g,pve=/ *$/,mve=/^ *:-+: *$/,gve=/^ *:-+ *$/,vve=/^ *-+: *$/,yve=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,bve=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,wve=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,_ve=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,xve=/^\\([^0-9A-Za-z\s])/,Sve=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,kve=/^\n+/,Cve=/^([ \t]*)/,Eve=/\\([^\\])/g,_6=/ *\n+$/,Tve=/(?:^|\n)( *)$/,s_="(?:\\d+\\.)",a_="(?:[*+-])";function hA(e){return"( *)("+(e===1?s_:a_)+") +"}const pA=hA(1),mA=hA(2);function gA(e){return new RegExp("^"+(e===1?pA:mA))}const $ve=gA(1),Ave=gA(2);function vA(e){return new RegExp("^"+(e===1?pA:mA)+"[^\\n]*(?:\\n(?!\\1"+(e===1?s_:a_)+" )[^\\n]*)*(\\n|$)","gm")}const yA=vA(1),bA=vA(2);function wA(e){const t=e===1?s_:a_;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const _A=wA(1),xA=wA(2);function x6(e,t){const r=t===1,n=r?_A:xA,i=r?yA:bA,o=r?$ve:Ave;return{t(s,u,l){const a=Tve.exec(l);return a&&(u.o||!u._&&!u.u)?n.exec(s=a[1]+s):null},i:Bt.HIGH,l(s,u,l){const a=r?+s[2]:void 0,c=s[0].replace(V1e,` `).match(i);let h=!1;return{p:c.map(function(f,d){const m=o.exec(f)[0].length,g=new RegExp("^ {1,"+m+"}","gm"),p=f.replace(g,"").replace(o,""),v=d===c.length-1,y=p.indexOf(` `)!==-1||v&&h;h=y;const b=l._,_=l.o;let E;l.o=!0,y?(l._=!1,E=p.replace(_6,` -`)):(l._=!0,E=p.replace(_6,""));const $=u(E,l);return l._=b,l.o=_,$}),m:r,g:a}},h:(s,u,l)=>e(s.m?"ol":"ul",{key:l.k,start:s.g},s.p.map(function(a,c){return e("li",{key:c},u(a,l))}))}}const Ave=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Pve=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,xA=[iA,oA,sA,aA,uA,lA,cA,dA,vA,wA,yA,_A],Ove=[...xA,/^[^\n]+(?: \n|\n{2,})/,Wy,qy];function Mve(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Ive(e){return gve.test(e)?"right":pve.test(e)?"center":mve.test(e)?"left":null}function S6(e,t,r){const n=r.$;r.$=!0;const i=t(e.trim(),r);r.$=n;let o=[[]];return i.forEach(function(s,u){s.type==="tableSeparator"?u!==0&&u!==i.length-1&&o.push([]):(s.type!=="text"||i[u+1]!=null&&i[u+1].type!=="tableSeparator"||(s.v=s.v.replace(hve,"")),o[o.length-1].push(s))}),o}function Rve(e,t,r){r._=!0;const n=S6(e[1],t,r),i=e[2].replace(fve,"").split("|").map(Ive),o=function(s,u,l){return s.trim().split(` -`).map(function(a){return S6(a,u,l)})}(e[3],t,r);return r._=!1,{S:i,A:o,L:n,type:"table"}}function k6(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function ms(e){return function(t,r){return r._?e.exec(t):null}}function gs(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Eo(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function _c(e){return function(t){return e.exec(t)}}function jve(e,t,r){if(t._||t.u||r&&!r.endsWith(` +`)):(l._=!0,E=p.replace(_6,""));const $=u(E,l);return l._=b,l.o=_,$}),m:r,g:a}},h:(s,u,l)=>e(s.m?"ol":"ul",{key:l.k,start:s.g},s.p.map(function(a,c){return e("li",{key:c},u(a,l))}))}}const Pve=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ove=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,SA=[oA,sA,aA,lA,cA,uA,dA,fA,yA,_A,bA,xA],Mve=[...SA,/^[^\n]+(?: \n|\n{2,})/,Wy,qy];function Ive(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Rve(e){return vve.test(e)?"right":mve.test(e)?"center":gve.test(e)?"left":null}function S6(e,t,r){const n=r.$;r.$=!0;const i=t(e.trim(),r);r.$=n;let o=[[]];return i.forEach(function(s,u){s.type==="tableSeparator"?u!==0&&u!==i.length-1&&o.push([]):(s.type!=="text"||i[u+1]!=null&&i[u+1].type!=="tableSeparator"||(s.v=s.v.replace(pve,"")),o[o.length-1].push(s))}),o}function jve(e,t,r){r._=!0;const n=S6(e[1],t,r),i=e[2].replace(hve,"").split("|").map(Rve),o=function(s,u,l){return s.trim().split(` +`).map(function(a){return S6(a,u,l)})}(e[3],t,r);return r._=!1,{S:i,A:o,L:n,type:"table"}}function k6(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function ms(e){return function(t,r){return r._?e.exec(t):null}}function gs(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Eo(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function _c(e){return function(t){return e.exec(t)}}function Nve(e,t,r){if(t._||t.u||r&&!r.endsWith(` `))return null;let n="";e.split(` -`).every(o=>!xA.some(s=>s.test(o))&&(n+=o+` -`,o.trim()));const i=n.trimEnd();return i==""?null:[n,i]}function pl(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function C6(e){return e.replace(Cve,"$1")}function dp(e,t,r){const n=r._||!1,i=r.u||!1;r._=!0,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function Nve(e,t,r){const n=r._||!1,i=r.u||!1;r._=!1,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function Dve(e,t,r){return r._=!1,e(t,r)}const D1=(e,t,r)=>({v:dp(t,e[1],r)});function F1(){return{}}function L1(){return null}function Fve(...e){return e.filter(Boolean).join(" ")}function B1(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],n!==void 0);)i.shift();return n||r}var Bt;function Lve(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||Mve,t.namedCodesToUnicode=t.namedCodesToUnicode?ya({},w6,t.namedCodesToUnicode):w6;const r=t.createElement||G.createElement;function n(d,m,...g){const p=B1(t.overrides,`${d}.props`,{});return r(function(v,y){const b=B1(y,v);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:B1(y,`${v}.component`,v):v}(d,t.overrides),ya({},m,p,{className:Fve(m==null?void 0:m.className,p.className)||void 0}),...g)}function i(d){let m=!1;t.forceInline?m=!0:t.forceBlock||(m=uve.test(d)===!1);const g=c(a(m?d:`${d.trimEnd().replace(Sve,"")} - -`,{_:m}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;const p=t.wrapper||(m?"span":"div");let v;if(g.length>1||t.forceWrapper)v=g;else{if(g.length===1)return v=g[0],typeof v=="string"?n("span",{key:"outer"},v):v;v=null}return G.createElement(p,{key:"outer"},v)}function o(d){const m=d.match(L1e);return m?m.reduce(function(g,p,v){const y=p.indexOf("=");if(y!==-1){const b=function(M){return M.indexOf("-")!==-1&&M.match(J1e)===null&&(M=M.replace(ive,function(P,D){return D.toUpperCase()})),M}(p.slice(0,y)).trim(),_=function(M){const P=M[0];return(P==='"'||P==="'")&&M.length>=2&&M[M.length-1]===P?M.slice(1,-1):M}(p.slice(y+1).trim()),E=b6[b]||b,$=g[E]=function(M,P){return M==="style"?P.split(/;\s?/).reduce(function(D,F){const U=F.slice(0,F.indexOf(":"));return D[U.replace(/(-[a-z])/g,V=>V[1].toUpperCase())]=F.slice(U.length+1).trim(),D},{}):M==="href"?pl(P):(P.match(eve)&&(P=P.slice(1,P.length-1)),P==="true"||P!=="false"&&P)}(b,_);typeof $=="string"&&(Wy.test($)||qy.test($))&&(g[E]=G.cloneElement(i($.trim()),{key:v}))}else p!=="style"&&(g[b6[p]||p]=!0);return g},{}):null}const s=[],u={},l={blockQuote:{t:Eo(iA),i:Bt.HIGH,l:(d,m,g)=>({v:m(d[0].replace(V1e,""),g)}),h:(d,m,g)=>n("blockquote",{key:g.k},m(d.v,g))},breakLine:{t:_c(U1e),i:Bt.HIGH,l:F1,h:(d,m,g)=>n("br",{key:g.k})},breakThematic:{t:Eo(H1e),i:Bt.HIGH,l:F1,h:(d,m,g)=>n("hr",{key:g.k})},codeBlock:{t:Eo(sA),i:Bt.MAX,l:d=>({v:d[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(d,m,g)=>n("pre",{key:g.k},n("code",ya({},d.O,{className:d.M?`lang-${d.M}`:""}),d.v))},codeFenced:{t:Eo(oA),i:Bt.MAX,l:d=>({O:o(d[3]||""),v:d[4],M:d[2]||void 0,type:"codeBlock"})},codeInline:{t:gs(W1e),i:Bt.LOW,l:d=>({v:d[2]}),h:(d,m,g)=>n("code",{key:g.k},d.v)},footnote:{t:Eo(G1e),i:Bt.MAX,l:d=>(s.push({I:d[2],j:d[1]}),{}),h:L1},footnoteReference:{t:ms(X1e),i:Bt.HIGH,l:d=>({v:d[1],B:`#${t.slugify(d[1])}`}),h:(d,m,g)=>n("a",{key:g.k,href:pl(d.B)},n("sup",{key:g.k},d.v))},gfmTask:{t:ms(Z1e),i:Bt.HIGH,l:d=>({R:d[1].toLowerCase()==="x"}),h:(d,m,g)=>n("input",{checked:d.R,key:g.k,readOnly:!0,type:"checkbox"})},heading:{t:Eo(t.enforceAtxHeadings?lA:aA),i:Bt.HIGH,l:(d,m,g)=>({v:dp(m,d[2],g),T:t.slugify(d[2]),C:d[1].length}),h:(d,m,g)=>n(`h${d.C}`,{id:d.T,key:g.k},m(d.v,g))},headingSetext:{t:Eo(uA),i:Bt.MAX,l:(d,m,g)=>({v:dp(m,d[1],g),C:d[2]==="="?1:2,type:"heading"})},htmlComment:{t:_c(cA),i:Bt.HIGH,l:()=>({}),h:L1},image:{t:gs(Pve),i:Bt.HIGH,l:d=>({D:d[1],B:C6(d[2]),F:d[3]}),h:(d,m,g)=>n("img",{key:g.k,alt:d.D||void 0,title:d.F||void 0,src:pl(d.B)})},link:{t:ms(Ave),i:Bt.LOW,l:(d,m,g)=>({v:Nve(m,d[1],g),B:C6(d[2]),F:d[3]}),h:(d,m,g)=>n("a",{key:g.k,href:pl(d.B),title:d.F},m(d.v,g))},linkAngleBraceStyleDetector:{t:ms(nve),i:Bt.MAX,l:d=>({v:[{v:d[1],type:"text"}],B:d[1],type:"link"})},linkBareUrlDetector:{t:(d,m)=>m.N?null:ms(tve)(d,m),i:Bt.MAX,l:d=>({v:[{v:d[1],type:"text"}],B:d[1],F:void 0,type:"link"})},linkMailtoDetector:{t:ms(rve),i:Bt.MAX,l(d){let m=d[1],g=d[1];return B1e.test(g)||(g="mailto:"+g),{v:[{v:m.replace("mailto:",""),type:"text"}],B:g,type:"link"}}},orderedList:x6(n,1),unorderedList:x6(n,2),newlineCoalescer:{t:Eo(q1e),i:Bt.LOW,l:F1,h:()=>` -`},paragraph:{t:jve,i:Bt.LOW,l:D1,h:(d,m,g)=>n("p",{key:g.k},m(d.v,g))},ref:{t:ms(ove),i:Bt.MAX,l:d=>(u[d[1]]={B:d[2],F:d[4]},{}),h:L1},refImage:{t:gs(sve),i:Bt.MAX,l:d=>({D:d[1]||void 0,P:d[2]}),h:(d,m,g)=>n("img",{key:g.k,alt:d.D,src:pl(u[d.P].B),title:u[d.P].F})},refLink:{t:ms(ave),i:Bt.MAX,l:(d,m,g)=>({v:m(d[1],g),Z:m(d[0].replace(lve,"\\$1"),g),P:d[2]}),h:(d,m,g)=>u[d.P]?n("a",{key:g.k,href:pl(u[d.P].B),title:u[d.P].F},m(d.v,g)):n("span",{key:g.k},m(d.Z,g))},table:{t:Eo(dA),i:Bt.HIGH,l:Rve,h:(d,m,g)=>n("table",{key:g.k},n("thead",null,n("tr",null,d.L.map(function(p,v){return n("th",{key:v,style:k6(d,v)},m(p,g))}))),n("tbody",null,d.A.map(function(p,v){return n("tr",{key:v},p.map(function(y,b){return n("td",{key:b,style:k6(d,b)},m(y,g))}))})))},tableSeparator:{t:function(d,m){return m.$?(m._=!0,dve.exec(d)):null},i:Bt.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:_c(xve),i:Bt.MIN,l:d=>({v:d[0].replace(Q1e,(m,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:m)}),h:d=>d.v},textBolded:{t:gs(vve),i:Bt.MED,l:(d,m,g)=>({v:m(d[2],g)}),h:(d,m,g)=>n("strong",{key:g.k},m(d.v,g))},textEmphasized:{t:gs(yve),i:Bt.LOW,l:(d,m,g)=>({v:m(d[2],g)}),h:(d,m,g)=>n("em",{key:g.k},m(d.v,g))},textEscaped:{t:gs(_ve),i:Bt.HIGH,l:d=>({v:d[1],type:"text"})},textMarked:{t:gs(bve),i:Bt.LOW,l:D1,h:(d,m,g)=>n("mark",{key:g.k},m(d.v,g))},textStrikethroughed:{t:gs(wve),i:Bt.LOW,l:D1,h:(d,m,g)=>n("del",{key:g.k},m(d.v,g))}};t.disableParsingRawHTML!==!0&&(l.htmlBlock={t:_c(Wy),i:Bt.HIGH,l(d,m,g){const[,p]=d[3].match(kve),v=new RegExp(`^${p}`,"gm"),y=d[3].replace(v,""),b=(_=y,Ove.some(P=>P.test(_))?Dve:dp);var _;const E=d[1].toLowerCase(),$=F1e.indexOf(E)!==-1;g.N=g.N||E==="a";const M=$?d[3]:b(m,y,g);return g.N=!1,{O:o(d[2]),v:M,G:$,H:$?E:d[1]}},h:(d,m,g)=>n(d.H,ya({key:g.k},d.O),d.G?d.v:m(d.v,g))},l.htmlSelfClosing={t:_c(qy),i:Bt.HIGH,l:d=>({O:o(d[2]||""),H:d[1]}),h:(d,m,g)=>n(d.H,ya({},d.O,{key:g.k}))});const a=function(d){let m=Object.keys(d);function g(p,v){let y=[],b="";for(;p;){let _=0;for(;_{let{children:t,options:r}=e,n=function(i,o){if(i==null)return{};var s,u,l={},a=Object.keys(i);for(u=0;u=0||(l[s]=i[s]);return l}(e,D1e);return G.cloneElement(Lve(t,r),n)};var Bve=qT;function zve(e,t){return e==null?!0:Bve(e,t)}var Vve=zve;const Uve=ir(Vve);class Hve extends G.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(t,r=!1)=>(n,i,o)=>{const{formData:s,onChange:u,errorSchema:l}=this.props;n===void 0&&r&&(n="");const a={...s,[t]:n};u(a,l&&l&&{...l,[t]:i},o)},this.onDropPropertyClick=t=>r=>{r.preventDefault();const{onChange:n,formData:i}=this.props,o={...i};Uve(o,t),n(o)},this.getAvailableKey=(t,r)=>{const{uiSchema:n,registry:i}=this.props,{duplicateKeySuffixSeparator:o="-"}=Gt(n,i.globalUiOptions);let s=0,u=t;for(;Sn(r,u);)u=`${t}${o}${++s}`;return u},this.onKeyChange=t=>(r,n)=>{if(t===r)return;const{formData:i,onChange:o,errorSchema:s}=this.props;r=this.getAvailableKey(r,i);const u={...i},l={[t]:r},a=Object.keys(u).map(h=>({[l[h]||h]:u[h]})),c=Object.assign({},...a);this.setState({wasPropertyKeyModified:!0}),o(c,s&&s&&{...s,[r]:n})},this.handleAddClick=t=>()=>{if(!t.additionalProperties)return;const{formData:r,onChange:n,registry:i}=this.props,o={...r};let s;if(zi(t.additionalProperties)){s=t.additionalProperties.type;let l=t.additionalProperties;if(Hr in l){const{schemaUtils:a}=i;l=a.retrieveSchema({$ref:l[Hr]},r),s=l.type}!s&&(xu in l||Hs in l)&&(s="object")}const u=this.getAvailableKey("newKey",o);mn(o,u,this.getDefaultValue(s)),n(o)}}isRequired(t){const{schema:r}=this.props;return Array.isArray(r.required)&&r.required.indexOf(t)!==-1}getDefaultValue(t){const{registry:{translateString:r}}=this.props;switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return r(Rt.NewStringDefault)}}render(){var t,r,n;const{schema:i,uiSchema:o={},formData:s,errorSchema:u,idSchema:l,name:a,required:c=!1,disabled:h=!1,readonly:f=!1,hideError:d,idPrefix:m,idSeparator:g,onBlur:p,onFocus:v,registry:y}=this.props,{fields:b,formContext:_,schemaUtils:E,translateString:$,globalUiOptions:M}=y,{SchemaField:P}=b,D=E.retrieveSchema(i,s),F=Gt(o,M),{properties:U={}}=D,V=(r=(t=F.title)!==null&&t!==void 0?t:D.title)!==null&&r!==void 0?r:a,A=(n=F.description)!==null&&n!==void 0?n:D.description;let O;try{const S=Object.keys(U);O=r1e(S,F.order)}catch(S){return X.jsxs("div",{children:[X.jsx("p",{className:"config-error",style:{color:"red"},children:X.jsx(sg,{children:$(Rt.InvalidObjectField,[a||"root",S.message])})}),X.jsx("pre",{children:JSON.stringify(D)})]})}const C=jt("ObjectFieldTemplate",y,F),w={title:F.label===!1?"":V,description:F.label===!1?void 0:A,properties:O.map(S=>{const x=Sn(D,[Pr,S,Du]),k=x?o.additionalProperties:o[S],T=Gt(k).widget==="hidden",I=Ze(l,[S],{});return{content:X.jsx(P,{name:S,required:this.isRequired(S),schema:Ze(D,[Pr,S],{}),uiSchema:k,errorSchema:Ze(u,S),idSchema:I,idPrefix:m,idSeparator:g,formData:Ze(s,S),formContext:_,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(S),onChange:this.onPropertyChange(S,x),onBlur:p,onFocus:v,registry:y,disabled:h,readonly:f,hideError:d,onDropPropertyClick:this.onDropPropertyClick},S),name:S,readonly:f,disabled:h,required:c,hidden:T}}),readonly:f,disabled:h,required:c,idSchema:l,uiSchema:o,errorSchema:u,schema:D,formData:s,formContext:_,registry:y};return X.jsx(C,{...w,onAddClick:this.handleAddClick})}}const Wve={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function qve(e,t,r,n){const i=t.field,{fields:o,translateString:s}=n;if(typeof i=="function")return i;if(typeof i=="string"&&i in o)return o[i];const u=Ys(e),l=Array.isArray(u)?u[0]:u||"",a=e.$id;let c=Wve[l];return a&&a in o&&(c=a),!c&&(e.anyOf||e.oneOf)?()=>null:c in o?o[c]:()=>{const h=jt("UnsupportedFieldTemplate",n,t);return X.jsx(h,{schema:e,idSchema:r,reason:s(Rt.UnknownFieldType,[String(e.type)]),registry:n})}}function Kve(e){const{schema:t,idSchema:r,uiSchema:n,formData:i,errorSchema:o,idPrefix:s,idSeparator:u,name:l,onChange:a,onKeyChange:c,onDropPropertyClick:h,required:f,registry:d,wasPropertyKeyModified:m=!1}=e,{formContext:g,schemaUtils:p,globalUiOptions:v}=d,y=Gt(n,v),b=jt("FieldTemplate",d,y),_=jt("DescriptionFieldTemplate",d,y),E=jt("FieldHelpTemplate",d,y),$=jt("FieldErrorTemplate",d,y),M=p.retrieveSchema(t,i),P=r[Ps],D=Qu(p.toIdSchema(M,P,i,s,u),r),F=G.useCallback((ie,le,Q)=>a(ie,le,Q||P),[P,a]),U=qve(M,y,D,d),V=!!(e.disabled||y.disabled),A=!!(e.readonly||y.readonly||e.schema.readOnly||M.readOnly),O=y.hideError,C=O===void 0?e.hideError:!!O,w=!!(e.autofocus||y.autofocus);if(Object.keys(M).length===0)return null;const S=p.getDisplayLabel(M,n,v),{__errors:x,...k}=o||{},T=lm(n,["ui:classNames","classNames","ui:style"]);od in T&&(T[od]=lm(T[od],["classNames","style"]));const I=X.jsx(U,{...e,onChange:F,idSchema:D,schema:M,uiSchema:T,disabled:V,readonly:A,hideError:C,autofocus:w,errorSchema:k,formContext:g,rawErrors:x}),L=D[Ps];let z;m?z=l:z=Du in M?l:y.title||e.schema.title||M.title||l;const B=y.description||e.schema.description||M.description||"",W=y.enableMarkdownInDescription?X.jsx(sg,{children:B}):B,N=y.help,q=y.widget==="hidden",j=["form-group","field",`field-${Ys(M)}`];!C&&x&&x.length>0&&j.push("field-error has-error has-danger"),n!=null&&n.classNames&&j.push(n.classNames),y.classNames&&j.push(y.classNames);const R=X.jsx(E,{help:N,idSchema:D,schema:M,uiSchema:n,hasErrors:!C&&x&&x.length>0,registry:d}),H=C||(M.anyOf||M.oneOf)&&!p.isSelect(M)?void 0:X.jsx($,{errors:x,errorSchema:o,idSchema:D,schema:M,uiSchema:n,registry:d}),K={description:X.jsx(_,{id:rl(L),description:W,schema:M,uiSchema:n,registry:d}),rawDescription:B,help:R,rawHelp:typeof N=="string"?N:void 0,errors:H,rawErrors:C?void 0:x,id:L,label:z,hidden:q,onChange:a,onKeyChange:c,onDropPropertyClick:h,required:f,disabled:V,readonly:A,hideError:C,displayLabel:S,classNames:j.join(" ").trim(),style:y.style,formContext:g,formData:i,schema:M,uiSchema:n,registry:d},ee=d.fields.AnyOfField,Y=d.fields.OneOfField,te=(n==null?void 0:n["ui:field"])&&(n==null?void 0:n["ui:fieldReplacesAnyOrOneOf"])===!0;return X.jsx(b,{...K,children:X.jsxs(X.Fragment,{children:[I,M.anyOf&&!te&&!p.isSelect(M)&&X.jsx(ee,{name:l,disabled:V,readonly:A,hideError:C,errorSchema:o,formData:i,formContext:g,idPrefix:s,idSchema:D,idSeparator:u,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M.anyOf.map(ie=>p.retrieveSchema(zi(ie)?ie:{},i)),registry:d,schema:M,uiSchema:n}),M.oneOf&&!te&&!p.isSelect(M)&&X.jsx(Y,{name:l,disabled:V,readonly:A,hideError:C,errorSchema:o,formData:i,formContext:g,idPrefix:s,idSchema:D,idSeparator:u,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M.oneOf.map(ie=>p.retrieveSchema(zi(ie)?ie:{},i)),registry:d,schema:M,uiSchema:n})]})})}class Gve extends G.Component{shouldComponentUpdate(t){return!mi(this.props,t)}render(){return X.jsx(Kve,{...this.props})}}function Xve(e){var t;const{schema:r,name:n,uiSchema:i,idSchema:o,formData:s,required:u,disabled:l=!1,readonly:a=!1,autofocus:c=!1,onChange:h,onBlur:f,onFocus:d,registry:m,rawErrors:g,hideError:p}=e,{title:v,format:y}=r,{widgets:b,formContext:_,schemaUtils:E,globalUiOptions:$}=m,M=E.isSelect(r)?hm(r):void 0;let P=M?"select":"text";y&&Jge(r,y,b)&&(P=y);const{widget:D=P,placeholder:F="",title:U,...V}=Gt(i),A=E.getDisplayLabel(r,i,$),O=(t=U??v)!==null&&t!==void 0?t:n,C=Uo(r,D,b);return X.jsx(C,{options:{...V,enumOptions:M},schema:r,uiSchema:i,id:o.$id,name:n,label:O,hideLabel:!A,hideError:p,value:s,onChange:h,onBlur:f,onFocus:d,required:u,disabled:l,readonly:a,formContext:_,autofocus:c,registry:m,placeholder:F,rawErrors:g})}function Yve(e){const{formData:t,onChange:r}=e;return G.useEffect(()=>{t===void 0&&r(null)},[t,r]),null}function Zve(){return{AnyOfField:y6,ArrayField:M1e,BooleanField:I1e,NumberField:N1e,ObjectField:Hve,OneOfField:y6,SchemaField:Gve,StringField:Xve,NullField:Yve}}function Qve(e){const{idSchema:t,description:r,registry:n,schema:i,uiSchema:o}=e,s=Gt(o,n.globalUiOptions),{label:u=!0}=s;if(!r||!u)return null;const l=jt("DescriptionFieldTemplate",n,s);return X.jsx(l,{id:rl(t),description:r,schema:i,uiSchema:o,registry:n})}function Jve(e){const{children:t,className:r,disabled:n,hasToolbar:i,hasMoveDown:o,hasMoveUp:s,hasRemove:u,hasCopy:l,index:a,onCopyIndexClick:c,onDropIndexClick:h,onReorderClick:f,readonly:d,registry:m,uiSchema:g}=e,{CopyButton:p,MoveDownButton:v,MoveUpButton:y,RemoveButton:b}=m.templates.ButtonTemplates,_={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return X.jsxs("div",{className:r,children:[X.jsx("div",{className:i?"col-xs-9":"col-xs-12",children:t}),i&&X.jsx("div",{className:"col-xs-3 array-item-toolbox",children:X.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(s||o)&&X.jsx(y,{style:_,disabled:n||d||!s,onClick:f(a,a-1),uiSchema:g,registry:m}),(s||o)&&X.jsx(v,{style:_,disabled:n||d||!o,onClick:f(a,a+1),uiSchema:g,registry:m}),l&&X.jsx(p,{style:_,disabled:n||d,onClick:c(a),uiSchema:g,registry:m}),u&&X.jsx(b,{style:_,disabled:n||d,onClick:h(a),uiSchema:g,registry:m})]})})]})}function eye(e){const{canAdd:t,className:r,disabled:n,idSchema:i,uiSchema:o,items:s,onAddClick:u,readonly:l,registry:a,required:c,schema:h,title:f}=e,d=Gt(o),m=jt("ArrayFieldDescriptionTemplate",a,d),g=jt("ArrayFieldItemTemplate",a,d),p=jt("ArrayFieldTitleTemplate",a,d),{ButtonTemplates:{AddButton:v}}=a.templates;return X.jsxs("fieldset",{className:r,id:i.$id,children:[X.jsx(p,{idSchema:i,title:d.title||f,required:c,schema:h,uiSchema:o,registry:a}),X.jsx(m,{idSchema:i,description:d.description||h.description,schema:h,uiSchema:o,registry:a}),X.jsx("div",{className:"row array-item-list",children:s&&s.map(({key:y,...b})=>X.jsx(g,{...b},y))}),t&&X.jsx(v,{className:"array-item-add",onClick:u,disabled:n||l,uiSchema:o,registry:a})]})}function tye(e){const{idSchema:t,title:r,schema:n,uiSchema:i,required:o,registry:s}=e,u=Gt(i,s.globalUiOptions),{label:l=!0}=u;if(!r||!l)return null;const a=jt("TitleFieldTemplate",s,u);return X.jsx(a,{id:i_(t),title:r,required:o,schema:n,uiSchema:i,registry:s})}function rye(e){const{id:t,name:r,value:n,readonly:i,disabled:o,autofocus:s,onBlur:u,onFocus:l,onChange:a,onChangeOverride:c,options:h,schema:f,uiSchema:d,formContext:m,registry:g,rawErrors:p,type:v,hideLabel:y,hideError:b,..._}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const E={..._,...Q$(f,v,h)};let $;E.type==="number"||E.type==="integer"?$=n||n===0?n:"":$=n??"";const M=G.useCallback(({target:{value:F}})=>a(F===""?h.emptyValue:F),[a,h]),P=G.useCallback(({target:{value:F}})=>u(t,F),[u,t]),D=G.useCallback(({target:{value:F}})=>l(t,F),[l,t]);return X.jsxs(X.Fragment,{children:[X.jsx("input",{id:t,name:t,className:"form-control",readOnly:i,disabled:o,autoFocus:s,value:$,...E,list:f.examples?qd(t):void 0,onChange:c||M,onBlur:P,onFocus:D,"aria-describedby":yn(t,!!f.examples)}),Array.isArray(f.examples)&&X.jsx("datalist",{id:qd(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map(F=>X.jsx("option",{value:F},F))},`datalist_${t}`)]})}function nye({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=J$(e);return r?null:X.jsx("div",{children:X.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:t})})}function Tf(e){const{iconType:t="default",icon:r,className:n,uiSchema:i,registry:o,...s}=e;return X.jsx("button",{type:"button",className:`btn btn-${t} ${n}`,...s,children:X.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function iye(e){const{registry:{translateString:t}}=e;return X.jsx(Tf,{title:t(Rt.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function oye(e){const{registry:{translateString:t}}=e;return X.jsx(Tf,{title:t(Rt.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function sye(e){const{registry:{translateString:t}}=e;return X.jsx(Tf,{title:t(Rt.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function aye(e){const{registry:{translateString:t}}=e;return X.jsx(Tf,{title:t(Rt.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function lye({className:e,onClick:t,disabled:r,registry:n}){const{translateString:i}=n;return X.jsx("div",{className:"row",children:X.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:X.jsx(Tf,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:i(Rt.AddButton),onClick:t,disabled:r,registry:n})})})}function uye(){return{SubmitButton:nye,AddButton:lye,CopyButton:iye,MoveDownButton:oye,MoveUpButton:sye,RemoveButton:aye}}function cye(e){const{id:t,description:r}=e;return r?typeof r=="string"?X.jsx("p",{id:t,className:"field-description",children:r}):X.jsx("div",{id:t,className:"field-description",children:r}):null}function dye({errors:e,registry:t}){const{translateString:r}=t;return X.jsxs("div",{className:"panel panel-danger errors",children:[X.jsx("div",{className:"panel-heading",children:X.jsx("h3",{className:"panel-title",children:r(Rt.ErrorsLabel)})}),X.jsx("ul",{className:"list-group",children:e.map((n,i)=>X.jsx("li",{className:"list-group-item text-danger",children:n.stack},i))})]})}const fye="*";function SA(e){const{label:t,required:r,id:n}=e;return t?X.jsxs("label",{className:"control-label",htmlFor:n,children:[t,r&&X.jsx("span",{className:"required",children:fye})]}):null}function hye(e){const{id:t,label:r,children:n,errors:i,help:o,description:s,hidden:u,required:l,displayLabel:a,registry:c,uiSchema:h}=e,f=Gt(h),d=jt("WrapIfAdditionalTemplate",c,f);return u?X.jsx("div",{className:"hidden",children:n}):X.jsxs(d,{...e,children:[a&&X.jsx(SA,{label:r,required:l,id:t}),a&&s?s:null,n,i,o]})}function pye(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=r_(r);return X.jsx("div",{children:X.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,o)=>X.jsx("li",{className:"text-danger",children:i},o))})})}function mye(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=n_(t);return typeof r=="string"?X.jsx("p",{id:n,className:"help-block",children:r}):X.jsx("div",{id:n,className:"help-block",children:r})}function gye(e){const{description:t,disabled:r,formData:n,idSchema:i,onAddClick:o,properties:s,readonly:u,registry:l,required:a,schema:c,title:h,uiSchema:f}=e,d=Gt(f),m=jt("TitleFieldTemplate",l,d),g=jt("DescriptionFieldTemplate",l,d),{ButtonTemplates:{AddButton:p}}=l.templates;return X.jsxs("fieldset",{id:i.$id,children:[h&&X.jsx(m,{id:i_(i),title:h,required:a,schema:c,uiSchema:f,registry:l}),t&&X.jsx(g,{id:rl(i),description:t,schema:c,uiSchema:f,registry:l}),s.map(v=>v.content),lT(c,f,n)&&X.jsx(p,{className:"object-property-expand",onClick:o(c),disabled:r||u,uiSchema:f,registry:l})]})}const vye="*";function yye(e){const{id:t,title:r,required:n}=e;return X.jsxs("legend",{id:t,children:[r,n&&X.jsx("span",{className:"required",children:vye})]})}function bye(e){const{schema:t,idSchema:r,reason:n,registry:i}=e,{translateString:o}=i;let s=Rt.UnsupportedField;const u=[];return r&&r.$id&&(s=Rt.UnsupportedFieldWithId,u.push(r.$id)),n&&(s=s===Rt.UnsupportedField?Rt.UnsupportedFieldWithReason:Rt.UnsupportedFieldWithIdAndReason,u.push(n)),X.jsxs("div",{className:"unsupported-field",children:[X.jsx("p",{children:X.jsx(sg,{children:o(s,u)})}),t&&X.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function wye(e){const{id:t,classNames:r,style:n,disabled:i,label:o,onKeyChange:s,onDropPropertyClick:u,readonly:l,required:a,schema:c,children:h,uiSchema:f,registry:d}=e,{templates:m,translateString:g}=d,{RemoveButton:p}=m.ButtonTemplates,v=g(Rt.KeyLabel,[o]);return Du in c?X.jsx("div",{className:r,style:n,children:X.jsxs("div",{className:"row",children:[X.jsx("div",{className:"col-xs-5 form-additional",children:X.jsxs("div",{className:"form-group",children:[X.jsx(SA,{label:v,required:a,id:`${t}-key`}),X.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:b=>s(b.target.value),defaultValue:o})]})}),X.jsx("div",{className:"form-additional form-group col-xs-5",children:h}),X.jsx("div",{className:"col-xs-2",children:X.jsx(p,{className:"array-item-remove btn-block",style:{border:"0"},disabled:i||l,onClick:u(o),uiSchema:f,registry:d})})]})}):X.jsx("div",{className:r,style:n,children:h})}function _ye(){return{ArrayFieldDescriptionTemplate:Qve,ArrayFieldItemTemplate:Jve,ArrayFieldTemplate:eye,ArrayFieldTitleTemplate:tye,ButtonTemplates:uye(),BaseInputTemplate:rye,DescriptionFieldTemplate:cye,ErrorListTemplate:dye,FieldTemplate:hye,FieldErrorTemplate:pye,FieldHelpTemplate:mye,ObjectFieldTemplate:gye,TitleFieldTemplate:yye,UnsupportedFieldTemplate:bye,WrapIfAdditionalTemplate:wye}}function xye(e,t){const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:$o(n,2)});return r}function Sye(e){return Object.values(e).every(t=>t!==-1)}function kye(e,t,r=[1900,new Date().getFullYear()+2]){const{year:n,month:i,day:o,hour:s,minute:u,second:l}=e,a=[{type:"year",range:r,value:n},{type:"month",range:[1,12],value:i},{type:"day",range:[1,31],value:o}];return t&&a.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:u},{type:"second",range:[0,59],value:l}),a}function Cye({type:e,range:t,value:r,select:n,rootId:i,name:o,disabled:s,readonly:u,autofocus:l,registry:a,onBlur:c,onFocus:h}){const f=i+"_"+e,{SelectWidget:d}=a.widgets;return X.jsx(d,{schema:{type:"integer"},id:f,name:o,className:"form-control",options:{enumOptions:xye(t[0],t[1])},placeholder:e,value:r,disabled:s,readonly:u,autofocus:l,onChange:m=>n(e,m),onBlur:c,onFocus:h,registry:a,label:"","aria-describedby":yn(i)})}function Eye({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:n=!1,options:i,id:o,name:s,registry:u,onBlur:l,onFocus:a,onChange:c,value:h}){const{translateString:f}=u,[d,m]=G.useState(h),[g,p]=G.useReducer((_,E)=>({..._,...E}),ru(h,e));G.useEffect(()=>{const _=pm(g,e);Sye(g)&&_!==h?c(_):d!==h&&(m(h),p(ru(h,e)))},[e,h,c,g,d]);const v=G.useCallback((_,E)=>{p({[_]:E})},[]),y=G.useCallback(_=>{if(_.preventDefault(),t||r)return;const E=ru(new Date().toJSON(),e);c(pm(E,e))},[t,r,e]),b=G.useCallback(_=>{_.preventDefault(),!(t||r)&&c(void 0)},[t,r,c]);return X.jsxs("ul",{className:"list-inline",children:[kye(g,e,i.yearsRange).map((_,E)=>X.jsx("li",{className:"list-inline-item",children:X.jsx(Cye,{rootId:o,name:s,select:v,..._,disabled:t,readonly:r,registry:u,onBlur:l,onFocus:a,autofocus:n&&E===0})},E)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&X.jsx("li",{className:"list-inline-item",children:X.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:y,children:f(Rt.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&X.jsx("li",{className:"list-inline-item",children:X.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:b,children:f(Rt.ClearLabel)})})]})}function Tye({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return X.jsx(r,{time:e,...t})}function $ye({schema:e,uiSchema:t,options:r,id:n,value:i,disabled:o,readonly:s,label:u,hideLabel:l,autofocus:a=!1,onBlur:c,onFocus:h,onChange:f,registry:d}){var m;const g=jt("DescriptionFieldTemplate",d,r),p=sd(e),v=G.useCallback(E=>f(E.target.checked),[f]),y=G.useCallback(E=>c(n,E.target.checked),[c,n]),b=G.useCallback(E=>h(n,E.target.checked),[h,n]),_=(m=r.description)!==null&&m!==void 0?m:e.description;return X.jsxs("div",{className:`checkbox ${o||s?"disabled":""}`,children:[!l&&!!_&&X.jsx(g,{id:rl(n),description:_,schema:e,uiSchema:t,registry:d}),X.jsxs("label",{children:[X.jsx("input",{type:"checkbox",id:n,name:n,checked:typeof i>"u"?!1:i,required:p,disabled:o||s,autoFocus:a,onChange:v,onBlur:y,onFocus:b,"aria-describedby":yn(n)}),os(X.jsx("span",{children:u}),l)]})]})}function Aye({id:e,disabled:t,options:{inline:r=!1,enumOptions:n,enumDisabled:i,emptyValue:o},value:s,autofocus:u=!1,readonly:l,onChange:a,onBlur:c,onFocus:h}){const f=Array.isArray(s)?s:[s],d=G.useCallback(({target:{value:g}})=>c(e,zr(g,n,o)),[c,e]),m=G.useCallback(({target:{value:g}})=>h(e,zr(g,n,o)),[h,e]);return X.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(n)&&n.map((g,p)=>{const v=K0(g.value,f),y=Array.isArray(i)&&i.indexOf(g.value)!==-1,b=t||y||l?"disabled":"",_=$=>{$.target.checked?a(Wge(p,f,n)):a(zge(p,f,n))},E=X.jsxs("span",{children:[X.jsx("input",{type:"checkbox",id:og(e,p),name:e,checked:v,value:String(p),disabled:t||y||l,autoFocus:u&&p===0,onChange:_,onBlur:d,onFocus:m,"aria-describedby":yn(e)}),X.jsx("span",{children:g.label})]});return r?X.jsx("label",{className:`checkbox-inline ${b}`,children:E},p):X.jsx("div",{className:`checkbox ${b}`,children:X.jsx("label",{children:E})},p)})})}function Pye(e){const{disabled:t,readonly:r,options:n,registry:i}=e,o=jt("BaseInputTemplate",i,n);return X.jsx(o,{type:"color",...e,disabled:t||r})}function Oye(e){const{onChange:t,options:r,registry:n}=e,i=jt("BaseInputTemplate",n,r),o=G.useCallback(s=>t(s||void 0),[t]);return X.jsx(i,{type:"date",...e,onChange:o})}function Mye(e){const{onChange:t,value:r,options:n,registry:i}=e,o=jt("BaseInputTemplate",i,n);return X.jsx(o,{type:"datetime-local",...e,value:p1e(r),onChange:s=>t(e1e(s))})}function Iye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{type:"email",...e})}function Rye(e,t){return e===null?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function jye(e){const{name:t,size:r,type:n}=e;return new Promise((i,o)=>{const s=new window.FileReader;s.onerror=o,s.onload=u=>{var l;typeof((l=u.target)===null||l===void 0?void 0:l.result)=="string"?i({dataURL:Rye(u.target.result,t),name:t,size:r,type:n}):i({dataURL:null,name:t,size:r,type:n})},s.readAsDataURL(e)})}function Nye(e){return Promise.all(Array.from(e).map(jye))}function Dye({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:i,name:o}=e;return n?i.indexOf("image")!==-1?X.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):X.jsxs(X.Fragment,{children:[" ",X.jsx("a",{download:`preview-${o}`,href:n,className:"file-download",children:r(Rt.PreviewLabel)})]}):null}function Fye({filesInfo:e,registry:t,preview:r}){if(e.length===0)return null;const{translateString:n}=t;return X.jsx("ul",{className:"file-info",children:e.map((i,o)=>{const{name:s,size:u,type:l}=i;return X.jsxs("li",{children:[X.jsx(sg,{children:n(Rt.FilesInfo,[s,l,String(u)])}),r&&X.jsx(Dye,{fileInfo:i,registry:t})]},o)})})}function E6(e){return e.filter(t=>t).map(t=>{const{blob:r,name:n}=Fge(t);return{dataURL:t,name:n,size:r.size,type:r.type}})}function Lye(e){const{disabled:t,readonly:r,required:n,multiple:i,onChange:o,value:s,options:u,registry:l}=e,a=jt("BaseInputTemplate",l,u),[c,h]=G.useState(Array.isArray(s)?E6(s):E6([s])),f=G.useCallback(d=>{d.target.files&&Nye(d.target.files).then(m=>{const g=m.map(p=>p.dataURL);i?(h(c.concat(m[0])),o(s.concat(g[0]))):(h(m),o(g[0]))})},[i,s,c,o]);return X.jsxs("div",{children:[X.jsx(a,{...e,disabled:t||r,type:"file",required:s?!1:n,onChangeOverride:f,value:"",accept:u.accept?String(u.accept):void 0}),X.jsx(Fye,{filesInfo:c,registry:l,preview:u.filePreview})]})}function Bye({id:e,value:t}){return X.jsx("input",{type:"hidden",id:e,name:e,value:typeof t>"u"?"":t})}function zye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{type:"password",...e})}function Vye({options:e,value:t,required:r,disabled:n,readonly:i,autofocus:o=!1,onBlur:s,onFocus:u,onChange:l,id:a}){const{enumOptions:c,enumDisabled:h,inline:f,emptyValue:d}=e,m=G.useCallback(({target:{value:p}})=>s(a,zr(p,c,d)),[s,a]),g=G.useCallback(({target:{value:p}})=>u(a,zr(p,c,d)),[u,a]);return X.jsx("div",{className:"field-radio-group",id:a,children:Array.isArray(c)&&c.map((p,v)=>{const y=K0(p.value,t),b=Array.isArray(h)&&h.indexOf(p.value)!==-1,_=n||b||i?"disabled":"",E=()=>l(p.value),$=X.jsxs("span",{children:[X.jsx("input",{type:"radio",id:og(a,v),checked:y,name:a,required:r,value:String(v),disabled:n||b||i,autoFocus:o&&v===0,onChange:E,onBlur:m,onFocus:g,"aria-describedby":yn(a)}),X.jsx("span",{children:p.label})]});return f?X.jsx("label",{className:`radio-inline ${_}`,children:$},v):X.jsx("div",{className:`radio ${_}`,children:X.jsx("label",{children:$})},v)})})}function Uye(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return X.jsxs("div",{className:"field-range-wrapper",children:[X.jsx(r,{type:"range",...e}),X.jsx("span",{className:"range-view",children:t})]})}function z1(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function Hye({schema:e,id:t,options:r,value:n,required:i,disabled:o,readonly:s,multiple:u=!1,autofocus:l=!1,onChange:a,onBlur:c,onFocus:h,placeholder:f}){const{enumOptions:d,enumDisabled:m,emptyValue:g}=r,p=u?[]:"",v=G.useCallback(E=>{const $=z1(E,u);return h(t,zr($,d,g))},[h,t,e,u,r]),y=G.useCallback(E=>{const $=z1(E,u);return c(t,zr($,d,g))},[c,t,e,u,r]),b=G.useCallback(E=>{const $=z1(E,u);return a(zr($,d,g))},[a,e,u,r]),_=G0(n,d,u);return X.jsxs("select",{id:t,name:t,multiple:u,className:"form-control",value:typeof _>"u"?p:_,required:i,disabled:o||s,autoFocus:l,onBlur:y,onFocus:v,onChange:b,"aria-describedby":yn(t),children:[!u&&e.default===void 0&&X.jsx("option",{value:"",children:f}),Array.isArray(d)&&d.map(({value:E,label:$},M)=>{const P=m&&m.indexOf(E)!==-1;return X.jsx("option",{value:String(M),disabled:P,children:$},M)})]})}function kA({id:e,options:t={},placeholder:r,value:n,required:i,disabled:o,readonly:s,autofocus:u=!1,onChange:l,onBlur:a,onFocus:c}){const h=G.useCallback(({target:{value:m}})=>l(m===""?t.emptyValue:m),[l,t.emptyValue]),f=G.useCallback(({target:{value:m}})=>a(e,m),[a,e]),d=G.useCallback(({target:{value:m}})=>c(e,m),[e,c]);return X.jsx("textarea",{id:e,name:e,className:"form-control",value:n||"",placeholder:r,required:i,disabled:o,readOnly:s,autoFocus:u,rows:t.rows,onBlur:f,onFocus:d,onChange:h,"aria-describedby":yn(e)})}kA.defaultProps={autofocus:!1,options:{}};function Wye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{...e})}function qye(e){const{onChange:t,options:r,registry:n}=e,i=jt("BaseInputTemplate",n,r),o=G.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return X.jsx(i,{type:"time",...e,onChange:o})}function Kye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{type:"url",...e})}function Gye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{type:"number",...e})}function Xye(){return{AltDateWidget:Eye,AltDateTimeWidget:Tye,CheckboxWidget:$ye,CheckboxesWidget:Aye,ColorWidget:Pye,DateWidget:Oye,DateTimeWidget:Mye,EmailWidget:Iye,FileWidget:Lye,HiddenWidget:Bye,PasswordWidget:zye,RadioWidget:Vye,RangeWidget:Uye,SelectWidget:Hye,TextWidget:Wye,TextareaWidget:kA,TimeWidget:qye,UpDownWidget:Gye,URLWidget:Kye}}function Yye(){return{fields:Zve(),templates:_ye(),widgets:Xye(),rootSchema:{},formContext:{},translateString:Bge}}let Zye=class extends G.Component{constructor(t){if(super(t),this.getUsedFormData=(r,n)=>{if(n.length===0&&typeof r!="object")return r;const i=P1e(r,n);return Array.isArray(r)?Object.keys(i).map(o=>i[o]):i},this.getFieldNames=(r,n)=>{const i=(o,s=[],u=[[]])=>(Object.keys(o).forEach(l=>{if(typeof o[l]=="object"){const a=u.map(c=>[...c,l]);o[l][pw]&&o[l][sp]!==""?s.push(o[l][sp]):i(o[l],s,a)}else l===sp&&o[l]!==""&&u.forEach(a=>{const c=Ze(n,a);(typeof c!="object"||Va(c)||Array.isArray(c)&&c.every(h=>typeof h!="object"))&&s.push(a)})}),s);return i(r)},this.onChange=(r,n,i)=>{const{extraErrors:o,omitExtraData:s,liveOmit:u,noValidate:l,liveValidate:a,onChange:c}=this.props,{schemaUtils:h,schema:f,retrievedSchema:d}=this.state;(kr(r)||Array.isArray(r))&&(r=this.getStateFromProps(this.props,r,d).formData);const m=!l&&a;let g={formData:r,schema:f},p=r,v;if(s===!0&&u===!0){v=h.retrieveSchema(f,r);const y=h.toPathSchema(v,"",r),b=this.getFieldNames(y,r);p=this.getUsedFormData(r,b),g={formData:p}}if(m){const y=this.validate(p,f,h,d);let b=y.errors,_=y.errorSchema;const E=b,$=_;if(o){const M=cp(y,o);_=M.errorSchema,b=M.errors}g={formData:p,errors:b,errorSchema:_,schemaValidationErrors:E,schemaValidationErrorSchema:$}}else if(!l&&n){const y=o?Qu(n,o,"preventDuplicates"):n;g={formData:p,errorSchema:y,errors:Kd(y)}}v&&(g.retrievedSchema=v),this.setState(g,()=>c&&c({...this.state,...g},i))},this.reset=()=>{const{onChange:r}=this.props,o={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(o,()=>r&&r({...this.state,...o}))},this.onBlur=(r,n)=>{const{onBlur:i}=this.props;i&&i(r,n)},this.onFocus=(r,n)=>{const{onFocus:i}=this.props;i&&i(r,n)},this.onSubmit=r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:n,extraErrors:i,noValidate:o,onSubmit:s}=this.props;let{formData:u}=this.state;const{schema:l,schemaUtils:a}=this.state;if(n===!0){const c=a.retrieveSchema(l,u),h=a.toPathSchema(c,"",u),f=this.getFieldNames(h,u);u=this.getUsedFormData(u,f)}if(o||this.validateForm()){const c=i||{},h=i?Kd(i):[];this.setState({formData:u,errors:h,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s({...this.state,formData:u,status:"submitted"},r)})}},!t.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(t,t.formData),this.props.onChange&&!mi(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=G.createRef()}getSnapshotBeforeUpdate(t,r){if(!mi(this.props,t)){const n=this.getStateFromProps(this.props,this.props.formData,t.schema!==this.props.schema?void 0:this.state.retrievedSchema),i=!mi(n,r);return{nextState:n,shouldUpdate:i}}return{shouldUpdate:!1}}componentDidUpdate(t,r,n){if(n.shouldUpdate){const{nextState:i}=n;!mi(i.formData,this.props.formData)&&!mi(i.formData,r.formData)&&this.props.onChange&&this.props.onChange(i),this.setState(i)}}getStateFromProps(t,r,n){const i=this.state||{},o="schema"in t?t.schema:this.props.schema,s=("uiSchema"in t?t.uiSchema:this.props.uiSchema)||{},u=typeof r<"u",l="liveValidate"in t?t.liveValidate:this.props.liveValidate,a=u&&!t.noValidate&&l,c=o,h="experimental_defaultFormStateBehavior"in t?t.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let f=i.schemaUtils;(!f||f.doesSchemaUtilsDiffer(t.validator,c,h))&&(f=Dge(t.validator,c,h));const d=f.getDefaultFormState(o,r),m=n??f.retrieveSchema(o,d),g=()=>t.noValidate?{errors:[],errorSchema:{}}:t.liveValidate?{errors:i.errors||[],errorSchema:i.errorSchema||{}}:{errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};let p,v,y=i.schemaValidationErrors,b=i.schemaValidationErrorSchema;if(a){const $=this.validate(d,o,f,m);p=$.errors,v=$.errorSchema,y=p,b=v}else{const $=g();p=$.errors,v=$.errorSchema}if(t.extraErrors){const $=cp({errorSchema:v,errors:p},t.extraErrors);v=$.errorSchema,p=$.errors}const _=f.toIdSchema(m,s["ui:rootFieldId"],d,t.idPrefix,t.idSeparator);return{schemaUtils:f,schema:o,uiSchema:s,idSchema:_,formData:d,edit:u,errors:p,errorSchema:v,schemaValidationErrors:y,schemaValidationErrorSchema:b,retrievedSchema:m}}shouldComponentUpdate(t,r){return n1e(this,t,r)}validate(t,r=this.props.schema,n,i){const o=n||this.state.schemaUtils,{customValidate:s,transformErrors:u,uiSchema:l}=this.props,a=i??o.retrieveSchema(r,t);return o.getValidator().validateFormData(t,a,s,u,l)}renderErrors(t){const{errors:r,errorSchema:n,schema:i,uiSchema:o}=this.state,{formContext:s}=this.props,u=Gt(o),l=jt("ErrorListTemplate",t,u);return r&&r.length?X.jsx(l,{errors:r,errorSchema:n||{},schema:i,uiSchema:o,formContext:s,registry:t}):null}getRegistry(){var t;const{translateString:r,uiSchema:n={}}=this.props,{schemaUtils:i}=this.state,{fields:o,templates:s,widgets:u,formContext:l,translateString:a}=Yye();return{fields:{...o,...this.props.fields},templates:{...s,...this.props.templates,ButtonTemplates:{...s.ButtonTemplates,...(t=this.props.templates)===null||t===void 0?void 0:t.ButtonTemplates}},widgets:{...u,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||l,schemaUtils:i,translateString:r||a,globalUiOptions:n[KZ]}}submit(){this.formElement.current&&(this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:!0})),this.formElement.current.requestSubmit())}focusOnError(t){const{idPrefix:r="root",idSeparator:n="_"}=this.props,{property:i}=t,o=rA(i);o[0]===""?o[0]=r:o.unshift(r);const s=o.join(n);let u=this.formElement.current.elements[s];u||(u=this.formElement.current.querySelector(`input[id^=${s}`)),u&&u.length&&(u=u[0]),u&&u.focus()}validateForm(){const{extraErrors:t,extraErrorsBlockSubmit:r,focusOnFirstError:n,onError:i}=this.props,{formData:o,errors:s}=this.state,u=this.validate(o);let l=u.errors,a=u.errorSchema;const c=l,h=a,f=l.length>0||t&&r;if(f){if(t){const d=cp(u,t);a=d.errorSchema,l=d.errors}n&&(typeof n=="function"?n(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:a,schemaValidationErrors:c,schemaValidationErrorSchema:h},()=>{i?i(l):console.error("Form validation failed",l)})}else s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!f}render(){const{children:t,id:r,idPrefix:n,idSeparator:i,className:o="",tagName:s,name:u,method:l,target:a,action:c,autoComplete:h,enctype:f,acceptcharset:d,noHtml5Validate:m=!1,disabled:g=!1,readonly:p=!1,formContext:v,showErrorList:y="top",_internalFormWrapper:b}=this.props,{schema:_,uiSchema:E,formData:$,errorSchema:M,idSchema:P}=this.state,D=this.getRegistry(),{SchemaField:F}=D.fields,{SubmitButton:U}=D.templates.ButtonTemplates,V=b?s:void 0,A=b||s||"form";let{[nm]:O={}}=Gt(E);g&&(O={...O,props:{...O.props,disabled:!0}});const C={[od]:{[nm]:O}};return X.jsxs(A,{className:o||"rjsf",id:r,name:u,method:l,target:a,action:c,autoComplete:h,encType:f,acceptCharset:d,noValidate:m,onSubmit:this.onSubmit,as:V,ref:this.formElement,children:[y==="top"&&this.renderErrors(D),X.jsx(F,{name:"",schema:_,uiSchema:E,errorSchema:M,idSchema:P,idPrefix:n,idSeparator:i,formContext:v,formData:$,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:D,disabled:g,readonly:p}),t||X.jsx(U,{uiSchema:C,registry:D}),y==="bottom"&&this.renderErrors(D)]})}};function Qye(e){return G.forwardRef(({fields:t,widgets:r,templates:n,...i},o)=>{var s;return t={...e==null?void 0:e.fields,...t},r={...e==null?void 0:e.widgets,...r},n={...e==null?void 0:e.templates,...n,ButtonTemplates:{...(s=e==null?void 0:e.templates)===null||s===void 0?void 0:s.ButtonTemplates,...n==null?void 0:n.ButtonTemplates}},X.jsx(Zye,{...e,...i,fields:t,widgets:r,templates:n,ref:o})})}var Jye=Nu({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),ebe=Nu({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),tbe=Nu({displayName:"DeleteIcon",path:X.jsx("g",{fill:"currentColor",children:X.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),rbe=Nu({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"}),nbe=Nu({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),ibe=Nu({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});function obe({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return X.jsx(pi,{leftIcon:X.jsx(rbe,{}),...r,children:n(Rt.AddItemButton)})}function sbe(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:i,hasMoveDown:o,hasMoveUp:s,hasRemove:u,index:l,onCopyIndexClick:a,onDropIndexClick:c,onReorderClick:h,readonly:f,uiSchema:d,registry:m}=e,{CopyButton:g,MoveDownButton:p,MoveUpButton:v,RemoveButton:y}=m.templates.ButtonTemplates,b=G.useMemo(()=>a(l),[l,a]),_=G.useMemo(()=>c(l),[l,c]),E=G.useMemo(()=>h(l,l-1),[l,h]),$=G.useMemo(()=>h(l,l+1),[l,h]);return X.jsxs(PE,{alignItems:"flex-end",py:1,children:[X.jsx(nr,{w:"100%",children:t}),n&&X.jsx(nr,{children:X.jsxs(lE,{isAttached:!0,mb:1,children:[(s||o)&&X.jsx(v,{disabled:r||f||!s,onClick:E,uiSchema:d,registry:m}),(s||o)&&X.jsx(p,{disabled:r||f||!o,onClick:$,uiSchema:d,registry:m}),i&&X.jsx(g,{disabled:r||f,onClick:b,uiSchema:d,registry:m}),u&&X.jsx(y,{disabled:r||f,onClick:_,uiSchema:d,registry:m})]})})]})}function abe(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:i,items:o,onAddClick:s,readonly:u,registry:l,required:a,schema:c,title:h}=e,f=Gt(i),d=jt("ArrayFieldDescriptionTemplate",l,f),m=jt("ArrayFieldItemTemplate",l,f),g=jt("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:p}}=l.templates;return X.jsxs(nr,{children:[X.jsx(g,{idSchema:n,title:f.title||h,schema:c,uiSchema:i,required:a,registry:l}),X.jsx(d,{idSchema:n,description:f.description||c.description,schema:c,uiSchema:i,registry:l}),X.jsxs(S0,{children:[X.jsx(Vs,{children:o.length>0&&o.map(({key:v,...y})=>X.jsx(m,{...y},v))}),t&&X.jsx(Vs,{justifySelf:"flex-end",children:X.jsx(nr,{mt:2,children:X.jsx(p,{className:"array-item-add",onClick:s,disabled:r||u,uiSchema:i,registry:l})})})]},`array-item-list-${n.$id}`)]})}function na({uiSchema:e={}}){const t=e["ui:options"]&&e["ui:options"].chakra||{};return Object.keys(t).forEach(r=>{AC(r)&&delete t[r]}),t}function lbe(e){const{id:t,type:r,value:n,label:i,hideLabel:o,schema:s,uiSchema:u,onChange:l,onChangeOverride:a,onBlur:c,onFocus:h,options:f,required:d,readonly:m,rawErrors:g,autofocus:p,placeholder:v,disabled:y}=e,b=Q$(s,r,f),_=na({uiSchema:u}),E=({target:{value:P}})=>l(P===""?f.emptyValue:P),$=({target:{value:P}})=>c(t,P),M=({target:{value:P}})=>h(t,P);return X.jsxs(Yi,{mb:1,..._,isDisabled:y||m,isRequired:d,isReadOnly:m,isInvalid:g&&g.length>0,children:[os(X.jsx(rs,{htmlFor:t,id:`${t}-label`,children:i}),o||!i),X.jsx(x0,{id:t,name:t,value:n||n===0?n:"",onChange:a||E,onBlur:$,onFocus:M,autoFocus:p,placeholder:v,...b,list:s.examples?qd(t):void 0,"aria-describedby":yn(t,!!s.examples)}),Array.isArray(s.examples)?X.jsx("datalist",{id:qd(t),children:s.examples.concat(s.default&&!s.examples.includes(s.default)?[s.default]:[]).map(P=>X.jsx("option",{value:P},P))}):null]})}function ube({description:e,id:t}){return e?typeof e=="string"?X.jsx(hf,{id:t,mt:2,mb:4,children:e}):X.jsx(X.Fragment,{children:e}):null}function cbe({errors:e,registry:t}){const{translateString:r}=t;return X.jsxs(Y2,{flexDirection:"column",alignItems:"flex-start",gap:3,status:"error",children:[X.jsx(X2,{children:r(Rt.ErrorsLabel)}),X.jsx(ff,{children:e.map((n,i)=>X.jsxs(rw,{children:[X.jsx(EE,{as:Jye,color:"red.500"}),n.stack]},i))})]})}function CA(e){const{icon:t,iconType:r,uiSchema:n,registry:i,...o}=e;return X.jsx(uE,{"aria-label":e.title,...o,icon:t})}CA.displayName="ChakraIconButton";const ag=G.memo(CA);function dbe(e){const{registry:{translateString:t}}=e;return X.jsx(ag,{title:t(Rt.CopyButton),...e,icon:X.jsx(ebe,{})})}function fbe(e){const{registry:{translateString:t}}=e;return X.jsx(ag,{title:t(Rt.MoveDownButton),...e,icon:X.jsx(nbe,{})})}function hbe(e){const{registry:{translateString:t}}=e;return X.jsx(ag,{title:t(Rt.MoveUpButton),...e,icon:X.jsx(ibe,{})})}function pbe(e){const{registry:{translateString:t}}=e;return X.jsx(ag,{title:t(Rt.RemoveButton),...e,icon:X.jsx(tbe,{})})}function mbe(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=r_(r);return X.jsx(ff,{children:t.map((i,o)=>X.jsx(rw,{children:X.jsx(hE,{id:n,children:i})},o))})}function gbe(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=n_(t);return X.jsx(fE,{id:n,children:r})}function vbe(e){const{id:t,children:r,classNames:n,style:i,disabled:o,displayLabel:s,hidden:u,label:l,onDropPropertyClick:a,onKeyChange:c,readonly:h,registry:f,required:d,rawErrors:m=[],errors:g,help:p,description:v,rawDescription:y,schema:b,uiSchema:_}=e,E=Gt(_),$=jt("WrapIfAdditionalTemplate",f,E);return u?X.jsx("div",{style:{display:"none"},children:r}):X.jsx($,{classNames:n,style:i,disabled:o,id:t,label:l,onDropPropertyClick:a,onKeyChange:c,readonly:h,required:d,schema:b,uiSchema:_,registry:f,children:X.jsxs(Yi,{isRequired:d,isInvalid:m&&m.length>0,children:[r,s&&y?X.jsx(hf,{mt:2,children:v}):null,g,p]})})}function ybe(e){const{description:t,title:r,properties:n,required:i,disabled:o,readonly:s,uiSchema:u,idSchema:l,schema:a,formData:c,onAddClick:h,registry:f}=e,d=Gt(u),m=jt("TitleFieldTemplate",f,d),g=jt("DescriptionFieldTemplate",f,d),{ButtonTemplates:{AddButton:p}}=f.templates;return X.jsxs(X.Fragment,{children:[r&&X.jsx(m,{id:i_(l),title:r,required:i,schema:a,uiSchema:u,registry:f}),t&&X.jsx(g,{id:rl(l),description:t,schema:a,uiSchema:u,registry:f}),X.jsxs(S0,{gap:t?2:6,mb:4,children:[n.map((v,y)=>v.hidden?v.content:X.jsx(Vs,{children:v.content},`${l.$id}-${v.name}-${y}`)),lT(a,u,c)&&X.jsx(Vs,{justifySelf:"flex-end",children:X.jsx(p,{className:"object-property-expand",onClick:h(a),disabled:o||s,uiSchema:u,registry:f})})]})]})}function bbe({uiSchema:e}){const{submitText:t,norender:r,props:n}=J$(e);return r?null:X.jsx(nr,{marginTop:3,children:X.jsx(pi,{type:"submit",variant:"solid",...n,children:t})})}function wbe({id:e,title:t}){return X.jsxs(nr,{id:e,mt:1,mb:4,children:[X.jsx(nw,{as:"h5",children:t}),X.jsx(iw,{})]})}function _be(e){const{children:t,classNames:r,style:n,disabled:i,id:o,label:s,onDropPropertyClick:u,onKeyChange:l,readonly:a,registry:c,required:h,schema:f,uiSchema:d}=e,{templates:m,translateString:g}=c,{RemoveButton:p}=m.ButtonTemplates,v=g(Rt.KeyLabel,[s]);if(!(Du in f))return X.jsx("div",{className:r,style:n,children:t});const b=({target:_})=>l(_.value);return X.jsxs(S0,{className:r,style:n,alignItems:"center",gap:2,children:[X.jsx(Vs,{children:X.jsxs(Yi,{isRequired:h,children:[X.jsx(rs,{htmlFor:`${o}-key`,id:`${o}-key-label`,children:v}),X.jsx(x0,{defaultValue:s,disabled:i||a,id:`${o}-key`,name:`${o}-key`,onBlur:a?void 0:b,type:"text",mb:1})]})}),X.jsx(Vs,{children:t}),X.jsx(Vs,{children:X.jsx(p,{disabled:i||a,onClick:u(s),uiSchema:d,registry:c})})]},`${o}-key`)}function xbe(){return{ArrayFieldItemTemplate:sbe,ArrayFieldTemplate:abe,BaseInputTemplate:lbe,ButtonTemplates:{CopyButton:dbe,AddButton:obe,MoveDownButton:fbe,MoveUpButton:hbe,RemoveButton:pbe,SubmitButton:bbe},DescriptionFieldTemplate:ube,ErrorListTemplate:cbe,FieldErrorTemplate:mbe,FieldHelpTemplate:gbe,FieldTemplate:vbe,ObjectFieldTemplate:ybe,TitleFieldTemplate:wbe,WrapIfAdditionalTemplate:_be}}const Sbe=(e,t)=>{const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:$o(n,2)});return r};function kbe(e){const{SelectWidget:t}=e.registry.widgets,r=e.value?e.value:void 0;return X.jsx(t,{...e,label:"",className:"form-control",onChange:n=>e.select(e.type,n),options:{enumOptions:Sbe(e.range[0],e.range[1])},placeholder:e.type,schema:{type:"integer"},value:r,"aria-describedby":yn(e.name)})}const Cbe=e=>Object.keys(e).every(t=>typeof e[t]<"u"&&e[t]!==-1);function l_(e){const{autofocus:t,disabled:r,id:n,onBlur:i,onChange:o,onFocus:s,options:u,readonly:l,registry:a,showTime:c,value:h}=e,{translateString:f}=a,[d,m]=G.useState(ru(h,c));G.useEffect(()=>{m(ru(h,c))},[c,h]);const g=(b,_)=>{const E={...d,[b]:typeof _>"u"?-1:_};Cbe(E)?o(pm(E,c)):m(E)},p=b=>{if(b.preventDefault(),r||l)return;const _=ru(new Date().toJSON(),c);o(pm(_,c))},v=b=>{b.preventDefault(),!(r||l)&&o(void 0)},y=()=>{const{year:b,month:_,day:E,hour:$,minute:M,second:P}=d,D=[{type:"year",range:u.yearsRange,value:b},{type:"month",range:[1,12],value:_},{type:"day",range:[1,31],value:E}];return c&&D.push({type:"hour",range:[0,23],value:$},{type:"minute",range:[0,59],value:M},{type:"second",range:[0,59],value:P}),D};return X.jsxs(nr,{children:[X.jsx(nr,{display:"flex",flexWrap:"wrap",alignItems:"center",children:y().map((b,_)=>{const E=n+"_"+b.type;return X.jsx(nr,{mr:"2",mb:"2",children:X.jsx(kbe,{...e,...b,autofocus:t&&_===0,disabled:r,id:E,name:n,onBlur:i,onFocus:s,readonly:l,registry:a,select:g,value:b.value<0?"":b.value})},E)})}),X.jsxs(nr,{display:"flex",children:[!u.hideNowButton&&X.jsx(pi,{onClick:b=>p(b),mr:"2",children:f(Rt.NowLabel)}),!u.hideClearButton&&X.jsx(pi,{onClick:b=>v(b),children:f(Rt.ClearLabel)})]})]})}l_.defaultProps={autofocus:!1,disabled:!1,readonly:!1,showTime:!1,options:{yearsRange:[1900,new Date().getFullYear()+2]}};function EA(e){const{AltDateWidget:t}=e.registry.widgets;return X.jsx(t,{...e,showTime:!0})}EA.defaultProps={...l_.defaultProps,showTime:!0};function Ebe(e){const{id:t,value:r,disabled:n,readonly:i,onChange:o,onBlur:s,onFocus:u,label:l,hideLabel:a,registry:c,options:h,uiSchema:f,schema:d}=e,m=na({uiSchema:f}),g=sd(d),p=jt("DescriptionFieldTemplate",c,h),v=h.description||d.description,y=({target:{checked:E}})=>o(E),b=({target:{value:E}})=>s(t,E),_=({target:{value:E}})=>u(t,E);return X.jsxs(Yi,{mb:1,...m,isRequired:g,children:[!a&&!!v&&X.jsx(p,{id:rl(t),description:v,schema:d,uiSchema:f,registry:c}),X.jsx(ew,{id:t,name:t,isChecked:typeof r>"u"?!1:r,isDisabled:n||i,onChange:y,onBlur:b,onFocus:_,"aria-describedby":yn(t),children:os(X.jsx(hf,{children:l}),a||!l)})]})}function Tbe(e){const{id:t,disabled:r,options:n,value:i,readonly:o,onChange:s,onBlur:u,onFocus:l,required:a,label:c,hideLabel:h,uiSchema:f,rawErrors:d=[]}=e,{enumOptions:m,enumDisabled:g,emptyValue:p}=n,v=na({uiSchema:f}),y=Array.isArray(i)?i:[i],b=({target:{value:M}})=>u(t,zr(M,m,p)),_=({target:{value:M}})=>l(t,zr(M,m,p)),E=n?n.inline:!1,$=G0(i,m,!0);return X.jsxs(Yi,{mb:1,...v,isDisabled:r||o,isRequired:a,isReadOnly:o,isInvalid:d&&d.length>0,children:[os(X.jsx(rs,{htmlFor:t,id:`${t}-label`,children:c}),h||!c),X.jsx(cE,{onChange:M=>s(zr(M,m,p)),defaultValue:$,"aria-describedby":yn(t),children:X.jsx(vu,{direction:E?"row":"column",children:Array.isArray(m)&&m.map((M,P)=>{const D=K0(M.value,y),F=Array.isArray(g)&&g.indexOf(M.value)!==-1;return X.jsx(ew,{id:og(t,P),name:t,value:String(P),isChecked:D,isDisabled:r||F||o,onBlur:b,onFocus:_,children:M.label&&X.jsx(hf,{children:M.label})},P)})})})]})}function $be({id:e,options:t,value:r,required:n,disabled:i,readonly:o,label:s,hideLabel:u,onChange:l,onBlur:a,onFocus:c,uiSchema:h}){var f;const{enumOptions:d,enumDisabled:m,emptyValue:g}=t,p=na({uiSchema:h}),v=$=>l(zr($,d,g)),y=({target:{value:$}})=>a(e,zr($,d,g)),b=({target:{value:$}})=>c(e,zr($,d,g)),_=t?t.inline:!1,E=(f=G0(r,d))!==null&&f!==void 0?f:null;return X.jsxs(Yi,{mb:1,...p,isDisabled:i||o,isRequired:n,isReadOnly:o,children:[os(X.jsx(rs,{htmlFor:e,id:`${e}-label`,children:s}),u||!s),X.jsx(ZE,{onChange:v,onBlur:y,onFocus:b,value:E,name:e,"aria-describedby":yn(e),children:X.jsx(vu,{direction:_?"row":"column",children:Array.isArray(d)&&d.map(($,M)=>{const P=Array.isArray(m)&&m.indexOf($.value)!==-1;return X.jsx(QE,{value:String(M),id:og(e,M),disabled:i||P||o,children:$.label},M)})})})]})}function Abe({value:e,readonly:t,disabled:r,onBlur:n,onFocus:i,options:o,schema:s,uiSchema:u,onChange:l,label:a,hideLabel:c,id:h}){const f=na({uiSchema:u}),d={value:e,label:a,id:h,...Z$(s)},m=v=>l(v===void 0?o.emptyValue:v),g=({target:{value:v}})=>n(h,v),p=({target:{value:v}})=>i(h,v);return X.jsxs(Yi,{mb:1,...f,children:[os(X.jsx(rs,{htmlFor:h,children:a}),c||!a),X.jsxs(rT,{...d,id:h,name:h,isDisabled:r||t,onChange:m,onBlur:g,onFocus:p,"aria-describedby":yn(h),children:[X.jsx(iT,{children:X.jsx(oT,{})}),X.jsx(nT,{})]})]})}function T6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Ibe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Rbe(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,i=n===void 0?!1:n,o=e.defaultValue,s=o===void 0?null:o,u=e.inputValue,l=e.menuIsOpen,a=e.onChange,c=e.onInputChange,h=e.onMenuClose,f=e.onMenuOpen,d=e.value,m=ss(e,Ibe),g=G.useState(u!==void 0?u:r),p=Ho(g,2),v=p[0],y=p[1],b=G.useState(l!==void 0?l:i),_=Ho(b,2),E=_[0],$=_[1],M=G.useState(d!==void 0?d:s),P=Ho(M,2),D=P[0],F=P[1],U=G.useCallback(function(x,k){typeof a=="function"&&a(x,k),F(x)},[a]),V=G.useCallback(function(x,k){var T;typeof c=="function"&&(T=c(x,k)),y(T!==void 0?T:x)},[c]),A=G.useCallback(function(){typeof f=="function"&&f(),$(!0)},[f]),O=G.useCallback(function(){typeof h=="function"&&h(),$(!1)},[h]),C=u!==void 0?u:v,w=l!==void 0?l:E,S=d!==void 0?d:D;return at(at({},m),{},{inputValue:C,menuIsOpen:w,onChange:U,onInputChange:V,onMenuClose:O,onMenuOpen:A,value:S})}function jbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $6(e,t){for(var r=0;r"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}}function Lbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bbe(e,t){if(t&&(Ba(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lbe(e)}function zbe(e){var t=Fbe();return function(){var n=mm(e),i;if(t){var o=mm(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Bbe(this,i)}}function Vbe(e){if(Array.isArray(e))return Ky(e)}function Ube(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hbe(){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 $A(e){return Vbe(e)||Ube(e)||TA(e)||Hbe()}function Wbe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const qbe=Math.min,Kbe=Math.max,gm=Math.round,yh=Math.floor,vm=e=>({x:e,y:e});function Gbe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function AA(e){return OA(e)?(e.nodeName||"").toLowerCase():"#document"}function Hi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function PA(e){var t;return(t=(OA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function OA(e){return e instanceof Node||e instanceof Hi(e).Node}function Gy(e){return e instanceof Element||e instanceof Hi(e).Element}function u_(e){return e instanceof HTMLElement||e instanceof Hi(e).HTMLElement}function A6(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Hi(e).ShadowRoot}function MA(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=c_(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function Xbe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ybe(e){return["html","body","#document"].includes(AA(e))}function c_(e){return Hi(e).getComputedStyle(e)}function Zbe(e){if(AA(e)==="html")return e;const t=e.assignedSlot||e.parentNode||A6(e)&&e.host||PA(e);return A6(t)?t.host:t}function IA(e){const t=Zbe(e);return Ybe(t)?e.ownerDocument?e.ownerDocument.body:e.body:u_(t)&&MA(t)?t:IA(t)}function ym(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=IA(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Hi(i);return o?t.concat(s,s.visualViewport||[],MA(i)?i:[],s.frameElement&&r?ym(s.frameElement):[]):t.concat(i,ym(i,[],r))}function Qbe(e){const t=c_(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=u_(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,u=gm(r)!==o||gm(n)!==s;return u&&(r=o,n=s),{width:r,height:n,$:u}}function d_(e){return Gy(e)?e:e.contextElement}function V1(e){const t=d_(e);if(!u_(t))return vm(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Qbe(t);let s=(o?gm(r.width):r.width)/n,u=(o?gm(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const Jbe=vm(0);function e2e(e){const t=Hi(e);return!Xbe()||!t.visualViewport?Jbe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function t2e(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Hi(e)?!1:t}function P6(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=d_(e);let s=vm(1);t&&(n?Gy(n)&&(s=V1(n)):s=V1(e));const u=t2e(o,r,n)?e2e(o):vm(0);let l=(i.left+u.x)/s.x,a=(i.top+u.y)/s.y,c=i.width/s.x,h=i.height/s.y;if(o){const f=Hi(o),d=n&&Gy(n)?Hi(n):n;let m=f.frameElement;for(;m&&n&&d!==f;){const g=V1(m),p=m.getBoundingClientRect(),v=c_(m),y=p.left+(m.clientLeft+parseFloat(v.paddingLeft))*g.x,b=p.top+(m.clientTop+parseFloat(v.paddingTop))*g.y;l*=g.x,a*=g.y,c*=g.x,h*=g.y,l+=y,a+=b,m=Hi(m).frameElement}}return Gbe({width:c,height:h,x:l,y:a})}function r2e(e,t){let r=null,n;const i=PA(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function s(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),o();const{left:a,top:c,width:h,height:f}=e.getBoundingClientRect();if(u||t(),!h||!f)return;const d=yh(c),m=yh(i.clientWidth-(a+h)),g=yh(i.clientHeight-(c+f)),p=yh(a),y={rootMargin:-d+"px "+-m+"px "+-g+"px "+-p+"px",threshold:Kbe(0,qbe(1,l))||1};let b=!0;function _(E){const $=E[0].intersectionRatio;if($!==l){if(!b)return s();$?s(!1,$):n=setTimeout(()=>{s(!1,1e-7)},100)}b=!1}try{r=new IntersectionObserver(_,{...y,root:i.ownerDocument})}catch{r=new IntersectionObserver(_,y)}r.observe(e)}return s(!0),o}function n2e(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,a=d_(e),c=i||o?[...a?ym(a):[],...ym(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",r,{passive:!0}),o&&v.addEventListener("resize",r)});const h=a&&u?r2e(a,r):null;let f=-1,d=null;s&&(d=new ResizeObserver(v=>{let[y]=v;y&&y.target===a&&d&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{d&&d.observe(t)})),r()}),a&&!l&&d.observe(a),d.observe(t));let m,g=l?P6(e):null;l&&p();function p(){const v=P6(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&r(),g=v,m=requestAnimationFrame(p)}return r(),()=>{c.forEach(v=>{i&&v.removeEventListener("scroll",r),o&&v.removeEventListener("resize",r)}),h&&h(),d&&d.disconnect(),d=null,l&&cancelAnimationFrame(m)}}var Xy=G.useLayoutEffect,i2e=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bm=function(){};function o2e(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function s2e(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i-1}function a2e(e){return lg(e)?window.innerHeight:e.clientHeight}function jA(e){return lg(e)?window.pageYOffset:e.scrollTop}function wm(e,t){if(lg(e)){window.scrollTo(0,t);return}e.scrollTop=t}function l2e(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function u2e(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function bh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:bm,i=jA(e),o=t-i,s=10,u=0;function l(){u+=s;var a=u2e(u,i,o,r);wm(e,a),ur.bottom?wm(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):n.top-i1?r-1:0),i=1;i=m)return{placement:"bottom",maxHeight:t};if(D>=m&&!s)return o&&bh(l,F,V),{placement:"bottom",maxHeight:t};if(!s&&D>=n||s&&M>=n){o&&bh(l,F,V);var A=s?M-_:D-_;return{placement:"bottom",maxHeight:A}}if(i==="auto"||s){var O=t,C=s?$:P;return C>=n&&(O=Math.min(C-_-u,t)),{placement:"top",maxHeight:O}}if(i==="bottom")return o&&wm(l,F),{placement:"bottom",maxHeight:t};break;case"top":if($>=m)return{placement:"top",maxHeight:t};if(P>=m&&!s)return o&&bh(l,U,V),{placement:"top",maxHeight:t};if(!s&&P>=n||s&&$>=n){var w=t;return(!s&&P>=n||s&&$>=n)&&(w=s?$-E:P-E),o&&bh(l,U,V),{placement:"top",maxHeight:w}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return a}function w2e(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var DA=function(t){return t==="auto"?"bottom":t},_2e=function(t,r){var n,i=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,l=o.colors;return at((n={label:"menu"},jc(n,w2e(i),"100%"),jc(n,"position","absolute"),jc(n,"width","100%"),jc(n,"zIndex",1),n),r?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},FA=G.createContext(null),x2e=function(t){var r=t.children,n=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,l=t.theme,a=G.useContext(FA)||{},c=a.setPortalPlacement,h=G.useRef(null),f=G.useState(i),d=Ho(f,2),m=d[0],g=d[1],p=G.useState(null),v=Ho(p,2),y=v[0],b=v[1],_=l.spacing.controlHeight;return Xy(function(){var E=h.current;if(E){var $=s==="fixed",M=u&&!$,P=b2e({maxHeight:i,menuEl:E,minHeight:n,placement:o,shouldScroll:M,isFixedPosition:$,controlHeight:_});g(P.maxHeight),b(P.placement),c==null||c(P.placement)}},[i,o,s,u,n,c,_]),r({ref:h,placerProps:at(at({},t),{},{placement:y||DA(o),maxHeight:m})})},S2e=function(t){var r=t.children,n=t.innerRef,i=t.innerProps;return ht("div",ot({},Ir(t,"menu",{menu:!0}),{ref:n},i),r)},k2e=S2e,C2e=function(t,r){var n=t.maxHeight,i=t.theme.spacing.baseUnit;return at({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:i,paddingTop:i})},E2e=function(t){var r=t.children,n=t.innerProps,i=t.innerRef,o=t.isMulti;return ht("div",ot({},Ir(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},n),r)},LA=function(t,r){var n=t.theme,i=n.spacing.baseUnit,o=n.colors;return at({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},T2e=LA,$2e=LA,A2e=function(t){var r=t.children,n=r===void 0?"No options":r,i=t.innerProps,o=ss(t,v2e);return ht("div",ot({},Ir(at(at({},o),{},{children:n,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),n)},P2e=function(t){var r=t.children,n=r===void 0?"Loading...":r,i=t.innerProps,o=ss(t,y2e);return ht("div",ot({},Ir(at(at({},o),{},{children:n,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),n)},O2e=function(t){var r=t.rect,n=t.offset,i=t.position;return{left:r.left,position:i,top:n,width:r.width,zIndex:1}},M2e=function(t){var r=t.appendTo,n=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,l=G.useRef(null),a=G.useRef(null),c=G.useState(DA(s)),h=Ho(c,2),f=h[0],d=h[1],m=G.useMemo(function(){return{setPortalPlacement:d}},[]),g=G.useState(null),p=Ho(g,2),v=p[0],y=p[1],b=G.useCallback(function(){if(i){var M=c2e(i),P=u==="fixed"?0:window.pageYOffset,D=M[f]+P;(D!==(v==null?void 0:v.offset)||M.left!==(v==null?void 0:v.rect.left)||M.width!==(v==null?void 0:v.rect.width))&&y({offset:D,rect:M})}},[i,u,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);Xy(function(){b()},[b]);var _=G.useCallback(function(){typeof a.current=="function"&&(a.current(),a.current=null),i&&l.current&&(a.current=n2e(i,l.current,b,{elementResize:"ResizeObserver"in window}))},[i,b]);Xy(function(){_()},[_]);var E=G.useCallback(function(M){l.current=M,_()},[_]);if(!r&&u!=="fixed"||!v)return null;var $=ht("div",ot({ref:E},Ir(at(at({},t),{},{offset:v.offset,position:u,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ht(FA.Provider,{value:m},r?Wm.createPortal($,r):$)},I2e=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},R2e=function(t){var r=t.children,n=t.innerProps,i=t.isDisabled,o=t.isRtl;return ht("div",ot({},Ir(t,"container",{"--is-disabled":i,"--is-rtl":o}),n),r)},j2e=function(t,r){var n=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return at({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},N2e=function(t){var r=t.children,n=t.innerProps,i=t.isMulti,o=t.hasValue;return ht("div",ot({},Ir(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),n),r)},D2e=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},F2e=function(t){var r=t.children,n=t.innerProps;return ht("div",ot({},Ir(t,"indicatorsContainer",{indicators:!0}),n),r)},R6,L2e=["size"],B2e=["innerProps","isRtl","size"],z2e={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},BA=function(t){var r=t.size,n=ss(t,L2e);return ht("svg",ot({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:z2e},n))},f_=function(t){return ht(BA,ot({size:20},t),ht("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},zA=function(t){return ht(BA,ot({size:20},t),ht("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},VA=function(t,r){var n=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return at({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?s.neutral60:s.neutral20,padding:o*2,":hover":{color:n?s.neutral80:s.neutral40}})},V2e=VA,U2e=function(t){var r=t.children,n=t.innerProps;return ht("div",ot({},Ir(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||ht(zA,null))},H2e=VA,W2e=function(t){var r=t.children,n=t.innerProps;return ht("div",ot({},Ir(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||ht(f_,null))},q2e=function(t,r){var n=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return at({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},K2e=function(t){var r=t.innerProps;return ht("span",ot({},r,Ir(t,"indicatorSeparator",{"indicator-separator":!0})))},G2e=rf(R6||(R6=Wbe([` +`).every(o=>!SA.some(s=>s.test(o))&&(n+=o+` +`,o.trim()));const i=n.trimEnd();return i==""?null:[n,i]}function pl(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function C6(e){return e.replace(Eve,"$1")}function dp(e,t,r){const n=r._||!1,i=r.u||!1;r._=!0,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function Dve(e,t,r){const n=r._||!1,i=r.u||!1;r._=!1,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function Fve(e,t,r){return r._=!1,e(t,r)}const D1=(e,t,r)=>({v:dp(t,e[1],r)});function F1(){return{}}function L1(){return null}function Lve(...e){return e.filter(Boolean).join(" ")}function B1(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],n!==void 0);)i.shift();return n||r}var Bt;function Bve(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||Ive,t.namedCodesToUnicode=t.namedCodesToUnicode?ya({},w6,t.namedCodesToUnicode):w6;const r=t.createElement||G.createElement;function n(d,m,...g){const p=B1(t.overrides,`${d}.props`,{});return r(function(v,y){const b=B1(y,v);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:B1(y,`${v}.component`,v):v}(d,t.overrides),ya({},m,p,{className:Lve(m==null?void 0:m.className,p.className)||void 0}),...g)}function i(d){let m=!1;t.forceInline?m=!0:t.forceBlock||(m=cve.test(d)===!1);const g=c(a(m?d:`${d.trimEnd().replace(kve,"")} + +`,{_:m}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;const p=t.wrapper||(m?"span":"div");let v;if(g.length>1||t.forceWrapper)v=g;else{if(g.length===1)return v=g[0],typeof v=="string"?n("span",{key:"outer"},v):v;v=null}return G.createElement(p,{key:"outer"},v)}function o(d){const m=d.match(B1e);return m?m.reduce(function(g,p,v){const y=p.indexOf("=");if(y!==-1){const b=function(M){return M.indexOf("-")!==-1&&M.match(eve)===null&&(M=M.replace(ove,function(P,D){return D.toUpperCase()})),M}(p.slice(0,y)).trim(),_=function(M){const P=M[0];return(P==='"'||P==="'")&&M.length>=2&&M[M.length-1]===P?M.slice(1,-1):M}(p.slice(y+1).trim()),E=b6[b]||b,$=g[E]=function(M,P){return M==="style"?P.split(/;\s?/).reduce(function(D,F){const U=F.slice(0,F.indexOf(":"));return D[U.replace(/(-[a-z])/g,V=>V[1].toUpperCase())]=F.slice(U.length+1).trim(),D},{}):M==="href"?pl(P):(P.match(tve)&&(P=P.slice(1,P.length-1)),P==="true"||P!=="false"&&P)}(b,_);typeof $=="string"&&(Wy.test($)||qy.test($))&&(g[E]=G.cloneElement(i($.trim()),{key:v}))}else p!=="style"&&(g[b6[p]||p]=!0);return g},{}):null}const s=[],u={},l={blockQuote:{t:Eo(oA),i:Bt.HIGH,l:(d,m,g)=>({v:m(d[0].replace(U1e,""),g)}),h:(d,m,g)=>n("blockquote",{key:g.k},m(d.v,g))},breakLine:{t:_c(H1e),i:Bt.HIGH,l:F1,h:(d,m,g)=>n("br",{key:g.k})},breakThematic:{t:Eo(W1e),i:Bt.HIGH,l:F1,h:(d,m,g)=>n("hr",{key:g.k})},codeBlock:{t:Eo(aA),i:Bt.MAX,l:d=>({v:d[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(d,m,g)=>n("pre",{key:g.k},n("code",ya({},d.O,{className:d.M?`lang-${d.M}`:""}),d.v))},codeFenced:{t:Eo(sA),i:Bt.MAX,l:d=>({O:o(d[3]||""),v:d[4],M:d[2]||void 0,type:"codeBlock"})},codeInline:{t:gs(q1e),i:Bt.LOW,l:d=>({v:d[2]}),h:(d,m,g)=>n("code",{key:g.k},d.v)},footnote:{t:Eo(X1e),i:Bt.MAX,l:d=>(s.push({I:d[2],j:d[1]}),{}),h:L1},footnoteReference:{t:ms(Y1e),i:Bt.HIGH,l:d=>({v:d[1],B:`#${t.slugify(d[1])}`}),h:(d,m,g)=>n("a",{key:g.k,href:pl(d.B)},n("sup",{key:g.k},d.v))},gfmTask:{t:ms(Q1e),i:Bt.HIGH,l:d=>({R:d[1].toLowerCase()==="x"}),h:(d,m,g)=>n("input",{checked:d.R,key:g.k,readOnly:!0,type:"checkbox"})},heading:{t:Eo(t.enforceAtxHeadings?uA:lA),i:Bt.HIGH,l:(d,m,g)=>({v:dp(m,d[2],g),T:t.slugify(d[2]),C:d[1].length}),h:(d,m,g)=>n(`h${d.C}`,{id:d.T,key:g.k},m(d.v,g))},headingSetext:{t:Eo(cA),i:Bt.MAX,l:(d,m,g)=>({v:dp(m,d[1],g),C:d[2]==="="?1:2,type:"heading"})},htmlComment:{t:_c(dA),i:Bt.HIGH,l:()=>({}),h:L1},image:{t:gs(Ove),i:Bt.HIGH,l:d=>({D:d[1],B:C6(d[2]),F:d[3]}),h:(d,m,g)=>n("img",{key:g.k,alt:d.D||void 0,title:d.F||void 0,src:pl(d.B)})},link:{t:ms(Pve),i:Bt.LOW,l:(d,m,g)=>({v:Dve(m,d[1],g),B:C6(d[2]),F:d[3]}),h:(d,m,g)=>n("a",{key:g.k,href:pl(d.B),title:d.F},m(d.v,g))},linkAngleBraceStyleDetector:{t:ms(ive),i:Bt.MAX,l:d=>({v:[{v:d[1],type:"text"}],B:d[1],type:"link"})},linkBareUrlDetector:{t:(d,m)=>m.N?null:ms(rve)(d,m),i:Bt.MAX,l:d=>({v:[{v:d[1],type:"text"}],B:d[1],F:void 0,type:"link"})},linkMailtoDetector:{t:ms(nve),i:Bt.MAX,l(d){let m=d[1],g=d[1];return z1e.test(g)||(g="mailto:"+g),{v:[{v:m.replace("mailto:",""),type:"text"}],B:g,type:"link"}}},orderedList:x6(n,1),unorderedList:x6(n,2),newlineCoalescer:{t:Eo(K1e),i:Bt.LOW,l:F1,h:()=>` +`},paragraph:{t:Nve,i:Bt.LOW,l:D1,h:(d,m,g)=>n("p",{key:g.k},m(d.v,g))},ref:{t:ms(sve),i:Bt.MAX,l:d=>(u[d[1]]={B:d[2],F:d[4]},{}),h:L1},refImage:{t:gs(ave),i:Bt.MAX,l:d=>({D:d[1]||void 0,P:d[2]}),h:(d,m,g)=>n("img",{key:g.k,alt:d.D,src:pl(u[d.P].B),title:u[d.P].F})},refLink:{t:ms(lve),i:Bt.MAX,l:(d,m,g)=>({v:m(d[1],g),Z:m(d[0].replace(uve,"\\$1"),g),P:d[2]}),h:(d,m,g)=>u[d.P]?n("a",{key:g.k,href:pl(u[d.P].B),title:u[d.P].F},m(d.v,g)):n("span",{key:g.k},m(d.Z,g))},table:{t:Eo(fA),i:Bt.HIGH,l:jve,h:(d,m,g)=>n("table",{key:g.k},n("thead",null,n("tr",null,d.L.map(function(p,v){return n("th",{key:v,style:k6(d,v)},m(p,g))}))),n("tbody",null,d.A.map(function(p,v){return n("tr",{key:v},p.map(function(y,b){return n("td",{key:b,style:k6(d,b)},m(y,g))}))})))},tableSeparator:{t:function(d,m){return m.$?(m._=!0,fve.exec(d)):null},i:Bt.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:_c(Sve),i:Bt.MIN,l:d=>({v:d[0].replace(J1e,(m,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:m)}),h:d=>d.v},textBolded:{t:gs(yve),i:Bt.MED,l:(d,m,g)=>({v:m(d[2],g)}),h:(d,m,g)=>n("strong",{key:g.k},m(d.v,g))},textEmphasized:{t:gs(bve),i:Bt.LOW,l:(d,m,g)=>({v:m(d[2],g)}),h:(d,m,g)=>n("em",{key:g.k},m(d.v,g))},textEscaped:{t:gs(xve),i:Bt.HIGH,l:d=>({v:d[1],type:"text"})},textMarked:{t:gs(wve),i:Bt.LOW,l:D1,h:(d,m,g)=>n("mark",{key:g.k},m(d.v,g))},textStrikethroughed:{t:gs(_ve),i:Bt.LOW,l:D1,h:(d,m,g)=>n("del",{key:g.k},m(d.v,g))}};t.disableParsingRawHTML!==!0&&(l.htmlBlock={t:_c(Wy),i:Bt.HIGH,l(d,m,g){const[,p]=d[3].match(Cve),v=new RegExp(`^${p}`,"gm"),y=d[3].replace(v,""),b=(_=y,Mve.some(P=>P.test(_))?Fve:dp);var _;const E=d[1].toLowerCase(),$=L1e.indexOf(E)!==-1;g.N=g.N||E==="a";const M=$?d[3]:b(m,y,g);return g.N=!1,{O:o(d[2]),v:M,G:$,H:$?E:d[1]}},h:(d,m,g)=>n(d.H,ya({key:g.k},d.O),d.G?d.v:m(d.v,g))},l.htmlSelfClosing={t:_c(qy),i:Bt.HIGH,l:d=>({O:o(d[2]||""),H:d[1]}),h:(d,m,g)=>n(d.H,ya({},d.O,{key:g.k}))});const a=function(d){let m=Object.keys(d);function g(p,v){let y=[],b="";for(;p;){let _=0;for(;_{let{children:t,options:r}=e,n=function(i,o){if(i==null)return{};var s,u,l={},a=Object.keys(i);for(u=0;u=0||(l[s]=i[s]);return l}(e,F1e);return G.cloneElement(Bve(t,r),n)};var zve=KT;function Vve(e,t){return e==null?!0:zve(e,t)}var Uve=Vve;const Hve=ir(Uve);class Wve extends G.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(t,r=!1)=>(n,i,o)=>{const{formData:s,onChange:u,errorSchema:l}=this.props;n===void 0&&r&&(n="");const a={...s,[t]:n};u(a,l&&l&&{...l,[t]:i},o)},this.onDropPropertyClick=t=>r=>{r.preventDefault();const{onChange:n,formData:i}=this.props,o={...i};Hve(o,t),n(o)},this.getAvailableKey=(t,r)=>{const{uiSchema:n,registry:i}=this.props,{duplicateKeySuffixSeparator:o="-"}=Gt(n,i.globalUiOptions);let s=0,u=t;for(;Sn(r,u);)u=`${t}${o}${++s}`;return u},this.onKeyChange=t=>(r,n)=>{if(t===r)return;const{formData:i,onChange:o,errorSchema:s}=this.props;r=this.getAvailableKey(r,i);const u={...i},l={[t]:r},a=Object.keys(u).map(h=>({[l[h]||h]:u[h]})),c=Object.assign({},...a);this.setState({wasPropertyKeyModified:!0}),o(c,s&&s&&{...s,[r]:n})},this.handleAddClick=t=>()=>{if(!t.additionalProperties)return;const{formData:r,onChange:n,registry:i}=this.props,o={...r};let s;if(zi(t.additionalProperties)){s=t.additionalProperties.type;let l=t.additionalProperties;if(Hr in l){const{schemaUtils:a}=i;l=a.retrieveSchema({$ref:l[Hr]},r),s=l.type}!s&&(xu in l||Hs in l)&&(s="object")}const u=this.getAvailableKey("newKey",o);mn(o,u,this.getDefaultValue(s)),n(o)}}isRequired(t){const{schema:r}=this.props;return Array.isArray(r.required)&&r.required.indexOf(t)!==-1}getDefaultValue(t){const{registry:{translateString:r}}=this.props;switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return r(Rt.NewStringDefault)}}render(){var t,r,n;const{schema:i,uiSchema:o={},formData:s,errorSchema:u,idSchema:l,name:a,required:c=!1,disabled:h=!1,readonly:f=!1,hideError:d,idPrefix:m,idSeparator:g,onBlur:p,onFocus:v,registry:y}=this.props,{fields:b,formContext:_,schemaUtils:E,translateString:$,globalUiOptions:M}=y,{SchemaField:P}=b,D=E.retrieveSchema(i,s),F=Gt(o,M),{properties:U={}}=D,V=(r=(t=F.title)!==null&&t!==void 0?t:D.title)!==null&&r!==void 0?r:a,A=(n=F.description)!==null&&n!==void 0?n:D.description;let O;try{const S=Object.keys(U);O=n1e(S,F.order)}catch(S){return X.jsxs("div",{children:[X.jsx("p",{className:"config-error",style:{color:"red"},children:X.jsx(sg,{children:$(Rt.InvalidObjectField,[a||"root",S.message])})}),X.jsx("pre",{children:JSON.stringify(D)})]})}const C=jt("ObjectFieldTemplate",y,F),w={title:F.label===!1?"":V,description:F.label===!1?void 0:A,properties:O.map(S=>{const x=Sn(D,[Pr,S,Du]),k=x?o.additionalProperties:o[S],T=Gt(k).widget==="hidden",I=Ze(l,[S],{});return{content:X.jsx(P,{name:S,required:this.isRequired(S),schema:Ze(D,[Pr,S],{}),uiSchema:k,errorSchema:Ze(u,S),idSchema:I,idPrefix:m,idSeparator:g,formData:Ze(s,S),formContext:_,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(S),onChange:this.onPropertyChange(S,x),onBlur:p,onFocus:v,registry:y,disabled:h,readonly:f,hideError:d,onDropPropertyClick:this.onDropPropertyClick},S),name:S,readonly:f,disabled:h,required:c,hidden:T}}),readonly:f,disabled:h,required:c,idSchema:l,uiSchema:o,errorSchema:u,schema:D,formData:s,formContext:_,registry:y};return X.jsx(C,{...w,onAddClick:this.handleAddClick})}}const qve={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Kve(e,t,r,n){const i=t.field,{fields:o,translateString:s}=n;if(typeof i=="function")return i;if(typeof i=="string"&&i in o)return o[i];const u=Ys(e),l=Array.isArray(u)?u[0]:u||"",a=e.$id;let c=qve[l];return a&&a in o&&(c=a),!c&&(e.anyOf||e.oneOf)?()=>null:c in o?o[c]:()=>{const h=jt("UnsupportedFieldTemplate",n,t);return X.jsx(h,{schema:e,idSchema:r,reason:s(Rt.UnknownFieldType,[String(e.type)]),registry:n})}}function Gve(e){const{schema:t,idSchema:r,uiSchema:n,formData:i,errorSchema:o,idPrefix:s,idSeparator:u,name:l,onChange:a,onKeyChange:c,onDropPropertyClick:h,required:f,registry:d,wasPropertyKeyModified:m=!1}=e,{formContext:g,schemaUtils:p,globalUiOptions:v}=d,y=Gt(n,v),b=jt("FieldTemplate",d,y),_=jt("DescriptionFieldTemplate",d,y),E=jt("FieldHelpTemplate",d,y),$=jt("FieldErrorTemplate",d,y),M=p.retrieveSchema(t,i),P=r[Ps],D=Qu(p.toIdSchema(M,P,i,s,u),r),F=G.useCallback((ie,le,Q)=>a(ie,le,Q||P),[P,a]),U=Kve(M,y,D,d),V=!!(e.disabled||y.disabled),A=!!(e.readonly||y.readonly||e.schema.readOnly||M.readOnly),O=y.hideError,C=O===void 0?e.hideError:!!O,w=!!(e.autofocus||y.autofocus);if(Object.keys(M).length===0)return null;const S=p.getDisplayLabel(M,n,v),{__errors:x,...k}=o||{},T=lm(n,["ui:classNames","classNames","ui:style"]);od in T&&(T[od]=lm(T[od],["classNames","style"]));const I=X.jsx(U,{...e,onChange:F,idSchema:D,schema:M,uiSchema:T,disabled:V,readonly:A,hideError:C,autofocus:w,errorSchema:k,formContext:g,rawErrors:x}),L=D[Ps];let z;m?z=l:z=Du in M?l:y.title||e.schema.title||M.title||l;const B=y.description||e.schema.description||M.description||"",W=y.enableMarkdownInDescription?X.jsx(sg,{children:B}):B,N=y.help,q=y.widget==="hidden",j=["form-group","field",`field-${Ys(M)}`];!C&&x&&x.length>0&&j.push("field-error has-error has-danger"),n!=null&&n.classNames&&j.push(n.classNames),y.classNames&&j.push(y.classNames);const R=X.jsx(E,{help:N,idSchema:D,schema:M,uiSchema:n,hasErrors:!C&&x&&x.length>0,registry:d}),H=C||(M.anyOf||M.oneOf)&&!p.isSelect(M)?void 0:X.jsx($,{errors:x,errorSchema:o,idSchema:D,schema:M,uiSchema:n,registry:d}),K={description:X.jsx(_,{id:rl(L),description:W,schema:M,uiSchema:n,registry:d}),rawDescription:B,help:R,rawHelp:typeof N=="string"?N:void 0,errors:H,rawErrors:C?void 0:x,id:L,label:z,hidden:q,onChange:a,onKeyChange:c,onDropPropertyClick:h,required:f,disabled:V,readonly:A,hideError:C,displayLabel:S,classNames:j.join(" ").trim(),style:y.style,formContext:g,formData:i,schema:M,uiSchema:n,registry:d},ee=d.fields.AnyOfField,Y=d.fields.OneOfField,te=(n==null?void 0:n["ui:field"])&&(n==null?void 0:n["ui:fieldReplacesAnyOrOneOf"])===!0;return X.jsx(b,{...K,children:X.jsxs(X.Fragment,{children:[I,M.anyOf&&!te&&!p.isSelect(M)&&X.jsx(ee,{name:l,disabled:V,readonly:A,hideError:C,errorSchema:o,formData:i,formContext:g,idPrefix:s,idSchema:D,idSeparator:u,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M.anyOf.map(ie=>p.retrieveSchema(zi(ie)?ie:{},i)),registry:d,schema:M,uiSchema:n}),M.oneOf&&!te&&!p.isSelect(M)&&X.jsx(Y,{name:l,disabled:V,readonly:A,hideError:C,errorSchema:o,formData:i,formContext:g,idPrefix:s,idSchema:D,idSeparator:u,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M.oneOf.map(ie=>p.retrieveSchema(zi(ie)?ie:{},i)),registry:d,schema:M,uiSchema:n})]})})}class Xve extends G.Component{shouldComponentUpdate(t){return!mi(this.props,t)}render(){return X.jsx(Gve,{...this.props})}}function Yve(e){var t;const{schema:r,name:n,uiSchema:i,idSchema:o,formData:s,required:u,disabled:l=!1,readonly:a=!1,autofocus:c=!1,onChange:h,onBlur:f,onFocus:d,registry:m,rawErrors:g,hideError:p}=e,{title:v,format:y}=r,{widgets:b,formContext:_,schemaUtils:E,globalUiOptions:$}=m,M=E.isSelect(r)?hm(r):void 0;let P=M?"select":"text";y&&e1e(r,y,b)&&(P=y);const{widget:D=P,placeholder:F="",title:U,...V}=Gt(i),A=E.getDisplayLabel(r,i,$),O=(t=U??v)!==null&&t!==void 0?t:n,C=Uo(r,D,b);return X.jsx(C,{options:{...V,enumOptions:M},schema:r,uiSchema:i,id:o.$id,name:n,label:O,hideLabel:!A,hideError:p,value:s,onChange:h,onBlur:f,onFocus:d,required:u,disabled:l,readonly:a,formContext:_,autofocus:c,registry:m,placeholder:F,rawErrors:g})}function Zve(e){const{formData:t,onChange:r}=e;return G.useEffect(()=>{t===void 0&&r(null)},[t,r]),null}function Qve(){return{AnyOfField:y6,ArrayField:I1e,BooleanField:R1e,NumberField:D1e,ObjectField:Wve,OneOfField:y6,SchemaField:Xve,StringField:Yve,NullField:Zve}}function Jve(e){const{idSchema:t,description:r,registry:n,schema:i,uiSchema:o}=e,s=Gt(o,n.globalUiOptions),{label:u=!0}=s;if(!r||!u)return null;const l=jt("DescriptionFieldTemplate",n,s);return X.jsx(l,{id:rl(t),description:r,schema:i,uiSchema:o,registry:n})}function eye(e){const{children:t,className:r,disabled:n,hasToolbar:i,hasMoveDown:o,hasMoveUp:s,hasRemove:u,hasCopy:l,index:a,onCopyIndexClick:c,onDropIndexClick:h,onReorderClick:f,readonly:d,registry:m,uiSchema:g}=e,{CopyButton:p,MoveDownButton:v,MoveUpButton:y,RemoveButton:b}=m.templates.ButtonTemplates,_={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return X.jsxs("div",{className:r,children:[X.jsx("div",{className:i?"col-xs-9":"col-xs-12",children:t}),i&&X.jsx("div",{className:"col-xs-3 array-item-toolbox",children:X.jsxs("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(s||o)&&X.jsx(y,{style:_,disabled:n||d||!s,onClick:f(a,a-1),uiSchema:g,registry:m}),(s||o)&&X.jsx(v,{style:_,disabled:n||d||!o,onClick:f(a,a+1),uiSchema:g,registry:m}),l&&X.jsx(p,{style:_,disabled:n||d,onClick:c(a),uiSchema:g,registry:m}),u&&X.jsx(b,{style:_,disabled:n||d,onClick:h(a),uiSchema:g,registry:m})]})})]})}function tye(e){const{canAdd:t,className:r,disabled:n,idSchema:i,uiSchema:o,items:s,onAddClick:u,readonly:l,registry:a,required:c,schema:h,title:f}=e,d=Gt(o),m=jt("ArrayFieldDescriptionTemplate",a,d),g=jt("ArrayFieldItemTemplate",a,d),p=jt("ArrayFieldTitleTemplate",a,d),{ButtonTemplates:{AddButton:v}}=a.templates;return X.jsxs("fieldset",{className:r,id:i.$id,children:[X.jsx(p,{idSchema:i,title:d.title||f,required:c,schema:h,uiSchema:o,registry:a}),X.jsx(m,{idSchema:i,description:d.description||h.description,schema:h,uiSchema:o,registry:a}),X.jsx("div",{className:"row array-item-list",children:s&&s.map(({key:y,...b})=>X.jsx(g,{...b},y))}),t&&X.jsx(v,{className:"array-item-add",onClick:u,disabled:n||l,uiSchema:o,registry:a})]})}function rye(e){const{idSchema:t,title:r,schema:n,uiSchema:i,required:o,registry:s}=e,u=Gt(i,s.globalUiOptions),{label:l=!0}=u;if(!r||!l)return null;const a=jt("TitleFieldTemplate",s,u);return X.jsx(a,{id:i_(t),title:r,required:o,schema:n,uiSchema:i,registry:s})}function nye(e){const{id:t,name:r,value:n,readonly:i,disabled:o,autofocus:s,onBlur:u,onFocus:l,onChange:a,onChangeOverride:c,options:h,schema:f,uiSchema:d,formContext:m,registry:g,rawErrors:p,type:v,hideLabel:y,hideError:b,..._}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const E={..._,...J$(f,v,h)};let $;E.type==="number"||E.type==="integer"?$=n||n===0?n:"":$=n??"";const M=G.useCallback(({target:{value:F}})=>a(F===""?h.emptyValue:F),[a,h]),P=G.useCallback(({target:{value:F}})=>u(t,F),[u,t]),D=G.useCallback(({target:{value:F}})=>l(t,F),[l,t]);return X.jsxs(X.Fragment,{children:[X.jsx("input",{id:t,name:t,className:"form-control",readOnly:i,disabled:o,autoFocus:s,value:$,...E,list:f.examples?qd(t):void 0,onChange:c||M,onBlur:P,onFocus:D,"aria-describedby":yn(t,!!f.examples)}),Array.isArray(f.examples)&&X.jsx("datalist",{id:qd(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map(F=>X.jsx("option",{value:F},F))},`datalist_${t}`)]})}function iye({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=eA(e);return r?null:X.jsx("div",{children:X.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:t})})}function Tf(e){const{iconType:t="default",icon:r,className:n,uiSchema:i,registry:o,...s}=e;return X.jsx("button",{type:"button",className:`btn btn-${t} ${n}`,...s,children:X.jsx("i",{className:`glyphicon glyphicon-${r}`})})}function oye(e){const{registry:{translateString:t}}=e;return X.jsx(Tf,{title:t(Rt.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function sye(e){const{registry:{translateString:t}}=e;return X.jsx(Tf,{title:t(Rt.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function aye(e){const{registry:{translateString:t}}=e;return X.jsx(Tf,{title:t(Rt.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function lye(e){const{registry:{translateString:t}}=e;return X.jsx(Tf,{title:t(Rt.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function uye({className:e,onClick:t,disabled:r,registry:n}){const{translateString:i}=n;return X.jsx("div",{className:"row",children:X.jsx("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:X.jsx(Tf,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:i(Rt.AddButton),onClick:t,disabled:r,registry:n})})})}function cye(){return{SubmitButton:iye,AddButton:uye,CopyButton:oye,MoveDownButton:sye,MoveUpButton:aye,RemoveButton:lye}}function dye(e){const{id:t,description:r}=e;return r?typeof r=="string"?X.jsx("p",{id:t,className:"field-description",children:r}):X.jsx("div",{id:t,className:"field-description",children:r}):null}function fye({errors:e,registry:t}){const{translateString:r}=t;return X.jsxs("div",{className:"panel panel-danger errors",children:[X.jsx("div",{className:"panel-heading",children:X.jsx("h3",{className:"panel-title",children:r(Rt.ErrorsLabel)})}),X.jsx("ul",{className:"list-group",children:e.map((n,i)=>X.jsx("li",{className:"list-group-item text-danger",children:n.stack},i))})]})}const hye="*";function kA(e){const{label:t,required:r,id:n}=e;return t?X.jsxs("label",{className:"control-label",htmlFor:n,children:[t,r&&X.jsx("span",{className:"required",children:hye})]}):null}function pye(e){const{id:t,label:r,children:n,errors:i,help:o,description:s,hidden:u,required:l,displayLabel:a,registry:c,uiSchema:h}=e,f=Gt(h),d=jt("WrapIfAdditionalTemplate",c,f);return u?X.jsx("div",{className:"hidden",children:n}):X.jsxs(d,{...e,children:[a&&X.jsx(kA,{label:r,required:l,id:t}),a&&s?s:null,n,i,o]})}function mye(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=r_(r);return X.jsx("div",{children:X.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,o)=>X.jsx("li",{className:"text-danger",children:i},o))})})}function gye(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=n_(t);return typeof r=="string"?X.jsx("p",{id:n,className:"help-block",children:r}):X.jsx("div",{id:n,className:"help-block",children:r})}function vye(e){const{description:t,disabled:r,formData:n,idSchema:i,onAddClick:o,properties:s,readonly:u,registry:l,required:a,schema:c,title:h,uiSchema:f}=e,d=Gt(f),m=jt("TitleFieldTemplate",l,d),g=jt("DescriptionFieldTemplate",l,d),{ButtonTemplates:{AddButton:p}}=l.templates;return X.jsxs("fieldset",{id:i.$id,children:[h&&X.jsx(m,{id:i_(i),title:h,required:a,schema:c,uiSchema:f,registry:l}),t&&X.jsx(g,{id:rl(i),description:t,schema:c,uiSchema:f,registry:l}),s.map(v=>v.content),uT(c,f,n)&&X.jsx(p,{className:"object-property-expand",onClick:o(c),disabled:r||u,uiSchema:f,registry:l})]})}const yye="*";function bye(e){const{id:t,title:r,required:n}=e;return X.jsxs("legend",{id:t,children:[r,n&&X.jsx("span",{className:"required",children:yye})]})}function wye(e){const{schema:t,idSchema:r,reason:n,registry:i}=e,{translateString:o}=i;let s=Rt.UnsupportedField;const u=[];return r&&r.$id&&(s=Rt.UnsupportedFieldWithId,u.push(r.$id)),n&&(s=s===Rt.UnsupportedField?Rt.UnsupportedFieldWithReason:Rt.UnsupportedFieldWithIdAndReason,u.push(n)),X.jsxs("div",{className:"unsupported-field",children:[X.jsx("p",{children:X.jsx(sg,{children:o(s,u)})}),t&&X.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function _ye(e){const{id:t,classNames:r,style:n,disabled:i,label:o,onKeyChange:s,onDropPropertyClick:u,readonly:l,required:a,schema:c,children:h,uiSchema:f,registry:d}=e,{templates:m,translateString:g}=d,{RemoveButton:p}=m.ButtonTemplates,v=g(Rt.KeyLabel,[o]);return Du in c?X.jsx("div",{className:r,style:n,children:X.jsxs("div",{className:"row",children:[X.jsx("div",{className:"col-xs-5 form-additional",children:X.jsxs("div",{className:"form-group",children:[X.jsx(kA,{label:v,required:a,id:`${t}-key`}),X.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:b=>s(b.target.value),defaultValue:o})]})}),X.jsx("div",{className:"form-additional form-group col-xs-5",children:h}),X.jsx("div",{className:"col-xs-2",children:X.jsx(p,{className:"array-item-remove btn-block",style:{border:"0"},disabled:i||l,onClick:u(o),uiSchema:f,registry:d})})]})}):X.jsx("div",{className:r,style:n,children:h})}function xye(){return{ArrayFieldDescriptionTemplate:Jve,ArrayFieldItemTemplate:eye,ArrayFieldTemplate:tye,ArrayFieldTitleTemplate:rye,ButtonTemplates:cye(),BaseInputTemplate:nye,DescriptionFieldTemplate:dye,ErrorListTemplate:fye,FieldTemplate:pye,FieldErrorTemplate:mye,FieldHelpTemplate:gye,ObjectFieldTemplate:vye,TitleFieldTemplate:bye,UnsupportedFieldTemplate:wye,WrapIfAdditionalTemplate:_ye}}function Sye(e,t){const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:$o(n,2)});return r}function kye(e){return Object.values(e).every(t=>t!==-1)}function Cye(e,t,r=[1900,new Date().getFullYear()+2]){const{year:n,month:i,day:o,hour:s,minute:u,second:l}=e,a=[{type:"year",range:r,value:n},{type:"month",range:[1,12],value:i},{type:"day",range:[1,31],value:o}];return t&&a.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:u},{type:"second",range:[0,59],value:l}),a}function Eye({type:e,range:t,value:r,select:n,rootId:i,name:o,disabled:s,readonly:u,autofocus:l,registry:a,onBlur:c,onFocus:h}){const f=i+"_"+e,{SelectWidget:d}=a.widgets;return X.jsx(d,{schema:{type:"integer"},id:f,name:o,className:"form-control",options:{enumOptions:Sye(t[0],t[1])},placeholder:e,value:r,disabled:s,readonly:u,autofocus:l,onChange:m=>n(e,m),onBlur:c,onFocus:h,registry:a,label:"","aria-describedby":yn(i)})}function Tye({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:n=!1,options:i,id:o,name:s,registry:u,onBlur:l,onFocus:a,onChange:c,value:h}){const{translateString:f}=u,[d,m]=G.useState(h),[g,p]=G.useReducer((_,E)=>({..._,...E}),ru(h,e));G.useEffect(()=>{const _=pm(g,e);kye(g)&&_!==h?c(_):d!==h&&(m(h),p(ru(h,e)))},[e,h,c,g,d]);const v=G.useCallback((_,E)=>{p({[_]:E})},[]),y=G.useCallback(_=>{if(_.preventDefault(),t||r)return;const E=ru(new Date().toJSON(),e);c(pm(E,e))},[t,r,e]),b=G.useCallback(_=>{_.preventDefault(),!(t||r)&&c(void 0)},[t,r,c]);return X.jsxs("ul",{className:"list-inline",children:[Cye(g,e,i.yearsRange).map((_,E)=>X.jsx("li",{className:"list-inline-item",children:X.jsx(Eye,{rootId:o,name:s,select:v,..._,disabled:t,readonly:r,registry:u,onBlur:l,onFocus:a,autofocus:n&&E===0})},E)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&X.jsx("li",{className:"list-inline-item",children:X.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:y,children:f(Rt.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&X.jsx("li",{className:"list-inline-item",children:X.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:b,children:f(Rt.ClearLabel)})})]})}function $ye({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return X.jsx(r,{time:e,...t})}function Aye({schema:e,uiSchema:t,options:r,id:n,value:i,disabled:o,readonly:s,label:u,hideLabel:l,autofocus:a=!1,onBlur:c,onFocus:h,onChange:f,registry:d}){var m;const g=jt("DescriptionFieldTemplate",d,r),p=sd(e),v=G.useCallback(E=>f(E.target.checked),[f]),y=G.useCallback(E=>c(n,E.target.checked),[c,n]),b=G.useCallback(E=>h(n,E.target.checked),[h,n]),_=(m=r.description)!==null&&m!==void 0?m:e.description;return X.jsxs("div",{className:`checkbox ${o||s?"disabled":""}`,children:[!l&&!!_&&X.jsx(g,{id:rl(n),description:_,schema:e,uiSchema:t,registry:d}),X.jsxs("label",{children:[X.jsx("input",{type:"checkbox",id:n,name:n,checked:typeof i>"u"?!1:i,required:p,disabled:o||s,autoFocus:a,onChange:v,onBlur:y,onFocus:b,"aria-describedby":yn(n)}),os(X.jsx("span",{children:u}),l)]})]})}function Pye({id:e,disabled:t,options:{inline:r=!1,enumOptions:n,enumDisabled:i,emptyValue:o},value:s,autofocus:u=!1,readonly:l,onChange:a,onBlur:c,onFocus:h}){const f=Array.isArray(s)?s:[s],d=G.useCallback(({target:{value:g}})=>c(e,zr(g,n,o)),[c,e]),m=G.useCallback(({target:{value:g}})=>h(e,zr(g,n,o)),[h,e]);return X.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(n)&&n.map((g,p)=>{const v=K0(g.value,f),y=Array.isArray(i)&&i.indexOf(g.value)!==-1,b=t||y||l?"disabled":"",_=$=>{$.target.checked?a(qge(p,f,n)):a(Vge(p,f,n))},E=X.jsxs("span",{children:[X.jsx("input",{type:"checkbox",id:og(e,p),name:e,checked:v,value:String(p),disabled:t||y||l,autoFocus:u&&p===0,onChange:_,onBlur:d,onFocus:m,"aria-describedby":yn(e)}),X.jsx("span",{children:g.label})]});return r?X.jsx("label",{className:`checkbox-inline ${b}`,children:E},p):X.jsx("div",{className:`checkbox ${b}`,children:X.jsx("label",{children:E})},p)})})}function Oye(e){const{disabled:t,readonly:r,options:n,registry:i}=e,o=jt("BaseInputTemplate",i,n);return X.jsx(o,{type:"color",...e,disabled:t||r})}function Mye(e){const{onChange:t,options:r,registry:n}=e,i=jt("BaseInputTemplate",n,r),o=G.useCallback(s=>t(s||void 0),[t]);return X.jsx(i,{type:"date",...e,onChange:o})}function Iye(e){const{onChange:t,value:r,options:n,registry:i}=e,o=jt("BaseInputTemplate",i,n);return X.jsx(o,{type:"datetime-local",...e,value:m1e(r),onChange:s=>t(t1e(s))})}function Rye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{type:"email",...e})}function jye(e,t){return e===null?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function Nye(e){const{name:t,size:r,type:n}=e;return new Promise((i,o)=>{const s=new window.FileReader;s.onerror=o,s.onload=u=>{var l;typeof((l=u.target)===null||l===void 0?void 0:l.result)=="string"?i({dataURL:jye(u.target.result,t),name:t,size:r,type:n}):i({dataURL:null,name:t,size:r,type:n})},s.readAsDataURL(e)})}function Dye(e){return Promise.all(Array.from(e).map(Nye))}function Fye({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:i,name:o}=e;return n?i.indexOf("image")!==-1?X.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):X.jsxs(X.Fragment,{children:[" ",X.jsx("a",{download:`preview-${o}`,href:n,className:"file-download",children:r(Rt.PreviewLabel)})]}):null}function Lye({filesInfo:e,registry:t,preview:r}){if(e.length===0)return null;const{translateString:n}=t;return X.jsx("ul",{className:"file-info",children:e.map((i,o)=>{const{name:s,size:u,type:l}=i;return X.jsxs("li",{children:[X.jsx(sg,{children:n(Rt.FilesInfo,[s,l,String(u)])}),r&&X.jsx(Fye,{fileInfo:i,registry:t})]},o)})})}function E6(e){return e.filter(t=>t).map(t=>{const{blob:r,name:n}=Lge(t);return{dataURL:t,name:n,size:r.size,type:r.type}})}function Bye(e){const{disabled:t,readonly:r,required:n,multiple:i,onChange:o,value:s,options:u,registry:l}=e,a=jt("BaseInputTemplate",l,u),[c,h]=G.useState(Array.isArray(s)?E6(s):E6([s])),f=G.useCallback(d=>{d.target.files&&Dye(d.target.files).then(m=>{const g=m.map(p=>p.dataURL);i?(h(c.concat(m[0])),o(s.concat(g[0]))):(h(m),o(g[0]))})},[i,s,c,o]);return X.jsxs("div",{children:[X.jsx(a,{...e,disabled:t||r,type:"file",required:s?!1:n,onChangeOverride:f,value:"",accept:u.accept?String(u.accept):void 0}),X.jsx(Lye,{filesInfo:c,registry:l,preview:u.filePreview})]})}function zye({id:e,value:t}){return X.jsx("input",{type:"hidden",id:e,name:e,value:typeof t>"u"?"":t})}function Vye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{type:"password",...e})}function Uye({options:e,value:t,required:r,disabled:n,readonly:i,autofocus:o=!1,onBlur:s,onFocus:u,onChange:l,id:a}){const{enumOptions:c,enumDisabled:h,inline:f,emptyValue:d}=e,m=G.useCallback(({target:{value:p}})=>s(a,zr(p,c,d)),[s,a]),g=G.useCallback(({target:{value:p}})=>u(a,zr(p,c,d)),[u,a]);return X.jsx("div",{className:"field-radio-group",id:a,children:Array.isArray(c)&&c.map((p,v)=>{const y=K0(p.value,t),b=Array.isArray(h)&&h.indexOf(p.value)!==-1,_=n||b||i?"disabled":"",E=()=>l(p.value),$=X.jsxs("span",{children:[X.jsx("input",{type:"radio",id:og(a,v),checked:y,name:a,required:r,value:String(v),disabled:n||b||i,autoFocus:o&&v===0,onChange:E,onBlur:m,onFocus:g,"aria-describedby":yn(a)}),X.jsx("span",{children:p.label})]});return f?X.jsx("label",{className:`radio-inline ${_}`,children:$},v):X.jsx("div",{className:`radio ${_}`,children:X.jsx("label",{children:$})},v)})})}function Hye(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return X.jsxs("div",{className:"field-range-wrapper",children:[X.jsx(r,{type:"range",...e}),X.jsx("span",{className:"range-view",children:t})]})}function z1(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function Wye({schema:e,id:t,options:r,value:n,required:i,disabled:o,readonly:s,multiple:u=!1,autofocus:l=!1,onChange:a,onBlur:c,onFocus:h,placeholder:f}){const{enumOptions:d,enumDisabled:m,emptyValue:g}=r,p=u?[]:"",v=G.useCallback(E=>{const $=z1(E,u);return h(t,zr($,d,g))},[h,t,e,u,r]),y=G.useCallback(E=>{const $=z1(E,u);return c(t,zr($,d,g))},[c,t,e,u,r]),b=G.useCallback(E=>{const $=z1(E,u);return a(zr($,d,g))},[a,e,u,r]),_=G0(n,d,u);return X.jsxs("select",{id:t,name:t,multiple:u,className:"form-control",value:typeof _>"u"?p:_,required:i,disabled:o||s,autoFocus:l,onBlur:y,onFocus:v,onChange:b,"aria-describedby":yn(t),children:[!u&&e.default===void 0&&X.jsx("option",{value:"",children:f}),Array.isArray(d)&&d.map(({value:E,label:$},M)=>{const P=m&&m.indexOf(E)!==-1;return X.jsx("option",{value:String(M),disabled:P,children:$},M)})]})}function CA({id:e,options:t={},placeholder:r,value:n,required:i,disabled:o,readonly:s,autofocus:u=!1,onChange:l,onBlur:a,onFocus:c}){const h=G.useCallback(({target:{value:m}})=>l(m===""?t.emptyValue:m),[l,t.emptyValue]),f=G.useCallback(({target:{value:m}})=>a(e,m),[a,e]),d=G.useCallback(({target:{value:m}})=>c(e,m),[e,c]);return X.jsx("textarea",{id:e,name:e,className:"form-control",value:n||"",placeholder:r,required:i,disabled:o,readOnly:s,autoFocus:u,rows:t.rows,onBlur:f,onFocus:d,onChange:h,"aria-describedby":yn(e)})}CA.defaultProps={autofocus:!1,options:{}};function qye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{...e})}function Kye(e){const{onChange:t,options:r,registry:n}=e,i=jt("BaseInputTemplate",n,r),o=G.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return X.jsx(i,{type:"time",...e,onChange:o})}function Gye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{type:"url",...e})}function Xye(e){const{options:t,registry:r}=e,n=jt("BaseInputTemplate",r,t);return X.jsx(n,{type:"number",...e})}function Yye(){return{AltDateWidget:Tye,AltDateTimeWidget:$ye,CheckboxWidget:Aye,CheckboxesWidget:Pye,ColorWidget:Oye,DateWidget:Mye,DateTimeWidget:Iye,EmailWidget:Rye,FileWidget:Bye,HiddenWidget:zye,PasswordWidget:Vye,RadioWidget:Uye,RangeWidget:Hye,SelectWidget:Wye,TextWidget:qye,TextareaWidget:CA,TimeWidget:Kye,UpDownWidget:Xye,URLWidget:Gye}}function Zye(){return{fields:Qve(),templates:xye(),widgets:Yye(),rootSchema:{},formContext:{},translateString:zge}}let Qye=class extends G.Component{constructor(t){if(super(t),this.getUsedFormData=(r,n)=>{if(n.length===0&&typeof r!="object")return r;const i=O1e(r,n);return Array.isArray(r)?Object.keys(i).map(o=>i[o]):i},this.getFieldNames=(r,n)=>{const i=(o,s=[],u=[[]])=>(Object.keys(o).forEach(l=>{if(typeof o[l]=="object"){const a=u.map(c=>[...c,l]);o[l][pw]&&o[l][sp]!==""?s.push(o[l][sp]):i(o[l],s,a)}else l===sp&&o[l]!==""&&u.forEach(a=>{const c=Ze(n,a);(typeof c!="object"||Va(c)||Array.isArray(c)&&c.every(h=>typeof h!="object"))&&s.push(a)})}),s);return i(r)},this.onChange=(r,n,i)=>{const{extraErrors:o,omitExtraData:s,liveOmit:u,noValidate:l,liveValidate:a,onChange:c}=this.props,{schemaUtils:h,schema:f,retrievedSchema:d}=this.state;(kr(r)||Array.isArray(r))&&(r=this.getStateFromProps(this.props,r,d).formData);const m=!l&&a;let g={formData:r,schema:f},p=r,v;if(s===!0&&u===!0){v=h.retrieveSchema(f,r);const y=h.toPathSchema(v,"",r),b=this.getFieldNames(y,r);p=this.getUsedFormData(r,b),g={formData:p}}if(m){const y=this.validate(p,f,h,d);let b=y.errors,_=y.errorSchema;const E=b,$=_;if(o){const M=cp(y,o);_=M.errorSchema,b=M.errors}g={formData:p,errors:b,errorSchema:_,schemaValidationErrors:E,schemaValidationErrorSchema:$}}else if(!l&&n){const y=o?Qu(n,o,"preventDuplicates"):n;g={formData:p,errorSchema:y,errors:Kd(y)}}v&&(g.retrievedSchema=v),this.setState(g,()=>c&&c({...this.state,...g},i))},this.reset=()=>{const{onChange:r}=this.props,o={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(o,()=>r&&r({...this.state,...o}))},this.onBlur=(r,n)=>{const{onBlur:i}=this.props;i&&i(r,n)},this.onFocus=(r,n)=>{const{onFocus:i}=this.props;i&&i(r,n)},this.onSubmit=r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:n,extraErrors:i,noValidate:o,onSubmit:s}=this.props;let{formData:u}=this.state;const{schema:l,schemaUtils:a}=this.state;if(n===!0){const c=a.retrieveSchema(l,u),h=a.toPathSchema(c,"",u),f=this.getFieldNames(h,u);u=this.getUsedFormData(u,f)}if(o||this.validateForm()){const c=i||{},h=i?Kd(i):[];this.setState({formData:u,errors:h,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s({...this.state,formData:u,status:"submitted"},r)})}},!t.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(t,t.formData),this.props.onChange&&!mi(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=G.createRef()}getSnapshotBeforeUpdate(t,r){if(!mi(this.props,t)){const n=this.getStateFromProps(this.props,this.props.formData,t.schema!==this.props.schema?void 0:this.state.retrievedSchema),i=!mi(n,r);return{nextState:n,shouldUpdate:i}}return{shouldUpdate:!1}}componentDidUpdate(t,r,n){if(n.shouldUpdate){const{nextState:i}=n;!mi(i.formData,this.props.formData)&&!mi(i.formData,r.formData)&&this.props.onChange&&this.props.onChange(i),this.setState(i)}}getStateFromProps(t,r,n){const i=this.state||{},o="schema"in t?t.schema:this.props.schema,s=("uiSchema"in t?t.uiSchema:this.props.uiSchema)||{},u=typeof r<"u",l="liveValidate"in t?t.liveValidate:this.props.liveValidate,a=u&&!t.noValidate&&l,c=o,h="experimental_defaultFormStateBehavior"in t?t.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let f=i.schemaUtils;(!f||f.doesSchemaUtilsDiffer(t.validator,c,h))&&(f=Fge(t.validator,c,h));const d=f.getDefaultFormState(o,r),m=n??f.retrieveSchema(o,d),g=()=>t.noValidate?{errors:[],errorSchema:{}}:t.liveValidate?{errors:i.errors||[],errorSchema:i.errorSchema||{}}:{errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};let p,v,y=i.schemaValidationErrors,b=i.schemaValidationErrorSchema;if(a){const $=this.validate(d,o,f,m);p=$.errors,v=$.errorSchema,y=p,b=v}else{const $=g();p=$.errors,v=$.errorSchema}if(t.extraErrors){const $=cp({errorSchema:v,errors:p},t.extraErrors);v=$.errorSchema,p=$.errors}const _=f.toIdSchema(m,s["ui:rootFieldId"],d,t.idPrefix,t.idSeparator);return{schemaUtils:f,schema:o,uiSchema:s,idSchema:_,formData:d,edit:u,errors:p,errorSchema:v,schemaValidationErrors:y,schemaValidationErrorSchema:b,retrievedSchema:m}}shouldComponentUpdate(t,r){return i1e(this,t,r)}validate(t,r=this.props.schema,n,i){const o=n||this.state.schemaUtils,{customValidate:s,transformErrors:u,uiSchema:l}=this.props,a=i??o.retrieveSchema(r,t);return o.getValidator().validateFormData(t,a,s,u,l)}renderErrors(t){const{errors:r,errorSchema:n,schema:i,uiSchema:o}=this.state,{formContext:s}=this.props,u=Gt(o),l=jt("ErrorListTemplate",t,u);return r&&r.length?X.jsx(l,{errors:r,errorSchema:n||{},schema:i,uiSchema:o,formContext:s,registry:t}):null}getRegistry(){var t;const{translateString:r,uiSchema:n={}}=this.props,{schemaUtils:i}=this.state,{fields:o,templates:s,widgets:u,formContext:l,translateString:a}=Zye();return{fields:{...o,...this.props.fields},templates:{...s,...this.props.templates,ButtonTemplates:{...s.ButtonTemplates,...(t=this.props.templates)===null||t===void 0?void 0:t.ButtonTemplates}},widgets:{...u,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||l,schemaUtils:i,translateString:r||a,globalUiOptions:n[GZ]}}submit(){this.formElement.current&&(this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:!0})),this.formElement.current.requestSubmit())}focusOnError(t){const{idPrefix:r="root",idSeparator:n="_"}=this.props,{property:i}=t,o=nA(i);o[0]===""?o[0]=r:o.unshift(r);const s=o.join(n);let u=this.formElement.current.elements[s];u||(u=this.formElement.current.querySelector(`input[id^=${s}`)),u&&u.length&&(u=u[0]),u&&u.focus()}validateForm(){const{extraErrors:t,extraErrorsBlockSubmit:r,focusOnFirstError:n,onError:i}=this.props,{formData:o,errors:s}=this.state,u=this.validate(o);let l=u.errors,a=u.errorSchema;const c=l,h=a,f=l.length>0||t&&r;if(f){if(t){const d=cp(u,t);a=d.errorSchema,l=d.errors}n&&(typeof n=="function"?n(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:a,schemaValidationErrors:c,schemaValidationErrorSchema:h},()=>{i?i(l):console.error("Form validation failed",l)})}else s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!f}render(){const{children:t,id:r,idPrefix:n,idSeparator:i,className:o="",tagName:s,name:u,method:l,target:a,action:c,autoComplete:h,enctype:f,acceptcharset:d,noHtml5Validate:m=!1,disabled:g=!1,readonly:p=!1,formContext:v,showErrorList:y="top",_internalFormWrapper:b}=this.props,{schema:_,uiSchema:E,formData:$,errorSchema:M,idSchema:P}=this.state,D=this.getRegistry(),{SchemaField:F}=D.fields,{SubmitButton:U}=D.templates.ButtonTemplates,V=b?s:void 0,A=b||s||"form";let{[nm]:O={}}=Gt(E);g&&(O={...O,props:{...O.props,disabled:!0}});const C={[od]:{[nm]:O}};return X.jsxs(A,{className:o||"rjsf",id:r,name:u,method:l,target:a,action:c,autoComplete:h,encType:f,acceptCharset:d,noValidate:m,onSubmit:this.onSubmit,as:V,ref:this.formElement,children:[y==="top"&&this.renderErrors(D),X.jsx(F,{name:"",schema:_,uiSchema:E,errorSchema:M,idSchema:P,idPrefix:n,idSeparator:i,formContext:v,formData:$,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:D,disabled:g,readonly:p}),t||X.jsx(U,{uiSchema:C,registry:D}),y==="bottom"&&this.renderErrors(D)]})}};function Jye(e){return G.forwardRef(({fields:t,widgets:r,templates:n,...i},o)=>{var s;return t={...e==null?void 0:e.fields,...t},r={...e==null?void 0:e.widgets,...r},n={...e==null?void 0:e.templates,...n,ButtonTemplates:{...(s=e==null?void 0:e.templates)===null||s===void 0?void 0:s.ButtonTemplates,...n==null?void 0:n.ButtonTemplates}},X.jsx(Qye,{...e,...i,fields:t,widgets:r,templates:n,ref:o})})}var ebe=Nu({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),tbe=Nu({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),rbe=Nu({displayName:"DeleteIcon",path:X.jsx("g",{fill:"currentColor",children:X.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),nbe=Nu({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"}),ibe=Nu({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),obe=Nu({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});function sbe({uiSchema:e,registry:t,...r}){const{translateString:n}=t;return X.jsx(pi,{leftIcon:X.jsx(nbe,{}),...r,children:n(Rt.AddItemButton)})}function abe(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:i,hasMoveDown:o,hasMoveUp:s,hasRemove:u,index:l,onCopyIndexClick:a,onDropIndexClick:c,onReorderClick:h,readonly:f,uiSchema:d,registry:m}=e,{CopyButton:g,MoveDownButton:p,MoveUpButton:v,RemoveButton:y}=m.templates.ButtonTemplates,b=G.useMemo(()=>a(l),[l,a]),_=G.useMemo(()=>c(l),[l,c]),E=G.useMemo(()=>h(l,l-1),[l,h]),$=G.useMemo(()=>h(l,l+1),[l,h]);return X.jsxs(OE,{alignItems:"flex-end",py:1,children:[X.jsx(nr,{w:"100%",children:t}),n&&X.jsx(nr,{children:X.jsxs(uE,{isAttached:!0,mb:1,children:[(s||o)&&X.jsx(v,{disabled:r||f||!s,onClick:E,uiSchema:d,registry:m}),(s||o)&&X.jsx(p,{disabled:r||f||!o,onClick:$,uiSchema:d,registry:m}),i&&X.jsx(g,{disabled:r||f,onClick:b,uiSchema:d,registry:m}),u&&X.jsx(y,{disabled:r||f,onClick:_,uiSchema:d,registry:m})]})})]})}function lbe(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:i,items:o,onAddClick:s,readonly:u,registry:l,required:a,schema:c,title:h}=e,f=Gt(i),d=jt("ArrayFieldDescriptionTemplate",l,f),m=jt("ArrayFieldItemTemplate",l,f),g=jt("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:p}}=l.templates;return X.jsxs(nr,{children:[X.jsx(g,{idSchema:n,title:f.title||h,schema:c,uiSchema:i,required:a,registry:l}),X.jsx(d,{idSchema:n,description:f.description||c.description,schema:c,uiSchema:i,registry:l}),X.jsxs(S0,{children:[X.jsx(Vs,{children:o.length>0&&o.map(({key:v,...y})=>X.jsx(m,{...y},v))}),t&&X.jsx(Vs,{justifySelf:"flex-end",children:X.jsx(nr,{mt:2,children:X.jsx(p,{className:"array-item-add",onClick:s,disabled:r||u,uiSchema:i,registry:l})})})]},`array-item-list-${n.$id}`)]})}function na({uiSchema:e={}}){const t=e["ui:options"]&&e["ui:options"].chakra||{};return Object.keys(t).forEach(r=>{PC(r)&&delete t[r]}),t}function ube(e){const{id:t,type:r,value:n,label:i,hideLabel:o,schema:s,uiSchema:u,onChange:l,onChangeOverride:a,onBlur:c,onFocus:h,options:f,required:d,readonly:m,rawErrors:g,autofocus:p,placeholder:v,disabled:y}=e,b=J$(s,r,f),_=na({uiSchema:u}),E=({target:{value:P}})=>l(P===""?f.emptyValue:P),$=({target:{value:P}})=>c(t,P),M=({target:{value:P}})=>h(t,P);return X.jsxs(Yi,{mb:1,..._,isDisabled:y||m,isRequired:d,isReadOnly:m,isInvalid:g&&g.length>0,children:[os(X.jsx(rs,{htmlFor:t,id:`${t}-label`,children:i}),o||!i),X.jsx(x0,{id:t,name:t,value:n||n===0?n:"",onChange:a||E,onBlur:$,onFocus:M,autoFocus:p,placeholder:v,...b,list:s.examples?qd(t):void 0,"aria-describedby":yn(t,!!s.examples)}),Array.isArray(s.examples)?X.jsx("datalist",{id:qd(t),children:s.examples.concat(s.default&&!s.examples.includes(s.default)?[s.default]:[]).map(P=>X.jsx("option",{value:P},P))}):null]})}function cbe({description:e,id:t}){return e?typeof e=="string"?X.jsx(hf,{id:t,mt:2,mb:4,children:e}):X.jsx(X.Fragment,{children:e}):null}function dbe({errors:e,registry:t}){const{translateString:r}=t;return X.jsxs(Y2,{flexDirection:"column",alignItems:"flex-start",gap:3,status:"error",children:[X.jsx(X2,{children:r(Rt.ErrorsLabel)}),X.jsx(ff,{children:e.map((n,i)=>X.jsxs(rw,{children:[X.jsx(TE,{as:ebe,color:"red.500"}),n.stack]},i))})]})}function EA(e){const{icon:t,iconType:r,uiSchema:n,registry:i,...o}=e;return X.jsx(cE,{"aria-label":e.title,...o,icon:t})}EA.displayName="ChakraIconButton";const ag=G.memo(EA);function fbe(e){const{registry:{translateString:t}}=e;return X.jsx(ag,{title:t(Rt.CopyButton),...e,icon:X.jsx(tbe,{})})}function hbe(e){const{registry:{translateString:t}}=e;return X.jsx(ag,{title:t(Rt.MoveDownButton),...e,icon:X.jsx(ibe,{})})}function pbe(e){const{registry:{translateString:t}}=e;return X.jsx(ag,{title:t(Rt.MoveUpButton),...e,icon:X.jsx(obe,{})})}function mbe(e){const{registry:{translateString:t}}=e;return X.jsx(ag,{title:t(Rt.RemoveButton),...e,icon:X.jsx(rbe,{})})}function gbe(e){const{errors:t=[],idSchema:r}=e;if(t.length===0)return null;const n=r_(r);return X.jsx(ff,{children:t.map((i,o)=>X.jsx(rw,{children:X.jsx(pE,{id:n,children:i})},o))})}function vbe(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=n_(t);return X.jsx(hE,{id:n,children:r})}function ybe(e){const{id:t,children:r,classNames:n,style:i,disabled:o,displayLabel:s,hidden:u,label:l,onDropPropertyClick:a,onKeyChange:c,readonly:h,registry:f,required:d,rawErrors:m=[],errors:g,help:p,description:v,rawDescription:y,schema:b,uiSchema:_}=e,E=Gt(_),$=jt("WrapIfAdditionalTemplate",f,E);return u?X.jsx("div",{style:{display:"none"},children:r}):X.jsx($,{classNames:n,style:i,disabled:o,id:t,label:l,onDropPropertyClick:a,onKeyChange:c,readonly:h,required:d,schema:b,uiSchema:_,registry:f,children:X.jsxs(Yi,{isRequired:d,isInvalid:m&&m.length>0,children:[r,s&&y?X.jsx(hf,{mt:2,children:v}):null,g,p]})})}function bbe(e){const{description:t,title:r,properties:n,required:i,disabled:o,readonly:s,uiSchema:u,idSchema:l,schema:a,formData:c,onAddClick:h,registry:f}=e,d=Gt(u),m=jt("TitleFieldTemplate",f,d),g=jt("DescriptionFieldTemplate",f,d),{ButtonTemplates:{AddButton:p}}=f.templates;return X.jsxs(X.Fragment,{children:[r&&X.jsx(m,{id:i_(l),title:r,required:i,schema:a,uiSchema:u,registry:f}),t&&X.jsx(g,{id:rl(l),description:t,schema:a,uiSchema:u,registry:f}),X.jsxs(S0,{gap:t?2:6,mb:4,children:[n.map((v,y)=>v.hidden?v.content:X.jsx(Vs,{children:v.content},`${l.$id}-${v.name}-${y}`)),uT(a,u,c)&&X.jsx(Vs,{justifySelf:"flex-end",children:X.jsx(p,{className:"object-property-expand",onClick:h(a),disabled:o||s,uiSchema:u,registry:f})})]})]})}function wbe({uiSchema:e}){const{submitText:t,norender:r,props:n}=eA(e);return r?null:X.jsx(nr,{marginTop:3,children:X.jsx(pi,{type:"submit",variant:"solid",...n,children:t})})}function _be({id:e,title:t}){return X.jsxs(nr,{id:e,mt:1,mb:4,children:[X.jsx(nw,{as:"h5",children:t}),X.jsx(iw,{})]})}function xbe(e){const{children:t,classNames:r,style:n,disabled:i,id:o,label:s,onDropPropertyClick:u,onKeyChange:l,readonly:a,registry:c,required:h,schema:f,uiSchema:d}=e,{templates:m,translateString:g}=c,{RemoveButton:p}=m.ButtonTemplates,v=g(Rt.KeyLabel,[s]);if(!(Du in f))return X.jsx("div",{className:r,style:n,children:t});const b=({target:_})=>l(_.value);return X.jsxs(S0,{className:r,style:n,alignItems:"center",gap:2,children:[X.jsx(Vs,{children:X.jsxs(Yi,{isRequired:h,children:[X.jsx(rs,{htmlFor:`${o}-key`,id:`${o}-key-label`,children:v}),X.jsx(x0,{defaultValue:s,disabled:i||a,id:`${o}-key`,name:`${o}-key`,onBlur:a?void 0:b,type:"text",mb:1})]})}),X.jsx(Vs,{children:t}),X.jsx(Vs,{children:X.jsx(p,{disabled:i||a,onClick:u(s),uiSchema:d,registry:c})})]},`${o}-key`)}function Sbe(){return{ArrayFieldItemTemplate:abe,ArrayFieldTemplate:lbe,BaseInputTemplate:ube,ButtonTemplates:{CopyButton:fbe,AddButton:sbe,MoveDownButton:hbe,MoveUpButton:pbe,RemoveButton:mbe,SubmitButton:wbe},DescriptionFieldTemplate:cbe,ErrorListTemplate:dbe,FieldErrorTemplate:gbe,FieldHelpTemplate:vbe,FieldTemplate:ybe,ObjectFieldTemplate:bbe,TitleFieldTemplate:_be,WrapIfAdditionalTemplate:xbe}}const kbe=(e,t)=>{const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:$o(n,2)});return r};function Cbe(e){const{SelectWidget:t}=e.registry.widgets,r=e.value?e.value:void 0;return X.jsx(t,{...e,label:"",className:"form-control",onChange:n=>e.select(e.type,n),options:{enumOptions:kbe(e.range[0],e.range[1])},placeholder:e.type,schema:{type:"integer"},value:r,"aria-describedby":yn(e.name)})}const Ebe=e=>Object.keys(e).every(t=>typeof e[t]<"u"&&e[t]!==-1);function l_(e){const{autofocus:t,disabled:r,id:n,onBlur:i,onChange:o,onFocus:s,options:u,readonly:l,registry:a,showTime:c,value:h}=e,{translateString:f}=a,[d,m]=G.useState(ru(h,c));G.useEffect(()=>{m(ru(h,c))},[c,h]);const g=(b,_)=>{const E={...d,[b]:typeof _>"u"?-1:_};Ebe(E)?o(pm(E,c)):m(E)},p=b=>{if(b.preventDefault(),r||l)return;const _=ru(new Date().toJSON(),c);o(pm(_,c))},v=b=>{b.preventDefault(),!(r||l)&&o(void 0)},y=()=>{const{year:b,month:_,day:E,hour:$,minute:M,second:P}=d,D=[{type:"year",range:u.yearsRange,value:b},{type:"month",range:[1,12],value:_},{type:"day",range:[1,31],value:E}];return c&&D.push({type:"hour",range:[0,23],value:$},{type:"minute",range:[0,59],value:M},{type:"second",range:[0,59],value:P}),D};return X.jsxs(nr,{children:[X.jsx(nr,{display:"flex",flexWrap:"wrap",alignItems:"center",children:y().map((b,_)=>{const E=n+"_"+b.type;return X.jsx(nr,{mr:"2",mb:"2",children:X.jsx(Cbe,{...e,...b,autofocus:t&&_===0,disabled:r,id:E,name:n,onBlur:i,onFocus:s,readonly:l,registry:a,select:g,value:b.value<0?"":b.value})},E)})}),X.jsxs(nr,{display:"flex",children:[!u.hideNowButton&&X.jsx(pi,{onClick:b=>p(b),mr:"2",children:f(Rt.NowLabel)}),!u.hideClearButton&&X.jsx(pi,{onClick:b=>v(b),children:f(Rt.ClearLabel)})]})]})}l_.defaultProps={autofocus:!1,disabled:!1,readonly:!1,showTime:!1,options:{yearsRange:[1900,new Date().getFullYear()+2]}};function TA(e){const{AltDateWidget:t}=e.registry.widgets;return X.jsx(t,{...e,showTime:!0})}TA.defaultProps={...l_.defaultProps,showTime:!0};function Tbe(e){const{id:t,value:r,disabled:n,readonly:i,onChange:o,onBlur:s,onFocus:u,label:l,hideLabel:a,registry:c,options:h,uiSchema:f,schema:d}=e,m=na({uiSchema:f}),g=sd(d),p=jt("DescriptionFieldTemplate",c,h),v=h.description||d.description,y=({target:{checked:E}})=>o(E),b=({target:{value:E}})=>s(t,E),_=({target:{value:E}})=>u(t,E);return X.jsxs(Yi,{mb:1,...m,isRequired:g,children:[!a&&!!v&&X.jsx(p,{id:rl(t),description:v,schema:d,uiSchema:f,registry:c}),X.jsx(ew,{id:t,name:t,isChecked:typeof r>"u"?!1:r,isDisabled:n||i,onChange:y,onBlur:b,onFocus:_,"aria-describedby":yn(t),children:os(X.jsx(hf,{children:l}),a||!l)})]})}function $be(e){const{id:t,disabled:r,options:n,value:i,readonly:o,onChange:s,onBlur:u,onFocus:l,required:a,label:c,hideLabel:h,uiSchema:f,rawErrors:d=[]}=e,{enumOptions:m,enumDisabled:g,emptyValue:p}=n,v=na({uiSchema:f}),y=Array.isArray(i)?i:[i],b=({target:{value:M}})=>u(t,zr(M,m,p)),_=({target:{value:M}})=>l(t,zr(M,m,p)),E=n?n.inline:!1,$=G0(i,m,!0);return X.jsxs(Yi,{mb:1,...v,isDisabled:r||o,isRequired:a,isReadOnly:o,isInvalid:d&&d.length>0,children:[os(X.jsx(rs,{htmlFor:t,id:`${t}-label`,children:c}),h||!c),X.jsx(dE,{onChange:M=>s(zr(M,m,p)),defaultValue:$,"aria-describedby":yn(t),children:X.jsx(vu,{direction:E?"row":"column",children:Array.isArray(m)&&m.map((M,P)=>{const D=K0(M.value,y),F=Array.isArray(g)&&g.indexOf(M.value)!==-1;return X.jsx(ew,{id:og(t,P),name:t,value:String(P),isChecked:D,isDisabled:r||F||o,onBlur:b,onFocus:_,children:M.label&&X.jsx(hf,{children:M.label})},P)})})})]})}function Abe({id:e,options:t,value:r,required:n,disabled:i,readonly:o,label:s,hideLabel:u,onChange:l,onBlur:a,onFocus:c,uiSchema:h}){var f;const{enumOptions:d,enumDisabled:m,emptyValue:g}=t,p=na({uiSchema:h}),v=$=>l(zr($,d,g)),y=({target:{value:$}})=>a(e,zr($,d,g)),b=({target:{value:$}})=>c(e,zr($,d,g)),_=t?t.inline:!1,E=(f=G0(r,d))!==null&&f!==void 0?f:null;return X.jsxs(Yi,{mb:1,...p,isDisabled:i||o,isRequired:n,isReadOnly:o,children:[os(X.jsx(rs,{htmlFor:e,id:`${e}-label`,children:s}),u||!s),X.jsx(QE,{onChange:v,onBlur:y,onFocus:b,value:E,name:e,"aria-describedby":yn(e),children:X.jsx(vu,{direction:_?"row":"column",children:Array.isArray(d)&&d.map(($,M)=>{const P=Array.isArray(m)&&m.indexOf($.value)!==-1;return X.jsx(JE,{value:String(M),id:og(e,M),disabled:i||P||o,children:$.label},M)})})})]})}function Pbe({value:e,readonly:t,disabled:r,onBlur:n,onFocus:i,options:o,schema:s,uiSchema:u,onChange:l,label:a,hideLabel:c,id:h}){const f=na({uiSchema:u}),d={value:e,label:a,id:h,...Q$(s)},m=v=>l(v===void 0?o.emptyValue:v),g=({target:{value:v}})=>n(h,v),p=({target:{value:v}})=>i(h,v);return X.jsxs(Yi,{mb:1,...f,children:[os(X.jsx(rs,{htmlFor:h,children:a}),c||!a),X.jsxs(nT,{...d,id:h,name:h,isDisabled:r||t,onChange:m,onBlur:g,onFocus:p,"aria-describedby":yn(h),children:[X.jsx(oT,{children:X.jsx(sT,{})}),X.jsx(iT,{})]})]})}function T6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Rbe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function jbe(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,i=n===void 0?!1:n,o=e.defaultValue,s=o===void 0?null:o,u=e.inputValue,l=e.menuIsOpen,a=e.onChange,c=e.onInputChange,h=e.onMenuClose,f=e.onMenuOpen,d=e.value,m=ss(e,Rbe),g=G.useState(u!==void 0?u:r),p=Ho(g,2),v=p[0],y=p[1],b=G.useState(l!==void 0?l:i),_=Ho(b,2),E=_[0],$=_[1],M=G.useState(d!==void 0?d:s),P=Ho(M,2),D=P[0],F=P[1],U=G.useCallback(function(x,k){typeof a=="function"&&a(x,k),F(x)},[a]),V=G.useCallback(function(x,k){var T;typeof c=="function"&&(T=c(x,k)),y(T!==void 0?T:x)},[c]),A=G.useCallback(function(){typeof f=="function"&&f(),$(!0)},[f]),O=G.useCallback(function(){typeof h=="function"&&h(),$(!1)},[h]),C=u!==void 0?u:v,w=l!==void 0?l:E,S=d!==void 0?d:D;return at(at({},m),{},{inputValue:C,menuIsOpen:w,onChange:U,onInputChange:V,onMenuClose:O,onMenuOpen:A,value:S})}function Nbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $6(e,t){for(var r=0;r"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}}function Bbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zbe(e,t){if(t&&(Ba(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bbe(e)}function Vbe(e){var t=Lbe();return function(){var n=mm(e),i;if(t){var o=mm(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return zbe(this,i)}}function Ube(e){if(Array.isArray(e))return Ky(e)}function Hbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wbe(){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 AA(e){return Ube(e)||Hbe(e)||$A(e)||Wbe()}function qbe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Kbe=Math.min,Gbe=Math.max,gm=Math.round,yh=Math.floor,vm=e=>({x:e,y:e});function Xbe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function PA(e){return MA(e)?(e.nodeName||"").toLowerCase():"#document"}function Hi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function OA(e){var t;return(t=(MA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function MA(e){return e instanceof Node||e instanceof Hi(e).Node}function Gy(e){return e instanceof Element||e instanceof Hi(e).Element}function u_(e){return e instanceof HTMLElement||e instanceof Hi(e).HTMLElement}function A6(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Hi(e).ShadowRoot}function IA(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=c_(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function Ybe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zbe(e){return["html","body","#document"].includes(PA(e))}function c_(e){return Hi(e).getComputedStyle(e)}function Qbe(e){if(PA(e)==="html")return e;const t=e.assignedSlot||e.parentNode||A6(e)&&e.host||OA(e);return A6(t)?t.host:t}function RA(e){const t=Qbe(e);return Zbe(t)?e.ownerDocument?e.ownerDocument.body:e.body:u_(t)&&IA(t)?t:RA(t)}function ym(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=RA(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Hi(i);return o?t.concat(s,s.visualViewport||[],IA(i)?i:[],s.frameElement&&r?ym(s.frameElement):[]):t.concat(i,ym(i,[],r))}function Jbe(e){const t=c_(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=u_(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,u=gm(r)!==o||gm(n)!==s;return u&&(r=o,n=s),{width:r,height:n,$:u}}function d_(e){return Gy(e)?e:e.contextElement}function V1(e){const t=d_(e);if(!u_(t))return vm(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Jbe(t);let s=(o?gm(r.width):r.width)/n,u=(o?gm(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const e2e=vm(0);function t2e(e){const t=Hi(e);return!Ybe()||!t.visualViewport?e2e:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function r2e(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Hi(e)?!1:t}function P6(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=d_(e);let s=vm(1);t&&(n?Gy(n)&&(s=V1(n)):s=V1(e));const u=r2e(o,r,n)?t2e(o):vm(0);let l=(i.left+u.x)/s.x,a=(i.top+u.y)/s.y,c=i.width/s.x,h=i.height/s.y;if(o){const f=Hi(o),d=n&&Gy(n)?Hi(n):n;let m=f.frameElement;for(;m&&n&&d!==f;){const g=V1(m),p=m.getBoundingClientRect(),v=c_(m),y=p.left+(m.clientLeft+parseFloat(v.paddingLeft))*g.x,b=p.top+(m.clientTop+parseFloat(v.paddingTop))*g.y;l*=g.x,a*=g.y,c*=g.x,h*=g.y,l+=y,a+=b,m=Hi(m).frameElement}}return Xbe({width:c,height:h,x:l,y:a})}function n2e(e,t){let r=null,n;const i=OA(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function s(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),o();const{left:a,top:c,width:h,height:f}=e.getBoundingClientRect();if(u||t(),!h||!f)return;const d=yh(c),m=yh(i.clientWidth-(a+h)),g=yh(i.clientHeight-(c+f)),p=yh(a),y={rootMargin:-d+"px "+-m+"px "+-g+"px "+-p+"px",threshold:Gbe(0,Kbe(1,l))||1};let b=!0;function _(E){const $=E[0].intersectionRatio;if($!==l){if(!b)return s();$?s(!1,$):n=setTimeout(()=>{s(!1,1e-7)},100)}b=!1}try{r=new IntersectionObserver(_,{...y,root:i.ownerDocument})}catch{r=new IntersectionObserver(_,y)}r.observe(e)}return s(!0),o}function i2e(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,a=d_(e),c=i||o?[...a?ym(a):[],...ym(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",r,{passive:!0}),o&&v.addEventListener("resize",r)});const h=a&&u?n2e(a,r):null;let f=-1,d=null;s&&(d=new ResizeObserver(v=>{let[y]=v;y&&y.target===a&&d&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{d&&d.observe(t)})),r()}),a&&!l&&d.observe(a),d.observe(t));let m,g=l?P6(e):null;l&&p();function p(){const v=P6(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&r(),g=v,m=requestAnimationFrame(p)}return r(),()=>{c.forEach(v=>{i&&v.removeEventListener("scroll",r),o&&v.removeEventListener("resize",r)}),h&&h(),d&&d.disconnect(),d=null,l&&cancelAnimationFrame(m)}}var Xy=G.useLayoutEffect,o2e=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bm=function(){};function s2e(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function a2e(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i-1}function l2e(e){return lg(e)?window.innerHeight:e.clientHeight}function NA(e){return lg(e)?window.pageYOffset:e.scrollTop}function wm(e,t){if(lg(e)){window.scrollTo(0,t);return}e.scrollTop=t}function u2e(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function c2e(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function bh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:bm,i=NA(e),o=t-i,s=10,u=0;function l(){u+=s;var a=c2e(u,i,o,r);wm(e,a),ur.bottom?wm(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):n.top-i1?r-1:0),i=1;i=m)return{placement:"bottom",maxHeight:t};if(D>=m&&!s)return o&&bh(l,F,V),{placement:"bottom",maxHeight:t};if(!s&&D>=n||s&&M>=n){o&&bh(l,F,V);var A=s?M-_:D-_;return{placement:"bottom",maxHeight:A}}if(i==="auto"||s){var O=t,C=s?$:P;return C>=n&&(O=Math.min(C-_-u,t)),{placement:"top",maxHeight:O}}if(i==="bottom")return o&&wm(l,F),{placement:"bottom",maxHeight:t};break;case"top":if($>=m)return{placement:"top",maxHeight:t};if(P>=m&&!s)return o&&bh(l,U,V),{placement:"top",maxHeight:t};if(!s&&P>=n||s&&$>=n){var w=t;return(!s&&P>=n||s&&$>=n)&&(w=s?$-E:P-E),o&&bh(l,U,V),{placement:"top",maxHeight:w}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return a}function _2e(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var FA=function(t){return t==="auto"?"bottom":t},x2e=function(t,r){var n,i=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,l=o.colors;return at((n={label:"menu"},jc(n,_2e(i),"100%"),jc(n,"position","absolute"),jc(n,"width","100%"),jc(n,"zIndex",1),n),r?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},LA=G.createContext(null),S2e=function(t){var r=t.children,n=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,l=t.theme,a=G.useContext(LA)||{},c=a.setPortalPlacement,h=G.useRef(null),f=G.useState(i),d=Ho(f,2),m=d[0],g=d[1],p=G.useState(null),v=Ho(p,2),y=v[0],b=v[1],_=l.spacing.controlHeight;return Xy(function(){var E=h.current;if(E){var $=s==="fixed",M=u&&!$,P=w2e({maxHeight:i,menuEl:E,minHeight:n,placement:o,shouldScroll:M,isFixedPosition:$,controlHeight:_});g(P.maxHeight),b(P.placement),c==null||c(P.placement)}},[i,o,s,u,n,c,_]),r({ref:h,placerProps:at(at({},t),{},{placement:y||FA(o),maxHeight:m})})},k2e=function(t){var r=t.children,n=t.innerRef,i=t.innerProps;return ht("div",ot({},Ir(t,"menu",{menu:!0}),{ref:n},i),r)},C2e=k2e,E2e=function(t,r){var n=t.maxHeight,i=t.theme.spacing.baseUnit;return at({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:i,paddingTop:i})},T2e=function(t){var r=t.children,n=t.innerProps,i=t.innerRef,o=t.isMulti;return ht("div",ot({},Ir(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},n),r)},BA=function(t,r){var n=t.theme,i=n.spacing.baseUnit,o=n.colors;return at({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},$2e=BA,A2e=BA,P2e=function(t){var r=t.children,n=r===void 0?"No options":r,i=t.innerProps,o=ss(t,y2e);return ht("div",ot({},Ir(at(at({},o),{},{children:n,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),n)},O2e=function(t){var r=t.children,n=r===void 0?"Loading...":r,i=t.innerProps,o=ss(t,b2e);return ht("div",ot({},Ir(at(at({},o),{},{children:n,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),n)},M2e=function(t){var r=t.rect,n=t.offset,i=t.position;return{left:r.left,position:i,top:n,width:r.width,zIndex:1}},I2e=function(t){var r=t.appendTo,n=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,l=G.useRef(null),a=G.useRef(null),c=G.useState(FA(s)),h=Ho(c,2),f=h[0],d=h[1],m=G.useMemo(function(){return{setPortalPlacement:d}},[]),g=G.useState(null),p=Ho(g,2),v=p[0],y=p[1],b=G.useCallback(function(){if(i){var M=d2e(i),P=u==="fixed"?0:window.pageYOffset,D=M[f]+P;(D!==(v==null?void 0:v.offset)||M.left!==(v==null?void 0:v.rect.left)||M.width!==(v==null?void 0:v.rect.width))&&y({offset:D,rect:M})}},[i,u,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);Xy(function(){b()},[b]);var _=G.useCallback(function(){typeof a.current=="function"&&(a.current(),a.current=null),i&&l.current&&(a.current=i2e(i,l.current,b,{elementResize:"ResizeObserver"in window}))},[i,b]);Xy(function(){_()},[_]);var E=G.useCallback(function(M){l.current=M,_()},[_]);if(!r&&u!=="fixed"||!v)return null;var $=ht("div",ot({ref:E},Ir(at(at({},t),{},{offset:v.offset,position:u,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ht(LA.Provider,{value:m},r?Wm.createPortal($,r):$)},R2e=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},j2e=function(t){var r=t.children,n=t.innerProps,i=t.isDisabled,o=t.isRtl;return ht("div",ot({},Ir(t,"container",{"--is-disabled":i,"--is-rtl":o}),n),r)},N2e=function(t,r){var n=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return at({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},D2e=function(t){var r=t.children,n=t.innerProps,i=t.isMulti,o=t.hasValue;return ht("div",ot({},Ir(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),n),r)},F2e=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},L2e=function(t){var r=t.children,n=t.innerProps;return ht("div",ot({},Ir(t,"indicatorsContainer",{indicators:!0}),n),r)},R6,B2e=["size"],z2e=["innerProps","isRtl","size"],V2e={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},zA=function(t){var r=t.size,n=ss(t,B2e);return ht("svg",ot({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:V2e},n))},f_=function(t){return ht(zA,ot({size:20},t),ht("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},VA=function(t){return ht(zA,ot({size:20},t),ht("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},UA=function(t,r){var n=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return at({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?s.neutral60:s.neutral20,padding:o*2,":hover":{color:n?s.neutral80:s.neutral40}})},U2e=UA,H2e=function(t){var r=t.children,n=t.innerProps;return ht("div",ot({},Ir(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||ht(VA,null))},W2e=UA,q2e=function(t){var r=t.children,n=t.innerProps;return ht("div",ot({},Ir(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||ht(f_,null))},K2e=function(t,r){var n=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return at({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},G2e=function(t){var r=t.innerProps;return ht("span",ot({},r,Ir(t,"indicatorSeparator",{"indicator-separator":!0})))},X2e=rf(R6||(R6=qbe([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),X2e=function(t,r){var n=t.isFocused,i=t.size,o=t.theme,s=o.colors,u=o.spacing.baseUnit;return at({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?s.neutral60:s.neutral20,padding:u*2})},U1=function(t){var r=t.delay,n=t.offset;return ht("span",{css:p2({animation:"".concat(G2e," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Y2e=function(t){var r=t.innerProps,n=t.isRtl,i=t.size,o=i===void 0?4:i,s=ss(t,B2e);return ht("div",ot({},Ir(at(at({},s),{},{innerProps:r,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ht(U1,{delay:0,offset:n}),ht(U1,{delay:160,offset:!0}),ht(U1,{delay:320,offset:!n}))},Z2e=function(t,r){var n=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,u=o.borderRadius,l=o.spacing;return at({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?s.neutral5:s.neutral0,borderColor:n?s.neutral10:i?s.primary:s.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},Q2e=function(t){var r=t.children,n=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,u=t.menuIsOpen;return ht("div",ot({ref:o},Ir(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":i,"control--menu-is-open":u}),s,{"aria-disabled":n||void 0}),r)},J2e=Q2e,ewe=["data"],twe=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},rwe=function(t){var r=t.children,n=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,u=t.headingProps,l=t.innerProps,a=t.label,c=t.theme,h=t.selectProps;return ht("div",ot({},Ir(t,"group",{group:!0}),l),ht(s,ot({},u,{selectProps:h,theme:c,getStyles:i,getClassNames:o,cx:n}),a),ht("div",null,r))},nwe=function(t,r){var n=t.theme,i=n.colors,o=n.spacing;return at({label:"group",cursor:"default",display:"block"},r?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},iwe=function(t){var r=RA(t);r.data;var n=ss(r,ewe);return ht("div",ot({},Ir(t,"groupHeading",{"group-heading":!0}),n))},owe=rwe,swe=["innerRef","isDisabled","isHidden","inputClassName"],awe=function(t,r){var n=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,u=o.colors;return at(at({visibility:n?"hidden":"visible",transform:i?"translateZ(0)":""},lwe),r?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},UA={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},lwe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":at({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},UA)},uwe=function(t){return at({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},UA)},cwe=function(t){var r=t.cx,n=t.value,i=RA(t),o=i.innerRef,s=i.isDisabled,u=i.isHidden,l=i.inputClassName,a=ss(i,swe);return ht("div",ot({},Ir(t,"input",{"input-container":!0}),{"data-value":n||""}),ht("input",ot({className:r({input:!0},l),ref:o,style:uwe(u),disabled:s},a)))},dwe=cwe,fwe=function(t,r){var n=t.theme,i=n.spacing,o=n.borderRadius,s=n.colors;return at({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},hwe=function(t,r){var n=t.theme,i=n.borderRadius,o=n.colors,s=t.cropWithEllipsis;return at({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},pwe=function(t,r){var n=t.theme,i=n.spacing,o=n.borderRadius,s=n.colors,u=t.isFocused;return at({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},HA=function(t){var r=t.children,n=t.innerProps;return ht("div",n,r)},mwe=HA,gwe=HA;function vwe(e){var t=e.children,r=e.innerProps;return ht("div",ot({role:"button"},r),t||ht(f_,{size:14}))}var ywe=function(t){var r=t.children,n=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,u=t.removeProps,l=t.selectProps,a=n.Container,c=n.Label,h=n.Remove;return ht(a,{data:i,innerProps:at(at({},Ir(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:l},ht(c,{data:i,innerProps:at({},Ir(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},r),ht(h,{data:i,innerProps:at(at({},Ir(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},u),selectProps:l}))},bwe=ywe,wwe=function(t,r){var n=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,u=s.spacing,l=s.colors;return at({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},_we=function(t){var r=t.children,n=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,u=t.innerProps;return ht("div",ot({},Ir(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":n},u),r)},xwe=_we,Swe=function(t,r){var n=t.theme,i=n.spacing,o=n.colors;return at({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},kwe=function(t){var r=t.children,n=t.innerProps;return ht("div",ot({},Ir(t,"placeholder",{placeholder:!0}),n),r)},Cwe=kwe,Ewe=function(t,r){var n=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return at({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Twe=function(t){var r=t.children,n=t.isDisabled,i=t.innerProps;return ht("div",ot({},Ir(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),i),r)},$we=Twe,Awe={ClearIndicator:W2e,Control:J2e,DropdownIndicator:U2e,DownChevron:zA,CrossIcon:f_,Group:owe,GroupHeading:iwe,IndicatorsContainer:F2e,IndicatorSeparator:K2e,Input:dwe,LoadingIndicator:Y2e,Menu:k2e,MenuList:E2e,MenuPortal:M2e,LoadingMessage:P2e,NoOptionsMessage:A2e,MultiValue:bwe,MultiValueContainer:mwe,MultiValueLabel:gwe,MultiValueRemove:vwe,Option:xwe,Placeholder:Cwe,SelectContainer:R2e,SingleValue:$we,ValueContainer:N2e},Pwe=function(t){return at(at({},Awe),t.components)},j6=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Owe(e,t){return!!(e===t||j6(e)&&j6(t))}function Mwe(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,u=t.selectValue,l=t.isDisabled,a=t.isSelected,c=function(m,g){return m&&m.length?"".concat(m.indexOf(g)+1," of ").concat(m.length):""};if(r==="value"&&u)return"value ".concat(s," focused, ").concat(c(u,n),".");if(r==="menu"){var h=l?" disabled":"",f="".concat(a?"selected":"focused").concat(h);return"option ".concat(s," ").concat(f,", ").concat(c(i,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},Dwe=function(t){var r=t.ariaSelection,n=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,u=t.selectValue,l=t.selectProps,a=t.id,c=l.ariaLiveMessages,h=l.getOptionLabel,f=l.inputValue,d=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,p=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,b=l.tabSelectsValue,_=l["aria-label"],E=l["aria-live"],$=G.useMemo(function(){return at(at({},Nwe),c||{})},[c]),M=G.useMemo(function(){var O="";if(r&&$.onChange){var C=r.option,w=r.options,S=r.removedValue,x=r.removedValues,k=r.value,T=function(q){return Array.isArray(q)?null:q},I=S||C||T(k),L=I?h(I):"",z=w||x||void 0,B=z?z.map(h):[],W=at({isDisabled:I&&m(I,u),label:L,labels:B},r);O=$.onChange(W)}return O},[r,$,m,u,h]),P=G.useMemo(function(){var O="",C=n||i,w=!!(n&&u&&u.includes(n));if(C&&$.onFocus){var S={focused:C,label:h(C),isDisabled:m(C,u),isSelected:w,options:o,context:C===n?"menu":"value",selectValue:u};O=$.onFocus(S)}return O},[n,i,h,m,$,o,u]),D=G.useMemo(function(){var O="";if(p&&v.length&&$.onFilter){var C=y({count:o.length});O=$.onFilter({inputValue:f,resultsMessage:C})}return O},[o,f,p,$,v,y]),F=G.useMemo(function(){var O="";if($.guidance){var C=i?"value":p?"menu":"input";O=$.guidance({"aria-label":_,context:C,isDisabled:n&&m(n,u),isMulti:d,isSearchable:g,tabSelectsValue:b})}return O},[_,n,i,d,m,g,p,$,u,b]),U="".concat(P," ").concat(D," ").concat(F),V=ht(G.Fragment,null,ht("span",{id:"aria-selection"},M),ht("span",{id:"aria-context"},U)),A=(r==null?void 0:r.action)==="initial-input-focus";return ht(G.Fragment,null,ht(N6,{id:a},A&&V),ht(N6,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text"},s&&!A&&V))},Fwe=Dwe,Yy=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Lwe=new RegExp("["+Yy.map(function(e){return e.letters}).join("")+"]","g"),WA={};for(var H1=0;H1-1}},Uwe=["innerRef"];function Hwe(e){var t=e.innerRef,r=ss(e,Uwe),n=g2e(r,"onExited","in","enter","exit","appear");return ht("input",ot({ref:t},n,{css:p2({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Wwe=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function qwe(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=G.useRef(!1),u=G.useRef(!1),l=G.useRef(0),a=G.useRef(null),c=G.useCallback(function(p,v){if(a.current!==null){var y=a.current,b=y.scrollTop,_=y.scrollHeight,E=y.clientHeight,$=a.current,M=v>0,P=_-E-b,D=!1;P>v&&s.current&&(n&&n(p),s.current=!1),M&&u.current&&(o&&o(p),u.current=!1),M&&v>P?(r&&!s.current&&r(p),$.scrollTop=_,D=!0,s.current=!0):!M&&-v>b&&(i&&!u.current&&i(p),$.scrollTop=0,D=!0,u.current=!0),D&&Wwe(p)}},[r,n,i,o]),h=G.useCallback(function(p){c(p,p.deltaY)},[c]),f=G.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),d=G.useCallback(function(p){var v=l.current-p.changedTouches[0].clientY;c(p,v)},[c]),m=G.useCallback(function(p){if(p){var v=h2e?{passive:!1}:!1;p.addEventListener("wheel",h,v),p.addEventListener("touchstart",f,v),p.addEventListener("touchmove",d,v)}},[d,f,h]),g=G.useCallback(function(p){p&&(p.removeEventListener("wheel",h,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",d,!1))},[d,f,h]);return G.useEffect(function(){if(t){var p=a.current;return m(p),function(){g(p)}}},[t,m,g]),function(p){a.current=p}}var F6=["boxSizing","height","overflow","paddingRight","position"],L6={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function B6(e){e.preventDefault()}function z6(e){e.stopPropagation()}function V6(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function U6(){return"ontouchstart"in window||navigator.maxTouchPoints}var H6=!!(typeof window<"u"&&window.document&&window.document.createElement),xc=0,ml={capture:!1,passive:!1};function Kwe(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,i=G.useRef({}),o=G.useRef(null),s=G.useCallback(function(l){if(H6){var a=document.body,c=a&&a.style;if(n&&F6.forEach(function(m){var g=c&&c[m];i.current[m]=g}),n&&xc<1){var h=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,d=window.innerWidth-f+h||0;Object.keys(L6).forEach(function(m){var g=L6[m];c&&(c[m]=g)}),c&&(c.paddingRight="".concat(d,"px"))}a&&U6()&&(a.addEventListener("touchmove",B6,ml),l&&(l.addEventListener("touchstart",V6,ml),l.addEventListener("touchmove",z6,ml))),xc+=1}},[n]),u=G.useCallback(function(l){if(H6){var a=document.body,c=a&&a.style;xc=Math.max(xc-1,0),n&&xc<1&&F6.forEach(function(h){var f=i.current[h];c&&(c[h]=f)}),a&&U6()&&(a.removeEventListener("touchmove",B6,ml),l&&(l.removeEventListener("touchstart",V6,ml),l.removeEventListener("touchmove",z6,ml)))}},[n]);return G.useEffect(function(){if(t){var l=o.current;return s(l),function(){u(l)}}},[t,s,u]),function(l){o.current=l}}var Gwe=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Xwe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ywe(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,i=n===void 0?!0:n,o=e.onBottomArrive,s=e.onBottomLeave,u=e.onTopArrive,l=e.onTopLeave,a=qwe({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:u,onTopLeave:l}),c=Kwe({isEnabled:r}),h=function(d){a(d),c(d)};return ht(G.Fragment,null,r&&ht("div",{onClick:Gwe,css:Xwe}),t(h))}var Zwe={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Qwe=function(t){var r=t.name,n=t.onFocus;return ht("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Zwe,value:"",onChange:function(){}})},Jwe=Qwe,e_e=function(t){return t.label},t_e=function(t){return t.label},r_e=function(t){return t.value},n_e=function(t){return!!t.isDisabled},i_e={clearIndicator:H2e,container:I2e,control:Z2e,dropdownIndicator:V2e,group:twe,groupHeading:nwe,indicatorsContainer:D2e,indicatorSeparator:q2e,input:awe,loadingIndicator:X2e,loadingMessage:$2e,menu:_2e,menuList:C2e,menuPortal:O2e,multiValue:fwe,multiValueLabel:hwe,multiValueRemove:pwe,noOptionsMessage:T2e,option:wwe,placeholder:Swe,singleValue:Ewe,valueContainer:j2e},o_e={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},s_e=4,KA=4,a_e=38,l_e=KA*2,u_e={baseUnit:KA,controlHeight:a_e,menuGutter:l_e},K1={borderRadius:s_e,colors:o_e,spacing:u_e},c_e={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:I6(),captureMenuScroll:!I6(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Vwe(),formatGroupLabel:e_e,getOptionLabel:t_e,getOptionValue:r_e,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:n_e,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!d2e(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function W6(e,t,r,n){var i=ZA(e,t,r),o=QA(e,t,r),s=YA(e,t),u=_m(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:u,index:n}}function GA(e,t){return e.options.map(function(r,n){if("options"in r){var i=r.options.map(function(s,u){return W6(e,s,t,u)}).filter(function(s){return q6(e,s)});return i.length>0?{type:"group",data:r,options:i,index:n}:void 0}var o=W6(e,r,t,n);return q6(e,o)?o:void 0}).filter(p2e)}function XA(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,$A(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function d_e(e,t){return XA(GA(e,t))}function q6(e,t){var r=e.inputValue,n=r===void 0?"":r,i=t.data,o=t.isSelected,s=t.label,u=t.value;return(!eP(e)||!o)&&JA(e,{label:s,value:u,data:i},n)}function f_e(e,t){var r=e.focusedValue,n=e.selectValue,i=n.indexOf(r);if(i>-1){var o=t.indexOf(r);if(o>-1)return r;if(i-1?r:t[0]}var YA=function(t,r){return t.getOptionLabel(r)},_m=function(t,r){return t.getOptionValue(r)};function ZA(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function QA(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=_m(e,t);return r.some(function(i){return _m(e,i)===n})}function JA(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var eP=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},p_e=1,tP=function(e){Dbe(r,e);var t=zbe(r);function r(n){var i;if(jbe(this,r),i=t.call(this,n),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(u){i.controlRef=u},i.focusedOptionRef=null,i.getFocusedOptionRef=function(u){i.focusedOptionRef=u},i.menuListRef=null,i.getMenuListRef=function(u){i.menuListRef=u},i.inputRef=null,i.getInputRef=function(u){i.inputRef=u},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(u,l){var a=i.props,c=a.onChange,h=a.name;l.name=h,i.ariaOnChange(u,l),c(u,l)},i.setValue=function(u,l,a){var c=i.props,h=c.closeMenuOnSelect,f=c.isMulti,d=c.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:d}),h&&(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(u,{action:l,option:a})},i.selectOption=function(u){var l=i.props,a=l.blurInputOnSelect,c=l.isMulti,h=l.name,f=i.state.selectValue,d=c&&i.isOptionSelected(u,f),m=i.isOptionDisabled(u,f);if(d){var g=i.getOptionValue(u);i.setValue(f.filter(function(p){return i.getOptionValue(p)!==g}),"deselect-option",u)}else if(!m)c?i.setValue([].concat($A(f),[u]),"select-option",u):i.setValue(u,"select-option");else{i.ariaOnChange(u,{action:"select-option",option:u,name:h});return}a&&i.blurInput()},i.removeValue=function(u){var l=i.props.isMulti,a=i.state.selectValue,c=i.getOptionValue(u),h=a.filter(function(d){return i.getOptionValue(d)!==c}),f=_h(l,h,h[0]||null);i.onChange(f,{action:"remove-value",removedValue:u}),i.focusInput()},i.clearValue=function(){var u=i.state.selectValue;i.onChange(_h(i.props.isMulti,[],null),{action:"clear",removedValues:u})},i.popValue=function(){var u=i.props.isMulti,l=i.state.selectValue,a=l[l.length-1],c=l.slice(0,l.length-1),h=_h(u,c,c[0]||null);i.onChange(h,{action:"pop-value",removedValue:a})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var u=arguments.length,l=new Array(u),a=0;af||h>f}},i.onTouchEnd=function(u){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(u.target)&&i.menuListRef&&!i.menuListRef.contains(u.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(u){i.userIsDragging||i.onControlMouseDown(u)},i.onClearIndicatorTouchEnd=function(u){i.userIsDragging||i.onClearIndicatorMouseDown(u)},i.onDropdownIndicatorTouchEnd=function(u){i.userIsDragging||i.onDropdownIndicatorMouseDown(u)},i.handleInputChange=function(u){var l=i.props.inputValue,a=u.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(a,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(u){i.props.onFocus&&i.props.onFocus(u),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(u){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(u),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(u){i.blockOptionHover||i.state.focusedOption===u||i.setState({focusedOption:u})},i.shouldHideSelectedOptions=function(){return eP(i.props)},i.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),i.focus()},i.onKeyDown=function(u){var l=i.props,a=l.isMulti,c=l.backspaceRemovesValue,h=l.escapeClearsValue,f=l.inputValue,d=l.isClearable,m=l.isDisabled,g=l.menuIsOpen,p=l.onKeyDown,v=l.tabSelectsValue,y=l.openMenuOnFocus,b=i.state,_=b.focusedOption,E=b.focusedValue,$=b.selectValue;if(!m&&!(typeof p=="function"&&(p(u),u.defaultPrevented))){switch(i.blockOptionHover=!0,u.key){case"ArrowLeft":if(!a||f)return;i.focusValue("previous");break;case"ArrowRight":if(!a||f)return;i.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if(E)i.removeValue(E);else{if(!c)return;a?i.popValue():d&&i.clearValue()}break;case"Tab":if(i.isComposing||u.shiftKey||!g||!v||!_||y&&i.isOptionSelected(_,$))return;i.selectOption(_);break;case"Enter":if(u.keyCode===229)break;if(g){if(!_||i.isComposing)return;i.selectOption(_);break}return;case"Escape":g?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:f}),i.onMenuClose()):d&&h&&i.clearValue();break;case" ":if(f)return;if(!g){i.openMenu("first");break}if(!_)return;i.selectOption(_);break;case"ArrowUp":g?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":g?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!g)return;i.focusOption("pageup");break;case"PageDown":if(!g)return;i.focusOption("pagedown");break;case"Home":if(!g)return;i.focusOption("first");break;case"End":if(!g)return;i.focusOption("last");break;default:return}u.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++p_e),i.state.selectValue=O6(n.value),n.menuIsOpen&&i.state.selectValue.length){var o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusedOption=o[s]}return i}return Nbe(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&M6(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,u=o.menuIsOpen,l=this.state.isFocused;(l&&!s&&i.isDisabled||l&&u&&!i.menuIsOpen)&&this.focusInput(),l&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(M6(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,u=s.selectValue,l=s.isFocused,a=this.buildFocusableOptions(),c=i==="first"?0:a.length-1;if(!this.props.isMulti){var h=a.indexOf(u[0]);h>-1&&(c=h)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[c]},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(u);u||(l=-1);var a=s.length-1,c=-1;if(s.length){switch(i){case"previous":l===0?c=0:l===-1?c=a:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var l=0,a=u.indexOf(s);s||(a=-1),i==="up"?l=a>0?a-1:u.length-1:i==="down"?l=(a+1)%u.length:i==="pageup"?(l=a-o,l<0&&(l=0)):i==="pagedown"?(l=a+o,l>u.length-1&&(l=u.length-1)):i==="last"&&(l=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(K1):at(at({},K1),this.props.theme):K1}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,u=this.getClassNames,l=this.getValue,a=this.selectOption,c=this.setValue,h=this.props,f=h.isMulti,d=h.isRtl,m=h.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:u,getValue:l,hasValue:g,isMulti:f,isRtl:d,options:m,selectOption:a,selectProps:h,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return ZA(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return QA(this.props,i,o)}},{key:"filterOption",value:function(i,o){return JA(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:u})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,u=i.inputId,l=i.inputValue,a=i.tabIndex,c=i.form,h=i.menuIsOpen,f=i.required,d=this.getComponents(),m=d.Input,g=this.state,p=g.inputIsHidden,v=g.ariaSelection,y=this.commonProps,b=u||this.getElementId("input"),_=at(at(at({"aria-autocomplete":"list","aria-expanded":h,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox"},h&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?G.createElement(m,ot({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:o,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:c,type:"text",value:l},_)):G.createElement(Hwe,ot({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bm,onFocus:this.onInputFocus,disabled:o,tabIndex:a,inputMode:"none",form:c,value:""},_))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,u=o.MultiValueContainer,l=o.MultiValueLabel,a=o.MultiValueRemove,c=o.SingleValue,h=o.Placeholder,f=this.commonProps,d=this.props,m=d.controlShouldRenderValue,g=d.isDisabled,p=d.isMulti,v=d.inputValue,y=d.placeholder,b=this.state,_=b.selectValue,E=b.focusedValue,$=b.isFocused;if(!this.hasValue()||!m)return v?null:G.createElement(h,ot({},f,{key:"placeholder",isDisabled:g,isFocused:$,innerProps:{id:this.getElementId("placeholder")}}),y);if(p)return _.map(function(P,D){var F=P===E,U="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return G.createElement(s,ot({},f,{components:{Container:u,Label:l,Remove:a},isFocused:F,isDisabled:g,key:U,index:D,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(A){A.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(v)return null;var M=_[0];return G.createElement(c,ot({},f,{data:M,isDisabled:g}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,u=this.props,l=u.isDisabled,a=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||a)return null;var h={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return G.createElement(o,ot({},s,{innerProps:h,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,u=this.props,l=u.isDisabled,a=u.isLoading,c=this.state.isFocused;if(!o||!a)return null;var h={"aria-hidden":"true"};return G.createElement(o,ot({},s,{innerProps:h,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var u=this.commonProps,l=this.props.isDisabled,a=this.state.isFocused;return G.createElement(s,ot({},u,{isDisabled:l,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,u=this.props.isDisabled,l=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return G.createElement(o,ot({},s,{innerProps:a,isDisabled:u,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,u=o.GroupHeading,l=o.Menu,a=o.MenuList,c=o.MenuPortal,h=o.LoadingMessage,f=o.NoOptionsMessage,d=o.Option,m=this.commonProps,g=this.state.focusedOption,p=this.props,v=p.captureMenuScroll,y=p.inputValue,b=p.isLoading,_=p.loadingMessage,E=p.minMenuHeight,$=p.maxMenuHeight,M=p.menuIsOpen,P=p.menuPlacement,D=p.menuPosition,F=p.menuPortalTarget,U=p.menuShouldBlockScroll,V=p.menuShouldScrollIntoView,A=p.noOptionsMessage,O=p.onMenuScrollToTop,C=p.onMenuScrollToBottom;if(!M)return null;var w=function(z,B){var W=z.type,N=z.data,q=z.isDisabled,j=z.isSelected,R=z.label,H=z.value,K=g===N,ee=q?void 0:function(){return i.onOptionHover(N)},Y=q?void 0:function(){return i.selectOption(N)},te="".concat(i.getElementId("option"),"-").concat(B),ie={id:te,onClick:Y,onMouseMove:ee,onMouseOver:ee,tabIndex:-1};return G.createElement(d,ot({},m,{innerProps:ie,data:N,isDisabled:q,isSelected:j,key:te,label:R,type:W,value:H,isFocused:K,innerRef:K?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(z.data,"menu"))},S;if(this.hasOptions())S=this.getCategorizedOptions().map(function(L){if(L.type==="group"){var z=L.data,B=L.options,W=L.index,N="".concat(i.getElementId("group"),"-").concat(W),q="".concat(N,"-heading");return G.createElement(s,ot({},m,{key:N,data:z,options:B,Heading:u,headingProps:{id:q,data:L.data},label:i.formatGroupLabel(L.data)}),L.options.map(function(j){return w(j,"".concat(W,"-").concat(j.index))}))}else if(L.type==="option")return w(L,"".concat(L.index))});else if(b){var x=_({inputValue:y});if(x===null)return null;S=G.createElement(h,m,x)}else{var k=A({inputValue:y});if(k===null)return null;S=G.createElement(f,m,k)}var T={minMenuHeight:E,maxMenuHeight:$,menuPlacement:P,menuPosition:D,menuShouldScrollIntoView:V},I=G.createElement(x2e,ot({},m,T),function(L){var z=L.ref,B=L.placerProps,W=B.placement,N=B.maxHeight;return G.createElement(l,ot({},m,T,{innerRef:z,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove,id:i.getElementId("listbox")},isLoading:b,placement:W}),G.createElement(Ywe,{captureEnabled:v,onTopArrive:O,onBottomArrive:C,lockEnabled:U},function(q){return G.createElement(a,ot({},m,{innerRef:function(R){i.getMenuListRef(R),q(R)},isLoading:b,maxHeight:N,focusedOption:g}),S)}))});return F||D==="fixed"?G.createElement(c,ot({},m,{appendTo:F,controlElement:this.controlRef,menuPlacement:P,menuPosition:D}),I):I}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,u=o.isDisabled,l=o.isMulti,a=o.name,c=o.required,h=this.state.selectValue;if(c&&!this.hasValue()&&!u)return G.createElement(Jwe,{name:a,onFocus:this.onValueInputFocus});if(!(!a||u))if(l)if(s){var f=h.map(function(g){return i.getOptionValue(g)}).join(s);return G.createElement("input",{name:a,type:"hidden",value:f})}else{var d=h.length>0?h.map(function(g,p){return G.createElement("input",{key:"i-".concat(p),name:a,type:"hidden",value:i.getOptionValue(g)})}):G.createElement("input",{name:a,type:"hidden",value:""});return G.createElement("div",null,d)}else{var m=h[0]?this.getOptionValue(h[0]):"";return G.createElement("input",{name:a,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,u=o.focusedOption,l=o.focusedValue,a=o.isFocused,c=o.selectValue,h=this.getFocusableOptions();return G.createElement(Fwe,ot({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:l,isFocused:a,selectValue:c,focusableOptions:h}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,u=i.SelectContainer,l=i.ValueContainer,a=this.props,c=a.className,h=a.id,f=a.isDisabled,d=a.menuIsOpen,m=this.state.isFocused,g=this.commonProps=this.getCommonProps();return G.createElement(u,ot({},g,{className:c,innerProps:{id:h,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),G.createElement(o,ot({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:d}),G.createElement(l,ot({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),G.createElement(s,ot({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,u=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,a=o.ariaSelection,c=o.isFocused,h=o.prevWasFocused,f=i.options,d=i.value,m=i.menuIsOpen,g=i.inputValue,p=i.isMulti,v=O6(d),y={};if(s&&(d!==s.value||f!==s.options||m!==s.menuIsOpen||g!==s.inputValue)){var b=m?d_e(i,v):[],_=u?f_e(o,v):null,E=h_e(o,b);y={selectValue:v,focusedOption:E,focusedValue:_,clearFocusValueOnUpdate:!1}}var $=l!=null&&i!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},M=a,P=c&&h;return c&&!P&&(M={value:_h(p,v,v[0]||null),options:v,action:"initial-input-focus"},P=!h),(a==null?void 0:a.action)==="initial-input-focus"&&(M=null),at(at(at({},y),$),{},{prevProps:i,ariaSelection:M,prevWasFocused:P})}}]),r}(G.Component);tP.defaultProps=c_e;var m_e=G.forwardRef(function(e,t){var r=Rbe(e);return G.createElement(tP,ot({ref:t},r))}),g_e=m_e,v_e=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var rP=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=y_e(t,v_e);return Zy({},r)},b_e=function(t){var r=typeof t=="string";return r&&["sm","md","lg"].includes(t)},w_e=function(t){return b_e(t)?t:t==="xs"?"sm":t==="xl"?"lg":"md"},Zi=function(t){var r=Ga(),n=w_e(r.components.Input.defaultProps.size),i=t??n,o=uX(typeof i=="string"?[i]:i,{fallback:"md"})||n;return o};function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var E_e=function(t){var r=t.className,n=t.cx,i=t.children,o=t.innerRef,s=t.innerProps,u=t.isDisabled,l=t.isFocused,a=t.menuIsOpen,c=t.selectProps,h=c.chakraStyles,f=c.size,d=c.variant,m=c.focusBorderColor,g=c.errorBorderColor,p=c.isInvalid,v=c.isReadOnly,y=Zi(f),b=Qr("Input",{size:y,variant:d,focusBorderColor:m,errorBorderColor:g}),_=b.field,E=_.height,$=_.h,M=C_e(_,k_e),P=E||$,D=ki({},M,{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:P},u?{pointerEvents:"none"}:{}),F=h!=null&&h.control?h.control(D,t):D;return vt.createElement(nr,ki({ref:o,className:n({control:!0,"control--is-disabled":u,"control--is-focused":l,"control--menu-is-open":a},r),sx:F},s,{"data-focus":l?!0:void 0,"data-focus-visible":l?!0:void 0,"data-invalid":p?!0:void 0,"data-disabled":u?!0:void 0,"data-readonly":v?!0:void 0}),i)},T_e=function(t){var r=t.className,n=t.cx,i=t.selectProps,o=i.chakraStyles,s=i.useBasicStyles,u=i.variant,l=ki({opacity:1},s||u!=="outline"?{display:"none"}:{}),a=o!=null&&o.indicatorSeparator?o.indicatorSeparator(l,t):l;return vt.createElement(iw,{className:n({"indicator-separator":!0},r),sx:a,orientation:"vertical"})},$_e=function(t){return vt.createElement(oi,ki({role:"presentation",focusable:"false","aria-hidden":"true"},t),vt.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},A_e=function(t){var r=t.children,n=t.className,i=t.cx,o=t.innerProps,s=t.selectProps,u=s.chakraStyles,l=s.useBasicStyles,a=s.size,c=s.focusBorderColor,h=s.errorBorderColor,f=s.variant,d=Zi(a),m=Qr("Input",{size:d,variant:f,focusBorderColor:c,errorBorderColor:h}),g={sm:"16px",md:"20px",lg:"24px"},p=g[d],v=ki({},m.addon,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:p},l&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}),y=u!=null&&u.dropdownIndicator?u.dropdownIndicator(v,t):v,b={height:"1em",width:"1em"},_=u!=null&&u.downChevron?u.downChevron(b,t):b;return vt.createElement(nr,ki({},o,{className:i({indicator:!0,"dropdown-indicator":!0},n),sx:y}),r||vt.createElement($_e,{sx:_}))},P_e=function(t){return vt.createElement(oi,ki({focusable:"false","aria-hidden":!0},t),vt.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}))},O_e=function(t){var r=t.children,n=t.className,i=t.cx,o=t.innerProps,s=t.selectProps,u=s.chakraStyles,l=s.size,a=Zi(l),c=Xi("CloseButton",{size:a}),h=ki({},c,{marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"}),f=u!=null&&u.clearIndicator?u.clearIndicator(h,t):h,d={width:"1em",height:"1em"},m=u!=null&&u.crossIcon?u.crossIcon(d,t):d;return vt.createElement(nr,ki({role:"button",className:i({indicator:!0,"clear-indicator":!0},n),sx:f,"aria-label":"Clear selected options"},o),r||vt.createElement(P_e,{sx:m}))},M_e=function(t){var r=t.className,n=t.cx,i=t.innerProps,o=t.selectProps,s=o.chakraStyles,u=o.size,l=t.color,a=t.emptyColor,c=t.speed,h=t.thickness,f=t.spinnerSize,d=Zi(u),m={sm:"xs",md:"sm",lg:"md"},g=m[d],p={marginRight:3},v=s!=null&&s.loadingIndicator?s.loadingIndicator(p,t):p;return vt.createElement(_0,ki({className:n({indicator:!0,"loading-indicator":!0},r),sx:v},i,{size:f||g,color:l,emptyColor:a,speed:c,thickness:h}))};const I_e=E_e;var R_e=["innerRef","isDisabled","isHidden","inputClassName"];function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var N_e=function(t){var r=t.className,n=t.cx,i=t.value,o=t.selectProps,s=o.chakraStyles,u=o.isReadOnly,l=rP(t),a=l.innerRef,c=l.isDisabled,h=l.isHidden,f=l.inputClassName,d=j_e(l,R_e),m={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},g={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:c?"hidden":"visible",transform:i?"translateZ(0)":"",_after:ad({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0},m)},p=s!=null&&s.inputContainer?s.inputContainer(g,t):g,v=ad({background:0,opacity:h?0:1,width:"100%"},m),y=s!=null&&s.input?s.input(v,t):v;return vt.createElement(nr,{className:n({"input-container":!0},r),"data-value":i||"",sx:p},vt.createElement(et.input,ad({className:n({input:!0},f),ref:a,sx:y,disabled:c,readOnly:u?!0:void 0},d)))};const D_e=N_e;var F_e=["data"];function L_e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var f3e=function(t){var r,n=t.components,i=n===void 0?{}:n;t.theme;var o=t.size,s=t.colorScheme,u=s===void 0?"gray":s,l=t.isDisabled,a=t.isInvalid,c=t.isReadOnly,h=t.required,f=t.isRequired,d=t.inputId,m=t.tagVariant,g=t.selectedOptionStyle,p=g===void 0?"color":g,v=t.selectedOptionColorScheme,y=t.selectedOptionColor,b=t.variant,_=t.focusBorderColor,E=t.errorBorderColor,$=t.chakraStyles,M=$===void 0?{}:$,P=t.onFocus,D=t.onBlur,F=t.menuIsOpen,U=d3e(t,c3e),V=Ga(),A=V.components.Input.defaultProps.variant,O=Z2({id:d,isDisabled:l,isInvalid:a,isRequired:f,isReadOnly:c,onFocus:P,onBlur:D}),C=F??(O.readOnly?!1:void 0),w=p,S=["color","check"];S.includes(p)||(w="color");var x=v||y||"blue";typeof x!="string"&&(x="blue");var k=xm({components:xm({},u3e,i),colorScheme:u,size:o,tagVariant:m,selectedOptionStyle:w,selectedOptionColorScheme:x,variant:b??A,chakraStyles:M,focusBorderColor:_,errorBorderColor:E,onFocus:O.onFocus,onBlur:O.onBlur,isDisabled:O.disabled,isInvalid:!!O["aria-invalid"],inputId:O.id,isReadOnly:O.readOnly,required:h??O.required,menuIsOpen:C},U,{"aria-invalid":(r=U["aria-invalid"])!=null?r:O["aria-invalid"]});return k};const h3e=f3e;function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;tf(zr(O.map(C=>C.value),v,b)),$=O=>f(zr(O.value,v,b)),M=({target:{value:O}})=>d(t,zr(O,v,b)),P=({target:{value:O}})=>m(t,zr(O,v,b)),D={},F=Array.isArray(v)?v.map((O,C)=>{const{value:w,label:S}=O;return D[C]=S||String(w),{label:S,value:String(C),isDisabled:Array.isArray(y)&&y.indexOf(w)!==-1}}):[],U=typeof s<"u"&&s!==!1&&!!v,V=G0(c,v,U),A=U?(V||[]).map(O=>({label:D[O],value:O})):{label:D[V]||"",selectedIndex:V};return X.jsxs(Yi,{mb:1,..._,isDisabled:l||a,isRequired:u,isReadOnly:a,isInvalid:g&&g.length>0,children:[os(X.jsx(rs,{htmlFor:t,id:`${t}-label`,children:n}),i||!n),X.jsx(m3e,{inputId:t,name:t,isMulti:U,options:F,placeholder:o,closeMenuOnSelect:!U,onBlur:M,onChange:U?E:$,onFocus:P,autoFocus:h,value:A,"aria-describedby":yn(t)})]})}function v3e({id:e,placeholder:t,value:r,label:n,hideLabel:i,disabled:o,autofocus:s,readonly:u,onBlur:l,onFocus:a,onChange:c,options:h,uiSchema:f,required:d,rawErrors:m}){const g=na({uiSchema:f}),p=({target:{value:b}})=>c(b===""?h.emptyValue:b),v=({target:{value:b}})=>l(e,b),y=({target:{value:b}})=>a(e,b);return X.jsxs(Yi,{mb:1,...g,isDisabled:o||u,isRequired:d,isReadOnly:u,isInvalid:m&&m.length>0,children:[os(X.jsx(rs,{htmlFor:e,children:n}),i||!n),X.jsx(hw,{id:e,name:e,value:r??"",placeholder:t,autoFocus:s,onChange:p,onBlur:v,onFocus:y,"aria-describedby":yn(e)})]})}function y3e(e){const{id:t,uiSchema:r,readonly:n,disabled:i,label:o,hideLabel:s,value:u,onChange:l,onBlur:a,onFocus:c,rawErrors:h,required:f}=e,d=na({uiSchema:r}),m=v=>l(v),g=({target:{value:v}})=>a(t,v),p=({target:{value:v}})=>c(t,v);return X.jsxs(Yi,{mb:1,...d,isDisabled:i||n,isRequired:f,isReadOnly:n,isInvalid:h&&h.length>0,children:[os(X.jsx(rs,{htmlFor:t,children:o}),s||!o),X.jsxs(HE,{value:u??"",onChange:m,onBlur:g,onFocus:p,"aria-describedby":yn(t),children:[X.jsx(qE,{id:t,name:t}),X.jsxs(WE,{children:[X.jsx(XE,{}),X.jsx(GE,{})]})]})]})}function b3e(){return{AltDateTimeWidget:EA,AltDateWidget:l_,CheckboxWidget:Ebe,CheckboxesWidget:Tbe,RadioWidget:$be,RangeWidget:Abe,SelectWidget:g3e,TextareaWidget:v3e,UpDownWidget:y3e}}function w3e(){return{templates:xbe(),widgets:b3e()}}function _3e(){return Qye(w3e())}const x3e=_3e();var tb={exports:{}},iP={},Wi={},$u={},$f={},Tt={},Gd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((b,_)=>`${b}${_}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((b,_)=>(_ instanceof r&&(b[_.str]=(b[_.str]||0)+1),b),{})}}e._Code=n,e.nil=new n("");function i(v,...y){const b=[v[0]];let _=0;for(;_{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${a}${h.scopePath}`})}scopeCode(a=this._values,c,h){return this._reduceValues(a,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},c,h)}_reduceValues(a,c,h={},f){let d=t.nil;for(const m in a){const g=a[m];if(!g)continue;const p=h[m]=h[m]||new Map;g.forEach(v=>{if(p.has(v))return;p.set(v,n.Started);let y=c(v);if(y){const b=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${b} ${v} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(v))d=(0,t._)`${d}${y}${this.opts._n}`;else throw new r(v);p.set(v,n.Completed)})}return d}}e.ValueScope=u})(rb);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Gd,r=rb;var n=Gd;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=rb;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(B,W){return this}}class s extends o{constructor(B,W,N){super(),this.varKind=B,this.name=W,this.rhs=N}render({es5:B,_n:W}){const N=B?r.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${q};`+W}optimizeNames(B,W){if(B[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,B,W)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class u extends o{constructor(B,W,N){super(),this.lhs=B,this.rhs=W,this.sideEffects=N}render({_n:B}){return`${this.lhs} = ${this.rhs};`+B}optimizeNames(B,W){if(!(this.lhs instanceof t.Name&&!B[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,B,W),this}get names(){const B=this.lhs instanceof t.Name?{}:{...this.lhs.names};return A(B,this.rhs)}}class l extends u{constructor(B,W,N,q){super(B,N,q),this.op=W}render({_n:B}){return`${this.lhs} ${this.op}= ${this.rhs};`+B}}class a extends o{constructor(B){super(),this.label=B,this.names={}}render({_n:B}){return`${this.label}:`+B}}class c extends o{constructor(B){super(),this.label=B,this.names={}}render({_n:B}){return`break${this.label?` ${this.label}`:""};`+B}}class h extends o{constructor(B){super(),this.error=B}render({_n:B}){return`throw ${this.error};`+B}get names(){return this.error.names}}class f extends o{constructor(B){super(),this.code=B}render({_n:B}){return`${this.code};`+B}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(B,W){return this.code=O(this.code,B,W),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends o{constructor(B=[]){super(),this.nodes=B}render(B){return this.nodes.reduce((W,N)=>W+N.render(B),"")}optimizeNodes(){const{nodes:B}=this;let W=B.length;for(;W--;){const N=B[W].optimizeNodes();Array.isArray(N)?B.splice(W,1,...N):N?B[W]=N:B.splice(W,1)}return B.length>0?this:void 0}optimizeNames(B,W){const{nodes:N}=this;let q=N.length;for(;q--;){const j=N[q];j.optimizeNames(B,W)||(C(B,j.names),N.splice(q,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((B,W)=>V(B,W.names),{})}}class m extends d{render(B){return"{"+B._n+super.render(B)+"}"+B._n}}class g extends d{}class p extends m{}p.kind="else";class v extends m{constructor(B,W){super(W),this.condition=B}render(B){let W=`if(${this.condition})`+super.render(B);return this.else&&(W+="else "+this.else.render(B)),W}optimizeNodes(){super.optimizeNodes();const B=this.condition;if(B===!0)return this.nodes;let W=this.else;if(W){const N=W.optimizeNodes();W=this.else=Array.isArray(N)?new p(N):N}if(W)return B===!1?W instanceof v?W:W.nodes:this.nodes.length?this:new v(w(B),W instanceof v?[W]:W.nodes);if(!(B===!1||!this.nodes.length))return this}optimizeNames(B,W){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(B,W),!!(super.optimizeNames(B,W)||this.else))return this.condition=O(this.condition,B,W),this}get names(){const B=super.names;return A(B,this.condition),this.else&&V(B,this.else.names),B}}v.kind="if";class y extends m{}y.kind="for";class b extends y{constructor(B){super(),this.iteration=B}render(B){return`for(${this.iteration})`+super.render(B)}optimizeNames(B,W){if(super.optimizeNames(B,W))return this.iteration=O(this.iteration,B,W),this}get names(){return V(super.names,this.iteration.names)}}class _ extends y{constructor(B,W,N,q){super(),this.varKind=B,this.name=W,this.from=N,this.to=q}render(B){const W=B.es5?r.varKinds.var:this.varKind,{name:N,from:q,to:j}=this;return`for(${W} ${N}=${q}; ${N}<${j}; ${N}++)`+super.render(B)}get names(){const B=A(super.names,this.from);return A(B,this.to)}}class E extends y{constructor(B,W,N,q){super(),this.loop=B,this.varKind=W,this.name=N,this.iterable=q}render(B){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(B)}optimizeNames(B,W){if(super.optimizeNames(B,W))return this.iterable=O(this.iterable,B,W),this}get names(){return V(super.names,this.iterable.names)}}class $ extends m{constructor(B,W,N){super(),this.name=B,this.args=W,this.async=N}render(B){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(B)}}$.kind="func";class M extends d{render(B){return"return "+super.render(B)}}M.kind="return";class P extends m{render(B){let W="try"+super.render(B);return this.catch&&(W+=this.catch.render(B)),this.finally&&(W+=this.finally.render(B)),W}optimizeNodes(){var B,W;return super.optimizeNodes(),(B=this.catch)===null||B===void 0||B.optimizeNodes(),(W=this.finally)===null||W===void 0||W.optimizeNodes(),this}optimizeNames(B,W){var N,q;return super.optimizeNames(B,W),(N=this.catch)===null||N===void 0||N.optimizeNames(B,W),(q=this.finally)===null||q===void 0||q.optimizeNames(B,W),this}get names(){const B=super.names;return this.catch&&V(B,this.catch.names),this.finally&&V(B,this.finally.names),B}}class D extends m{constructor(B){super(),this.error=B}render(B){return`catch(${this.error})`+super.render(B)}}D.kind="catch";class F extends m{render(B){return"finally"+super.render(B)}}F.kind="finally";class U{constructor(B,W={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...W,_n:W.lines?` -`:""},this._extScope=B,this._scope=new r.Scope({parent:B}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(B){return this._scope.name(B)}scopeName(B){return this._extScope.name(B)}scopeValue(B,W){const N=this._extScope.value(B,W);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(B,W){return this._extScope.getValue(B,W)}scopeRefs(B){return this._extScope.scopeRefs(B,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(B,W,N,q){const j=this._scope.toName(W);return N!==void 0&&q&&(this._constants[j.str]=N),this._leafNode(new s(B,j,N)),j}const(B,W,N){return this._def(r.varKinds.const,B,W,N)}let(B,W,N){return this._def(r.varKinds.let,B,W,N)}var(B,W,N){return this._def(r.varKinds.var,B,W,N)}assign(B,W,N){return this._leafNode(new u(B,W,N))}add(B,W){return this._leafNode(new l(B,e.operators.ADD,W))}code(B){return typeof B=="function"?B():B!==t.nil&&this._leafNode(new f(B)),this}object(...B){const W=["{"];for(const[N,q]of B)W.length>1&&W.push(","),W.push(N),(N!==q||this.opts.es5)&&(W.push(":"),(0,t.addCodeArg)(W,q));return W.push("}"),new t._Code(W)}if(B,W,N){if(this._blockNode(new v(B)),W&&N)this.code(W).else().code(N).endIf();else if(W)this.code(W).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(B){return this._elseNode(new v(B))}else(){return this._elseNode(new p)}endIf(){return this._endBlockNode(v,p)}_for(B,W){return this._blockNode(B),W&&this.code(W).endFor(),this}for(B,W){return this._for(new b(B),W)}forRange(B,W,N,q,j=this.opts.es5?r.varKinds.var:r.varKinds.let){const R=this._scope.toName(B);return this._for(new _(j,R,W,N),()=>q(R))}forOf(B,W,N,q=r.varKinds.const){const j=this._scope.toName(B);if(this.opts.es5){const R=W instanceof t.Name?W:this.var("_arr",W);return this.forRange("_i",0,(0,t._)`${R}.length`,H=>{this.var(j,(0,t._)`${R}[${H}]`),N(j)})}return this._for(new E("of",q,j,W),()=>N(j))}forIn(B,W,N,q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(B,(0,t._)`Object.keys(${W})`,N);const j=this._scope.toName(B);return this._for(new E("in",q,j,W),()=>N(j))}endFor(){return this._endBlockNode(y)}label(B){return this._leafNode(new a(B))}break(B){return this._leafNode(new c(B))}return(B){const W=new M;if(this._blockNode(W),this.code(B),W.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(M)}try(B,W,N){if(!W&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new P;if(this._blockNode(q),this.code(B),W){const j=this.name("e");this._currNode=q.catch=new D(j),W(j)}return N&&(this._currNode=q.finally=new F,this.code(N)),this._endBlockNode(D,F)}throw(B){return this._leafNode(new h(B))}block(B,W){return this._blockStarts.push(this._nodes.length),B&&this.code(B).endBlock(W),this}endBlock(B){const W=this._blockStarts.pop();if(W===void 0)throw new Error("CodeGen: not in self-balancing block");const N=this._nodes.length-W;if(N<0||B!==void 0&&N!==B)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${B} expected`);return this._nodes.length=W,this}func(B,W=t.nil,N,q){return this._blockNode(new $(B,W,N)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(B=1){for(;B-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(B){return this._currNode.nodes.push(B),this}_blockNode(B){this._currNode.nodes.push(B),this._nodes.push(B)}_endBlockNode(B,W){const N=this._currNode;if(N instanceof B||W&&N instanceof W)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${W?`${B.kind}/${W.kind}`:B.kind}"`)}_elseNode(B){const W=this._currNode;if(!(W instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=W.else=B,this}get _root(){return this._nodes[0]}get _currNode(){const B=this._nodes;return B[B.length-1]}set _currNode(B){const W=this._nodes;W[W.length-1]=B}}e.CodeGen=U;function V(z,B){for(const W in B)z[W]=(z[W]||0)+(B[W]||0);return z}function A(z,B){return B instanceof t._CodeOrName?V(z,B.names):z}function O(z,B,W){if(z instanceof t.Name)return N(z);if(!q(z))return z;return new t._Code(z._items.reduce((j,R)=>(R instanceof t.Name&&(R=N(R)),R instanceof t._Code?j.push(...R._items):j.push(R),j),[]));function N(j){const R=W[j.str];return R===void 0||B[j.str]!==1?j:(delete B[j.str],R)}function q(j){return j instanceof t._Code&&j._items.some(R=>R instanceof t.Name&&B[R.str]===1&&W[R.str]!==void 0)}}function C(z,B){for(const W in B)z[W]=(z[W]||0)-(B[W]||0)}function w(z){return typeof z=="boolean"||typeof z=="number"||z===null?!z:(0,t._)`!${L(z)}`}e.not=w;const S=I(e.operators.AND);function x(...z){return z.reduce(S)}e.and=x;const k=I(e.operators.OR);function T(...z){return z.reduce(k)}e.or=T;function I(z){return(B,W)=>B===t.nil?W:W===t.nil?B:(0,t._)`${L(B)} ${z} ${L(W)}`}function L(z){return z instanceof t.Name?z:(0,t._)`(${z})`}})(Tt);var qt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Tt,r=Gd;function n($){const M={};for(const P of $)M[P]=!0;return M}e.toHash=n;function i($,M){return typeof M=="boolean"?M:Object.keys(M).length===0?!0:(o($,M),!s(M,$.self.RULES.all))}e.alwaysValidSchema=i;function o($,M=$.schema){const{opts:P,self:D}=$;if(!P.strictSchema||typeof M=="boolean")return;const F=D.RULES.keywords;for(const U in M)F[U]||E($,`unknown keyword: "${U}"`)}e.checkUnknownRules=o;function s($,M){if(typeof $=="boolean")return!$;for(const P in $)if(M[P])return!0;return!1}e.schemaHasRules=s;function u($,M){if(typeof $=="boolean")return!$;for(const P in $)if(P!=="$ref"&&M.all[P])return!0;return!1}e.schemaHasRulesButRef=u;function l({topSchemaRef:$,schemaPath:M},P,D,F){if(!F){if(typeof P=="number"||typeof P=="boolean")return P;if(typeof P=="string")return(0,t._)`${P}`}return(0,t._)`${$}${M}${(0,t.getProperty)(D)}`}e.schemaRefOrVal=l;function a($){return f(decodeURIComponent($))}e.unescapeFragment=a;function c($){return encodeURIComponent(h($))}e.escapeFragment=c;function h($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=h;function f($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function d($,M){if(Array.isArray($))for(const P of $)M(P);else M($)}e.eachItem=d;function m({mergeNames:$,mergeToName:M,mergeValues:P,resultToName:D}){return(F,U,V,A)=>{const O=V===void 0?U:V instanceof t.Name?(U instanceof t.Name?$(F,U,V):M(F,U,V),V):U instanceof t.Name?(M(F,V,U),U):P(U,V);return A===t.Name&&!(O instanceof t.Name)?D(F,O):O}}e.mergeEvaluated={props:m({mergeNames:($,M,P)=>$.if((0,t._)`${P} !== true && ${M} !== undefined`,()=>{$.if((0,t._)`${M} === true`,()=>$.assign(P,!0),()=>$.assign(P,(0,t._)`${P} || {}`).code((0,t._)`Object.assign(${P}, ${M})`))}),mergeToName:($,M,P)=>$.if((0,t._)`${P} !== true`,()=>{M===!0?$.assign(P,!0):($.assign(P,(0,t._)`${P} || {}`),p($,P,M))}),mergeValues:($,M)=>$===!0?!0:{...$,...M},resultToName:g}),items:m({mergeNames:($,M,P)=>$.if((0,t._)`${P} !== true && ${M} !== undefined`,()=>$.assign(P,(0,t._)`${M} === true ? true : ${P} > ${M} ? ${P} : ${M}`)),mergeToName:($,M,P)=>$.if((0,t._)`${P} !== true`,()=>$.assign(P,M===!0?!0:(0,t._)`${P} > ${M} ? ${P} : ${M}`)),mergeValues:($,M)=>$===!0?!0:Math.max($,M),resultToName:($,M)=>$.var("items",M)})};function g($,M){if(M===!0)return $.var("props",!0);const P=$.var("props",(0,t._)`{}`);return M!==void 0&&p($,P,M),P}e.evaluatedPropsToName=g;function p($,M,P){Object.keys(P).forEach(D=>$.assign((0,t._)`${M}${(0,t.getProperty)(D)}`,!0))}e.setEvaluated=p;const v={};function y($,M){return $.scopeValue("func",{ref:M,code:v[M.code]||(v[M.code]=new r._Code(M.code))})}e.useFunc=y;var b;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(b=e.Type||(e.Type={}));function _($,M,P){if($ instanceof t.Name){const D=M===b.Num;return P?D?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:D?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return P?(0,t.getProperty)($).toString():"/"+h($)}e.getErrorPath=_;function E($,M,P=$.opts.strictSchema){if(P){if(M=`strict mode: ${M}`,P===!0)throw new Error(M);$.self.logger.warn(M)}}e.checkStrictMode=E})(qt);var So={};Object.defineProperty(So,"__esModule",{value:!0});const hn=Tt,S3e={data:new hn.Name("data"),valCxt:new hn.Name("valCxt"),instancePath:new hn.Name("instancePath"),parentData:new hn.Name("parentData"),parentDataProperty:new hn.Name("parentDataProperty"),rootData:new hn.Name("rootData"),dynamicAnchors:new hn.Name("dynamicAnchors"),vErrors:new hn.Name("vErrors"),errors:new hn.Name("errors"),this:new hn.Name("this"),self:new hn.Name("self"),scope:new hn.Name("scope"),json:new hn.Name("json"),jsonPos:new hn.Name("jsonPos"),jsonLen:new hn.Name("jsonLen"),jsonPart:new hn.Name("jsonPart")};So.default=S3e;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Tt,r=qt,n=So;e.keywordError={message:({keyword:p})=>(0,t.str)`must pass "${p}" keyword validation`},e.keyword$DataError={message:({keyword:p,schemaType:v})=>v?(0,t.str)`"${p}" keyword must be ${v} ($data)`:(0,t.str)`"${p}" keyword is invalid ($data)`};function i(p,v=e.keywordError,y,b){const{it:_}=p,{gen:E,compositeRule:$,allErrors:M}=_,P=h(p,v,y);b??($||M)?l(E,P):a(_,(0,t._)`[${P}]`)}e.reportError=i;function o(p,v=e.keywordError,y){const{it:b}=p,{gen:_,compositeRule:E,allErrors:$}=b,M=h(p,v,y);l(_,M),E||$||a(b,n.default.vErrors)}e.reportExtraError=o;function s(p,v){p.assign(n.default.errors,v),p.if((0,t._)`${n.default.vErrors} !== null`,()=>p.if(v,()=>p.assign((0,t._)`${n.default.vErrors}.length`,v),()=>p.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function u({gen:p,keyword:v,schemaValue:y,data:b,errsCount:_,it:E}){if(_===void 0)throw new Error("ajv implementation error");const $=p.name("err");p.forRange("i",_,n.default.errors,M=>{p.const($,(0,t._)`${n.default.vErrors}[${M}]`),p.if((0,t._)`${$}.instancePath === undefined`,()=>p.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(n.default.instancePath,E.errorPath))),p.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${E.errSchemaPath}/${v}`),E.opts.verbose&&(p.assign((0,t._)`${$}.schema`,y),p.assign((0,t._)`${$}.data`,b))})}e.extendErrors=u;function l(p,v){const y=p.const("err",v);p.if((0,t._)`${n.default.vErrors} === null`,()=>p.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),p.code((0,t._)`${n.default.errors}++`)}function a(p,v){const{gen:y,validateName:b,schemaEnv:_}=p;_.$async?y.throw((0,t._)`new ${p.ValidationError}(${v})`):(y.assign((0,t._)`${b}.errors`,v),y.return(!1))}const c={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function h(p,v,y){const{createErrors:b}=p.it;return b===!1?(0,t._)`{}`:f(p,v,y)}function f(p,v,y={}){const{gen:b,it:_}=p,E=[d(_,y),m(p,y)];return g(p,v,E),b.object(...E)}function d({errorPath:p},{instancePath:v}){const y=v?(0,t.str)`${p}${(0,r.getErrorPath)(v,r.Type.Str)}`:p;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function m({keyword:p,it:{errSchemaPath:v}},{schemaPath:y,parentSchema:b}){let _=b?v:(0,t.str)`${v}/${p}`;return y&&(_=(0,t.str)`${_}${(0,r.getErrorPath)(y,r.Type.Str)}`),[c.schemaPath,_]}function g(p,{params:v,message:y},b){const{keyword:_,data:E,schemaValue:$,it:M}=p,{opts:P,propertyName:D,topSchemaRef:F,schemaPath:U}=M;b.push([c.keyword,_],[c.params,typeof v=="function"?v(p):v||(0,t._)`{}`]),P.messages&&b.push([c.message,typeof y=="function"?y(p):y]),P.verbose&&b.push([c.schema,$],[c.parentSchema,(0,t._)`${F}${U}`],[n.default.data,E]),D&&b.push([c.propertyName,D])}})($f);Object.defineProperty($u,"__esModule",{value:!0});$u.boolOrEmptySchema=$u.topBoolOrEmptySchema=void 0;const k3e=$f,C3e=Tt,E3e=So,T3e={message:"boolean schema is false"};function $3e(e){const{gen:t,schema:r,validateName:n}=e;r===!1?oP(e,!1):typeof r=="object"&&r.$async===!0?t.return(E3e.default.data):(t.assign((0,C3e._)`${n}.errors`,null),t.return(!0))}$u.topBoolOrEmptySchema=$3e;function A3e(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),oP(e)):r.var(t,!0)}$u.boolOrEmptySchema=A3e;function oP(e,t){const{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,k3e.reportError)(i,T3e,void 0,t)}var Af={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});Ha.getRules=Ha.isJSONType=void 0;const P3e=["string","number","integer","boolean","null","object","array"],O3e=new Set(P3e);function M3e(e){return typeof e=="string"&&O3e.has(e)}Ha.isJSONType=M3e;function I3e(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Ha.getRules=I3e;var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});Wo.shouldUseRule=Wo.shouldUseGroup=Wo.schemaHasRulesForType=void 0;function R3e({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&sP(e,n)}Wo.schemaHasRulesForType=R3e;function sP(e,t){return t.rules.some(r=>aP(e,r))}Wo.shouldUseGroup=sP;function aP(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Wo.shouldUseRule=aP;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Ha,r=Wo,n=$f,i=Tt,o=qt;var s;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(s=e.DataType||(e.DataType={}));function u(b){const _=l(b.type);if(_.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!_.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&_.push("null")}return _}e.getSchemaTypes=u;function l(b){const _=Array.isArray(b)?b:b?[b]:[];if(_.every(t.isJSONType))return _;throw new Error("type must be JSONType or JSONType[]: "+_.join(","))}e.getJSONTypes=l;function a(b,_){const{gen:E,data:$,opts:M}=b,P=h(_,M.coerceTypes),D=_.length>0&&!(P.length===0&&_.length===1&&(0,r.schemaHasRulesForType)(b,_[0]));if(D){const F=g(_,$,M.strictNumbers,s.Wrong);E.if(F,()=>{P.length?f(b,_,P):v(b)})}return D}e.coerceAndCheckDataType=a;const c=new Set(["string","number","integer","boolean","null"]);function h(b,_){return _?b.filter(E=>c.has(E)||_==="array"&&E==="array"):[]}function f(b,_,E){const{gen:$,data:M,opts:P}=b,D=$.let("dataType",(0,i._)`typeof ${M}`),F=$.let("coerced",(0,i._)`undefined`);P.coerceTypes==="array"&&$.if((0,i._)`${D} == 'object' && Array.isArray(${M}) && ${M}.length == 1`,()=>$.assign(M,(0,i._)`${M}[0]`).assign(D,(0,i._)`typeof ${M}`).if(g(_,M,P.strictNumbers),()=>$.assign(F,M))),$.if((0,i._)`${F} !== undefined`);for(const V of E)(c.has(V)||V==="array"&&P.coerceTypes==="array")&&U(V);$.else(),v(b),$.endIf(),$.if((0,i._)`${F} !== undefined`,()=>{$.assign(M,F),d(b,F)});function U(V){switch(V){case"string":$.elseIf((0,i._)`${D} == "number" || ${D} == "boolean"`).assign(F,(0,i._)`"" + ${M}`).elseIf((0,i._)`${M} === null`).assign(F,(0,i._)`""`);return;case"number":$.elseIf((0,i._)`${D} == "boolean" || ${M} === null +`]))),Y2e=function(t,r){var n=t.isFocused,i=t.size,o=t.theme,s=o.colors,u=o.spacing.baseUnit;return at({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?s.neutral60:s.neutral20,padding:u*2})},U1=function(t){var r=t.delay,n=t.offset;return ht("span",{css:p2({animation:"".concat(X2e," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Z2e=function(t){var r=t.innerProps,n=t.isRtl,i=t.size,o=i===void 0?4:i,s=ss(t,z2e);return ht("div",ot({},Ir(at(at({},s),{},{innerProps:r,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ht(U1,{delay:0,offset:n}),ht(U1,{delay:160,offset:!0}),ht(U1,{delay:320,offset:!n}))},Q2e=function(t,r){var n=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,u=o.borderRadius,l=o.spacing;return at({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?s.neutral5:s.neutral0,borderColor:n?s.neutral10:i?s.primary:s.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},J2e=function(t){var r=t.children,n=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,u=t.menuIsOpen;return ht("div",ot({ref:o},Ir(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":i,"control--menu-is-open":u}),s,{"aria-disabled":n||void 0}),r)},ewe=J2e,twe=["data"],rwe=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},nwe=function(t){var r=t.children,n=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,u=t.headingProps,l=t.innerProps,a=t.label,c=t.theme,h=t.selectProps;return ht("div",ot({},Ir(t,"group",{group:!0}),l),ht(s,ot({},u,{selectProps:h,theme:c,getStyles:i,getClassNames:o,cx:n}),a),ht("div",null,r))},iwe=function(t,r){var n=t.theme,i=n.colors,o=n.spacing;return at({label:"group",cursor:"default",display:"block"},r?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},owe=function(t){var r=jA(t);r.data;var n=ss(r,twe);return ht("div",ot({},Ir(t,"groupHeading",{"group-heading":!0}),n))},swe=nwe,awe=["innerRef","isDisabled","isHidden","inputClassName"],lwe=function(t,r){var n=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,u=o.colors;return at(at({visibility:n?"hidden":"visible",transform:i?"translateZ(0)":""},uwe),r?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},HA={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},uwe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":at({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},HA)},cwe=function(t){return at({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},HA)},dwe=function(t){var r=t.cx,n=t.value,i=jA(t),o=i.innerRef,s=i.isDisabled,u=i.isHidden,l=i.inputClassName,a=ss(i,awe);return ht("div",ot({},Ir(t,"input",{"input-container":!0}),{"data-value":n||""}),ht("input",ot({className:r({input:!0},l),ref:o,style:cwe(u),disabled:s},a)))},fwe=dwe,hwe=function(t,r){var n=t.theme,i=n.spacing,o=n.borderRadius,s=n.colors;return at({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},pwe=function(t,r){var n=t.theme,i=n.borderRadius,o=n.colors,s=t.cropWithEllipsis;return at({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},mwe=function(t,r){var n=t.theme,i=n.spacing,o=n.borderRadius,s=n.colors,u=t.isFocused;return at({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},WA=function(t){var r=t.children,n=t.innerProps;return ht("div",n,r)},gwe=WA,vwe=WA;function ywe(e){var t=e.children,r=e.innerProps;return ht("div",ot({role:"button"},r),t||ht(f_,{size:14}))}var bwe=function(t){var r=t.children,n=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,u=t.removeProps,l=t.selectProps,a=n.Container,c=n.Label,h=n.Remove;return ht(a,{data:i,innerProps:at(at({},Ir(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:l},ht(c,{data:i,innerProps:at({},Ir(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},r),ht(h,{data:i,innerProps:at(at({},Ir(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},u),selectProps:l}))},wwe=bwe,_we=function(t,r){var n=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,u=s.spacing,l=s.colors;return at({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},xwe=function(t){var r=t.children,n=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,u=t.innerProps;return ht("div",ot({},Ir(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":n},u),r)},Swe=xwe,kwe=function(t,r){var n=t.theme,i=n.spacing,o=n.colors;return at({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Cwe=function(t){var r=t.children,n=t.innerProps;return ht("div",ot({},Ir(t,"placeholder",{placeholder:!0}),n),r)},Ewe=Cwe,Twe=function(t,r){var n=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return at({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},$we=function(t){var r=t.children,n=t.isDisabled,i=t.innerProps;return ht("div",ot({},Ir(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),i),r)},Awe=$we,Pwe={ClearIndicator:q2e,Control:ewe,DropdownIndicator:H2e,DownChevron:VA,CrossIcon:f_,Group:swe,GroupHeading:owe,IndicatorsContainer:L2e,IndicatorSeparator:G2e,Input:fwe,LoadingIndicator:Z2e,Menu:C2e,MenuList:T2e,MenuPortal:I2e,LoadingMessage:O2e,NoOptionsMessage:P2e,MultiValue:wwe,MultiValueContainer:gwe,MultiValueLabel:vwe,MultiValueRemove:ywe,Option:Swe,Placeholder:Ewe,SelectContainer:j2e,SingleValue:Awe,ValueContainer:D2e},Owe=function(t){return at(at({},Pwe),t.components)},j6=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Mwe(e,t){return!!(e===t||j6(e)&&j6(t))}function Iwe(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,u=t.selectValue,l=t.isDisabled,a=t.isSelected,c=function(m,g){return m&&m.length?"".concat(m.indexOf(g)+1," of ").concat(m.length):""};if(r==="value"&&u)return"value ".concat(s," focused, ").concat(c(u,n),".");if(r==="menu"){var h=l?" disabled":"",f="".concat(a?"selected":"focused").concat(h);return"option ".concat(s," ").concat(f,", ").concat(c(i,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},Fwe=function(t){var r=t.ariaSelection,n=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,u=t.selectValue,l=t.selectProps,a=t.id,c=l.ariaLiveMessages,h=l.getOptionLabel,f=l.inputValue,d=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,p=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,b=l.tabSelectsValue,_=l["aria-label"],E=l["aria-live"],$=G.useMemo(function(){return at(at({},Dwe),c||{})},[c]),M=G.useMemo(function(){var O="";if(r&&$.onChange){var C=r.option,w=r.options,S=r.removedValue,x=r.removedValues,k=r.value,T=function(q){return Array.isArray(q)?null:q},I=S||C||T(k),L=I?h(I):"",z=w||x||void 0,B=z?z.map(h):[],W=at({isDisabled:I&&m(I,u),label:L,labels:B},r);O=$.onChange(W)}return O},[r,$,m,u,h]),P=G.useMemo(function(){var O="",C=n||i,w=!!(n&&u&&u.includes(n));if(C&&$.onFocus){var S={focused:C,label:h(C),isDisabled:m(C,u),isSelected:w,options:o,context:C===n?"menu":"value",selectValue:u};O=$.onFocus(S)}return O},[n,i,h,m,$,o,u]),D=G.useMemo(function(){var O="";if(p&&v.length&&$.onFilter){var C=y({count:o.length});O=$.onFilter({inputValue:f,resultsMessage:C})}return O},[o,f,p,$,v,y]),F=G.useMemo(function(){var O="";if($.guidance){var C=i?"value":p?"menu":"input";O=$.guidance({"aria-label":_,context:C,isDisabled:n&&m(n,u),isMulti:d,isSearchable:g,tabSelectsValue:b})}return O},[_,n,i,d,m,g,p,$,u,b]),U="".concat(P," ").concat(D," ").concat(F),V=ht(G.Fragment,null,ht("span",{id:"aria-selection"},M),ht("span",{id:"aria-context"},U)),A=(r==null?void 0:r.action)==="initial-input-focus";return ht(G.Fragment,null,ht(N6,{id:a},A&&V),ht(N6,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text"},s&&!A&&V))},Lwe=Fwe,Yy=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Bwe=new RegExp("["+Yy.map(function(e){return e.letters}).join("")+"]","g"),qA={};for(var H1=0;H1-1}},Hwe=["innerRef"];function Wwe(e){var t=e.innerRef,r=ss(e,Hwe),n=v2e(r,"onExited","in","enter","exit","appear");return ht("input",ot({ref:t},n,{css:p2({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var qwe=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Kwe(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=G.useRef(!1),u=G.useRef(!1),l=G.useRef(0),a=G.useRef(null),c=G.useCallback(function(p,v){if(a.current!==null){var y=a.current,b=y.scrollTop,_=y.scrollHeight,E=y.clientHeight,$=a.current,M=v>0,P=_-E-b,D=!1;P>v&&s.current&&(n&&n(p),s.current=!1),M&&u.current&&(o&&o(p),u.current=!1),M&&v>P?(r&&!s.current&&r(p),$.scrollTop=_,D=!0,s.current=!0):!M&&-v>b&&(i&&!u.current&&i(p),$.scrollTop=0,D=!0,u.current=!0),D&&qwe(p)}},[r,n,i,o]),h=G.useCallback(function(p){c(p,p.deltaY)},[c]),f=G.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),d=G.useCallback(function(p){var v=l.current-p.changedTouches[0].clientY;c(p,v)},[c]),m=G.useCallback(function(p){if(p){var v=p2e?{passive:!1}:!1;p.addEventListener("wheel",h,v),p.addEventListener("touchstart",f,v),p.addEventListener("touchmove",d,v)}},[d,f,h]),g=G.useCallback(function(p){p&&(p.removeEventListener("wheel",h,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",d,!1))},[d,f,h]);return G.useEffect(function(){if(t){var p=a.current;return m(p),function(){g(p)}}},[t,m,g]),function(p){a.current=p}}var F6=["boxSizing","height","overflow","paddingRight","position"],L6={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function B6(e){e.preventDefault()}function z6(e){e.stopPropagation()}function V6(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function U6(){return"ontouchstart"in window||navigator.maxTouchPoints}var H6=!!(typeof window<"u"&&window.document&&window.document.createElement),xc=0,ml={capture:!1,passive:!1};function Gwe(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,i=G.useRef({}),o=G.useRef(null),s=G.useCallback(function(l){if(H6){var a=document.body,c=a&&a.style;if(n&&F6.forEach(function(m){var g=c&&c[m];i.current[m]=g}),n&&xc<1){var h=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,d=window.innerWidth-f+h||0;Object.keys(L6).forEach(function(m){var g=L6[m];c&&(c[m]=g)}),c&&(c.paddingRight="".concat(d,"px"))}a&&U6()&&(a.addEventListener("touchmove",B6,ml),l&&(l.addEventListener("touchstart",V6,ml),l.addEventListener("touchmove",z6,ml))),xc+=1}},[n]),u=G.useCallback(function(l){if(H6){var a=document.body,c=a&&a.style;xc=Math.max(xc-1,0),n&&xc<1&&F6.forEach(function(h){var f=i.current[h];c&&(c[h]=f)}),a&&U6()&&(a.removeEventListener("touchmove",B6,ml),l&&(l.removeEventListener("touchstart",V6,ml),l.removeEventListener("touchmove",z6,ml)))}},[n]);return G.useEffect(function(){if(t){var l=o.current;return s(l),function(){u(l)}}},[t,s,u]),function(l){o.current=l}}var Xwe=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Ywe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Zwe(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,i=n===void 0?!0:n,o=e.onBottomArrive,s=e.onBottomLeave,u=e.onTopArrive,l=e.onTopLeave,a=Kwe({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:u,onTopLeave:l}),c=Gwe({isEnabled:r}),h=function(d){a(d),c(d)};return ht(G.Fragment,null,r&&ht("div",{onClick:Xwe,css:Ywe}),t(h))}var Qwe={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Jwe=function(t){var r=t.name,n=t.onFocus;return ht("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Qwe,value:"",onChange:function(){}})},e_e=Jwe,t_e=function(t){return t.label},r_e=function(t){return t.label},n_e=function(t){return t.value},i_e=function(t){return!!t.isDisabled},o_e={clearIndicator:W2e,container:R2e,control:Q2e,dropdownIndicator:U2e,group:rwe,groupHeading:iwe,indicatorsContainer:F2e,indicatorSeparator:K2e,input:lwe,loadingIndicator:Y2e,loadingMessage:A2e,menu:x2e,menuList:E2e,menuPortal:M2e,multiValue:hwe,multiValueLabel:pwe,multiValueRemove:mwe,noOptionsMessage:$2e,option:_we,placeholder:kwe,singleValue:Twe,valueContainer:N2e},s_e={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},a_e=4,GA=4,l_e=38,u_e=GA*2,c_e={baseUnit:GA,controlHeight:l_e,menuGutter:u_e},K1={borderRadius:a_e,colors:s_e,spacing:c_e},d_e={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:I6(),captureMenuScroll:!I6(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Uwe(),formatGroupLabel:t_e,getOptionLabel:r_e,getOptionValue:n_e,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:i_e,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!f2e(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function W6(e,t,r,n){var i=QA(e,t,r),o=JA(e,t,r),s=ZA(e,t),u=_m(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:u,index:n}}function XA(e,t){return e.options.map(function(r,n){if("options"in r){var i=r.options.map(function(s,u){return W6(e,s,t,u)}).filter(function(s){return q6(e,s)});return i.length>0?{type:"group",data:r,options:i,index:n}:void 0}var o=W6(e,r,t,n);return q6(e,o)?o:void 0}).filter(m2e)}function YA(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,AA(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function f_e(e,t){return YA(XA(e,t))}function q6(e,t){var r=e.inputValue,n=r===void 0?"":r,i=t.data,o=t.isSelected,s=t.label,u=t.value;return(!tP(e)||!o)&&eP(e,{label:s,value:u,data:i},n)}function h_e(e,t){var r=e.focusedValue,n=e.selectValue,i=n.indexOf(r);if(i>-1){var o=t.indexOf(r);if(o>-1)return r;if(i-1?r:t[0]}var ZA=function(t,r){return t.getOptionLabel(r)},_m=function(t,r){return t.getOptionValue(r)};function QA(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function JA(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=_m(e,t);return r.some(function(i){return _m(e,i)===n})}function eP(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var tP=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},m_e=1,rP=function(e){Fbe(r,e);var t=Vbe(r);function r(n){var i;if(Nbe(this,r),i=t.call(this,n),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(u){i.controlRef=u},i.focusedOptionRef=null,i.getFocusedOptionRef=function(u){i.focusedOptionRef=u},i.menuListRef=null,i.getMenuListRef=function(u){i.menuListRef=u},i.inputRef=null,i.getInputRef=function(u){i.inputRef=u},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(u,l){var a=i.props,c=a.onChange,h=a.name;l.name=h,i.ariaOnChange(u,l),c(u,l)},i.setValue=function(u,l,a){var c=i.props,h=c.closeMenuOnSelect,f=c.isMulti,d=c.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:d}),h&&(i.setState({inputIsHiddenAfterUpdate:!f}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(u,{action:l,option:a})},i.selectOption=function(u){var l=i.props,a=l.blurInputOnSelect,c=l.isMulti,h=l.name,f=i.state.selectValue,d=c&&i.isOptionSelected(u,f),m=i.isOptionDisabled(u,f);if(d){var g=i.getOptionValue(u);i.setValue(f.filter(function(p){return i.getOptionValue(p)!==g}),"deselect-option",u)}else if(!m)c?i.setValue([].concat(AA(f),[u]),"select-option",u):i.setValue(u,"select-option");else{i.ariaOnChange(u,{action:"select-option",option:u,name:h});return}a&&i.blurInput()},i.removeValue=function(u){var l=i.props.isMulti,a=i.state.selectValue,c=i.getOptionValue(u),h=a.filter(function(d){return i.getOptionValue(d)!==c}),f=_h(l,h,h[0]||null);i.onChange(f,{action:"remove-value",removedValue:u}),i.focusInput()},i.clearValue=function(){var u=i.state.selectValue;i.onChange(_h(i.props.isMulti,[],null),{action:"clear",removedValues:u})},i.popValue=function(){var u=i.props.isMulti,l=i.state.selectValue,a=l[l.length-1],c=l.slice(0,l.length-1),h=_h(u,c,c[0]||null);i.onChange(h,{action:"pop-value",removedValue:a})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var u=arguments.length,l=new Array(u),a=0;af||h>f}},i.onTouchEnd=function(u){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(u.target)&&i.menuListRef&&!i.menuListRef.contains(u.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(u){i.userIsDragging||i.onControlMouseDown(u)},i.onClearIndicatorTouchEnd=function(u){i.userIsDragging||i.onClearIndicatorMouseDown(u)},i.onDropdownIndicatorTouchEnd=function(u){i.userIsDragging||i.onDropdownIndicatorMouseDown(u)},i.handleInputChange=function(u){var l=i.props.inputValue,a=u.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(a,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(u){i.props.onFocus&&i.props.onFocus(u),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(u){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(u),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(u){i.blockOptionHover||i.state.focusedOption===u||i.setState({focusedOption:u})},i.shouldHideSelectedOptions=function(){return tP(i.props)},i.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),i.focus()},i.onKeyDown=function(u){var l=i.props,a=l.isMulti,c=l.backspaceRemovesValue,h=l.escapeClearsValue,f=l.inputValue,d=l.isClearable,m=l.isDisabled,g=l.menuIsOpen,p=l.onKeyDown,v=l.tabSelectsValue,y=l.openMenuOnFocus,b=i.state,_=b.focusedOption,E=b.focusedValue,$=b.selectValue;if(!m&&!(typeof p=="function"&&(p(u),u.defaultPrevented))){switch(i.blockOptionHover=!0,u.key){case"ArrowLeft":if(!a||f)return;i.focusValue("previous");break;case"ArrowRight":if(!a||f)return;i.focusValue("next");break;case"Delete":case"Backspace":if(f)return;if(E)i.removeValue(E);else{if(!c)return;a?i.popValue():d&&i.clearValue()}break;case"Tab":if(i.isComposing||u.shiftKey||!g||!v||!_||y&&i.isOptionSelected(_,$))return;i.selectOption(_);break;case"Enter":if(u.keyCode===229)break;if(g){if(!_||i.isComposing)return;i.selectOption(_);break}return;case"Escape":g?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:f}),i.onMenuClose()):d&&h&&i.clearValue();break;case" ":if(f)return;if(!g){i.openMenu("first");break}if(!_)return;i.selectOption(_);break;case"ArrowUp":g?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":g?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!g)return;i.focusOption("pageup");break;case"PageDown":if(!g)return;i.focusOption("pagedown");break;case"Home":if(!g)return;i.focusOption("first");break;case"End":if(!g)return;i.focusOption("last");break;default:return}u.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++m_e),i.state.selectValue=O6(n.value),n.menuIsOpen&&i.state.selectValue.length){var o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusedOption=o[s]}return i}return Dbe(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&M6(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,u=o.menuIsOpen,l=this.state.isFocused;(l&&!s&&i.isDisabled||l&&u&&!i.menuIsOpen)&&this.focusInput(),l&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(M6(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,u=s.selectValue,l=s.isFocused,a=this.buildFocusableOptions(),c=i==="first"?0:a.length-1;if(!this.props.isMulti){var h=a.indexOf(u[0]);h>-1&&(c=h)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[c]},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(u);u||(l=-1);var a=s.length-1,c=-1;if(s.length){switch(i){case"previous":l===0?c=0:l===-1?c=a:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var l=0,a=u.indexOf(s);s||(a=-1),i==="up"?l=a>0?a-1:u.length-1:i==="down"?l=(a+1)%u.length:i==="pageup"?(l=a-o,l<0&&(l=0)):i==="pagedown"?(l=a+o,l>u.length-1&&(l=u.length-1)):i==="last"&&(l=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(K1):at(at({},K1),this.props.theme):K1}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,u=this.getClassNames,l=this.getValue,a=this.selectOption,c=this.setValue,h=this.props,f=h.isMulti,d=h.isRtl,m=h.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:u,getValue:l,hasValue:g,isMulti:f,isRtl:d,options:m,selectOption:a,selectProps:h,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return QA(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return JA(this.props,i,o)}},{key:"filterOption",value:function(i,o){return eP(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:u})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,u=i.inputId,l=i.inputValue,a=i.tabIndex,c=i.form,h=i.menuIsOpen,f=i.required,d=this.getComponents(),m=d.Input,g=this.state,p=g.inputIsHidden,v=g.ariaSelection,y=this.commonProps,b=u||this.getElementId("input"),_=at(at(at({"aria-autocomplete":"list","aria-expanded":h,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox"},h&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?G.createElement(m,ot({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:o,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:c,type:"text",value:l},_)):G.createElement(Wwe,ot({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bm,onFocus:this.onInputFocus,disabled:o,tabIndex:a,inputMode:"none",form:c,value:""},_))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,u=o.MultiValueContainer,l=o.MultiValueLabel,a=o.MultiValueRemove,c=o.SingleValue,h=o.Placeholder,f=this.commonProps,d=this.props,m=d.controlShouldRenderValue,g=d.isDisabled,p=d.isMulti,v=d.inputValue,y=d.placeholder,b=this.state,_=b.selectValue,E=b.focusedValue,$=b.isFocused;if(!this.hasValue()||!m)return v?null:G.createElement(h,ot({},f,{key:"placeholder",isDisabled:g,isFocused:$,innerProps:{id:this.getElementId("placeholder")}}),y);if(p)return _.map(function(P,D){var F=P===E,U="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return G.createElement(s,ot({},f,{components:{Container:u,Label:l,Remove:a},isFocused:F,isDisabled:g,key:U,index:D,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(A){A.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(v)return null;var M=_[0];return G.createElement(c,ot({},f,{data:M,isDisabled:g}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,u=this.props,l=u.isDisabled,a=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||a)return null;var h={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return G.createElement(o,ot({},s,{innerProps:h,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,u=this.props,l=u.isDisabled,a=u.isLoading,c=this.state.isFocused;if(!o||!a)return null;var h={"aria-hidden":"true"};return G.createElement(o,ot({},s,{innerProps:h,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var u=this.commonProps,l=this.props.isDisabled,a=this.state.isFocused;return G.createElement(s,ot({},u,{isDisabled:l,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,u=this.props.isDisabled,l=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return G.createElement(o,ot({},s,{innerProps:a,isDisabled:u,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,u=o.GroupHeading,l=o.Menu,a=o.MenuList,c=o.MenuPortal,h=o.LoadingMessage,f=o.NoOptionsMessage,d=o.Option,m=this.commonProps,g=this.state.focusedOption,p=this.props,v=p.captureMenuScroll,y=p.inputValue,b=p.isLoading,_=p.loadingMessage,E=p.minMenuHeight,$=p.maxMenuHeight,M=p.menuIsOpen,P=p.menuPlacement,D=p.menuPosition,F=p.menuPortalTarget,U=p.menuShouldBlockScroll,V=p.menuShouldScrollIntoView,A=p.noOptionsMessage,O=p.onMenuScrollToTop,C=p.onMenuScrollToBottom;if(!M)return null;var w=function(z,B){var W=z.type,N=z.data,q=z.isDisabled,j=z.isSelected,R=z.label,H=z.value,K=g===N,ee=q?void 0:function(){return i.onOptionHover(N)},Y=q?void 0:function(){return i.selectOption(N)},te="".concat(i.getElementId("option"),"-").concat(B),ie={id:te,onClick:Y,onMouseMove:ee,onMouseOver:ee,tabIndex:-1};return G.createElement(d,ot({},m,{innerProps:ie,data:N,isDisabled:q,isSelected:j,key:te,label:R,type:W,value:H,isFocused:K,innerRef:K?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(z.data,"menu"))},S;if(this.hasOptions())S=this.getCategorizedOptions().map(function(L){if(L.type==="group"){var z=L.data,B=L.options,W=L.index,N="".concat(i.getElementId("group"),"-").concat(W),q="".concat(N,"-heading");return G.createElement(s,ot({},m,{key:N,data:z,options:B,Heading:u,headingProps:{id:q,data:L.data},label:i.formatGroupLabel(L.data)}),L.options.map(function(j){return w(j,"".concat(W,"-").concat(j.index))}))}else if(L.type==="option")return w(L,"".concat(L.index))});else if(b){var x=_({inputValue:y});if(x===null)return null;S=G.createElement(h,m,x)}else{var k=A({inputValue:y});if(k===null)return null;S=G.createElement(f,m,k)}var T={minMenuHeight:E,maxMenuHeight:$,menuPlacement:P,menuPosition:D,menuShouldScrollIntoView:V},I=G.createElement(S2e,ot({},m,T),function(L){var z=L.ref,B=L.placerProps,W=B.placement,N=B.maxHeight;return G.createElement(l,ot({},m,T,{innerRef:z,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove,id:i.getElementId("listbox")},isLoading:b,placement:W}),G.createElement(Zwe,{captureEnabled:v,onTopArrive:O,onBottomArrive:C,lockEnabled:U},function(q){return G.createElement(a,ot({},m,{innerRef:function(R){i.getMenuListRef(R),q(R)},isLoading:b,maxHeight:N,focusedOption:g}),S)}))});return F||D==="fixed"?G.createElement(c,ot({},m,{appendTo:F,controlElement:this.controlRef,menuPlacement:P,menuPosition:D}),I):I}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,u=o.isDisabled,l=o.isMulti,a=o.name,c=o.required,h=this.state.selectValue;if(c&&!this.hasValue()&&!u)return G.createElement(e_e,{name:a,onFocus:this.onValueInputFocus});if(!(!a||u))if(l)if(s){var f=h.map(function(g){return i.getOptionValue(g)}).join(s);return G.createElement("input",{name:a,type:"hidden",value:f})}else{var d=h.length>0?h.map(function(g,p){return G.createElement("input",{key:"i-".concat(p),name:a,type:"hidden",value:i.getOptionValue(g)})}):G.createElement("input",{name:a,type:"hidden",value:""});return G.createElement("div",null,d)}else{var m=h[0]?this.getOptionValue(h[0]):"";return G.createElement("input",{name:a,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,u=o.focusedOption,l=o.focusedValue,a=o.isFocused,c=o.selectValue,h=this.getFocusableOptions();return G.createElement(Lwe,ot({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:l,isFocused:a,selectValue:c,focusableOptions:h}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,u=i.SelectContainer,l=i.ValueContainer,a=this.props,c=a.className,h=a.id,f=a.isDisabled,d=a.menuIsOpen,m=this.state.isFocused,g=this.commonProps=this.getCommonProps();return G.createElement(u,ot({},g,{className:c,innerProps:{id:h,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),G.createElement(o,ot({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:d}),G.createElement(l,ot({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),G.createElement(s,ot({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,u=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,a=o.ariaSelection,c=o.isFocused,h=o.prevWasFocused,f=i.options,d=i.value,m=i.menuIsOpen,g=i.inputValue,p=i.isMulti,v=O6(d),y={};if(s&&(d!==s.value||f!==s.options||m!==s.menuIsOpen||g!==s.inputValue)){var b=m?f_e(i,v):[],_=u?h_e(o,v):null,E=p_e(o,b);y={selectValue:v,focusedOption:E,focusedValue:_,clearFocusValueOnUpdate:!1}}var $=l!=null&&i!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},M=a,P=c&&h;return c&&!P&&(M={value:_h(p,v,v[0]||null),options:v,action:"initial-input-focus"},P=!h),(a==null?void 0:a.action)==="initial-input-focus"&&(M=null),at(at(at({},y),$),{},{prevProps:i,ariaSelection:M,prevWasFocused:P})}}]),r}(G.Component);rP.defaultProps=d_e;var g_e=G.forwardRef(function(e,t){var r=jbe(e);return G.createElement(rP,ot({ref:t},r))}),v_e=g_e,y_e=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var nP=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=b_e(t,y_e);return Zy({},r)},w_e=function(t){var r=typeof t=="string";return r&&["sm","md","lg"].includes(t)},__e=function(t){return w_e(t)?t:t==="xs"?"sm":t==="xl"?"lg":"md"},Zi=function(t){var r=Ga(),n=__e(r.components.Input.defaultProps.size),i=t??n,o=cX(typeof i=="string"?[i]:i,{fallback:"md"})||n;return o};function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var T_e=function(t){var r=t.className,n=t.cx,i=t.children,o=t.innerRef,s=t.innerProps,u=t.isDisabled,l=t.isFocused,a=t.menuIsOpen,c=t.selectProps,h=c.chakraStyles,f=c.size,d=c.variant,m=c.focusBorderColor,g=c.errorBorderColor,p=c.isInvalid,v=c.isReadOnly,y=Zi(f),b=Qr("Input",{size:y,variant:d,focusBorderColor:m,errorBorderColor:g}),_=b.field,E=_.height,$=_.h,M=E_e(_,C_e),P=E||$,D=ki({},M,{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:P},u?{pointerEvents:"none"}:{}),F=h!=null&&h.control?h.control(D,t):D;return vt.createElement(nr,ki({ref:o,className:n({control:!0,"control--is-disabled":u,"control--is-focused":l,"control--menu-is-open":a},r),sx:F},s,{"data-focus":l?!0:void 0,"data-focus-visible":l?!0:void 0,"data-invalid":p?!0:void 0,"data-disabled":u?!0:void 0,"data-readonly":v?!0:void 0}),i)},$_e=function(t){var r=t.className,n=t.cx,i=t.selectProps,o=i.chakraStyles,s=i.useBasicStyles,u=i.variant,l=ki({opacity:1},s||u!=="outline"?{display:"none"}:{}),a=o!=null&&o.indicatorSeparator?o.indicatorSeparator(l,t):l;return vt.createElement(iw,{className:n({"indicator-separator":!0},r),sx:a,orientation:"vertical"})},A_e=function(t){return vt.createElement(oi,ki({role:"presentation",focusable:"false","aria-hidden":"true"},t),vt.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},P_e=function(t){var r=t.children,n=t.className,i=t.cx,o=t.innerProps,s=t.selectProps,u=s.chakraStyles,l=s.useBasicStyles,a=s.size,c=s.focusBorderColor,h=s.errorBorderColor,f=s.variant,d=Zi(a),m=Qr("Input",{size:d,variant:f,focusBorderColor:c,errorBorderColor:h}),g={sm:"16px",md:"20px",lg:"24px"},p=g[d],v=ki({},m.addon,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:p},l&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}),y=u!=null&&u.dropdownIndicator?u.dropdownIndicator(v,t):v,b={height:"1em",width:"1em"},_=u!=null&&u.downChevron?u.downChevron(b,t):b;return vt.createElement(nr,ki({},o,{className:i({indicator:!0,"dropdown-indicator":!0},n),sx:y}),r||vt.createElement(A_e,{sx:_}))},O_e=function(t){return vt.createElement(oi,ki({focusable:"false","aria-hidden":!0},t),vt.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}))},M_e=function(t){var r=t.children,n=t.className,i=t.cx,o=t.innerProps,s=t.selectProps,u=s.chakraStyles,l=s.size,a=Zi(l),c=Xi("CloseButton",{size:a}),h=ki({},c,{marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"}),f=u!=null&&u.clearIndicator?u.clearIndicator(h,t):h,d={width:"1em",height:"1em"},m=u!=null&&u.crossIcon?u.crossIcon(d,t):d;return vt.createElement(nr,ki({role:"button",className:i({indicator:!0,"clear-indicator":!0},n),sx:f,"aria-label":"Clear selected options"},o),r||vt.createElement(O_e,{sx:m}))},I_e=function(t){var r=t.className,n=t.cx,i=t.innerProps,o=t.selectProps,s=o.chakraStyles,u=o.size,l=t.color,a=t.emptyColor,c=t.speed,h=t.thickness,f=t.spinnerSize,d=Zi(u),m={sm:"xs",md:"sm",lg:"md"},g=m[d],p={marginRight:3},v=s!=null&&s.loadingIndicator?s.loadingIndicator(p,t):p;return vt.createElement(_0,ki({className:n({indicator:!0,"loading-indicator":!0},r),sx:v},i,{size:f||g,color:l,emptyColor:a,speed:c,thickness:h}))};const R_e=T_e;var j_e=["innerRef","isDisabled","isHidden","inputClassName"];function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var D_e=function(t){var r=t.className,n=t.cx,i=t.value,o=t.selectProps,s=o.chakraStyles,u=o.isReadOnly,l=nP(t),a=l.innerRef,c=l.isDisabled,h=l.isHidden,f=l.inputClassName,d=N_e(l,j_e),m={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},g={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:c?"hidden":"visible",transform:i?"translateZ(0)":"",_after:ad({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0},m)},p=s!=null&&s.inputContainer?s.inputContainer(g,t):g,v=ad({background:0,opacity:h?0:1,width:"100%"},m),y=s!=null&&s.input?s.input(v,t):v;return vt.createElement(nr,{className:n({"input-container":!0},r),"data-value":i||"",sx:p},vt.createElement(et.input,ad({className:n({input:!0},f),ref:a,sx:y,disabled:c,readOnly:u?!0:void 0},d)))};const F_e=D_e;var L_e=["data"];function B_e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var h3e=function(t){var r,n=t.components,i=n===void 0?{}:n;t.theme;var o=t.size,s=t.colorScheme,u=s===void 0?"gray":s,l=t.isDisabled,a=t.isInvalid,c=t.isReadOnly,h=t.required,f=t.isRequired,d=t.inputId,m=t.tagVariant,g=t.selectedOptionStyle,p=g===void 0?"color":g,v=t.selectedOptionColorScheme,y=t.selectedOptionColor,b=t.variant,_=t.focusBorderColor,E=t.errorBorderColor,$=t.chakraStyles,M=$===void 0?{}:$,P=t.onFocus,D=t.onBlur,F=t.menuIsOpen,U=f3e(t,d3e),V=Ga(),A=V.components.Input.defaultProps.variant,O=Z2({id:d,isDisabled:l,isInvalid:a,isRequired:f,isReadOnly:c,onFocus:P,onBlur:D}),C=F??(O.readOnly?!1:void 0),w=p,S=["color","check"];S.includes(p)||(w="color");var x=v||y||"blue";typeof x!="string"&&(x="blue");var k=xm({components:xm({},c3e,i),colorScheme:u,size:o,tagVariant:m,selectedOptionStyle:w,selectedOptionColorScheme:x,variant:b??A,chakraStyles:M,focusBorderColor:_,errorBorderColor:E,onFocus:O.onFocus,onBlur:O.onBlur,isDisabled:O.disabled,isInvalid:!!O["aria-invalid"],inputId:O.id,isReadOnly:O.readOnly,required:h??O.required,menuIsOpen:C},U,{"aria-invalid":(r=U["aria-invalid"])!=null?r:O["aria-invalid"]});return k};const p3e=h3e;function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;tf(zr(O.map(C=>C.value),v,b)),$=O=>f(zr(O.value,v,b)),M=({target:{value:O}})=>d(t,zr(O,v,b)),P=({target:{value:O}})=>m(t,zr(O,v,b)),D={},F=Array.isArray(v)?v.map((O,C)=>{const{value:w,label:S}=O;return D[C]=S||String(w),{label:S,value:String(C),isDisabled:Array.isArray(y)&&y.indexOf(w)!==-1}}):[],U=typeof s<"u"&&s!==!1&&!!v,V=G0(c,v,U),A=U?(V||[]).map(O=>({label:D[O],value:O})):{label:D[V]||"",selectedIndex:V};return X.jsxs(Yi,{mb:1,..._,isDisabled:l||a,isRequired:u,isReadOnly:a,isInvalid:g&&g.length>0,children:[os(X.jsx(rs,{htmlFor:t,id:`${t}-label`,children:n}),i||!n),X.jsx(g3e,{inputId:t,name:t,isMulti:U,options:F,placeholder:o,closeMenuOnSelect:!U,onBlur:M,onChange:U?E:$,onFocus:P,autoFocus:h,value:A,"aria-describedby":yn(t)})]})}function y3e({id:e,placeholder:t,value:r,label:n,hideLabel:i,disabled:o,autofocus:s,readonly:u,onBlur:l,onFocus:a,onChange:c,options:h,uiSchema:f,required:d,rawErrors:m}){const g=na({uiSchema:f}),p=({target:{value:b}})=>c(b===""?h.emptyValue:b),v=({target:{value:b}})=>l(e,b),y=({target:{value:b}})=>a(e,b);return X.jsxs(Yi,{mb:1,...g,isDisabled:o||u,isRequired:d,isReadOnly:u,isInvalid:m&&m.length>0,children:[os(X.jsx(rs,{htmlFor:e,children:n}),i||!n),X.jsx(hw,{id:e,name:e,value:r??"",placeholder:t,autoFocus:s,onChange:p,onBlur:v,onFocus:y,"aria-describedby":yn(e)})]})}function b3e(e){const{id:t,uiSchema:r,readonly:n,disabled:i,label:o,hideLabel:s,value:u,onChange:l,onBlur:a,onFocus:c,rawErrors:h,required:f}=e,d=na({uiSchema:r}),m=v=>l(v),g=({target:{value:v}})=>a(t,v),p=({target:{value:v}})=>c(t,v);return X.jsxs(Yi,{mb:1,...d,isDisabled:i||n,isRequired:f,isReadOnly:n,isInvalid:h&&h.length>0,children:[os(X.jsx(rs,{htmlFor:t,children:o}),s||!o),X.jsxs(WE,{value:u??"",onChange:m,onBlur:g,onFocus:p,"aria-describedby":yn(t),children:[X.jsx(KE,{id:t,name:t}),X.jsxs(qE,{children:[X.jsx(YE,{}),X.jsx(XE,{})]})]})]})}function w3e(){return{AltDateTimeWidget:TA,AltDateWidget:l_,CheckboxWidget:Tbe,CheckboxesWidget:$be,RadioWidget:Abe,RangeWidget:Pbe,SelectWidget:v3e,TextareaWidget:y3e,UpDownWidget:b3e}}function _3e(){return{templates:Sbe(),widgets:w3e()}}function x3e(){return Jye(_3e())}const S3e=x3e();var tb={exports:{}},oP={},Wi={},$u={},$f={},Tt={},Gd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((b,_)=>`${b}${_}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((b,_)=>(_ instanceof r&&(b[_.str]=(b[_.str]||0)+1),b),{})}}e._Code=n,e.nil=new n("");function i(v,...y){const b=[v[0]];let _=0;for(;_{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${a}${h.scopePath}`})}scopeCode(a=this._values,c,h){return this._reduceValues(a,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},c,h)}_reduceValues(a,c,h={},f){let d=t.nil;for(const m in a){const g=a[m];if(!g)continue;const p=h[m]=h[m]||new Map;g.forEach(v=>{if(p.has(v))return;p.set(v,n.Started);let y=c(v);if(y){const b=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${b} ${v} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(v))d=(0,t._)`${d}${y}${this.opts._n}`;else throw new r(v);p.set(v,n.Completed)})}return d}}e.ValueScope=u})(rb);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Gd,r=rb;var n=Gd;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=rb;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(B,W){return this}}class s extends o{constructor(B,W,N){super(),this.varKind=B,this.name=W,this.rhs=N}render({es5:B,_n:W}){const N=B?r.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${q};`+W}optimizeNames(B,W){if(B[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,B,W)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class u extends o{constructor(B,W,N){super(),this.lhs=B,this.rhs=W,this.sideEffects=N}render({_n:B}){return`${this.lhs} = ${this.rhs};`+B}optimizeNames(B,W){if(!(this.lhs instanceof t.Name&&!B[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,B,W),this}get names(){const B=this.lhs instanceof t.Name?{}:{...this.lhs.names};return A(B,this.rhs)}}class l extends u{constructor(B,W,N,q){super(B,N,q),this.op=W}render({_n:B}){return`${this.lhs} ${this.op}= ${this.rhs};`+B}}class a extends o{constructor(B){super(),this.label=B,this.names={}}render({_n:B}){return`${this.label}:`+B}}class c extends o{constructor(B){super(),this.label=B,this.names={}}render({_n:B}){return`break${this.label?` ${this.label}`:""};`+B}}class h extends o{constructor(B){super(),this.error=B}render({_n:B}){return`throw ${this.error};`+B}get names(){return this.error.names}}class f extends o{constructor(B){super(),this.code=B}render({_n:B}){return`${this.code};`+B}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(B,W){return this.code=O(this.code,B,W),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends o{constructor(B=[]){super(),this.nodes=B}render(B){return this.nodes.reduce((W,N)=>W+N.render(B),"")}optimizeNodes(){const{nodes:B}=this;let W=B.length;for(;W--;){const N=B[W].optimizeNodes();Array.isArray(N)?B.splice(W,1,...N):N?B[W]=N:B.splice(W,1)}return B.length>0?this:void 0}optimizeNames(B,W){const{nodes:N}=this;let q=N.length;for(;q--;){const j=N[q];j.optimizeNames(B,W)||(C(B,j.names),N.splice(q,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((B,W)=>V(B,W.names),{})}}class m extends d{render(B){return"{"+B._n+super.render(B)+"}"+B._n}}class g extends d{}class p extends m{}p.kind="else";class v extends m{constructor(B,W){super(W),this.condition=B}render(B){let W=`if(${this.condition})`+super.render(B);return this.else&&(W+="else "+this.else.render(B)),W}optimizeNodes(){super.optimizeNodes();const B=this.condition;if(B===!0)return this.nodes;let W=this.else;if(W){const N=W.optimizeNodes();W=this.else=Array.isArray(N)?new p(N):N}if(W)return B===!1?W instanceof v?W:W.nodes:this.nodes.length?this:new v(w(B),W instanceof v?[W]:W.nodes);if(!(B===!1||!this.nodes.length))return this}optimizeNames(B,W){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(B,W),!!(super.optimizeNames(B,W)||this.else))return this.condition=O(this.condition,B,W),this}get names(){const B=super.names;return A(B,this.condition),this.else&&V(B,this.else.names),B}}v.kind="if";class y extends m{}y.kind="for";class b extends y{constructor(B){super(),this.iteration=B}render(B){return`for(${this.iteration})`+super.render(B)}optimizeNames(B,W){if(super.optimizeNames(B,W))return this.iteration=O(this.iteration,B,W),this}get names(){return V(super.names,this.iteration.names)}}class _ extends y{constructor(B,W,N,q){super(),this.varKind=B,this.name=W,this.from=N,this.to=q}render(B){const W=B.es5?r.varKinds.var:this.varKind,{name:N,from:q,to:j}=this;return`for(${W} ${N}=${q}; ${N}<${j}; ${N}++)`+super.render(B)}get names(){const B=A(super.names,this.from);return A(B,this.to)}}class E extends y{constructor(B,W,N,q){super(),this.loop=B,this.varKind=W,this.name=N,this.iterable=q}render(B){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(B)}optimizeNames(B,W){if(super.optimizeNames(B,W))return this.iterable=O(this.iterable,B,W),this}get names(){return V(super.names,this.iterable.names)}}class $ extends m{constructor(B,W,N){super(),this.name=B,this.args=W,this.async=N}render(B){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(B)}}$.kind="func";class M extends d{render(B){return"return "+super.render(B)}}M.kind="return";class P extends m{render(B){let W="try"+super.render(B);return this.catch&&(W+=this.catch.render(B)),this.finally&&(W+=this.finally.render(B)),W}optimizeNodes(){var B,W;return super.optimizeNodes(),(B=this.catch)===null||B===void 0||B.optimizeNodes(),(W=this.finally)===null||W===void 0||W.optimizeNodes(),this}optimizeNames(B,W){var N,q;return super.optimizeNames(B,W),(N=this.catch)===null||N===void 0||N.optimizeNames(B,W),(q=this.finally)===null||q===void 0||q.optimizeNames(B,W),this}get names(){const B=super.names;return this.catch&&V(B,this.catch.names),this.finally&&V(B,this.finally.names),B}}class D extends m{constructor(B){super(),this.error=B}render(B){return`catch(${this.error})`+super.render(B)}}D.kind="catch";class F extends m{render(B){return"finally"+super.render(B)}}F.kind="finally";class U{constructor(B,W={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...W,_n:W.lines?` +`:""},this._extScope=B,this._scope=new r.Scope({parent:B}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(B){return this._scope.name(B)}scopeName(B){return this._extScope.name(B)}scopeValue(B,W){const N=this._extScope.value(B,W);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(B,W){return this._extScope.getValue(B,W)}scopeRefs(B){return this._extScope.scopeRefs(B,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(B,W,N,q){const j=this._scope.toName(W);return N!==void 0&&q&&(this._constants[j.str]=N),this._leafNode(new s(B,j,N)),j}const(B,W,N){return this._def(r.varKinds.const,B,W,N)}let(B,W,N){return this._def(r.varKinds.let,B,W,N)}var(B,W,N){return this._def(r.varKinds.var,B,W,N)}assign(B,W,N){return this._leafNode(new u(B,W,N))}add(B,W){return this._leafNode(new l(B,e.operators.ADD,W))}code(B){return typeof B=="function"?B():B!==t.nil&&this._leafNode(new f(B)),this}object(...B){const W=["{"];for(const[N,q]of B)W.length>1&&W.push(","),W.push(N),(N!==q||this.opts.es5)&&(W.push(":"),(0,t.addCodeArg)(W,q));return W.push("}"),new t._Code(W)}if(B,W,N){if(this._blockNode(new v(B)),W&&N)this.code(W).else().code(N).endIf();else if(W)this.code(W).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(B){return this._elseNode(new v(B))}else(){return this._elseNode(new p)}endIf(){return this._endBlockNode(v,p)}_for(B,W){return this._blockNode(B),W&&this.code(W).endFor(),this}for(B,W){return this._for(new b(B),W)}forRange(B,W,N,q,j=this.opts.es5?r.varKinds.var:r.varKinds.let){const R=this._scope.toName(B);return this._for(new _(j,R,W,N),()=>q(R))}forOf(B,W,N,q=r.varKinds.const){const j=this._scope.toName(B);if(this.opts.es5){const R=W instanceof t.Name?W:this.var("_arr",W);return this.forRange("_i",0,(0,t._)`${R}.length`,H=>{this.var(j,(0,t._)`${R}[${H}]`),N(j)})}return this._for(new E("of",q,j,W),()=>N(j))}forIn(B,W,N,q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(B,(0,t._)`Object.keys(${W})`,N);const j=this._scope.toName(B);return this._for(new E("in",q,j,W),()=>N(j))}endFor(){return this._endBlockNode(y)}label(B){return this._leafNode(new a(B))}break(B){return this._leafNode(new c(B))}return(B){const W=new M;if(this._blockNode(W),this.code(B),W.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(M)}try(B,W,N){if(!W&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new P;if(this._blockNode(q),this.code(B),W){const j=this.name("e");this._currNode=q.catch=new D(j),W(j)}return N&&(this._currNode=q.finally=new F,this.code(N)),this._endBlockNode(D,F)}throw(B){return this._leafNode(new h(B))}block(B,W){return this._blockStarts.push(this._nodes.length),B&&this.code(B).endBlock(W),this}endBlock(B){const W=this._blockStarts.pop();if(W===void 0)throw new Error("CodeGen: not in self-balancing block");const N=this._nodes.length-W;if(N<0||B!==void 0&&N!==B)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${B} expected`);return this._nodes.length=W,this}func(B,W=t.nil,N,q){return this._blockNode(new $(B,W,N)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(B=1){for(;B-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(B){return this._currNode.nodes.push(B),this}_blockNode(B){this._currNode.nodes.push(B),this._nodes.push(B)}_endBlockNode(B,W){const N=this._currNode;if(N instanceof B||W&&N instanceof W)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${W?`${B.kind}/${W.kind}`:B.kind}"`)}_elseNode(B){const W=this._currNode;if(!(W instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=W.else=B,this}get _root(){return this._nodes[0]}get _currNode(){const B=this._nodes;return B[B.length-1]}set _currNode(B){const W=this._nodes;W[W.length-1]=B}}e.CodeGen=U;function V(z,B){for(const W in B)z[W]=(z[W]||0)+(B[W]||0);return z}function A(z,B){return B instanceof t._CodeOrName?V(z,B.names):z}function O(z,B,W){if(z instanceof t.Name)return N(z);if(!q(z))return z;return new t._Code(z._items.reduce((j,R)=>(R instanceof t.Name&&(R=N(R)),R instanceof t._Code?j.push(...R._items):j.push(R),j),[]));function N(j){const R=W[j.str];return R===void 0||B[j.str]!==1?j:(delete B[j.str],R)}function q(j){return j instanceof t._Code&&j._items.some(R=>R instanceof t.Name&&B[R.str]===1&&W[R.str]!==void 0)}}function C(z,B){for(const W in B)z[W]=(z[W]||0)-(B[W]||0)}function w(z){return typeof z=="boolean"||typeof z=="number"||z===null?!z:(0,t._)`!${L(z)}`}e.not=w;const S=I(e.operators.AND);function x(...z){return z.reduce(S)}e.and=x;const k=I(e.operators.OR);function T(...z){return z.reduce(k)}e.or=T;function I(z){return(B,W)=>B===t.nil?W:W===t.nil?B:(0,t._)`${L(B)} ${z} ${L(W)}`}function L(z){return z instanceof t.Name?z:(0,t._)`(${z})`}})(Tt);var qt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Tt,r=Gd;function n($){const M={};for(const P of $)M[P]=!0;return M}e.toHash=n;function i($,M){return typeof M=="boolean"?M:Object.keys(M).length===0?!0:(o($,M),!s(M,$.self.RULES.all))}e.alwaysValidSchema=i;function o($,M=$.schema){const{opts:P,self:D}=$;if(!P.strictSchema||typeof M=="boolean")return;const F=D.RULES.keywords;for(const U in M)F[U]||E($,`unknown keyword: "${U}"`)}e.checkUnknownRules=o;function s($,M){if(typeof $=="boolean")return!$;for(const P in $)if(M[P])return!0;return!1}e.schemaHasRules=s;function u($,M){if(typeof $=="boolean")return!$;for(const P in $)if(P!=="$ref"&&M.all[P])return!0;return!1}e.schemaHasRulesButRef=u;function l({topSchemaRef:$,schemaPath:M},P,D,F){if(!F){if(typeof P=="number"||typeof P=="boolean")return P;if(typeof P=="string")return(0,t._)`${P}`}return(0,t._)`${$}${M}${(0,t.getProperty)(D)}`}e.schemaRefOrVal=l;function a($){return f(decodeURIComponent($))}e.unescapeFragment=a;function c($){return encodeURIComponent(h($))}e.escapeFragment=c;function h($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=h;function f($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function d($,M){if(Array.isArray($))for(const P of $)M(P);else M($)}e.eachItem=d;function m({mergeNames:$,mergeToName:M,mergeValues:P,resultToName:D}){return(F,U,V,A)=>{const O=V===void 0?U:V instanceof t.Name?(U instanceof t.Name?$(F,U,V):M(F,U,V),V):U instanceof t.Name?(M(F,V,U),U):P(U,V);return A===t.Name&&!(O instanceof t.Name)?D(F,O):O}}e.mergeEvaluated={props:m({mergeNames:($,M,P)=>$.if((0,t._)`${P} !== true && ${M} !== undefined`,()=>{$.if((0,t._)`${M} === true`,()=>$.assign(P,!0),()=>$.assign(P,(0,t._)`${P} || {}`).code((0,t._)`Object.assign(${P}, ${M})`))}),mergeToName:($,M,P)=>$.if((0,t._)`${P} !== true`,()=>{M===!0?$.assign(P,!0):($.assign(P,(0,t._)`${P} || {}`),p($,P,M))}),mergeValues:($,M)=>$===!0?!0:{...$,...M},resultToName:g}),items:m({mergeNames:($,M,P)=>$.if((0,t._)`${P} !== true && ${M} !== undefined`,()=>$.assign(P,(0,t._)`${M} === true ? true : ${P} > ${M} ? ${P} : ${M}`)),mergeToName:($,M,P)=>$.if((0,t._)`${P} !== true`,()=>$.assign(P,M===!0?!0:(0,t._)`${P} > ${M} ? ${P} : ${M}`)),mergeValues:($,M)=>$===!0?!0:Math.max($,M),resultToName:($,M)=>$.var("items",M)})};function g($,M){if(M===!0)return $.var("props",!0);const P=$.var("props",(0,t._)`{}`);return M!==void 0&&p($,P,M),P}e.evaluatedPropsToName=g;function p($,M,P){Object.keys(P).forEach(D=>$.assign((0,t._)`${M}${(0,t.getProperty)(D)}`,!0))}e.setEvaluated=p;const v={};function y($,M){return $.scopeValue("func",{ref:M,code:v[M.code]||(v[M.code]=new r._Code(M.code))})}e.useFunc=y;var b;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(b=e.Type||(e.Type={}));function _($,M,P){if($ instanceof t.Name){const D=M===b.Num;return P?D?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:D?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return P?(0,t.getProperty)($).toString():"/"+h($)}e.getErrorPath=_;function E($,M,P=$.opts.strictSchema){if(P){if(M=`strict mode: ${M}`,P===!0)throw new Error(M);$.self.logger.warn(M)}}e.checkStrictMode=E})(qt);var So={};Object.defineProperty(So,"__esModule",{value:!0});const hn=Tt,k3e={data:new hn.Name("data"),valCxt:new hn.Name("valCxt"),instancePath:new hn.Name("instancePath"),parentData:new hn.Name("parentData"),parentDataProperty:new hn.Name("parentDataProperty"),rootData:new hn.Name("rootData"),dynamicAnchors:new hn.Name("dynamicAnchors"),vErrors:new hn.Name("vErrors"),errors:new hn.Name("errors"),this:new hn.Name("this"),self:new hn.Name("self"),scope:new hn.Name("scope"),json:new hn.Name("json"),jsonPos:new hn.Name("jsonPos"),jsonLen:new hn.Name("jsonLen"),jsonPart:new hn.Name("jsonPart")};So.default=k3e;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Tt,r=qt,n=So;e.keywordError={message:({keyword:p})=>(0,t.str)`must pass "${p}" keyword validation`},e.keyword$DataError={message:({keyword:p,schemaType:v})=>v?(0,t.str)`"${p}" keyword must be ${v} ($data)`:(0,t.str)`"${p}" keyword is invalid ($data)`};function i(p,v=e.keywordError,y,b){const{it:_}=p,{gen:E,compositeRule:$,allErrors:M}=_,P=h(p,v,y);b??($||M)?l(E,P):a(_,(0,t._)`[${P}]`)}e.reportError=i;function o(p,v=e.keywordError,y){const{it:b}=p,{gen:_,compositeRule:E,allErrors:$}=b,M=h(p,v,y);l(_,M),E||$||a(b,n.default.vErrors)}e.reportExtraError=o;function s(p,v){p.assign(n.default.errors,v),p.if((0,t._)`${n.default.vErrors} !== null`,()=>p.if(v,()=>p.assign((0,t._)`${n.default.vErrors}.length`,v),()=>p.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function u({gen:p,keyword:v,schemaValue:y,data:b,errsCount:_,it:E}){if(_===void 0)throw new Error("ajv implementation error");const $=p.name("err");p.forRange("i",_,n.default.errors,M=>{p.const($,(0,t._)`${n.default.vErrors}[${M}]`),p.if((0,t._)`${$}.instancePath === undefined`,()=>p.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(n.default.instancePath,E.errorPath))),p.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${E.errSchemaPath}/${v}`),E.opts.verbose&&(p.assign((0,t._)`${$}.schema`,y),p.assign((0,t._)`${$}.data`,b))})}e.extendErrors=u;function l(p,v){const y=p.const("err",v);p.if((0,t._)`${n.default.vErrors} === null`,()=>p.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),p.code((0,t._)`${n.default.errors}++`)}function a(p,v){const{gen:y,validateName:b,schemaEnv:_}=p;_.$async?y.throw((0,t._)`new ${p.ValidationError}(${v})`):(y.assign((0,t._)`${b}.errors`,v),y.return(!1))}const c={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function h(p,v,y){const{createErrors:b}=p.it;return b===!1?(0,t._)`{}`:f(p,v,y)}function f(p,v,y={}){const{gen:b,it:_}=p,E=[d(_,y),m(p,y)];return g(p,v,E),b.object(...E)}function d({errorPath:p},{instancePath:v}){const y=v?(0,t.str)`${p}${(0,r.getErrorPath)(v,r.Type.Str)}`:p;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function m({keyword:p,it:{errSchemaPath:v}},{schemaPath:y,parentSchema:b}){let _=b?v:(0,t.str)`${v}/${p}`;return y&&(_=(0,t.str)`${_}${(0,r.getErrorPath)(y,r.Type.Str)}`),[c.schemaPath,_]}function g(p,{params:v,message:y},b){const{keyword:_,data:E,schemaValue:$,it:M}=p,{opts:P,propertyName:D,topSchemaRef:F,schemaPath:U}=M;b.push([c.keyword,_],[c.params,typeof v=="function"?v(p):v||(0,t._)`{}`]),P.messages&&b.push([c.message,typeof y=="function"?y(p):y]),P.verbose&&b.push([c.schema,$],[c.parentSchema,(0,t._)`${F}${U}`],[n.default.data,E]),D&&b.push([c.propertyName,D])}})($f);Object.defineProperty($u,"__esModule",{value:!0});$u.boolOrEmptySchema=$u.topBoolOrEmptySchema=void 0;const C3e=$f,E3e=Tt,T3e=So,$3e={message:"boolean schema is false"};function A3e(e){const{gen:t,schema:r,validateName:n}=e;r===!1?sP(e,!1):typeof r=="object"&&r.$async===!0?t.return(T3e.default.data):(t.assign((0,E3e._)`${n}.errors`,null),t.return(!0))}$u.topBoolOrEmptySchema=A3e;function P3e(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),sP(e)):r.var(t,!0)}$u.boolOrEmptySchema=P3e;function sP(e,t){const{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,C3e.reportError)(i,$3e,void 0,t)}var Af={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});Ha.getRules=Ha.isJSONType=void 0;const O3e=["string","number","integer","boolean","null","object","array"],M3e=new Set(O3e);function I3e(e){return typeof e=="string"&&M3e.has(e)}Ha.isJSONType=I3e;function R3e(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Ha.getRules=R3e;var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});Wo.shouldUseRule=Wo.shouldUseGroup=Wo.schemaHasRulesForType=void 0;function j3e({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&aP(e,n)}Wo.schemaHasRulesForType=j3e;function aP(e,t){return t.rules.some(r=>lP(e,r))}Wo.shouldUseGroup=aP;function lP(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Wo.shouldUseRule=lP;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Ha,r=Wo,n=$f,i=Tt,o=qt;var s;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(s=e.DataType||(e.DataType={}));function u(b){const _=l(b.type);if(_.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!_.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&_.push("null")}return _}e.getSchemaTypes=u;function l(b){const _=Array.isArray(b)?b:b?[b]:[];if(_.every(t.isJSONType))return _;throw new Error("type must be JSONType or JSONType[]: "+_.join(","))}e.getJSONTypes=l;function a(b,_){const{gen:E,data:$,opts:M}=b,P=h(_,M.coerceTypes),D=_.length>0&&!(P.length===0&&_.length===1&&(0,r.schemaHasRulesForType)(b,_[0]));if(D){const F=g(_,$,M.strictNumbers,s.Wrong);E.if(F,()=>{P.length?f(b,_,P):v(b)})}return D}e.coerceAndCheckDataType=a;const c=new Set(["string","number","integer","boolean","null"]);function h(b,_){return _?b.filter(E=>c.has(E)||_==="array"&&E==="array"):[]}function f(b,_,E){const{gen:$,data:M,opts:P}=b,D=$.let("dataType",(0,i._)`typeof ${M}`),F=$.let("coerced",(0,i._)`undefined`);P.coerceTypes==="array"&&$.if((0,i._)`${D} == 'object' && Array.isArray(${M}) && ${M}.length == 1`,()=>$.assign(M,(0,i._)`${M}[0]`).assign(D,(0,i._)`typeof ${M}`).if(g(_,M,P.strictNumbers),()=>$.assign(F,M))),$.if((0,i._)`${F} !== undefined`);for(const V of E)(c.has(V)||V==="array"&&P.coerceTypes==="array")&&U(V);$.else(),v(b),$.endIf(),$.if((0,i._)`${F} !== undefined`,()=>{$.assign(M,F),d(b,F)});function U(V){switch(V){case"string":$.elseIf((0,i._)`${D} == "number" || ${D} == "boolean"`).assign(F,(0,i._)`"" + ${M}`).elseIf((0,i._)`${M} === null`).assign(F,(0,i._)`""`);return;case"number":$.elseIf((0,i._)`${D} == "boolean" || ${M} === null || (${D} == "string" && ${M} && ${M} == +${M})`).assign(F,(0,i._)`+${M}`);return;case"integer":$.elseIf((0,i._)`${D} === "boolean" || ${M} === null || (${D} === "string" && ${M} && ${M} == +${M} && !(${M} % 1))`).assign(F,(0,i._)`+${M}`);return;case"boolean":$.elseIf((0,i._)`${M} === "false" || ${M} === 0 || ${M} === null`).assign(F,!1).elseIf((0,i._)`${M} === "true" || ${M} === 1`).assign(F,!0);return;case"null":$.elseIf((0,i._)`${M} === "" || ${M} === 0 || ${M} === false`),$.assign(F,null);return;case"array":$.elseIf((0,i._)`${D} === "string" || ${D} === "number" - || ${D} === "boolean" || ${M} === null`).assign(F,(0,i._)`[${M}]`)}}}function d({gen:b,parentData:_,parentDataProperty:E},$){b.if((0,i._)`${_} !== undefined`,()=>b.assign((0,i._)`${_}[${E}]`,$))}function m(b,_,E,$=s.Correct){const M=$===s.Correct?i.operators.EQ:i.operators.NEQ;let P;switch(b){case"null":return(0,i._)`${_} ${M} null`;case"array":P=(0,i._)`Array.isArray(${_})`;break;case"object":P=(0,i._)`${_} && typeof ${_} == "object" && !Array.isArray(${_})`;break;case"integer":P=D((0,i._)`!(${_} % 1) && !isNaN(${_})`);break;case"number":P=D();break;default:return(0,i._)`typeof ${_} ${M} ${b}`}return $===s.Correct?P:(0,i.not)(P);function D(F=i.nil){return(0,i.and)((0,i._)`typeof ${_} == "number"`,F,E?(0,i._)`isFinite(${_})`:i.nil)}}e.checkDataType=m;function g(b,_,E,$){if(b.length===1)return m(b[0],_,E,$);let M;const P=(0,o.toHash)(b);if(P.array&&P.object){const D=(0,i._)`typeof ${_} != "object"`;M=P.null?D:(0,i._)`!${_} || ${D}`,delete P.null,delete P.array,delete P.object}else M=i.nil;P.number&&delete P.integer;for(const D in P)M=(0,i.and)(M,m(D,_,E,$));return M}e.checkDataTypes=g;const p={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:_})=>typeof b=="string"?(0,i._)`{type: ${b}}`:(0,i._)`{type: ${_}}`};function v(b){const _=y(b);(0,n.reportError)(_,p)}e.reportTypeError=v;function y(b){const{gen:_,data:E,schema:$}=b,M=(0,o.schemaRefOrVal)(b,$,"type");return{gen:_,keyword:"type",data:E,schema:$.type,schemaCode:M,schemaValue:M,parentSchema:$,params:{},it:b}}})(Af);var ug={};Object.defineProperty(ug,"__esModule",{value:!0});ug.assignDefaults=void 0;const gl=Tt,j3e=qt;function N3e(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)K6(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>K6(e,o,i.default))}ug.assignDefaults=N3e;function K6(e,t,r){const{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;const u=(0,gl._)`${o}${(0,gl.getProperty)(t)}`;if(i){(0,j3e.checkStrictMode)(e,`default is ignored for: ${u}`);return}let l=(0,gl._)`${u} === undefined`;s.useDefaults==="empty"&&(l=(0,gl._)`${l} || ${u} === null || ${u} === ""`),n.if(l,(0,gl._)`${u} = ${(0,gl.stringify)(r)}`)}var po={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.validateUnion=Ot.validateArray=Ot.usePattern=Ot.callValidateCode=Ot.schemaProperties=Ot.allSchemaProperties=Ot.noPropertyInData=Ot.propertyInData=Ot.isOwnProperty=Ot.hasPropFunc=Ot.reportMissingProp=Ot.checkMissingProp=Ot.checkReportMissingProp=void 0;const yr=Tt,h_=qt,vs=So,D3e=qt;function F3e(e,t){const{gen:r,data:n,it:i}=e;r.if(m_(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,yr._)`${t}`},!0),e.error()})}Ot.checkReportMissingProp=F3e;function L3e({gen:e,data:t,it:{opts:r}},n,i){return(0,yr.or)(...n.map(o=>(0,yr.and)(m_(e,t,o,r.ownProperties),(0,yr._)`${i} = ${o}`)))}Ot.checkMissingProp=L3e;function B3e(e,t){e.setParams({missingProperty:t},!0),e.error()}Ot.reportMissingProp=B3e;function lP(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,yr._)`Object.prototype.hasOwnProperty`})}Ot.hasPropFunc=lP;function p_(e,t,r){return(0,yr._)`${lP(e)}.call(${t}, ${r})`}Ot.isOwnProperty=p_;function z3e(e,t,r,n){const i=(0,yr._)`${t}${(0,yr.getProperty)(r)} !== undefined`;return n?(0,yr._)`${i} && ${p_(e,t,r)}`:i}Ot.propertyInData=z3e;function m_(e,t,r,n){const i=(0,yr._)`${t}${(0,yr.getProperty)(r)} === undefined`;return n?(0,yr.or)(i,(0,yr.not)(p_(e,t,r))):i}Ot.noPropertyInData=m_;function uP(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ot.allSchemaProperties=uP;function V3e(e,t){return uP(t).filter(r=>!(0,h_.alwaysValidSchema)(e,t[r]))}Ot.schemaProperties=V3e;function U3e({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},u,l,a){const c=a?(0,yr._)`${e}, ${t}, ${n}${i}`:t,h=[[vs.default.instancePath,(0,yr.strConcat)(vs.default.instancePath,o)],[vs.default.parentData,s.parentData],[vs.default.parentDataProperty,s.parentDataProperty],[vs.default.rootData,vs.default.rootData]];s.opts.dynamicRef&&h.push([vs.default.dynamicAnchors,vs.default.dynamicAnchors]);const f=(0,yr._)`${c}, ${r.object(...h)}`;return l!==yr.nil?(0,yr._)`${u}.call(${l}, ${f})`:(0,yr._)`${u}(${f})`}Ot.callValidateCode=U3e;const H3e=(0,yr._)`new RegExp`;function W3e({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,yr._)`${i.code==="new RegExp"?H3e:(0,D3e.useFunc)(e,i)}(${r}, ${n})`})}Ot.usePattern=W3e;function q3e(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const u=t.let("valid",!0);return s(()=>t.assign(u,!1)),u}return t.var(o,!0),s(()=>t.break()),o;function s(u){const l=t.const("len",(0,yr._)`${r}.length`);t.forRange("i",0,l,a=>{e.subschema({keyword:n,dataProp:a,dataPropType:h_.Type.Num},o),t.if((0,yr.not)(o),u)})}}Ot.validateArray=q3e;function K3e(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,h_.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;const s=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((l,a)=>{const c=e.subschema({keyword:n,schemaProp:a,compositeRule:!0},u);t.assign(s,(0,yr._)`${s} || ${u}`),e.mergeValidEvaluated(c,u)||t.if((0,yr.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Ot.validateUnion=K3e;Object.defineProperty(po,"__esModule",{value:!0});po.validateKeywordUsage=po.validSchemaType=po.funcKeywordCode=po.macroKeywordCode=void 0;const xn=Tt,ba=So,G3e=Ot,X3e=$f;function Y3e(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,u=t.macro.call(s.self,i,o,s),l=cP(r,n,u);s.opts.validateSchema!==!1&&s.self.validateSchema(u,!0);const a=r.name("valid");e.subschema({schema:u,schemaPath:xn.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},a),e.pass(a,()=>e.error(!0))}po.macroKeywordCode=Y3e;function Z3e(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:u,it:l}=e;J3e(l,t);const a=!u&&t.compile?t.compile.call(l.self,o,s,l):t.validate,c=cP(n,i,a),h=n.let("valid");e.block$data(h,f),e.ok((r=t.valid)!==null&&r!==void 0?r:h);function f(){if(t.errors===!1)g(),t.modifying&&G6(e),p(()=>e.error());else{const v=t.async?d():m();t.modifying&&G6(e),p(()=>Q3e(e,v))}}function d(){const v=n.let("ruleErrs",null);return n.try(()=>g((0,xn._)`await `),y=>n.assign(h,!1).if((0,xn._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,xn._)`${y}.errors`),()=>n.throw(y))),v}function m(){const v=(0,xn._)`${c}.errors`;return n.assign(v,null),g(xn.nil),v}function g(v=t.async?(0,xn._)`await `:xn.nil){const y=l.opts.passContext?ba.default.this:ba.default.self,b=!("compile"in t&&!u||t.schema===!1);n.assign(h,(0,xn._)`${v}${(0,G3e.callValidateCode)(e,c,y,b)}`,t.modifying)}function p(v){var y;n.if((0,xn.not)((y=t.valid)!==null&&y!==void 0?y:h),v)}}po.funcKeywordCode=Z3e;function G6(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,xn._)`${n.parentData}[${n.parentDataProperty}]`))}function Q3e(e,t){const{gen:r}=e;r.if((0,xn._)`Array.isArray(${t})`,()=>{r.assign(ba.default.vErrors,(0,xn._)`${ba.default.vErrors} === null ? ${t} : ${ba.default.vErrors}.concat(${t})`).assign(ba.default.errors,(0,xn._)`${ba.default.vErrors}.length`),(0,X3e.extendErrors)(e)},()=>e.error())}function J3e({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function cP(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,xn.stringify)(r)})}function exe(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}po.validSchemaType=exe;function txe({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(s!=null&&s.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const l=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}po.validateKeywordUsage=txe;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.extendSubschemaMode=Ws.extendSubschemaData=Ws.getSubschema=void 0;const co=Tt,dP=qt;function rxe(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,co._)`${e.schemaPath}${(0,co.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,co._)`${e.schemaPath}${(0,co.getProperty)(t)}${(0,co.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,dP.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}Ws.getSubschema=rxe;function nxe(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(r!==void 0){const{errorPath:a,dataPathArr:c,opts:h}=t,f=u.let("data",(0,co._)`${t.data}${(0,co.getProperty)(r)}`,!0);l(f),e.errorPath=(0,co.str)`${a}${(0,dP.getErrorPath)(r,n,h.jsPropertySyntax)}`,e.parentDataProperty=(0,co._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(i!==void 0){const a=i instanceof co.Name?i:u.let("data",i,!0);l(a),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function l(a){e.data=a,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,a]}}Ws.extendSubschemaData=nxe;function ixe(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}Ws.extendSubschemaMode=ixe;var sn={},fP=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r},hP={exports:{}},Os=hP.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};fp(t,n,i,e,"",e)};Os.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Os.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Os.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Os.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function fp(e,t,r,n,i,o,s,u,l,a){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,u,l,a);for(var c in n){var h=n[c];if(Array.isArray(h)){if(c in Os.arrayKeywords)for(var f=0;ft+=pP(n)),t===1/0))return 1/0}return t}function mP(e,t="",r){r!==!1&&(t=nu(t));const n=e.parse(t);return gP(e,n)}sn.getFullPath=mP;function gP(e,t){return e.serialize(t).split("#")[0]+"#"}sn._getFullPath=gP;const hxe=/#\/?$/;function nu(e){return e?e.replace(hxe,""):""}sn.normalizeId=nu;function pxe(e,t,r){return r=nu(r),e.resolve(t,r)}sn.resolveUrl=pxe;const mxe=/^[a-z_][-a-z0-9._]*$/i;function gxe(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=nu(e[r]||t),o={"":i},s=mP(n,i,!1),u={},l=new Set;return uxe(e,{allKeys:!0},(h,f,d,m)=>{if(m===void 0)return;const g=s+f;let p=o[m];typeof h[r]=="string"&&(p=v.call(this,h[r])),y.call(this,h.$anchor),y.call(this,h.$dynamicAnchor),o[f]=p;function v(b){const _=this.opts.uriResolver.resolve;if(b=nu(p?_(p,b):b),l.has(b))throw c(b);l.add(b);let E=this.refs[b];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?a(h,E.schema,b):b!==nu(g)&&(b[0]==="#"?(a(h,u[b],b),u[b]=h):this.refs[b]=g),b}function y(b){if(typeof b=="string"){if(!mxe.test(b))throw new Error(`invalid anchor "${b}"`);v.call(this,`#${b}`)}}}),u;function a(h,f,d){if(f!==void 0&&!lxe(h,f))throw c(d)}function c(h){return new Error(`reference "${h}" resolves to more than one schema`)}}sn.getSchemaRefs=gxe;Object.defineProperty(Wi,"__esModule",{value:!0});Wi.getData=Wi.KeywordCxt=Wi.validateFunctionCode=void 0;const vP=$u,X6=Af,g_=Wo,Sm=Af,vxe=ug,ld=po,G1=Ws,Qe=Tt,bt=So,yxe=sn,qo=qt,Sc=$f;function bxe(e){if(wP(e)&&(_P(e),bP(e))){xxe(e);return}yP(e,()=>(0,vP.topBoolOrEmptySchema)(e))}Wi.validateFunctionCode=bxe;function yP({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,Qe._)`${bt.default.data}, ${bt.default.valCxt}`,n.$async,()=>{e.code((0,Qe._)`"use strict"; ${Y6(r,i)}`),_xe(e,i),e.code(o)}):e.func(t,(0,Qe._)`${bt.default.data}, ${wxe(i)}`,n.$async,()=>e.code(Y6(r,i)).code(o))}function wxe(e){return(0,Qe._)`{${bt.default.instancePath}="", ${bt.default.parentData}, ${bt.default.parentDataProperty}, ${bt.default.rootData}=${bt.default.data}${e.dynamicRef?(0,Qe._)`, ${bt.default.dynamicAnchors}={}`:Qe.nil}}={}`}function _xe(e,t){e.if(bt.default.valCxt,()=>{e.var(bt.default.instancePath,(0,Qe._)`${bt.default.valCxt}.${bt.default.instancePath}`),e.var(bt.default.parentData,(0,Qe._)`${bt.default.valCxt}.${bt.default.parentData}`),e.var(bt.default.parentDataProperty,(0,Qe._)`${bt.default.valCxt}.${bt.default.parentDataProperty}`),e.var(bt.default.rootData,(0,Qe._)`${bt.default.valCxt}.${bt.default.rootData}`),t.dynamicRef&&e.var(bt.default.dynamicAnchors,(0,Qe._)`${bt.default.valCxt}.${bt.default.dynamicAnchors}`)},()=>{e.var(bt.default.instancePath,(0,Qe._)`""`),e.var(bt.default.parentData,(0,Qe._)`undefined`),e.var(bt.default.parentDataProperty,(0,Qe._)`undefined`),e.var(bt.default.rootData,bt.default.data),t.dynamicRef&&e.var(bt.default.dynamicAnchors,(0,Qe._)`{}`)})}function xxe(e){const{schema:t,opts:r,gen:n}=e;yP(e,()=>{r.$comment&&t.$comment&&SP(e),Txe(e),n.let(bt.default.vErrors,null),n.let(bt.default.errors,0),r.unevaluated&&Sxe(e),xP(e),Pxe(e)})}function Sxe(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Qe._)`${r}.evaluated`),t.if((0,Qe._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Qe._)`${e.evaluated}.props`,(0,Qe._)`undefined`)),t.if((0,Qe._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Qe._)`${e.evaluated}.items`,(0,Qe._)`undefined`))}function Y6(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Qe._)`/*# sourceURL=${r} */`:Qe.nil}function kxe(e,t){if(wP(e)&&(_P(e),bP(e))){Cxe(e,t);return}(0,vP.boolOrEmptySchema)(e,t)}function bP({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function wP(e){return typeof e.schema!="boolean"}function Cxe(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&SP(e),$xe(e),Axe(e);const o=n.const("_errs",bt.default.errors);xP(e,o),n.var(t,(0,Qe._)`${o} === ${bt.default.errors}`)}function _P(e){(0,qo.checkUnknownRules)(e),Exe(e)}function xP(e,t){if(e.opts.jtd)return Z6(e,[],!1,t);const r=(0,X6.getSchemaTypes)(e.schema),n=(0,X6.coerceAndCheckDataType)(e,r);Z6(e,r,!n,t)}function Exe(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,qo.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Txe(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,qo.checkStrictMode)(e,"default is ignored in the schema root")}function $xe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,yxe.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Axe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function SP({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,Qe._)`${bt.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const s=(0,Qe.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,Qe._)`${bt.default.self}.opts.$comment(${o}, ${s}, ${u}.schema)`)}}function Pxe(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,Qe._)`${bt.default.errors} === 0`,()=>t.return(bt.default.data),()=>t.throw((0,Qe._)`new ${i}(${bt.default.vErrors})`)):(t.assign((0,Qe._)`${n}.errors`,bt.default.vErrors),o.unevaluated&&Oxe(e),t.return((0,Qe._)`${bt.default.errors} === 0`))}function Oxe({gen:e,evaluated:t,props:r,items:n}){r instanceof Qe.Name&&e.assign((0,Qe._)`${t}.props`,r),n instanceof Qe.Name&&e.assign((0,Qe._)`${t}.items`,n)}function Z6(e,t,r,n){const{gen:i,schema:o,data:s,allErrors:u,opts:l,self:a}=e,{RULES:c}=a;if(o.$ref&&(l.ignoreKeywordsWithRef||!(0,qo.schemaHasRulesButRef)(o,c))){i.block(()=>EP(e,"$ref",c.all.$ref.definition));return}l.jtd||Mxe(e,t),i.block(()=>{for(const f of c.rules)h(f);h(c.post)});function h(f){(0,g_.shouldUseGroup)(o,f)&&(f.type?(i.if((0,Sm.checkDataType)(f.type,s,l.strictNumbers)),Q6(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,Sm.reportTypeError)(e)),i.endIf()):Q6(e,f),u||i.if((0,Qe._)`${bt.default.errors} === ${n||0}`))}}function Q6(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,vxe.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,g_.shouldUseRule)(n,o)&&EP(e,o.keyword,o.definition,t.type)})}function Mxe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Ixe(e,t),e.opts.allowUnionTypes||Rxe(e,t),jxe(e,e.dataTypes))}function Ixe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{kP(e.dataTypes,r)||v_(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Dxe(e,t)}}function Rxe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&v_(e,"use allowUnionTypes to allow union type keyword")}function jxe(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,g_.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>Nxe(t,s))&&v_(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Nxe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function kP(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Dxe(e,t){const r=[];for(const n of e.dataTypes)kP(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function v_(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,qo.checkStrictMode)(e,t,e.opts.strictTypes)}class CP{constructor(t,r,n){if((0,ld.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,qo.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",TP(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,ld.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",bt.default.errors))}result(t,r,n){this.failResult((0,Qe.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Qe.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,Qe._)`${r} !== undefined && (${(0,Qe.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Sc.reportExtraError:Sc.reportError)(this,this.def.error,r)}$dataError(){(0,Sc.reportError)(this,this.def.$dataError||Sc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Sc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Qe.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Qe.nil,r=Qe.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,Qe.or)((0,Qe._)`${i} === undefined`,r)),t!==Qe.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Qe.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,Qe.or)(s(),u());function s(){if(n.length){if(!(r instanceof Qe.Name))throw new Error("ajv implementation error");const l=Array.isArray(n)?n:[n];return(0,Qe._)`${(0,Sm.checkDataTypes)(l,r,o.opts.strictNumbers,Sm.DataType.Wrong)}`}return Qe.nil}function u(){if(i.validateSchema){const l=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Qe._)`!${l}(${r})`}return Qe.nil}}subschema(t,r){const n=(0,G1.getSubschema)(this.it,t);(0,G1.extendSubschemaData)(n,this.it,t),(0,G1.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return kxe(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=qo.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=qo.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,Qe.Name)),!0}}Wi.KeywordCxt=CP;function EP(e,t,r,n){const i=new CP(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,ld.funcKeywordCode)(i,r):"macro"in r?(0,ld.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,ld.funcKeywordCode)(i,r)}const Fxe=/^\/(?:[^~]|~0|~1)*$/,Lxe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function TP(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return bt.default.rootData;if(e[0]==="/"){if(!Fxe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=bt.default.rootData}else{const a=Lxe.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const c=+a[1];if(i=a[2],i==="#"){if(c>=t)throw new Error(l("property/index",c));return n[t-c]}if(c>t)throw new Error(l("data",c));if(o=r[t-c],!i)return o}let s=o;const u=i.split("/");for(const a of u)a&&(o=(0,Qe._)`${o}${(0,Qe.getProperty)((0,qo.unescapeJsonPointer)(a))}`,s=(0,Qe._)`${s} && ${o}`);return s;function l(a,c){return`Cannot access ${a} ${c} levels up, current level is ${t}`}}Wi.getData=TP;var Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});class Bxe extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Pf.default=Bxe;var Of={};Object.defineProperty(Of,"__esModule",{value:!0});const X1=sn;class zxe extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,X1.resolveUrl)(t,r,n),this.missingSchema=(0,X1.normalizeId)((0,X1.getFullPath)(t,this.missingRef))}}Of.default=zxe;var In={};Object.defineProperty(In,"__esModule",{value:!0});In.resolveSchema=In.getCompilingSchema=In.resolveRef=In.compileSchema=In.SchemaEnv=void 0;const Mi=Tt,Vxe=Pf,la=So,Li=sn,J6=qt,Uxe=Wi;class cg{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Li.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}In.SchemaEnv=cg;function y_(e){const t=$P.call(this,e);if(t)return t;const r=(0,Li.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Mi.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let u;e.$async&&(u=s.scopeValue("Error",{ref:Vxe.default,code:(0,Mi._)`require("ajv/dist/runtime/validation_error").default`}));const l=s.scopeName("validate");e.validateName=l;const a={gen:s,allErrors:this.opts.allErrors,data:la.default.data,parentData:la.default.parentData,parentDataProperty:la.default.parentDataProperty,dataNames:[la.default.data],dataPathArr:[Mi.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Mi.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Mi.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Mi._)`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,Uxe.validateFunctionCode)(a),s.optimize(this.opts.code.optimize);const h=s.toString();c=`${s.scopeRefs(la.default.scope)}return ${h}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const d=new Function(`${la.default.self}`,`${la.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:l,validateCode:h,scopeValues:s._values}),this.opts.unevaluated){const{props:m,items:g}=a;d.evaluated={props:m instanceof Mi.Name?void 0:m,items:g instanceof Mi.Name?void 0:g,dynamicProps:m instanceof Mi.Name,dynamicItems:g instanceof Mi.Name},d.source&&(d.source.evaluated=(0,Mi.stringify)(d.evaluated))}return e.validate=d,e}catch(h){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),h}finally{this._compilations.delete(e)}}In.compileSchema=y_;function Hxe(e,t,r){var n;r=(0,Li.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=Kxe.call(this,e,r);if(o===void 0){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;s&&(o=new cg({schema:s,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=Wxe.call(this,o)}In.resolveRef=Hxe;function Wxe(e){return(0,Li.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:y_.call(this,e)}function $P(e){for(const t of this._compilations)if(qxe(t,e))return t}In.getCompilingSchema=$P;function qxe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Kxe(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||dg.call(this,e,t)}function dg(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Li._getFullPath)(this.opts.uriResolver,r);let i=(0,Li.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Y1.call(this,r,e);const o=(0,Li.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const u=dg.call(this,e,s);return typeof(u==null?void 0:u.schema)!="object"?void 0:Y1.call(this,r,u)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||y_.call(this,s),o===(0,Li.normalizeId)(t)){const{schema:u}=s,{schemaId:l}=this.opts,a=u[l];return a&&(i=(0,Li.resolveUrl)(this.opts.uriResolver,i,a)),new cg({schema:u,schemaId:l,root:e,baseId:i})}return Y1.call(this,r,s)}}In.resolveSchema=dg;const Gxe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Y1(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const l=r[(0,J6.unescapeFragment)(u)];if(l===void 0)return;r=l;const a=typeof r=="object"&&r[this.opts.schemaId];!Gxe.has(u)&&a&&(t=(0,Li.resolveUrl)(this.opts.uriResolver,t,a))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,J6.schemaHasRulesButRef)(r,this.RULES)){const u=(0,Li.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=dg.call(this,n,u)}const{schemaId:s}=this.opts;if(o=o||new cg({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const Xxe="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Yxe="Meta-schema for $data reference (JSON AnySchema extension proposal)",Zxe="object",Qxe=["$data"],Jxe={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},e4e=!1,t4e={$id:Xxe,description:Yxe,type:Zxe,required:Qxe,properties:Jxe,additionalProperties:e4e};var b_={},ib={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(_t,function(r){function n(){for(var J=arguments.length,Z=Array(J),ne=0;ne1){Z[0]=Z[0].slice(0,-1);for(var he=Z.length-1,ue=1;ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=g-p,V=Math.floor,A=String.fromCharCode;function O(J){throw new RangeError(F[J])}function C(J,Z){for(var ne=[],he=J.length;he--;)ne[he]=Z(J[he]);return ne}function w(J,Z){var ne=J.split("@"),he="";ne.length>1&&(he=ne[0]+"@",J=ne[1]),J=J.replace(D,".");var ue=J.split("."),$e=C(ue,Z).join(".");return he+$e}function S(J){for(var Z=[],ne=0,he=J.length;ne=55296&&ue<=56319&&ne>1,Z+=V(Z/ne);Z>U*v>>1;ue+=g)Z=V(Z/U);return V(ue+(U+1)*Z/(Z+y))},L=function(Z){var ne=[],he=Z.length,ue=0,$e=E,Te=_,je=Z.lastIndexOf($);je<0&&(je=0);for(var Ve=0;Ve=128&&O("not-basic"),ne.push(Z.charCodeAt(Ve));for(var We=je>0?je+1:0;We=he&&O("invalid-input");var Ke=k(Z.charCodeAt(We++));(Ke>=g||Ke>V((m-ue)/ct))&&O("overflow"),ue+=Ke*ct;var yt=dt<=Te?p:dt>=Te+v?v:dt-Te;if(KeV(m/At)&&O("overflow"),ct*=At}var re=ne.length+1;Te=I(ue-Ue,re,Ue==0),V(ue/re)>m-$e&&O("overflow"),$e+=V(ue/re),ue%=re,ne.splice(ue++,0,$e)}return String.fromCodePoint.apply(String,ne)},z=function(Z){var ne=[];Z=S(Z);var he=Z.length,ue=E,$e=0,Te=_,je=!0,Ve=!1,We=void 0;try{for(var Ue=Z[Symbol.iterator](),ct;!(je=(ct=Ue.next()).done);je=!0){var dt=ct.value;dt<128&&ne.push(A(dt))}}catch(Gr){Ve=!0,We=Gr}finally{try{!je&&Ue.return&&Ue.return()}finally{if(Ve)throw We}}var Ke=ne.length,yt=Ke;for(Ke&&ne.push($);yt=ue&&MeV((m-$e)/Oe)&&O("overflow"),$e+=(At-ue)*Oe,ue=At;var ft=!0,it=!1,tt=void 0;try{for(var Ye=Z[Symbol.iterator](),Ft;!(ft=(Ft=Ye.next()).done);ft=!0){var rr=Ft.value;if(rrm&&O("overflow"),rr==ue){for(var Et=$e,Xt=g;;Xt+=g){var ur=Xt<=Te?p:Xt>=Te+v?v:Xt-Te;if(Et>6|192).toString(16).toUpperCase()+"%"+(Z&63|128).toString(16).toUpperCase():ne="%"+(Z>>12|224).toString(16).toUpperCase()+"%"+(Z>>6&63|128).toString(16).toUpperCase()+"%"+(Z&63|128).toString(16).toUpperCase(),ne}function R(J){for(var Z="",ne=0,he=J.length;ne=194&&ue<224){if(he-ne>=6){var $e=parseInt(J.substr(ne+4,2),16);Z+=String.fromCharCode((ue&31)<<6|$e&63)}else Z+=J.substr(ne,6);ne+=6}else if(ue>=224){if(he-ne>=9){var Te=parseInt(J.substr(ne+4,2),16),je=parseInt(J.substr(ne+7,2),16);Z+=String.fromCharCode((ue&15)<<12|(Te&63)<<6|je&63)}else Z+=J.substr(ne,9);ne+=9}else Z+=J.substr(ne,3),ne+=3}return Z}function H(J,Z){function ne(he){var ue=R(he);return ue.match(Z.UNRESERVED)?ue:he}return J.scheme&&(J.scheme=String(J.scheme).replace(Z.PCT_ENCODED,ne).toLowerCase().replace(Z.NOT_SCHEME,"")),J.userinfo!==void 0&&(J.userinfo=String(J.userinfo).replace(Z.PCT_ENCODED,ne).replace(Z.NOT_USERINFO,j).replace(Z.PCT_ENCODED,s)),J.host!==void 0&&(J.host=String(J.host).replace(Z.PCT_ENCODED,ne).toLowerCase().replace(Z.NOT_HOST,j).replace(Z.PCT_ENCODED,s)),J.path!==void 0&&(J.path=String(J.path).replace(Z.PCT_ENCODED,ne).replace(J.scheme?Z.NOT_PATH:Z.NOT_PATH_NOSCHEME,j).replace(Z.PCT_ENCODED,s)),J.query!==void 0&&(J.query=String(J.query).replace(Z.PCT_ENCODED,ne).replace(Z.NOT_QUERY,j).replace(Z.PCT_ENCODED,s)),J.fragment!==void 0&&(J.fragment=String(J.fragment).replace(Z.PCT_ENCODED,ne).replace(Z.NOT_FRAGMENT,j).replace(Z.PCT_ENCODED,s)),J}function K(J){return J.replace(/^0*(.*)/,"$1")||"0"}function ee(J,Z){var ne=J.match(Z.IPV4ADDRESS)||[],he=f(ne,2),ue=he[1];return ue?ue.split(".").map(K).join("."):J}function Y(J,Z){var ne=J.match(Z.IPV6ADDRESS)||[],he=f(ne,3),ue=he[1],$e=he[2];if(ue){for(var Te=ue.toLowerCase().split("::").reverse(),je=f(Te,2),Ve=je[0],We=je[1],Ue=We?We.split(":").map(K):[],ct=Ve.split(":").map(K),dt=Z.IPV4ADDRESS.test(ct[ct.length-1]),Ke=dt?7:8,yt=ct.length-Ke,At=Array(Ke),re=0;re1){var He=At.slice(0,ke.index),Me=At.slice(ke.index+ke.length);Ee=He.join(":")+"::"+Me.join(":")}else Ee=At.join(":");return $e&&(Ee+="%"+$e),Ee}else return J}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ie="".match(/(){0}/)[1]===void 0;function le(J){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne={},he=Z.iri!==!1?h:c;Z.reference==="suffix"&&(J=(Z.scheme?Z.scheme+":":"")+"//"+J);var ue=J.match(te);if(ue){ie?(ne.scheme=ue[1],ne.userinfo=ue[3],ne.host=ue[4],ne.port=parseInt(ue[5],10),ne.path=ue[6]||"",ne.query=ue[7],ne.fragment=ue[8],isNaN(ne.port)&&(ne.port=ue[5])):(ne.scheme=ue[1]||void 0,ne.userinfo=J.indexOf("@")!==-1?ue[3]:void 0,ne.host=J.indexOf("//")!==-1?ue[4]:void 0,ne.port=parseInt(ue[5],10),ne.path=ue[6]||"",ne.query=J.indexOf("?")!==-1?ue[7]:void 0,ne.fragment=J.indexOf("#")!==-1?ue[8]:void 0,isNaN(ne.port)&&(ne.port=J.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ue[4]:void 0)),ne.host&&(ne.host=Y(ee(ne.host,he),he)),ne.scheme===void 0&&ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0&&!ne.path&&ne.query===void 0?ne.reference="same-document":ne.scheme===void 0?ne.reference="relative":ne.fragment===void 0?ne.reference="absolute":ne.reference="uri",Z.reference&&Z.reference!=="suffix"&&Z.reference!==ne.reference&&(ne.error=ne.error||"URI is not a "+Z.reference+" reference.");var $e=q[(Z.scheme||ne.scheme||"").toLowerCase()];if(!Z.unicodeSupport&&(!$e||!$e.unicodeSupport)){if(ne.host&&(Z.domainHost||$e&&$e.domainHost))try{ne.host=N.toASCII(ne.host.replace(he.PCT_ENCODED,R).toLowerCase())}catch(Te){ne.error=ne.error||"Host's domain name can not be converted to ASCII via punycode: "+Te}H(ne,c)}else H(ne,he);$e&&$e.parse&&$e.parse(ne,Z)}else ne.error=ne.error||"URI can not be parsed.";return ne}function Q(J,Z){var ne=Z.iri!==!1?h:c,he=[];return J.userinfo!==void 0&&(he.push(J.userinfo),he.push("@")),J.host!==void 0&&he.push(Y(ee(String(J.host),ne),ne).replace(ne.IPV6ADDRESS,function(ue,$e,Te){return"["+$e+(Te?"%25"+Te:"")+"]"})),(typeof J.port=="number"||typeof J.port=="string")&&(he.push(":"),he.push(String(J.port))),he.length?he.join(""):void 0}var se=/^\.\.?\//,ae=/^\/\.(\/|$)/,fe=/^\/\.\.(\/|$)/,de=/^\/?(?:.|\n)*?(?=\/|$)/;function pe(J){for(var Z=[];J.length;)if(J.match(se))J=J.replace(se,"");else if(J.match(ae))J=J.replace(ae,"/");else if(J.match(fe))J=J.replace(fe,"/"),Z.pop();else if(J==="."||J==="..")J="";else{var ne=J.match(de);if(ne){var he=ne[0];J=J.slice(he.length),Z.push(he)}else throw new Error("Unexpected dot segment condition")}return Z.join("")}function ye(J){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=Z.iri?h:c,he=[],ue=q[(Z.scheme||J.scheme||"").toLowerCase()];if(ue&&ue.serialize&&ue.serialize(J,Z),J.host&&!ne.IPV6ADDRESS.test(J.host)){if(Z.domainHost||ue&&ue.domainHost)try{J.host=Z.iri?N.toUnicode(J.host):N.toASCII(J.host.replace(ne.PCT_ENCODED,R).toLowerCase())}catch(je){J.error=J.error||"Host's domain name can not be converted to "+(Z.iri?"Unicode":"ASCII")+" via punycode: "+je}}H(J,ne),Z.reference!=="suffix"&&J.scheme&&(he.push(J.scheme),he.push(":"));var $e=Q(J,Z);if($e!==void 0&&(Z.reference!=="suffix"&&he.push("//"),he.push($e),J.path&&J.path.charAt(0)!=="/"&&he.push("/")),J.path!==void 0){var Te=J.path;!Z.absolutePath&&(!ue||!ue.absolutePath)&&(Te=pe(Te)),$e===void 0&&(Te=Te.replace(/^\/\//,"/%2F")),he.push(Te)}return J.query!==void 0&&(he.push("?"),he.push(J.query)),J.fragment!==void 0&&(he.push("#"),he.push(J.fragment)),he.join("")}function we(J,Z){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=arguments[3],ue={};return he||(J=le(ye(J,ne),ne),Z=le(ye(Z,ne),ne)),ne=ne||{},!ne.tolerant&&Z.scheme?(ue.scheme=Z.scheme,ue.userinfo=Z.userinfo,ue.host=Z.host,ue.port=Z.port,ue.path=pe(Z.path||""),ue.query=Z.query):(Z.userinfo!==void 0||Z.host!==void 0||Z.port!==void 0?(ue.userinfo=Z.userinfo,ue.host=Z.host,ue.port=Z.port,ue.path=pe(Z.path||""),ue.query=Z.query):(Z.path?(Z.path.charAt(0)==="/"?ue.path=pe(Z.path):((J.userinfo!==void 0||J.host!==void 0||J.port!==void 0)&&!J.path?ue.path="/"+Z.path:J.path?ue.path=J.path.slice(0,J.path.lastIndexOf("/")+1)+Z.path:ue.path=Z.path,ue.path=pe(ue.path)),ue.query=Z.query):(ue.path=J.path,Z.query!==void 0?ue.query=Z.query:ue.query=J.query),ue.userinfo=J.userinfo,ue.host=J.host,ue.port=J.port),ue.scheme=J.scheme),ue.fragment=Z.fragment,ue}function Ce(J,Z,ne){var he=l({scheme:"null"},ne);return ye(we(le(J,he),le(Z,he),he,!0),he)}function Ie(J,Z){return typeof J=="string"?J=ye(le(J,Z),Z):o(J)==="object"&&(J=le(ye(J,Z),Z)),J}function Re(J,Z,ne){return typeof J=="string"?J=ye(le(J,ne),ne):o(J)==="object"&&(J=ye(J,ne)),typeof Z=="string"?Z=ye(le(Z,ne),ne):o(Z)==="object"&&(Z=ye(Z,ne)),J===Z}function be(J,Z){return J&&J.toString().replace(!Z||!Z.iri?c.ESCAPE:h.ESCAPE,j)}function Ae(J,Z){return J&&J.toString().replace(!Z||!Z.iri?c.PCT_ENCODED:h.PCT_ENCODED,R)}var De={scheme:"http",domainHost:!0,parse:function(Z,ne){return Z.host||(Z.error=Z.error||"HTTP URIs must have a host."),Z},serialize:function(Z,ne){var he=String(Z.scheme).toLowerCase()==="https";return(Z.port===(he?443:80)||Z.port==="")&&(Z.port=void 0),Z.path||(Z.path="/"),Z}},ze={scheme:"https",domainHost:De.domainHost,parse:De.parse,serialize:De.serialize};function Se(J){return typeof J.secure=="boolean"?J.secure:String(J.scheme).toLowerCase()==="wss"}var xe={scheme:"ws",domainHost:!0,parse:function(Z,ne){var he=Z;return he.secure=Se(he),he.resourceName=(he.path||"/")+(he.query?"?"+he.query:""),he.path=void 0,he.query=void 0,he},serialize:function(Z,ne){if((Z.port===(Se(Z)?443:80)||Z.port==="")&&(Z.port=void 0),typeof Z.secure=="boolean"&&(Z.scheme=Z.secure?"wss":"ws",Z.secure=void 0),Z.resourceName){var he=Z.resourceName.split("?"),ue=f(he,2),$e=ue[0],Te=ue[1];Z.path=$e&&$e!=="/"?$e:void 0,Z.query=Te,Z.resourceName=void 0}return Z.fragment=void 0,Z}},Pe={scheme:"wss",domainHost:xe.domainHost,parse:xe.parse,serialize:xe.serialize},Fe={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Le="[0-9A-Fa-f]",St=i(i("%[EFef]"+Le+"%"+Le+Le+"%"+Le+Le)+"|"+i("%[89A-Fa-f]"+Le+"%"+Le+Le)+"|"+i("%"+Le+Le)),Pt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Xe="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Ct=n(Xe,'[\\"\\\\]'),nt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ut=new RegExp(Be,"g"),kt=new RegExp(St,"g"),Mt=new RegExp(n("[^]",Pt,"[\\.]",'[\\"]',Ct),"g"),Je=new RegExp(n("[^]",Be,nt),"g"),$t=Je;function Dt(J){var Z=R(J);return Z.match(ut)?Z:J}var rt={scheme:"mailto",parse:function(Z,ne){var he=Z,ue=he.to=he.path?he.path.split(","):[];if(he.path=void 0,he.query){for(var $e=!1,Te={},je=he.query.split("&"),Ve=0,We=je.length;Venew RegExp(T,I);d.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),p={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function b(T){var I,L,z,B,W,N,q,j,R,H,K,ee,Y,te,ie,le,Q,se,ae,fe,de,pe,ye,we,Ce;const Ie=T.strict,Re=(I=T.code)===null||I===void 0?void 0:I.optimize,be=Re===!0||Re===void 0?1:Re||0,Ae=(z=(L=T.code)===null||L===void 0?void 0:L.regExp)!==null&&z!==void 0?z:d,De=(B=T.uriResolver)!==null&&B!==void 0?B:f.default;return{strictSchema:(N=(W=T.strictSchema)!==null&&W!==void 0?W:Ie)!==null&&N!==void 0?N:!0,strictNumbers:(j=(q=T.strictNumbers)!==null&&q!==void 0?q:Ie)!==null&&j!==void 0?j:!0,strictTypes:(H=(R=T.strictTypes)!==null&&R!==void 0?R:Ie)!==null&&H!==void 0?H:"log",strictTuples:(ee=(K=T.strictTuples)!==null&&K!==void 0?K:Ie)!==null&&ee!==void 0?ee:"log",strictRequired:(te=(Y=T.strictRequired)!==null&&Y!==void 0?Y:Ie)!==null&&te!==void 0?te:!1,code:T.code?{...T.code,optimize:be,regExp:Ae}:{optimize:be,regExp:Ae},loopRequired:(ie=T.loopRequired)!==null&&ie!==void 0?ie:y,loopEnum:(le=T.loopEnum)!==null&&le!==void 0?le:y,meta:(Q=T.meta)!==null&&Q!==void 0?Q:!0,messages:(se=T.messages)!==null&&se!==void 0?se:!0,inlineRefs:(ae=T.inlineRefs)!==null&&ae!==void 0?ae:!0,schemaId:(fe=T.schemaId)!==null&&fe!==void 0?fe:"$id",addUsedSchema:(de=T.addUsedSchema)!==null&&de!==void 0?de:!0,validateSchema:(pe=T.validateSchema)!==null&&pe!==void 0?pe:!0,validateFormats:(ye=T.validateFormats)!==null&&ye!==void 0?ye:!0,unicodeRegExp:(we=T.unicodeRegExp)!==null&&we!==void 0?we:!0,int32range:(Ce=T.int32range)!==null&&Ce!==void 0?Ce:!0,uriResolver:De}}class _{constructor(I={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,I=this.opts={...I,...b(I)};const{es5:L,lines:z}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:g,es5:L,lines:z}),this.logger=V(I.logger);const B=I.validateFormats;I.validateFormats=!1,this.RULES=(0,o.getRules)(),E.call(this,p,I,"NOT SUPPORTED"),E.call(this,v,I,"DEPRECATED","warn"),this._metaOpts=F.call(this),I.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),I.keywords&&D.call(this,I.keywords),typeof I.meta=="object"&&this.addMetaSchema(I.meta),M.call(this),I.validateFormats=B}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:I,meta:L,schemaId:z}=this.opts;let B=h;z==="id"&&(B={...h},B.id=B.$id,delete B.$id),L&&I&&this.addMetaSchema(B,B[z],!1)}defaultMeta(){const{meta:I,schemaId:L}=this.opts;return this.opts.defaultMeta=typeof I=="object"?I[L]||I:void 0}validate(I,L){let z;if(typeof I=="string"){if(z=this.getSchema(I),!z)throw new Error(`no schema with key or ref "${I}"`)}else z=this.compile(I);const B=z(L);return"$async"in z||(this.errors=z.errors),B}compile(I,L){const z=this._addSchema(I,L);return z.validate||this._compileSchemaEnv(z)}compileAsync(I,L){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return B.call(this,I,L);async function B(H,K){await W.call(this,H.$schema);const ee=this._addSchema(H,K);return ee.validate||N.call(this,ee)}async function W(H){H&&!this.getSchema(H)&&await B.call(this,{$ref:H},!0)}async function N(H){try{return this._compileSchemaEnv(H)}catch(K){if(!(K instanceof i.default))throw K;return q.call(this,K),await j.call(this,K.missingSchema),N.call(this,H)}}function q({missingSchema:H,missingRef:K}){if(this.refs[H])throw new Error(`AnySchema ${H} is loaded but ${K} cannot be resolved`)}async function j(H){const K=await R.call(this,H);this.refs[H]||await W.call(this,K.$schema),this.refs[H]||this.addSchema(K,H,L)}async function R(H){const K=this._loading[H];if(K)return K;try{return await(this._loading[H]=z(H))}finally{delete this._loading[H]}}}addSchema(I,L,z,B=this.opts.validateSchema){if(Array.isArray(I)){for(const N of I)this.addSchema(N,void 0,z,B);return this}let W;if(typeof I=="object"){const{schemaId:N}=this.opts;if(W=I[N],W!==void 0&&typeof W!="string")throw new Error(`schema ${N} must be string`)}return L=(0,l.normalizeId)(L||W),this._checkUnique(L),this.schemas[L]=this._addSchema(I,z,L,B,!0),this}addMetaSchema(I,L,z=this.opts.validateSchema){return this.addSchema(I,L,!0,z),this}validateSchema(I,L){if(typeof I=="boolean")return!0;let z;if(z=I.$schema,z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const B=this.validate(z,I);if(!B&&L){const W="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(W);else throw new Error(W)}return B}getSchema(I){let L;for(;typeof(L=$.call(this,I))=="string";)I=L;if(L===void 0){const{schemaId:z}=this.opts,B=new s.SchemaEnv({schema:{},schemaId:z});if(L=s.resolveSchema.call(this,B,I),!L)return;this.refs[I]=L}return L.validate||this._compileSchemaEnv(L)}removeSchema(I){if(I instanceof RegExp)return this._removeAllSchemas(this.schemas,I),this._removeAllSchemas(this.refs,I),this;switch(typeof I){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const L=$.call(this,I);return typeof L=="object"&&this._cache.delete(L.schema),delete this.schemas[I],delete this.refs[I],this}case"object":{const L=I;this._cache.delete(L);let z=I[this.opts.schemaId];return z&&(z=(0,l.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(I){for(const L of I)this.addKeyword(L);return this}addKeyword(I,L){let z;if(typeof I=="string")z=I,typeof L=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),L.keyword=z);else if(typeof I=="object"&&L===void 0){if(L=I,z=L.keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(O.call(this,z,L),!L)return(0,c.eachItem)(z,W=>C.call(this,W)),this;S.call(this,L);const B={...L,type:(0,a.getJSONTypes)(L.type),schemaType:(0,a.getJSONTypes)(L.schemaType)};return(0,c.eachItem)(z,B.type.length===0?W=>C.call(this,W,B):W=>B.type.forEach(N=>C.call(this,W,B,N))),this}getKeyword(I){const L=this.RULES.all[I];return typeof L=="object"?L.definition:!!L}removeKeyword(I){const{RULES:L}=this;delete L.keywords[I],delete L.all[I];for(const z of L.rules){const B=z.rules.findIndex(W=>W.keyword===I);B>=0&&z.rules.splice(B,1)}return this}addFormat(I,L){return typeof L=="string"&&(L=new RegExp(L)),this.formats[I]=L,this}errorsText(I=this.errors,{separator:L=", ",dataVar:z="data"}={}){return!I||I.length===0?"No errors":I.map(B=>`${z}${B.instancePath} ${B.message}`).reduce((B,W)=>B+L+W)}$dataMetaSchema(I,L){const z=this.RULES.all;I=JSON.parse(JSON.stringify(I));for(const B of L){const W=B.split("/").slice(1);let N=I;for(const q of W)N=N[q];for(const q in z){const j=z[q];if(typeof j!="object")continue;const{$data:R}=j.definition,H=N[q];R&&H&&(N[q]=k(H))}}return I}_removeAllSchemas(I,L){for(const z in I){const B=I[z];(!L||L.test(z))&&(typeof B=="string"?delete I[z]:B&&!B.meta&&(this._cache.delete(B.schema),delete I[z]))}}_addSchema(I,L,z,B=this.opts.validateSchema,W=this.opts.addUsedSchema){let N;const{schemaId:q}=this.opts;if(typeof I=="object")N=I[q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof I!="boolean")throw new Error("schema must be object or boolean")}let j=this._cache.get(I);if(j!==void 0)return j;z=(0,l.normalizeId)(N||z);const R=l.getSchemaRefs.call(this,I,z);return j=new s.SchemaEnv({schema:I,schemaId:q,meta:L,baseId:z,localRefs:R}),this._cache.set(j.schema,j),W&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=j),B&&this.validateSchema(I,!0),j}_checkUnique(I){if(this.schemas[I]||this.refs[I])throw new Error(`schema with key or id "${I}" already exists`)}_compileSchemaEnv(I){if(I.meta?this._compileMetaSchema(I):s.compileSchema.call(this,I),!I.validate)throw new Error("ajv implementation error");return I.validate}_compileMetaSchema(I){const L=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,I)}finally{this.opts=L}}}e.default=_,_.ValidationError=n.default,_.MissingRefError=i.default;function E(T,I,L,z="error"){for(const B in T){const W=B;W in I&&this.logger[z](`${L}: option ${B}. ${T[W]}`)}}function $(T){return T=(0,l.normalizeId)(T),this.schemas[T]||this.refs[T]}function M(){const T=this.opts.schemas;if(T)if(Array.isArray(T))this.addSchema(T);else for(const I in T)this.addSchema(T[I],I)}function P(){for(const T in this.opts.formats){const I=this.opts.formats[T];I&&this.addFormat(T,I)}}function D(T){if(Array.isArray(T)){this.addVocabulary(T);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const I in T){const L=T[I];L.keyword||(L.keyword=I),this.addKeyword(L)}}function F(){const T={...this.opts};for(const I of m)delete T[I];return T}const U={log(){},warn(){},error(){}};function V(T){if(T===!1)return U;if(T===void 0)return console;if(T.log&&T.warn&&T.error)return T;throw new Error("logger must implement log, warn and error methods")}const A=/^[a-z_$][a-z0-9_$:-]*$/i;function O(T,I){const{RULES:L}=this;if((0,c.eachItem)(T,z=>{if(L.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!A.test(z))throw new Error(`Keyword ${z} has invalid name`)}),!!I&&I.$data&&!("code"in I||"validate"in I))throw new Error('$data keyword must have "code" or "validate" function')}function C(T,I,L){var z;const B=I==null?void 0:I.post;if(L&&B)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:W}=this;let N=B?W.post:W.rules.find(({type:j})=>j===L);if(N||(N={type:L,rules:[]},W.rules.push(N)),W.keywords[T]=!0,!I)return;const q={keyword:T,definition:{...I,type:(0,a.getJSONTypes)(I.type),schemaType:(0,a.getJSONTypes)(I.schemaType)}};I.before?w.call(this,N,q,I.before):N.rules.push(q),W.all[T]=q,(z=I.implements)===null||z===void 0||z.forEach(j=>this.addKeyword(j))}function w(T,I,L){const z=T.rules.findIndex(B=>B.keyword===L);z>=0?T.rules.splice(z,0,I):(T.rules.push(I),this.logger.warn(`rule ${L} is not defined`))}function S(T){let{metaSchema:I}=T;I!==void 0&&(T.$data&&this.opts.$data&&(I=k(I)),T.validateSchema=this.compile(I,!0))}const x={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function k(T){return{anyOf:[T,x]}}})(iP);var w_={},__={},x_={};Object.defineProperty(x_,"__esModule",{value:!0});const n4e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};x_.default=n4e;var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});Wa.callRef=Wa.getValidate=void 0;const i4e=Of,e8=Ot,Pn=Tt,vl=So,t8=In,xh=qt,o4e={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:u,self:l}=n,{root:a}=o;if((r==="#"||r==="#/")&&i===a.baseId)return h();const c=t8.resolveRef.call(l,a,i,r);if(c===void 0)throw new i4e.default(n.opts.uriResolver,i,r);if(c instanceof t8.SchemaEnv)return f(c);return d(c);function h(){if(o===a)return hp(e,s,o,o.$async);const m=t.scopeValue("root",{ref:a});return hp(e,(0,Pn._)`${m}.validate`,a,a.$async)}function f(m){const g=PP(e,m);hp(e,g,m,m.$async)}function d(m){const g=t.scopeValue("schema",u.code.source===!0?{ref:m,code:(0,Pn.stringify)(m)}:{ref:m}),p=t.name("valid"),v=e.subschema({schema:m,dataTypes:[],schemaPath:Pn.nil,topSchemaRef:g,errSchemaPath:r},p);e.mergeEvaluated(v),e.ok(p)}}};function PP(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Pn._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Wa.getValidate=PP;function hp(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:u,opts:l}=o,a=l.passContext?vl.default.this:Pn.nil;n?c():h();function c(){if(!u.$async)throw new Error("async schema referenced by sync schema");const m=i.let("valid");i.try(()=>{i.code((0,Pn._)`await ${(0,e8.callValidateCode)(e,t,a)}`),d(t),s||i.assign(m,!0)},g=>{i.if((0,Pn._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),s||i.assign(m,!1)}),e.ok(m)}function h(){e.result((0,e8.callValidateCode)(e,t,a),()=>d(t),()=>f(t))}function f(m){const g=(0,Pn._)`${m}.errors`;i.assign(vl.default.vErrors,(0,Pn._)`${vl.default.vErrors} === null ? ${g} : ${vl.default.vErrors}.concat(${g})`),i.assign(vl.default.errors,(0,Pn._)`${vl.default.vErrors}.length`)}function d(m){var g;if(!o.opts.unevaluated)return;const p=(g=r==null?void 0:r.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(p&&!p.dynamicProps)p.props!==void 0&&(o.props=xh.mergeEvaluated.props(i,p.props,o.props));else{const v=i.var("props",(0,Pn._)`${m}.evaluated.props`);o.props=xh.mergeEvaluated.props(i,v,o.props,Pn.Name)}if(o.items!==!0)if(p&&!p.dynamicItems)p.items!==void 0&&(o.items=xh.mergeEvaluated.items(i,p.items,o.items));else{const v=i.var("items",(0,Pn._)`${m}.evaluated.items`);o.items=xh.mergeEvaluated.items(i,v,o.items,Pn.Name)}}}Wa.callRef=hp;Wa.default=o4e;Object.defineProperty(__,"__esModule",{value:!0});const s4e=x_,a4e=Wa,l4e=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",s4e.default,a4e.default];__.default=l4e;var S_={},k_={};Object.defineProperty(k_,"__esModule",{value:!0});const km=Tt,ys=km.operators,Cm={maximum:{okStr:"<=",ok:ys.LTE,fail:ys.GT},minimum:{okStr:">=",ok:ys.GTE,fail:ys.LT},exclusiveMaximum:{okStr:"<",ok:ys.LT,fail:ys.GTE},exclusiveMinimum:{okStr:">",ok:ys.GT,fail:ys.LTE}},u4e={message:({keyword:e,schemaCode:t})=>(0,km.str)`must be ${Cm[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,km._)`{comparison: ${Cm[e].okStr}, limit: ${t}}`},c4e={keyword:Object.keys(Cm),type:"number",schemaType:"number",$data:!0,error:u4e,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,km._)`${r} ${Cm[t].fail} ${n} || isNaN(${r})`)}};k_.default=c4e;var C_={};Object.defineProperty(C_,"__esModule",{value:!0});const ud=Tt,d4e={message:({schemaCode:e})=>(0,ud.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,ud._)`{multipleOf: ${e}}`},f4e={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:d4e,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),u=o?(0,ud._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,ud._)`${s} !== parseInt(${s})`;e.fail$data((0,ud._)`(${n} === 0 || (${s} = ${r}/${n}, ${u}))`)}};C_.default=f4e;var E_={},T_={};Object.defineProperty(T_,"__esModule",{value:!0});function OP(e){const t=e.length;let r=0,n=0,i;for(;n=55296&&i<=56319&&n(0,wa._)`{limit: ${e}}`},g4e={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:m4e,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?wa.operators.GT:wa.operators.LT,s=i.opts.unicode===!1?(0,wa._)`${r}.length`:(0,wa._)`${(0,h4e.useFunc)(e.gen,p4e.default)}(${r})`;e.fail$data((0,wa._)`${s} ${o} ${n}`)}};E_.default=g4e;var $_={};Object.defineProperty($_,"__esModule",{value:!0});const v4e=Ot,Em=Tt,y4e={message:({schemaCode:e})=>(0,Em.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Em._)`{pattern: ${e}}`},b4e={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:y4e,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",u=r?(0,Em._)`(new RegExp(${i}, ${s}))`:(0,v4e.usePattern)(e,n);e.fail$data((0,Em._)`!${u}.test(${t})`)}};$_.default=b4e;var A_={};Object.defineProperty(A_,"__esModule",{value:!0});const cd=Tt,w4e={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,cd.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,cd._)`{limit: ${e}}`},_4e={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:w4e,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?cd.operators.GT:cd.operators.LT;e.fail$data((0,cd._)`Object.keys(${r}).length ${i} ${n}`)}};A_.default=_4e;var P_={};Object.defineProperty(P_,"__esModule",{value:!0});const kc=Ot,dd=Tt,x4e=qt,S4e={message:({params:{missingProperty:e}})=>(0,dd.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,dd._)`{missingProperty: ${e}}`},k4e={keyword:"required",type:"object",schemaType:"array",$data:!0,error:S4e,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:u}=s;if(!o&&r.length===0)return;const l=r.length>=u.loopRequired;if(s.allErrors?a():c(),u.strictRequired){const d=e.parentSchema.properties,{definedProperties:m}=e.it;for(const g of r)if((d==null?void 0:d[g])===void 0&&!m.has(g)){const p=s.schemaEnv.baseId+s.errSchemaPath,v=`required property "${g}" is not defined at "${p}" (strictRequired)`;(0,x4e.checkStrictMode)(s,v,s.opts.strictRequired)}}function a(){if(l||o)e.block$data(dd.nil,h);else for(const d of r)(0,kc.checkReportMissingProp)(e,d)}function c(){const d=t.let("missing");if(l||o){const m=t.let("valid",!0);e.block$data(m,()=>f(d,m)),e.ok(m)}else t.if((0,kc.checkMissingProp)(e,r,d)),(0,kc.reportMissingProp)(e,d),t.else()}function h(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,kc.noPropertyInData)(t,i,d,u.ownProperties),()=>e.error())})}function f(d,m){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(m,(0,kc.propertyInData)(t,i,d,u.ownProperties)),t.if((0,dd.not)(m),()=>{e.error(),t.break()})},dd.nil)}}};P_.default=k4e;var O_={};Object.defineProperty(O_,"__esModule",{value:!0});const fd=Tt,C4e={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,fd.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,fd._)`{limit: ${e}}`},E4e={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:C4e,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?fd.operators.GT:fd.operators.LT;e.fail$data((0,fd._)`${r}.length ${i} ${n}`)}};O_.default=E4e;var M_={},Mf={};Object.defineProperty(Mf,"__esModule",{value:!0});const MP=fP;MP.code='require("ajv/dist/runtime/equal").default';Mf.default=MP;Object.defineProperty(M_,"__esModule",{value:!0});const Z1=Af,rn=Tt,T4e=qt,$4e=Mf,A4e={message:({params:{i:e,j:t}})=>(0,rn.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,rn._)`{i: ${e}, j: ${t}}`},P4e={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:A4e,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:u}=e;if(!n&&!i)return;const l=t.let("valid"),a=o.items?(0,Z1.getSchemaTypes)(o.items):[];e.block$data(l,c,(0,rn._)`${s} === false`),e.ok(l);function c(){const m=t.let("i",(0,rn._)`${r}.length`),g=t.let("j");e.setParams({i:m,j:g}),t.assign(l,!0),t.if((0,rn._)`${m} > 1`,()=>(h()?f:d)(m,g))}function h(){return a.length>0&&!a.some(m=>m==="object"||m==="array")}function f(m,g){const p=t.name("item"),v=(0,Z1.checkDataTypes)(a,p,u.opts.strictNumbers,Z1.DataType.Wrong),y=t.const("indices",(0,rn._)`{}`);t.for((0,rn._)`;${m}--;`,()=>{t.let(p,(0,rn._)`${r}[${m}]`),t.if(v,(0,rn._)`continue`),a.length>1&&t.if((0,rn._)`typeof ${p} == "string"`,(0,rn._)`${p} += "_"`),t.if((0,rn._)`typeof ${y}[${p}] == "number"`,()=>{t.assign(g,(0,rn._)`${y}[${p}]`),e.error(),t.assign(l,!1).break()}).code((0,rn._)`${y}[${p}] = ${m}`)})}function d(m,g){const p=(0,T4e.useFunc)(t,$4e.default),v=t.name("outer");t.label(v).for((0,rn._)`;${m}--;`,()=>t.for((0,rn._)`${g} = ${m}; ${g}--;`,()=>t.if((0,rn._)`${p}(${r}[${m}], ${r}[${g}])`,()=>{e.error(),t.assign(l,!1).break(v)})))}}};M_.default=P4e;var I_={};Object.defineProperty(I_,"__esModule",{value:!0});const ob=Tt,O4e=qt,M4e=Mf,I4e={message:"must be equal to constant",params:({schemaCode:e})=>(0,ob._)`{allowedValue: ${e}}`},R4e={keyword:"const",$data:!0,error:I4e,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,ob._)`!${(0,O4e.useFunc)(t,M4e.default)}(${r}, ${i})`):e.fail((0,ob._)`${o} !== ${r}`)}};I_.default=R4e;var R_={};Object.defineProperty(R_,"__esModule",{value:!0});const Nc=Tt,j4e=qt,N4e=Mf,D4e={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Nc._)`{allowedValues: ${e}}`},F4e={keyword:"enum",schemaType:"array",$data:!0,error:D4e,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const u=i.length>=s.opts.loopEnum;let l;const a=()=>l??(l=(0,j4e.useFunc)(t,N4e.default));let c;if(u||n)c=t.let("valid"),e.block$data(c,h);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const d=t.const("vSchema",o);c=(0,Nc.or)(...i.map((m,g)=>f(d,g)))}e.pass(c);function h(){t.assign(c,!1),t.forOf("v",o,d=>t.if((0,Nc._)`${a()}(${r}, ${d})`,()=>t.assign(c,!0).break()))}function f(d,m){const g=i[m];return typeof g=="object"&&g!==null?(0,Nc._)`${a()}(${r}, ${d}[${m}])`:(0,Nc._)`${r} === ${g}`}}};R_.default=F4e;Object.defineProperty(S_,"__esModule",{value:!0});const L4e=k_,B4e=C_,z4e=E_,V4e=$_,U4e=A_,H4e=P_,W4e=O_,q4e=M_,K4e=I_,G4e=R_,X4e=[L4e.default,B4e.default,z4e.default,V4e.default,U4e.default,H4e.default,W4e.default,q4e.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},K4e.default,G4e.default];S_.default=X4e;var j_={},Ju={};Object.defineProperty(Ju,"__esModule",{value:!0});Ju.validateAdditionalItems=void 0;const _a=Tt,sb=qt,Y4e={message:({params:{len:e}})=>(0,_a.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,_a._)`{limit: ${e}}`},Z4e={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Y4e,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,sb.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}IP(e,n)}};function IP(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const u=r.const("len",(0,_a._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,_a._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,sb.alwaysValidSchema)(s,n)){const a=r.var("valid",(0,_a._)`${u} <= ${t.length}`);r.if((0,_a.not)(a),()=>l(a)),e.ok(a)}function l(a){r.forRange("i",t.length,u,c=>{e.subschema({keyword:o,dataProp:c,dataPropType:sb.Type.Num},a),s.allErrors||r.if((0,_a.not)(a),()=>r.break())})}}Ju.validateAdditionalItems=IP;Ju.default=Z4e;var N_={},ec={};Object.defineProperty(ec,"__esModule",{value:!0});ec.validateTuple=void 0;const r8=Tt,pp=qt,Q4e=Ot,J4e={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return RP(e,"additionalItems",t);r.items=!0,!(0,pp.alwaysValidSchema)(r,t)&&e.ok((0,Q4e.validateArray)(e))}};function RP(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:u}=e;c(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=pp.mergeEvaluated.items(n,r.length,u.items));const l=n.name("valid"),a=n.const("len",(0,r8._)`${o}.length`);r.forEach((h,f)=>{(0,pp.alwaysValidSchema)(u,h)||(n.if((0,r8._)`${a} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},l)),e.ok(l))});function c(h){const{opts:f,errSchemaPath:d}=u,m=r.length,g=m===h.minItems&&(m===h.maxItems||h[t]===!1);if(f.strictTuples&&!g){const p=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,pp.checkStrictMode)(u,p,f.strictTuples)}}}ec.validateTuple=RP;ec.default=J4e;Object.defineProperty(N_,"__esModule",{value:!0});const eSe=ec,tSe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,eSe.validateTuple)(e,"items")};N_.default=tSe;var D_={};Object.defineProperty(D_,"__esModule",{value:!0});const n8=Tt,rSe=qt,nSe=Ot,iSe=Ju,oSe={message:({params:{len:e}})=>(0,n8.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n8._)`{limit: ${e}}`},sSe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:oSe,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,rSe.alwaysValidSchema)(n,t)&&(i?(0,iSe.validateAdditionalItems)(e,i):e.ok((0,nSe.validateArray)(e)))}};D_.default=sSe;var F_={};Object.defineProperty(F_,"__esModule",{value:!0});const di=Tt,Sh=qt,aSe={message:({params:{min:e,max:t}})=>t===void 0?(0,di.str)`must contain at least ${e} valid item(s)`:(0,di.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,di._)`{minContains: ${e}}`:(0,di._)`{minContains: ${e}, maxContains: ${t}}`},lSe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:aSe,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let s,u;const{minContains:l,maxContains:a}=n;o.opts.next?(s=l===void 0?1:l,u=a):s=1;const c=t.const("len",(0,di._)`${i}.length`);if(e.setParams({min:s,max:u}),u===void 0&&s===0){(0,Sh.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&s>u){(0,Sh.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Sh.alwaysValidSchema)(o,r)){let g=(0,di._)`${c} >= ${s}`;u!==void 0&&(g=(0,di._)`${g} && ${c} <= ${u}`),e.pass(g);return}o.items=!0;const h=t.name("valid");u===void 0&&s===1?d(h,()=>t.if(h,()=>t.break())):s===0?(t.let(h,!0),u!==void 0&&t.if((0,di._)`${i}.length > 0`,f)):(t.let(h,!1),f()),e.result(h,()=>e.reset());function f(){const g=t.name("_valid"),p=t.let("count",0);d(g,()=>t.if(g,()=>m(p)))}function d(g,p){t.forRange("i",0,c,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:Sh.Type.Num,compositeRule:!0},g),p()})}function m(g){t.code((0,di._)`${g}++`),u===void 0?t.if((0,di._)`${g} >= ${s}`,()=>t.assign(h,!0).break()):(t.if((0,di._)`${g} > ${u}`,()=>t.assign(h,!1).break()),s===1?t.assign(h,!0):t.if((0,di._)`${g} >= ${s}`,()=>t.assign(h,!0)))}}};F_.default=lSe;var jP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Tt,r=qt,n=Ot;e.error={message:({params:{property:l,depsCount:a,deps:c}})=>{const h=a===1?"property":"properties";return(0,t.str)`must have ${h} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:a,deps:c,missingProperty:h}})=>(0,t._)`{property: ${l}, + || ${D} === "boolean" || ${M} === null`).assign(F,(0,i._)`[${M}]`)}}}function d({gen:b,parentData:_,parentDataProperty:E},$){b.if((0,i._)`${_} !== undefined`,()=>b.assign((0,i._)`${_}[${E}]`,$))}function m(b,_,E,$=s.Correct){const M=$===s.Correct?i.operators.EQ:i.operators.NEQ;let P;switch(b){case"null":return(0,i._)`${_} ${M} null`;case"array":P=(0,i._)`Array.isArray(${_})`;break;case"object":P=(0,i._)`${_} && typeof ${_} == "object" && !Array.isArray(${_})`;break;case"integer":P=D((0,i._)`!(${_} % 1) && !isNaN(${_})`);break;case"number":P=D();break;default:return(0,i._)`typeof ${_} ${M} ${b}`}return $===s.Correct?P:(0,i.not)(P);function D(F=i.nil){return(0,i.and)((0,i._)`typeof ${_} == "number"`,F,E?(0,i._)`isFinite(${_})`:i.nil)}}e.checkDataType=m;function g(b,_,E,$){if(b.length===1)return m(b[0],_,E,$);let M;const P=(0,o.toHash)(b);if(P.array&&P.object){const D=(0,i._)`typeof ${_} != "object"`;M=P.null?D:(0,i._)`!${_} || ${D}`,delete P.null,delete P.array,delete P.object}else M=i.nil;P.number&&delete P.integer;for(const D in P)M=(0,i.and)(M,m(D,_,E,$));return M}e.checkDataTypes=g;const p={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:_})=>typeof b=="string"?(0,i._)`{type: ${b}}`:(0,i._)`{type: ${_}}`};function v(b){const _=y(b);(0,n.reportError)(_,p)}e.reportTypeError=v;function y(b){const{gen:_,data:E,schema:$}=b,M=(0,o.schemaRefOrVal)(b,$,"type");return{gen:_,keyword:"type",data:E,schema:$.type,schemaCode:M,schemaValue:M,parentSchema:$,params:{},it:b}}})(Af);var ug={};Object.defineProperty(ug,"__esModule",{value:!0});ug.assignDefaults=void 0;const gl=Tt,N3e=qt;function D3e(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)K6(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>K6(e,o,i.default))}ug.assignDefaults=D3e;function K6(e,t,r){const{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;const u=(0,gl._)`${o}${(0,gl.getProperty)(t)}`;if(i){(0,N3e.checkStrictMode)(e,`default is ignored for: ${u}`);return}let l=(0,gl._)`${u} === undefined`;s.useDefaults==="empty"&&(l=(0,gl._)`${l} || ${u} === null || ${u} === ""`),n.if(l,(0,gl._)`${u} = ${(0,gl.stringify)(r)}`)}var po={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.validateUnion=Ot.validateArray=Ot.usePattern=Ot.callValidateCode=Ot.schemaProperties=Ot.allSchemaProperties=Ot.noPropertyInData=Ot.propertyInData=Ot.isOwnProperty=Ot.hasPropFunc=Ot.reportMissingProp=Ot.checkMissingProp=Ot.checkReportMissingProp=void 0;const yr=Tt,h_=qt,vs=So,F3e=qt;function L3e(e,t){const{gen:r,data:n,it:i}=e;r.if(m_(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,yr._)`${t}`},!0),e.error()})}Ot.checkReportMissingProp=L3e;function B3e({gen:e,data:t,it:{opts:r}},n,i){return(0,yr.or)(...n.map(o=>(0,yr.and)(m_(e,t,o,r.ownProperties),(0,yr._)`${i} = ${o}`)))}Ot.checkMissingProp=B3e;function z3e(e,t){e.setParams({missingProperty:t},!0),e.error()}Ot.reportMissingProp=z3e;function uP(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,yr._)`Object.prototype.hasOwnProperty`})}Ot.hasPropFunc=uP;function p_(e,t,r){return(0,yr._)`${uP(e)}.call(${t}, ${r})`}Ot.isOwnProperty=p_;function V3e(e,t,r,n){const i=(0,yr._)`${t}${(0,yr.getProperty)(r)} !== undefined`;return n?(0,yr._)`${i} && ${p_(e,t,r)}`:i}Ot.propertyInData=V3e;function m_(e,t,r,n){const i=(0,yr._)`${t}${(0,yr.getProperty)(r)} === undefined`;return n?(0,yr.or)(i,(0,yr.not)(p_(e,t,r))):i}Ot.noPropertyInData=m_;function cP(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ot.allSchemaProperties=cP;function U3e(e,t){return cP(t).filter(r=>!(0,h_.alwaysValidSchema)(e,t[r]))}Ot.schemaProperties=U3e;function H3e({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},u,l,a){const c=a?(0,yr._)`${e}, ${t}, ${n}${i}`:t,h=[[vs.default.instancePath,(0,yr.strConcat)(vs.default.instancePath,o)],[vs.default.parentData,s.parentData],[vs.default.parentDataProperty,s.parentDataProperty],[vs.default.rootData,vs.default.rootData]];s.opts.dynamicRef&&h.push([vs.default.dynamicAnchors,vs.default.dynamicAnchors]);const f=(0,yr._)`${c}, ${r.object(...h)}`;return l!==yr.nil?(0,yr._)`${u}.call(${l}, ${f})`:(0,yr._)`${u}(${f})`}Ot.callValidateCode=H3e;const W3e=(0,yr._)`new RegExp`;function q3e({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,yr._)`${i.code==="new RegExp"?W3e:(0,F3e.useFunc)(e,i)}(${r}, ${n})`})}Ot.usePattern=q3e;function K3e(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const u=t.let("valid",!0);return s(()=>t.assign(u,!1)),u}return t.var(o,!0),s(()=>t.break()),o;function s(u){const l=t.const("len",(0,yr._)`${r}.length`);t.forRange("i",0,l,a=>{e.subschema({keyword:n,dataProp:a,dataPropType:h_.Type.Num},o),t.if((0,yr.not)(o),u)})}}Ot.validateArray=K3e;function G3e(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,h_.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;const s=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((l,a)=>{const c=e.subschema({keyword:n,schemaProp:a,compositeRule:!0},u);t.assign(s,(0,yr._)`${s} || ${u}`),e.mergeValidEvaluated(c,u)||t.if((0,yr.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Ot.validateUnion=G3e;Object.defineProperty(po,"__esModule",{value:!0});po.validateKeywordUsage=po.validSchemaType=po.funcKeywordCode=po.macroKeywordCode=void 0;const xn=Tt,ba=So,X3e=Ot,Y3e=$f;function Z3e(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,u=t.macro.call(s.self,i,o,s),l=dP(r,n,u);s.opts.validateSchema!==!1&&s.self.validateSchema(u,!0);const a=r.name("valid");e.subschema({schema:u,schemaPath:xn.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},a),e.pass(a,()=>e.error(!0))}po.macroKeywordCode=Z3e;function Q3e(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:u,it:l}=e;exe(l,t);const a=!u&&t.compile?t.compile.call(l.self,o,s,l):t.validate,c=dP(n,i,a),h=n.let("valid");e.block$data(h,f),e.ok((r=t.valid)!==null&&r!==void 0?r:h);function f(){if(t.errors===!1)g(),t.modifying&&G6(e),p(()=>e.error());else{const v=t.async?d():m();t.modifying&&G6(e),p(()=>J3e(e,v))}}function d(){const v=n.let("ruleErrs",null);return n.try(()=>g((0,xn._)`await `),y=>n.assign(h,!1).if((0,xn._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,xn._)`${y}.errors`),()=>n.throw(y))),v}function m(){const v=(0,xn._)`${c}.errors`;return n.assign(v,null),g(xn.nil),v}function g(v=t.async?(0,xn._)`await `:xn.nil){const y=l.opts.passContext?ba.default.this:ba.default.self,b=!("compile"in t&&!u||t.schema===!1);n.assign(h,(0,xn._)`${v}${(0,X3e.callValidateCode)(e,c,y,b)}`,t.modifying)}function p(v){var y;n.if((0,xn.not)((y=t.valid)!==null&&y!==void 0?y:h),v)}}po.funcKeywordCode=Q3e;function G6(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,xn._)`${n.parentData}[${n.parentDataProperty}]`))}function J3e(e,t){const{gen:r}=e;r.if((0,xn._)`Array.isArray(${t})`,()=>{r.assign(ba.default.vErrors,(0,xn._)`${ba.default.vErrors} === null ? ${t} : ${ba.default.vErrors}.concat(${t})`).assign(ba.default.errors,(0,xn._)`${ba.default.vErrors}.length`),(0,Y3e.extendErrors)(e)},()=>e.error())}function exe({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function dP(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,xn.stringify)(r)})}function txe(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}po.validSchemaType=txe;function rxe({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(s!=null&&s.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const l=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}po.validateKeywordUsage=rxe;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.extendSubschemaMode=Ws.extendSubschemaData=Ws.getSubschema=void 0;const co=Tt,fP=qt;function nxe(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,co._)`${e.schemaPath}${(0,co.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,co._)`${e.schemaPath}${(0,co.getProperty)(t)}${(0,co.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,fP.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}Ws.getSubschema=nxe;function ixe(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(r!==void 0){const{errorPath:a,dataPathArr:c,opts:h}=t,f=u.let("data",(0,co._)`${t.data}${(0,co.getProperty)(r)}`,!0);l(f),e.errorPath=(0,co.str)`${a}${(0,fP.getErrorPath)(r,n,h.jsPropertySyntax)}`,e.parentDataProperty=(0,co._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(i!==void 0){const a=i instanceof co.Name?i:u.let("data",i,!0);l(a),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function l(a){e.data=a,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,a]}}Ws.extendSubschemaData=ixe;function oxe(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}Ws.extendSubschemaMode=oxe;var sn={},hP=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r},pP={exports:{}},Os=pP.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};fp(t,n,i,e,"",e)};Os.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Os.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Os.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Os.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function fp(e,t,r,n,i,o,s,u,l,a){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,u,l,a);for(var c in n){var h=n[c];if(Array.isArray(h)){if(c in Os.arrayKeywords)for(var f=0;ft+=mP(n)),t===1/0))return 1/0}return t}function gP(e,t="",r){r!==!1&&(t=nu(t));const n=e.parse(t);return vP(e,n)}sn.getFullPath=gP;function vP(e,t){return e.serialize(t).split("#")[0]+"#"}sn._getFullPath=vP;const pxe=/#\/?$/;function nu(e){return e?e.replace(pxe,""):""}sn.normalizeId=nu;function mxe(e,t,r){return r=nu(r),e.resolve(t,r)}sn.resolveUrl=mxe;const gxe=/^[a-z_][-a-z0-9._]*$/i;function vxe(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=nu(e[r]||t),o={"":i},s=gP(n,i,!1),u={},l=new Set;return cxe(e,{allKeys:!0},(h,f,d,m)=>{if(m===void 0)return;const g=s+f;let p=o[m];typeof h[r]=="string"&&(p=v.call(this,h[r])),y.call(this,h.$anchor),y.call(this,h.$dynamicAnchor),o[f]=p;function v(b){const _=this.opts.uriResolver.resolve;if(b=nu(p?_(p,b):b),l.has(b))throw c(b);l.add(b);let E=this.refs[b];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?a(h,E.schema,b):b!==nu(g)&&(b[0]==="#"?(a(h,u[b],b),u[b]=h):this.refs[b]=g),b}function y(b){if(typeof b=="string"){if(!gxe.test(b))throw new Error(`invalid anchor "${b}"`);v.call(this,`#${b}`)}}}),u;function a(h,f,d){if(f!==void 0&&!uxe(h,f))throw c(d)}function c(h){return new Error(`reference "${h}" resolves to more than one schema`)}}sn.getSchemaRefs=vxe;Object.defineProperty(Wi,"__esModule",{value:!0});Wi.getData=Wi.KeywordCxt=Wi.validateFunctionCode=void 0;const yP=$u,X6=Af,g_=Wo,Sm=Af,yxe=ug,ld=po,G1=Ws,Qe=Tt,bt=So,bxe=sn,qo=qt,Sc=$f;function wxe(e){if(_P(e)&&(xP(e),wP(e))){Sxe(e);return}bP(e,()=>(0,yP.topBoolOrEmptySchema)(e))}Wi.validateFunctionCode=wxe;function bP({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,Qe._)`${bt.default.data}, ${bt.default.valCxt}`,n.$async,()=>{e.code((0,Qe._)`"use strict"; ${Y6(r,i)}`),xxe(e,i),e.code(o)}):e.func(t,(0,Qe._)`${bt.default.data}, ${_xe(i)}`,n.$async,()=>e.code(Y6(r,i)).code(o))}function _xe(e){return(0,Qe._)`{${bt.default.instancePath}="", ${bt.default.parentData}, ${bt.default.parentDataProperty}, ${bt.default.rootData}=${bt.default.data}${e.dynamicRef?(0,Qe._)`, ${bt.default.dynamicAnchors}={}`:Qe.nil}}={}`}function xxe(e,t){e.if(bt.default.valCxt,()=>{e.var(bt.default.instancePath,(0,Qe._)`${bt.default.valCxt}.${bt.default.instancePath}`),e.var(bt.default.parentData,(0,Qe._)`${bt.default.valCxt}.${bt.default.parentData}`),e.var(bt.default.parentDataProperty,(0,Qe._)`${bt.default.valCxt}.${bt.default.parentDataProperty}`),e.var(bt.default.rootData,(0,Qe._)`${bt.default.valCxt}.${bt.default.rootData}`),t.dynamicRef&&e.var(bt.default.dynamicAnchors,(0,Qe._)`${bt.default.valCxt}.${bt.default.dynamicAnchors}`)},()=>{e.var(bt.default.instancePath,(0,Qe._)`""`),e.var(bt.default.parentData,(0,Qe._)`undefined`),e.var(bt.default.parentDataProperty,(0,Qe._)`undefined`),e.var(bt.default.rootData,bt.default.data),t.dynamicRef&&e.var(bt.default.dynamicAnchors,(0,Qe._)`{}`)})}function Sxe(e){const{schema:t,opts:r,gen:n}=e;bP(e,()=>{r.$comment&&t.$comment&&kP(e),$xe(e),n.let(bt.default.vErrors,null),n.let(bt.default.errors,0),r.unevaluated&&kxe(e),SP(e),Oxe(e)})}function kxe(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Qe._)`${r}.evaluated`),t.if((0,Qe._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Qe._)`${e.evaluated}.props`,(0,Qe._)`undefined`)),t.if((0,Qe._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Qe._)`${e.evaluated}.items`,(0,Qe._)`undefined`))}function Y6(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Qe._)`/*# sourceURL=${r} */`:Qe.nil}function Cxe(e,t){if(_P(e)&&(xP(e),wP(e))){Exe(e,t);return}(0,yP.boolOrEmptySchema)(e,t)}function wP({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function _P(e){return typeof e.schema!="boolean"}function Exe(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&kP(e),Axe(e),Pxe(e);const o=n.const("_errs",bt.default.errors);SP(e,o),n.var(t,(0,Qe._)`${o} === ${bt.default.errors}`)}function xP(e){(0,qo.checkUnknownRules)(e),Txe(e)}function SP(e,t){if(e.opts.jtd)return Z6(e,[],!1,t);const r=(0,X6.getSchemaTypes)(e.schema),n=(0,X6.coerceAndCheckDataType)(e,r);Z6(e,r,!n,t)}function Txe(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,qo.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function $xe(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,qo.checkStrictMode)(e,"default is ignored in the schema root")}function Axe(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,bxe.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Pxe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function kP({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,Qe._)`${bt.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const s=(0,Qe.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,Qe._)`${bt.default.self}.opts.$comment(${o}, ${s}, ${u}.schema)`)}}function Oxe(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,Qe._)`${bt.default.errors} === 0`,()=>t.return(bt.default.data),()=>t.throw((0,Qe._)`new ${i}(${bt.default.vErrors})`)):(t.assign((0,Qe._)`${n}.errors`,bt.default.vErrors),o.unevaluated&&Mxe(e),t.return((0,Qe._)`${bt.default.errors} === 0`))}function Mxe({gen:e,evaluated:t,props:r,items:n}){r instanceof Qe.Name&&e.assign((0,Qe._)`${t}.props`,r),n instanceof Qe.Name&&e.assign((0,Qe._)`${t}.items`,n)}function Z6(e,t,r,n){const{gen:i,schema:o,data:s,allErrors:u,opts:l,self:a}=e,{RULES:c}=a;if(o.$ref&&(l.ignoreKeywordsWithRef||!(0,qo.schemaHasRulesButRef)(o,c))){i.block(()=>TP(e,"$ref",c.all.$ref.definition));return}l.jtd||Ixe(e,t),i.block(()=>{for(const f of c.rules)h(f);h(c.post)});function h(f){(0,g_.shouldUseGroup)(o,f)&&(f.type?(i.if((0,Sm.checkDataType)(f.type,s,l.strictNumbers)),Q6(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,Sm.reportTypeError)(e)),i.endIf()):Q6(e,f),u||i.if((0,Qe._)`${bt.default.errors} === ${n||0}`))}}function Q6(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,yxe.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,g_.shouldUseRule)(n,o)&&TP(e,o.keyword,o.definition,t.type)})}function Ixe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Rxe(e,t),e.opts.allowUnionTypes||jxe(e,t),Nxe(e,e.dataTypes))}function Rxe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{CP(e.dataTypes,r)||v_(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Fxe(e,t)}}function jxe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&v_(e,"use allowUnionTypes to allow union type keyword")}function Nxe(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,g_.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>Dxe(t,s))&&v_(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Dxe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function CP(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Fxe(e,t){const r=[];for(const n of e.dataTypes)CP(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function v_(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,qo.checkStrictMode)(e,t,e.opts.strictTypes)}class EP{constructor(t,r,n){if((0,ld.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,qo.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",$P(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,ld.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",bt.default.errors))}result(t,r,n){this.failResult((0,Qe.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Qe.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,Qe._)`${r} !== undefined && (${(0,Qe.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Sc.reportExtraError:Sc.reportError)(this,this.def.error,r)}$dataError(){(0,Sc.reportError)(this,this.def.$dataError||Sc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Sc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Qe.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Qe.nil,r=Qe.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,Qe.or)((0,Qe._)`${i} === undefined`,r)),t!==Qe.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Qe.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,Qe.or)(s(),u());function s(){if(n.length){if(!(r instanceof Qe.Name))throw new Error("ajv implementation error");const l=Array.isArray(n)?n:[n];return(0,Qe._)`${(0,Sm.checkDataTypes)(l,r,o.opts.strictNumbers,Sm.DataType.Wrong)}`}return Qe.nil}function u(){if(i.validateSchema){const l=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Qe._)`!${l}(${r})`}return Qe.nil}}subschema(t,r){const n=(0,G1.getSubschema)(this.it,t);(0,G1.extendSubschemaData)(n,this.it,t),(0,G1.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return Cxe(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=qo.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=qo.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,Qe.Name)),!0}}Wi.KeywordCxt=EP;function TP(e,t,r,n){const i=new EP(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,ld.funcKeywordCode)(i,r):"macro"in r?(0,ld.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,ld.funcKeywordCode)(i,r)}const Lxe=/^\/(?:[^~]|~0|~1)*$/,Bxe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $P(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return bt.default.rootData;if(e[0]==="/"){if(!Lxe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=bt.default.rootData}else{const a=Bxe.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const c=+a[1];if(i=a[2],i==="#"){if(c>=t)throw new Error(l("property/index",c));return n[t-c]}if(c>t)throw new Error(l("data",c));if(o=r[t-c],!i)return o}let s=o;const u=i.split("/");for(const a of u)a&&(o=(0,Qe._)`${o}${(0,Qe.getProperty)((0,qo.unescapeJsonPointer)(a))}`,s=(0,Qe._)`${s} && ${o}`);return s;function l(a,c){return`Cannot access ${a} ${c} levels up, current level is ${t}`}}Wi.getData=$P;var Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});class zxe extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Pf.default=zxe;var Of={};Object.defineProperty(Of,"__esModule",{value:!0});const X1=sn;class Vxe extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,X1.resolveUrl)(t,r,n),this.missingSchema=(0,X1.normalizeId)((0,X1.getFullPath)(t,this.missingRef))}}Of.default=Vxe;var In={};Object.defineProperty(In,"__esModule",{value:!0});In.resolveSchema=In.getCompilingSchema=In.resolveRef=In.compileSchema=In.SchemaEnv=void 0;const Mi=Tt,Uxe=Pf,la=So,Li=sn,J6=qt,Hxe=Wi;class cg{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Li.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}In.SchemaEnv=cg;function y_(e){const t=AP.call(this,e);if(t)return t;const r=(0,Li.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Mi.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let u;e.$async&&(u=s.scopeValue("Error",{ref:Uxe.default,code:(0,Mi._)`require("ajv/dist/runtime/validation_error").default`}));const l=s.scopeName("validate");e.validateName=l;const a={gen:s,allErrors:this.opts.allErrors,data:la.default.data,parentData:la.default.parentData,parentDataProperty:la.default.parentDataProperty,dataNames:[la.default.data],dataPathArr:[Mi.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Mi.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Mi.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Mi._)`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,Hxe.validateFunctionCode)(a),s.optimize(this.opts.code.optimize);const h=s.toString();c=`${s.scopeRefs(la.default.scope)}return ${h}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const d=new Function(`${la.default.self}`,`${la.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:l,validateCode:h,scopeValues:s._values}),this.opts.unevaluated){const{props:m,items:g}=a;d.evaluated={props:m instanceof Mi.Name?void 0:m,items:g instanceof Mi.Name?void 0:g,dynamicProps:m instanceof Mi.Name,dynamicItems:g instanceof Mi.Name},d.source&&(d.source.evaluated=(0,Mi.stringify)(d.evaluated))}return e.validate=d,e}catch(h){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),h}finally{this._compilations.delete(e)}}In.compileSchema=y_;function Wxe(e,t,r){var n;r=(0,Li.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=Gxe.call(this,e,r);if(o===void 0){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;s&&(o=new cg({schema:s,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=qxe.call(this,o)}In.resolveRef=Wxe;function qxe(e){return(0,Li.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:y_.call(this,e)}function AP(e){for(const t of this._compilations)if(Kxe(t,e))return t}In.getCompilingSchema=AP;function Kxe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Gxe(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||dg.call(this,e,t)}function dg(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Li._getFullPath)(this.opts.uriResolver,r);let i=(0,Li.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Y1.call(this,r,e);const o=(0,Li.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const u=dg.call(this,e,s);return typeof(u==null?void 0:u.schema)!="object"?void 0:Y1.call(this,r,u)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||y_.call(this,s),o===(0,Li.normalizeId)(t)){const{schema:u}=s,{schemaId:l}=this.opts,a=u[l];return a&&(i=(0,Li.resolveUrl)(this.opts.uriResolver,i,a)),new cg({schema:u,schemaId:l,root:e,baseId:i})}return Y1.call(this,r,s)}}In.resolveSchema=dg;const Xxe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Y1(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const l=r[(0,J6.unescapeFragment)(u)];if(l===void 0)return;r=l;const a=typeof r=="object"&&r[this.opts.schemaId];!Xxe.has(u)&&a&&(t=(0,Li.resolveUrl)(this.opts.uriResolver,t,a))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,J6.schemaHasRulesButRef)(r,this.RULES)){const u=(0,Li.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=dg.call(this,n,u)}const{schemaId:s}=this.opts;if(o=o||new cg({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const Yxe="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Zxe="Meta-schema for $data reference (JSON AnySchema extension proposal)",Qxe="object",Jxe=["$data"],e4e={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},t4e=!1,r4e={$id:Yxe,description:Zxe,type:Qxe,required:Jxe,properties:e4e,additionalProperties:t4e};var b_={},ib={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(_t,function(r){function n(){for(var J=arguments.length,Z=Array(J),ne=0;ne1){Z[0]=Z[0].slice(0,-1);for(var he=Z.length-1,ue=1;ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=g-p,V=Math.floor,A=String.fromCharCode;function O(J){throw new RangeError(F[J])}function C(J,Z){for(var ne=[],he=J.length;he--;)ne[he]=Z(J[he]);return ne}function w(J,Z){var ne=J.split("@"),he="";ne.length>1&&(he=ne[0]+"@",J=ne[1]),J=J.replace(D,".");var ue=J.split("."),$e=C(ue,Z).join(".");return he+$e}function S(J){for(var Z=[],ne=0,he=J.length;ne=55296&&ue<=56319&&ne>1,Z+=V(Z/ne);Z>U*v>>1;ue+=g)Z=V(Z/U);return V(ue+(U+1)*Z/(Z+y))},L=function(Z){var ne=[],he=Z.length,ue=0,$e=E,Te=_,je=Z.lastIndexOf($);je<0&&(je=0);for(var Ve=0;Ve=128&&O("not-basic"),ne.push(Z.charCodeAt(Ve));for(var We=je>0?je+1:0;We=he&&O("invalid-input");var Ke=k(Z.charCodeAt(We++));(Ke>=g||Ke>V((m-ue)/ct))&&O("overflow"),ue+=Ke*ct;var yt=dt<=Te?p:dt>=Te+v?v:dt-Te;if(KeV(m/At)&&O("overflow"),ct*=At}var re=ne.length+1;Te=I(ue-Ue,re,Ue==0),V(ue/re)>m-$e&&O("overflow"),$e+=V(ue/re),ue%=re,ne.splice(ue++,0,$e)}return String.fromCodePoint.apply(String,ne)},z=function(Z){var ne=[];Z=S(Z);var he=Z.length,ue=E,$e=0,Te=_,je=!0,Ve=!1,We=void 0;try{for(var Ue=Z[Symbol.iterator](),ct;!(je=(ct=Ue.next()).done);je=!0){var dt=ct.value;dt<128&&ne.push(A(dt))}}catch(Gr){Ve=!0,We=Gr}finally{try{!je&&Ue.return&&Ue.return()}finally{if(Ve)throw We}}var Ke=ne.length,yt=Ke;for(Ke&&ne.push($);yt=ue&&MeV((m-$e)/Oe)&&O("overflow"),$e+=(At-ue)*Oe,ue=At;var ft=!0,it=!1,tt=void 0;try{for(var Ye=Z[Symbol.iterator](),Ft;!(ft=(Ft=Ye.next()).done);ft=!0){var rr=Ft.value;if(rrm&&O("overflow"),rr==ue){for(var Et=$e,Xt=g;;Xt+=g){var ur=Xt<=Te?p:Xt>=Te+v?v:Xt-Te;if(Et>6|192).toString(16).toUpperCase()+"%"+(Z&63|128).toString(16).toUpperCase():ne="%"+(Z>>12|224).toString(16).toUpperCase()+"%"+(Z>>6&63|128).toString(16).toUpperCase()+"%"+(Z&63|128).toString(16).toUpperCase(),ne}function R(J){for(var Z="",ne=0,he=J.length;ne=194&&ue<224){if(he-ne>=6){var $e=parseInt(J.substr(ne+4,2),16);Z+=String.fromCharCode((ue&31)<<6|$e&63)}else Z+=J.substr(ne,6);ne+=6}else if(ue>=224){if(he-ne>=9){var Te=parseInt(J.substr(ne+4,2),16),je=parseInt(J.substr(ne+7,2),16);Z+=String.fromCharCode((ue&15)<<12|(Te&63)<<6|je&63)}else Z+=J.substr(ne,9);ne+=9}else Z+=J.substr(ne,3),ne+=3}return Z}function H(J,Z){function ne(he){var ue=R(he);return ue.match(Z.UNRESERVED)?ue:he}return J.scheme&&(J.scheme=String(J.scheme).replace(Z.PCT_ENCODED,ne).toLowerCase().replace(Z.NOT_SCHEME,"")),J.userinfo!==void 0&&(J.userinfo=String(J.userinfo).replace(Z.PCT_ENCODED,ne).replace(Z.NOT_USERINFO,j).replace(Z.PCT_ENCODED,s)),J.host!==void 0&&(J.host=String(J.host).replace(Z.PCT_ENCODED,ne).toLowerCase().replace(Z.NOT_HOST,j).replace(Z.PCT_ENCODED,s)),J.path!==void 0&&(J.path=String(J.path).replace(Z.PCT_ENCODED,ne).replace(J.scheme?Z.NOT_PATH:Z.NOT_PATH_NOSCHEME,j).replace(Z.PCT_ENCODED,s)),J.query!==void 0&&(J.query=String(J.query).replace(Z.PCT_ENCODED,ne).replace(Z.NOT_QUERY,j).replace(Z.PCT_ENCODED,s)),J.fragment!==void 0&&(J.fragment=String(J.fragment).replace(Z.PCT_ENCODED,ne).replace(Z.NOT_FRAGMENT,j).replace(Z.PCT_ENCODED,s)),J}function K(J){return J.replace(/^0*(.*)/,"$1")||"0"}function ee(J,Z){var ne=J.match(Z.IPV4ADDRESS)||[],he=f(ne,2),ue=he[1];return ue?ue.split(".").map(K).join("."):J}function Y(J,Z){var ne=J.match(Z.IPV6ADDRESS)||[],he=f(ne,3),ue=he[1],$e=he[2];if(ue){for(var Te=ue.toLowerCase().split("::").reverse(),je=f(Te,2),Ve=je[0],We=je[1],Ue=We?We.split(":").map(K):[],ct=Ve.split(":").map(K),dt=Z.IPV4ADDRESS.test(ct[ct.length-1]),Ke=dt?7:8,yt=ct.length-Ke,At=Array(Ke),re=0;re1){var He=At.slice(0,ke.index),Me=At.slice(ke.index+ke.length);Ee=He.join(":")+"::"+Me.join(":")}else Ee=At.join(":");return $e&&(Ee+="%"+$e),Ee}else return J}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ie="".match(/(){0}/)[1]===void 0;function le(J){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne={},he=Z.iri!==!1?h:c;Z.reference==="suffix"&&(J=(Z.scheme?Z.scheme+":":"")+"//"+J);var ue=J.match(te);if(ue){ie?(ne.scheme=ue[1],ne.userinfo=ue[3],ne.host=ue[4],ne.port=parseInt(ue[5],10),ne.path=ue[6]||"",ne.query=ue[7],ne.fragment=ue[8],isNaN(ne.port)&&(ne.port=ue[5])):(ne.scheme=ue[1]||void 0,ne.userinfo=J.indexOf("@")!==-1?ue[3]:void 0,ne.host=J.indexOf("//")!==-1?ue[4]:void 0,ne.port=parseInt(ue[5],10),ne.path=ue[6]||"",ne.query=J.indexOf("?")!==-1?ue[7]:void 0,ne.fragment=J.indexOf("#")!==-1?ue[8]:void 0,isNaN(ne.port)&&(ne.port=J.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ue[4]:void 0)),ne.host&&(ne.host=Y(ee(ne.host,he),he)),ne.scheme===void 0&&ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0&&!ne.path&&ne.query===void 0?ne.reference="same-document":ne.scheme===void 0?ne.reference="relative":ne.fragment===void 0?ne.reference="absolute":ne.reference="uri",Z.reference&&Z.reference!=="suffix"&&Z.reference!==ne.reference&&(ne.error=ne.error||"URI is not a "+Z.reference+" reference.");var $e=q[(Z.scheme||ne.scheme||"").toLowerCase()];if(!Z.unicodeSupport&&(!$e||!$e.unicodeSupport)){if(ne.host&&(Z.domainHost||$e&&$e.domainHost))try{ne.host=N.toASCII(ne.host.replace(he.PCT_ENCODED,R).toLowerCase())}catch(Te){ne.error=ne.error||"Host's domain name can not be converted to ASCII via punycode: "+Te}H(ne,c)}else H(ne,he);$e&&$e.parse&&$e.parse(ne,Z)}else ne.error=ne.error||"URI can not be parsed.";return ne}function Q(J,Z){var ne=Z.iri!==!1?h:c,he=[];return J.userinfo!==void 0&&(he.push(J.userinfo),he.push("@")),J.host!==void 0&&he.push(Y(ee(String(J.host),ne),ne).replace(ne.IPV6ADDRESS,function(ue,$e,Te){return"["+$e+(Te?"%25"+Te:"")+"]"})),(typeof J.port=="number"||typeof J.port=="string")&&(he.push(":"),he.push(String(J.port))),he.length?he.join(""):void 0}var se=/^\.\.?\//,ae=/^\/\.(\/|$)/,fe=/^\/\.\.(\/|$)/,de=/^\/?(?:.|\n)*?(?=\/|$)/;function pe(J){for(var Z=[];J.length;)if(J.match(se))J=J.replace(se,"");else if(J.match(ae))J=J.replace(ae,"/");else if(J.match(fe))J=J.replace(fe,"/"),Z.pop();else if(J==="."||J==="..")J="";else{var ne=J.match(de);if(ne){var he=ne[0];J=J.slice(he.length),Z.push(he)}else throw new Error("Unexpected dot segment condition")}return Z.join("")}function ye(J){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=Z.iri?h:c,he=[],ue=q[(Z.scheme||J.scheme||"").toLowerCase()];if(ue&&ue.serialize&&ue.serialize(J,Z),J.host&&!ne.IPV6ADDRESS.test(J.host)){if(Z.domainHost||ue&&ue.domainHost)try{J.host=Z.iri?N.toUnicode(J.host):N.toASCII(J.host.replace(ne.PCT_ENCODED,R).toLowerCase())}catch(je){J.error=J.error||"Host's domain name can not be converted to "+(Z.iri?"Unicode":"ASCII")+" via punycode: "+je}}H(J,ne),Z.reference!=="suffix"&&J.scheme&&(he.push(J.scheme),he.push(":"));var $e=Q(J,Z);if($e!==void 0&&(Z.reference!=="suffix"&&he.push("//"),he.push($e),J.path&&J.path.charAt(0)!=="/"&&he.push("/")),J.path!==void 0){var Te=J.path;!Z.absolutePath&&(!ue||!ue.absolutePath)&&(Te=pe(Te)),$e===void 0&&(Te=Te.replace(/^\/\//,"/%2F")),he.push(Te)}return J.query!==void 0&&(he.push("?"),he.push(J.query)),J.fragment!==void 0&&(he.push("#"),he.push(J.fragment)),he.join("")}function we(J,Z){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=arguments[3],ue={};return he||(J=le(ye(J,ne),ne),Z=le(ye(Z,ne),ne)),ne=ne||{},!ne.tolerant&&Z.scheme?(ue.scheme=Z.scheme,ue.userinfo=Z.userinfo,ue.host=Z.host,ue.port=Z.port,ue.path=pe(Z.path||""),ue.query=Z.query):(Z.userinfo!==void 0||Z.host!==void 0||Z.port!==void 0?(ue.userinfo=Z.userinfo,ue.host=Z.host,ue.port=Z.port,ue.path=pe(Z.path||""),ue.query=Z.query):(Z.path?(Z.path.charAt(0)==="/"?ue.path=pe(Z.path):((J.userinfo!==void 0||J.host!==void 0||J.port!==void 0)&&!J.path?ue.path="/"+Z.path:J.path?ue.path=J.path.slice(0,J.path.lastIndexOf("/")+1)+Z.path:ue.path=Z.path,ue.path=pe(ue.path)),ue.query=Z.query):(ue.path=J.path,Z.query!==void 0?ue.query=Z.query:ue.query=J.query),ue.userinfo=J.userinfo,ue.host=J.host,ue.port=J.port),ue.scheme=J.scheme),ue.fragment=Z.fragment,ue}function Ce(J,Z,ne){var he=l({scheme:"null"},ne);return ye(we(le(J,he),le(Z,he),he,!0),he)}function Ie(J,Z){return typeof J=="string"?J=ye(le(J,Z),Z):o(J)==="object"&&(J=le(ye(J,Z),Z)),J}function Re(J,Z,ne){return typeof J=="string"?J=ye(le(J,ne),ne):o(J)==="object"&&(J=ye(J,ne)),typeof Z=="string"?Z=ye(le(Z,ne),ne):o(Z)==="object"&&(Z=ye(Z,ne)),J===Z}function be(J,Z){return J&&J.toString().replace(!Z||!Z.iri?c.ESCAPE:h.ESCAPE,j)}function Ae(J,Z){return J&&J.toString().replace(!Z||!Z.iri?c.PCT_ENCODED:h.PCT_ENCODED,R)}var De={scheme:"http",domainHost:!0,parse:function(Z,ne){return Z.host||(Z.error=Z.error||"HTTP URIs must have a host."),Z},serialize:function(Z,ne){var he=String(Z.scheme).toLowerCase()==="https";return(Z.port===(he?443:80)||Z.port==="")&&(Z.port=void 0),Z.path||(Z.path="/"),Z}},ze={scheme:"https",domainHost:De.domainHost,parse:De.parse,serialize:De.serialize};function Se(J){return typeof J.secure=="boolean"?J.secure:String(J.scheme).toLowerCase()==="wss"}var xe={scheme:"ws",domainHost:!0,parse:function(Z,ne){var he=Z;return he.secure=Se(he),he.resourceName=(he.path||"/")+(he.query?"?"+he.query:""),he.path=void 0,he.query=void 0,he},serialize:function(Z,ne){if((Z.port===(Se(Z)?443:80)||Z.port==="")&&(Z.port=void 0),typeof Z.secure=="boolean"&&(Z.scheme=Z.secure?"wss":"ws",Z.secure=void 0),Z.resourceName){var he=Z.resourceName.split("?"),ue=f(he,2),$e=ue[0],Te=ue[1];Z.path=$e&&$e!=="/"?$e:void 0,Z.query=Te,Z.resourceName=void 0}return Z.fragment=void 0,Z}},Pe={scheme:"wss",domainHost:xe.domainHost,parse:xe.parse,serialize:xe.serialize},Fe={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Le="[0-9A-Fa-f]",St=i(i("%[EFef]"+Le+"%"+Le+Le+"%"+Le+Le)+"|"+i("%[89A-Fa-f]"+Le+"%"+Le+Le)+"|"+i("%"+Le+Le)),Pt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Xe="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Ct=n(Xe,'[\\"\\\\]'),nt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ut=new RegExp(Be,"g"),kt=new RegExp(St,"g"),Mt=new RegExp(n("[^]",Pt,"[\\.]",'[\\"]',Ct),"g"),Je=new RegExp(n("[^]",Be,nt),"g"),$t=Je;function Dt(J){var Z=R(J);return Z.match(ut)?Z:J}var rt={scheme:"mailto",parse:function(Z,ne){var he=Z,ue=he.to=he.path?he.path.split(","):[];if(he.path=void 0,he.query){for(var $e=!1,Te={},je=he.query.split("&"),Ve=0,We=je.length;Venew RegExp(T,I);d.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),p={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function b(T){var I,L,z,B,W,N,q,j,R,H,K,ee,Y,te,ie,le,Q,se,ae,fe,de,pe,ye,we,Ce;const Ie=T.strict,Re=(I=T.code)===null||I===void 0?void 0:I.optimize,be=Re===!0||Re===void 0?1:Re||0,Ae=(z=(L=T.code)===null||L===void 0?void 0:L.regExp)!==null&&z!==void 0?z:d,De=(B=T.uriResolver)!==null&&B!==void 0?B:f.default;return{strictSchema:(N=(W=T.strictSchema)!==null&&W!==void 0?W:Ie)!==null&&N!==void 0?N:!0,strictNumbers:(j=(q=T.strictNumbers)!==null&&q!==void 0?q:Ie)!==null&&j!==void 0?j:!0,strictTypes:(H=(R=T.strictTypes)!==null&&R!==void 0?R:Ie)!==null&&H!==void 0?H:"log",strictTuples:(ee=(K=T.strictTuples)!==null&&K!==void 0?K:Ie)!==null&&ee!==void 0?ee:"log",strictRequired:(te=(Y=T.strictRequired)!==null&&Y!==void 0?Y:Ie)!==null&&te!==void 0?te:!1,code:T.code?{...T.code,optimize:be,regExp:Ae}:{optimize:be,regExp:Ae},loopRequired:(ie=T.loopRequired)!==null&&ie!==void 0?ie:y,loopEnum:(le=T.loopEnum)!==null&&le!==void 0?le:y,meta:(Q=T.meta)!==null&&Q!==void 0?Q:!0,messages:(se=T.messages)!==null&&se!==void 0?se:!0,inlineRefs:(ae=T.inlineRefs)!==null&&ae!==void 0?ae:!0,schemaId:(fe=T.schemaId)!==null&&fe!==void 0?fe:"$id",addUsedSchema:(de=T.addUsedSchema)!==null&&de!==void 0?de:!0,validateSchema:(pe=T.validateSchema)!==null&&pe!==void 0?pe:!0,validateFormats:(ye=T.validateFormats)!==null&&ye!==void 0?ye:!0,unicodeRegExp:(we=T.unicodeRegExp)!==null&&we!==void 0?we:!0,int32range:(Ce=T.int32range)!==null&&Ce!==void 0?Ce:!0,uriResolver:De}}class _{constructor(I={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,I=this.opts={...I,...b(I)};const{es5:L,lines:z}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:g,es5:L,lines:z}),this.logger=V(I.logger);const B=I.validateFormats;I.validateFormats=!1,this.RULES=(0,o.getRules)(),E.call(this,p,I,"NOT SUPPORTED"),E.call(this,v,I,"DEPRECATED","warn"),this._metaOpts=F.call(this),I.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),I.keywords&&D.call(this,I.keywords),typeof I.meta=="object"&&this.addMetaSchema(I.meta),M.call(this),I.validateFormats=B}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:I,meta:L,schemaId:z}=this.opts;let B=h;z==="id"&&(B={...h},B.id=B.$id,delete B.$id),L&&I&&this.addMetaSchema(B,B[z],!1)}defaultMeta(){const{meta:I,schemaId:L}=this.opts;return this.opts.defaultMeta=typeof I=="object"?I[L]||I:void 0}validate(I,L){let z;if(typeof I=="string"){if(z=this.getSchema(I),!z)throw new Error(`no schema with key or ref "${I}"`)}else z=this.compile(I);const B=z(L);return"$async"in z||(this.errors=z.errors),B}compile(I,L){const z=this._addSchema(I,L);return z.validate||this._compileSchemaEnv(z)}compileAsync(I,L){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return B.call(this,I,L);async function B(H,K){await W.call(this,H.$schema);const ee=this._addSchema(H,K);return ee.validate||N.call(this,ee)}async function W(H){H&&!this.getSchema(H)&&await B.call(this,{$ref:H},!0)}async function N(H){try{return this._compileSchemaEnv(H)}catch(K){if(!(K instanceof i.default))throw K;return q.call(this,K),await j.call(this,K.missingSchema),N.call(this,H)}}function q({missingSchema:H,missingRef:K}){if(this.refs[H])throw new Error(`AnySchema ${H} is loaded but ${K} cannot be resolved`)}async function j(H){const K=await R.call(this,H);this.refs[H]||await W.call(this,K.$schema),this.refs[H]||this.addSchema(K,H,L)}async function R(H){const K=this._loading[H];if(K)return K;try{return await(this._loading[H]=z(H))}finally{delete this._loading[H]}}}addSchema(I,L,z,B=this.opts.validateSchema){if(Array.isArray(I)){for(const N of I)this.addSchema(N,void 0,z,B);return this}let W;if(typeof I=="object"){const{schemaId:N}=this.opts;if(W=I[N],W!==void 0&&typeof W!="string")throw new Error(`schema ${N} must be string`)}return L=(0,l.normalizeId)(L||W),this._checkUnique(L),this.schemas[L]=this._addSchema(I,z,L,B,!0),this}addMetaSchema(I,L,z=this.opts.validateSchema){return this.addSchema(I,L,!0,z),this}validateSchema(I,L){if(typeof I=="boolean")return!0;let z;if(z=I.$schema,z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const B=this.validate(z,I);if(!B&&L){const W="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(W);else throw new Error(W)}return B}getSchema(I){let L;for(;typeof(L=$.call(this,I))=="string";)I=L;if(L===void 0){const{schemaId:z}=this.opts,B=new s.SchemaEnv({schema:{},schemaId:z});if(L=s.resolveSchema.call(this,B,I),!L)return;this.refs[I]=L}return L.validate||this._compileSchemaEnv(L)}removeSchema(I){if(I instanceof RegExp)return this._removeAllSchemas(this.schemas,I),this._removeAllSchemas(this.refs,I),this;switch(typeof I){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const L=$.call(this,I);return typeof L=="object"&&this._cache.delete(L.schema),delete this.schemas[I],delete this.refs[I],this}case"object":{const L=I;this._cache.delete(L);let z=I[this.opts.schemaId];return z&&(z=(0,l.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(I){for(const L of I)this.addKeyword(L);return this}addKeyword(I,L){let z;if(typeof I=="string")z=I,typeof L=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),L.keyword=z);else if(typeof I=="object"&&L===void 0){if(L=I,z=L.keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(O.call(this,z,L),!L)return(0,c.eachItem)(z,W=>C.call(this,W)),this;S.call(this,L);const B={...L,type:(0,a.getJSONTypes)(L.type),schemaType:(0,a.getJSONTypes)(L.schemaType)};return(0,c.eachItem)(z,B.type.length===0?W=>C.call(this,W,B):W=>B.type.forEach(N=>C.call(this,W,B,N))),this}getKeyword(I){const L=this.RULES.all[I];return typeof L=="object"?L.definition:!!L}removeKeyword(I){const{RULES:L}=this;delete L.keywords[I],delete L.all[I];for(const z of L.rules){const B=z.rules.findIndex(W=>W.keyword===I);B>=0&&z.rules.splice(B,1)}return this}addFormat(I,L){return typeof L=="string"&&(L=new RegExp(L)),this.formats[I]=L,this}errorsText(I=this.errors,{separator:L=", ",dataVar:z="data"}={}){return!I||I.length===0?"No errors":I.map(B=>`${z}${B.instancePath} ${B.message}`).reduce((B,W)=>B+L+W)}$dataMetaSchema(I,L){const z=this.RULES.all;I=JSON.parse(JSON.stringify(I));for(const B of L){const W=B.split("/").slice(1);let N=I;for(const q of W)N=N[q];for(const q in z){const j=z[q];if(typeof j!="object")continue;const{$data:R}=j.definition,H=N[q];R&&H&&(N[q]=k(H))}}return I}_removeAllSchemas(I,L){for(const z in I){const B=I[z];(!L||L.test(z))&&(typeof B=="string"?delete I[z]:B&&!B.meta&&(this._cache.delete(B.schema),delete I[z]))}}_addSchema(I,L,z,B=this.opts.validateSchema,W=this.opts.addUsedSchema){let N;const{schemaId:q}=this.opts;if(typeof I=="object")N=I[q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof I!="boolean")throw new Error("schema must be object or boolean")}let j=this._cache.get(I);if(j!==void 0)return j;z=(0,l.normalizeId)(N||z);const R=l.getSchemaRefs.call(this,I,z);return j=new s.SchemaEnv({schema:I,schemaId:q,meta:L,baseId:z,localRefs:R}),this._cache.set(j.schema,j),W&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=j),B&&this.validateSchema(I,!0),j}_checkUnique(I){if(this.schemas[I]||this.refs[I])throw new Error(`schema with key or id "${I}" already exists`)}_compileSchemaEnv(I){if(I.meta?this._compileMetaSchema(I):s.compileSchema.call(this,I),!I.validate)throw new Error("ajv implementation error");return I.validate}_compileMetaSchema(I){const L=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,I)}finally{this.opts=L}}}e.default=_,_.ValidationError=n.default,_.MissingRefError=i.default;function E(T,I,L,z="error"){for(const B in T){const W=B;W in I&&this.logger[z](`${L}: option ${B}. ${T[W]}`)}}function $(T){return T=(0,l.normalizeId)(T),this.schemas[T]||this.refs[T]}function M(){const T=this.opts.schemas;if(T)if(Array.isArray(T))this.addSchema(T);else for(const I in T)this.addSchema(T[I],I)}function P(){for(const T in this.opts.formats){const I=this.opts.formats[T];I&&this.addFormat(T,I)}}function D(T){if(Array.isArray(T)){this.addVocabulary(T);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const I in T){const L=T[I];L.keyword||(L.keyword=I),this.addKeyword(L)}}function F(){const T={...this.opts};for(const I of m)delete T[I];return T}const U={log(){},warn(){},error(){}};function V(T){if(T===!1)return U;if(T===void 0)return console;if(T.log&&T.warn&&T.error)return T;throw new Error("logger must implement log, warn and error methods")}const A=/^[a-z_$][a-z0-9_$:-]*$/i;function O(T,I){const{RULES:L}=this;if((0,c.eachItem)(T,z=>{if(L.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!A.test(z))throw new Error(`Keyword ${z} has invalid name`)}),!!I&&I.$data&&!("code"in I||"validate"in I))throw new Error('$data keyword must have "code" or "validate" function')}function C(T,I,L){var z;const B=I==null?void 0:I.post;if(L&&B)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:W}=this;let N=B?W.post:W.rules.find(({type:j})=>j===L);if(N||(N={type:L,rules:[]},W.rules.push(N)),W.keywords[T]=!0,!I)return;const q={keyword:T,definition:{...I,type:(0,a.getJSONTypes)(I.type),schemaType:(0,a.getJSONTypes)(I.schemaType)}};I.before?w.call(this,N,q,I.before):N.rules.push(q),W.all[T]=q,(z=I.implements)===null||z===void 0||z.forEach(j=>this.addKeyword(j))}function w(T,I,L){const z=T.rules.findIndex(B=>B.keyword===L);z>=0?T.rules.splice(z,0,I):(T.rules.push(I),this.logger.warn(`rule ${L} is not defined`))}function S(T){let{metaSchema:I}=T;I!==void 0&&(T.$data&&this.opts.$data&&(I=k(I)),T.validateSchema=this.compile(I,!0))}const x={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function k(T){return{anyOf:[T,x]}}})(oP);var w_={},__={},x_={};Object.defineProperty(x_,"__esModule",{value:!0});const i4e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};x_.default=i4e;var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});Wa.callRef=Wa.getValidate=void 0;const o4e=Of,e8=Ot,Pn=Tt,vl=So,t8=In,xh=qt,s4e={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:u,self:l}=n,{root:a}=o;if((r==="#"||r==="#/")&&i===a.baseId)return h();const c=t8.resolveRef.call(l,a,i,r);if(c===void 0)throw new o4e.default(n.opts.uriResolver,i,r);if(c instanceof t8.SchemaEnv)return f(c);return d(c);function h(){if(o===a)return hp(e,s,o,o.$async);const m=t.scopeValue("root",{ref:a});return hp(e,(0,Pn._)`${m}.validate`,a,a.$async)}function f(m){const g=OP(e,m);hp(e,g,m,m.$async)}function d(m){const g=t.scopeValue("schema",u.code.source===!0?{ref:m,code:(0,Pn.stringify)(m)}:{ref:m}),p=t.name("valid"),v=e.subschema({schema:m,dataTypes:[],schemaPath:Pn.nil,topSchemaRef:g,errSchemaPath:r},p);e.mergeEvaluated(v),e.ok(p)}}};function OP(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Pn._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Wa.getValidate=OP;function hp(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:u,opts:l}=o,a=l.passContext?vl.default.this:Pn.nil;n?c():h();function c(){if(!u.$async)throw new Error("async schema referenced by sync schema");const m=i.let("valid");i.try(()=>{i.code((0,Pn._)`await ${(0,e8.callValidateCode)(e,t,a)}`),d(t),s||i.assign(m,!0)},g=>{i.if((0,Pn._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),s||i.assign(m,!1)}),e.ok(m)}function h(){e.result((0,e8.callValidateCode)(e,t,a),()=>d(t),()=>f(t))}function f(m){const g=(0,Pn._)`${m}.errors`;i.assign(vl.default.vErrors,(0,Pn._)`${vl.default.vErrors} === null ? ${g} : ${vl.default.vErrors}.concat(${g})`),i.assign(vl.default.errors,(0,Pn._)`${vl.default.vErrors}.length`)}function d(m){var g;if(!o.opts.unevaluated)return;const p=(g=r==null?void 0:r.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(p&&!p.dynamicProps)p.props!==void 0&&(o.props=xh.mergeEvaluated.props(i,p.props,o.props));else{const v=i.var("props",(0,Pn._)`${m}.evaluated.props`);o.props=xh.mergeEvaluated.props(i,v,o.props,Pn.Name)}if(o.items!==!0)if(p&&!p.dynamicItems)p.items!==void 0&&(o.items=xh.mergeEvaluated.items(i,p.items,o.items));else{const v=i.var("items",(0,Pn._)`${m}.evaluated.items`);o.items=xh.mergeEvaluated.items(i,v,o.items,Pn.Name)}}}Wa.callRef=hp;Wa.default=s4e;Object.defineProperty(__,"__esModule",{value:!0});const a4e=x_,l4e=Wa,u4e=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",a4e.default,l4e.default];__.default=u4e;var S_={},k_={};Object.defineProperty(k_,"__esModule",{value:!0});const km=Tt,ys=km.operators,Cm={maximum:{okStr:"<=",ok:ys.LTE,fail:ys.GT},minimum:{okStr:">=",ok:ys.GTE,fail:ys.LT},exclusiveMaximum:{okStr:"<",ok:ys.LT,fail:ys.GTE},exclusiveMinimum:{okStr:">",ok:ys.GT,fail:ys.LTE}},c4e={message:({keyword:e,schemaCode:t})=>(0,km.str)`must be ${Cm[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,km._)`{comparison: ${Cm[e].okStr}, limit: ${t}}`},d4e={keyword:Object.keys(Cm),type:"number",schemaType:"number",$data:!0,error:c4e,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,km._)`${r} ${Cm[t].fail} ${n} || isNaN(${r})`)}};k_.default=d4e;var C_={};Object.defineProperty(C_,"__esModule",{value:!0});const ud=Tt,f4e={message:({schemaCode:e})=>(0,ud.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,ud._)`{multipleOf: ${e}}`},h4e={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:f4e,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),u=o?(0,ud._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,ud._)`${s} !== parseInt(${s})`;e.fail$data((0,ud._)`(${n} === 0 || (${s} = ${r}/${n}, ${u}))`)}};C_.default=h4e;var E_={},T_={};Object.defineProperty(T_,"__esModule",{value:!0});function MP(e){const t=e.length;let r=0,n=0,i;for(;n=55296&&i<=56319&&n(0,wa._)`{limit: ${e}}`},v4e={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:g4e,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?wa.operators.GT:wa.operators.LT,s=i.opts.unicode===!1?(0,wa._)`${r}.length`:(0,wa._)`${(0,p4e.useFunc)(e.gen,m4e.default)}(${r})`;e.fail$data((0,wa._)`${s} ${o} ${n}`)}};E_.default=v4e;var $_={};Object.defineProperty($_,"__esModule",{value:!0});const y4e=Ot,Em=Tt,b4e={message:({schemaCode:e})=>(0,Em.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Em._)`{pattern: ${e}}`},w4e={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:b4e,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",u=r?(0,Em._)`(new RegExp(${i}, ${s}))`:(0,y4e.usePattern)(e,n);e.fail$data((0,Em._)`!${u}.test(${t})`)}};$_.default=w4e;var A_={};Object.defineProperty(A_,"__esModule",{value:!0});const cd=Tt,_4e={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,cd.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,cd._)`{limit: ${e}}`},x4e={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:_4e,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?cd.operators.GT:cd.operators.LT;e.fail$data((0,cd._)`Object.keys(${r}).length ${i} ${n}`)}};A_.default=x4e;var P_={};Object.defineProperty(P_,"__esModule",{value:!0});const kc=Ot,dd=Tt,S4e=qt,k4e={message:({params:{missingProperty:e}})=>(0,dd.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,dd._)`{missingProperty: ${e}}`},C4e={keyword:"required",type:"object",schemaType:"array",$data:!0,error:k4e,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:u}=s;if(!o&&r.length===0)return;const l=r.length>=u.loopRequired;if(s.allErrors?a():c(),u.strictRequired){const d=e.parentSchema.properties,{definedProperties:m}=e.it;for(const g of r)if((d==null?void 0:d[g])===void 0&&!m.has(g)){const p=s.schemaEnv.baseId+s.errSchemaPath,v=`required property "${g}" is not defined at "${p}" (strictRequired)`;(0,S4e.checkStrictMode)(s,v,s.opts.strictRequired)}}function a(){if(l||o)e.block$data(dd.nil,h);else for(const d of r)(0,kc.checkReportMissingProp)(e,d)}function c(){const d=t.let("missing");if(l||o){const m=t.let("valid",!0);e.block$data(m,()=>f(d,m)),e.ok(m)}else t.if((0,kc.checkMissingProp)(e,r,d)),(0,kc.reportMissingProp)(e,d),t.else()}function h(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,kc.noPropertyInData)(t,i,d,u.ownProperties),()=>e.error())})}function f(d,m){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(m,(0,kc.propertyInData)(t,i,d,u.ownProperties)),t.if((0,dd.not)(m),()=>{e.error(),t.break()})},dd.nil)}}};P_.default=C4e;var O_={};Object.defineProperty(O_,"__esModule",{value:!0});const fd=Tt,E4e={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,fd.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,fd._)`{limit: ${e}}`},T4e={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:E4e,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?fd.operators.GT:fd.operators.LT;e.fail$data((0,fd._)`${r}.length ${i} ${n}`)}};O_.default=T4e;var M_={},Mf={};Object.defineProperty(Mf,"__esModule",{value:!0});const IP=hP;IP.code='require("ajv/dist/runtime/equal").default';Mf.default=IP;Object.defineProperty(M_,"__esModule",{value:!0});const Z1=Af,rn=Tt,$4e=qt,A4e=Mf,P4e={message:({params:{i:e,j:t}})=>(0,rn.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,rn._)`{i: ${e}, j: ${t}}`},O4e={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:P4e,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:u}=e;if(!n&&!i)return;const l=t.let("valid"),a=o.items?(0,Z1.getSchemaTypes)(o.items):[];e.block$data(l,c,(0,rn._)`${s} === false`),e.ok(l);function c(){const m=t.let("i",(0,rn._)`${r}.length`),g=t.let("j");e.setParams({i:m,j:g}),t.assign(l,!0),t.if((0,rn._)`${m} > 1`,()=>(h()?f:d)(m,g))}function h(){return a.length>0&&!a.some(m=>m==="object"||m==="array")}function f(m,g){const p=t.name("item"),v=(0,Z1.checkDataTypes)(a,p,u.opts.strictNumbers,Z1.DataType.Wrong),y=t.const("indices",(0,rn._)`{}`);t.for((0,rn._)`;${m}--;`,()=>{t.let(p,(0,rn._)`${r}[${m}]`),t.if(v,(0,rn._)`continue`),a.length>1&&t.if((0,rn._)`typeof ${p} == "string"`,(0,rn._)`${p} += "_"`),t.if((0,rn._)`typeof ${y}[${p}] == "number"`,()=>{t.assign(g,(0,rn._)`${y}[${p}]`),e.error(),t.assign(l,!1).break()}).code((0,rn._)`${y}[${p}] = ${m}`)})}function d(m,g){const p=(0,$4e.useFunc)(t,A4e.default),v=t.name("outer");t.label(v).for((0,rn._)`;${m}--;`,()=>t.for((0,rn._)`${g} = ${m}; ${g}--;`,()=>t.if((0,rn._)`${p}(${r}[${m}], ${r}[${g}])`,()=>{e.error(),t.assign(l,!1).break(v)})))}}};M_.default=O4e;var I_={};Object.defineProperty(I_,"__esModule",{value:!0});const ob=Tt,M4e=qt,I4e=Mf,R4e={message:"must be equal to constant",params:({schemaCode:e})=>(0,ob._)`{allowedValue: ${e}}`},j4e={keyword:"const",$data:!0,error:R4e,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,ob._)`!${(0,M4e.useFunc)(t,I4e.default)}(${r}, ${i})`):e.fail((0,ob._)`${o} !== ${r}`)}};I_.default=j4e;var R_={};Object.defineProperty(R_,"__esModule",{value:!0});const Nc=Tt,N4e=qt,D4e=Mf,F4e={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Nc._)`{allowedValues: ${e}}`},L4e={keyword:"enum",schemaType:"array",$data:!0,error:F4e,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const u=i.length>=s.opts.loopEnum;let l;const a=()=>l??(l=(0,N4e.useFunc)(t,D4e.default));let c;if(u||n)c=t.let("valid"),e.block$data(c,h);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const d=t.const("vSchema",o);c=(0,Nc.or)(...i.map((m,g)=>f(d,g)))}e.pass(c);function h(){t.assign(c,!1),t.forOf("v",o,d=>t.if((0,Nc._)`${a()}(${r}, ${d})`,()=>t.assign(c,!0).break()))}function f(d,m){const g=i[m];return typeof g=="object"&&g!==null?(0,Nc._)`${a()}(${r}, ${d}[${m}])`:(0,Nc._)`${r} === ${g}`}}};R_.default=L4e;Object.defineProperty(S_,"__esModule",{value:!0});const B4e=k_,z4e=C_,V4e=E_,U4e=$_,H4e=A_,W4e=P_,q4e=O_,K4e=M_,G4e=I_,X4e=R_,Y4e=[B4e.default,z4e.default,V4e.default,U4e.default,H4e.default,W4e.default,q4e.default,K4e.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},G4e.default,X4e.default];S_.default=Y4e;var j_={},Ju={};Object.defineProperty(Ju,"__esModule",{value:!0});Ju.validateAdditionalItems=void 0;const _a=Tt,sb=qt,Z4e={message:({params:{len:e}})=>(0,_a.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,_a._)`{limit: ${e}}`},Q4e={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Z4e,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,sb.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}RP(e,n)}};function RP(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const u=r.const("len",(0,_a._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,_a._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,sb.alwaysValidSchema)(s,n)){const a=r.var("valid",(0,_a._)`${u} <= ${t.length}`);r.if((0,_a.not)(a),()=>l(a)),e.ok(a)}function l(a){r.forRange("i",t.length,u,c=>{e.subschema({keyword:o,dataProp:c,dataPropType:sb.Type.Num},a),s.allErrors||r.if((0,_a.not)(a),()=>r.break())})}}Ju.validateAdditionalItems=RP;Ju.default=Q4e;var N_={},ec={};Object.defineProperty(ec,"__esModule",{value:!0});ec.validateTuple=void 0;const r8=Tt,pp=qt,J4e=Ot,eSe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return jP(e,"additionalItems",t);r.items=!0,!(0,pp.alwaysValidSchema)(r,t)&&e.ok((0,J4e.validateArray)(e))}};function jP(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:u}=e;c(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=pp.mergeEvaluated.items(n,r.length,u.items));const l=n.name("valid"),a=n.const("len",(0,r8._)`${o}.length`);r.forEach((h,f)=>{(0,pp.alwaysValidSchema)(u,h)||(n.if((0,r8._)`${a} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},l)),e.ok(l))});function c(h){const{opts:f,errSchemaPath:d}=u,m=r.length,g=m===h.minItems&&(m===h.maxItems||h[t]===!1);if(f.strictTuples&&!g){const p=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,pp.checkStrictMode)(u,p,f.strictTuples)}}}ec.validateTuple=jP;ec.default=eSe;Object.defineProperty(N_,"__esModule",{value:!0});const tSe=ec,rSe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,tSe.validateTuple)(e,"items")};N_.default=rSe;var D_={};Object.defineProperty(D_,"__esModule",{value:!0});const n8=Tt,nSe=qt,iSe=Ot,oSe=Ju,sSe={message:({params:{len:e}})=>(0,n8.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n8._)`{limit: ${e}}`},aSe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:sSe,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,nSe.alwaysValidSchema)(n,t)&&(i?(0,oSe.validateAdditionalItems)(e,i):e.ok((0,iSe.validateArray)(e)))}};D_.default=aSe;var F_={};Object.defineProperty(F_,"__esModule",{value:!0});const di=Tt,Sh=qt,lSe={message:({params:{min:e,max:t}})=>t===void 0?(0,di.str)`must contain at least ${e} valid item(s)`:(0,di.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,di._)`{minContains: ${e}}`:(0,di._)`{minContains: ${e}, maxContains: ${t}}`},uSe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:lSe,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let s,u;const{minContains:l,maxContains:a}=n;o.opts.next?(s=l===void 0?1:l,u=a):s=1;const c=t.const("len",(0,di._)`${i}.length`);if(e.setParams({min:s,max:u}),u===void 0&&s===0){(0,Sh.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&s>u){(0,Sh.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Sh.alwaysValidSchema)(o,r)){let g=(0,di._)`${c} >= ${s}`;u!==void 0&&(g=(0,di._)`${g} && ${c} <= ${u}`),e.pass(g);return}o.items=!0;const h=t.name("valid");u===void 0&&s===1?d(h,()=>t.if(h,()=>t.break())):s===0?(t.let(h,!0),u!==void 0&&t.if((0,di._)`${i}.length > 0`,f)):(t.let(h,!1),f()),e.result(h,()=>e.reset());function f(){const g=t.name("_valid"),p=t.let("count",0);d(g,()=>t.if(g,()=>m(p)))}function d(g,p){t.forRange("i",0,c,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:Sh.Type.Num,compositeRule:!0},g),p()})}function m(g){t.code((0,di._)`${g}++`),u===void 0?t.if((0,di._)`${g} >= ${s}`,()=>t.assign(h,!0).break()):(t.if((0,di._)`${g} > ${u}`,()=>t.assign(h,!1).break()),s===1?t.assign(h,!0):t.if((0,di._)`${g} >= ${s}`,()=>t.assign(h,!0)))}}};F_.default=uSe;var NP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Tt,r=qt,n=Ot;e.error={message:({params:{property:l,depsCount:a,deps:c}})=>{const h=a===1?"property":"properties";return(0,t.str)`must have ${h} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:a,deps:c,missingProperty:h}})=>(0,t._)`{property: ${l}, missingProperty: ${h}, depsCount: ${a}, - deps: ${c}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[a,c]=o(l);s(l,a),u(l,c)}};function o({schema:l}){const a={},c={};for(const h in l){if(h==="__proto__")continue;const f=Array.isArray(l[h])?a:c;f[h]=l[h]}return[a,c]}function s(l,a=l.schema){const{gen:c,data:h,it:f}=l;if(Object.keys(a).length===0)return;const d=c.let("missing");for(const m in a){const g=a[m];if(g.length===0)continue;const p=(0,n.propertyInData)(c,h,m,f.opts.ownProperties);l.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),f.allErrors?c.if(p,()=>{for(const v of g)(0,n.checkReportMissingProp)(l,v)}):(c.if((0,t._)`${p} && (${(0,n.checkMissingProp)(l,g,d)})`),(0,n.reportMissingProp)(l,d),c.else())}}e.validatePropertyDeps=s;function u(l,a=l.schema){const{gen:c,data:h,keyword:f,it:d}=l,m=c.name("valid");for(const g in a)(0,r.alwaysValidSchema)(d,a[g])||(c.if((0,n.propertyInData)(c,h,g,d.opts.ownProperties),()=>{const p=l.subschema({keyword:f,schemaProp:g},m);l.mergeValidEvaluated(p,m)},()=>c.var(m,!0)),l.ok(m))}e.validateSchemaDeps=u,e.default=i})(jP);var L_={};Object.defineProperty(L_,"__esModule",{value:!0});const NP=Tt,uSe=qt,cSe={message:"property name must be valid",params:({params:e})=>(0,NP._)`{propertyName: ${e.propertyName}}`},dSe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:cSe,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,uSe.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,NP.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};L_.default=dSe;var fg={};Object.defineProperty(fg,"__esModule",{value:!0});const kh=Ot,Ii=Tt,fSe=So,Ch=qt,hSe={message:"must NOT have additional properties",params:({params:e})=>(0,Ii._)`{additionalProperty: ${e.additionalProperty}}`},pSe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:hSe,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:u,opts:l}=s;if(s.props=!0,l.removeAdditional!=="all"&&(0,Ch.alwaysValidSchema)(s,r))return;const a=(0,kh.allSchemaProperties)(n.properties),c=(0,kh.allSchemaProperties)(n.patternProperties);h(),e.ok((0,Ii._)`${o} === ${fSe.default.errors}`);function h(){t.forIn("key",i,p=>{!a.length&&!c.length?m(p):t.if(f(p),()=>m(p))})}function f(p){let v;if(a.length>8){const y=(0,Ch.schemaRefOrVal)(s,n.properties,"properties");v=(0,kh.isOwnProperty)(t,y,p)}else a.length?v=(0,Ii.or)(...a.map(y=>(0,Ii._)`${p} === ${y}`)):v=Ii.nil;return c.length&&(v=(0,Ii.or)(v,...c.map(y=>(0,Ii._)`${(0,kh.usePattern)(e,y)}.test(${p})`))),(0,Ii.not)(v)}function d(p){t.code((0,Ii._)`delete ${i}[${p}]`)}function m(p){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){d(p);return}if(r===!1){e.setParams({additionalProperty:p}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,Ch.alwaysValidSchema)(s,r)){const v=t.name("valid");l.removeAdditional==="failing"?(g(p,v,!1),t.if((0,Ii.not)(v),()=>{e.reset(),d(p)})):(g(p,v),u||t.if((0,Ii.not)(v),()=>t.break()))}}function g(p,v,y){const b={keyword:"additionalProperties",dataProp:p,dataPropType:Ch.Type.Str};y===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,v)}}};fg.default=pSe;var B_={};Object.defineProperty(B_,"__esModule",{value:!0});const mSe=Wi,i8=Ot,Q1=qt,o8=fg,gSe={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&o8.default.code(new mSe.KeywordCxt(o,o8.default,"additionalProperties"));const s=(0,i8.allSchemaProperties)(r);for(const h of s)o.definedProperties.add(h);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Q1.mergeEvaluated.props(t,(0,Q1.toHash)(s),o.props));const u=s.filter(h=>!(0,Q1.alwaysValidSchema)(o,r[h]));if(u.length===0)return;const l=t.name("valid");for(const h of u)a(h)?c(h):(t.if((0,i8.propertyInData)(t,i,h,o.opts.ownProperties)),c(h),o.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(h),e.ok(l);function a(h){return o.opts.useDefaults&&!o.compositeRule&&r[h].default!==void 0}function c(h){e.subschema({keyword:"properties",schemaProp:h,dataProp:h},l)}}};B_.default=gSe;var z_={};Object.defineProperty(z_,"__esModule",{value:!0});const s8=Ot,Eh=Tt,a8=qt,l8=qt,vSe={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,u=(0,s8.allSchemaProperties)(r),l=u.filter(g=>(0,a8.alwaysValidSchema)(o,r[g]));if(u.length===0||l.length===u.length&&(!o.opts.unevaluated||o.props===!0))return;const a=s.strictSchema&&!s.allowMatchingProperties&&i.properties,c=t.name("valid");o.props!==!0&&!(o.props instanceof Eh.Name)&&(o.props=(0,l8.evaluatedPropsToName)(t,o.props));const{props:h}=o;f();function f(){for(const g of u)a&&d(g),o.allErrors?m(g):(t.var(c,!0),m(g),t.if(c))}function d(g){for(const p in a)new RegExp(g).test(p)&&(0,a8.checkStrictMode)(o,`property ${p} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){t.forIn("key",n,p=>{t.if((0,Eh._)`${(0,s8.usePattern)(e,g)}.test(${p})`,()=>{const v=l.includes(g);v||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:p,dataPropType:l8.Type.Str},c),o.opts.unevaluated&&h!==!0?t.assign((0,Eh._)`${h}[${p}]`,!0):!v&&!o.allErrors&&t.if((0,Eh.not)(c),()=>t.break())})})}}};z_.default=vSe;var V_={};Object.defineProperty(V_,"__esModule",{value:!0});const ySe=qt,bSe={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,ySe.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};V_.default=bSe;var U_={};Object.defineProperty(U_,"__esModule",{value:!0});const wSe=Ot,_Se={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:wSe.validateUnion,error:{message:"must match a schema in anyOf"}};U_.default=_Se;var H_={};Object.defineProperty(H_,"__esModule",{value:!0});const mp=Tt,xSe=qt,SSe={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,mp._)`{passingSchemas: ${e.passing}}`},kSe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:SSe,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=t.let("valid",!1),u=t.let("passing",null),l=t.name("_valid");e.setParams({passing:u}),t.block(a),e.result(s,()=>e.reset(),()=>e.error(!0));function a(){o.forEach((c,h)=>{let f;(0,xSe.alwaysValidSchema)(i,c)?t.var(l,!0):f=e.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},l),h>0&&t.if((0,mp._)`${l} && ${s}`).assign(s,!1).assign(u,(0,mp._)`[${u}, ${h}]`).else(),t.if(l,()=>{t.assign(s,!0),t.assign(u,h),f&&e.mergeEvaluated(f,mp.Name)})})}}};H_.default=kSe;var W_={};Object.defineProperty(W_,"__esModule",{value:!0});const CSe=qt,ESe={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((o,s)=>{if((0,CSe.alwaysValidSchema)(n,o))return;const u=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(u)})}};W_.default=ESe;var q_={};Object.defineProperty(q_,"__esModule",{value:!0});const Tm=Tt,DP=qt,TSe={message:({params:e})=>(0,Tm.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Tm._)`{failingKeyword: ${e.ifClause}}`},$Se={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:TSe,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,DP.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=u8(n,"then"),o=u8(n,"else");if(!i&&!o)return;const s=t.let("valid",!0),u=t.name("_valid");if(l(),e.reset(),i&&o){const c=t.let("ifClause");e.setParams({ifClause:c}),t.if(u,a("then",c),a("else",c))}else i?t.if(u,a("then")):t.if((0,Tm.not)(u),a("else"));e.pass(s,()=>e.error(!0));function l(){const c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(c)}function a(c,h){return()=>{const f=e.subschema({keyword:c},u);t.assign(s,u),e.mergeValidEvaluated(f,s),h?t.assign(h,(0,Tm._)`${c}`):e.setParams({ifClause:c})}}}};function u8(e,t){const r=e.schema[t];return r!==void 0&&!(0,DP.alwaysValidSchema)(e,r)}q_.default=$Se;var K_={};Object.defineProperty(K_,"__esModule",{value:!0});const ASe=qt,PSe={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,ASe.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};K_.default=PSe;Object.defineProperty(j_,"__esModule",{value:!0});const OSe=Ju,MSe=N_,ISe=ec,RSe=D_,jSe=F_,NSe=jP,DSe=L_,FSe=fg,LSe=B_,BSe=z_,zSe=V_,VSe=U_,USe=H_,HSe=W_,WSe=q_,qSe=K_;function KSe(e=!1){const t=[zSe.default,VSe.default,USe.default,HSe.default,WSe.default,qSe.default,DSe.default,FSe.default,NSe.default,LSe.default,BSe.default];return e?t.push(MSe.default,RSe.default):t.push(OSe.default,ISe.default),t.push(jSe.default),t}j_.default=KSe;var G_={},X_={};Object.defineProperty(X_,"__esModule",{value:!0});const jr=Tt,GSe={message:({schemaCode:e})=>(0,jr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,jr._)`{format: ${e}}`},XSe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:GSe,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:u}=e,{opts:l,errSchemaPath:a,schemaEnv:c,self:h}=u;if(!l.validateFormats)return;i?f():d();function f(){const m=r.scopeValue("formats",{ref:h.formats,code:l.code.formats}),g=r.const("fDef",(0,jr._)`${m}[${s}]`),p=r.let("fType"),v=r.let("format");r.if((0,jr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(p,(0,jr._)`${g}.type || "string"`).assign(v,(0,jr._)`${g}.validate`),()=>r.assign(p,(0,jr._)`"string"`).assign(v,g)),e.fail$data((0,jr.or)(y(),b()));function y(){return l.strictSchema===!1?jr.nil:(0,jr._)`${s} && !${v}`}function b(){const _=c.$async?(0,jr._)`(${g}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,jr._)`${v}(${n})`,E=(0,jr._)`(typeof ${v} == "function" ? ${_} : ${v}.test(${n}))`;return(0,jr._)`${v} && ${v} !== true && ${p} === ${t} && !${E}`}}function d(){const m=h.formats[o];if(!m){y();return}if(m===!0)return;const[g,p,v]=b(m);g===t&&e.pass(_());function y(){if(l.strictSchema===!1){h.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${o}" ignored in schema at path "${a}"`}}function b(E){const $=E instanceof RegExp?(0,jr.regexpCode)(E):l.code.formats?(0,jr._)`${l.code.formats}${(0,jr.getProperty)(o)}`:void 0,M=r.scopeValue("formats",{key:o,ref:E,code:$});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,jr._)`${M}.validate`]:["string",E,M]}function _(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!c.$async)throw new Error("async format in sync schema");return(0,jr._)`await ${v}(${n})`}return typeof p=="function"?(0,jr._)`${v}(${n})`:(0,jr._)`${v}.test(${n})`}}}};X_.default=XSe;Object.defineProperty(G_,"__esModule",{value:!0});const YSe=X_,ZSe=[YSe.default];G_.default=ZSe;var Au={};Object.defineProperty(Au,"__esModule",{value:!0});Au.contentVocabulary=Au.metadataVocabulary=void 0;Au.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Au.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(w_,"__esModule",{value:!0});const QSe=__,JSe=S_,e5e=j_,t5e=G_,c8=Au,r5e=[QSe.default,JSe.default,(0,e5e.default)(),t5e.default,c8.metadataVocabulary,c8.contentVocabulary];w_.default=r5e;var Y_={},FP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(FP);Object.defineProperty(Y_,"__esModule",{value:!0});const yl=Tt,ab=FP,d8=In,n5e=qt,i5e={message:({params:{discrError:e,tagName:t}})=>e===ab.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,yl._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},o5e={keyword:"discriminator",type:"object",schemaType:"object",error:i5e,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),a=t.const("tag",(0,yl._)`${r}${(0,yl.getProperty)(u)}`);t.if((0,yl._)`typeof ${a} == "string"`,()=>c(),()=>e.error(!1,{discrError:ab.DiscrError.Tag,tag:a,tagName:u})),e.ok(l);function c(){const d=f();t.if(!1);for(const m in d)t.elseIf((0,yl._)`${a} === ${m}`),t.assign(l,h(d[m]));t.else(),e.error(!1,{discrError:ab.DiscrError.Mapping,tag:a,tagName:u}),t.endIf()}function h(d){const m=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:d},m);return e.mergeEvaluated(g,yl.Name),m}function f(){var d;const m={},g=v(i);let p=!0;for(let _=0;_this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(m,u,!1),this.refs["http://json-schema.org/schema"]=u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var a=Wi;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return a.KeywordCxt}});var c=Tt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var h=Pf;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=Of;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(tb,tb.exports);var LP=tb.exports;const h5e=ir(LP);var lb={exports:{}},BP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(D,F){return{validate:D,compare:F}}e.fullFormats={date:t(o,s),time:t(l,a),"date-time":t(h,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:P,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:_},int64:{type:"number",validate:E},float:{type:"number",validate:$},double:{type:"number",validate:$},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,a),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(D){return D%4===0&&(D%100!==0||D%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(D){const F=n.exec(D);if(!F)return!1;const U=+F[1],V=+F[2],A=+F[3];return V>=1&&V<=12&&A>=1&&A<=(V===2&&r(U)?29:i[V])}function s(D,F){if(D&&F)return D>F?1:DF?1:D=y}function E(D){return Number.isInteger(D)}function $(){return!0}const M=/[^\\]\\Z/;function P(D){if(M.test(D))return!1;try{return new RegExp(D),!0}catch{return!1}}})(BP);var zP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=LP,r=Tt,n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:u,schemaCode:l})=>r.str`should be ${i[u].okStr} ${l}`,params:({keyword:u,schemaCode:l})=>r._`{comparison: ${i[u].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(u){const{gen:l,data:a,schemaCode:c,keyword:h,it:f}=u,{opts:d,self:m}=f;if(!d.validateFormats)return;const g=new t.KeywordCxt(f,m.RULES.all.format.definition,"format");g.$data?p():v();function p(){const b=l.scopeValue("formats",{ref:m.formats,code:d.code.formats}),_=l.const("fmt",r._`${b}[${g.schemaCode}]`);u.fail$data(r.or(r._`typeof ${_} != "object"`,r._`${_} instanceof RegExp`,r._`typeof ${_}.compare != "function"`,y(_)))}function v(){const b=g.schema,_=m.formats[b];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${h}": format "${b}" does not define "compare" function`);const E=l.scopeValue("formats",{key:b,ref:_,code:d.code.formats?r._`${d.code.formats}${r.getProperty(b)}`:void 0});u.fail$data(y(E))}function y(b){return r._`${b}.compare(${a}, ${c}) ${i[h].fail} 0`}},dependencies:["format"]};const s=u=>(u.addKeyword(e.formatLimitDefinition),u);e.default=s})(zP);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=BP,n=zP,i=Tt,o=new i.Name("fullFormats"),s=new i.Name("fastFormats"),u=(a,c={keywords:!0})=>{if(Array.isArray(c))return l(a,c,r.fullFormats,o),a;const[h,f]=c.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,o],d=c.formats||r.formatNames;return l(a,d,h,f),c.keywords&&n.default(a),a};u.get=(a,c="full")=>{const f=(c==="fast"?r.fastFormats:r.fullFormats)[a];if(!f)throw new Error(`Unknown format "${a}"`);return f};function l(a,c,h,f){var d,m;(d=(m=a.opts.code).formats)!==null&&d!==void 0||(m.formats=i._`require("ajv-formats/dist/formats").${f}`);for(const g of c)a.addFormat(g,h[g])}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u})(lb,lb.exports);var p5e=lb.exports;const f8=ir(p5e),m5e={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0},g5e=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,v5e=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function y5e(e,t,r={},n,i=h5e){const o=new i({...m5e,...r});return n?f8(o,n):n!==!1&&f8(o),o.addFormat("data-url",v5e),o.addFormat("color",g5e),o.addKeyword(Du),o.addKeyword(pw),Array.isArray(e)&&o.addMetaSchema(e),zi(t)&&Object.keys(t).forEach(s=>{o.addFormat(s,t[s])}),o}function b5e(e=[],t){return e.map(r=>{const{instancePath:n,keyword:i,params:o,schemaPath:s,parentSchema:u,...l}=r;let{message:a=""}=l,c=n.replace(/\//g,"."),h=`${c} ${a}`.trim();if("missingProperty"in o){c=c?`${c}.${o.missingProperty}`:o.missingProperty;const f=o.missingProperty,d=Gt(Ze(t,`${c.replace(/^\./,"")}`)).title;if(d)a=a.replace(f,d);else{const m=Ze(u,[Pr,f,"title"]);m&&(a=a.replace(f,m))}h=a}else{const f=Gt(Ze(t,`${c.replace(/^\./,"")}`)).title;if(f)h=`'${f}' ${a}`.trim();else{const d=u==null?void 0:u.title;d&&(h=`'${d}' ${a}`.trim())}}return{name:i,property:c,message:a,params:o,stack:h,schemaPath:s}})}function w5e(e,t,r,n,i,o,s){const{validationError:u}=t;let l=b5e(t.errors,s);u&&(l=[...l,{stack:u.message}]),typeof o=="function"&&(l=o(l,s));let a=h1e(l);if(u&&(a={...a,$schema:{__errors:[u.message]}}),typeof i!="function")return{errors:l,errorSchema:a};const c=G$(e,n,r,n,!0),h=i(c,My(c),s),f=nA(h);return cp({errors:l,errorSchema:a},f)}class _5e{constructor(t,r){const{additionalMetaSchemas:n,customFormats:i,ajvOptionsOverrides:o,ajvFormatOptions:s,AjvClass:u}=t;this.ajv=y5e(n,i,o,s,u),this.localizer=r}toErrorList(t,r=[]){return Kd(t,r)}rawValidation(t,r){let n,i;t[Ps]&&(i=this.ajv.getSchema(t[Ps]));try{i===void 0&&(i=this.ajv.compile(t)),i(r)}catch(s){n=s}let o;return i&&(typeof this.localizer=="function"&&this.localizer(i.errors),o=i.errors||void 0,i.errors=null),{errors:o,validationError:n}}validateFormData(t,r,n,i,o){const s=this.rawValidation(r,t);return w5e(this,s,t,r,n,i,o)}isValid(t,r,n){var i,o;const s=(i=n[Ps])!==null&&i!==void 0?i:aT;try{this.ajv.addSchema(n,s);const u=o_(t),l=(o=u[Ps])!==null&&o!==void 0?o:Qge(u);let a;return a=this.ajv.getSchema(l),a===void 0&&(a=this.ajv.addSchema(u,l).getSchema(l)||this.ajv.compile(u)),a(r)}catch(u){return console.warn("Error encountered compiling schema:",u),!1}finally{this.ajv.removeSchema(s)}}}function x5e(e={},t){return new _5e(e,t)}const S5e=x5e();var qi=(e=>(e.Header="header",e.Index="index",e.Value="value",e.Corner="corner",e))(qi||{});const k5e={head:"height",indexes:"width"},VP={head:"indexes",indexes:"head"};function J1(e){return{head:null,indexes:null,body:{height:1,width:1,rows:[{cells:[{height:1,width:1,value:e,type:"value"}],columns:[0]}]}}}function C5e(e){return(t,r)=>(t-r)/r<=e}function Pu(e,t){return e.map(r=>r+t)}function E5e(e,t){return{cells:[t].concat(e.cells),columns:[0].concat(Pu(e.columns,t.width))}}function T5e(e,t){return e.map(r=>({cells:r.cells,columns:Pu(r.columns,t)}))}function UP(e,t,r){return{cells:e.cells.concat(r.cells),columns:e.columns.concat(Pu(r.columns,t))}}const Xd=(e,t)=>e+t,Ou=(e,t)=>e>t?e:t,HP=(e,t)=>e?HP(t%e,e):t,$m=(e,t)=>e*t/HP(e,t),ti=(e,t)=>Array.from(new Array(e),(r,n)=>t(n));function WP(e){return e.width}function qP(e){return e.height}function $5e({blocks:e,lcmWidth:t,lcmHeight:r}){const n=e.map(i=>{const o=t/i.width,s=r/i.height,u=ti(r,()=>new Array(t));for(let l=0;l0),i=ti(r,()=>null);for(let s=0;s{const i=Math.floor(e/r),o={width:e,height:t,rows:i===1?n:n.map(s=>({cells:s.cells.map(u=>({...u,width:u.width*i})),columns:s.columns.map(u=>u*i)}))};return e-r*i===0?o:A5e(o)}}function P5e(e){return function(r){const n=r.map(WP),i=n.reduce($m),o=n.reduce(Ou),s=e(i,o)?i:o,u=r.map(GP(s));return{width:s,height:u.map(qP).reduce(Xd),rows:u.flatMap(l=>l.rows)}}}function XP(e){return({height:t,rows:r,width:n})=>{const i=Math.floor(e/t),o={width:n,height:e,rows:r},s=e-t*i===0;if(i===1)return s?o:h8(o);const u=ti(e,()=>({cells:[],columns:[]}));for(let l=0;l{const r=t.map(WP).reduce(Xd),n=t.map(qP),i=n.reduce($m),o=n.reduce(Ou),s=e(i,o)?i:o,u=t.map(XP(s)),l=u[0].rows;let a=u[0].width;for(let c=1;c{if(!e&&!t)return n;const s=e&&i!==null,u=t&&o!==null,l=u?o.rows.map((d,m)=>UP(d,o.width,n.rows[m])):n.rows,a=n.width+(u?o.width:0);if(!s)return{height:n.height,width:a,rows:l};const c=n.height+i.height;if(!u)return{height:c,width:a,rows:i.rows.concat(l)};const h=i.rows[0],f=[E5e(h,{height:i.height,width:o.width,value:r,type:qi.Corner}),...T5e(i.rows.slice(1),o.width),...l];return{height:c,width:a,rows:f}}}function I5e(e,t,r,n,i){const o=[];for(let s=0;s({cells:[],columns:[]})),...l.rows]});break;case"head":o.push({height:l.height,width:l.width+a.width,rows:[{cells:[{height:l.height,width:a.width,value:n,type:qi.Corner},...l.rows[0].cells],columns:[0,...Pu(l.rows[0].columns,a.width)]},...l.rows.slice(1)]});break;default:throw new Error}}return i(o)}const p8={head:"bakeHead",indexes:"bakeIndexes"},R5e={width:GP,height:XP},j5e={head:P5e,indexes:O5e};function m8({deduplicationComponent:e,isProportionalResize:t,cornerCellValue:r}){const n=j5e[e](t);return i=>{const o=VP[e],s=M5e(i,e,t),u=s===null,l=I5e(i,o,u,r,n),a=i.map(YP({[p8[e]]:u,[p8[o]]:l===null,cornerCellValue:r})),c=n(a),h=k5e[o],f=s&&R5e[h](c[h])(s);return{body:c,baked:a,[e]:f,[o]:l}}}const ub=e=>e===null||typeof e!="object";var ZP=(e=>(e.Ok="ok",e.Error="error",e))(ZP||{});function N5e(e){try{return{status:"ok",data:JSON.parse(e)}}catch(t){return{status:"error",error:t}}}function D5e(e){return typeof e=="string"}function F5e(e){return typeof e=="number"}function L5e(e){return typeof e=="object"&&e!==null}function B5e(e){return Array.isArray(e)}function z5e(e){return L5e(e)&&!B5e(e)}function ev(e){return([t,r])=>[t,e(r)]}function g8(e){const t=window.open("");return t==null||t.document.write(e),t}function QP(e){return e.replace(/[&<"']/g,function(t){switch(t){case"&":return"&";case"<":return"<";case'"':return""";default:return"'"}})}const v8=(e,t,r="")=>` + deps: ${c}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[a,c]=o(l);s(l,a),u(l,c)}};function o({schema:l}){const a={},c={};for(const h in l){if(h==="__proto__")continue;const f=Array.isArray(l[h])?a:c;f[h]=l[h]}return[a,c]}function s(l,a=l.schema){const{gen:c,data:h,it:f}=l;if(Object.keys(a).length===0)return;const d=c.let("missing");for(const m in a){const g=a[m];if(g.length===0)continue;const p=(0,n.propertyInData)(c,h,m,f.opts.ownProperties);l.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),f.allErrors?c.if(p,()=>{for(const v of g)(0,n.checkReportMissingProp)(l,v)}):(c.if((0,t._)`${p} && (${(0,n.checkMissingProp)(l,g,d)})`),(0,n.reportMissingProp)(l,d),c.else())}}e.validatePropertyDeps=s;function u(l,a=l.schema){const{gen:c,data:h,keyword:f,it:d}=l,m=c.name("valid");for(const g in a)(0,r.alwaysValidSchema)(d,a[g])||(c.if((0,n.propertyInData)(c,h,g,d.opts.ownProperties),()=>{const p=l.subschema({keyword:f,schemaProp:g},m);l.mergeValidEvaluated(p,m)},()=>c.var(m,!0)),l.ok(m))}e.validateSchemaDeps=u,e.default=i})(NP);var L_={};Object.defineProperty(L_,"__esModule",{value:!0});const DP=Tt,cSe=qt,dSe={message:"property name must be valid",params:({params:e})=>(0,DP._)`{propertyName: ${e.propertyName}}`},fSe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:dSe,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,cSe.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,DP.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};L_.default=fSe;var fg={};Object.defineProperty(fg,"__esModule",{value:!0});const kh=Ot,Ii=Tt,hSe=So,Ch=qt,pSe={message:"must NOT have additional properties",params:({params:e})=>(0,Ii._)`{additionalProperty: ${e.additionalProperty}}`},mSe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:pSe,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:u,opts:l}=s;if(s.props=!0,l.removeAdditional!=="all"&&(0,Ch.alwaysValidSchema)(s,r))return;const a=(0,kh.allSchemaProperties)(n.properties),c=(0,kh.allSchemaProperties)(n.patternProperties);h(),e.ok((0,Ii._)`${o} === ${hSe.default.errors}`);function h(){t.forIn("key",i,p=>{!a.length&&!c.length?m(p):t.if(f(p),()=>m(p))})}function f(p){let v;if(a.length>8){const y=(0,Ch.schemaRefOrVal)(s,n.properties,"properties");v=(0,kh.isOwnProperty)(t,y,p)}else a.length?v=(0,Ii.or)(...a.map(y=>(0,Ii._)`${p} === ${y}`)):v=Ii.nil;return c.length&&(v=(0,Ii.or)(v,...c.map(y=>(0,Ii._)`${(0,kh.usePattern)(e,y)}.test(${p})`))),(0,Ii.not)(v)}function d(p){t.code((0,Ii._)`delete ${i}[${p}]`)}function m(p){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){d(p);return}if(r===!1){e.setParams({additionalProperty:p}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,Ch.alwaysValidSchema)(s,r)){const v=t.name("valid");l.removeAdditional==="failing"?(g(p,v,!1),t.if((0,Ii.not)(v),()=>{e.reset(),d(p)})):(g(p,v),u||t.if((0,Ii.not)(v),()=>t.break()))}}function g(p,v,y){const b={keyword:"additionalProperties",dataProp:p,dataPropType:Ch.Type.Str};y===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,v)}}};fg.default=mSe;var B_={};Object.defineProperty(B_,"__esModule",{value:!0});const gSe=Wi,i8=Ot,Q1=qt,o8=fg,vSe={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&o8.default.code(new gSe.KeywordCxt(o,o8.default,"additionalProperties"));const s=(0,i8.allSchemaProperties)(r);for(const h of s)o.definedProperties.add(h);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Q1.mergeEvaluated.props(t,(0,Q1.toHash)(s),o.props));const u=s.filter(h=>!(0,Q1.alwaysValidSchema)(o,r[h]));if(u.length===0)return;const l=t.name("valid");for(const h of u)a(h)?c(h):(t.if((0,i8.propertyInData)(t,i,h,o.opts.ownProperties)),c(h),o.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(h),e.ok(l);function a(h){return o.opts.useDefaults&&!o.compositeRule&&r[h].default!==void 0}function c(h){e.subschema({keyword:"properties",schemaProp:h,dataProp:h},l)}}};B_.default=vSe;var z_={};Object.defineProperty(z_,"__esModule",{value:!0});const s8=Ot,Eh=Tt,a8=qt,l8=qt,ySe={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,u=(0,s8.allSchemaProperties)(r),l=u.filter(g=>(0,a8.alwaysValidSchema)(o,r[g]));if(u.length===0||l.length===u.length&&(!o.opts.unevaluated||o.props===!0))return;const a=s.strictSchema&&!s.allowMatchingProperties&&i.properties,c=t.name("valid");o.props!==!0&&!(o.props instanceof Eh.Name)&&(o.props=(0,l8.evaluatedPropsToName)(t,o.props));const{props:h}=o;f();function f(){for(const g of u)a&&d(g),o.allErrors?m(g):(t.var(c,!0),m(g),t.if(c))}function d(g){for(const p in a)new RegExp(g).test(p)&&(0,a8.checkStrictMode)(o,`property ${p} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){t.forIn("key",n,p=>{t.if((0,Eh._)`${(0,s8.usePattern)(e,g)}.test(${p})`,()=>{const v=l.includes(g);v||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:p,dataPropType:l8.Type.Str},c),o.opts.unevaluated&&h!==!0?t.assign((0,Eh._)`${h}[${p}]`,!0):!v&&!o.allErrors&&t.if((0,Eh.not)(c),()=>t.break())})})}}};z_.default=ySe;var V_={};Object.defineProperty(V_,"__esModule",{value:!0});const bSe=qt,wSe={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,bSe.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};V_.default=wSe;var U_={};Object.defineProperty(U_,"__esModule",{value:!0});const _Se=Ot,xSe={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:_Se.validateUnion,error:{message:"must match a schema in anyOf"}};U_.default=xSe;var H_={};Object.defineProperty(H_,"__esModule",{value:!0});const mp=Tt,SSe=qt,kSe={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,mp._)`{passingSchemas: ${e.passing}}`},CSe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:kSe,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=t.let("valid",!1),u=t.let("passing",null),l=t.name("_valid");e.setParams({passing:u}),t.block(a),e.result(s,()=>e.reset(),()=>e.error(!0));function a(){o.forEach((c,h)=>{let f;(0,SSe.alwaysValidSchema)(i,c)?t.var(l,!0):f=e.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},l),h>0&&t.if((0,mp._)`${l} && ${s}`).assign(s,!1).assign(u,(0,mp._)`[${u}, ${h}]`).else(),t.if(l,()=>{t.assign(s,!0),t.assign(u,h),f&&e.mergeEvaluated(f,mp.Name)})})}}};H_.default=CSe;var W_={};Object.defineProperty(W_,"__esModule",{value:!0});const ESe=qt,TSe={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((o,s)=>{if((0,ESe.alwaysValidSchema)(n,o))return;const u=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(u)})}};W_.default=TSe;var q_={};Object.defineProperty(q_,"__esModule",{value:!0});const Tm=Tt,FP=qt,$Se={message:({params:e})=>(0,Tm.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Tm._)`{failingKeyword: ${e.ifClause}}`},ASe={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:$Se,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,FP.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=u8(n,"then"),o=u8(n,"else");if(!i&&!o)return;const s=t.let("valid",!0),u=t.name("_valid");if(l(),e.reset(),i&&o){const c=t.let("ifClause");e.setParams({ifClause:c}),t.if(u,a("then",c),a("else",c))}else i?t.if(u,a("then")):t.if((0,Tm.not)(u),a("else"));e.pass(s,()=>e.error(!0));function l(){const c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(c)}function a(c,h){return()=>{const f=e.subschema({keyword:c},u);t.assign(s,u),e.mergeValidEvaluated(f,s),h?t.assign(h,(0,Tm._)`${c}`):e.setParams({ifClause:c})}}}};function u8(e,t){const r=e.schema[t];return r!==void 0&&!(0,FP.alwaysValidSchema)(e,r)}q_.default=ASe;var K_={};Object.defineProperty(K_,"__esModule",{value:!0});const PSe=qt,OSe={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,PSe.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};K_.default=OSe;Object.defineProperty(j_,"__esModule",{value:!0});const MSe=Ju,ISe=N_,RSe=ec,jSe=D_,NSe=F_,DSe=NP,FSe=L_,LSe=fg,BSe=B_,zSe=z_,VSe=V_,USe=U_,HSe=H_,WSe=W_,qSe=q_,KSe=K_;function GSe(e=!1){const t=[VSe.default,USe.default,HSe.default,WSe.default,qSe.default,KSe.default,FSe.default,LSe.default,DSe.default,BSe.default,zSe.default];return e?t.push(ISe.default,jSe.default):t.push(MSe.default,RSe.default),t.push(NSe.default),t}j_.default=GSe;var G_={},X_={};Object.defineProperty(X_,"__esModule",{value:!0});const jr=Tt,XSe={message:({schemaCode:e})=>(0,jr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,jr._)`{format: ${e}}`},YSe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:XSe,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:u}=e,{opts:l,errSchemaPath:a,schemaEnv:c,self:h}=u;if(!l.validateFormats)return;i?f():d();function f(){const m=r.scopeValue("formats",{ref:h.formats,code:l.code.formats}),g=r.const("fDef",(0,jr._)`${m}[${s}]`),p=r.let("fType"),v=r.let("format");r.if((0,jr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(p,(0,jr._)`${g}.type || "string"`).assign(v,(0,jr._)`${g}.validate`),()=>r.assign(p,(0,jr._)`"string"`).assign(v,g)),e.fail$data((0,jr.or)(y(),b()));function y(){return l.strictSchema===!1?jr.nil:(0,jr._)`${s} && !${v}`}function b(){const _=c.$async?(0,jr._)`(${g}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,jr._)`${v}(${n})`,E=(0,jr._)`(typeof ${v} == "function" ? ${_} : ${v}.test(${n}))`;return(0,jr._)`${v} && ${v} !== true && ${p} === ${t} && !${E}`}}function d(){const m=h.formats[o];if(!m){y();return}if(m===!0)return;const[g,p,v]=b(m);g===t&&e.pass(_());function y(){if(l.strictSchema===!1){h.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${o}" ignored in schema at path "${a}"`}}function b(E){const $=E instanceof RegExp?(0,jr.regexpCode)(E):l.code.formats?(0,jr._)`${l.code.formats}${(0,jr.getProperty)(o)}`:void 0,M=r.scopeValue("formats",{key:o,ref:E,code:$});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,jr._)`${M}.validate`]:["string",E,M]}function _(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!c.$async)throw new Error("async format in sync schema");return(0,jr._)`await ${v}(${n})`}return typeof p=="function"?(0,jr._)`${v}(${n})`:(0,jr._)`${v}.test(${n})`}}}};X_.default=YSe;Object.defineProperty(G_,"__esModule",{value:!0});const ZSe=X_,QSe=[ZSe.default];G_.default=QSe;var Au={};Object.defineProperty(Au,"__esModule",{value:!0});Au.contentVocabulary=Au.metadataVocabulary=void 0;Au.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Au.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(w_,"__esModule",{value:!0});const JSe=__,e5e=S_,t5e=j_,r5e=G_,c8=Au,n5e=[JSe.default,e5e.default,(0,t5e.default)(),r5e.default,c8.metadataVocabulary,c8.contentVocabulary];w_.default=n5e;var Y_={},LP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(LP);Object.defineProperty(Y_,"__esModule",{value:!0});const yl=Tt,ab=LP,d8=In,i5e=qt,o5e={message:({params:{discrError:e,tagName:t}})=>e===ab.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,yl._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},s5e={keyword:"discriminator",type:"object",schemaType:"object",error:o5e,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),a=t.const("tag",(0,yl._)`${r}${(0,yl.getProperty)(u)}`);t.if((0,yl._)`typeof ${a} == "string"`,()=>c(),()=>e.error(!1,{discrError:ab.DiscrError.Tag,tag:a,tagName:u})),e.ok(l);function c(){const d=f();t.if(!1);for(const m in d)t.elseIf((0,yl._)`${a} === ${m}`),t.assign(l,h(d[m]));t.else(),e.error(!1,{discrError:ab.DiscrError.Mapping,tag:a,tagName:u}),t.endIf()}function h(d){const m=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:d},m);return e.mergeEvaluated(g,yl.Name),m}function f(){var d;const m={},g=v(i);let p=!0;for(let _=0;_this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(m,u,!1),this.refs["http://json-schema.org/schema"]=u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var a=Wi;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return a.KeywordCxt}});var c=Tt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var h=Pf;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=Of;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(tb,tb.exports);var BP=tb.exports;const p5e=ir(BP);var lb={exports:{}},zP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(D,F){return{validate:D,compare:F}}e.fullFormats={date:t(o,s),time:t(l,a),"date-time":t(h,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:P,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:_},int64:{type:"number",validate:E},float:{type:"number",validate:$},double:{type:"number",validate:$},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,a),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(D){return D%4===0&&(D%100!==0||D%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(D){const F=n.exec(D);if(!F)return!1;const U=+F[1],V=+F[2],A=+F[3];return V>=1&&V<=12&&A>=1&&A<=(V===2&&r(U)?29:i[V])}function s(D,F){if(D&&F)return D>F?1:DF?1:D=y}function E(D){return Number.isInteger(D)}function $(){return!0}const M=/[^\\]\\Z/;function P(D){if(M.test(D))return!1;try{return new RegExp(D),!0}catch{return!1}}})(zP);var VP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=BP,r=Tt,n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:u,schemaCode:l})=>r.str`should be ${i[u].okStr} ${l}`,params:({keyword:u,schemaCode:l})=>r._`{comparison: ${i[u].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(u){const{gen:l,data:a,schemaCode:c,keyword:h,it:f}=u,{opts:d,self:m}=f;if(!d.validateFormats)return;const g=new t.KeywordCxt(f,m.RULES.all.format.definition,"format");g.$data?p():v();function p(){const b=l.scopeValue("formats",{ref:m.formats,code:d.code.formats}),_=l.const("fmt",r._`${b}[${g.schemaCode}]`);u.fail$data(r.or(r._`typeof ${_} != "object"`,r._`${_} instanceof RegExp`,r._`typeof ${_}.compare != "function"`,y(_)))}function v(){const b=g.schema,_=m.formats[b];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${h}": format "${b}" does not define "compare" function`);const E=l.scopeValue("formats",{key:b,ref:_,code:d.code.formats?r._`${d.code.formats}${r.getProperty(b)}`:void 0});u.fail$data(y(E))}function y(b){return r._`${b}.compare(${a}, ${c}) ${i[h].fail} 0`}},dependencies:["format"]};const s=u=>(u.addKeyword(e.formatLimitDefinition),u);e.default=s})(VP);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=zP,n=VP,i=Tt,o=new i.Name("fullFormats"),s=new i.Name("fastFormats"),u=(a,c={keywords:!0})=>{if(Array.isArray(c))return l(a,c,r.fullFormats,o),a;const[h,f]=c.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,o],d=c.formats||r.formatNames;return l(a,d,h,f),c.keywords&&n.default(a),a};u.get=(a,c="full")=>{const f=(c==="fast"?r.fastFormats:r.fullFormats)[a];if(!f)throw new Error(`Unknown format "${a}"`);return f};function l(a,c,h,f){var d,m;(d=(m=a.opts.code).formats)!==null&&d!==void 0||(m.formats=i._`require("ajv-formats/dist/formats").${f}`);for(const g of c)a.addFormat(g,h[g])}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u})(lb,lb.exports);var m5e=lb.exports;const f8=ir(m5e),g5e={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0},v5e=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,y5e=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function b5e(e,t,r={},n,i=p5e){const o=new i({...g5e,...r});return n?f8(o,n):n!==!1&&f8(o),o.addFormat("data-url",y5e),o.addFormat("color",v5e),o.addKeyword(Du),o.addKeyword(pw),Array.isArray(e)&&o.addMetaSchema(e),zi(t)&&Object.keys(t).forEach(s=>{o.addFormat(s,t[s])}),o}function w5e(e=[],t){return e.map(r=>{const{instancePath:n,keyword:i,params:o,schemaPath:s,parentSchema:u,...l}=r;let{message:a=""}=l,c=n.replace(/\//g,"."),h=`${c} ${a}`.trim();if("missingProperty"in o){c=c?`${c}.${o.missingProperty}`:o.missingProperty;const f=o.missingProperty,d=Gt(Ze(t,`${c.replace(/^\./,"")}`)).title;if(d)a=a.replace(f,d);else{const m=Ze(u,[Pr,f,"title"]);m&&(a=a.replace(f,m))}h=a}else{const f=Gt(Ze(t,`${c.replace(/^\./,"")}`)).title;if(f)h=`'${f}' ${a}`.trim();else{const d=u==null?void 0:u.title;d&&(h=`'${d}' ${a}`.trim())}}return{name:i,property:c,message:a,params:o,stack:h,schemaPath:s}})}function _5e(e,t,r,n,i,o,s){const{validationError:u}=t;let l=w5e(t.errors,s);u&&(l=[...l,{stack:u.message}]),typeof o=="function"&&(l=o(l,s));let a=p1e(l);if(u&&(a={...a,$schema:{__errors:[u.message]}}),typeof i!="function")return{errors:l,errorSchema:a};const c=X$(e,n,r,n,!0),h=i(c,My(c),s),f=iA(h);return cp({errors:l,errorSchema:a},f)}class x5e{constructor(t,r){const{additionalMetaSchemas:n,customFormats:i,ajvOptionsOverrides:o,ajvFormatOptions:s,AjvClass:u}=t;this.ajv=b5e(n,i,o,s,u),this.localizer=r}toErrorList(t,r=[]){return Kd(t,r)}rawValidation(t,r){let n,i;t[Ps]&&(i=this.ajv.getSchema(t[Ps]));try{i===void 0&&(i=this.ajv.compile(t)),i(r)}catch(s){n=s}let o;return i&&(typeof this.localizer=="function"&&this.localizer(i.errors),o=i.errors||void 0,i.errors=null),{errors:o,validationError:n}}validateFormData(t,r,n,i,o){const s=this.rawValidation(r,t);return _5e(this,s,t,r,n,i,o)}isValid(t,r,n){var i,o;const s=(i=n[Ps])!==null&&i!==void 0?i:lT;try{this.ajv.addSchema(n,s);const u=o_(t),l=(o=u[Ps])!==null&&o!==void 0?o:Jge(u);let a;return a=this.ajv.getSchema(l),a===void 0&&(a=this.ajv.addSchema(u,l).getSchema(l)||this.ajv.compile(u)),a(r)}catch(u){return console.warn("Error encountered compiling schema:",u),!1}finally{this.ajv.removeSchema(s)}}}function S5e(e={},t){return new x5e(e,t)}const k5e=S5e();var qi=(e=>(e.Header="header",e.Index="index",e.Value="value",e.Corner="corner",e))(qi||{});const C5e={head:"height",indexes:"width"},UP={head:"indexes",indexes:"head"};function J1(e){return{head:null,indexes:null,body:{height:1,width:1,rows:[{cells:[{height:1,width:1,value:e,type:"value"}],columns:[0]}]}}}function E5e(e){return(t,r)=>(t-r)/r<=e}function Pu(e,t){return e.map(r=>r+t)}function T5e(e,t){return{cells:[t].concat(e.cells),columns:[0].concat(Pu(e.columns,t.width))}}function $5e(e,t){return e.map(r=>({cells:r.cells,columns:Pu(r.columns,t)}))}function HP(e,t,r){return{cells:e.cells.concat(r.cells),columns:e.columns.concat(Pu(r.columns,t))}}const Xd=(e,t)=>e+t,Ou=(e,t)=>e>t?e:t,WP=(e,t)=>e?WP(t%e,e):t,$m=(e,t)=>e*t/WP(e,t),ti=(e,t)=>Array.from(new Array(e),(r,n)=>t(n));function qP(e){return e.width}function KP(e){return e.height}function A5e({blocks:e,lcmWidth:t,lcmHeight:r}){const n=e.map(i=>{const o=t/i.width,s=r/i.height,u=ti(r,()=>new Array(t));for(let l=0;l0),i=ti(r,()=>null);for(let s=0;s{const i=Math.floor(e/r),o={width:e,height:t,rows:i===1?n:n.map(s=>({cells:s.cells.map(u=>({...u,width:u.width*i})),columns:s.columns.map(u=>u*i)}))};return e-r*i===0?o:P5e(o)}}function O5e(e){return function(r){const n=r.map(qP),i=n.reduce($m),o=n.reduce(Ou),s=e(i,o)?i:o,u=r.map(XP(s));return{width:s,height:u.map(KP).reduce(Xd),rows:u.flatMap(l=>l.rows)}}}function YP(e){return({height:t,rows:r,width:n})=>{const i=Math.floor(e/t),o={width:n,height:e,rows:r},s=e-t*i===0;if(i===1)return s?o:h8(o);const u=ti(e,()=>({cells:[],columns:[]}));for(let l=0;l{const r=t.map(qP).reduce(Xd),n=t.map(KP),i=n.reduce($m),o=n.reduce(Ou),s=e(i,o)?i:o,u=t.map(YP(s)),l=u[0].rows;let a=u[0].width;for(let c=1;c{if(!e&&!t)return n;const s=e&&i!==null,u=t&&o!==null,l=u?o.rows.map((d,m)=>HP(d,o.width,n.rows[m])):n.rows,a=n.width+(u?o.width:0);if(!s)return{height:n.height,width:a,rows:l};const c=n.height+i.height;if(!u)return{height:c,width:a,rows:i.rows.concat(l)};const h=i.rows[0],f=[T5e(h,{height:i.height,width:o.width,value:r,type:qi.Corner}),...$5e(i.rows.slice(1),o.width),...l];return{height:c,width:a,rows:f}}}function R5e(e,t,r,n,i){const o=[];for(let s=0;s({cells:[],columns:[]})),...l.rows]});break;case"head":o.push({height:l.height,width:l.width+a.width,rows:[{cells:[{height:l.height,width:a.width,value:n,type:qi.Corner},...l.rows[0].cells],columns:[0,...Pu(l.rows[0].columns,a.width)]},...l.rows.slice(1)]});break;default:throw new Error}}return i(o)}const p8={head:"bakeHead",indexes:"bakeIndexes"},j5e={width:XP,height:YP},N5e={head:O5e,indexes:M5e};function m8({deduplicationComponent:e,isProportionalResize:t,cornerCellValue:r}){const n=N5e[e](t);return i=>{const o=UP[e],s=I5e(i,e,t),u=s===null,l=R5e(i,o,u,r,n),a=i.map(ZP({[p8[e]]:u,[p8[o]]:l===null,cornerCellValue:r})),c=n(a),h=C5e[o],f=s&&j5e[h](c[h])(s);return{body:c,baked:a,[e]:f,[o]:l}}}const ub=e=>e===null||typeof e!="object";var QP=(e=>(e.Ok="ok",e.Error="error",e))(QP||{});function D5e(e){try{return{status:"ok",data:JSON.parse(e)}}catch(t){return{status:"error",error:t}}}function F5e(e){return typeof e=="string"}function L5e(e){return typeof e=="number"}function B5e(e){return typeof e=="object"&&e!==null}function z5e(e){return Array.isArray(e)}function g8(e){return B5e(e)&&!z5e(e)}function ev(e){return([t,r])=>[t,e(r)]}function v8(e){const t=window.open("");return t==null||t.document.write(e),t}function JP(e){return e.replace(/[&<"']/g,function(t){switch(t){case"&":return"&";case"<":return"<";case'"':return""";default:return"'"}})}const y8=(e,t,r="")=>` @@ -395,9 +395,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t} -`,V5e="table, th, td {border: 1px solid black; border-collapse: collapse;} th, td {padding: 5px; text-align: left;} th:has(> b), td:has(> b) {text-align: center;}";function y8(e){return`${e.rows.map(t=>`${t.cells.map(r=>{const n=typeof r.value=="string"?QP(r.value):r.value;return``}).join(` +`,V5e="table, th, td {border: 1px solid black; border-collapse: collapse;} th, td {padding: 5px; text-align: left;} th:has(> b), td:has(> b) {text-align: center;}";function b8(e){return`
${r.type!==qi.Value?`${n}`:n}
${e.rows.map(t=>`${t.cells.map(r=>{const n=typeof r.value=="string"?JP(r.value):r.value;return``}).join(` `)}`).join(` -`)}
${r.type!==qi.Value?`${n}`:n}
`}function U5e(e){return e.length>1?e.map(([t,r])=>`

${t}

${y8(r)}`).join("
"):y8(e[0][1])}function Th(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var JP={exports:{}};/*! ExcelJS 19-10-2023 */(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function s(a,c){if(!i[a]){if(!n[a]){var h=typeof Th=="function"&&Th;if(!c&&h)return h(a,!0);if(u)return u(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var d=i[a]={exports:{}};n[a][0].call(d.exports,function(m){return s(n[a][1][m]||m)},d,d.exports,r,n,i,o)}return i[a].exports}for(var u=typeof Th=="function"&&Th,l=0;l{const v=this.workbook.addWorksheet(m.sheetName),y=m.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],b=m.map||function(E){if(E==="")return null;const $=Number(E);if(!Number.isNaN($)&&$!==1/0)return $;const M=y.reduce((D,F)=>{if(D)return D;const U=a(E,F,!0);return U.isValid()?U:null},null);if(M)return new Date(M.valueOf());const P=f[E];return P!==void 0?P:E},_=s.parse(m.parserOptions).on("data",E=>{v.addRow(E.map(b))}).on("end",()=>{_.emit("worksheet",v)});_.on("worksheet",g).on("error",p),d.pipe(_)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(d,m){return new Promise((g,p)=>{m=m||{};const v=this.workbook.getWorksheet(m.sheetName||m.sheetId),y=s.format(m.formatterOptions);d.on("finish",()=>{g()}),y.on("error",p),y.pipe(d);const{dateFormat:b,dateUTC:_}=m,E=m.map||(P=>{if(P){if(P.text||P.hyperlink)return P.hyperlink||P.text||"";if(P.formula||P.result)return P.result||"";if(P instanceof Date)return b?_?a.utc(P).format(b):a(P).format(b):_?a.utc(P).format():a(P).format();if(P.error)return P.error;if(typeof P=="object")return JSON.stringify(P)}return P}),$=m.includeEmptyRows===void 0||m.includeEmptyRows;let M=1;v&&v.eachRow((P,D)=>{if($)for(;M++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=l,a)if(typeof a=="string"){const h=o.decodeAddress(a);this.nativeCol=h.col+c,this.nativeColOff=0,this.nativeRow=h.row+c,this.nativeRowOff=0}else a.nativeCol!==void 0?(this.nativeCol=a.nativeCol||0,this.nativeColOff=a.nativeColOff||0,this.nativeRow=a.nativeRow||0,this.nativeRowOff=a.nativeRowOff||0):a.col!==void 0?(this.col=a.col+c,this.row=a.row+c):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(l){return l instanceof s||l==null?l:new s(l)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(l){this.nativeCol=Math.floor(l),this.nativeColOff=Math.floor((l-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(l){this.nativeRow=Math.floor(l),this.nativeRowOff=Math.floor((l-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(l){this.nativeCol=l.nativeCol,this.nativeColOff=l.nativeColOff,this.nativeRow=l.nativeRow,this.nativeRowOff=l.nativeRowOff}}n.exports=s},{"../utils/col-cache":19}],3:[function(r,n,i){const o=r("../utils/col-cache"),s=r("../utils/under-dash"),u=r("./enums"),{slideFormula:l}=r("../utils/shared-formula"),a=r("./note");class c{constructor(d,m,g){if(!d||!m)throw new Error("A Cell needs a Row");this._row=d,this._column=m,o.validateAddress(g),this._address=g,this._value=h.create(c.Types.Null,this),this.style=this._mergeStyle(d.style,m.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(d){this.style.numFmt=d}get font(){return this.style.font}set font(d){this.style.font=d}get alignment(){return this.style.alignment}set alignment(d){this.style.alignment=d}get border(){return this.style.border}set border(d){this.style.border=d}get fill(){return this.style.fill}set fill(d){this.style.fill=d}get protection(){return this.style.protection}set protection(d){this.style.protection=d}_mergeStyle(d,m,g){const p=d&&d.numFmt||m&&m.numFmt;p&&(g.numFmt=p);const v=d&&d.font||m&&m.font;v&&(g.font=v);const y=d&&d.alignment||m&&m.alignment;y&&(g.alignment=y);const b=d&&d.border||m&&m.border;b&&(g.border=b);const _=d&&d.fill||m&&m.fill;_&&(g.fill=_);const E=d&&d.protection||m&&m.protection;return E&&(g.protection=E),g}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===c.Types.Merge}merge(d,m){this._value.release(),this._value=h.create(c.Types.Merge,this,d),m||(this.style=d.style)}unmerge(){this.type===c.Types.Merge&&(this._value.release(),this._value=h.create(c.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(d){return this._value.type===c.Types.Merge&&this._value.isMergedTo(d)}get master(){return this.type===c.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===c.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(d){this.type!==c.Types.Merge?(this._value.release(),this._value=h.create(h.getType(d),this,d)):this._value.master.value=d}get note(){return this._comment&&this._comment.note}set note(d){this._comment=new a(d)}get text(){return this._value.toString()}get html(){return s.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(d){this.type===c.Types.String&&(this._value=h.create(c.Types.Hyperlink,this,{text:this._value.value,hyperlink:d}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:d}=this._row;return{sheetName:d.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(d){this.names=[d]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(d){const{definedNames:m}=this.workbook;m.removeAllNames(this.fullAddress),d.forEach(g=>{m.addEx(this.fullAddress,g)})}addName(d){this.workbook.definedNames.addEx(this.fullAddress,d)}removeName(d){this.workbook.definedNames.removeEx(this.fullAddress,d)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(d){this._dataValidations.add(this.address,d)}get model(){const{model:d}=this._value;return d.style=this.style,this._comment&&(d.comment=this._comment.model),d}set model(d){if(this._value.release(),this._value=h.create(d.type,this),this._value.model=d,d.comment)switch(d.comment.type){case"note":this._comment=a.fromModel(d.comment)}d.style?this.style=d.style:this.style={}}}c.Types=u.ValueType;const h={getType:f=>f==null?c.Types.Null:f instanceof String||typeof f=="string"?c.Types.String:typeof f=="number"?c.Types.Number:typeof f=="boolean"?c.Types.Boolean:f instanceof Date?c.Types.Date:f.text&&f.hyperlink?c.Types.Hyperlink:f.formula||f.sharedFormula?c.Types.Formula:f.richText?c.Types.RichText:f.sharedString?c.Types.SharedString:f.error?c.Types.Error:c.Types.JSON,types:[{t:c.Types.Null,f:class{constructor(f){this.model={address:f.address,type:c.Types.Null}}get value(){return null}set value(f){}get type(){return c.Types.Null}get effectiveType(){return c.Types.Null}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return""}release(){}toString(){return""}}},{t:c.Types.Number,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Number,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.Number}get effectiveType(){return c.Types.Number}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.String,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.String,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:c.Types.Date,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Date,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.Date}get effectiveType(){return c.Types.Date}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Hyperlink,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Hyperlink,text:d?d.text:void 0,hyperlink:d?d.hyperlink:void 0},d&&d.tooltip&&(this.model.tooltip=d.tooltip)}get value(){const f={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(f.tooltip=this.model.tooltip),f}set value(f){this.model={text:f.text,hyperlink:f.hyperlink},f.tooltip&&(this.model.tooltip=f.tooltip)}get text(){return this.model.text}set text(f){this.model.text=f}get hyperlink(){return this.model.hyperlink}set hyperlink(f){this.model.hyperlink=f}get type(){return c.Types.Hyperlink}get effectiveType(){return c.Types.Hyperlink}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:c.Types.Formula,f:class{constructor(f,d){this.cell=f,this.model={address:f.address,type:c.Types.Formula,shareType:d?d.shareType:void 0,ref:d?d.ref:void 0,formula:d?d.formula:void 0,sharedFormula:d?d.sharedFormula:void 0,result:d?d.result:void 0}}_copyModel(f){const d={},m=g=>{const p=f[g];p&&(d[g]=p)};return m("formula"),m("result"),m("ref"),m("shareType"),m("sharedFormula"),d}get value(){return this._copyModel(this.model)}set value(f){this.model=this._copyModel(f)}validate(f){switch(h.getType(f)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(f){this.model.formula=f}get formulaType(){return this.model.formula?u.FormulaType.Master:this.model.sharedFormula?u.FormulaType.Shared:u.FormulaType.None}get result(){return this.model.result}set result(f){this.model.result=f}get type(){return c.Types.Formula}get effectiveType(){const f=this.model.result;return f==null?u.ValueType.Null:f instanceof String||typeof f=="string"?u.ValueType.String:typeof f=="number"?u.ValueType.Number:f instanceof Date?u.ValueType.Date:f.text&&f.hyperlink?u.ValueType.Hyperlink:f.formula?u.ValueType.Formula:u.ValueType.Null}get address(){return this.model.address}set address(f){this.model.address=f}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:f}=this.cell,d=f.findCell(this.model.sharedFormula);this._translatedFormula=d&&l(d.formula,d.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:c.Types.Merge,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Merge,master:d?d.address:void 0},this._master=d,d&&d.addMergeRef()}get value(){return this._master.value}set value(f){f instanceof c?(this._master&&this._master.releaseMergeRef(),f.addMergeRef(),this._master=f):this._master.value=f}isMergedTo(f){return f===this._master}get master(){return this._master}get type(){return c.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:c.Types.JSON,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.String,value:JSON.stringify(d),rawValue:d}}get value(){return this.model.rawValue}set value(f){this.model.rawValue=f,this.model.value=JSON.stringify(f)}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:c.Types.SharedString,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.SharedString,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.SharedString}get effectiveType(){return c.Types.SharedString}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.RichText,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.String,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}toString(){return this.model.value.richText.map(f=>f.text).join("")}get type(){return c.Types.RichText}get effectiveType(){return c.Types.RichText}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:c.Types.Boolean,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Boolean,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.Boolean}get effectiveType(){return c.Types.Boolean}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Error,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Error,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.Error}get effectiveType(){return c.Types.Error}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((f,d)=>(f[d.t]=d.f,f),[]),create(f,d,m){const g=this.types[f];if(!g)throw new Error("Could not create Value of type "+f);return new g(d,m)}};n.exports=c},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(r,n,i){const o=r("../utils/under-dash"),s=r("./enums"),u=r("../utils/col-cache");class l{constructor(c,h,f){this._worksheet=c,this._number=h,f!==!1&&(this.defn=f)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return u.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(c){c?(this.key=c.key,this.width=c.width!==void 0?c.width:9,this.outlineLevel=c.outlineLevel,c.style?this.style=c.style:this.style={},this.header=c.header,this._hidden=!!c.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(c){c!==void 0?(this._header=c,this.headers.forEach((h,f)=>{this._worksheet.getCell(f+1,this.number).value=h})):this._header=void 0}get key(){return this._key}set key(c){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=c,c&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(c){this._hidden=c}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(c){this._outlineLevel=c}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(c){return this.width===c.width&&this.hidden===c.hidden&&this.outlineLevel===c.outlineLevel&&o.isEqual(this.style,c.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const c=this.style;return!c||!(c.font||c.numFmt||c.alignment||c.border||c.fill||c.protection)}get headerCount(){return this.headers.length}eachCell(c,h){const f=this.number;h||(h=c,c=null),this._worksheet.eachRow(c,(d,m)=>{h(d.getCell(f),m)})}get values(){const c=[];return this.eachCell((h,f)=>{h&&h.type!==s.ValueType.Null&&(c[f]=h.value)}),c}set values(c){if(!c)return;const h=this.number;let f=0;c.hasOwnProperty("0")&&(f=1),c.forEach((d,m)=>{this._worksheet.getCell(m+f,h).value=d})}_applyStyle(c,h){return this.style[c]=h,this.eachCell(f=>{f[c]=h}),h}get numFmt(){return this.style.numFmt}set numFmt(c){this._applyStyle("numFmt",c)}get font(){return this.style.font}set font(c){this._applyStyle("font",c)}get alignment(){return this.style.alignment}set alignment(c){this._applyStyle("alignment",c)}get protection(){return this.style.protection}set protection(c){this._applyStyle("protection",c)}get border(){return this.style.border}set border(c){this._applyStyle("border",c)}get fill(){return this.style.fill}set fill(c){this._applyStyle("fill",c)}static toModel(c){const h=[];let f=null;return c&&c.forEach((d,m)=>{d.isDefault?f&&(f=null):f&&d.equivalentTo(f)?f.max=m+1:(f={min:m+1,max:m+1,width:d.width!==void 0?d.width:9,style:d.style,isCustomWidth:d.isCustomWidth,hidden:d.hidden,outlineLevel:d.outlineLevel,collapsed:d.collapsed},h.push(f))}),h.length?h:void 0}static fromModel(c,h){const f=[];let d=1,m=0;for(h=(h=h||[]).sort(function(g,p){return g.min-p.min});m{h.removeCellEx(c)})}forEach(c){o.each(this.matrixMap,(h,f)=>{h.forEach(d=>{c(f,d)})})}getNames(c){return this.getNamesEx(s.decodeEx(c))}getNamesEx(c){return o.map(this.matrixMap,(h,f)=>h.findCellEx(c)&&f).filter(Boolean)}_explore(c,h){h.mark=!1;const{sheetName:f}=h,d=new l(h.row,h.col,h.row,h.col,f);let m,g;function p(y,b){const _=c.findCellAt(f,y,h.col);return!(!_||!_.mark)&&(d[b]=y,_.mark=!1,!0)}for(g=h.row-1;p(g,"top");g--);for(g=h.row+1;p(g,"bottom");g++);function v(y,b){const _=[];for(g=d.top;g<=d.bottom;g++){const E=c.findCellAt(f,g,y);if(!E||!E.mark)return!1;_.push(E)}d[b]=y;for(let E=0;E<_.length;E++)_[E].mark=!1;return!0}for(m=h.col-1;v(m,"left");m--);for(m=h.col+1;v(m,"right");m++);return d}getRanges(c,h){return(h=h||this.matrixMap[c])?(h.forEach(f=>{f.mark=!0}),{name:c,ranges:h.map(f=>f.mark&&this._explore(h,f)).filter(Boolean).map(f=>f.$shortRange)}):{name:c,ranges:[]}}normaliseMatrix(c,h){c.forEachInSheet(h,(f,d,m)=>{f&&(f.row===d&&f.col===m||(f.row=d,f.col=m,f.address=s.n2l(m)+d))})}spliceRows(c,h,f,d){o.each(this.matrixMap,m=>{m.spliceRows(c,h,f,d),this.normaliseMatrix(m,c)})}spliceColumns(c,h,f,d){o.each(this.matrixMap,m=>{m.spliceColumns(c,h,f,d),this.normaliseMatrix(m,c)})}get model(){return o.map(this.matrixMap,(c,h)=>this.getRanges(h,c)).filter(c=>c.ranges.length)}set model(c){const h=this.matrixMap={};c.forEach(f=>{const d=h[f.name]=new u;f.ranges.forEach(m=>{a.test(m.split("!").pop()||"")&&d.addCell(m)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(r,n,i){n.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(r,n,i){const o=r("../utils/col-cache"),s=r("./anchor");n.exports=class{constructor(u,l){this.worksheet=u,this.model=l}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(u){let{type:l,imageId:a,range:c,hyperlinks:h}=u;if(this.type=l,this.imageId=a,l==="image")if(typeof c=="string"){const f=o.decode(c);this.range={tl:new s(this.worksheet,{col:f.left,row:f.top},-1),br:new s(this.worksheet,{col:f.right,row:f.bottom},0),editAs:"oneCell"}}else this.range={tl:new s(this.worksheet,c.tl,0),br:c.br&&new s(this.worksheet,c.br,0),ext:c.ext,editAs:c.editAs,hyperlinks:h||c.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(r,n,i){const o=r("../utils/under-dash");class s{constructor(l){this.note=l}get model(){let l=null;switch(typeof this.note){case"string":l={type:"note",note:{texts:[{text:this.note}]}};break;default:l={type:"note",note:this.note}}return o.deepMerge({},s.DEFAULT_CONFIGS,l)}set model(l){const{note:a}=l,{texts:c}=a;c.length===1&&Object.keys(c[0]).length===1?this.note=c[0].text:this.note=a}static fromModel(l){const a=new s;return a.model=l,a}}s.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},n.exports=s},{"../utils/under-dash":26}],10:[function(r,n,i){const o=r("../utils/col-cache");class s{constructor(){this.decode(arguments)}setTLBR(l,a,c,h,f){if(arguments.length<4){const d=o.decodeAddress(l),m=o.decodeAddress(a);this.model={top:Math.min(d.row,m.row),left:Math.min(d.col,m.col),bottom:Math.max(d.row,m.row),right:Math.max(d.col,m.col),sheetName:c},this.setTLBR(d.row,d.col,m.row,m.col,f)}else this.model={top:Math.min(l,c),left:Math.min(a,h),bottom:Math.max(l,c),right:Math.max(a,h),sheetName:f}}decode(l){switch(l.length){case 5:this.setTLBR(l[0],l[1],l[2],l[3],l[4]);break;case 4:this.setTLBR(l[0],l[1],l[2],l[3]);break;case 3:this.setTLBR(l[0],l[1],l[2]);break;case 2:this.setTLBR(l[0],l[1]);break;case 1:{const a=l[0];if(a instanceof s)this.model={top:a.model.top,left:a.model.left,bottom:a.model.bottom,right:a.model.right,sheetName:a.sheetName};else if(a instanceof Array)this.decode(a);else if(a.top&&a.left&&a.bottom&&a.right)this.model={top:a.top,left:a.left,bottom:a.bottom,right:a.right,sheetName:a.sheetName};else{const c=o.decodeEx(a);c.top?this.model={top:c.top,left:c.left,bottom:c.bottom,right:c.right,sheetName:c.sheetName}:this.model={top:c.row,left:c.col,bottom:c.row,right:c.col,sheetName:c.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+l.length)}}get top(){return this.model.top||1}set top(l){this.model.top=l}get left(){return this.model.left||1}set left(l){this.model.left=l}get bottom(){return this.model.bottom||1}set bottom(l){this.model.bottom=l}get right(){return this.model.right||1}set right(l){this.model.right=l}get sheetName(){return this.model.sheetName}set sheetName(l){this.model.sheetName=l}get _serialisedSheetName(){const{sheetName:l}=this.model;return l?/^[a-zA-Z0-9]*$/.test(l)?l+"!":`'${l}'!`:""}expand(l,a,c,h){(!this.model.top||lthis.bottom)&&(this.bottom=c),(!this.model.right||h>this.right)&&(this.right=h)}expandRow(l){if(l){const{dimensions:a,number:c}=l;a&&this.expand(c,a.min,c,a.max)}}expandToAddress(l){const a=o.decodeEx(l);this.expand(a.row,a.col,a.row,a.col)}get tl(){return o.n2l(this.left)+this.top}get $t$l(){return`$${o.n2l(this.left)}$${this.top}`}get br(){return o.n2l(this.right)+this.bottom}get $b$r(){return`$${o.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(l){return(!l.sheetName||!this.sheetName||l.sheetName===this.sheetName)&&!(l.bottomthis.bottom)&&!(l.rightthis.right)}contains(l){const a=o.decodeEx(l);return this.containsEx(a)}containsEx(l){return(!l.sheetName||!this.sheetName||l.sheetName===this.sheetName)&&l.row>=this.top&&l.row<=this.bottom&&l.col>=this.left&&l.col<=this.right}forEachAddress(l){for(let a=this.left;a<=this.right;a++)for(let c=this.top;c<=this.bottom;c++)l(o.encodeAddress(c,a),c,a)}}n.exports=s},{"../utils/col-cache":19}],11:[function(r,n,i){const o=r("../utils/under-dash"),s=r("./enums"),u=r("../utils/col-cache"),l=r("./cell");n.exports=class{constructor(a,c){this._worksheet=a,this._number=c,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(a){return this._cells[a-1]}getCellEx(a){let c=this._cells[a.col-1];if(!c){const h=this._worksheet.getColumn(a.col);c=new l(this,h,a.address),this._cells[a.col-1]=c}return c}getCell(a){if(typeof a=="string"){const c=this._worksheet.getColumnKey(a);a=c?c.number:u.l2n(a)}return this._cells[a-1]||this.getCellEx({address:u.encodeAddress(this._number,a),row:this._number,col:a})}splice(a,c){const h=a+c;for(var f=arguments.length,d=new Array(f>2?f-2:0),m=2;m0)for(v=p;v>=h;v--)y=this._cells[v-1],y?(b=this.getCell(v+g),b.value=y.value,b.style=y.style,b._comment=y._comment):this._cells[v+g-1]=void 0;for(v=0;v{h&&h.type!==s.ValueType.Null&&c(h,f+1)})}addPageBreak(a,c){const h=this._worksheet,f=Math.max(0,a-1)||0,d=Math.max(0,c-1)||16838,m={id:this._number,max:d,man:1};f&&(m.min=f),h.rowBreaks.push(m)}get values(){const a=[];return this._cells.forEach(c=>{c&&c.type!==s.ValueType.Null&&(a[c.col]=c.value)}),a}set values(a){if(this._cells=[],a)if(a instanceof Array){let c=0;a.hasOwnProperty("0")&&(c=1),a.forEach((h,f)=>{h!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,f+c),row:this._number,col:f+c}).value=h)})}else this._worksheet.eachColumnKey((c,h)=>{a[h]!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,c.number),row:this._number,col:c.number}).value=a[h])})}get hasValues(){return o.some(this._cells,a=>a&&a.type!==s.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let a=0;return this.eachCell(()=>{a++}),a}get dimensions(){let a=0,c=0;return this._cells.forEach(h=>{h&&h.type!==s.ValueType.Null&&((!a||a>h.col)&&(a=h.col),c0?{min:a,max:c}:null}_applyStyle(a,c){return this.style[a]=c,this._cells.forEach(h=>{h&&(h[a]=c)}),c}get numFmt(){return this.style.numFmt}set numFmt(a){this._applyStyle("numFmt",a)}get font(){return this.style.font}set font(a){this._applyStyle("font",a)}get alignment(){return this.style.alignment}set alignment(a){this._applyStyle("alignment",a)}get protection(){return this.style.protection}set protection(a){this._applyStyle("protection",a)}get border(){return this.style.border}set border(a){this._applyStyle("border",a)}get fill(){return this.style.fill}set fill(a){this._applyStyle("fill",a)}get hidden(){return!!this._hidden}set hidden(a){this._hidden=a}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(a){this._outlineLevel=a}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const a=[];let c=0,h=0;return this._cells.forEach(f=>{if(f){const d=f.model;d&&((!c||c>f.col)&&(c=f.col),h{switch(h.type){case l.Types.Merge:break;default:{let f;if(h.address)f=u.decodeAddress(h.address);else if(c){const{row:d}=c,m=c.col+1;f={row:d,col:m,address:u.encodeAddress(d,m),$col$row:`$${u.n2l(m)}$${d}`}}c=f,this.getCellEx(f).model=h;break}}}),a.height?this.height=a.height:delete this.height,this.hidden=a.hidden,this.outlineLevel=a.outlineLevel||0,this.style=a.style&&JSON.parse(JSON.stringify(a.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(r,n,i){const o=r("../utils/col-cache");class s{constructor(l,a,c){this.table=l,this.column=a,this.index=c}_set(l,a){this.table.cacheState(),this.column[l]=a}get name(){return this.column.name}set name(l){this._set("name",l)}get filterButton(){return this.column.filterButton}set filterButton(l){this.column.filterButton=l}get style(){return this.column.style}set style(l){this.column.style=l}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(l){this._set("totalsRowLabel",l)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(l){this._set("totalsRowFunction",l)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(l){this._set("totalsRowResult",l)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(l){this._set("totalsRowFormula",l)}}n.exports=class{constructor(u,l){this.worksheet=u,l&&(this.table=l,this.validate(),this.store())}getFormula(u){switch(u.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${u.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${u.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${u.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${u.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${u.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${u.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${u.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${u.name}])`;case"custom":return u.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+u.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:u}=this,l=(g,p,v)=>{g[p]===void 0&&(g[p]=v)};l(u,"headerRow",!0),l(u,"totalsRow",!1),l(u,"style",{}),l(u.style,"theme","TableStyleMedium2"),l(u.style,"showFirstColumn",!1),l(u.style,"showLastColumn",!1),l(u.style,"showRowStripes",!1),l(u.style,"showColumnStripes",!1);const a=(g,p)=>{if(!g)throw new Error(p)};a(u.ref,"Table must have ref"),a(u.columns,"Table must have column definitions"),a(u.rows,"Table must have row definitions"),u.tl=o.decodeAddress(u.ref);const{row:c,col:h}=u.tl;a(c>0,"Table must be on valid row"),a(h>0,"Table must be on valid col");const{width:f,filterHeight:d,tableHeight:m}=this;u.autoFilterRef=o.encode(c,h,c+d-1,h+f-1),u.tableRef=o.encode(c,h,c+m-1,h+f-1),u.columns.forEach((g,p)=>{a(g.name,`Column ${p} must have a name`),p===0?l(g,"totalsRowLabel","Total"):(l(g,"totalsRowFunction","none"),g.totalsRowFormula=this.getFormula(g))})}store(){const u=(d,m)=>{m&&Object.keys(m).forEach(g=>{d[g]=m[g]})},{worksheet:l,table:a}=this,{row:c,col:h}=a.tl;let f=0;if(a.headerRow){const d=l.getRow(c+f++);a.columns.forEach((m,g)=>{const{style:p,name:v}=m,y=d.getCell(h+g);y.value=v,u(y,p)})}if(a.rows.forEach(d=>{const m=l.getRow(c+f++);d.forEach((g,p)=>{const v=m.getCell(h+p);v.value=g,u(v,a.columns[p].style)})}),a.totalsRow){const d=l.getRow(c+f++);a.columns.forEach((m,g)=>{const p=d.getCell(h+g);if(g===0)p.value=m.totalsRowLabel;else{const v=this.getFormula(m);p.value=v?{formula:m.totalsRowFormula,result:m.totalsRowResult}:null}u(p,m.style)})}}load(u){const{table:l}=this,{row:a,col:c}=l.tl;let h=0;if(l.headerRow){const f=u.getRow(a+h++);l.columns.forEach((d,m)=>{f.getCell(c+m).value=d.name})}if(l.rows.forEach(f=>{const d=u.getRow(a+h++);f.forEach((m,g)=>{d.getCell(c+g).value=m})}),l.totalsRow){const f=u.getRow(a+h++);l.columns.forEach((d,m)=>{const g=f.getCell(c+m);m===0?g.value=d.totalsRowLabel:this.getFormula(d)&&(g.value={formula:d.totalsRowFormula,result:d.totalsRowResult})})}}get model(){return this.table}set model(u){this.table=u}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const u=o.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let l=0;l1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(u,l)}getColumn(u){const l=this.table.columns[u];return new s(this,l,u)}addColumn(u,l,a){this.cacheState(),a===void 0?(this.table.columns.push(u),this.table.rows.forEach((c,h)=>{c.push(l[h])})):(this.table.columns.splice(a,0,u),this.table.rows.forEach((c,h)=>{c.splice(a,0,l[h])}))}removeColumns(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(u,l),this.table.rows.forEach(a=>{a.splice(u,l)})}_assign(u,l,a){this.cacheState(),u[l]=a}get ref(){return this.table.ref}set ref(u){this._assign(this.table,"ref",u)}get name(){return this.table.name}set name(u){this.table.name=u}get displayName(){return this.table.displyName||this.table.name}set displayNamename(u){this.table.displayName=u}get headerRow(){return this.table.headerRow}set headerRow(u){this._assign(this.table,"headerRow",u)}get totalsRow(){return this.table.totalsRow}set totalsRow(u){this._assign(this.table,"totalsRow",u)}get theme(){return this.table.style.name}set theme(u){this.table.style.name=u}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(u){this.table.style.showFirstColumn=u}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(u){this.table.style.showLastColumn=u}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(u){this.table.style.showRowStripes=u}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(u){this.table.style.showColumnStripes=u}}},{"../utils/col-cache":19}],13:[function(r,n,i){const o=r("./worksheet"),s=r("./defined-names"),u=r("../xlsx/xlsx"),l=r("../csv/csv");n.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new s}get xlsx(){return this._xlsx||(this._xlsx=new u(this)),this._xlsx}get csv(){return this._csv||(this._csv=new l(this)),this._csv}get nextId(){for(let a=1;a(p&&p.orderNo)>g?p.orderNo:g,0),d=Object.assign({},c,{id:h,name:a,orderNo:f+1,workbook:this}),m=new o(d);return this._worksheets[h]=m,m}removeWorksheetEx(a){delete this._worksheets[a.id]}removeWorksheet(a){const c=this.getWorksheet(a);c&&c.destroy()}getWorksheet(a){return a===void 0?this._worksheets.find(Boolean):typeof a=="number"?this._worksheets[a]:typeof a=="string"?this._worksheets.find(c=>c&&c.name===a):void 0}get worksheets(){return this._worksheets.slice(1).sort((a,c)=>a.orderNo-c.orderNo).filter(Boolean)}eachSheet(a){this.worksheets.forEach(c=>{a(c,c.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(a){const c=this.media.length;return this.media.push(Object.assign({},a,{type:"image"})),c}getImage(a){return this.media[a]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(a=>a.model),sheets:this.worksheets.map(a=>a.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(a){this.creator=a.creator,this.lastModifiedBy=a.lastModifiedBy,this.lastPrinted=a.lastPrinted,this.created=a.created,this.modified=a.modified,this.company=a.company,this.manager=a.manager,this.title=a.title,this.subject=a.subject,this.keywords=a.keywords,this.category=a.category,this.description=a.description,this.language=a.language,this.revision=a.revision,this.contentStatus=a.contentStatus,this.properties=a.properties,this.calcProperties=a.calcProperties,this._worksheets=[],a.worksheets.forEach(c=>{const{id:h,name:f,state:d}=c,m=a.sheets&&a.sheets.findIndex(g=>g.id===h);(this._worksheets[h]=new o({id:h,name:f,orderNo:m,state:d,workbook:this})).model=c}),this._definedNames.model=a.definedNames,this.views=a.views,this._themes=a.themes,this.media=a.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(r,n,i){const o=r("../utils/under-dash"),s=r("../utils/col-cache"),u=r("./range"),l=r("./row"),a=r("./column"),c=r("./enums"),h=r("./image"),f=r("./table"),d=r("./data-validations"),m=r("../utils/encryptor"),{copyStyle:g}=r("../utils/copy-style");n.exports=class{constructor(p){p=p||{},this._workbook=p.workbook,this.id=p.id,this.orderNo=p.orderNo,this.name=p.name,this.state=p.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},p.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!p.pageSetup||!p.pageSetup.fitToWidth&&!p.pageSetup.fitToHeight||p.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},p.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},p.headerFooter),this.dataValidations=new d,this.views=p.views||[],this.autoFilter=p.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(p){if(p===void 0&&(p="sheet"+this.id),this._name!==p){if(typeof p!="string")throw new Error("The name has to be a string.");if(p==="")throw new Error("The name can't be empty.");if(p==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(p))throw new Error(`Worksheet name ${p} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(p))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+p);if(p&&p.length>31&&(console.warn(`Worksheet name ${p} exceeds 31 chars. This will be truncated`),p=p.substring(0,31)),this._workbook._worksheets.find(v=>v&&v.name.toLowerCase()===p.toLowerCase()))throw new Error("Worksheet name already exists: "+p);this._name=p}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const p=new u;return this._rows.forEach(v=>{if(v){const y=v.dimensions;y&&p.expand(v.number,y.min,v.number,y.max)}}),p}get columns(){return this._columns}set columns(p){this._headerRowCount=p.reduce((b,_)=>{const E=(_.header?1:_.headers&&_.headers.length)||0;return Math.max(b,E)},0);let v=1;const y=this._columns=[];p.forEach(b=>{const _=new a(this,v++,!1);y.push(_),_.defn=b})}getColumnKey(p){return this._keys[p]}setColumnKey(p,v){this._keys[p]=v}deleteColumnKey(p){delete this._keys[p]}eachColumnKey(p){o.each(this._keys,p)}getColumn(p){if(typeof p=="string"){const v=this._keys[p];if(v)return v;p=s.l2n(p)}if(this._columns||(this._columns=[]),p>this._columns.length){let v=this._columns.length+1;for(;v<=p;)this._columns.push(new a(this,v++))}return this._columns[p-1]}spliceColumns(p,v){const y=this._rows.length;for(var b=arguments.length,_=new Array(b>2?b-2:0),E=2;E0)for(let D=0;D{F.push(V[D]||null)});const U=this.getRow(D+1);U.splice.apply(U,F)}else this._rows.forEach(D=>{D&&D.splice(p,v)});const $=_.length-v,M=p+v,P=this._columns.length;if($<0)for(let D=p+_.length;D<=P;D++)this.getColumn(D).defn=this.getColumn(D-$).defn;else if($>0)for(let D=P;D>=M;D--)this.getColumn(D+$).defn=this.getColumn(D).defn;for(let D=p;D{p=Math.max(p,v.cellCount)}),p}get actualColumnCount(){const p=[];let v=0;return this.eachRow(y=>{y.eachCell(b=>{let{col:_}=b;p[_]||(p[_]=!0,v++)})}),v}_commitRow(){}get _lastRowNumber(){const p=this._rows;let v=p.length;for(;v>0&&p[v-1]===void 0;)v--;return v}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(p){return this._rows[p-1]}findRows(p,v){return this._rows.slice(p-1,p-1+v)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let p=0;return this.eachRow(()=>{p++}),p}getRow(p){let v=this._rows[p-1];return v||(v=this._rows[p-1]=new l(this,p)),v}getRows(p,v){if(v<1)return;const y=[];for(let b=p;b1&&arguments[1]!==void 0?arguments[1]:"n";const y=this._nextRow,b=this.getRow(y);return b.values=p,this._setStyleOption(y,v[0]==="i"?v:"n"),b}addRows(p){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const y=[];return p.forEach(b=>{y.push(this.addRow(b,v))}),y}insertRow(p,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(p,0,v),this._setStyleOption(p,y),this.getRow(p)}insertRows(p,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(p,0,...v),y!=="n")for(let b=0;b1&&arguments[1]!==void 0?arguments[1]:"n";v[0]==="o"&&this.findRow(p+1)!==void 0?this._copyStyle(p+1,p,v[1]==="+"):v[0]==="i"&&this.findRow(p-1)!==void 0&&this._copyStyle(p-1,p,v[1]==="+")}_copyStyle(p,v){let y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const b=this.getRow(p),_=this.getRow(v);_.style=g(b.style),b.eachCell({includeEmpty:y},(E,$)=>{_.getCell($).style=g(E.style)}),_.height=b.height}duplicateRow(p,v){let y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const b=this._rows[p-1],_=new Array(v).fill(b.values);this.spliceRows(p+1,y?0:v,..._);for(let E=0;E{$.getCell(P).style=M.style})}}spliceRows(p,v){const y=p+v;for(var b=arguments.length,_=new Array(b>2?b-2:0),E=2;E{U.getCell(A).style=V.style}),this._rows[D-1]=void 0}else this._rows[D+M-1]=void 0;else if(M>0)for(D=P;D>=y;D--)if(F=this._rows[D-1],F){const U=this.getRow(D+M);U.values=F.values,U.style=F.style,U.height=F.height,F.eachCell({includeEmpty:!0},(V,A)=>{if(U.getCell(A).style=V.style,V._value.constructor.name==="MergeValue"){const O=this.getRow(V._row._number+$).getCell(A),C=V._value._master,w=this.getRow(C._row._number+$).getCell(C._column._number);O.merge(w)}})}else this._rows[D+M-1]=void 0;for(D=0;D<$;D++){const U=this.getRow(p+D);U.style={},U.values=_[D]}this.workbook.definedNames.spliceRows(this.name,p,v,$)}eachRow(p,v){if(v||(v=p,p=void 0),p&&p.includeEmpty){const y=this._rows.length;for(let b=1;b<=y;b++)v(this.getRow(b),b)}else this._rows.forEach(y=>{y&&y.hasValues&&v(y,y.number)})}getSheetValues(){const p=[];return this._rows.forEach(v=>{v&&(p[v.number]=v.values)}),p}findCell(p,v){const y=s.getAddress(p,v),b=this._rows[y.row-1];return b?b.findCell(y.col):void 0}getCell(p,v){const y=s.getAddress(p,v);return this.getRow(y.row).getCellEx(y)}mergeCells(){for(var p=arguments.length,v=new Array(p),y=0;y{if(b.intersects(p))throw new Error("Cannot merge already merged cells")});const y=this.getCell(p.top,p.left);for(let b=p.top;b<=p.bottom;b++)for(let _=p.left;_<=p.right;_++)(b>p.top||_>p.left)&&this.getCell(b,_).merge(y,v);this._merges[y.address]=p}_unMergeMaster(p){const v=this._merges[p.address];if(v){for(let y=v.top;y<=v.bottom;y++)for(let b=v.left;b<=v.right;b++)this.getCell(y,b).unmerge();delete this._merges[p.address]}}get hasMerges(){return o.some(this._merges,Boolean)}unMergeCells(){for(var p=arguments.length,v=new Array(p),y=0;y3&&arguments[3]!==void 0?arguments[3]:"shared";const _=s.decode(p),{top:E,left:$,bottom:M,right:P}=_,D=P-$+1,F=s.encodeAddress(E,$),U=b==="shared";let V;V=typeof y=="function"?y:Array.isArray(y)?Array.isArray(y[0])?(O,C)=>y[O-E][C-$]:(O,C)=>y[(O-E)*D+(C-$)]:()=>{};let A=!0;for(let O=E;O<=M;O++)for(let C=$;C<=P;C++)A?(this.getCell(O,C).value={shareType:b,formula:v,ref:p,result:V(O,C)},A=!1):this.getCell(O,C).value=U?{sharedFormula:F,result:V(O,C)}:V(O,C)}addImage(p,v){const y={type:"image",imageId:p,range:v};this._media.push(new h(this,y))}getImages(){return this._media.filter(p=>p.type==="image")}addBackgroundImage(p){const v={type:"background",imageId:p};this._media.push(new h(this,v))}getBackgroundImageId(){const p=this._media.find(v=>v.type==="background");return p&&p.imageId}protect(p,v){return new Promise(y=>{this.sheetProtection={sheet:!0},v&&"spinCount"in v&&(v.spinCount=Number.isFinite(v.spinCount)?Math.round(Math.max(0,v.spinCount)):1e5),p&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=m.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=v&&"spinCount"in v?v.spinCount:1e5,this.sheetProtection.hashValue=m.convertPasswordToHash(p,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),v&&(this.sheetProtection=Object.assign(this.sheetProtection,v),!p&&"spinCount"in v&&delete this.sheetProtection.spinCount),y()})}unprotect(){this.sheetProtection=null}addTable(p){const v=new f(this,p);return this.tables[p.name]=v,v}getTable(p){return this.tables[p]}removeTable(p){delete this.tables[p]}getTables(){return Object.values(this.tables)}addConditionalFormatting(p){this.conditionalFormattings.push(p)}removeConditionalFormatting(p){typeof p=="number"?this.conditionalFormattings.splice(p,1):this.conditionalFormattings=p instanceof Function?this.conditionalFormattings.filter(p):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(p){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=p}get model(){const p={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(b=>b.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(b=>b.model),conditionalFormattings:this.conditionalFormattings};p.cols=a.toModel(this.columns);const v=p.rows=[],y=p.dimensions=new u;return this._rows.forEach(b=>{const _=b&&b.model;_&&(y.expand(_.number,_.min,_.number,_.max),v.push(_))}),p.merges=[],o.each(this._merges,b=>{p.merges.push(b.range)}),p}_parseRows(p){this._rows=[],p.rows.forEach(v=>{const y=new l(this,v.number);this._rows[y.number-1]=y,y.model=v})}_parseMergeCells(p){o.each(p.mergeCells,v=>{this.mergeCellsWithoutStyle(v)})}set model(p){this.name=p.name,this._columns=a.fromModel(this,p.cols),this._parseRows(p),this._parseMergeCells(p),this.dataValidations=new d(p.dataValidations),this.properties=p.properties,this.pageSetup=p.pageSetup,this.headerFooter=p.headerFooter,this.views=p.views,this.autoFilter=p.autoFilter,this._media=p.media.map(v=>new h(this,v)),this.sheetProtection=p.sheetProtection,this.tables=p.tables.reduce((v,y)=>{const b=new f;return b.model=y,v[y.name]=b,v},{}),this.conditionalFormattings=p.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(r,n,i){r("core-js/modules/es.promise"),r("core-js/modules/es.promise.finally"),r("core-js/modules/es.object.assign"),r("core-js/modules/es.object.keys"),r("core-js/modules/es.object.values"),r("core-js/modules/es.symbol"),r("core-js/modules/es.symbol.async-iterator"),r("core-js/modules/es.array.iterator"),r("core-js/modules/es.array.includes"),r("core-js/modules/es.array.find-index"),r("core-js/modules/es.array.find"),r("core-js/modules/es.string.from-code-point"),r("core-js/modules/es.string.includes"),r("core-js/modules/es.number.is-nan"),r("regenerator-runtime/runtime");const o={Workbook:r("./doc/workbook")},s=r("./doc/enums");Object.keys(s).forEach(u=>{o[u]=s[u]}),n.exports=o},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(r,n,i){const o=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");i.bufferToString=function(s){return typeof s=="string"?s:o?o.decode(s):s.toString()}},{}],17:[function(r,n,i){const o=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:s}=r("buffer");i.stringToBuffer=function(u){return typeof u!="string"?u:o?s.from(o.encode(u).buffer):s.from(u)}},{buffer:220}],18:[function(r,n,i){const o=r("./under-dash"),s=r("./col-cache");n.exports=class{constructor(u){this.template=u,this.sheets={}}addCell(u){this.addCellEx(s.decodeEx(u))}getCell(u){return this.findCellEx(s.decodeEx(u),!0)}findCell(u){return this.findCellEx(s.decodeEx(u),!1)}findCellAt(u,l,a){const c=this.sheets[u],h=c&&c[l];return h&&h[a]}addCellEx(u){if(u.top)for(let l=u.top;l<=u.bottom;l++)for(let a=u.left;a<=u.right;a++)this.getCellAt(u.sheetName,l,a);else this.findCellEx(u,!0)}getCellEx(u){return this.findCellEx(u,!0)}findCellEx(u,l){const a=this.findSheet(u,l),c=this.findSheetRow(a,u,l);return this.findRowCell(c,u,l)}getCellAt(u,l,a){const c=this.sheets[u]||(this.sheets[u]=[]),h=c[l]||(c[l]=[]);return h[a]||(h[a]={sheetName:u,address:s.n2l(a)+l,row:l,col:a})}removeCellEx(u){const l=this.findSheet(u);if(!l)return;const a=this.findSheetRow(l,u);a&&delete a[u.col]}forEachInSheet(u,l){const a=this.sheets[u];a&&a.forEach((c,h)=>{c&&c.forEach((f,d)=>{f&&l(f,h,d)})})}forEach(u){o.each(this.sheets,(l,a)=>{this.forEachInSheet(a,u)})}map(u){const l=[];return this.forEach(a=>{l.push(u(a))}),l}findSheet(u,l){const a=u.sheetName;return this.sheets[a]?this.sheets[a]:l?this.sheets[a]=[]:void 0}findSheetRow(u,l,a){const{row:c}=l;return u&&u[c]?u[c]:a?u[c]=[]:void 0}findRowCell(u,l,a){const{col:c}=l;return u&&u[c]?u[c]:a?u[c]=this.template?Object.assign(l,JSON.parse(JSON.stringify(this.template))):l:void 0}spliceRows(u,l,a,c){const h=this.sheets[u];if(h){const f=[];for(let d=0;d{d.splice(l,a,...f)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(r,n,i){const o=/^[A-Z]+\d+$/,s={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:u=>u<=26?1:u<=676?2:3,_fill(u){let l,a,c,h,f,d=1;if(u>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&u>=1){for(;d<=26;)l=this._dictionary[d-1],this._n2l[d]=l,this._l2n[l]=d,d++;this._l2nFill=1}if(this._l2nFill<2&&u>=2){for(d=27;d<=702;)a=d-27,c=a%26,h=Math.floor(a/26),l=this._dictionary[h]+this._dictionary[c],this._n2l[d]=l,this._l2n[l]=d,d++;this._l2nFill=2}if(this._l2nFill<3&&u>=3){for(d=703;d<=16384;)a=d-703,c=a%26,h=Math.floor(a/26)%26,f=Math.floor(a/676),l=this._dictionary[f]+this._dictionary[h]+this._dictionary[c],this._n2l[d]=l,this._l2n[l]=d,d++;this._l2nFill=3}},l2n(u){if(this._l2n[u]||this._fill(u.length),!this._l2n[u])throw new Error("Out of bounds. Invalid column letter: "+u);return this._l2n[u]},n2l(u){if(u<1||u>16384)throw new Error(u+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[u]||this._fill(this._level(u)),this._n2l[u]},_hash:{},validateAddress(u){if(!o.test(u))throw new Error("Invalid Address: "+u);return!0},decodeAddress(u){const l=u.length<5&&this._hash[u];if(l)return l;let a=!1,c="",h=0,f=!1,d="",m=0;for(let p,v=0;v=65&&p<=90)a=!0,c+=u[v],h=26*h+p-64;else if(p>=48&&p<=57)f=!0,d+=u[v],m=10*m+p-48;else if(f&&a&&p!==36)break;if(a){if(h>16384)throw new Error("Out of bounds. Invalid column letter: "+c)}else h=void 0;f||(m=void 0);const g={address:u=c+d,col:h,row:m,$col$row:`$${c}$${d}`};return h<=100&&m<=100&&(this._hash[u]=g,this._hash[g.$col$row]=g),g},getAddress(u,l){if(l){const a=this.n2l(l)+u;return this.decodeAddress(a)}return this.decodeAddress(u)},decode(u){const l=u.split(":");if(l.length===2){const a=this.decodeAddress(l[0]),c=this.decodeAddress(l[1]),h={top:Math.min(a.row,c.row),left:Math.min(a.col,c.col),bottom:Math.max(a.row,c.row),right:Math.max(a.col,c.col)};return h.tl=this.n2l(h.left)+h.top,h.br=this.n2l(h.right)+h.bottom,h.dimensions=`${h.tl}:${h.br}`,h}return this.decodeAddress(u)},decodeEx(u){const l=u.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),a=l[1]||l[2],c=l[3],h=c.split(":");if(h.length>1){let d=this.decodeAddress(h[0]),m=this.decodeAddress(h[1]);const g=Math.min(d.row,m.row),p=Math.min(d.col,m.col),v=Math.max(d.row,m.row),y=Math.max(d.col,m.col);return d=this.n2l(p)+g,m=this.n2l(y)+v,{top:g,left:p,bottom:v,right:y,sheetName:a,tl:{address:d,col:p,row:g,$col$row:`$${this.n2l(p)}$${g}`,sheetName:a},br:{address:m,col:y,row:v,$col$row:`$${this.n2l(y)}$${v}`,sheetName:a},dimensions:`${d}:${m}`}}if(c.startsWith("#"))return a?{sheetName:a,error:c}:{error:c};const f=this.decodeAddress(c);return a?{sheetName:a,...f}:f},encodeAddress:(u,l)=>s.n2l(l)+u,encode(){switch(arguments.length){case 2:return s.encodeAddress(arguments[0],arguments[1]);case 4:return`${s.encodeAddress(arguments[0],arguments[1])}:${s.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(u,l){const[a,c,,h,f]=u,[d,m]=l;return d>=a&&d<=h&&m>=c&&m<=f}};n.exports=s},{}],20:[function(r,n,i){const o=(u,l)=>({...u,...l.reduce((a,c)=>(u[c]&&(a[c]={...u[c]}),a),{})}),s=function(u,l,a){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];u[a]&&(l[a]=o(u[a],c))};i.copyStyle=u=>{if(!u)return u;if(l=u,Object.keys(l).length===0)return{};var l;const a={...u};return s(u,a,"font",["color"]),s(u,a,"alignment"),s(u,a,"protection"),u.border&&(s(u,a,"border"),s(u.border,a.border,"top",["color"]),s(u.border,a.border,"left",["color"]),s(u.border,a.border,"bottom",["color"]),s(u.border,a.border,"right",["color"]),s(u.border,a.border,"diagonal",["color"])),u.fill&&(s(u,a,"fill",["fgColor","bgColor","center"]),u.fill.stops&&(a.fill.stops=u.fill.stops.map(c=>o(c,["color"])))),a}},{}],21:[function(r,n,i){(function(o){(function(){const s=r("crypto"),u={hash(l){const a=s.createHash(l);for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;fs.randomBytes(l)};n.exports=u}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(r,n,i){const{SaxesParser:o}=r("saxes"),{PassThrough:s}=r("readable-stream"),{bufferToString:u}=r("./browser-buffer-decode");n.exports=async function*(l){l.pipe&&!l[Symbol.asyncIterator]&&(l=l.pipe(new s));const a=new o;let c;a.on("error",f=>{c=f});let h=[];a.on("opentag",f=>h.push({eventType:"opentag",value:f})),a.on("text",f=>h.push({eventType:"text",value:f})),a.on("closetag",f=>h.push({eventType:"closetag",value:f}));for await(const f of l){if(a.write(u(f)),c)throw c;yield h,h=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(r,n,i){const o=r("./col-cache"),s=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,u=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;n.exports={slideFormula:function(l,a,c){const h=o.decode(a),f=o.decode(c);return l.replace(s,(d,m,g,p,v)=>{if(v)return d;const y=u.exec(p);if(y){const b=y[1],_=y[2].toUpperCase(),E=y[3],$=y[4];if(_.length>3||_.length===3&&_>"XFD")return d;let M=o.l2n(_),P=parseInt($,10);return b||(M+=f.col-h.col),E||(P+=f.row-h.row),(m||"")+(b||"")+o.n2l(M)+(E||"")+P}return d})}}},{"./col-cache":19}],24:[function(r,n,i){(function(o,s){(function(){const u=r("readable-stream"),l=r("./utils"),a=r("./string-buf");class c{constructor(p,v){this._data=p,this._encoding=v}get length(){return this.toBuffer().length}copy(p,v,y,b){return this.toBuffer().copy(p,v,y,b)}toBuffer(){return this._buffer||(this._buffer=s.from(this._data,this._encoding)),this._buffer}}class h{constructor(p){this._data=p}get length(){return this._data.length}copy(p,v,y,b){return this._data._buf.copy(p,v,y,b)}toBuffer(){return this._data.toBuffer()}}class f{constructor(p){this._data=p}get length(){return this._data.length}copy(p,v,y,b){this._data.copy(p,v,y,b)}toBuffer(){return this._data}}class d{constructor(p){this.size=p,this.buffer=s.alloc(p),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const p=s.alloc(this.iWrite-this.iRead);return this.buffer.copy(p,0,this.iRead,this.iWrite),p}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(p){let v;return p===0?null:p===void 0||p>=this.length?(v=this.toBuffer(),this.iRead=this.iWrite,v):(v=s.alloc(p),this.buffer.copy(v,0,this.iRead,p),this.iRead+=p,v)}write(p,v,y){const b=Math.min(y,this.size-this.iWrite);return p.copy(this.buffer,this.iWrite,v,v+b),this.iWrite+=b,b}}const m=function(g){g=g||{},this.bufSize=g.bufSize||1048576,this.buffers=[],this.batch=g.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};l.inherits(m,u.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return s.concat(this.buffers.map(g=>g.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const p=this.buffers[this.buffers.length-1];if(!p.full)return p}const g=new d(this.bufSize);return this.buffers.push(g),g},async _pipe(g){await Promise.all(this.pipes.map(function(p){return new Promise(v=>{p.write(g.toBuffer(),()=>{v()})})}))},_writeToBuffers(g){let p=0;const v=g.length;for(;p1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(y),o.nextTick(v)):(await this._pipe(y),v());else this.paused||this.emit("data",y.toBuffer()),this._writeToBuffers(y),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(g,p,v){const y=b=>{b?v(b):(this._flush(),this.pipes.forEach(_=>{_.end()}),this.emit("finish"))};g?this.write(g,p,y):y()},read(g){let p;if(g){for(p=[];g&&this.buffers.length&&!this.buffers[0].eod;){const v=this.buffers[0],y=v.read(g);g-=y.length,p.push(y),v.eod&&v.full&&this.buffers.shift()}return s.concat(p)}return p=this.buffers.map(v=>v.toBuffer()).filter(Boolean),this.buffers=[],s.concat(p)},setEncoding(g){this.encoding=g},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(g){this.pipes.push(g),!this.paused&&this.buffers.length&&this.end()},unpipe(g){this.pipes=this.pipes.filter(p=>p!==g)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),n.exports=m}).call(this)}).call(this,r("_process"),r("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(r,n,i){(function(o){(function(){n.exports=class{constructor(s){this._buf=o.alloc(s&&s.size||16384),this._encoding=s&&s.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=o.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(s){s=s||0,this._buffer=void 0,this._inPos=s}_grow(s){let u=2*this._buf.length;for(;u=this._buf.length-4;)this._grow(this._inPos+s.length),u=this._inPos+this._buf.write(s,this._inPos,this._encoding);this._inPos=u}addStringBuf(s){s.length&&(this._buffer=void 0,this.length+s.length>this.capacity&&this._grow(this.length+s.length),s._buf.copy(this._buf,this._inPos,0,s.length),this._inPos+=s.length)}}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220}],26:[function(r,n,i){const{toString:o}=Object.prototype,s=/["&<>]/,u={each:function(l,a){l&&(Array.isArray(l)?l.forEach(a):Object.keys(l).forEach(c=>{a(l[c],c)}))},some:function(l,a){return!!l&&(Array.isArray(l)?l.some(a):Object.keys(l).some(c=>a(l[c],c)))},every:function(l,a){return!l||(Array.isArray(l)?l.every(a):Object.keys(l).every(c=>a(l[c],c)))},map:function(l,a){return l?Array.isArray(l)?l.map(a):Object.keys(l).map(c=>a(l[c],c)):[]},keyBy:(l,a)=>l.reduce((c,h)=>(c[h[a]]=h,c),{}),isEqual:function(l,a){const c=typeof l,h=typeof a,f=Array.isArray(l),d=Array.isArray(a);let m;if(c!==h)return!1;switch(typeof l){case"object":if(f||d)return!(!f||!d)&&l.length===a.length&&l.every((g,p)=>{const v=a[p];return u.isEqual(g,v)});if(l===null||a===null)return l===a;if(m=Object.keys(l),Object.keys(a).length!==m.length)return!1;for(const g of m)if(!a.hasOwnProperty(g))return!1;return u.every(l,(g,p)=>{const v=a[p];return u.isEqual(g,v)});default:return l===a}},escapeHtml(l){const a=s.exec(l);if(!a)return l;let c="",h="",f=0,d=a.index;for(;d":h=">";break;default:continue}f!==d&&(c+=l.substring(f,d)),f=d+1,c+=h}return f!==d?c+l.substring(f,d):c},strcmp:(l,a)=>la?1:0,isUndefined:l=>o.call(l)==="[object Undefined]",isObject:l=>o.call(l)==="[object Object]",deepMerge(){const l=arguments[0]||{},{length:a}=arguments;let c,h,f;function d(m,g){c=l[g],f=Array.isArray(m),u.isObject(m)||f?(f?(f=!1,h=c&&Array.isArray(c)?c:[]):h=c&&u.isObject(c)?c:{},l[g]=u.deepMerge(h,m)):u.isUndefined(m)||(l[g]=m)}for(let m=0;m&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,a={nop(){},promiseImmediate:c=>new Promise(h=>{o.setImmediate?s(()=>{h(c)}):setTimeout(()=>{h(c)},1)}),inherits:function(c,h,f,d){c.super_=h,d||(d=f,f=null),f&&Object.keys(f).forEach(g=>{Object.defineProperty(c,g,Object.getOwnPropertyDescriptor(f,g))});const m={constructor:{value:c,enumerable:!1,writable:!1,configurable:!0}};d&&Object.keys(d).forEach(g=>{m[g]=Object.getOwnPropertyDescriptor(d,g)}),c.prototype=Object.create(h.prototype,m)},dateToExcel:(c,h)=>25569+c.getTime()/864e5-(h?1462:0),excelToDate(c,h){const f=Math.round(24*(c-25569+(h?1462:0))*3600*1e3);return new Date(f)},parsePath(c){const h=c.lastIndexOf("/");return{path:c.substring(0,h),name:c.substring(h+1)}},getRelsPath(c){const h=a.parsePath(c);return`${h.path}/_rels/${h.name}.rels`},xmlEncode(c){const h=l.exec(c);if(!h)return c;let f="",d="",m=0,g=h.index;for(;g=11&&p!==13)){d="";break}continue}m!==g&&(f+=c.substring(m,g)),m=g+1,d&&(f+=d)}return m!==g?f+c.substring(m,g):f},xmlDecode:c=>c.replace(/&([a-z]*);/g,h=>{switch(h){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return h}}),validInt(c){const h=parseInt(c,10);return Number.isNaN(h)?0:h},isDateFmt(c){return c?(c=(c=c.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:c=>new Promise(h=>{u.access(c,u.constants.F_OK,f=>{h(!f)})})},toIsoDateString:c=>c.toIsoString().subsstr(0,10),parseBoolean:c=>c===!0||c==="true"||c===1||c==="1"};n.exports=a}).call(this)}).call(this,typeof _t<"u"?_t:typeof self<"u"?self:typeof window<"u"?window:{},r("timers").setImmediate)},{fs:216,timers:523}],28:[function(r,n,i){const o=r("./under-dash"),s=r("./utils");function u(c,h,f){c.push(` ${h}="${s.xmlEncode(f.toString())}"`)}function l(c,h){if(h){const f=[];o.each(h,(d,m)=>{d!==void 0&&u(f,m,d)}),c.push(f.join(""))}}class a{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(h){const f=this._xml;f.push(" +`)}`}function U5e(e){return e.length>1?e.map(([t,r])=>`

${t}

${b8(r)}`).join("
"):b8(e[0][1])}function Th(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eO={exports:{}};/*! ExcelJS 19-10-2023 */(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function s(a,c){if(!i[a]){if(!n[a]){var h=typeof Th=="function"&&Th;if(!c&&h)return h(a,!0);if(u)return u(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var d=i[a]={exports:{}};n[a][0].call(d.exports,function(m){return s(n[a][1][m]||m)},d,d.exports,r,n,i,o)}return i[a].exports}for(var u=typeof Th=="function"&&Th,l=0;l{const v=this.workbook.addWorksheet(m.sheetName),y=m.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],b=m.map||function(E){if(E==="")return null;const $=Number(E);if(!Number.isNaN($)&&$!==1/0)return $;const M=y.reduce((D,F)=>{if(D)return D;const U=a(E,F,!0);return U.isValid()?U:null},null);if(M)return new Date(M.valueOf());const P=f[E];return P!==void 0?P:E},_=s.parse(m.parserOptions).on("data",E=>{v.addRow(E.map(b))}).on("end",()=>{_.emit("worksheet",v)});_.on("worksheet",g).on("error",p),d.pipe(_)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(d,m){return new Promise((g,p)=>{m=m||{};const v=this.workbook.getWorksheet(m.sheetName||m.sheetId),y=s.format(m.formatterOptions);d.on("finish",()=>{g()}),y.on("error",p),y.pipe(d);const{dateFormat:b,dateUTC:_}=m,E=m.map||(P=>{if(P){if(P.text||P.hyperlink)return P.hyperlink||P.text||"";if(P.formula||P.result)return P.result||"";if(P instanceof Date)return b?_?a.utc(P).format(b):a(P).format(b):_?a.utc(P).format():a(P).format();if(P.error)return P.error;if(typeof P=="object")return JSON.stringify(P)}return P}),$=m.includeEmptyRows===void 0||m.includeEmptyRows;let M=1;v&&v.eachRow((P,D)=>{if($)for(;M++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=l,a)if(typeof a=="string"){const h=o.decodeAddress(a);this.nativeCol=h.col+c,this.nativeColOff=0,this.nativeRow=h.row+c,this.nativeRowOff=0}else a.nativeCol!==void 0?(this.nativeCol=a.nativeCol||0,this.nativeColOff=a.nativeColOff||0,this.nativeRow=a.nativeRow||0,this.nativeRowOff=a.nativeRowOff||0):a.col!==void 0?(this.col=a.col+c,this.row=a.row+c):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(l){return l instanceof s||l==null?l:new s(l)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(l){this.nativeCol=Math.floor(l),this.nativeColOff=Math.floor((l-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(l){this.nativeRow=Math.floor(l),this.nativeRowOff=Math.floor((l-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(l){this.nativeCol=l.nativeCol,this.nativeColOff=l.nativeColOff,this.nativeRow=l.nativeRow,this.nativeRowOff=l.nativeRowOff}}n.exports=s},{"../utils/col-cache":19}],3:[function(r,n,i){const o=r("../utils/col-cache"),s=r("../utils/under-dash"),u=r("./enums"),{slideFormula:l}=r("../utils/shared-formula"),a=r("./note");class c{constructor(d,m,g){if(!d||!m)throw new Error("A Cell needs a Row");this._row=d,this._column=m,o.validateAddress(g),this._address=g,this._value=h.create(c.Types.Null,this),this.style=this._mergeStyle(d.style,m.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(d){this.style.numFmt=d}get font(){return this.style.font}set font(d){this.style.font=d}get alignment(){return this.style.alignment}set alignment(d){this.style.alignment=d}get border(){return this.style.border}set border(d){this.style.border=d}get fill(){return this.style.fill}set fill(d){this.style.fill=d}get protection(){return this.style.protection}set protection(d){this.style.protection=d}_mergeStyle(d,m,g){const p=d&&d.numFmt||m&&m.numFmt;p&&(g.numFmt=p);const v=d&&d.font||m&&m.font;v&&(g.font=v);const y=d&&d.alignment||m&&m.alignment;y&&(g.alignment=y);const b=d&&d.border||m&&m.border;b&&(g.border=b);const _=d&&d.fill||m&&m.fill;_&&(g.fill=_);const E=d&&d.protection||m&&m.protection;return E&&(g.protection=E),g}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===c.Types.Merge}merge(d,m){this._value.release(),this._value=h.create(c.Types.Merge,this,d),m||(this.style=d.style)}unmerge(){this.type===c.Types.Merge&&(this._value.release(),this._value=h.create(c.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(d){return this._value.type===c.Types.Merge&&this._value.isMergedTo(d)}get master(){return this.type===c.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===c.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(d){this.type!==c.Types.Merge?(this._value.release(),this._value=h.create(h.getType(d),this,d)):this._value.master.value=d}get note(){return this._comment&&this._comment.note}set note(d){this._comment=new a(d)}get text(){return this._value.toString()}get html(){return s.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(d){this.type===c.Types.String&&(this._value=h.create(c.Types.Hyperlink,this,{text:this._value.value,hyperlink:d}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:d}=this._row;return{sheetName:d.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(d){this.names=[d]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(d){const{definedNames:m}=this.workbook;m.removeAllNames(this.fullAddress),d.forEach(g=>{m.addEx(this.fullAddress,g)})}addName(d){this.workbook.definedNames.addEx(this.fullAddress,d)}removeName(d){this.workbook.definedNames.removeEx(this.fullAddress,d)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(d){this._dataValidations.add(this.address,d)}get model(){const{model:d}=this._value;return d.style=this.style,this._comment&&(d.comment=this._comment.model),d}set model(d){if(this._value.release(),this._value=h.create(d.type,this),this._value.model=d,d.comment)switch(d.comment.type){case"note":this._comment=a.fromModel(d.comment)}d.style?this.style=d.style:this.style={}}}c.Types=u.ValueType;const h={getType:f=>f==null?c.Types.Null:f instanceof String||typeof f=="string"?c.Types.String:typeof f=="number"?c.Types.Number:typeof f=="boolean"?c.Types.Boolean:f instanceof Date?c.Types.Date:f.text&&f.hyperlink?c.Types.Hyperlink:f.formula||f.sharedFormula?c.Types.Formula:f.richText?c.Types.RichText:f.sharedString?c.Types.SharedString:f.error?c.Types.Error:c.Types.JSON,types:[{t:c.Types.Null,f:class{constructor(f){this.model={address:f.address,type:c.Types.Null}}get value(){return null}set value(f){}get type(){return c.Types.Null}get effectiveType(){return c.Types.Null}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return""}release(){}toString(){return""}}},{t:c.Types.Number,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Number,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.Number}get effectiveType(){return c.Types.Number}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.String,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.String,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:c.Types.Date,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Date,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.Date}get effectiveType(){return c.Types.Date}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Hyperlink,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Hyperlink,text:d?d.text:void 0,hyperlink:d?d.hyperlink:void 0},d&&d.tooltip&&(this.model.tooltip=d.tooltip)}get value(){const f={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(f.tooltip=this.model.tooltip),f}set value(f){this.model={text:f.text,hyperlink:f.hyperlink},f.tooltip&&(this.model.tooltip=f.tooltip)}get text(){return this.model.text}set text(f){this.model.text=f}get hyperlink(){return this.model.hyperlink}set hyperlink(f){this.model.hyperlink=f}get type(){return c.Types.Hyperlink}get effectiveType(){return c.Types.Hyperlink}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:c.Types.Formula,f:class{constructor(f,d){this.cell=f,this.model={address:f.address,type:c.Types.Formula,shareType:d?d.shareType:void 0,ref:d?d.ref:void 0,formula:d?d.formula:void 0,sharedFormula:d?d.sharedFormula:void 0,result:d?d.result:void 0}}_copyModel(f){const d={},m=g=>{const p=f[g];p&&(d[g]=p)};return m("formula"),m("result"),m("ref"),m("shareType"),m("sharedFormula"),d}get value(){return this._copyModel(this.model)}set value(f){this.model=this._copyModel(f)}validate(f){switch(h.getType(f)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(f){this.model.formula=f}get formulaType(){return this.model.formula?u.FormulaType.Master:this.model.sharedFormula?u.FormulaType.Shared:u.FormulaType.None}get result(){return this.model.result}set result(f){this.model.result=f}get type(){return c.Types.Formula}get effectiveType(){const f=this.model.result;return f==null?u.ValueType.Null:f instanceof String||typeof f=="string"?u.ValueType.String:typeof f=="number"?u.ValueType.Number:f instanceof Date?u.ValueType.Date:f.text&&f.hyperlink?u.ValueType.Hyperlink:f.formula?u.ValueType.Formula:u.ValueType.Null}get address(){return this.model.address}set address(f){this.model.address=f}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:f}=this.cell,d=f.findCell(this.model.sharedFormula);this._translatedFormula=d&&l(d.formula,d.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:c.Types.Merge,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Merge,master:d?d.address:void 0},this._master=d,d&&d.addMergeRef()}get value(){return this._master.value}set value(f){f instanceof c?(this._master&&this._master.releaseMergeRef(),f.addMergeRef(),this._master=f):this._master.value=f}isMergedTo(f){return f===this._master}get master(){return this._master}get type(){return c.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:c.Types.JSON,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.String,value:JSON.stringify(d),rawValue:d}}get value(){return this.model.rawValue}set value(f){this.model.rawValue=f,this.model.value=JSON.stringify(f)}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:c.Types.SharedString,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.SharedString,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.SharedString}get effectiveType(){return c.Types.SharedString}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.RichText,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.String,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}toString(){return this.model.value.richText.map(f=>f.text).join("")}get type(){return c.Types.RichText}get effectiveType(){return c.Types.RichText}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:c.Types.Boolean,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Boolean,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.Boolean}get effectiveType(){return c.Types.Boolean}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Error,f:class{constructor(f,d){this.model={address:f.address,type:c.Types.Error,value:d}}get value(){return this.model.value}set value(f){this.model.value=f}get type(){return c.Types.Error}get effectiveType(){return c.Types.Error}get address(){return this.model.address}set address(f){this.model.address=f}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((f,d)=>(f[d.t]=d.f,f),[]),create(f,d,m){const g=this.types[f];if(!g)throw new Error("Could not create Value of type "+f);return new g(d,m)}};n.exports=c},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(r,n,i){const o=r("../utils/under-dash"),s=r("./enums"),u=r("../utils/col-cache");class l{constructor(c,h,f){this._worksheet=c,this._number=h,f!==!1&&(this.defn=f)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return u.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(c){c?(this.key=c.key,this.width=c.width!==void 0?c.width:9,this.outlineLevel=c.outlineLevel,c.style?this.style=c.style:this.style={},this.header=c.header,this._hidden=!!c.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(c){c!==void 0?(this._header=c,this.headers.forEach((h,f)=>{this._worksheet.getCell(f+1,this.number).value=h})):this._header=void 0}get key(){return this._key}set key(c){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=c,c&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(c){this._hidden=c}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(c){this._outlineLevel=c}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(c){return this.width===c.width&&this.hidden===c.hidden&&this.outlineLevel===c.outlineLevel&&o.isEqual(this.style,c.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const c=this.style;return!c||!(c.font||c.numFmt||c.alignment||c.border||c.fill||c.protection)}get headerCount(){return this.headers.length}eachCell(c,h){const f=this.number;h||(h=c,c=null),this._worksheet.eachRow(c,(d,m)=>{h(d.getCell(f),m)})}get values(){const c=[];return this.eachCell((h,f)=>{h&&h.type!==s.ValueType.Null&&(c[f]=h.value)}),c}set values(c){if(!c)return;const h=this.number;let f=0;c.hasOwnProperty("0")&&(f=1),c.forEach((d,m)=>{this._worksheet.getCell(m+f,h).value=d})}_applyStyle(c,h){return this.style[c]=h,this.eachCell(f=>{f[c]=h}),h}get numFmt(){return this.style.numFmt}set numFmt(c){this._applyStyle("numFmt",c)}get font(){return this.style.font}set font(c){this._applyStyle("font",c)}get alignment(){return this.style.alignment}set alignment(c){this._applyStyle("alignment",c)}get protection(){return this.style.protection}set protection(c){this._applyStyle("protection",c)}get border(){return this.style.border}set border(c){this._applyStyle("border",c)}get fill(){return this.style.fill}set fill(c){this._applyStyle("fill",c)}static toModel(c){const h=[];let f=null;return c&&c.forEach((d,m)=>{d.isDefault?f&&(f=null):f&&d.equivalentTo(f)?f.max=m+1:(f={min:m+1,max:m+1,width:d.width!==void 0?d.width:9,style:d.style,isCustomWidth:d.isCustomWidth,hidden:d.hidden,outlineLevel:d.outlineLevel,collapsed:d.collapsed},h.push(f))}),h.length?h:void 0}static fromModel(c,h){const f=[];let d=1,m=0;for(h=(h=h||[]).sort(function(g,p){return g.min-p.min});m{h.removeCellEx(c)})}forEach(c){o.each(this.matrixMap,(h,f)=>{h.forEach(d=>{c(f,d)})})}getNames(c){return this.getNamesEx(s.decodeEx(c))}getNamesEx(c){return o.map(this.matrixMap,(h,f)=>h.findCellEx(c)&&f).filter(Boolean)}_explore(c,h){h.mark=!1;const{sheetName:f}=h,d=new l(h.row,h.col,h.row,h.col,f);let m,g;function p(y,b){const _=c.findCellAt(f,y,h.col);return!(!_||!_.mark)&&(d[b]=y,_.mark=!1,!0)}for(g=h.row-1;p(g,"top");g--);for(g=h.row+1;p(g,"bottom");g++);function v(y,b){const _=[];for(g=d.top;g<=d.bottom;g++){const E=c.findCellAt(f,g,y);if(!E||!E.mark)return!1;_.push(E)}d[b]=y;for(let E=0;E<_.length;E++)_[E].mark=!1;return!0}for(m=h.col-1;v(m,"left");m--);for(m=h.col+1;v(m,"right");m++);return d}getRanges(c,h){return(h=h||this.matrixMap[c])?(h.forEach(f=>{f.mark=!0}),{name:c,ranges:h.map(f=>f.mark&&this._explore(h,f)).filter(Boolean).map(f=>f.$shortRange)}):{name:c,ranges:[]}}normaliseMatrix(c,h){c.forEachInSheet(h,(f,d,m)=>{f&&(f.row===d&&f.col===m||(f.row=d,f.col=m,f.address=s.n2l(m)+d))})}spliceRows(c,h,f,d){o.each(this.matrixMap,m=>{m.spliceRows(c,h,f,d),this.normaliseMatrix(m,c)})}spliceColumns(c,h,f,d){o.each(this.matrixMap,m=>{m.spliceColumns(c,h,f,d),this.normaliseMatrix(m,c)})}get model(){return o.map(this.matrixMap,(c,h)=>this.getRanges(h,c)).filter(c=>c.ranges.length)}set model(c){const h=this.matrixMap={};c.forEach(f=>{const d=h[f.name]=new u;f.ranges.forEach(m=>{a.test(m.split("!").pop()||"")&&d.addCell(m)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(r,n,i){n.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(r,n,i){const o=r("../utils/col-cache"),s=r("./anchor");n.exports=class{constructor(u,l){this.worksheet=u,this.model=l}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(u){let{type:l,imageId:a,range:c,hyperlinks:h}=u;if(this.type=l,this.imageId=a,l==="image")if(typeof c=="string"){const f=o.decode(c);this.range={tl:new s(this.worksheet,{col:f.left,row:f.top},-1),br:new s(this.worksheet,{col:f.right,row:f.bottom},0),editAs:"oneCell"}}else this.range={tl:new s(this.worksheet,c.tl,0),br:c.br&&new s(this.worksheet,c.br,0),ext:c.ext,editAs:c.editAs,hyperlinks:h||c.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(r,n,i){const o=r("../utils/under-dash");class s{constructor(l){this.note=l}get model(){let l=null;switch(typeof this.note){case"string":l={type:"note",note:{texts:[{text:this.note}]}};break;default:l={type:"note",note:this.note}}return o.deepMerge({},s.DEFAULT_CONFIGS,l)}set model(l){const{note:a}=l,{texts:c}=a;c.length===1&&Object.keys(c[0]).length===1?this.note=c[0].text:this.note=a}static fromModel(l){const a=new s;return a.model=l,a}}s.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},n.exports=s},{"../utils/under-dash":26}],10:[function(r,n,i){const o=r("../utils/col-cache");class s{constructor(){this.decode(arguments)}setTLBR(l,a,c,h,f){if(arguments.length<4){const d=o.decodeAddress(l),m=o.decodeAddress(a);this.model={top:Math.min(d.row,m.row),left:Math.min(d.col,m.col),bottom:Math.max(d.row,m.row),right:Math.max(d.col,m.col),sheetName:c},this.setTLBR(d.row,d.col,m.row,m.col,f)}else this.model={top:Math.min(l,c),left:Math.min(a,h),bottom:Math.max(l,c),right:Math.max(a,h),sheetName:f}}decode(l){switch(l.length){case 5:this.setTLBR(l[0],l[1],l[2],l[3],l[4]);break;case 4:this.setTLBR(l[0],l[1],l[2],l[3]);break;case 3:this.setTLBR(l[0],l[1],l[2]);break;case 2:this.setTLBR(l[0],l[1]);break;case 1:{const a=l[0];if(a instanceof s)this.model={top:a.model.top,left:a.model.left,bottom:a.model.bottom,right:a.model.right,sheetName:a.sheetName};else if(a instanceof Array)this.decode(a);else if(a.top&&a.left&&a.bottom&&a.right)this.model={top:a.top,left:a.left,bottom:a.bottom,right:a.right,sheetName:a.sheetName};else{const c=o.decodeEx(a);c.top?this.model={top:c.top,left:c.left,bottom:c.bottom,right:c.right,sheetName:c.sheetName}:this.model={top:c.row,left:c.col,bottom:c.row,right:c.col,sheetName:c.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+l.length)}}get top(){return this.model.top||1}set top(l){this.model.top=l}get left(){return this.model.left||1}set left(l){this.model.left=l}get bottom(){return this.model.bottom||1}set bottom(l){this.model.bottom=l}get right(){return this.model.right||1}set right(l){this.model.right=l}get sheetName(){return this.model.sheetName}set sheetName(l){this.model.sheetName=l}get _serialisedSheetName(){const{sheetName:l}=this.model;return l?/^[a-zA-Z0-9]*$/.test(l)?l+"!":`'${l}'!`:""}expand(l,a,c,h){(!this.model.top||lthis.bottom)&&(this.bottom=c),(!this.model.right||h>this.right)&&(this.right=h)}expandRow(l){if(l){const{dimensions:a,number:c}=l;a&&this.expand(c,a.min,c,a.max)}}expandToAddress(l){const a=o.decodeEx(l);this.expand(a.row,a.col,a.row,a.col)}get tl(){return o.n2l(this.left)+this.top}get $t$l(){return`$${o.n2l(this.left)}$${this.top}`}get br(){return o.n2l(this.right)+this.bottom}get $b$r(){return`$${o.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(l){return(!l.sheetName||!this.sheetName||l.sheetName===this.sheetName)&&!(l.bottomthis.bottom)&&!(l.rightthis.right)}contains(l){const a=o.decodeEx(l);return this.containsEx(a)}containsEx(l){return(!l.sheetName||!this.sheetName||l.sheetName===this.sheetName)&&l.row>=this.top&&l.row<=this.bottom&&l.col>=this.left&&l.col<=this.right}forEachAddress(l){for(let a=this.left;a<=this.right;a++)for(let c=this.top;c<=this.bottom;c++)l(o.encodeAddress(c,a),c,a)}}n.exports=s},{"../utils/col-cache":19}],11:[function(r,n,i){const o=r("../utils/under-dash"),s=r("./enums"),u=r("../utils/col-cache"),l=r("./cell");n.exports=class{constructor(a,c){this._worksheet=a,this._number=c,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(a){return this._cells[a-1]}getCellEx(a){let c=this._cells[a.col-1];if(!c){const h=this._worksheet.getColumn(a.col);c=new l(this,h,a.address),this._cells[a.col-1]=c}return c}getCell(a){if(typeof a=="string"){const c=this._worksheet.getColumnKey(a);a=c?c.number:u.l2n(a)}return this._cells[a-1]||this.getCellEx({address:u.encodeAddress(this._number,a),row:this._number,col:a})}splice(a,c){const h=a+c;for(var f=arguments.length,d=new Array(f>2?f-2:0),m=2;m0)for(v=p;v>=h;v--)y=this._cells[v-1],y?(b=this.getCell(v+g),b.value=y.value,b.style=y.style,b._comment=y._comment):this._cells[v+g-1]=void 0;for(v=0;v{h&&h.type!==s.ValueType.Null&&c(h,f+1)})}addPageBreak(a,c){const h=this._worksheet,f=Math.max(0,a-1)||0,d=Math.max(0,c-1)||16838,m={id:this._number,max:d,man:1};f&&(m.min=f),h.rowBreaks.push(m)}get values(){const a=[];return this._cells.forEach(c=>{c&&c.type!==s.ValueType.Null&&(a[c.col]=c.value)}),a}set values(a){if(this._cells=[],a)if(a instanceof Array){let c=0;a.hasOwnProperty("0")&&(c=1),a.forEach((h,f)=>{h!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,f+c),row:this._number,col:f+c}).value=h)})}else this._worksheet.eachColumnKey((c,h)=>{a[h]!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,c.number),row:this._number,col:c.number}).value=a[h])})}get hasValues(){return o.some(this._cells,a=>a&&a.type!==s.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let a=0;return this.eachCell(()=>{a++}),a}get dimensions(){let a=0,c=0;return this._cells.forEach(h=>{h&&h.type!==s.ValueType.Null&&((!a||a>h.col)&&(a=h.col),c0?{min:a,max:c}:null}_applyStyle(a,c){return this.style[a]=c,this._cells.forEach(h=>{h&&(h[a]=c)}),c}get numFmt(){return this.style.numFmt}set numFmt(a){this._applyStyle("numFmt",a)}get font(){return this.style.font}set font(a){this._applyStyle("font",a)}get alignment(){return this.style.alignment}set alignment(a){this._applyStyle("alignment",a)}get protection(){return this.style.protection}set protection(a){this._applyStyle("protection",a)}get border(){return this.style.border}set border(a){this._applyStyle("border",a)}get fill(){return this.style.fill}set fill(a){this._applyStyle("fill",a)}get hidden(){return!!this._hidden}set hidden(a){this._hidden=a}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(a){this._outlineLevel=a}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const a=[];let c=0,h=0;return this._cells.forEach(f=>{if(f){const d=f.model;d&&((!c||c>f.col)&&(c=f.col),h{switch(h.type){case l.Types.Merge:break;default:{let f;if(h.address)f=u.decodeAddress(h.address);else if(c){const{row:d}=c,m=c.col+1;f={row:d,col:m,address:u.encodeAddress(d,m),$col$row:`$${u.n2l(m)}$${d}`}}c=f,this.getCellEx(f).model=h;break}}}),a.height?this.height=a.height:delete this.height,this.hidden=a.hidden,this.outlineLevel=a.outlineLevel||0,this.style=a.style&&JSON.parse(JSON.stringify(a.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(r,n,i){const o=r("../utils/col-cache");class s{constructor(l,a,c){this.table=l,this.column=a,this.index=c}_set(l,a){this.table.cacheState(),this.column[l]=a}get name(){return this.column.name}set name(l){this._set("name",l)}get filterButton(){return this.column.filterButton}set filterButton(l){this.column.filterButton=l}get style(){return this.column.style}set style(l){this.column.style=l}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(l){this._set("totalsRowLabel",l)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(l){this._set("totalsRowFunction",l)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(l){this._set("totalsRowResult",l)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(l){this._set("totalsRowFormula",l)}}n.exports=class{constructor(u,l){this.worksheet=u,l&&(this.table=l,this.validate(),this.store())}getFormula(u){switch(u.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${u.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${u.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${u.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${u.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${u.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${u.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${u.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${u.name}])`;case"custom":return u.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+u.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:u}=this,l=(g,p,v)=>{g[p]===void 0&&(g[p]=v)};l(u,"headerRow",!0),l(u,"totalsRow",!1),l(u,"style",{}),l(u.style,"theme","TableStyleMedium2"),l(u.style,"showFirstColumn",!1),l(u.style,"showLastColumn",!1),l(u.style,"showRowStripes",!1),l(u.style,"showColumnStripes",!1);const a=(g,p)=>{if(!g)throw new Error(p)};a(u.ref,"Table must have ref"),a(u.columns,"Table must have column definitions"),a(u.rows,"Table must have row definitions"),u.tl=o.decodeAddress(u.ref);const{row:c,col:h}=u.tl;a(c>0,"Table must be on valid row"),a(h>0,"Table must be on valid col");const{width:f,filterHeight:d,tableHeight:m}=this;u.autoFilterRef=o.encode(c,h,c+d-1,h+f-1),u.tableRef=o.encode(c,h,c+m-1,h+f-1),u.columns.forEach((g,p)=>{a(g.name,`Column ${p} must have a name`),p===0?l(g,"totalsRowLabel","Total"):(l(g,"totalsRowFunction","none"),g.totalsRowFormula=this.getFormula(g))})}store(){const u=(d,m)=>{m&&Object.keys(m).forEach(g=>{d[g]=m[g]})},{worksheet:l,table:a}=this,{row:c,col:h}=a.tl;let f=0;if(a.headerRow){const d=l.getRow(c+f++);a.columns.forEach((m,g)=>{const{style:p,name:v}=m,y=d.getCell(h+g);y.value=v,u(y,p)})}if(a.rows.forEach(d=>{const m=l.getRow(c+f++);d.forEach((g,p)=>{const v=m.getCell(h+p);v.value=g,u(v,a.columns[p].style)})}),a.totalsRow){const d=l.getRow(c+f++);a.columns.forEach((m,g)=>{const p=d.getCell(h+g);if(g===0)p.value=m.totalsRowLabel;else{const v=this.getFormula(m);p.value=v?{formula:m.totalsRowFormula,result:m.totalsRowResult}:null}u(p,m.style)})}}load(u){const{table:l}=this,{row:a,col:c}=l.tl;let h=0;if(l.headerRow){const f=u.getRow(a+h++);l.columns.forEach((d,m)=>{f.getCell(c+m).value=d.name})}if(l.rows.forEach(f=>{const d=u.getRow(a+h++);f.forEach((m,g)=>{d.getCell(c+g).value=m})}),l.totalsRow){const f=u.getRow(a+h++);l.columns.forEach((d,m)=>{const g=f.getCell(c+m);m===0?g.value=d.totalsRowLabel:this.getFormula(d)&&(g.value={formula:d.totalsRowFormula,result:d.totalsRowResult})})}}get model(){return this.table}set model(u){this.table=u}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const u=o.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let l=0;l1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(u,l)}getColumn(u){const l=this.table.columns[u];return new s(this,l,u)}addColumn(u,l,a){this.cacheState(),a===void 0?(this.table.columns.push(u),this.table.rows.forEach((c,h)=>{c.push(l[h])})):(this.table.columns.splice(a,0,u),this.table.rows.forEach((c,h)=>{c.splice(a,0,l[h])}))}removeColumns(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(u,l),this.table.rows.forEach(a=>{a.splice(u,l)})}_assign(u,l,a){this.cacheState(),u[l]=a}get ref(){return this.table.ref}set ref(u){this._assign(this.table,"ref",u)}get name(){return this.table.name}set name(u){this.table.name=u}get displayName(){return this.table.displyName||this.table.name}set displayNamename(u){this.table.displayName=u}get headerRow(){return this.table.headerRow}set headerRow(u){this._assign(this.table,"headerRow",u)}get totalsRow(){return this.table.totalsRow}set totalsRow(u){this._assign(this.table,"totalsRow",u)}get theme(){return this.table.style.name}set theme(u){this.table.style.name=u}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(u){this.table.style.showFirstColumn=u}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(u){this.table.style.showLastColumn=u}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(u){this.table.style.showRowStripes=u}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(u){this.table.style.showColumnStripes=u}}},{"../utils/col-cache":19}],13:[function(r,n,i){const o=r("./worksheet"),s=r("./defined-names"),u=r("../xlsx/xlsx"),l=r("../csv/csv");n.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new s}get xlsx(){return this._xlsx||(this._xlsx=new u(this)),this._xlsx}get csv(){return this._csv||(this._csv=new l(this)),this._csv}get nextId(){for(let a=1;a(p&&p.orderNo)>g?p.orderNo:g,0),d=Object.assign({},c,{id:h,name:a,orderNo:f+1,workbook:this}),m=new o(d);return this._worksheets[h]=m,m}removeWorksheetEx(a){delete this._worksheets[a.id]}removeWorksheet(a){const c=this.getWorksheet(a);c&&c.destroy()}getWorksheet(a){return a===void 0?this._worksheets.find(Boolean):typeof a=="number"?this._worksheets[a]:typeof a=="string"?this._worksheets.find(c=>c&&c.name===a):void 0}get worksheets(){return this._worksheets.slice(1).sort((a,c)=>a.orderNo-c.orderNo).filter(Boolean)}eachSheet(a){this.worksheets.forEach(c=>{a(c,c.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(a){const c=this.media.length;return this.media.push(Object.assign({},a,{type:"image"})),c}getImage(a){return this.media[a]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(a=>a.model),sheets:this.worksheets.map(a=>a.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(a){this.creator=a.creator,this.lastModifiedBy=a.lastModifiedBy,this.lastPrinted=a.lastPrinted,this.created=a.created,this.modified=a.modified,this.company=a.company,this.manager=a.manager,this.title=a.title,this.subject=a.subject,this.keywords=a.keywords,this.category=a.category,this.description=a.description,this.language=a.language,this.revision=a.revision,this.contentStatus=a.contentStatus,this.properties=a.properties,this.calcProperties=a.calcProperties,this._worksheets=[],a.worksheets.forEach(c=>{const{id:h,name:f,state:d}=c,m=a.sheets&&a.sheets.findIndex(g=>g.id===h);(this._worksheets[h]=new o({id:h,name:f,orderNo:m,state:d,workbook:this})).model=c}),this._definedNames.model=a.definedNames,this.views=a.views,this._themes=a.themes,this.media=a.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(r,n,i){const o=r("../utils/under-dash"),s=r("../utils/col-cache"),u=r("./range"),l=r("./row"),a=r("./column"),c=r("./enums"),h=r("./image"),f=r("./table"),d=r("./data-validations"),m=r("../utils/encryptor"),{copyStyle:g}=r("../utils/copy-style");n.exports=class{constructor(p){p=p||{},this._workbook=p.workbook,this.id=p.id,this.orderNo=p.orderNo,this.name=p.name,this.state=p.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},p.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!p.pageSetup||!p.pageSetup.fitToWidth&&!p.pageSetup.fitToHeight||p.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},p.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},p.headerFooter),this.dataValidations=new d,this.views=p.views||[],this.autoFilter=p.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(p){if(p===void 0&&(p="sheet"+this.id),this._name!==p){if(typeof p!="string")throw new Error("The name has to be a string.");if(p==="")throw new Error("The name can't be empty.");if(p==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(p))throw new Error(`Worksheet name ${p} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(p))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+p);if(p&&p.length>31&&(console.warn(`Worksheet name ${p} exceeds 31 chars. This will be truncated`),p=p.substring(0,31)),this._workbook._worksheets.find(v=>v&&v.name.toLowerCase()===p.toLowerCase()))throw new Error("Worksheet name already exists: "+p);this._name=p}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const p=new u;return this._rows.forEach(v=>{if(v){const y=v.dimensions;y&&p.expand(v.number,y.min,v.number,y.max)}}),p}get columns(){return this._columns}set columns(p){this._headerRowCount=p.reduce((b,_)=>{const E=(_.header?1:_.headers&&_.headers.length)||0;return Math.max(b,E)},0);let v=1;const y=this._columns=[];p.forEach(b=>{const _=new a(this,v++,!1);y.push(_),_.defn=b})}getColumnKey(p){return this._keys[p]}setColumnKey(p,v){this._keys[p]=v}deleteColumnKey(p){delete this._keys[p]}eachColumnKey(p){o.each(this._keys,p)}getColumn(p){if(typeof p=="string"){const v=this._keys[p];if(v)return v;p=s.l2n(p)}if(this._columns||(this._columns=[]),p>this._columns.length){let v=this._columns.length+1;for(;v<=p;)this._columns.push(new a(this,v++))}return this._columns[p-1]}spliceColumns(p,v){const y=this._rows.length;for(var b=arguments.length,_=new Array(b>2?b-2:0),E=2;E0)for(let D=0;D{F.push(V[D]||null)});const U=this.getRow(D+1);U.splice.apply(U,F)}else this._rows.forEach(D=>{D&&D.splice(p,v)});const $=_.length-v,M=p+v,P=this._columns.length;if($<0)for(let D=p+_.length;D<=P;D++)this.getColumn(D).defn=this.getColumn(D-$).defn;else if($>0)for(let D=P;D>=M;D--)this.getColumn(D+$).defn=this.getColumn(D).defn;for(let D=p;D{p=Math.max(p,v.cellCount)}),p}get actualColumnCount(){const p=[];let v=0;return this.eachRow(y=>{y.eachCell(b=>{let{col:_}=b;p[_]||(p[_]=!0,v++)})}),v}_commitRow(){}get _lastRowNumber(){const p=this._rows;let v=p.length;for(;v>0&&p[v-1]===void 0;)v--;return v}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(p){return this._rows[p-1]}findRows(p,v){return this._rows.slice(p-1,p-1+v)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let p=0;return this.eachRow(()=>{p++}),p}getRow(p){let v=this._rows[p-1];return v||(v=this._rows[p-1]=new l(this,p)),v}getRows(p,v){if(v<1)return;const y=[];for(let b=p;b1&&arguments[1]!==void 0?arguments[1]:"n";const y=this._nextRow,b=this.getRow(y);return b.values=p,this._setStyleOption(y,v[0]==="i"?v:"n"),b}addRows(p){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const y=[];return p.forEach(b=>{y.push(this.addRow(b,v))}),y}insertRow(p,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(p,0,v),this._setStyleOption(p,y),this.getRow(p)}insertRows(p,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(p,0,...v),y!=="n")for(let b=0;b1&&arguments[1]!==void 0?arguments[1]:"n";v[0]==="o"&&this.findRow(p+1)!==void 0?this._copyStyle(p+1,p,v[1]==="+"):v[0]==="i"&&this.findRow(p-1)!==void 0&&this._copyStyle(p-1,p,v[1]==="+")}_copyStyle(p,v){let y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const b=this.getRow(p),_=this.getRow(v);_.style=g(b.style),b.eachCell({includeEmpty:y},(E,$)=>{_.getCell($).style=g(E.style)}),_.height=b.height}duplicateRow(p,v){let y=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const b=this._rows[p-1],_=new Array(v).fill(b.values);this.spliceRows(p+1,y?0:v,..._);for(let E=0;E{$.getCell(P).style=M.style})}}spliceRows(p,v){const y=p+v;for(var b=arguments.length,_=new Array(b>2?b-2:0),E=2;E{U.getCell(A).style=V.style}),this._rows[D-1]=void 0}else this._rows[D+M-1]=void 0;else if(M>0)for(D=P;D>=y;D--)if(F=this._rows[D-1],F){const U=this.getRow(D+M);U.values=F.values,U.style=F.style,U.height=F.height,F.eachCell({includeEmpty:!0},(V,A)=>{if(U.getCell(A).style=V.style,V._value.constructor.name==="MergeValue"){const O=this.getRow(V._row._number+$).getCell(A),C=V._value._master,w=this.getRow(C._row._number+$).getCell(C._column._number);O.merge(w)}})}else this._rows[D+M-1]=void 0;for(D=0;D<$;D++){const U=this.getRow(p+D);U.style={},U.values=_[D]}this.workbook.definedNames.spliceRows(this.name,p,v,$)}eachRow(p,v){if(v||(v=p,p=void 0),p&&p.includeEmpty){const y=this._rows.length;for(let b=1;b<=y;b++)v(this.getRow(b),b)}else this._rows.forEach(y=>{y&&y.hasValues&&v(y,y.number)})}getSheetValues(){const p=[];return this._rows.forEach(v=>{v&&(p[v.number]=v.values)}),p}findCell(p,v){const y=s.getAddress(p,v),b=this._rows[y.row-1];return b?b.findCell(y.col):void 0}getCell(p,v){const y=s.getAddress(p,v);return this.getRow(y.row).getCellEx(y)}mergeCells(){for(var p=arguments.length,v=new Array(p),y=0;y{if(b.intersects(p))throw new Error("Cannot merge already merged cells")});const y=this.getCell(p.top,p.left);for(let b=p.top;b<=p.bottom;b++)for(let _=p.left;_<=p.right;_++)(b>p.top||_>p.left)&&this.getCell(b,_).merge(y,v);this._merges[y.address]=p}_unMergeMaster(p){const v=this._merges[p.address];if(v){for(let y=v.top;y<=v.bottom;y++)for(let b=v.left;b<=v.right;b++)this.getCell(y,b).unmerge();delete this._merges[p.address]}}get hasMerges(){return o.some(this._merges,Boolean)}unMergeCells(){for(var p=arguments.length,v=new Array(p),y=0;y3&&arguments[3]!==void 0?arguments[3]:"shared";const _=s.decode(p),{top:E,left:$,bottom:M,right:P}=_,D=P-$+1,F=s.encodeAddress(E,$),U=b==="shared";let V;V=typeof y=="function"?y:Array.isArray(y)?Array.isArray(y[0])?(O,C)=>y[O-E][C-$]:(O,C)=>y[(O-E)*D+(C-$)]:()=>{};let A=!0;for(let O=E;O<=M;O++)for(let C=$;C<=P;C++)A?(this.getCell(O,C).value={shareType:b,formula:v,ref:p,result:V(O,C)},A=!1):this.getCell(O,C).value=U?{sharedFormula:F,result:V(O,C)}:V(O,C)}addImage(p,v){const y={type:"image",imageId:p,range:v};this._media.push(new h(this,y))}getImages(){return this._media.filter(p=>p.type==="image")}addBackgroundImage(p){const v={type:"background",imageId:p};this._media.push(new h(this,v))}getBackgroundImageId(){const p=this._media.find(v=>v.type==="background");return p&&p.imageId}protect(p,v){return new Promise(y=>{this.sheetProtection={sheet:!0},v&&"spinCount"in v&&(v.spinCount=Number.isFinite(v.spinCount)?Math.round(Math.max(0,v.spinCount)):1e5),p&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=m.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=v&&"spinCount"in v?v.spinCount:1e5,this.sheetProtection.hashValue=m.convertPasswordToHash(p,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),v&&(this.sheetProtection=Object.assign(this.sheetProtection,v),!p&&"spinCount"in v&&delete this.sheetProtection.spinCount),y()})}unprotect(){this.sheetProtection=null}addTable(p){const v=new f(this,p);return this.tables[p.name]=v,v}getTable(p){return this.tables[p]}removeTable(p){delete this.tables[p]}getTables(){return Object.values(this.tables)}addConditionalFormatting(p){this.conditionalFormattings.push(p)}removeConditionalFormatting(p){typeof p=="number"?this.conditionalFormattings.splice(p,1):this.conditionalFormattings=p instanceof Function?this.conditionalFormattings.filter(p):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(p){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=p}get model(){const p={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(b=>b.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(b=>b.model),conditionalFormattings:this.conditionalFormattings};p.cols=a.toModel(this.columns);const v=p.rows=[],y=p.dimensions=new u;return this._rows.forEach(b=>{const _=b&&b.model;_&&(y.expand(_.number,_.min,_.number,_.max),v.push(_))}),p.merges=[],o.each(this._merges,b=>{p.merges.push(b.range)}),p}_parseRows(p){this._rows=[],p.rows.forEach(v=>{const y=new l(this,v.number);this._rows[y.number-1]=y,y.model=v})}_parseMergeCells(p){o.each(p.mergeCells,v=>{this.mergeCellsWithoutStyle(v)})}set model(p){this.name=p.name,this._columns=a.fromModel(this,p.cols),this._parseRows(p),this._parseMergeCells(p),this.dataValidations=new d(p.dataValidations),this.properties=p.properties,this.pageSetup=p.pageSetup,this.headerFooter=p.headerFooter,this.views=p.views,this.autoFilter=p.autoFilter,this._media=p.media.map(v=>new h(this,v)),this.sheetProtection=p.sheetProtection,this.tables=p.tables.reduce((v,y)=>{const b=new f;return b.model=y,v[y.name]=b,v},{}),this.conditionalFormattings=p.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(r,n,i){r("core-js/modules/es.promise"),r("core-js/modules/es.promise.finally"),r("core-js/modules/es.object.assign"),r("core-js/modules/es.object.keys"),r("core-js/modules/es.object.values"),r("core-js/modules/es.symbol"),r("core-js/modules/es.symbol.async-iterator"),r("core-js/modules/es.array.iterator"),r("core-js/modules/es.array.includes"),r("core-js/modules/es.array.find-index"),r("core-js/modules/es.array.find"),r("core-js/modules/es.string.from-code-point"),r("core-js/modules/es.string.includes"),r("core-js/modules/es.number.is-nan"),r("regenerator-runtime/runtime");const o={Workbook:r("./doc/workbook")},s=r("./doc/enums");Object.keys(s).forEach(u=>{o[u]=s[u]}),n.exports=o},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(r,n,i){const o=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");i.bufferToString=function(s){return typeof s=="string"?s:o?o.decode(s):s.toString()}},{}],17:[function(r,n,i){const o=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:s}=r("buffer");i.stringToBuffer=function(u){return typeof u!="string"?u:o?s.from(o.encode(u).buffer):s.from(u)}},{buffer:220}],18:[function(r,n,i){const o=r("./under-dash"),s=r("./col-cache");n.exports=class{constructor(u){this.template=u,this.sheets={}}addCell(u){this.addCellEx(s.decodeEx(u))}getCell(u){return this.findCellEx(s.decodeEx(u),!0)}findCell(u){return this.findCellEx(s.decodeEx(u),!1)}findCellAt(u,l,a){const c=this.sheets[u],h=c&&c[l];return h&&h[a]}addCellEx(u){if(u.top)for(let l=u.top;l<=u.bottom;l++)for(let a=u.left;a<=u.right;a++)this.getCellAt(u.sheetName,l,a);else this.findCellEx(u,!0)}getCellEx(u){return this.findCellEx(u,!0)}findCellEx(u,l){const a=this.findSheet(u,l),c=this.findSheetRow(a,u,l);return this.findRowCell(c,u,l)}getCellAt(u,l,a){const c=this.sheets[u]||(this.sheets[u]=[]),h=c[l]||(c[l]=[]);return h[a]||(h[a]={sheetName:u,address:s.n2l(a)+l,row:l,col:a})}removeCellEx(u){const l=this.findSheet(u);if(!l)return;const a=this.findSheetRow(l,u);a&&delete a[u.col]}forEachInSheet(u,l){const a=this.sheets[u];a&&a.forEach((c,h)=>{c&&c.forEach((f,d)=>{f&&l(f,h,d)})})}forEach(u){o.each(this.sheets,(l,a)=>{this.forEachInSheet(a,u)})}map(u){const l=[];return this.forEach(a=>{l.push(u(a))}),l}findSheet(u,l){const a=u.sheetName;return this.sheets[a]?this.sheets[a]:l?this.sheets[a]=[]:void 0}findSheetRow(u,l,a){const{row:c}=l;return u&&u[c]?u[c]:a?u[c]=[]:void 0}findRowCell(u,l,a){const{col:c}=l;return u&&u[c]?u[c]:a?u[c]=this.template?Object.assign(l,JSON.parse(JSON.stringify(this.template))):l:void 0}spliceRows(u,l,a,c){const h=this.sheets[u];if(h){const f=[];for(let d=0;d{d.splice(l,a,...f)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(r,n,i){const o=/^[A-Z]+\d+$/,s={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:u=>u<=26?1:u<=676?2:3,_fill(u){let l,a,c,h,f,d=1;if(u>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&u>=1){for(;d<=26;)l=this._dictionary[d-1],this._n2l[d]=l,this._l2n[l]=d,d++;this._l2nFill=1}if(this._l2nFill<2&&u>=2){for(d=27;d<=702;)a=d-27,c=a%26,h=Math.floor(a/26),l=this._dictionary[h]+this._dictionary[c],this._n2l[d]=l,this._l2n[l]=d,d++;this._l2nFill=2}if(this._l2nFill<3&&u>=3){for(d=703;d<=16384;)a=d-703,c=a%26,h=Math.floor(a/26)%26,f=Math.floor(a/676),l=this._dictionary[f]+this._dictionary[h]+this._dictionary[c],this._n2l[d]=l,this._l2n[l]=d,d++;this._l2nFill=3}},l2n(u){if(this._l2n[u]||this._fill(u.length),!this._l2n[u])throw new Error("Out of bounds. Invalid column letter: "+u);return this._l2n[u]},n2l(u){if(u<1||u>16384)throw new Error(u+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[u]||this._fill(this._level(u)),this._n2l[u]},_hash:{},validateAddress(u){if(!o.test(u))throw new Error("Invalid Address: "+u);return!0},decodeAddress(u){const l=u.length<5&&this._hash[u];if(l)return l;let a=!1,c="",h=0,f=!1,d="",m=0;for(let p,v=0;v=65&&p<=90)a=!0,c+=u[v],h=26*h+p-64;else if(p>=48&&p<=57)f=!0,d+=u[v],m=10*m+p-48;else if(f&&a&&p!==36)break;if(a){if(h>16384)throw new Error("Out of bounds. Invalid column letter: "+c)}else h=void 0;f||(m=void 0);const g={address:u=c+d,col:h,row:m,$col$row:`$${c}$${d}`};return h<=100&&m<=100&&(this._hash[u]=g,this._hash[g.$col$row]=g),g},getAddress(u,l){if(l){const a=this.n2l(l)+u;return this.decodeAddress(a)}return this.decodeAddress(u)},decode(u){const l=u.split(":");if(l.length===2){const a=this.decodeAddress(l[0]),c=this.decodeAddress(l[1]),h={top:Math.min(a.row,c.row),left:Math.min(a.col,c.col),bottom:Math.max(a.row,c.row),right:Math.max(a.col,c.col)};return h.tl=this.n2l(h.left)+h.top,h.br=this.n2l(h.right)+h.bottom,h.dimensions=`${h.tl}:${h.br}`,h}return this.decodeAddress(u)},decodeEx(u){const l=u.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),a=l[1]||l[2],c=l[3],h=c.split(":");if(h.length>1){let d=this.decodeAddress(h[0]),m=this.decodeAddress(h[1]);const g=Math.min(d.row,m.row),p=Math.min(d.col,m.col),v=Math.max(d.row,m.row),y=Math.max(d.col,m.col);return d=this.n2l(p)+g,m=this.n2l(y)+v,{top:g,left:p,bottom:v,right:y,sheetName:a,tl:{address:d,col:p,row:g,$col$row:`$${this.n2l(p)}$${g}`,sheetName:a},br:{address:m,col:y,row:v,$col$row:`$${this.n2l(y)}$${v}`,sheetName:a},dimensions:`${d}:${m}`}}if(c.startsWith("#"))return a?{sheetName:a,error:c}:{error:c};const f=this.decodeAddress(c);return a?{sheetName:a,...f}:f},encodeAddress:(u,l)=>s.n2l(l)+u,encode(){switch(arguments.length){case 2:return s.encodeAddress(arguments[0],arguments[1]);case 4:return`${s.encodeAddress(arguments[0],arguments[1])}:${s.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(u,l){const[a,c,,h,f]=u,[d,m]=l;return d>=a&&d<=h&&m>=c&&m<=f}};n.exports=s},{}],20:[function(r,n,i){const o=(u,l)=>({...u,...l.reduce((a,c)=>(u[c]&&(a[c]={...u[c]}),a),{})}),s=function(u,l,a){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];u[a]&&(l[a]=o(u[a],c))};i.copyStyle=u=>{if(!u)return u;if(l=u,Object.keys(l).length===0)return{};var l;const a={...u};return s(u,a,"font",["color"]),s(u,a,"alignment"),s(u,a,"protection"),u.border&&(s(u,a,"border"),s(u.border,a.border,"top",["color"]),s(u.border,a.border,"left",["color"]),s(u.border,a.border,"bottom",["color"]),s(u.border,a.border,"right",["color"]),s(u.border,a.border,"diagonal",["color"])),u.fill&&(s(u,a,"fill",["fgColor","bgColor","center"]),u.fill.stops&&(a.fill.stops=u.fill.stops.map(c=>o(c,["color"])))),a}},{}],21:[function(r,n,i){(function(o){(function(){const s=r("crypto"),u={hash(l){const a=s.createHash(l);for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;fs.randomBytes(l)};n.exports=u}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(r,n,i){const{SaxesParser:o}=r("saxes"),{PassThrough:s}=r("readable-stream"),{bufferToString:u}=r("./browser-buffer-decode");n.exports=async function*(l){l.pipe&&!l[Symbol.asyncIterator]&&(l=l.pipe(new s));const a=new o;let c;a.on("error",f=>{c=f});let h=[];a.on("opentag",f=>h.push({eventType:"opentag",value:f})),a.on("text",f=>h.push({eventType:"text",value:f})),a.on("closetag",f=>h.push({eventType:"closetag",value:f}));for await(const f of l){if(a.write(u(f)),c)throw c;yield h,h=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(r,n,i){const o=r("./col-cache"),s=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,u=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;n.exports={slideFormula:function(l,a,c){const h=o.decode(a),f=o.decode(c);return l.replace(s,(d,m,g,p,v)=>{if(v)return d;const y=u.exec(p);if(y){const b=y[1],_=y[2].toUpperCase(),E=y[3],$=y[4];if(_.length>3||_.length===3&&_>"XFD")return d;let M=o.l2n(_),P=parseInt($,10);return b||(M+=f.col-h.col),E||(P+=f.row-h.row),(m||"")+(b||"")+o.n2l(M)+(E||"")+P}return d})}}},{"./col-cache":19}],24:[function(r,n,i){(function(o,s){(function(){const u=r("readable-stream"),l=r("./utils"),a=r("./string-buf");class c{constructor(p,v){this._data=p,this._encoding=v}get length(){return this.toBuffer().length}copy(p,v,y,b){return this.toBuffer().copy(p,v,y,b)}toBuffer(){return this._buffer||(this._buffer=s.from(this._data,this._encoding)),this._buffer}}class h{constructor(p){this._data=p}get length(){return this._data.length}copy(p,v,y,b){return this._data._buf.copy(p,v,y,b)}toBuffer(){return this._data.toBuffer()}}class f{constructor(p){this._data=p}get length(){return this._data.length}copy(p,v,y,b){this._data.copy(p,v,y,b)}toBuffer(){return this._data}}class d{constructor(p){this.size=p,this.buffer=s.alloc(p),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const p=s.alloc(this.iWrite-this.iRead);return this.buffer.copy(p,0,this.iRead,this.iWrite),p}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(p){let v;return p===0?null:p===void 0||p>=this.length?(v=this.toBuffer(),this.iRead=this.iWrite,v):(v=s.alloc(p),this.buffer.copy(v,0,this.iRead,p),this.iRead+=p,v)}write(p,v,y){const b=Math.min(y,this.size-this.iWrite);return p.copy(this.buffer,this.iWrite,v,v+b),this.iWrite+=b,b}}const m=function(g){g=g||{},this.bufSize=g.bufSize||1048576,this.buffers=[],this.batch=g.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};l.inherits(m,u.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return s.concat(this.buffers.map(g=>g.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const p=this.buffers[this.buffers.length-1];if(!p.full)return p}const g=new d(this.bufSize);return this.buffers.push(g),g},async _pipe(g){await Promise.all(this.pipes.map(function(p){return new Promise(v=>{p.write(g.toBuffer(),()=>{v()})})}))},_writeToBuffers(g){let p=0;const v=g.length;for(;p1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(y),o.nextTick(v)):(await this._pipe(y),v());else this.paused||this.emit("data",y.toBuffer()),this._writeToBuffers(y),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(g,p,v){const y=b=>{b?v(b):(this._flush(),this.pipes.forEach(_=>{_.end()}),this.emit("finish"))};g?this.write(g,p,y):y()},read(g){let p;if(g){for(p=[];g&&this.buffers.length&&!this.buffers[0].eod;){const v=this.buffers[0],y=v.read(g);g-=y.length,p.push(y),v.eod&&v.full&&this.buffers.shift()}return s.concat(p)}return p=this.buffers.map(v=>v.toBuffer()).filter(Boolean),this.buffers=[],s.concat(p)},setEncoding(g){this.encoding=g},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(g){this.pipes.push(g),!this.paused&&this.buffers.length&&this.end()},unpipe(g){this.pipes=this.pipes.filter(p=>p!==g)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),n.exports=m}).call(this)}).call(this,r("_process"),r("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(r,n,i){(function(o){(function(){n.exports=class{constructor(s){this._buf=o.alloc(s&&s.size||16384),this._encoding=s&&s.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=o.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(s){s=s||0,this._buffer=void 0,this._inPos=s}_grow(s){let u=2*this._buf.length;for(;u=this._buf.length-4;)this._grow(this._inPos+s.length),u=this._inPos+this._buf.write(s,this._inPos,this._encoding);this._inPos=u}addStringBuf(s){s.length&&(this._buffer=void 0,this.length+s.length>this.capacity&&this._grow(this.length+s.length),s._buf.copy(this._buf,this._inPos,0,s.length),this._inPos+=s.length)}}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220}],26:[function(r,n,i){const{toString:o}=Object.prototype,s=/["&<>]/,u={each:function(l,a){l&&(Array.isArray(l)?l.forEach(a):Object.keys(l).forEach(c=>{a(l[c],c)}))},some:function(l,a){return!!l&&(Array.isArray(l)?l.some(a):Object.keys(l).some(c=>a(l[c],c)))},every:function(l,a){return!l||(Array.isArray(l)?l.every(a):Object.keys(l).every(c=>a(l[c],c)))},map:function(l,a){return l?Array.isArray(l)?l.map(a):Object.keys(l).map(c=>a(l[c],c)):[]},keyBy:(l,a)=>l.reduce((c,h)=>(c[h[a]]=h,c),{}),isEqual:function(l,a){const c=typeof l,h=typeof a,f=Array.isArray(l),d=Array.isArray(a);let m;if(c!==h)return!1;switch(typeof l){case"object":if(f||d)return!(!f||!d)&&l.length===a.length&&l.every((g,p)=>{const v=a[p];return u.isEqual(g,v)});if(l===null||a===null)return l===a;if(m=Object.keys(l),Object.keys(a).length!==m.length)return!1;for(const g of m)if(!a.hasOwnProperty(g))return!1;return u.every(l,(g,p)=>{const v=a[p];return u.isEqual(g,v)});default:return l===a}},escapeHtml(l){const a=s.exec(l);if(!a)return l;let c="",h="",f=0,d=a.index;for(;d":h=">";break;default:continue}f!==d&&(c+=l.substring(f,d)),f=d+1,c+=h}return f!==d?c+l.substring(f,d):c},strcmp:(l,a)=>la?1:0,isUndefined:l=>o.call(l)==="[object Undefined]",isObject:l=>o.call(l)==="[object Object]",deepMerge(){const l=arguments[0]||{},{length:a}=arguments;let c,h,f;function d(m,g){c=l[g],f=Array.isArray(m),u.isObject(m)||f?(f?(f=!1,h=c&&Array.isArray(c)?c:[]):h=c&&u.isObject(c)?c:{},l[g]=u.deepMerge(h,m)):u.isUndefined(m)||(l[g]=m)}for(let m=0;m&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,a={nop(){},promiseImmediate:c=>new Promise(h=>{o.setImmediate?s(()=>{h(c)}):setTimeout(()=>{h(c)},1)}),inherits:function(c,h,f,d){c.super_=h,d||(d=f,f=null),f&&Object.keys(f).forEach(g=>{Object.defineProperty(c,g,Object.getOwnPropertyDescriptor(f,g))});const m={constructor:{value:c,enumerable:!1,writable:!1,configurable:!0}};d&&Object.keys(d).forEach(g=>{m[g]=Object.getOwnPropertyDescriptor(d,g)}),c.prototype=Object.create(h.prototype,m)},dateToExcel:(c,h)=>25569+c.getTime()/864e5-(h?1462:0),excelToDate(c,h){const f=Math.round(24*(c-25569+(h?1462:0))*3600*1e3);return new Date(f)},parsePath(c){const h=c.lastIndexOf("/");return{path:c.substring(0,h),name:c.substring(h+1)}},getRelsPath(c){const h=a.parsePath(c);return`${h.path}/_rels/${h.name}.rels`},xmlEncode(c){const h=l.exec(c);if(!h)return c;let f="",d="",m=0,g=h.index;for(;g=11&&p!==13)){d="";break}continue}m!==g&&(f+=c.substring(m,g)),m=g+1,d&&(f+=d)}return m!==g?f+c.substring(m,g):f},xmlDecode:c=>c.replace(/&([a-z]*);/g,h=>{switch(h){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return h}}),validInt(c){const h=parseInt(c,10);return Number.isNaN(h)?0:h},isDateFmt(c){return c?(c=(c=c.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:c=>new Promise(h=>{u.access(c,u.constants.F_OK,f=>{h(!f)})})},toIsoDateString:c=>c.toIsoString().subsstr(0,10),parseBoolean:c=>c===!0||c==="true"||c===1||c==="1"};n.exports=a}).call(this)}).call(this,typeof _t<"u"?_t:typeof self<"u"?self:typeof window<"u"?window:{},r("timers").setImmediate)},{fs:216,timers:523}],28:[function(r,n,i){const o=r("./under-dash"),s=r("./utils");function u(c,h,f){c.push(` ${h}="${s.xmlEncode(f.toString())}"`)}function l(c,h){if(h){const f=[];o.each(h,(d,m)=>{d!==void 0&&u(f,m,d)}),c.push(f.join(""))}}class a{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(h){const f=this._xml;f.push(" `)}openNode(h,f){const d=this.tos,m=this._xml;d&&this.open&&m.push(">"),this._stack.push(h),m.push("<"),m.push(h),l(m,f),this.leaf=!0,this.open=!0}addAttribute(h,f){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");f!==void 0&&u(this._xml,h,f)}addAttributes(h){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");l(this._xml,h)}writeText(h){const f=this._xml;this.open&&(f.push(">"),this.open=!1),this.leaf=!1,f.push(s.xmlEncode(h.toString()))}writeXml(h){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(h)}closeNode(){const h=this._stack.pop(),f=this._xml;this.leaf?f.push("/>"):(f.push("")),this.open=!1,this.leaf=!1}leafNode(h,f,d){this.openNode(h,f),d!==void 0&&this.writeText(d),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const h=this._rollbacks.pop();this._xml.length>h.xml&&this._xml.splice(h.xml,this._xml.length-h.xml),this._stack.length>h.stack&&this._stack.splice(h.stack,this._stack.length-h.stack),this.leaf=h.leaf,this.open=h.open}get xml(){return this.closeAll(),this._xml.join("")}}a.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},n.exports=a},{"./under-dash":26,"./utils":27}],29:[function(r,n,i){(function(o){(function(){const s=r("events"),u=r("jszip"),l=r("./stream-buf"),{stringToBuffer:a}=r("./browser-buffer-encode");class c extends s.EventEmitter{constructor(f){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},f),this.zip=new u,this.stream=new l}append(f,d){d.hasOwnProperty("base64")&&d.base64?this.zip.file(d.name,f,{base64:!0}):(o.browser&&typeof f=="string"&&(f=a(f)),this.zip.file(d.name,f))}async finalize(){const f=await this.zip.generateAsync(this.options);this.stream.end(f),this.emit("finish")}read(f){return this.stream.read(f)}setEncoding(f){return this.stream.setEncoding(f)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(f,d){return this.stream.pipe(f,d)}unpipe(f){return this.stream.unpipe(f)}unshift(f){return this.stream.unshift(f)}wrap(f){return this.stream.wrap(f)}}n.exports={ZipWriter:c}}).call(this)}).call(this,r("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(r,n,i){n.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(r,n,i){n.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(r,n,i){const o=r("../../utils/parse-sax"),s=r("../../utils/xml-stream");class u{prepare(){}render(){}parseOpen(a){}parseText(a){}parseClose(a){}reconcile(a,c){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(a=>{a instanceof u?a.reset():a.xform&&a.xform.reset()})}mergeModel(a){this.model=Object.assign(this.model||{},a)}async parse(a){for await(const c of a)for(const{eventType:h,value:f}of c)if(h==="opentag")this.parseOpen(f);else if(h==="text")this.parseText(f);else if(h==="closetag"&&!this.parseClose(f.name))return this.model;return this.model}async parseStream(a){return this.parse(o(a))}get xml(){return this.toXml(this.model)}toXml(a){const c=new s;return this.render(c,a),c.xml}static toAttribute(a,c){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(a===void 0){if(h)return c}else if(h||a!==c)return a.toString()}static toStringAttribute(a,c){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return u.toAttribute(a,c,h)}static toStringValue(a,c){return a===void 0?c:a}static toBoolAttribute(a,c){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(a===void 0){if(h)return c}else if(h||a!==c)return a?"1":"0"}static toBoolValue(a,c){return a===void 0?c:a==="1"}static toIntAttribute(a,c){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return u.toAttribute(a,c,h)}static toIntValue(a,c){return a===void 0?c:parseInt(a,10)}static toFloatAttribute(a,c){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return u.toAttribute(a,c,h)}static toFloatValue(a,c){return a===void 0?c:parseFloat(a)}}n.exports=u},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(r,n,i){const o=r("../base-xform"),s=r("../../../utils/col-cache");function u(a){try{return s.decodeEx(a),!0}catch{return!1}}function l(a){const c=[];let h=!1,f="";return a.split(",").forEach(d=>{if(!d)return;const m=(d.match(/'/g)||[]).length;if(!m)return void(h?f+=d+",":u(d)&&c.push(d));const g=m%2==0;!h&&g&&u(d)?c.push(d):h&&!g?(h=!1,u(f+d)&&c.push(f+d),f=""):(h=!0,f+=d+",")}),c}n.exports=class extends o{render(a,c){a.openNode("definedName",{name:c.name,localSheetId:c.localSheetId}),a.writeText(c.ranges.join(",")),a.closeNode()}parseOpen(a){switch(a.name){case"definedName":return this._parsedName=a.attributes.name,this._parsedLocalSheetId=a.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(a){this._parsedText.push(a)}parseClose(){return this.model={name:this._parsedName,ranges:l(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(r,n,i){const o=r("../../../utils/utils"),s=r("../base-xform");n.exports=class extends s{render(u,l){u.leafNode("sheet",{sheetId:l.id,name:l.name,state:l.state,"r:id":l.rId})}parseOpen(u){return u.name==="sheet"&&(this.model={name:o.xmlDecode(u.attributes.name),id:parseInt(u.attributes.sheetId,10),state:u.attributes.state,rId:u.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{render(s,u){s.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:u.fullCalcOnLoad?1:void 0})}parseOpen(s){return s.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{render(s,u){s.leafNode("workbookPr",{date1904:u.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(s){return s.name==="workbookPr"&&(this.model={date1904:s.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{render(s,u){const l={xWindow:u.x||0,yWindow:u.y||0,windowWidth:u.width||12e3,windowHeight:u.height||24e3,firstSheet:u.firstSheet,activeTab:u.activeTab};u.visibility&&u.visibility!=="visible"&&(l.visibility=u.visibility),s.leafNode("workbookView",l)}parseOpen(s){if(s.name==="workbookView"){const u=this.model={},l=function(c,h,f){const d=h!==void 0?u[c]=h:f;d!==void 0&&(u[c]=d)},a=function(c,h,f){const d=h!==void 0?u[c]=parseInt(h,10):f;d!==void 0&&(u[c]=d)};return a("x",s.attributes.xWindow,0),a("y",s.attributes.yWindow,0),a("width",s.attributes.windowWidth,25e3),a("height",s.attributes.windowHeight,1e4),l("visibility",s.attributes.visibility,"visible"),a("activeTab",s.attributes.activeTab,void 0),a("firstSheet",s.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../../../utils/col-cache"),u=r("../../../utils/xml-stream"),l=r("../base-xform"),a=r("../static-xform"),c=r("../list-xform"),h=r("./defined-name-xform"),f=r("./sheet-xform"),d=r("./workbook-view-xform"),m=r("./workbook-properties-xform"),g=r("./workbook-calc-properties-xform");class p extends l{constructor(){super(),this.map={fileVersion:p.STATIC_XFORMS.fileVersion,workbookPr:new m,bookViews:new c({tag:"bookViews",count:!1,childXform:new d}),sheets:new c({tag:"sheets",count:!1,childXform:new f}),definedNames:new c({tag:"definedNames",count:!1,childXform:new h}),calcPr:new g}}prepare(y){y.sheets=y.worksheets;const b=[];let _=0;y.sheets.forEach(E=>{if(E.pageSetup&&E.pageSetup.printArea&&E.pageSetup.printArea.split("&&").forEach($=>{const M=$.split(":"),P={name:"_xlnm.Print_Area",ranges:[`'${E.name}'!$${M[0]}:$${M[1]}`],localSheetId:_};b.push(P)}),E.pageSetup&&(E.pageSetup.printTitlesRow||E.pageSetup.printTitlesColumn)){const $=[];if(E.pageSetup.printTitlesColumn){const P=E.pageSetup.printTitlesColumn.split(":");$.push(`'${E.name}'!$${P[0]}:$${P[1]}`)}if(E.pageSetup.printTitlesRow){const P=E.pageSetup.printTitlesRow.split(":");$.push(`'${E.name}'!$${P[0]}:$${P[1]}`)}const M={name:"_xlnm.Print_Titles",ranges:$,localSheetId:_};b.push(M)}_++}),b.length&&(y.definedNames=y.definedNames.concat(b)),(y.media||[]).forEach((E,$)=>{E.name=E.type+($+1)})}render(y,b){y.openXml(u.StdDocAttributes),y.openNode("workbook",p.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(y),this.map.workbookPr.render(y,b.properties),this.map.bookViews.render(y,b.views),this.map.sheets.render(y,b.sheets),this.map.definedNames.render(y,b.definedNames),this.map.calcPr.render(y,b.calcProperties),y.closeNode()}parseOpen(y){if(this.parser)return this.parser.parseOpen(y),!0;switch(y.name){case"workbook":return!0;default:return this.parser=this.map[y.name],this.parser&&this.parser.parseOpen(y),!0}}parseText(y){this.parser&&this.parser.parseText(y)}parseClose(y){if(this.parser)return this.parser.parseClose(y)||(this.parser=void 0),!0;switch(y){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(y){const b=(y.workbookRels||[]).reduce((P,D)=>(P[D.Id]=D,P),{}),_=[];let E,$=0;(y.sheets||[]).forEach(P=>{const D=b[P.rId];D&&(E=y.worksheetHash["xl/"+D.Target.replace(/^(\s|\/xl\/)+/,"")],E&&(E.name=P.name,E.id=P.id,E.state=P.state,_[$++]=E))});const M=[];o.each(y.definedNames,P=>{if(P.name==="_xlnm.Print_Area"){if(E=_[P.localSheetId],E){E.pageSetup||(E.pageSetup={});const D=s.decodeEx(P.ranges[0]);E.pageSetup.printArea=E.pageSetup.printArea?`${E.pageSetup.printArea}&&${D.dimensions}`:D.dimensions}}else if(P.name==="_xlnm.Print_Titles"){if(E=_[P.localSheetId],E){E.pageSetup||(E.pageSetup={});const D=P.ranges.join(","),F=/\$/g,U=/\$\d+:\$\d+/,V=D.match(U);if(V&&V.length){const C=V[0];E.pageSetup.printTitlesRow=C.replace(F,"")}const A=/\$[A-Z]+:\$[A-Z]+/,O=D.match(A);if(O&&O.length){const C=O[0];E.pageSetup.printTitlesColumn=C.replace(F,"")}}}else M.push(P)}),y.definedNames=M,y.media.forEach((P,D)=>{P.index=D})}}p.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},p.STATIC_XFORMS={fileVersion:new a({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},n.exports=p},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(r,n,i){const o=r("../strings/rich-text-xform"),s=r("../../../utils/utils"),u=r("../base-xform"),l=n.exports=function(a){this.model=a};s.inherits(l,u,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new o),this._richTextXform},render(a,c){c=c||this.model,a.openNode("comment",{ref:c.ref,authorId:0}),a.openNode("text"),c&&c.note&&c.note.texts&&c.note.texts.forEach(h=>{this.richTextXform.render(a,h)}),a.closeNode(),a.closeNode()},parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"comment":return this.model={type:"note",note:{texts:[]},...a.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(a),!0;default:return!1}},parseText(a){this.parser&&this.parser.parseText(a)},parseClose(a){switch(a){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(a),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(r,n,i){const o=r("../../../utils/xml-stream"),s=r("../../../utils/utils"),u=r("../base-xform"),l=r("./comment-xform"),a=n.exports=function(){this.map={comment:new l}};s.inherits(a,u,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(c,h){h=h||this.model,c.openXml(o.StdDocAttributes),c.openNode("comments",a.COMMENTS_ATTRIBUTES),c.openNode("authors"),c.leafNode("author",null,"Author"),c.closeNode(),c.openNode("commentList"),h.comments.forEach(f=>{this.map.comment.render(c,f)}),c.closeNode(),c.closeNode()},parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(c),!0;default:return!1}},parseText(c){this.parser&&this.parser.parseText(c)},parseClose(c){switch(c){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(c),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(r,n,i){const o=r("../../base-xform");n.exports=class extends o{constructor(s){super(),this._model=s}get tag(){return this._model&&this._model.tag}render(s,u,l){(u===l[2]||this.tag==="x:SizeWithCells"&&u===l[1])&&s.leafNode(this.tag)}parseOpen(s){switch(s.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(r,n,i){const o=r("../../base-xform");n.exports=class extends o{constructor(s){super(),this._model=s}get tag(){return this._model&&this._model.tag}render(s,u){s.leafNode(this.tag,null,u)}parseOpen(s){switch(s.name){case this.tag:return this.text="",!0;default:return!1}}parseText(s){this.text=s}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"x:Anchor"}getAnchorRect(s){const u=Math.floor(s.left),l=Math.floor(68*(s.left-u)),a=Math.floor(s.top),c=Math.floor(18*(s.top-a)),h=Math.floor(s.right),f=Math.floor(68*(s.right-h)),d=Math.floor(s.bottom);return[u,l,a,c,h,f,d,Math.floor(18*(s.bottom-d))]}getDefaultRect(s){const u=s.col,l=Math.max(s.row-2,0);return[u,6,l,14,u+2,2,l+4,16]}render(s,u){const l=u.anchor?this.getAnchorRect(u.anchor):this.getDefaultRect(u.refAddress);s.leafNode("x:Anchor",null,l.join(", "))}parseOpen(s){switch(s.name){case this.tag:return this.text="",!0;default:return!1}}parseText(s){this.text=s}parseClose(){return!1}}},{"../base-xform":32}],44:[function(r,n,i){const o=r("../base-xform"),s=r("./vml-anchor-xform"),u=r("./style/vml-protection-xform"),l=r("./style/vml-position-xform"),a=["twoCells","oneCells","absolute"];n.exports=class extends o{constructor(){super(),this.map={"x:Anchor":new s,"x:Locked":new u({tag:"x:Locked"}),"x:LockText":new u({tag:"x:LockText"}),"x:SizeWithCells":new l({tag:"x:SizeWithCells"}),"x:MoveWithCells":new l({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(c,h){const{protection:f,editAs:d}=h.note;c.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(c,d,a),this.map["x:SizeWithCells"].render(c,d,a),this.map["x:Anchor"].render(c,h),this.map["x:Locked"].render(c,f.locked),c.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(c,f.lockText),c.leafNode("x:Row",null,h.refAddress.row-1),c.leafNode("x:Column",null,h.refAddress.col-1),c.closeNode()}parseOpen(c){switch(c.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)}return!0}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const c=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),h=Object.keys(c).length;this.model.editAs=a[h],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(r,n,i){const o=r("../../../utils/xml-stream"),s=r("../base-xform"),u=r("./vml-shape-xform");class l extends s{constructor(){super(),this.map={"v:shape":new u}}get tag(){return"xml"}render(c,h){c.openXml(o.StdDocAttributes),c.openNode(this.tag,l.DRAWING_ATTRIBUTES),c.openNode("o:shapelayout",{"v:ext":"edit"}),c.leafNode("o:idmap",{"v:ext":"edit",data:1}),c.closeNode(),c.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),c.leafNode("v:stroke",{joinstyle:"miter"}),c.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),c.closeNode(),h.comments.forEach((f,d)=>{this.map["v:shape"].render(c,f,d)}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)}return!0}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(c){case this.tag:return!1;default:return!0}}reconcile(c,h){c.anchors.forEach(f=>{f.br?this.map["xdr:twoCellAnchor"].reconcile(f,h):this.map["xdr:oneCellAnchor"].reconcile(f,h)})}}l.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},n.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(r,n,i){const o=r("../base-xform"),s=r("./vml-textbox-xform"),u=r("./vml-client-data-xform");class l extends o{constructor(){super(),this.map={"v:textbox":new s,"x:ClientData":new u}}get tag(){return"v:shape"}render(c,h,f){c.openNode("v:shape",l.V_SHAPE_ATTRIBUTES(h,f)),c.leafNode("v:fill",{color2:"infoBackground [80]"}),c.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),c.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(c,h),this.map["x:ClientData"].render(c,h),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:this.reset(),this.model={margins:{insetmode:c.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)}return!0}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}l.V_SHAPE_ATTRIBUTES=(a,c)=>({id:"_x0000_s"+(1025+c),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":a.note.margins&&a.note.margins.insetmode}),n.exports=l},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"v:textbox"}conversionUnit(s,u,l){return`${parseFloat(s)*u.toFixed(2)}${l}`}reverseConversionUnit(s){return(s||"").split(",").map(u=>Number(parseFloat(this.conversionUnit(parseFloat(u),.1,"")).toFixed(2)))}render(s,u){const l={style:"mso-direction-alt:auto"};if(u&&u.note){let{inset:a}=u.note&&u.note.margins;Array.isArray(a)&&(a=a.map(c=>this.conversionUnit(c,10,"mm")).join(",")),a&&(l.inset=a)}s.openNode("v:textbox",l),s.leafNode("div",{style:"text-align:left"}),s.closeNode()}parseOpen(s){switch(s.name){case this.tag:return this.model={inset:this.reverseConversionUnit(s.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(s){switch(s){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(r,n,i){const o=r("./base-xform");n.exports=class extends o{createNewModel(s){return{}}parseOpen(s){return this.parser=this.parser||this.map[s.name],this.parser?(this.parser.parseOpen(s),!0):s.name===this.tag&&(this.model=this.createNewModel(s),!0)}parseText(s){this.parser&&this.parser.parseText(s)}onParserClose(s,u){this.model[s]=u.model}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.onParserClose(s,this.parser),this.parser=void 0),!0):s!==this.tag}}},{"./base-xform":32}],49:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{render(s,u){s.openNode("HeadingPairs"),s.openNode("vt:vector",{size:2,baseType:"variant"}),s.openNode("vt:variant"),s.leafNode("vt:lpstr",void 0,"Worksheets"),s.closeNode(),s.openNode("vt:variant"),s.leafNode("vt:i4",void 0,u.length),s.closeNode(),s.closeNode(),s.closeNode()}parseOpen(s){return s.name==="HeadingPairs"}parseText(){}parseClose(s){return s!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{render(s,u){s.openNode("TitlesOfParts"),s.openNode("vt:vector",{size:u.length,baseType:"lpstr"}),u.forEach(l=>{s.leafNode("vt:lpstr",void 0,l.name)}),s.closeNode(),s.closeNode()}parseOpen(s){return s.name==="TitlesOfParts"}parseText(){}parseClose(s){return s!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(r,n,i){const o=r("../../../utils/xml-stream"),s=r("../base-xform"),u=r("../simple/string-xform"),l=r("./app-heading-pairs-xform"),a=r("./app-titles-of-parts-xform");class c extends s{constructor(){super(),this.map={Company:new u({tag:"Company"}),Manager:new u({tag:"Manager"}),HeadingPairs:new l,TitleOfParts:new a}}render(f,d){f.openXml(o.StdDocAttributes),f.openNode("Properties",c.PROPERTY_ATTRIBUTES),f.leafNode("Application",void 0,"Microsoft Excel"),f.leafNode("DocSecurity",void 0,"0"),f.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(f,d.worksheets),this.map.TitleOfParts.render(f,d.worksheets),this.map.Company.render(f,d.company||""),this.map.Manager.render(f,d.manager),f.leafNode("LinksUpToDate",void 0,"false"),f.leafNode("SharedDoc",void 0,"false"),f.leafNode("HyperlinksChanged",void 0,"false"),f.leafNode("AppVersion",void 0,"16.0300"),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"Properties":return!0;default:return this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0)}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}c.DateFormat=function(h){return h.toISOString().replace(/[.]\d{3,6}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},n.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(r,n,i){const o=r("../../../utils/xml-stream"),s=r("../base-xform");class u extends s{render(a,c){a.openXml(o.StdDocAttributes),a.openNode("Types",u.PROPERTY_ATTRIBUTES);const h={};(c.media||[]).forEach(f=>{if(f.type==="image"){const d=f.extension;h[d]||(h[d]=!0,a.leafNode("Default",{Extension:d,ContentType:"image/"+d}))}}),a.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),a.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),a.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),c.worksheets.forEach(f=>{const d=`/xl/worksheets/sheet${f.id}.xml`;a.leafNode("Override",{PartName:d,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),a.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),a.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),c.sharedStrings&&c.sharedStrings.count&&a.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),c.tables&&c.tables.forEach(f=>{a.leafNode("Override",{PartName:"/xl/tables/"+f.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),c.drawings&&c.drawings.forEach(f=>{a.leafNode("Override",{PartName:`/xl/drawings/${f.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),c.commentRefs&&(a.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),c.commentRefs.forEach(f=>{let{commentName:d}=f;a.leafNode("Override",{PartName:`/xl/${d}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),a.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),a.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),a.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}u.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},n.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(r,n,i){const o=r("../../../utils/xml-stream"),s=r("../base-xform"),u=r("../simple/date-xform"),l=r("../simple/string-xform"),a=r("../simple/integer-xform");class c extends s{constructor(){super(),this.map={"dc:creator":new l({tag:"dc:creator"}),"dc:title":new l({tag:"dc:title"}),"dc:subject":new l({tag:"dc:subject"}),"dc:description":new l({tag:"dc:description"}),"dc:identifier":new l({tag:"dc:identifier"}),"dc:language":new l({tag:"dc:language"}),"cp:keywords":new l({tag:"cp:keywords"}),"cp:category":new l({tag:"cp:category"}),"cp:lastModifiedBy":new l({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new u({tag:"cp:lastPrinted",format:c.DateFormat}),"cp:revision":new a({tag:"cp:revision"}),"cp:version":new l({tag:"cp:version"}),"cp:contentStatus":new l({tag:"cp:contentStatus"}),"cp:contentType":new l({tag:"cp:contentType"}),"dcterms:created":new u({tag:"dcterms:created",attrs:c.DateAttrs,format:c.DateFormat}),"dcterms:modified":new u({tag:"dcterms:modified",attrs:c.DateAttrs,format:c.DateFormat})}}render(f,d){f.openXml(o.StdDocAttributes),f.openNode("cp:coreProperties",c.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(f,d.creator),this.map["dc:title"].render(f,d.title),this.map["dc:subject"].render(f,d.subject),this.map["dc:description"].render(f,d.description),this.map["dc:identifier"].render(f,d.identifier),this.map["dc:language"].render(f,d.language),this.map["cp:keywords"].render(f,d.keywords),this.map["cp:category"].render(f,d.category),this.map["cp:lastModifiedBy"].render(f,d.lastModifiedBy),this.map["cp:lastPrinted"].render(f,d.lastPrinted),this.map["cp:revision"].render(f,d.revision),this.map["cp:version"].render(f,d.version),this.map["cp:contentStatus"].render(f,d.contentStatus),this.map["cp:contentType"].render(f,d.contentType),this.map["dcterms:created"].render(f,d.created),this.map["dcterms:modified"].render(f,d.modified),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[f.name],this.parser)return this.parser.parseOpen(f),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(f))}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+f)}}}c.DateFormat=function(h){return h.toISOString().replace(/[.]\d{3}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},n.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{render(s,u){s.leafNode("Relationship",u)}parseOpen(s){switch(s.name){case"Relationship":return this.model=s.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(r,n,i){const o=r("../../../utils/xml-stream"),s=r("../base-xform"),u=r("./relationship-xform");class l extends s{constructor(){super(),this.map={Relationship:new u}}render(c,h){h=h||this._values,c.openXml(o.StdDocAttributes),c.openNode("Relationships",l.RELATIONSHIPS_ATTRIBUTES),h.forEach(f=>{this.map.Relationship.render(c,f)}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[c.name],this.parser)return this.parser.parseOpen(c),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(c))}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(c){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+c)}}}l.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},n.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset(),this.model={range:{editAs:s.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(s){this.parser&&this.parser.parseText(s)}reconcilePicture(s,u){if(s&&s.rId){const l=u.rels[s.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(l){const a=l[1],c=u.mediaIndex[a];return u.media[c]}}}}},{"../base-xform":32}],57:[function(r,n,i){const o=r("../base-xform"),s=r("./blip-xform");n.exports=class extends o{constructor(){super(),this.map={"a:blip":new s}}get tag(){return"xdr:blipFill"}render(u,l){u.openNode(this.tag),this.map["a:blip"].render(u,l),u.openNode("a:stretch"),u.leafNode("a:fillRect"),u.closeNode(),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:this.reset();break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)}return!0}parseText(){}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"a:blip"}render(s,u){s.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":u.rId,cstate:"print"})}parseOpen(s){switch(s.name){case this.tag:return this.model={rId:s.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(s){switch(s){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"xdr:cNvPicPr"}render(s){s.openNode(this.tag),s.leafNode("a:picLocks",{noChangeAspect:"1"}),s.closeNode()}parseOpen(s){switch(s.name){case this.tag:default:return!0}}parseText(){}parseClose(s){switch(s){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(r,n,i){const o=r("../base-xform"),s=r("./hlink-click-xform"),u=r("./ext-lst-xform");n.exports=class extends o{constructor(){super(),this.map={"a:hlinkClick":new s,"a:extLst":new u}}get tag(){return"xdr:cNvPr"}render(l,a){l.openNode(this.tag,{id:a.index,name:"Picture "+a.index}),this.map["a:hlinkClick"].render(l,a),this.map["a:extLst"].render(l,a),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset();break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(){}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(r,n,i){const o=r("../base-xform"),s=r("../simple/integer-xform");n.exports=class extends o{constructor(u){super(),this.tag=u.tag,this.map={"xdr:col":new s({tag:"xdr:col",zero:!0}),"xdr:colOff":new s({tag:"xdr:colOff",zero:!0}),"xdr:row":new s({tag:"xdr:row",zero:!0}),"xdr:rowOff":new s({tag:"xdr:rowOff",zero:!0})}}render(u,l){u.openNode(this.tag),this.map["xdr:col"].render(u,l.nativeCol),this.map["xdr:colOff"].render(u,l.nativeColOff),this.map["xdr:row"].render(u,l.nativeRow),this.map["xdr:rowOff"].render(u,l.nativeRowOff),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:this.reset();break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)}return!0}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(r,n,i){const o=r("../../../utils/col-cache"),s=r("../../../utils/xml-stream"),u=r("../base-xform"),l=r("./two-cell-anchor-xform"),a=r("./one-cell-anchor-xform");class c extends u{constructor(){super(),this.map={"xdr:twoCellAnchor":new l,"xdr:oneCellAnchor":new a}}prepare(f){f.anchors.forEach((d,m)=>{d.anchorType=function(g){return(typeof g.range=="string"?o.decode(g.range):g.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(d),this.map[d.anchorType].prepare(d,{index:m})})}get tag(){return"xdr:wsDr"}render(f,d){f.openXml(s.StdDocAttributes),f.openNode(this.tag,c.DRAWING_ATTRIBUTES),d.anchors.forEach(m=>{this.map[m.anchorType].render(f,m)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)}return!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(f){case this.tag:return!1;default:return!0}}reconcile(f,d){f.anchors.forEach(m=>{m.br?this.map["xdr:twoCellAnchor"].reconcile(m,d):this.map["xdr:oneCellAnchor"].reconcile(m,d)})}}c.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},n.exports=c},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"a:extLst"}render(s){s.openNode(this.tag),s.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),s.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),s.closeNode(),s.closeNode()}parseOpen(s){switch(s.name){case this.tag:default:return!0}}parseText(){}parseClose(s){switch(s){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{constructor(s){super(),this.tag=s.tag,this.map={}}render(s,u){s.openNode(this.tag);const l=Math.floor(9525*u.width),a=Math.floor(9525*u.height);s.addAttribute("cx",l),s.addAttribute("cy",a),s.closeNode()}parseOpen(s){return s.name===this.tag&&(this.model={width:parseInt(s.attributes.cx||"0",10)/9525,height:parseInt(s.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"a:hlinkClick"}render(s,u){u.hyperlinks&&u.hyperlinks.rId&&s.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":u.hyperlinks.rId,tooltip:u.hyperlinks.tooltip})}parseOpen(s){switch(s.name){case this.tag:return this.model={hyperlinks:{rId:s.attributes["r:id"],tooltip:s.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(r,n,i){const o=r("../base-xform"),s=r("./c-nv-pr-xform"),u=r("./c-nv-pic-pr-xform");n.exports=class extends o{constructor(){super(),this.map={"xdr:cNvPr":new s,"xdr:cNvPicPr":new u}}get tag(){return"xdr:nvPicPr"}render(l,a){l.openNode(this.tag),this.map["xdr:cNvPr"].render(l,a),this.map["xdr:cNvPicPr"].render(l,a),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset();break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(){}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(r,n,i){const o=r("./base-cell-anchor-xform"),s=r("../static-xform"),u=r("./cell-position-xform"),l=r("./ext-xform"),a=r("./pic-xform");n.exports=class extends o{constructor(){super(),this.map={"xdr:from":new u({tag:"xdr:from"}),"xdr:ext":new l({tag:"xdr:ext"}),"xdr:pic":new a,"xdr:clientData":new s({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(c,h){this.map["xdr:pic"].prepare(c.picture,h)}render(c,h){c.openNode(this.tag,{editAs:h.range.editAs||"oneCell"}),this.map["xdr:from"].render(c,h.range.tl),this.map["xdr:ext"].render(c,h.range.ext),this.map["xdr:pic"].render(c,h.picture),this.map["xdr:clientData"].render(c,{}),c.closeNode()}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(c,h){c.medium=this.reconcilePicture(c.picture,h)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(r,n,i){const o=r("../base-xform"),s=r("../static-xform"),u=r("./blip-fill-xform"),l=r("./nv-pic-pr-xform"),a=r("./sp-pr");n.exports=class extends o{constructor(){super(),this.map={"xdr:nvPicPr":new l,"xdr:blipFill":new u,"xdr:spPr":new s(a)}}get tag(){return"xdr:pic"}prepare(c,h){c.index=h.index+1}render(c,h){c.openNode(this.tag),this.map["xdr:nvPicPr"].render(c,h),this.map["xdr:blipFill"].render(c,h),this.map["xdr:spPr"].render(c,h),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:this.reset();break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)}return!0}parseText(){}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(c){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(r,n,i){n.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(r,n,i){const o=r("./base-cell-anchor-xform"),s=r("../static-xform"),u=r("./cell-position-xform"),l=r("./pic-xform");n.exports=class extends o{constructor(){super(),this.map={"xdr:from":new u({tag:"xdr:from"}),"xdr:to":new u({tag:"xdr:to"}),"xdr:pic":new l,"xdr:clientData":new s({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(a,c){this.map["xdr:pic"].prepare(a.picture,c)}render(a,c){a.openNode(this.tag,{editAs:c.range.editAs||"oneCell"}),this.map["xdr:from"].render(a,c.range.tl),this.map["xdr:to"].render(a,c.range.br),this.map["xdr:pic"].render(a,c.picture),this.map["xdr:clientData"].render(a,{}),a.closeNode()}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(a,c){a.medium=this.reconcilePicture(a.picture,c)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(r,n,i){const o=r("./base-xform");n.exports=class extends o{constructor(s){super(),this.tag=s.tag,this.always=!!s.always,this.count=s.count,this.empty=s.empty,this.$count=s.$count||"count",this.$=s.$,this.childXform=s.childXform,this.maxItems=s.maxItems}prepare(s,u){const{childXform:l}=this;s&&s.forEach((a,c)=>{u.index=c,l.prepare(a,u)})}render(s,u){if(this.always||u&&u.length){s.openNode(this.tag,this.$),this.count&&s.addAttribute(this.$count,u&&u.length||0);const{childXform:l}=this;(u||[]).forEach((a,c)=>{l.render(s,a,c)}),s.closeNode()}else this.empty&&s.leafNode(this.tag)}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(s)&&(this.parser=this.childXform,!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser){if(!this.parser.parseClose(s)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(s,u){if(s){const{childXform:l}=this;s.forEach(a=>{l.reconcile(a,u)})}}}},{"./base-xform":32}],72:[function(r,n,i){const o=r("../../../utils/col-cache"),s=r("../base-xform");n.exports=class extends s{get tag(){return"autoFilter"}render(u,l){if(l)if(typeof l=="string")u.leafNode("autoFilter",{ref:l});else{const a=function(f){return typeof f=="string"?f:o.getAddress(f.row,f.column).address},c=a(l.from),h=a(l.to);c&&h&&u.leafNode("autoFilter",{ref:`${c}:${h}`})}}parseOpen(u){u.name==="autoFilter"&&(this.model=u.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(r,n,i){const o=r("../../../utils/utils"),s=r("../base-xform"),u=r("../../../doc/range"),l=r("../../../doc/enums"),a=r("../strings/rich-text-xform");function c(h){if(h==null)return l.ValueType.Null;if(h instanceof String||typeof h=="string")return l.ValueType.String;if(typeof h=="number")return l.ValueType.Number;if(typeof h=="boolean")return l.ValueType.Boolean;if(h instanceof Date)return l.ValueType.Date;if(h.text&&h.hyperlink)return l.ValueType.Hyperlink;if(h.formula)return l.ValueType.Formula;if(h.error)return l.ValueType.Error;throw new Error("I could not understand type of value")}n.exports=class extends s{constructor(){super(),this.richTextXForm=new a}get tag(){return"c"}prepare(h,f){const d=f.styles.addStyleModel(h.style||{},function(m){switch(m.type){case l.ValueType.Formula:return c(m.result);default:return m.type}}(h));switch(d&&(h.styleId=d),h.comment&&f.comments.push({...h.comment,ref:h.address}),h.type){case l.ValueType.String:case l.ValueType.RichText:f.sharedStrings&&(h.ssId=f.sharedStrings.add(h.value));break;case l.ValueType.Date:f.date1904&&(h.date1904=!0);break;case l.ValueType.Hyperlink:f.sharedStrings&&h.text!==void 0&&h.text!==null&&(h.ssId=f.sharedStrings.add(h.text)),f.hyperlinks.push({address:h.address,target:h.hyperlink,tooltip:h.tooltip});break;case l.ValueType.Merge:f.merges.add(h);break;case l.ValueType.Formula:if(f.date1904&&(h.date1904=!0),h.shareType==="shared"&&(h.si=f.siFormulae++),h.formula)f.formulae[h.address]=h;else if(h.sharedFormula){const m=f.formulae[h.sharedFormula];if(!m)throw new Error("Shared Formula master must exist above and or left of clone for cell "+h.address);m.si===void 0?(m.shareType="shared",m.si=f.siFormulae++,m.range=new u(m.address,h.address)):m.range&&m.range.expandToAddress(h.address),h.si=m.si}}}renderFormula(h,f){let d=null;switch(f.shareType){case"shared":d={t:"shared",ref:f.ref||f.range.range,si:f.si};break;case"array":d={t:"array",ref:f.ref};break;default:f.si!==void 0&&(d={t:"shared",si:f.si})}switch(c(f.result)){case l.ValueType.Null:h.leafNode("f",d,f.formula);break;case l.ValueType.String:h.addAttribute("t","str"),h.leafNode("f",d,f.formula),h.leafNode("v",null,f.result);break;case l.ValueType.Number:h.leafNode("f",d,f.formula),h.leafNode("v",null,f.result);break;case l.ValueType.Boolean:h.addAttribute("t","b"),h.leafNode("f",d,f.formula),h.leafNode("v",null,f.result?1:0);break;case l.ValueType.Error:h.addAttribute("t","e"),h.leafNode("f",d,f.formula),h.leafNode("v",null,f.result.error);break;case l.ValueType.Date:h.leafNode("f",d,f.formula),h.leafNode("v",null,o.dateToExcel(f.result,f.date1904));break;default:throw new Error("I could not understand type of value")}}render(h,f){if(f.type!==l.ValueType.Null||f.styleId){switch(h.openNode("c"),h.addAttribute("r",f.address),f.styleId&&h.addAttribute("s",f.styleId),f.type){case l.ValueType.Null:break;case l.ValueType.Number:h.leafNode("v",null,f.value);break;case l.ValueType.Boolean:h.addAttribute("t","b"),h.leafNode("v",null,f.value?"1":"0");break;case l.ValueType.Error:h.addAttribute("t","e"),h.leafNode("v",null,f.value.error);break;case l.ValueType.String:case l.ValueType.RichText:f.ssId!==void 0?(h.addAttribute("t","s"),h.leafNode("v",null,f.ssId)):f.value&&f.value.richText?(h.addAttribute("t","inlineStr"),h.openNode("is"),f.value.richText.forEach(d=>{this.richTextXForm.render(h,d)}),h.closeNode("is")):(h.addAttribute("t","str"),h.leafNode("v",null,f.value));break;case l.ValueType.Date:h.leafNode("v",null,o.dateToExcel(f.value,f.date1904));break;case l.ValueType.Hyperlink:f.ssId!==void 0?(h.addAttribute("t","s"),h.leafNode("v",null,f.ssId)):(h.addAttribute("t","str"),h.leafNode("v",null,f.text));break;case l.ValueType.Formula:this.renderFormula(h,f);break;case l.ValueType.Merge:}h.closeNode()}}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"c":return this.model={address:h.attributes.r},this.t=h.attributes.t,h.attributes.s&&(this.model.styleId=parseInt(h.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=h.attributes.si,this.model.shareType=h.attributes.t,this.model.ref=h.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(h),!0;default:return!1}}parseText(h){if(this.parser)this.parser.parseText(h);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+h:h;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+h:h:this.model.value=this.model.value?this.model.value+h:h}}parseClose(h){switch(h){case"c":{const{model:f}=this;if(f.formula||f.shareType)f.type=l.ValueType.Formula,f.value&&(this.t==="str"?f.result=o.xmlDecode(f.value):this.t==="b"?f.result=parseInt(f.value,10)!==0:this.t==="e"?f.result={error:f.value}:f.result=parseFloat(f.value),f.value=void 0);else if(f.value!==void 0)switch(this.t){case"s":f.type=l.ValueType.String,f.value=parseInt(f.value,10);break;case"str":f.type=l.ValueType.String,f.value=o.xmlDecode(f.value);break;case"inlineStr":f.type=l.ValueType.String;break;case"b":f.type=l.ValueType.Boolean,f.value=parseInt(f.value,10)!==0;break;case"e":f.type=l.ValueType.Error,f.value={error:f.value};break;default:f.type=l.ValueType.Number,f.value=parseFloat(f.value)}else f.styleId?f.type=l.ValueType.Null:f.type=l.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(h),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(h),!0)}}reconcile(h,f){const d=h.styleId&&f.styles&&f.styles.getStyleModel(h.styleId);switch(d&&(h.style=d),h.styleId!==void 0&&(h.styleId=void 0),h.type){case l.ValueType.String:typeof h.value=="number"&&f.sharedStrings&&(h.value=f.sharedStrings.getString(h.value)),h.value.richText&&(h.type=l.ValueType.RichText);break;case l.ValueType.Number:d&&o.isDateFmt(d.numFmt)&&(h.type=l.ValueType.Date,h.value=o.excelToDate(h.value,f.date1904));break;case l.ValueType.Formula:h.result!==void 0&&d&&o.isDateFmt(d.numFmt)&&(h.result=o.excelToDate(h.result,f.date1904)),h.shareType==="shared"&&(h.ref?f.formulae[h.si]=h.address:(h.sharedFormula=f.formulae[h.si],delete h.shareType),delete h.si)}const m=f.hyperlinkMap[h.address];m&&(h.type===l.ValueType.Formula?(h.text=h.result,h.result=void 0):(h.text=h.value,h.value=void 0),h.type=l.ValueType.Hyperlink,h.hyperlink=m);const g=f.commentsMap&&f.commentsMap[h.address];g&&(h.comment=g)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(r,n,i){const o=r("../../base-xform");n.exports=class extends o{get tag(){return"x14:cfIcon"}render(s,u){s.leafNode(this.tag,{iconSet:u.iconSet,iconId:u.iconId})}parseOpen(s){let{attributes:u}=s;this.model={iconSet:u.iconSet,iconId:o.toIntValue(u.iconId)}}parseClose(s){return s!==this.tag}}},{"../../base-xform":32}],75:[function(r,n,i){const{v4:o}=r("uuid"),s=r("../../base-xform"),u=r("../../composite-xform"),l=r("./databar-ext-xform"),a=r("./icon-set-ext-xform"),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class h extends u{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new l,"x14:iconSet":this.iconSetXform=new a}}get tag(){return"x14:cfRule"}static isExt(d){return d.type==="dataBar"?l.isExt(d):!(d.type!=="iconSet"||!d.custom&&!c[d.iconSet])}prepare(d){h.isExt(d)&&(d.x14Id=`{${o()}}`.toUpperCase())}render(d,m){if(h.isExt(m))switch(m.type){case"dataBar":this.renderDataBar(d,m);break;case"iconSet":this.renderIconSet(d,m)}}renderDataBar(d,m){d.openNode(this.tag,{type:"dataBar",id:m.x14Id}),this.databarXform.render(d,m),d.closeNode()}renderIconSet(d,m){d.openNode(this.tag,{type:"iconSet",priority:m.priority,id:m.x14Id||`{${o()}}`}),this.iconSetXform.render(d,m),d.closeNode()}createNewModel(d){let{attributes:m}=d;return{type:m.type,x14Id:m.id,priority:s.toIntValue(m.priority)}}onParserClose(d,m){Object.assign(this.model,m.model)}}n.exports=h},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(r,n,i){const o=r("../../composite-xform"),s=r("./f-ext-xform");n.exports=class extends o{constructor(){super(),this.map={"xm:f":this.fExtXform=new s}}get tag(){return"x14:cfvo"}render(u,l){u.openNode(this.tag,{type:l.type}),l.value!==void 0&&this.fExtXform.render(u,l.value),u.closeNode()}createNewModel(u){return{type:u.attributes.type}}onParserClose(u,l){switch(u){case"xm:f":this.model.value=l.model?parseFloat(l.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(r,n,i){const o=r("../../composite-xform"),s=r("./sqref-ext-xform"),u=r("./cf-rule-ext-xform");n.exports=class extends o{constructor(){super(),this.map={"xm:sqref":this.sqRef=new s,"x14:cfRule":this.cfRule=new u}}get tag(){return"x14:conditionalFormatting"}prepare(l,a){l.rules.forEach(c=>{this.cfRule.prepare(c,a)})}render(l,a){a.rules.some(u.isExt)&&(l.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),a.rules.filter(u.isExt).forEach(c=>this.cfRule.render(l,c)),this.sqRef.render(l,a.ref),l.closeNode())}createNewModel(){return{rules:[]}}onParserClose(l,a){switch(l){case"xm:sqref":this.model.ref=a.model;break;case"x14:cfRule":this.model.rules.push(a.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(r,n,i){const o=r("../../composite-xform"),s=r("./cf-rule-ext-xform"),u=r("./conditional-formatting-ext-xform");n.exports=class extends o{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new u}}get tag(){return"x14:conditionalFormattings"}hasContent(l){return l.hasExtContent===void 0&&(l.hasExtContent=l.some(a=>a.rules.some(s.isExt))),l.hasExtContent}prepare(l,a){l.forEach(c=>{this.cfXform.prepare(c,a)})}render(l,a){this.hasContent(a)&&(l.openNode(this.tag),a.forEach(c=>this.cfXform.render(l,c)),l.closeNode())}createNewModel(){return[]}onParserClose(l,a){this.model.push(a.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(r,n,i){const o=r("../../base-xform"),s=r("../../composite-xform"),u=r("../../style/color-xform"),l=r("./cfvo-ext-xform");n.exports=class extends s{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new l,"x14:borderColor":this.borderColorXform=new u("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new u("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new u("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new u("x14:axisColor")}}static isExt(a){return!a.gradient}get tag(){return"x14:dataBar"}render(a,c){a.openNode(this.tag,{minLength:o.toIntAttribute(c.minLength,0,!0),maxLength:o.toIntAttribute(c.maxLength,100,!0),border:o.toBoolAttribute(c.border,!1),gradient:o.toBoolAttribute(c.gradient,!0),negativeBarColorSameAsPositive:o.toBoolAttribute(c.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:o.toBoolAttribute(c.negativeBarBorderColorSameAsPositive,!0),axisPosition:o.toAttribute(c.axisPosition,"auto"),direction:o.toAttribute(c.direction,"leftToRight")}),c.cfvo.forEach(h=>{this.cfvoXform.render(a,h)}),this.borderColorXform.render(a,c.borderColor),this.negativeBorderColorXform.render(a,c.negativeBorderColor),this.negativeFillColorXform.render(a,c.negativeFillColor),this.axisColorXform.render(a,c.axisColor),a.closeNode()}createNewModel(a){let{attributes:c}=a;return{cfvo:[],minLength:o.toIntValue(c.minLength,0),maxLength:o.toIntValue(c.maxLength,100),border:o.toBoolValue(c.border,!1),gradient:o.toBoolValue(c.gradient,!0),negativeBarColorSameAsPositive:o.toBoolValue(c.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:o.toBoolValue(c.negativeBarBorderColorSameAsPositive,!0),axisPosition:o.toStringValue(c.axisPosition,"auto"),direction:o.toStringValue(c.direction,"leftToRight")}}onParserClose(a,c){const[,h]=a.split(":");switch(h){case"cfvo":this.model.cfvo.push(c.model);break;default:this.model[h]=c.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(r,n,i){const o=r("../../base-xform");n.exports=class extends o{get tag(){return"xm:f"}render(s,u){s.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(s){this.model+=s}parseClose(s){return s!==this.tag}}},{"../../base-xform":32}],81:[function(r,n,i){const o=r("../../base-xform"),s=r("../../composite-xform"),u=r("./cfvo-ext-xform"),l=r("./cf-icon-ext-xform");n.exports=class extends s{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new u,"x14:cfIcon":this.cfIconXform=new l}}get tag(){return"x14:iconSet"}render(a,c){a.openNode(this.tag,{iconSet:o.toStringAttribute(c.iconSet),reverse:o.toBoolAttribute(c.reverse,!1),showValue:o.toBoolAttribute(c.showValue,!0),custom:o.toBoolAttribute(c.icons,!1)}),c.cfvo.forEach(h=>{this.cfvoXform.render(a,h)}),c.icons&&c.icons.forEach((h,f)=>{h.iconId=f,this.cfIconXform.render(a,h)}),a.closeNode()}createNewModel(a){let{attributes:c}=a;return{cfvo:[],iconSet:o.toStringValue(c.iconSet,"3TrafficLights"),reverse:o.toBoolValue(c.reverse,!1),showValue:o.toBoolValue(c.showValue,!0)}}onParserClose(a,c){const[,h]=a.split(":");switch(h){case"cfvo":this.model.cfvo.push(c.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(c.model);break;default:this.model[h]=c.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(r,n,i){const o=r("../../base-xform");n.exports=class extends o{get tag(){return"xm:sqref"}render(s,u){s.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(s){this.model+=s}parseClose(s){return s!==this.tag}}},{"../../base-xform":32}],83:[function(r,n,i){const o=r("../../base-xform"),s=r("../../composite-xform"),u=r("../../../../doc/range"),l=r("./databar-xform"),a=r("./ext-lst-ref-xform"),c=r("./formula-xform"),h=r("./color-scale-xform"),f=r("./icon-set-xform"),d={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},m=p=>{const{type:v,operator:y}=p;switch(v){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:v};default:return{type:v,operator:y}}};class g extends s{constructor(){super(),this.map={dataBar:this.databarXform=new l,extLst:this.extLstRefXform=new a,formula:this.formulaXform=new c,colorScale:this.colorScaleXform=new h,iconSet:this.iconSetXform=new f}}get tag(){return"cfRule"}static isPrimitive(v){return v.type!=="iconSet"||!v.custom&&!d[v.iconSet]}render(v,y){switch(y.type){case"expression":this.renderExpression(v,y);break;case"cellIs":this.renderCellIs(v,y);break;case"top10":this.renderTop10(v,y);break;case"aboveAverage":this.renderAboveAverage(v,y);break;case"dataBar":this.renderDataBar(v,y);break;case"colorScale":this.renderColorScale(v,y);break;case"iconSet":this.renderIconSet(v,y);break;case"containsText":this.renderText(v,y);break;case"timePeriod":this.renderTimePeriod(v,y)}}renderExpression(v,y){v.openNode(this.tag,{type:"expression",dxfId:y.dxfId,priority:y.priority}),this.formulaXform.render(v,y.formulae[0]),v.closeNode()}renderCellIs(v,y){v.openNode(this.tag,{type:"cellIs",dxfId:y.dxfId,priority:y.priority,operator:y.operator}),y.formulae.forEach(b=>{this.formulaXform.render(v,b)}),v.closeNode()}renderTop10(v,y){v.leafNode(this.tag,{type:"top10",dxfId:y.dxfId,priority:y.priority,percent:o.toBoolAttribute(y.percent,!1),bottom:o.toBoolAttribute(y.bottom,!1),rank:o.toIntValue(y.rank,10,!0)})}renderAboveAverage(v,y){v.leafNode(this.tag,{type:"aboveAverage",dxfId:y.dxfId,priority:y.priority,aboveAverage:o.toBoolAttribute(y.aboveAverage,!0)})}renderDataBar(v,y){v.openNode(this.tag,{type:"dataBar",priority:y.priority}),this.databarXform.render(v,y),this.extLstRefXform.render(v,y),v.closeNode()}renderColorScale(v,y){v.openNode(this.tag,{type:"colorScale",priority:y.priority}),this.colorScaleXform.render(v,y),v.closeNode()}renderIconSet(v,y){g.isPrimitive(y)&&(v.openNode(this.tag,{type:"iconSet",priority:y.priority}),this.iconSetXform.render(v,y),v.closeNode())}renderText(v,y){v.openNode(this.tag,{type:y.operator,dxfId:y.dxfId,priority:y.priority,operator:o.toStringAttribute(y.operator,"containsText")});const b=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const E=new u(_.ref),{tl:$}=E;switch(_.operator){case"containsText":return`NOT(ISERROR(SEARCH("${_.text}",${$})))`;case"containsBlanks":return`LEN(TRIM(${$}))=0`;case"notContainsBlanks":return`LEN(TRIM(${$}))>0`;case"containsErrors":return`ISERROR(${$})`;case"notContainsErrors":return`NOT(ISERROR(${$}))`;default:return}})(y);b&&this.formulaXform.render(v,b),v.closeNode()}renderTimePeriod(v,y){v.openNode(this.tag,{type:"timePeriod",dxfId:y.dxfId,priority:y.priority,timePeriod:y.timePeriod});const b=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const E=new u(_.ref),{tl:$}=E;switch(_.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${$},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${$},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${$},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${$},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${$},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${$},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${$},1)=TODAY()-1`;case"today":return`FLOOR(${$},1)=TODAY()`;case"tomorrow":return`FLOOR(${$},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${$},1)<=6,FLOOR(${$},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${$})=MONTH(EDATE(TODAY(),0-1)),YEAR(${$})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${$})=MONTH(TODAY()),YEAR(${$})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${$})=MONTH(EDATE(TODAY(),0+1)),YEAR(${$})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(y);b&&this.formulaXform.render(v,b),v.closeNode()}createNewModel(v){let{attributes:y}=v;return{...m(y),dxfId:o.toIntValue(y.dxfId),priority:o.toIntValue(y.priority),timePeriod:y.timePeriod,percent:o.toBoolValue(y.percent),bottom:o.toBoolValue(y.bottom),rank:o.toIntValue(y.rank),aboveAverage:o.toBoolValue(y.aboveAverage)}}onParserClose(v,y){switch(v){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,y.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(y.model)}}}n.exports=g},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(r,n,i){const o=r("../../base-xform");n.exports=class extends o{get tag(){return"cfvo"}render(s,u){s.leafNode(this.tag,{type:u.type,val:u.value})}parseOpen(s){this.model={type:s.attributes.type,value:o.toFloatValue(s.attributes.val)}}parseClose(s){return s!==this.tag}}},{"../../base-xform":32}],85:[function(r,n,i){const o=r("../../composite-xform"),s=r("../../style/color-xform"),u=r("./cfvo-xform");n.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new s}}get tag(){return"colorScale"}render(l,a){l.openNode(this.tag),a.cfvo.forEach(c=>{this.cfvoXform.render(l,c)}),a.color.forEach(c=>{this.colorXform.render(l,c)}),l.closeNode()}createNewModel(l){return{cfvo:[],color:[]}}onParserClose(l,a){this.model[l].push(a.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(r,n,i){const o=r("../../composite-xform"),s=r("./cf-rule-xform");n.exports=class extends o{constructor(){super(),this.map={cfRule:new s}}get tag(){return"conditionalFormatting"}render(u,l){l.rules.some(s.isPrimitive)&&(u.openNode(this.tag,{sqref:l.ref}),l.rules.forEach(a=>{s.isPrimitive(a)&&(a.ref=l.ref,this.map.cfRule.render(u,a))}),u.closeNode())}createNewModel(u){let{attributes:l}=u;return{ref:l.sqref,rules:[]}}onParserClose(u,l){this.model.rules.push(l.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(r,n,i){const o=r("../../base-xform"),s=r("./conditional-formatting-xform");n.exports=class extends o{constructor(){super(),this.cfXform=new s}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(u,l){let a=u.reduce((c,h)=>Math.max(c,...h.rules.map(f=>f.priority||0)),1);u.forEach(c=>{c.rules.forEach(h=>{h.priority||(h.priority=a++),h.style&&(h.dxfId=l.styles.addDxfStyle(h.style))})})}render(u,l){l.forEach(a=>{this.cfXform.render(u,a)})}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return!!this.parser&&(!!this.parser.parseClose(u)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(u,l){u.forEach(a=>{a.rules.forEach(c=>{c.dxfId!==void 0&&(c.style=l.styles.getDxfStyle(c.dxfId),delete c.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(r,n,i){const o=r("../../composite-xform"),s=r("../../style/color-xform"),u=r("./cfvo-xform");n.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new s}}get tag(){return"dataBar"}render(l,a){l.openNode(this.tag),a.cfvo.forEach(c=>{this.cfvoXform.render(l,c)}),this.colorXform.render(l,a.color),l.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(l,a){switch(l){case"cfvo":this.model.cfvo.push(a.model);break;case"color":this.model.color=a.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(r,n,i){const o=r("../../base-xform"),s=r("../../composite-xform");class u extends o{get tag(){return"x14:id"}render(c,h){c.leafNode(this.tag,null,h)}parseOpen(){this.model=""}parseText(c){this.model+=c}parseClose(c){return c!==this.tag}}class l extends s{constructor(){super(),this.map={"x14:id":this.idXform=new u}}get tag(){return"ext"}render(c,h){c.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(c,h.x14Id),c.closeNode()}createNewModel(){return{}}onParserClose(c,h){this.model.x14Id=h.model}}n.exports=class extends s{constructor(){super(),this.map={ext:new l}}get tag(){return"extLst"}render(a,c){a.openNode(this.tag),this.map.ext.render(a,c),a.closeNode()}createNewModel(){return{}}onParserClose(a,c){Object.assign(this.model,c.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(r,n,i){const o=r("../../base-xform");n.exports=class extends o{get tag(){return"formula"}render(s,u){s.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(s){this.model+=s}parseClose(s){return s!==this.tag}}},{"../../base-xform":32}],91:[function(r,n,i){const o=r("../../base-xform"),s=r("../../composite-xform"),u=r("./cfvo-xform");n.exports=class extends s{constructor(){super(),this.map={cfvo:this.cfvoXform=new u}}get tag(){return"iconSet"}render(l,a){l.openNode(this.tag,{iconSet:o.toStringAttribute(a.iconSet,"3TrafficLights"),reverse:o.toBoolAttribute(a.reverse,!1),showValue:o.toBoolAttribute(a.showValue,!0)}),a.cfvo.forEach(c=>{this.cfvoXform.render(l,c)}),l.closeNode()}createNewModel(l){let{attributes:a}=l;return{iconSet:o.toStringValue(a.iconSet,"3TrafficLights"),reverse:o.toBoolValue(a.reverse),showValue:o.toBoolValue(a.showValue),cfvo:[]}}onParserClose(l,a){this.model[l].push(a.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(r,n,i){const o=r("../../../utils/utils"),s=r("../base-xform");n.exports=class extends s{get tag(){return"col"}prepare(u,l){const a=l.styles.addStyleModel(u.style||{});a&&(u.styleId=a)}render(u,l){u.openNode("col"),u.addAttribute("min",l.min),u.addAttribute("max",l.max),l.width&&u.addAttribute("width",l.width),l.styleId&&u.addAttribute("style",l.styleId),l.hidden&&u.addAttribute("hidden","1"),l.bestFit&&u.addAttribute("bestFit","1"),l.outlineLevel&&u.addAttribute("outlineLevel",l.outlineLevel),l.collapsed&&u.addAttribute("collapsed","1"),u.addAttribute("customWidth","1"),u.closeNode()}parseOpen(u){if(u.name==="col"){const l=this.model={min:parseInt(u.attributes.min||"0",10),max:parseInt(u.attributes.max||"0",10),width:u.attributes.width===void 0?void 0:parseFloat(u.attributes.width||"0")};return u.attributes.style&&(l.styleId=parseInt(u.attributes.style,10)),o.parseBoolean(u.attributes.hidden)&&(l.hidden=!0),o.parseBoolean(u.attributes.bestFit)&&(l.bestFit=!0),u.attributes.outlineLevel&&(l.outlineLevel=parseInt(u.attributes.outlineLevel,10)),o.parseBoolean(u.attributes.collapsed)&&(l.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(u,l){u.styleId&&(u.style=l.styles.getStyleModel(u.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../../../utils/utils"),u=r("../../../utils/col-cache"),l=r("../base-xform"),a=r("../../../doc/range");function c(f,d,m,g){const p=d[m];p!==void 0?f[m]=p:g!==void 0&&(f[m]=g)}function h(f,d,m,g){const p=d[m];p!==void 0?f[m]=s.parseBoolean(p):g!==void 0&&(f[m]=g)}n.exports=class extends l{get tag(){return"dataValidations"}render(f,d){const m=function(g){const p=o.map(g,(b,_)=>({address:_,dataValidation:b,marked:!1})).sort((b,_)=>o.strcmp(b.address,_.address)),v=o.keyBy(p,"address"),y=(b,_,E)=>{for(let $=0;$<_;$++){const M=u.encodeAddress(b.row+$,E);if(!g[M]||!o.isEqual(g[b.address],g[M]))return!1}return!0};return p.map(b=>{if(!b.marked){const _=u.decodeEx(b.address);if(_.dimensions)return v[_.dimensions].marked=!0,{...b.dataValidation,sqref:b.address};let E=1,$=u.encodeAddress(_.row+E,_.col);for(;g[$]&&o.isEqual(b.dataValidation,g[$]);)E++,$=u.encodeAddress(_.row+E,_.col);let M=1;for(;y(_,E,_.col+M);)M++;for(let P=0;P1||M>1){const P=_.row+(E-1),D=_.col+(M-1);return{...b.dataValidation,sqref:`${b.address}:${u.encodeAddress(P,D)}`}}return{...b.dataValidation,sqref:b.address}}return null}).filter(Boolean)}(d);m.length&&(f.openNode("dataValidations",{count:m.length}),m.forEach(g=>{f.openNode("dataValidation"),g.type!=="any"&&(f.addAttribute("type",g.type),g.operator&&g.type!=="list"&&g.operator!=="between"&&f.addAttribute("operator",g.operator),g.allowBlank&&f.addAttribute("allowBlank","1")),g.showInputMessage&&f.addAttribute("showInputMessage","1"),g.promptTitle&&f.addAttribute("promptTitle",g.promptTitle),g.prompt&&f.addAttribute("prompt",g.prompt),g.showErrorMessage&&f.addAttribute("showErrorMessage","1"),g.errorStyle&&f.addAttribute("errorStyle",g.errorStyle),g.errorTitle&&f.addAttribute("errorTitle",g.errorTitle),g.error&&f.addAttribute("error",g.error),f.addAttribute("sqref",g.sqref),(g.formulae||[]).forEach((p,v)=>{f.openNode("formula"+(v+1)),g.type==="date"?f.writeText(s.dateToExcel(new Date(p))):f.writeText(p),f.closeNode()}),f.closeNode()}),f.closeNode())}parseOpen(f){switch(f.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=f.attributes.sqref;const d={type:f.attributes.type||"any",formulae:[]};switch(f.attributes.type&&h(d,f.attributes,"allowBlank"),h(d,f.attributes,"showInputMessage"),h(d,f.attributes,"showErrorMessage"),d.type){case"any":case"list":case"custom":break;default:c(d,f.attributes,"operator","between")}return c(d,f.attributes,"promptTitle"),c(d,f.attributes,"prompt"),c(d,f.attributes,"errorStyle"),c(d,f.attributes,"errorTitle"),c(d,f.attributes,"error"),this._dataValidation=d,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(f){this._formula&&this._formula.push(f)}parseClose(f){switch(f){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(d=>{d.includes(":")?new a(d).forEachAddress(m=>{this.model[m]=this._dataValidation}):this.model[d]=this._dataValidation}),!0;case"formula1":case"formula2":{let d=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":d=parseInt(d,10);break;case"decimal":d=parseFloat(d);break;case"date":d=s.excelToDate(parseFloat(d))}return this._dataValidation.formulae.push(d),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"dimension"}render(s,u){u&&s.leafNode("dimension",{ref:u})}parseOpen(s){return s.name==="dimension"&&(this.model=s.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"drawing"}render(s,u){u&&s.leafNode(this.tag,{"r:id":u.rId})}parseOpen(s){switch(s.name){case this.tag:return this.model={rId:s.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(r,n,i){const o=r("../composite-xform"),s=r("./cf-ext/conditional-formattings-ext-xform");class u extends o{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new s}}get tag(){return"ext"}hasContent(a){return this.conditionalFormattings.hasContent(a.conditionalFormattings)}prepare(a,c){this.conditionalFormattings.prepare(a.conditionalFormattings,c)}render(a,c){a.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(a,c.conditionalFormattings),a.closeNode()}createNewModel(){return{}}onParserClose(a,c){this.model[a]=c.model}}n.exports=class extends o{constructor(){super(),this.map={ext:this.ext=new u}}get tag(){return"extLst"}prepare(l,a){this.ext.prepare(l,a)}hasContent(l){return this.ext.hasContent(l)}render(l,a){this.hasContent(a)&&(l.openNode("extLst"),this.ext.render(l,a),l.closeNode())}createNewModel(){return{}}onParserClose(l,a){Object.assign(this.model,a.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"headerFooter"}render(s,u){if(u){s.addRollback();let l=!1;s.openNode("headerFooter"),u.differentFirst&&(s.addAttribute("differentFirst","1"),l=!0),u.differentOddEven&&(s.addAttribute("differentOddEven","1"),l=!0),u.oddHeader&&typeof u.oddHeader=="string"&&(s.leafNode("oddHeader",null,u.oddHeader),l=!0),u.oddFooter&&typeof u.oddFooter=="string"&&(s.leafNode("oddFooter",null,u.oddFooter),l=!0),u.evenHeader&&typeof u.evenHeader=="string"&&(s.leafNode("evenHeader",null,u.evenHeader),l=!0),u.evenFooter&&typeof u.evenFooter=="string"&&(s.leafNode("evenFooter",null,u.evenFooter),l=!0),u.firstHeader&&typeof u.firstHeader=="string"&&(s.leafNode("firstHeader",null,u.firstHeader),l=!0),u.firstFooter&&typeof u.firstFooter=="string"&&(s.leafNode("firstFooter",null,u.firstFooter),l=!0),l?(s.closeNode(),s.commit()):s.rollback()}}parseOpen(s){switch(s.name){case"headerFooter":return this.model={},s.attributes.differentFirst&&(this.model.differentFirst=parseInt(s.attributes.differentFirst,0)===1),s.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(s.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(s){switch(this.currentNode){case"oddHeader":this.model.oddHeader=s;break;case"oddFooter":this.model.oddFooter=s;break;case"evenHeader":this.model.evenHeader=s;break;case"evenFooter":this.model.evenFooter=s;break;case"firstHeader":this.model.firstHeader=s;break;case"firstFooter":this.model.firstFooter=s}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"hyperlink"}render(s,u){this.isInternalLink(u)?s.leafNode("hyperlink",{ref:u.address,"r:id":u.rId,tooltip:u.tooltip,location:u.target}):s.leafNode("hyperlink",{ref:u.address,"r:id":u.rId,tooltip:u.tooltip})}parseOpen(s){return s.name==="hyperlink"&&(this.model={address:s.attributes.ref,rId:s.attributes["r:id"],tooltip:s.attributes.tooltip},s.attributes.location&&(this.model.target=s.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(s){return s.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(s.target)}}},{"../base-xform":32}],99:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"mergeCell"}render(s,u){s.leafNode("mergeCell",{ref:u})}parseOpen(s){return s.name==="mergeCell"&&(this.model=s.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../../../doc/range"),u=r("../../../utils/col-cache"),l=r("../../../doc/enums");n.exports=class{constructor(){this.merges={}}add(a){if(this.merges[a.master])this.merges[a.master].expandToAddress(a.address);else{const c=`${a.master}:${a.address}`;this.merges[a.master]=new s(c)}}get mergeCells(){return o.map(this.merges,a=>a.range)}reconcile(a,c){o.each(a,h=>{const f=u.decode(h);for(let d=f.top;d<=f.bottom;d++){const m=c[d-1];for(let g=f.left;g<=f.right;g++){const p=m.cells[g-1];p?p.type===l.ValueType.Merge&&(p.master=f.tl):m.cells[g]={type:l.ValueType.Null,address:u.encodeAddress(d,g)}}}})}getMasterAddress(a){const c=this.hash[a];return c&&c.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(r,n,i){const o=r("../base-xform"),s=u=>u!==void 0;n.exports=class extends o{get tag(){return"outlinePr"}render(u,l){return!(!l||!s(l.summaryBelow)&&!s(l.summaryRight))&&(u.leafNode(this.tag,{summaryBelow:s(l.summaryBelow)?Number(l.summaryBelow):void 0,summaryRight:s(l.summaryRight)?Number(l.summaryRight):void 0}),!0)}parseOpen(u){return u.name===this.tag&&(this.model={summaryBelow:s(u.attributes.summaryBelow)?!!Number(u.attributes.summaryBelow):void 0,summaryRight:s(u.attributes.summaryRight)?!!Number(u.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"brk"}render(s,u){s.leafNode("brk",u)}parseOpen(s){return s.name==="brk"&&(this.model=s.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../base-xform");n.exports=class extends s{get tag(){return"pageMargins"}render(u,l){if(l){const a={left:l.left,right:l.right,top:l.top,bottom:l.bottom,header:l.header,footer:l.footer};o.some(a,c=>c!==void 0)&&u.leafNode(this.tag,a)}}parseOpen(u){switch(u.name){case this.tag:return this.model={left:parseFloat(u.attributes.left||.7),right:parseFloat(u.attributes.right||.7),top:parseFloat(u.attributes.top||.75),bottom:parseFloat(u.attributes.bottom||.75),header:parseFloat(u.attributes.header||.3),footer:parseFloat(u.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"pageSetUpPr"}render(s,u){return!(!u||!u.fitToPage)&&(s.leafNode(this.tag,{fitToPage:u.fitToPage?"1":void 0}),!0)}parseOpen(s){return s.name===this.tag&&(this.model={fitToPage:s.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../base-xform");function u(h){return h?"1":void 0}function l(h){switch(h){case"overThenDown":return h;default:return}}function a(h){switch(h){case"atEnd":case"asDisplyed":return h;default:return}}function c(h){switch(h){case"dash":case"blank":case"NA":return h;default:return}}n.exports=class extends s{get tag(){return"pageSetup"}render(h,f){if(f){const d={paperSize:f.paperSize,orientation:f.orientation,horizontalDpi:f.horizontalDpi,verticalDpi:f.verticalDpi,pageOrder:l(f.pageOrder),blackAndWhite:u(f.blackAndWhite),draft:u(f.draft),cellComments:a(f.cellComments),errors:c(f.errors),scale:f.scale,fitToWidth:f.fitToWidth,fitToHeight:f.fitToHeight,firstPageNumber:f.firstPageNumber,useFirstPageNumber:u(f.firstPageNumber),usePrinterDefaults:u(f.usePrinterDefaults),copies:f.copies};o.some(d,m=>m!==void 0)&&h.leafNode(this.tag,d)}}parseOpen(h){switch(h.name){case this.tag:return this.model={paperSize:(f=h.attributes.paperSize,f!==void 0?parseInt(f,10):void 0),orientation:h.attributes.orientation||"portrait",horizontalDpi:parseInt(h.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(h.attributes.verticalDpi||"4294967295",10),pageOrder:h.attributes.pageOrder||"downThenOver",blackAndWhite:h.attributes.blackAndWhite==="1",draft:h.attributes.draft==="1",cellComments:h.attributes.cellComments||"None",errors:h.attributes.errors||"displayed",scale:parseInt(h.attributes.scale||"100",10),fitToWidth:parseInt(h.attributes.fitToWidth||"1",10),fitToHeight:parseInt(h.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(h.attributes.firstPageNumber||"1",10),useFirstPageNumber:h.attributes.useFirstPageNumber==="1",usePrinterDefaults:h.attributes.usePrinterDefaults==="1",copies:parseInt(h.attributes.copies||"1",10)},!0;default:return!1}var f}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"picture"}render(s,u){u&&s.leafNode(this.tag,{"r:id":u.rId})}parseOpen(s){switch(s.name){case this.tag:return this.model={rId:s.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../base-xform");function u(l){return l?"1":void 0}n.exports=class extends s{get tag(){return"printOptions"}render(l,a){if(a){const c={headings:u(a.showRowColHeaders),gridLines:u(a.showGridLines),horizontalCentered:u(a.horizontalCentered),verticalCentered:u(a.verticalCentered)};o.some(c,h=>h!==void 0)&&l.leafNode(this.tag,c)}}parseOpen(l){switch(l.name){case this.tag:return this.model={showRowColHeaders:l.attributes.headings==="1",showGridLines:l.attributes.gridLines==="1",horizontalCentered:l.attributes.horizontalCentered==="1",verticalCentered:l.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(r,n,i){const o=r("./page-breaks-xform"),s=r("../list-xform");n.exports=class extends s{constructor(){super({tag:"rowBreaks",count:!0,childXform:new o})}render(u,l){if(l&&l.length){u.openNode(this.tag,this.$),this.count&&(u.addAttribute(this.$count,l.length),u.addAttribute("manualBreakCount",l.length));const{childXform:a}=this;l.forEach(c=>{a.render(u,c)}),u.closeNode()}else this.empty&&u.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(r,n,i){const o=r("../base-xform"),s=r("../../../utils/utils"),u=r("./cell-xform");n.exports=class extends o{constructor(l){super(),this.maxItems=l&&l.maxItems,this.map={c:new u}}get tag(){return"row"}prepare(l,a){const c=a.styles.addStyleModel(l.style);c&&(l.styleId=c);const h=this.map.c;l.cells.forEach(f=>{h.prepare(f,a)})}render(l,a,c){l.openNode("row"),l.addAttribute("r",a.number),a.height&&(l.addAttribute("ht",a.height),l.addAttribute("customHeight","1")),a.hidden&&l.addAttribute("hidden","1"),a.min>0&&a.max>0&&a.min<=a.max&&l.addAttribute("spans",`${a.min}:${a.max}`),a.styleId&&(l.addAttribute("s",a.styleId),l.addAttribute("customFormat","1")),l.addAttribute("x14ac:dyDescent","0.25"),a.outlineLevel&&l.addAttribute("outlineLevel",a.outlineLevel),a.collapsed&&l.addAttribute("collapsed","1");const h=this.map.c;a.cells.forEach(f=>{h.render(l,f,c)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;if(l.name==="row"){this.numRowsSeen+=1;const a=l.attributes.spans?l.attributes.spans.split(":").map(h=>parseInt(h,10)):[void 0,void 0],c=this.model={number:parseInt(l.attributes.r,10),min:a[0],max:a[1],cells:[]};return l.attributes.s&&(c.styleId=parseInt(l.attributes.s,10)),s.parseBoolean(l.attributes.hidden)&&(c.hidden=!0),s.parseBoolean(l.attributes.bestFit)&&(c.bestFit=!0),l.attributes.ht&&(c.height=parseFloat(l.attributes.ht)),l.attributes.outlineLevel&&(c.outlineLevel=parseInt(l.attributes.outlineLevel,10)),s.parseBoolean(l.attributes.collapsed)&&(c.collapsed=!0),!0}return this.parser=this.map[l.name],!!this.parser&&(this.parser.parseOpen(l),!0)}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser){if(!this.parser.parseClose(l)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(l,a){l.style=l.styleId?a.styles.getStyleModel(l.styleId):{},l.styleId!==void 0&&(l.styleId=void 0);const c=this.map.c;l.cells.forEach(h=>{c.reconcile(h,a)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../base-xform");n.exports=class extends s{get tag(){return"sheetFormatPr"}render(u,l){if(l){const a={defaultRowHeight:l.defaultRowHeight,outlineLevelRow:l.outlineLevelRow,outlineLevelCol:l.outlineLevelCol,"x14ac:dyDescent":l.dyDescent};l.defaultColWidth&&(a.defaultColWidth=l.defaultColWidth),l.defaultRowHeight&&l.defaultRowHeight===15||(a.customHeight="1"),o.some(a,c=>c!==void 0)&&u.leafNode("sheetFormatPr",a)}}parseOpen(u){return u.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(u.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(u.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(u.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(u.attributes.outlineLevelCol||"0",10)},u.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(u.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(r,n,i){const o=r("../base-xform"),s=r("../style/color-xform"),u=r("./page-setup-properties-xform"),l=r("./outline-properties-xform");n.exports=class extends o{constructor(){super(),this.map={tabColor:new s("tabColor"),pageSetUpPr:new u,outlinePr:new l}}get tag(){return"sheetPr"}render(a,c){if(c){a.addRollback(),a.openNode("sheetPr");let h=!1;h=this.map.tabColor.render(a,c.tabColor)||h,h=this.map.pageSetUpPr.render(a,c.pageSetup)||h,h=this.map.outlinePr.render(a,c.outlineProperties)||h,h?(a.closeNode(),a.commit()):a.rollback()}}parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag?(this.reset(),!0):!!this.map[a.name]&&(this.parser=this.map[a.name],this.parser.parseOpen(a),!0)}parseText(a){return!!this.parser&&(this.parser.parseText(a),!0)}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../base-xform");function u(a,c){return a?c:void 0}function l(a,c){return a===c||void 0}n.exports=class extends s{get tag(){return"sheetProtection"}render(a,c){if(c){const h={sheet:u(c.sheet,"1"),selectLockedCells:c.selectLockedCells===!1?"1":void 0,selectUnlockedCells:c.selectUnlockedCells===!1?"1":void 0,formatCells:u(c.formatCells,"0"),formatColumns:u(c.formatColumns,"0"),formatRows:u(c.formatRows,"0"),insertColumns:u(c.insertColumns,"0"),insertRows:u(c.insertRows,"0"),insertHyperlinks:u(c.insertHyperlinks,"0"),deleteColumns:u(c.deleteColumns,"0"),deleteRows:u(c.deleteRows,"0"),sort:u(c.sort,"0"),autoFilter:u(c.autoFilter,"0"),pivotTables:u(c.pivotTables,"0")};c.sheet&&(h.algorithmName=c.algorithmName,h.hashValue=c.hashValue,h.saltValue=c.saltValue,h.spinCount=c.spinCount,h.objects=u(c.objects===!1,"1"),h.scenarios=u(c.scenarios===!1,"1")),o.some(h,f=>f!==void 0)&&a.leafNode(this.tag,h)}}parseOpen(a){switch(a.name){case this.tag:return this.model={sheet:l(a.attributes.sheet,"1"),objects:a.attributes.objects!=="1"&&void 0,scenarios:a.attributes.scenarios!=="1"&&void 0,selectLockedCells:a.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:a.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:l(a.attributes.formatCells,"0"),formatColumns:l(a.attributes.formatColumns,"0"),formatRows:l(a.attributes.formatRows,"0"),insertColumns:l(a.attributes.insertColumns,"0"),insertRows:l(a.attributes.insertRows,"0"),insertHyperlinks:l(a.attributes.insertHyperlinks,"0"),deleteColumns:l(a.attributes.deleteColumns,"0"),deleteRows:l(a.attributes.deleteRows,"0"),sort:l(a.attributes.sort,"0"),autoFilter:l(a.attributes.autoFilter,"0"),pivotTables:l(a.attributes.pivotTables,"0")},a.attributes.algorithmName&&(this.model.algorithmName=a.attributes.algorithmName,this.model.hashValue=a.attributes.hashValue,this.model.saltValue=a.attributes.saltValue,this.model.spinCount=parseInt(a.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(r,n,i){const o=r("../../../utils/col-cache"),s=r("../base-xform"),u={frozen:"frozen",frozenSplit:"frozen",split:"split"};n.exports=class extends s{get tag(){return"sheetView"}prepare(l){switch(l.state){case"frozen":case"split":break;default:l.state="normal"}}render(l,a){l.openNode("sheetView",{workbookViewId:a.workbookViewId||0});const c=function(g,p,v){v&&l.addAttribute(g,p)};let h,f,d,m;switch(c("rightToLeft","1",a.rightToLeft===!0),c("tabSelected","1",a.tabSelected),c("showRuler","0",a.showRuler===!1),c("showRowColHeaders","0",a.showRowColHeaders===!1),c("showGridLines","0",a.showGridLines===!1),c("zoomScale",a.zoomScale,a.zoomScale),c("zoomScaleNormal",a.zoomScaleNormal,a.zoomScaleNormal),c("view",a.style,a.style),a.state){case"frozen":f=a.xSplit||0,d=a.ySplit||0,h=a.topLeftCell||o.getAddress(d+1,f+1).address,m=(a.xSplit&&a.ySplit?"bottomRight":a.xSplit&&"topRight")||"bottomLeft",l.leafNode("pane",{xSplit:a.xSplit||void 0,ySplit:a.ySplit||void 0,topLeftCell:h,activePane:m,state:"frozen"}),l.leafNode("selection",{pane:m,activeCell:a.activeCell,sqref:a.activeCell});break;case"split":a.activePane==="topLeft"&&(a.activePane=void 0),l.leafNode("pane",{xSplit:a.xSplit||void 0,ySplit:a.ySplit||void 0,topLeftCell:a.topLeftCell,activePane:a.activePane}),l.leafNode("selection",{pane:a.activePane,activeCell:a.activeCell,sqref:a.activeCell});break;case"normal":a.activeCell&&l.leafNode("selection",{activeCell:a.activeCell,sqref:a.activeCell})}l.closeNode()}parseOpen(l){switch(l.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(l.attributes.workbookViewId,10),rightToLeft:l.attributes.rightToLeft==="1",tabSelected:l.attributes.tabSelected==="1",showRuler:l.attributes.showRuler!=="0",showRowColHeaders:l.attributes.showRowColHeaders!=="0",showGridLines:l.attributes.showGridLines!=="0",zoomScale:parseInt(l.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(l.attributes.zoomScaleNormal||"100",10),style:l.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(l.attributes.xSplit||"0",10),ySplit:parseInt(l.attributes.ySplit||"0",10),topLeftCell:l.attributes.topLeftCell,activePane:l.attributes.activePane||"topLeft",state:l.attributes.state},!0;case"selection":{const a=l.attributes.pane||"topLeft";return this.selections[a]={pane:a,activeCell:l.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(l){let a,c;switch(l){case"sheetView":return this.sheetView&&this.pane?(a=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:u[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(a.activePane=this.pane.activePane),c=this.selections[this.pane.activePane],c&&c.activeCell&&(a.activeCell=c.activeCell),this.sheetView.style&&(a.style=this.sheetView.style)):(a=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},c=this.selections.topLeft,c&&c.activeCell&&(a.activeCell=c.activeCell),this.sheetView.style&&(a.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"tablePart"}render(s,u){u&&s.leafNode(this.tag,{"r:id":u.rId})}parseOpen(s){switch(s.name){case this.tag:return this.model={rId:s.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../../../utils/col-cache"),u=r("../../../utils/xml-stream"),l=r("../../rel-type"),a=r("./merges"),c=r("../base-xform"),h=r("../list-xform"),f=r("./row-xform"),d=r("./col-xform"),m=r("./dimension-xform"),g=r("./hyperlink-xform"),p=r("./merge-cell-xform"),v=r("./data-validations-xform"),y=r("./sheet-properties-xform"),b=r("./sheet-format-properties-xform"),_=r("./sheet-view-xform"),E=r("./sheet-protection-xform"),$=r("./page-margins-xform"),M=r("./page-setup-xform"),P=r("./print-options-xform"),D=r("./auto-filter-xform"),F=r("./picture-xform"),U=r("./drawing-xform"),V=r("./table-part-xform"),A=r("./row-breaks-xform"),O=r("./header-footer-xform"),C=r("./cf/conditional-formattings-xform"),w=r("./ext-lst-xform"),S=(k,T)=>{if(!T||!T.length)return k;if(!k||!k.length)return T;const I={},L={};return k.forEach(z=>{I[z.ref]=z,z.rules.forEach(B=>{const{x14Id:W}=B;W&&(L[W]=B)})}),T.forEach(z=>{z.rules.forEach(B=>{const W=L[B.x14Id];W?((N,q)=>{Object.keys(q).forEach(j=>{const R=N[j],H=q[j];R===void 0&&H!==void 0&&(N[j]=H)})})(W,B):I[z.ref]?I[z.ref].rules.push(B):k.push({ref:z.ref,rules:[B]})})}),k};class x extends c{constructor(T){super();const{maxRows:I,maxCols:L,ignoreNodes:z}=T||{};this.ignoreNodes=z||[],this.map={sheetPr:new y,dimension:new m,sheetViews:new h({tag:"sheetViews",count:!1,childXform:new _}),sheetFormatPr:new b,cols:new h({tag:"cols",count:!1,childXform:new d}),sheetData:new h({tag:"sheetData",count:!1,empty:!0,childXform:new f({maxItems:L}),maxItems:I}),autoFilter:new D,mergeCells:new h({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new A,hyperlinks:new h({tag:"hyperlinks",count:!1,childXform:new g}),pageMargins:new $,dataValidations:new v,pageSetup:new M,headerFooter:new O,printOptions:new P,picture:new F,drawing:new U,sheetProtection:new E,tableParts:new h({tag:"tableParts",count:!0,childXform:new V}),conditionalFormatting:new C,extLst:new w}}prepare(T,I){I.merges=new a,T.hyperlinks=I.hyperlinks=[],T.comments=I.comments=[],I.formulae={},I.siFormulae=0,this.map.cols.prepare(T.cols,I),this.map.sheetData.prepare(T.rows,I),this.map.conditionalFormatting.prepare(T.conditionalFormattings,I),T.mergeCells=I.merges.mergeCells;const L=T.rels=[];function z(N){return"rId"+(N.length+1)}if(T.hyperlinks.forEach(N=>{const q=z(L);N.rId=q,L.push({Id:q,Type:l.Hyperlink,Target:N.target,TargetMode:"External"})}),T.comments.length>0){const N={Id:z(L),Type:l.Comments,Target:`../comments${T.id}.xml`};L.push(N);const q={Id:z(L),Type:l.VmlDrawing,Target:`../drawings/vmlDrawing${T.id}.vml`};L.push(q),T.comments.forEach(j=>{j.refAddress=s.decodeAddress(j.ref)}),I.commentRefs.push({commentName:"comments"+T.id,vmlDrawing:"vmlDrawing"+T.id})}const B=[];let W;T.media.forEach(N=>{if(N.type==="background"){const q=z(L);W=I.media[N.imageId],L.push({Id:q,Type:l.Image,Target:`../media/${W.name}.${W.extension}`}),T.background={rId:q},T.image=I.media[N.imageId]}else if(N.type==="image"){let{drawing:q}=T;W=I.media[N.imageId],q||(q=T.drawing={rId:z(L),name:"drawing"+ ++I.drawingsCount,anchors:[],rels:[]},I.drawings.push(q),L.push({Id:q.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${q.name}.xml`}));let j=this.preImageId===N.imageId?B[N.imageId]:B[q.rels.length];j||(j=z(q.rels),B[q.rels.length]=j,q.rels.push({Id:j,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${W.name}.${W.extension}`}));const R={picture:{rId:j},range:N.range};if(N.hyperlinks&&N.hyperlinks.hyperlink){const H=z(q.rels);B[q.rels.length]=H,R.picture.hyperlinks={tooltip:N.hyperlinks.tooltip,rId:H},q.rels.push({Id:H,Type:l.Hyperlink,Target:N.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=N.imageId,q.anchors.push(R)}}),T.tables.forEach(N=>{const q=z(L);N.rId=q,L.push({Id:q,Type:l.Table,Target:"../tables/"+N.target}),N.columns.forEach(j=>{const{style:R}=j;R&&(j.dxfId=I.styles.addDxfStyle(R))})}),this.map.extLst.prepare(T,I)}render(T,I){T.openXml(u.StdDocAttributes),T.openNode("worksheet",x.WORKSHEET_ATTRIBUTES);const L=I.properties?{defaultRowHeight:I.properties.defaultRowHeight,dyDescent:I.properties.dyDescent,outlineLevelCol:I.properties.outlineLevelCol,outlineLevelRow:I.properties.outlineLevelRow}:void 0;I.properties&&I.properties.defaultColWidth&&(L.defaultColWidth=I.properties.defaultColWidth);const z={outlineProperties:I.properties&&I.properties.outlineProperties,tabColor:I.properties&&I.properties.tabColor,pageSetup:I.pageSetup&&I.pageSetup.fitToPage?{fitToPage:I.pageSetup.fitToPage}:void 0},B=I.pageSetup&&I.pageSetup.margins,W={showRowColHeaders:I.pageSetup&&I.pageSetup.showRowColHeaders,showGridLines:I.pageSetup&&I.pageSetup.showGridLines,horizontalCentered:I.pageSetup&&I.pageSetup.horizontalCentered,verticalCentered:I.pageSetup&&I.pageSetup.verticalCentered},N=I.sheetProtection;this.map.sheetPr.render(T,z),this.map.dimension.render(T,I.dimensions),this.map.sheetViews.render(T,I.views),this.map.sheetFormatPr.render(T,L),this.map.cols.render(T,I.cols),this.map.sheetData.render(T,I.rows),this.map.sheetProtection.render(T,N),this.map.autoFilter.render(T,I.autoFilter),this.map.mergeCells.render(T,I.mergeCells),this.map.conditionalFormatting.render(T,I.conditionalFormattings),this.map.dataValidations.render(T,I.dataValidations),this.map.hyperlinks.render(T,I.hyperlinks),this.map.printOptions.render(T,W),this.map.pageMargins.render(T,B),this.map.pageSetup.render(T,I.pageSetup),this.map.headerFooter.render(T,I.headerFooter),this.map.rowBreaks.render(T,I.rowBreaks),this.map.drawing.render(T,I.drawing),this.map.picture.render(T,I.background),this.map.tableParts.render(T,I.tables),this.map.extLst.render(T,I),I.rels&&I.rels.forEach(q=>{q.Type===l.VmlDrawing&&T.leafNode("legacyDrawing",{"r:id":q.Id})}),T.closeNode()}parseOpen(T){return this.parser?(this.parser.parseOpen(T),!0):T.name==="worksheet"?(o.each(this.map,I=>{I.reset()}),!0):(this.map[T.name]&&!this.ignoreNodes.includes(T.name)&&(this.parser=this.map[T.name],this.parser.parseOpen(T)),!0)}parseText(T){this.parser&&this.parser.parseText(T)}parseClose(T){if(this.parser)return this.parser.parseClose(T)||(this.parser=void 0),!0;switch(T){case"worksheet":{const I=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(I.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(I.outlineProperties=this.map.sheetPr.model.outlineProperties);const L={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},z=Object.assign(L,this.map.pageSetup.model,this.map.printOptions.model),B=S(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:I,views:this.map.sheetViews.model,pageSetup:z,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:B},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(T,I){const L=(T.relationships||[]).reduce((B,W)=>{if(B[W.Id]=W,W.Type===l.Comments&&(T.comments=I.comments[W.Target].comments),W.Type===l.VmlDrawing&&T.comments&&T.comments.length){const N=I.vmlDrawings[W.Target].comments;T.comments.forEach((q,j)=>{q.note=Object.assign({},q.note,N[j])})}return B},{});if(I.commentsMap=(T.comments||[]).reduce((B,W)=>(W.ref&&(B[W.ref]=W),B),{}),I.hyperlinkMap=(T.hyperlinks||[]).reduce((B,W)=>(W.rId&&(B[W.address]=L[W.rId].Target),B),{}),I.formulae={},T.rows=T.rows&&T.rows.filter(Boolean)||[],T.rows.forEach(B=>{B.cells=B.cells&&B.cells.filter(Boolean)||[]}),this.map.cols.reconcile(T.cols,I),this.map.sheetData.reconcile(T.rows,I),this.map.conditionalFormatting.reconcile(T.conditionalFormattings,I),T.media=[],T.drawing){const B=L[T.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(B){const W=B[1];I.drawings[W].anchors.forEach(N=>{if(N.medium){const q={type:"image",imageId:N.medium.index,range:N.range,hyperlinks:N.picture.hyperlinks};T.media.push(q)}})}}const z=T.background&&L[T.background.rId];if(z){const B=z.Target.split("/media/")[1],W=I.mediaIndex&&I.mediaIndex[B];W!==void 0&&T.media.push({type:"background",imageId:W})}T.tables=(T.tables||[]).map(B=>{const W=L[B.rId];return I.tables[W.Target]}),delete T.relationships,delete T.hyperlinks,delete T.comments}}x.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},n.exports=x},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{constructor(s){super(),this.tag=s.tag,this.attr=s.attr}render(s,u){u&&(s.openNode(this.tag),s.closeNode())}parseOpen(s){s.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{constructor(s){super(),this.tag=s.tag,this.attr=s.attr,this.attrs=s.attrs,this._format=s.format||function(u){try{return Number.isNaN(u.getTime())?"":u.toISOString()}catch{return""}},this._parse=s.parse||function(u){return new Date(u)}}render(s,u){u&&(s.openNode(this.tag),this.attrs&&s.addAttributes(this.attrs),this.attr?s.addAttribute(this.attr,this._format(u)):s.writeText(this._format(u)),s.closeNode())}parseOpen(s){s.name===this.tag&&(this.attr?this.model=this._parse(s.attributes[this.attr]):this.text=[])}parseText(s){this.attr||this.text.push(s)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{constructor(s){super(),this.tag=s.tag,this.attr=s.attr,this.attrs=s.attrs,this.zero=s.zero}render(s,u){(u||this.zero)&&(s.openNode(this.tag),this.attrs&&s.addAttributes(this.attrs),this.attr?s.addAttribute(this.attr,u):s.writeText(u),s.closeNode())}parseOpen(s){return s.name===this.tag&&(this.attr?this.model=parseInt(s.attributes[this.attr],10):this.text=[],!0)}parseText(s){this.attr||this.text.push(s)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{constructor(s){super(),this.tag=s.tag,this.attr=s.attr,this.attrs=s.attrs}render(s,u){u!==void 0&&(s.openNode(this.tag),this.attrs&&s.addAttributes(this.attrs),this.attr?s.addAttribute(this.attr,u):s.writeText(u),s.closeNode())}parseOpen(s){s.name===this.tag&&(this.attr?this.model=s.attributes[this.attr]:this.text=[])}parseText(s){this.attr||this.text.push(s)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(r,n,i){const o=r("./base-xform"),s=r("../../utils/xml-stream");n.exports=class extends o{constructor(u){super(),this._model=u}render(u){if(!this._xml){const l=new s;(function a(c,h){c.openNode(h.tag,h.$),h.c&&h.c.forEach(f=>{a(c,f)}),h.t&&c.writeText(h.t),c.closeNode()})(l,this._model),this._xml=l.xml}u.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(u){switch(u){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(r,n,i){const o=r("./text-xform"),s=r("./rich-text-xform"),u=r("../base-xform");n.exports=class extends u{constructor(){super(),this.map={r:new s,t:new o}}get tag(){return"rPh"}render(l,a){if(l.openNode(this.tag,{sb:a.sb||0,eb:a.eb||0}),a&&a.hasOwnProperty("richText")&&a.richText){const{r:c}=this.map;a.richText.forEach(h=>{c.render(l,h)})}else a&&this.map.t.render(l,a.text);l.closeNode()}parseOpen(l){const{name:a}=l;return this.parser?(this.parser.parseOpen(l),!0):a===this.tag?(this.model={sb:parseInt(l.attributes.sb,10),eb:parseInt(l.attributes.eb,10)},!0):(this.parser=this.map[a],!!this.parser&&(this.parser.parseOpen(l),!0))}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser){if(!this.parser.parseClose(l)){switch(l){case"r":{let a=this.model.richText;a||(a=this.model.richText=[]),a.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(l){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(r,n,i){const o=r("./text-xform"),s=r("../style/font-xform"),u=r("../base-xform");class l extends u{constructor(c){super(),this.model=c}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new o)}get fontXform(){return this._fontXform||(this._fontXform=new s(l.FONT_OPTIONS))}render(c,h){h=h||this.model,c.openNode("r"),h.font&&this.fontXform.render(c,h.font),this.textXform.render(c,h.text),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(c),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(c),!0;default:return!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){switch(c){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(c),!0}}}l.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},n.exports=l},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(r,n,i){const o=r("./text-xform"),s=r("./rich-text-xform"),u=r("./phonetic-text-xform"),l=r("../base-xform");n.exports=class extends l{constructor(a){super(),this.model=a,this.map={r:new s,t:new o,rPh:new u}}get tag(){return"si"}render(a,c){a.openNode(this.tag),c&&c.hasOwnProperty("richText")&&c.richText?c.richText.length?c.richText.forEach(h=>{this.map.r.render(a,h)}):this.map.t.render(a,""):c!=null&&this.map.t.render(a,c),a.closeNode()}parseOpen(a){const{name:c}=a;return this.parser?(this.parser.parseOpen(a),!0):c===this.tag?(this.model={},!0):(this.parser=this.map[c],!!this.parser&&(this.parser.parseOpen(a),!0))}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)){switch(a){case"r":{let c=this.model.richText;c||(c=this.model.richText=[]),c.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(r,n,i){const o=r("../../../utils/xml-stream"),s=r("../base-xform"),u=r("./shared-string-xform");n.exports=class extends s{constructor(l){super(),this.model=l||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new u)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(l){return this.model.values[l]}add(l){return l.richText?this.addRichText(l):this.addText(l)}addText(l){let a=this.hash[l];return a===void 0&&(a=this.hash[l]=this.model.values.length,this.model.values.push(l)),this.model.count++,a}addRichText(l){const a=this.sharedStringXform.toXml(l);let c=this.rich[a];return c===void 0&&(c=this.rich[a]=this.model.values.length,this.model.values.push(l)),this.model.count++,c}render(l,a){a=a||this._values,l.openXml(o.StdDocAttributes),l.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:a.count,uniqueCount:a.values.length});const c=this.sharedStringXform;a.values.forEach(h=>{c.render(l,h)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(l),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(l))}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(l){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+l)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"t"}render(s,u){s.openNode("t"),/^\s|\n|\s$/.test(u)&&s.addAttribute("xml:space","preserve"),s.writeText(u),s.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(s,u)=>String.fromCharCode(parseInt(u,16)))}parseOpen(s){switch(s.name){case"t":return this._text=[],!0;default:return!1}}parseText(s){this._text.push(s)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(r,n,i){const o=r("../../../doc/enums"),s=r("../../../utils/utils"),u=r("../base-xform"),l={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((c,h)=>(c[h]=!0,c),{}),horizontal(c){return this.horizontalValues[c]?c:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((c,h)=>(c[h]=!0,c),{}),vertical(c){return c==="middle"?"center":this.verticalValues[c]?c:void 0},wrapText:c=>!!c||void 0,shrinkToFit:c=>!!c||void 0,textRotation(c){switch(c){case"vertical":return c;default:return(c=s.validInt(c))>=-90&&c<=90?c:void 0}},indent:c=>(c=s.validInt(c),Math.max(0,c)),readingOrder(c){switch(c){case"ltr":return o.ReadingOrder.LeftToRight;case"rtl":return o.ReadingOrder.RightToLeft;default:return}}},a={toXml(c){if(c=l.textRotation(c)){if(c==="vertical")return 255;const h=Math.round(c);if(h>=0&&h<=90)return h;if(h<0&&h>=-90)return 90-h}},toModel(c){const h=s.validInt(c);if(h!==void 0){if(h===255)return"vertical";if(h>=0&&h<=90)return h;if(h>90&&h<=180)return 90-h}}};n.exports=class extends u{get tag(){return"alignment"}render(c,h){c.addRollback(),c.openNode("alignment");let f=!1;function d(m,g){g&&(c.addAttribute(m,g),f=!0)}d("horizontal",l.horizontal(h.horizontal)),d("vertical",l.vertical(h.vertical)),d("wrapText",!!l.wrapText(h.wrapText)&&"1"),d("shrinkToFit",!!l.shrinkToFit(h.shrinkToFit)&&"1"),d("indent",l.indent(h.indent)),d("textRotation",a.toXml(h.textRotation)),d("readingOrder",l.readingOrder(h.readingOrder)),c.closeNode(),f?c.commit():c.rollback()}parseOpen(c){const h={};let f=!1;function d(m,g,p){m&&(h[g]=p,f=!0)}d(c.attributes.horizontal,"horizontal",c.attributes.horizontal),d(c.attributes.vertical,"vertical",c.attributes.vertical==="center"?"middle":c.attributes.vertical),d(c.attributes.wrapText,"wrapText",s.parseBoolean(c.attributes.wrapText)),d(c.attributes.shrinkToFit,"shrinkToFit",s.parseBoolean(c.attributes.shrinkToFit)),d(c.attributes.indent,"indent",parseInt(c.attributes.indent,10)),d(c.attributes.textRotation,"textRotation",a.toModel(c.attributes.textRotation)),d(c.attributes.readingOrder,"readingOrder",c.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=f?h:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(r,n,i){const o=r("../base-xform"),s=r("../../../utils/utils"),u=r("./color-xform");class l extends o{constructor(c){super(),this.name=c,this.map={color:new u}}get tag(){return this.name}render(c,h,f){const d=h&&h.color||f||this.defaultColor;c.openNode(this.name),h&&h.style&&(c.addAttribute("style",h.style),d&&this.map.color.render(c,d)),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.name:{const{style:h}=c.attributes;return this.model=h?{style:h}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(c),!0;default:return!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):(c===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(c){return l.validStyleValues[c]}}l.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((a,c)=>(a[c]=!0,a),{}),n.exports=class extends o{constructor(){super(),this.map={top:new l("top"),left:new l("left"),bottom:new l("bottom"),right:new l("right"),diagonal:new l("diagonal")}}render(a,c){const{color:h}=c;function f(d,m){d&&!d.color&&c.color&&(d={...d,color:c.color}),m.render(a,d,h)}a.openNode("border"),c.diagonal&&c.diagonal.style&&(c.diagonal.up&&a.addAttribute("diagonalUp","1"),c.diagonal.down&&a.addAttribute("diagonalDown","1")),f(c.left,this.map.left),f(c.right,this.map.right),f(c.top,this.map.top),f(c.bottom,this.map.bottom),f(c.diagonal,this.map.diagonal),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"border":return this.reset(),this.diagonalUp=s.parseBoolean(a.attributes.diagonalUp),this.diagonalDown=s.parseBoolean(a.attributes.diagonalDown),!0;default:return this.parser=this.map[a.name],!!this.parser&&(this.parser.parseOpen(a),!0)}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;if(a==="border"){const c=this.model={},h=function(f,d,m){d&&(m&&Object.assign(d,m),c[f]=d)};h("left",this.map.left.model),h("right",this.map.right.model),h("top",this.map.top.model),h("bottom",this.map.bottom.model),h("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{constructor(s){super(),this.name=s||"color"}get tag(){return this.name}render(s,u){return!!u&&(s.openNode(this.name),u.argb?s.addAttribute("rgb",u.argb):u.theme!==void 0?(s.addAttribute("theme",u.theme),u.tint!==void 0&&s.addAttribute("tint",u.tint)):u.indexed!==void 0?s.addAttribute("indexed",u.indexed):s.addAttribute("auto","1"),s.closeNode(),!0)}parseOpen(s){return s.name===this.name&&(s.attributes.rgb?this.model={argb:s.attributes.rgb}:s.attributes.theme?(this.model={theme:parseInt(s.attributes.theme,10)},s.attributes.tint&&(this.model.tint=parseFloat(s.attributes.tint))):s.attributes.indexed?this.model={indexed:parseInt(s.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(r,n,i){const o=r("../base-xform"),s=r("./alignment-xform"),u=r("./border-xform"),l=r("./fill-xform"),a=r("./font-xform"),c=r("./numfmt-xform"),h=r("./protection-xform");n.exports=class extends o{constructor(){super(),this.map={alignment:new s,border:new u,fill:new l,font:new a,numFmt:new c,protection:new h}}get tag(){return"dxf"}render(f,d){if(f.openNode(this.tag),d.font&&this.map.font.render(f,d.font),d.numFmt&&d.numFmtId){const m={id:d.numFmtId,formatCode:d.numFmt};this.map.numFmt.render(f,m)}d.fill&&this.map.fill.render(f,d.fill),d.alignment&&this.map.alignment.render(f,d.alignment),d.border&&this.map.border.render(f,d.border),d.protection&&this.map.protection.render(f,d.protection),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f),!0}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(r,n,i){const o=r("../base-xform"),s=r("./color-xform");class u extends o{constructor(){super(),this.map={color:new s}}get tag(){return"stop"}render(f,d){f.openNode("stop"),f.addAttribute("position",d.position),this.map.color.render(f,d.color),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"stop":return this.model={position:parseFloat(f.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(f),!0;default:return!1}}parseText(){}parseClose(f){return!!this.parser&&(this.parser.parseClose(f)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class l extends o{constructor(){super(),this.map={fgColor:new s("fgColor"),bgColor:new s("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(f,d){f.openNode("patternFill"),f.addAttribute("patternType",d.pattern),d.fgColor&&this.map.fgColor.render(f,d.fgColor),d.bgColor&&this.map.bgColor.render(f,d.bgColor),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"patternFill":return this.model={type:"pattern",pattern:f.attributes.patternType},!0;default:return this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0)}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return!!this.parser&&(this.parser.parseClose(f)||(this.parser.model&&(this.model[f]=this.parser.model),this.parser=void 0),!0)}}class a extends o{constructor(){super(),this.map={stop:new u}}get name(){return"gradient"}get tag(){return"gradientFill"}render(f,d){switch(f.openNode("gradientFill"),d.gradient){case"angle":f.addAttribute("degree",d.degree);break;case"path":f.addAttribute("type","path"),d.center.left&&(f.addAttribute("left",d.center.left),d.center.right===void 0&&f.addAttribute("right",d.center.left)),d.center.right&&f.addAttribute("right",d.center.right),d.center.top&&(f.addAttribute("top",d.center.top),d.center.bottom===void 0&&f.addAttribute("bottom",d.center.top)),d.center.bottom&&f.addAttribute("bottom",d.center.bottom)}const m=this.map.stop;d.stops.forEach(g=>{m.render(f,g)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"gradientFill":{const d=this.model={stops:[]};return f.attributes.degree?(d.gradient="angle",d.degree=parseInt(f.attributes.degree,10)):f.attributes.type==="path"&&(d.gradient="path",d.center={left:f.attributes.left?parseFloat(f.attributes.left):0,top:f.attributes.top?parseFloat(f.attributes.top):0},f.attributes.right!==f.attributes.left&&(d.center.right=f.attributes.right?parseFloat(f.attributes.right):0),f.attributes.bottom!==f.attributes.top&&(d.center.bottom=f.attributes.bottom?parseFloat(f.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(f),!0;default:return!1}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return!!this.parser&&(this.parser.parseClose(f)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class c extends o{constructor(){super(),this.map={patternFill:new l,gradientFill:new a}}get tag(){return"fill"}render(f,d){switch(f.addRollback(),f.openNode("fill"),d.type){case"pattern":this.map.patternFill.render(f,d);break;case"gradient":this.map.gradientFill.render(f,d);break;default:return void f.rollback()}f.closeNode(),f.commit()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"fill":return this.model={},!0;default:return this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0)}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return!!this.parser&&(this.parser.parseClose(f)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(f){return c.validPatternValues[f]}}c.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((h,f)=>(h[f]=!0,h),{}),c.StopXform=u,c.PatternFillXform=l,c.GradientFillXform=a,n.exports=c},{"../base-xform":32,"./color-xform":128}],131:[function(r,n,i){const o=r("./color-xform"),s=r("../simple/boolean-xform"),u=r("../simple/integer-xform"),l=r("../simple/string-xform"),a=r("./underline-xform"),c=r("../../../utils/under-dash"),h=r("../base-xform");class f extends h{constructor(m){super(),this.options=m||f.OPTIONS,this.map={b:{prop:"bold",xform:new s({tag:"b",attr:"val"})},i:{prop:"italic",xform:new s({tag:"i",attr:"val"})},u:{prop:"underline",xform:new a},charset:{prop:"charset",xform:new u({tag:"charset",attr:"val"})},color:{prop:"color",xform:new o},condense:{prop:"condense",xform:new s({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new s({tag:"extend",attr:"val"})},family:{prop:"family",xform:new u({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new s({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new l({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new l({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new s({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new s({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new u({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new l({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(m,g){const{map:p}=this;m.openNode(this.options.tagName),c.each(this.map,(v,y)=>{p[y].xform.render(m,g[v.prop])}),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;if(this.map[m.name])return this.parser=this.map[m.name].xform,this.parser.parseOpen(m);switch(m.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser&&!this.parser.parseClose(m)){const g=this.map[m];return this.parser.model&&(this.model[g.prop]=this.parser.model),this.parser=void 0,!0}switch(m){case this.options.tagName:return!1;default:return!0}}}f.OPTIONS={tagName:"font",fontNameTag:"name"},n.exports=f},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(r,n,i){const o=r("../../../utils/under-dash"),s=r("../../defaultnumformats"),u=r("../base-xform"),l=function(){const c={};return o.each(s,(h,f)=>{h.f&&(c[h.f]=parseInt(f,10))}),c}();class a extends u{constructor(h,f){super(),this.id=h,this.formatCode=f}get tag(){return"numFmt"}render(h,f){h.leafNode("numFmt",{numFmtId:f.id,formatCode:f.formatCode})}parseOpen(h){switch(h.name){case"numFmt":return this.model={id:parseInt(h.attributes.numFmtId,10),formatCode:h.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}a.getDefaultFmtId=function(c){return l[c]},a.getDefaultFmtCode=function(c){return s[c]&&s[c].f},n.exports=a},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(r,n,i){const o=r("../base-xform"),s={boolean:(u,l)=>u===void 0?l:u};n.exports=class extends o{get tag(){return"protection"}render(u,l){u.addRollback(),u.openNode("protection");let a=!1;function c(h,f){f!==void 0&&(u.addAttribute(h,f),a=!0)}c("locked",s.boolean(l.locked,!0)?void 0:"0"),c("hidden",s.boolean(l.hidden,!1)?"1":void 0),u.closeNode(),a?u.commit():u.rollback()}parseOpen(u){const l={locked:u.attributes.locked!=="0",hidden:u.attributes.hidden==="1"},a=!l.locked||l.hidden;this.model=a?l:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(r,n,i){const o=r("../base-xform"),s=r("./alignment-xform"),u=r("./protection-xform");n.exports=class extends o{constructor(l){super(),this.xfId=!(!l||!l.xfId),this.map={alignment:new s,protection:new u}}get tag(){return"xf"}render(l,a){l.openNode("xf",{numFmtId:a.numFmtId||0,fontId:a.fontId||0,fillId:a.fillId||0,borderId:a.borderId||0}),this.xfId&&l.addAttribute("xfId",a.xfId||0),a.numFmtId&&l.addAttribute("applyNumberFormat","1"),a.fontId&&l.addAttribute("applyFont","1"),a.fillId&&l.addAttribute("applyFill","1"),a.borderId&&l.addAttribute("applyBorder","1"),a.alignment&&l.addAttribute("applyAlignment","1"),a.protection&&l.addAttribute("applyProtection","1"),a.alignment&&this.map.alignment.render(l,a.alignment),a.protection&&this.map.protection.render(l,a.protection),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"xf":return this.model={numFmtId:parseInt(l.attributes.numFmtId,10),fontId:parseInt(l.attributes.fontId,10),fillId:parseInt(l.attributes.fillId,10),borderId:parseInt(l.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(l.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(l),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):l!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(r,n,i){const o=r("../../../doc/enums"),s=r("../../../utils/xml-stream"),u=r("../base-xform"),l=r("../static-xform"),a=r("../list-xform"),c=r("./font-xform"),h=r("./fill-xform"),f=r("./border-xform"),d=r("./numfmt-xform"),m=r("./style-xform"),g=r("./dxf-xform");class p extends u{constructor(y){super(),this.map={numFmts:new a({tag:"numFmts",count:!0,childXform:new d}),fonts:new a({tag:"fonts",count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new a({tag:"fills",count:!0,childXform:new h}),borders:new a({tag:"borders",count:!0,childXform:new f}),cellStyleXfs:new a({tag:"cellStyleXfs",count:!0,childXform:new m}),cellXfs:new a({tag:"cellXfs",count:!0,childXform:new m({xfId:!0})}),dxfs:new a({tag:"dxfs",always:!0,count:!0,childXform:new g}),numFmt:new d,font:new c,fill:new h,border:new f,style:new m({xfId:!0}),cellStyles:p.STATIC_XFORMS.cellStyles,tableStyles:p.STATIC_XFORMS.tableStyles,extLst:p.STATIC_XFORMS.extLst},y&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(y,b){b=b||this.model,y.openXml(s.StdDocAttributes),y.openNode("styleSheet",p.STYLESHEET_ATTRIBUTES),this.index?(b.numFmts&&b.numFmts.length&&(y.openNode("numFmts",{count:b.numFmts.length}),b.numFmts.forEach(_=>{y.writeXml(_)}),y.closeNode()),b.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),y.openNode("fonts",{count:b.fonts.length,"x14ac:knownFonts":1}),b.fonts.forEach(_=>{y.writeXml(_)}),y.closeNode(),y.openNode("fills",{count:b.fills.length}),b.fills.forEach(_=>{y.writeXml(_)}),y.closeNode(),y.openNode("borders",{count:b.borders.length}),b.borders.forEach(_=>{y.writeXml(_)}),y.closeNode(),this.map.cellStyleXfs.render(y,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),y.openNode("cellXfs",{count:b.styles.length}),b.styles.forEach(_=>{y.writeXml(_)}),y.closeNode()):(this.map.numFmts.render(y,b.numFmts),this.map.fonts.render(y,b.fonts),this.map.fills.render(y,b.fills),this.map.borders.render(y,b.borders),this.map.cellStyleXfs.render(y,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(y,b.styles)),p.STATIC_XFORMS.cellStyles.render(y),this.map.dxfs.render(y,b.dxfs),p.STATIC_XFORMS.tableStyles.render(y),p.STATIC_XFORMS.extLst.render(y),y.closeNode()}parseOpen(y){if(this.parser)return this.parser.parseOpen(y),!0;switch(y.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[y.name],this.parser&&this.parser.parseOpen(y),!0}}parseText(y){this.parser&&this.parser.parseText(y)}parseClose(y){if(this.parser)return this.parser.parseClose(y)||(this.parser=void 0),!0;switch(y){case"styleSheet":{this.model={};const b=(_,E)=>{E.model&&E.model.length&&(this.model[_]=E.model)};if(b("numFmts",this.map.numFmts),b("fonts",this.map.fonts),b("fills",this.map.fills),b("borders",this.map.borders),b("styles",this.map.cellXfs),b("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const _=this.index.numFmt;this.model.numFmts.forEach(E=>{_[E.id]=E.formatCode})}return!1}default:return!0}}addStyleModel(y,b){if(!y)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(y))return this.weakMap.get(y);const _={};if(b=b||o.ValueType.Number,y.numFmt)_.numFmtId=this._addNumFmtStr(y.numFmt);else switch(b){case o.ValueType.Number:_.numFmtId=this._addNumFmtStr("General");break;case o.ValueType.Date:_.numFmtId=this._addNumFmtStr("mm-dd-yy")}y.font&&(_.fontId=this._addFont(y.font)),y.border&&(_.borderId=this._addBorder(y.border)),y.fill&&(_.fillId=this._addFill(y.fill)),y.alignment&&(_.alignment=y.alignment),y.protection&&(_.protection=y.protection);const E=this._addStyle(_);return this.weakMap&&this.weakMap.set(y,E),E}getStyleModel(y){const b=this.model.styles[y];if(!b)return null;let _=this.index.model[y];if(_)return _;if(_=this.index.model[y]={},b.numFmtId){const $=this.index.numFmt[b.numFmtId]||d.getDefaultFmtCode(b.numFmtId);$&&(_.numFmt=$)}function E($,M,P){if(P||P===0){const D=M[P];D&&(_[$]=D)}}return E("font",this.model.fonts,b.fontId),E("border",this.model.borders,b.borderId),E("fill",this.model.fills,b.fillId),b.alignment&&(_.alignment=b.alignment),b.protection&&(_.protection=b.protection),_}addDxfStyle(y){return y.numFmt&&(y.numFmtId=this._addNumFmtStr(y.numFmt)),this.model.dxfs.push(y),this.model.dxfs.length-1}getDxfStyle(y){return this.model.dxfs[y]}_addStyle(y){const b=this.map.style.toXml(y);let _=this.index.style[b];return _===void 0&&(_=this.index.style[b]=this.model.styles.length,this.model.styles.push(b)),_}_addNumFmtStr(y){let b=d.getDefaultFmtId(y);if(b!==void 0||(b=this.index.numFmt[y],b!==void 0))return b;b=this.index.numFmt[y]=164+this.model.numFmts.length;const _=this.map.numFmt.toXml({id:b,formatCode:y});return this.model.numFmts.push(_),b}_addFont(y){const b=this.map.font.toXml(y);let _=this.index.font[b];return _===void 0&&(_=this.index.font[b]=this.model.fonts.length,this.model.fonts.push(b)),_}_addBorder(y){const b=this.map.border.toXml(y);let _=this.index.border[b];return _===void 0&&(_=this.index.border[b]=this.model.borders.length,this.model.borders.push(b)),_}_addFill(y){const b=this.map.fill.toXml(y);let _=this.index.fill[b];return _===void 0&&(_=this.index.fill[b]=this.model.fills.length,this.model.fills.push(b)),_}}p.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},p.STATIC_XFORMS={cellStyles:new l({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new l({tag:"dxfs",$:{count:0}}),tableStyles:new l({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new l({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},p.Mock=class extends p{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(v){return v.autodrain(),Promise.resolve()}addStyleModel(v,y){switch(y){case o.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const v={numFmtId:d.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(v)}return this._dateStyleId}getStyleModel(){return{}}},n.exports=p},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(r,n,i){const o=r("../base-xform");class s extends o{constructor(l){super(),this.model=l}get tag(){return"u"}render(l,a){if((a=a||this.model)===!0)l.leafNode("u");else{const c=s.Attributes[a];c&&l.leafNode("u",c)}}parseOpen(l){l.name==="u"&&(this.model=l.attributes.val||!0)}parseText(){}parseClose(){return!1}}s.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},n.exports=s},{"../base-xform":32}],137:[function(r,n,i){const o=r("../base-xform"),s=r("./filter-column-xform");n.exports=class extends o{constructor(){super(),this.map={filterColumn:new s}}get tag(){return"autoFilter"}prepare(u){u.columns.forEach((l,a)=>{this.map.filterColumn.prepare(l,{index:a})})}render(u,l){return u.openNode(this.tag,{ref:l.autoFilterRef}),l.columns.forEach(a=>{this.map.filterColumn.render(u,a)}),u.closeNode(),!0}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:return this.model={autoFilterRef:u.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[u.name],this.parser)return this.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(u))}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(u){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+u)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"customFilter"}render(s,u){s.leafNode(this.tag,{val:u.val,operator:u.operator})}parseOpen(s){return s.name===this.tag&&(this.model={val:s.attributes.val,operator:s.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(r,n,i){const o=r("../base-xform"),s=r("../list-xform"),u=r("./custom-filter-xform"),l=r("./filter-xform");n.exports=class extends o{constructor(){super(),this.map={customFilters:new s({tag:"customFilters",count:!1,empty:!0,childXform:new u}),filters:new s({tag:"filters",count:!1,empty:!0,childXform:new l})}}get tag(){return"filterColumn"}prepare(a,c){a.colId=c.index.toString()}render(a,c){return c.customFilters?(a.openNode(this.tag,{colId:c.colId,hiddenButton:c.filterButton?"0":"1"}),this.map.customFilters.render(a,c.customFilters),a.closeNode(),!0):(a.leafNode(this.tag,{colId:c.colId,hiddenButton:c.filterButton?"0":"1"}),!0)}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;const{attributes:c}=a;switch(a.name){case this.tag:return this.model={filterButton:c.hiddenButton==="0"},!0;default:if(this.parser=this.map[a.name],this.parser)return this.parseOpen(a),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"filter"}render(s,u){s.leafNode(this.tag,{val:u.val})}parseOpen(s){return s.name===this.tag&&(this.model={val:s.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"tableColumn"}prepare(s,u){s.id=u.index+1}render(s,u){return s.leafNode(this.tag,{id:u.id.toString(),name:u.name,totalsRowLabel:u.totalsRowLabel,totalsRowFunction:u.totalsRowFunction,dxfId:u.dxfId}),!0}parseOpen(s){if(s.name===this.tag){const{attributes:u}=s;return this.model={name:u.name,totalsRowLabel:u.totalsRowLabel,totalsRowFunction:u.totalsRowFunction,dxfId:u.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(r,n,i){const o=r("../base-xform");n.exports=class extends o{get tag(){return"tableStyleInfo"}render(s,u){return s.leafNode(this.tag,{name:u.theme?u.theme:void 0,showFirstColumn:u.showFirstColumn?"1":"0",showLastColumn:u.showLastColumn?"1":"0",showRowStripes:u.showRowStripes?"1":"0",showColumnStripes:u.showColumnStripes?"1":"0"}),!0}parseOpen(s){if(s.name===this.tag){const{attributes:u}=s;return this.model={theme:u.name?u.name:null,showFirstColumn:u.showFirstColumn==="1",showLastColumn:u.showLastColumn==="1",showRowStripes:u.showRowStripes==="1",showColumnStripes:u.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(r,n,i){const o=r("../../../utils/xml-stream"),s=r("../base-xform"),u=r("../list-xform"),l=r("./auto-filter-xform"),a=r("./table-column-xform"),c=r("./table-style-info-xform");class h extends s{constructor(){super(),this.map={autoFilter:new l,tableColumns:new u({tag:"tableColumns",count:!0,empty:!0,childXform:new a}),tableStyleInfo:new c}}prepare(d,m){this.map.autoFilter.prepare(d),this.map.tableColumns.prepare(d.columns,m)}get tag(){return"table"}render(d,m){d.openXml(o.StdDocAttributes),d.openNode(this.tag,{...h.TABLE_ATTRIBUTES,id:m.id,name:m.name,displayName:m.displayName||m.name,ref:m.tableRef,totalsRowCount:m.totalsRow?"1":void 0,totalsRowShown:m.totalsRow?void 0:"1",headerRowCount:m.headerRow?"1":"0"}),this.map.autoFilter.render(d,m),this.map.tableColumns.render(d,m.columns),this.map.tableStyleInfo.render(d,m.style),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;const{name:m,attributes:g}=d;switch(m){case this.tag:this.reset(),this.model={name:g.name,displayName:g.displayName||g.name,tableRef:g.ref,totalsRow:g.totalsRowCount==="1",headerRow:g.headerRowCount==="1"};break;default:this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)}return!0}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.parser=void 0),!0;switch(d){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((m,g)=>{this.model.columns[g].filterButton=m.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(d,m){d.columns.forEach(g=>{g.dxfId!==void 0&&(g.style=m.styles.getDxfStyle(g.dxfId))})}}h.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},n.exports=h},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(r,n,i){(function(o,s){(function(){const u=r("fs"),l=r("jszip"),{PassThrough:a}=r("readable-stream"),c=r("../utils/zip-stream"),h=r("../utils/stream-buf"),f=r("../utils/utils"),d=r("../utils/xml-stream"),{bufferToString:m}=r("../utils/browser-buffer-decode"),g=r("./xform/style/styles-xform"),p=r("./xform/core/core-xform"),v=r("./xform/strings/shared-strings-xform"),y=r("./xform/core/relationships-xform"),b=r("./xform/core/content-types-xform"),_=r("./xform/core/app-xform"),E=r("./xform/book/workbook-xform"),$=r("./xform/sheet/worksheet-xform"),M=r("./xform/drawing/drawing-xform"),P=r("./xform/table/table-xform"),D=r("./xform/comment/comments-xform"),F=r("./xform/comment/vml-notes-xform"),U=r("./xml/theme1");class V{constructor(O){this.workbook=O}async readFile(O,C){if(!await f.fs.exists(O))throw new Error("File not found: "+O);const w=u.createReadStream(O);try{const S=await this.read(w,C);return w.close(),S}catch(S){throw w.close(),S}}parseRels(O){return new y().parseStream(O)}parseWorkbook(O){return new E().parseStream(O)}parseSharedStrings(O){return new v().parseStream(O)}reconcile(O,C){const w=new E,S=new $(C),x=new M,k=new P;w.reconcile(O);const T={media:O.media,mediaIndex:O.mediaIndex};Object.keys(O.drawings).forEach(z=>{const B=O.drawings[z],W=O.drawingRels[z];W&&(T.rels=W.reduce((N,q)=>(N[q.Id]=q,N),{}),(B.anchors||[]).forEach(N=>{const q=N.picture&&N.picture.hyperlinks;q&&T.rels[q.rId]&&(q.hyperlink=T.rels[q.rId].Target,delete q.rId)}),x.reconcile(B,T))});const I={styles:O.styles};Object.values(O.tables).forEach(z=>{k.reconcile(z,I)});const L={styles:O.styles,sharedStrings:O.sharedStrings,media:O.media,mediaIndex:O.mediaIndex,date1904:O.properties&&O.properties.date1904,drawings:O.drawings,comments:O.comments,tables:O.tables,vmlDrawings:O.vmlDrawings};O.worksheets.forEach(z=>{z.relationships=O.worksheetRels[z.sheetNo],S.reconcile(z,L)}),delete O.worksheetHash,delete O.worksheetRels,delete O.globalRels,delete O.sharedStrings,delete O.workbookRels,delete O.sheetDefs,delete O.styles,delete O.mediaIndex,delete O.drawings,delete O.drawingRels,delete O.vmlDrawings}async _processWorksheetEntry(O,C,w,S,x){const k=new $(S),T=await k.parseStream(O);T.sheetNo=w,C.worksheetHash[x]=T,C.worksheets.push(T)}async _processCommentEntry(O,C,w){const S=new D,x=await S.parseStream(O);C.comments[`../${w}.xml`]=x}async _processTableEntry(O,C,w){const S=new P,x=await S.parseStream(O);C.tables[`../tables/${w}.xml`]=x}async _processWorksheetRelsEntry(O,C,w){const S=new y,x=await S.parseStream(O);C.worksheetRels[w]=x}async _processMediaEntry(O,C,w){const S=w.lastIndexOf(".");if(S>=1){const x=w.substr(S+1),k=w.substr(0,S);await new Promise((T,I)=>{const L=new h;L.on("finish",()=>{C.mediaIndex[w]=C.media.length,C.mediaIndex[k]=C.media.length;const z={type:"image",name:k,extension:x,buffer:L.toBuffer()};C.media.push(z),T()}),O.on("error",z=>{I(z)}),O.pipe(L)})}}async _processDrawingEntry(O,C,w){const S=new M,x=await S.parseStream(O);C.drawings[w]=x}async _processDrawingRelsEntry(O,C,w){const S=new y,x=await S.parseStream(O);C.drawingRels[w]=x}async _processVmlDrawingEntry(O,C,w){const S=new F,x=await S.parseStream(O);C.vmlDrawings[`../drawings/${w}.vml`]=x}async _processThemeEntry(O,C,w){await new Promise((S,x)=>{const k=new h;O.on("error",x),k.on("error",x),k.on("finish",()=>{C.themes[w]=k.read().toString(),S()}),O.pipe(k)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(O,C){!O[Symbol.asyncIterator]&&O.pipe&&(O=O.pipe(new a));const w=[];for await(const S of O)w.push(S);return this.load(s.concat(w),C)}async load(O,C){let w;w=C&&C.base64?s.from(O.toString(),"base64"):O;const S={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},x=await l.loadAsync(w);for(const k of Object.values(x.files))if(!k.dir){let T,I=k.name;if(I[0]==="/"&&(I=I.substr(1)),I.match(/xl\/media\//)||I.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))T=new a,T.write(await k.async("nodebuffer"));else{let L;T=new a({writableObjectMode:!0,readableObjectMode:!0}),L=o.browser?m(await k.async("nodebuffer")):await k.async("string");const z=16384;for(let B=0;B{if(w.type==="image"){const S=`xl/media/${w.name}.${w.extension}`;if(w.filename){const x=await function(k,T){return new Promise((I,L)=>{u.readFile(k,T,(z,B)=>{z?L(z):I(B)})})}(w.filename);return O.append(x,{name:S})}if(w.buffer)return O.append(w.buffer,{name:S});if(w.base64){const x=w.base64,k=x.substring(x.indexOf(",")+1);return O.append(k,{name:S,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(O,C){const w=new M,S=new y;C.worksheets.forEach(x=>{const{drawing:k}=x;if(k){w.prepare(k,{});let T=w.toXml(k);O.append(T,{name:`xl/drawings/${k.name}.xml`}),T=S.toXml(k.rels),O.append(T,{name:`xl/drawings/_rels/${k.name}.xml.rels`})}})}addTables(O,C){const w=new P;C.worksheets.forEach(S=>{const{tables:x}=S;x.forEach(k=>{w.prepare(k,{});const T=w.toXml(k);O.append(T,{name:"xl/tables/"+k.target})})})}async addContentTypes(O,C){const w=new b().toXml(C);O.append(w,{name:"[Content_Types].xml"})}async addApp(O,C){const w=new _().toXml(C);O.append(w,{name:"docProps/app.xml"})}async addCore(O,C){const w=new p;O.append(w.toXml(C),{name:"docProps/core.xml"})}async addThemes(O,C){const w=C.themes||{theme1:U};Object.keys(w).forEach(S=>{const x=w[S],k=`xl/theme/${S}.xml`;O.append(x,{name:k})})}async addOfficeRels(O){const C=new y().toXml([{Id:"rId1",Type:V.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:V.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:V.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);O.append(C,{name:"_rels/.rels"})}async addWorkbookRels(O,C){let w=1;const S=[{Id:"rId"+w++,Type:V.RelType.Styles,Target:"styles.xml"},{Id:"rId"+w++,Type:V.RelType.Theme,Target:"theme/theme1.xml"}];C.sharedStrings.count&&S.push({Id:"rId"+w++,Type:V.RelType.SharedStrings,Target:"sharedStrings.xml"}),C.worksheets.forEach(k=>{k.rId="rId"+w++,S.push({Id:k.rId,Type:V.RelType.Worksheet,Target:`worksheets/sheet${k.id}.xml`})});const x=new y().toXml(S);O.append(x,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(O,C){C.sharedStrings&&C.sharedStrings.count&&O.append(C.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(O,C){const{xml:w}=C.styles;w&&O.append(w,{name:"xl/styles.xml"})}async addWorkbook(O,C){const w=new E;O.append(w.toXml(C),{name:"xl/workbook.xml"})}async addWorksheets(O,C){const w=new $,S=new y,x=new D,k=new F;C.worksheets.forEach(T=>{let I=new d;w.render(I,T),O.append(I.xml,{name:`xl/worksheets/sheet${T.id}.xml`}),T.rels&&T.rels.length&&(I=new d,S.render(I,T.rels),O.append(I.xml,{name:`xl/worksheets/_rels/sheet${T.id}.xml.rels`})),T.comments.length>0&&(I=new d,x.render(I,T),O.append(I.xml,{name:`xl/comments${T.id}.xml`}),I=new d,k.render(I,T),O.append(I.xml,{name:`xl/drawings/vmlDrawing${T.id}.vml`}))})}_finalize(O){return new Promise((C,w)=>{O.on("finish",()=>{C(this)}),O.on("error",w),O.finalize()})}prepareModel(O,C){O.creator=O.creator||"ExcelJS",O.lastModifiedBy=O.lastModifiedBy||"ExcelJS",O.created=O.created||new Date,O.modified=O.modified||new Date,O.useSharedStrings=C.useSharedStrings===void 0||C.useSharedStrings,O.useStyles=C.useStyles===void 0||C.useStyles,O.sharedStrings=new v,O.styles=O.useStyles?new g(!0):new g.Mock;const w=new E,S=new $;w.prepare(O);const x={sharedStrings:O.sharedStrings,styles:O.styles,date1904:O.properties.date1904,drawingsCount:0,media:O.media};x.drawings=O.drawings=[],x.commentRefs=O.commentRefs=[];let k=0;O.tables=[],O.worksheets.forEach(T=>{T.tables.forEach(I=>{k++,I.target=`table${k}.xml`,I.id=k,O.tables.push(I)}),S.prepare(T,x)})}async write(O,C){C=C||{};const{model:w}=this.workbook,S=new c.ZipWriter(C.zip);return S.pipe(O),this.prepareModel(w,C),await this.addContentTypes(S,w),await this.addOfficeRels(S,w),await this.addWorkbookRels(S,w),await this.addWorksheets(S,w),await this.addSharedStrings(S,w),await this.addDrawings(S,w),await this.addTables(S,w),await Promise.all([this.addThemes(S,w),this.addStyles(S,w)]),await this.addMedia(S,w),await Promise.all([this.addApp(S,w),this.addCore(S,w)]),await this.addWorkbook(S,w),this._finalize(S)}writeFile(O,C){const w=u.createWriteStream(O);return new Promise((S,x)=>{w.on("finish",()=>{S()}),w.on("error",k=>{x(k)}),this.write(w,C).then(()=>{w.end()}).catch(k=>{x(k)})})}async writeBuffer(O){const C=new h;return await this.write(C,O),C.read()}}V.RelType=r("./rel-type"),n.exports=V}).call(this)}).call(this,r("_process"),r("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(r,n,i){n.exports=` `},{}],146:[function(r,n,i){(function(o){(function(){Object.defineProperty(i,"__esModule",{value:!0}),i.CsvFormatterStream=void 0;const s=r("stream"),u=r("./formatter");class l extends s.Transform{constructor(c){super({writableObjectMode:c.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=c,this.rowFormatter=new u.RowFormatter(c),this.hasWrittenBOM=!c.writeBOM}transform(c){return this.rowFormatter.rowTransform=c,this}_transform(c,h,f){let d=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(c,(m,g)=>m?(d=!0,f(m)):(g&&g.forEach(p=>{this.push(o.from(p,"utf8"))}),d=!0,f()))}catch(m){if(d)throw m;f(m)}}_flush(c){this.rowFormatter.finish((h,f)=>h?c(h):(f&&f.forEach(d=>{this.push(o.from(d,"utf8"))}),c()))}}i.CsvFormatterStream=l}).call(this)}).call(this,r("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(r,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.FormatterOptions=void 0,i.FormatterOptions=class{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var s;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,o||{}),(o==null?void 0:o.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(o==null?void 0:o.quote)===!0?this.quote='"':(o==null?void 0:o.quote)===!1&&(this.quote=""),typeof(o==null?void 0:o.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((s=o.writeHeaders)===null||s===void 0||s),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(r,n,i){var o=function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(i,"__esModule",{value:!0}),i.FieldFormatter=void 0;const s=o(r("lodash.isboolean")),u=o(r("lodash.isnil")),l=o(r("lodash.escaperegexp"));i.FieldFormatter=class{constructor(a){this._headers=null,this.formatterOptions=a,a.headers!==null&&(this.headers=a.headers),this.REPLACE_REGEXP=new RegExp(a.quote,"g");const c=`[${a.delimiter}${l.default(a.rowDelimiter)}|\r| @@ -453,7 +453,7 @@ use chrome, FireFox or Internet Explorer 11`)}var l=r("safe-buffer"),a=r("random * @author Louis-Dominique Dubeau * @license MIT * @copyright Louis-Dominique Dubeau -*/function o(s){return s>=65&&s<=90||s===95||s>=97&&s<=122||s>=192&&s<=214||s>=216&&s<=246||s>=248&&s<=767||s>=880&&s<=893||s>=895&&s<=8191||s>=8204&&s<=8205||s>=8304&&s<=8591||s>=11264&&s<=12271||s>=12289&&s<=55295||s>=63744&&s<=64975||s>=65008&&s<=65533||s>=65536&&s<=983039}Object.defineProperty(i,"__esModule",{value:!0}),i.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",i.NC_NAME_CHAR="-"+i.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",i.NC_NAME_START_CHAR_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]$","u"),i.NC_NAME_CHAR_RE=new RegExp("^["+i.NC_NAME_CHAR+"]$","u"),i.NC_NAME_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]["+i.NC_NAME_CHAR+"]*$","u"),i.isNCNameStartChar=o,i.isNCNameChar=function(s){return o(s)||s===45||s===46||s>=48&&s<=57||s===183||s>=768&&s<=879||s>=8255&&s<=8256}},{}]},{},[15])(15)})})(JP);var H5e=JP.exports;function eO(e,t,r){return ti(e,()=>ti(t,r))}function W5e(e){return e[0].map((t,r)=>e.map(n=>n[r]))}function q5e(e){return e.map(t=>t.slice().reverse())}function K5e(e){return e.slice().reverse()}const G5e=Symbol("undefined cell");function Z_({height:e,width:t,rows:r},n){const i=eO(e,t,()=>G5e);for(let o=0;o({cells:[],columns:[]}));for(let u=0;u({cell:s,count:D5e(s.value)||F5e(s.value)?String(s.value).length/s.height/s.width:0})),o=tO(i,s=>s.cell.type,(s,u,l)=>({value:s.cell.value,row:u+1,col:l+1})).rows.flatMap(s=>s.cells);return{widths:ti(n,s=>t(i.map(u=>u[s]),s,i,e)),heights:i.map((s,u)=>r(s,u,i,e)),cells:o}}function Y5e(e,{cellMinHeight:t=22,cellMinWidth:r=10,modifyCell:n,modifyColumn:i,modifyRow:o,...s}={}){const u=new H5e.Workbook;return e.forEach(([l,a])=>{const c=u.addWorksheet(l),{heights:h,widths:f,cells:d}=X5e(a,{columnWidth:m=>{const g=m.map(p=>p.count);return Math.max(Math.ceil(g.reduce(Xd)/a.height+g.reduce(Ou)),r)},rowHeight:m=>Math.max(Math.ceil(m.map(({count:g})=>g).reduce(Xd)/a.width*2),t),...s});f.forEach((m,g)=>{const p=c.getColumn(g+1);p.width=m,i==null||i(p,g+1)}),h.forEach((m,g)=>{const p=c.getRow(g+1);p.height=m,o==null||o(p,g+1)}),d.forEach((m,g)=>{const{height:p,width:v,type:y,value:{col:b,row:_,value:E}}=m,$=c.getRow(_).getCell(b);$.value=E,$.alignment={vertical:"middle",wrapText:!0},y!==qi.Value&&($.font={bold:!0}),n==null||n($,m,g),(p>1||v>1)&&c.mergeCells(_,b,_+p-1,b+v-1)})}),u}function Z5e(e){return new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"})}function Q5e(e){return URL.createObjectURL(e)}function J5e(e){return t=>{const r=document.createElement("a");r.setAttribute("href",t),r.setAttribute("download",e),r.click()}}function e6e(e){let t=0;for(let r=0;r0?e.padStart(i+e.length):e).padEnd(t)}default:return n.length===1&&!isNaN(Number(e))?e.padStart(t):e.padEnd(t)}}function r6e(e){const t=ti(e.width+1,()=>0),r=ti(e.height+1,()=>0),n=Z_(e,(l,a,c)=>{const f=(typeof l.value=="string"?l.value:JSON.stringify(l.value,null,2)).split(` -`).map(d=>` ${d.trim()} `);return{cell:l,rowIndex:a,collIndex:c,rows:f,maxRowLength:e6e(f)}});t[0]=r[0]=1;for(let l=0;lnull),u=new Set;for(let l=0;l=p&&yl.join("")).join(` -`)}function n6e({combineArraysOfObjects:e,joinPrimitiveArrayValues:t,proportionalSizeAdjustmentThreshold:r=1,cornerCellValue:n,collapseIndexes:i}){const o=C5e(r),s=m8({deduplicationComponent:"head",isProportionalResize:o,cornerCellValue:n}),u=m8({deduplicationComponent:"indexes",isProportionalResize:o,cornerCellValue:n});function l({baked:d,body:m,head:g,indexes:p},v){const y=p!==null,b=y&&i,_=y?p.rows.slice():ti(m.height,()=>({cells:[],columns:[]}));let E=0;for(let $=0;$String(v+1)),g=d.map(f),p=s(g);return l(p,m)}function h(d){const m=Object.keys(d),g=m.map(v=>f(d[v])),p=u(g);return a(p,m)}function f(d){if(ub(d))return J1(d);if(Object.keys(d).length===0)return J1("");const m=Array.isArray(d);return m&&t&&d.every(ub)?J1(d.join(", ")):m&&e&&d.every(z5e)?f(Object.assign({},...d)):m?c(d):h(d)}return f}var Q_=(e=>(e.Default="Default",e.Manual="Manual",e))(Q_||{}),Vl=(e=>(e.HTML="HTML",e.XLSX="XLSX",e.ASCII="ASCII",e))(Vl||{});const i6e={type:"object",title:"Options",properties:{preset:{title:"Preset",type:"string",enum:Object.values(Q_),default:"Default"},transform:{title:"Transform",description:"Apply a transformation to the output data",type:"boolean",default:!1},format:{title:"Output format",type:"string",enum:Object.values(Vl),default:"HTML"},paginate:{title:"Paginate",description:"Partitioning the input data (object or array) into pages by their keys",type:"boolean",default:!1}},required:["preset","format"],dependencies:{preset:{oneOf:[{properties:{preset:{const:"Default"}}},{properties:{preset:{const:"Manual"},collapseIndexes:{title:"Combine nested indexes",description:"Combines hierarchical indexes into one cell (1.1, 1.2, ...)",type:"boolean",default:!0},joinPrimitiveArrayValues:{title:"Combine simple values",description:"Combines the values of an array of primitives into one cell (separated by ',')",type:"boolean",default:!0},combineArraysOfObjects:{title:"Combine objects",description:"Combine arrays of objects into a single object",type:"boolean",default:!1},proportionalSizeAdjustmentThreshold:{title:"Proportional size adjustment threshold",description:"Specifies the threshold to which the value (height, width) can be increased for a proportional increase. The default is 1 (by 100%).",type:"number",minimum:0,default:1},cornerCellValue:{title:"Corner cell value",description:"The value of the corner cell.",type:"string",default:"№"}},required:["proportionalSizeAdjustmentThreshold"]}]},transform:{oneOf:[{properties:{transform:{const:!1}}},{properties:{transform:{const:!0},horizontalReflect:{type:"boolean",title:"Reflect horizontally",default:!1},verticalReflect:{type:"boolean",title:"Reflect vertically",default:!1},transpose:{type:"boolean",title:"Transpose",default:!1}}}]}}},o6e={"ui:order":["preset","collapseIndexes","joinPrimitiveArrayValues","combineArraysOfObjects","proportionalSizeAdjustmentThreshold","cornerCellValue","transform","horizontalReflect","verticalReflect","transpose","format","paginate"]};function s6e(e){switch(e.preset){case"Default":return{collapseIndexes:!0,joinPrimitiveArrayValues:!0,combineArraysOfObjects:!1,proportionalSizeAdjustmentThreshold:1,cornerCellValue:"№"};case"Manual":{const{collapseIndexes:t,joinPrimitiveArrayValues:r,combineArraysOfObjects:n,proportionalSizeAdjustmentThreshold:i,cornerCellValue:o}=e;return{collapseIndexes:t,joinPrimitiveArrayValues:r,combineArraysOfObjects:n,proportionalSizeAdjustmentThreshold:i,cornerCellValue:o??""}}default:{const t=e;throw new Error(`Unexpected preset "${JSON.stringify(t)}"`)}}}function a6e(e){return t=>{if(!e.transform)return t;let r=Z_(t,({type:n,value:i})=>({type:n,value:i}));return e.horizontalReflect&&(r=q5e(r)),e.verticalReflect&&(r=K5e(r)),e.transpose&&(r=W5e(r)),tO(r,({type:n})=>n,({value:n})=>n)}}function l6e(e){return G.useCallback(t=>e(t.target.value),[e])}function u6e(e){const t=N5e(e);return t.status===ZP.Ok?t.data:{Error:`An error occurred while trying to recognize the data: -"${t.error}"`}}function $h(e,t){return fetch(`${e}.json`).then(r=>r.text()).then(t)}function c6e(){const[e,t]=G.useState(""),[r,n]=G.useState({preset:Q_.Default,transform:!1,format:Vl.HTML,paginate:!1}),i=l6e(t);return X.jsxs(vu,{p:8,maxW:"6xl",mx:"auto",gap:4,children:[X.jsx(nw,{variant:"h1",flexGrow:1,children:"JSON to Table"}),X.jsxs(vu,{direction:"row",gap:2,alignItems:"center",children:[X.jsx(pi,{onClick:()=>$h("test",t),children:"Test"}),X.jsx(pi,{onClick:()=>$h("deduplication",t),children:"Deduplication"}),X.jsx(pi,{onClick:()=>$h("company",t),children:"Company"}),X.jsx(pi,{onClick:()=>$h("large",t),children:"Large"}),X.jsx(pi,{ml:"auto",variant:"outline",colorScheme:"teal",as:kE,href:"https://github.com/x0k/json-to-table",target:"_blank",children:"GitHub"})]}),X.jsx(hw,{placeholder:"Paste JSON here",autoFocus:!0,value:e,onChange:i,rows:10}),X.jsx(x3e,{validator:S5e,schema:i6e,uiSchema:o6e,showErrorList:!1,formData:r,onChange:({formData:o})=>n(o),onSubmit:({formData:o})=>{const s=s6e(o),u=n6e(s),l=a6e(o),a=YP({cornerCellValue:s.cornerCellValue,bakeHead:!0,bakeIndexes:!0}),c=u6e(e),f=(ub(c)||!o.paginate?[["Report",c]]:Array.isArray(c)?c.map((d,m)=>[String(m+1),d]):Object.keys(c).map(d=>[d,c[d]])).map(ev(u)).map(ev(a)).map(ev(l));switch(o.format){case Vl.HTML:return g8(v8("Table",U5e(f),V5e));case Vl.ASCII:{const d=m=>`
${QP(r6e(m))}
`;return g8(v8("Table",f.length>1?f.map(([m,g])=>`

${m}

${d(g)}`).join("
"):d(f[0][1])))}case Vl.XLSX:return Y5e(f,{columnWidth:(d,m,g,p)=>{const v=d.map(y=>y.count);return Math.max(Math.ceil((v.reduce(Xd)/p.height+v.reduce(Ou)*d.length/p.height)/2),10)}}).xlsx.writeBuffer().then(Z5e).then(Q5e).then(J5e("table.xlsx"));default:throw new Error("Unexpected output format")}},children:X.jsx(pi,{w:"100%",type:"submit",colorScheme:"teal",children:"Create Table"})})]})}tv.createRoot(document.getElementById("root")).render(X.jsx(vt.StrictMode,{children:X.jsx(YK,{children:X.jsx(c6e,{})})})); +*/function o(s){return s>=65&&s<=90||s===95||s>=97&&s<=122||s>=192&&s<=214||s>=216&&s<=246||s>=248&&s<=767||s>=880&&s<=893||s>=895&&s<=8191||s>=8204&&s<=8205||s>=8304&&s<=8591||s>=11264&&s<=12271||s>=12289&&s<=55295||s>=63744&&s<=64975||s>=65008&&s<=65533||s>=65536&&s<=983039}Object.defineProperty(i,"__esModule",{value:!0}),i.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",i.NC_NAME_CHAR="-"+i.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",i.NC_NAME_START_CHAR_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]$","u"),i.NC_NAME_CHAR_RE=new RegExp("^["+i.NC_NAME_CHAR+"]$","u"),i.NC_NAME_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]["+i.NC_NAME_CHAR+"]*$","u"),i.isNCNameStartChar=o,i.isNCNameChar=function(s){return o(s)||s===45||s===46||s>=48&&s<=57||s===183||s>=768&&s<=879||s>=8255&&s<=8256}},{}]},{},[15])(15)})})(eO);var H5e=eO.exports;function tO(e,t,r){return ti(e,()=>ti(t,r))}function W5e(e){return e[0].map((t,r)=>e.map(n=>n[r]))}function q5e(e){return e.map(t=>t.slice().reverse())}function K5e(e){return e.slice().reverse()}const G5e=Symbol("undefined cell");function Z_({height:e,width:t,rows:r},n){const i=tO(e,t,()=>G5e);for(let o=0;o({cells:[],columns:[]}));for(let u=0;u({cell:s,count:F5e(s.value)||L5e(s.value)?String(s.value).length/s.height/s.width:0})),o=rO(i,s=>s.cell.type,(s,u,l)=>({value:s.cell.value,row:u+1,col:l+1})).rows.flatMap(s=>s.cells);return{widths:ti(n,s=>t(i.map(u=>u[s]),s,i,e)),heights:i.map((s,u)=>r(s,u,i,e)),cells:o}}function Y5e(e,{cellMinHeight:t=22,cellMinWidth:r=10,modifyCell:n,modifyColumn:i,modifyRow:o,...s}={}){const u=new H5e.Workbook;return e.forEach(([l,a])=>{const c=u.addWorksheet(l),{heights:h,widths:f,cells:d}=X5e(a,{columnWidth:m=>{const g=m.map(p=>p.count);return Math.max(Math.ceil(g.reduce(Xd)/a.height+g.reduce(Ou)),r)},rowHeight:m=>Math.max(Math.ceil(m.map(({count:g})=>g).reduce(Xd)/a.width*2),t),...s});f.forEach((m,g)=>{const p=c.getColumn(g+1);p.width=m,i==null||i(p,g+1)}),h.forEach((m,g)=>{const p=c.getRow(g+1);p.height=m,o==null||o(p,g+1)}),d.forEach((m,g)=>{const{height:p,width:v,type:y,value:{col:b,row:_,value:E}}=m,$=c.getRow(_).getCell(b);$.value=E,$.alignment={vertical:"middle",wrapText:!0},y!==qi.Value&&($.font={bold:!0}),n==null||n($,m,g),(p>1||v>1)&&c.mergeCells(_,b,_+p-1,b+v-1)})}),u}function Z5e(e){return new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"})}function Q5e(e){return URL.createObjectURL(e)}function J5e(e){return t=>{const r=document.createElement("a");r.setAttribute("href",t),r.setAttribute("download",e),r.click()}}function e6e(e){let t=0;for(let r=0;r0?e.padStart(i+e.length):e).padEnd(t)}default:return n.length===1&&!isNaN(Number(e))?e.padStart(t):e.padEnd(t)}}function r6e(e){const t=ti(e.width+1,()=>0),r=ti(e.height+1,()=>0),n=Z_(e,(l,a,c)=>{const f=(typeof l.value=="string"?l.value:JSON.stringify(l.value,null,2)).split(` +`).map(d=>` ${d.trim()} `);return{cell:l,rowIndex:a,collIndex:c,rows:f,maxRowLength:e6e(f)}});t[0]=r[0]=1;for(let l=0;lnull),u=new Set;for(let l=0;l=p&&yl.join("")).join(` +`)}function n6e({combineArraysOfObjects:e,joinPrimitiveArrayValues:t,proportionalSizeAdjustmentThreshold:r=1,stabilizeOrderOfPropertiesInArraysOfObjects:n=!0,cornerCellValue:i,collapseIndexes:o}){const s=E5e(r),u=m8({deduplicationComponent:"head",isProportionalResize:s,cornerCellValue:i}),l=m8({deduplicationComponent:"indexes",isProportionalResize:s,cornerCellValue:i});function a({baked:m,body:g,head:p,indexes:v},y){const b=v!==null,_=b&&o,E=b?v.rows.slice():ti(g.height,()=>({cells:[],columns:[]}));let $=0;for(let M=0;MString(y+1)),p=m.map(d),v=u(p);return a(v,g)}function f(m){const g=Object.keys(m),p=g.map(y=>d(m[y])),v=l(p);return c(v,g)}function d(m){if(ub(m))return J1(m);if(Object.keys(m).length===0)return J1("");if(Array.isArray(m)){if(t&&m.every(ub))return J1(m.join(", "));if(e&&m.every(g8))return d(Object.assign({},...m));if(n&&m.every(g8)){let g=0;const p={},v=new Array(m.length);for(let y=0;y(e.Default="Default",e.Manual="Manual",e))(Q_||{}),Vl=(e=>(e.HTML="HTML",e.XLSX="XLSX",e.ASCII="ASCII",e))(Vl||{});const i6e={type:"object",title:"Options",properties:{preset:{title:"Preset",type:"string",enum:Object.values(Q_),default:"Default"},transform:{title:"Transform",description:"Apply a transformation to the output data",type:"boolean",default:!1},format:{title:"Output format",type:"string",enum:Object.values(Vl),default:"HTML"},paginate:{title:"Paginate",description:"Partitioning the input data (object or array) into pages by their keys",type:"boolean",default:!1}},required:["preset","format"],dependencies:{preset:{oneOf:[{properties:{preset:{const:"Default"}}},{properties:{preset:{const:"Manual"},collapseIndexes:{title:"Combine nested indexes",description:"Combines hierarchical indexes into one cell (1.1, 1.2, ...)",type:"boolean",default:!0},joinPrimitiveArrayValues:{title:"Combine simple values",description:"Combines the values of an array of primitives into one cell (separated by ',')",type:"boolean",default:!0},combineArraysOfObjects:{title:"Combine objects",description:"Combine arrays of objects into a single object",type:"boolean",default:!1},stabilizeOrderOfPropertiesInArraysOfObjects:{title:"Stabilize order of properties",description:"Stabilizing the order in which properties are displayed for arrays of objects",type:"boolean",default:!0},proportionalSizeAdjustmentThreshold:{title:"Proportional size adjustment threshold",description:"Specifies the threshold to which the value (height, width) can be increased for a proportional increase. The default is 1 (by 100%).",type:"number",minimum:0,default:1},cornerCellValue:{title:"Corner cell value",description:"The value of the corner cell.",type:"string",default:"№"}},required:["proportionalSizeAdjustmentThreshold"]}]},transform:{oneOf:[{properties:{transform:{const:!1}}},{properties:{transform:{const:!0},horizontalReflect:{type:"boolean",title:"Reflect horizontally",default:!1},verticalReflect:{type:"boolean",title:"Reflect vertically",default:!1},transpose:{type:"boolean",title:"Transpose",default:!1}}}]}}},o6e={"ui:order":["preset","collapseIndexes","joinPrimitiveArrayValues","combineArraysOfObjects","stabilizeOrderOfPropertiesInArraysOfObjects","proportionalSizeAdjustmentThreshold","cornerCellValue","transform","horizontalReflect","verticalReflect","transpose","format","paginate"]};function s6e(e){switch(e.preset){case"Default":return{collapseIndexes:!0,joinPrimitiveArrayValues:!0,combineArraysOfObjects:!1,proportionalSizeAdjustmentThreshold:1,stabilizeOrderOfPropertiesInArraysOfObjects:!0,cornerCellValue:"№"};case"Manual":{const{collapseIndexes:t,joinPrimitiveArrayValues:r,combineArraysOfObjects:n,stabilizeOrderOfPropertiesInArraysOfObjects:i,proportionalSizeAdjustmentThreshold:o,cornerCellValue:s}=e;return{collapseIndexes:t,joinPrimitiveArrayValues:r,combineArraysOfObjects:n,stabilizeOrderOfPropertiesInArraysOfObjects:i,proportionalSizeAdjustmentThreshold:o,cornerCellValue:s??""}}default:{const t=e;throw new Error(`Unexpected preset "${JSON.stringify(t)}"`)}}}function a6e(e){return t=>{if(!e.transform)return t;let r=Z_(t,({type:n,value:i})=>({type:n,value:i}));return e.horizontalReflect&&(r=q5e(r)),e.verticalReflect&&(r=K5e(r)),e.transpose&&(r=W5e(r)),rO(r,({type:n})=>n,({value:n})=>n)}}function l6e(e){return G.useCallback(t=>e(t.target.value),[e])}function u6e(e){const t=D5e(e);return t.status===QP.Ok?t.data:{Error:`An error occurred while trying to recognize the data: +"${t.error}"`}}function $h(e,t){return fetch(`${e}.json`).then(r=>r.text()).then(t)}function c6e(){const[e,t]=G.useState(""),[r,n]=G.useState({preset:Q_.Default,transform:!1,format:Vl.HTML,paginate:!1}),i=l6e(t);return X.jsxs(vu,{p:8,maxW:"6xl",mx:"auto",gap:4,children:[X.jsx(nw,{variant:"h1",flexGrow:1,children:"JSON to Table"}),X.jsxs(vu,{direction:"row",gap:2,alignItems:"center",children:[X.jsx(pi,{onClick:()=>$h("test",t),children:"Test"}),X.jsx(pi,{onClick:()=>$h("deduplication",t),children:"Deduplication"}),X.jsx(pi,{onClick:()=>$h("company",t),children:"Company"}),X.jsx(pi,{onClick:()=>$h("large",t),children:"Large"}),X.jsx(pi,{ml:"auto",variant:"outline",colorScheme:"teal",as:CE,href:"https://github.com/x0k/json-to-table",target:"_blank",children:"GitHub"})]}),X.jsx(hw,{placeholder:"Paste JSON here",autoFocus:!0,value:e,onChange:i,rows:10}),X.jsx(S3e,{validator:k5e,schema:i6e,uiSchema:o6e,showErrorList:!1,formData:r,onChange:({formData:o})=>n(o),onSubmit:({formData:o})=>{const s=s6e(o),u=n6e(s),l=a6e(o),a=ZP({cornerCellValue:s.cornerCellValue,bakeHead:!0,bakeIndexes:!0}),c=u6e(e),f=(ub(c)||!o.paginate?[["Report",c]]:Array.isArray(c)?c.map((d,m)=>[String(m+1),d]):Object.keys(c).map(d=>[d,c[d]])).map(ev(u)).map(ev(a)).map(ev(l));switch(o.format){case Vl.HTML:return v8(y8("Table",U5e(f),V5e));case Vl.ASCII:{const d=m=>`
${JP(r6e(m))}
`;return v8(y8("Table",f.length>1?f.map(([m,g])=>`

${m}

${d(g)}`).join("
"):d(f[0][1])))}case Vl.XLSX:return Y5e(f,{columnWidth:(d,m,g,p)=>{const v=d.map(y=>y.count);return Math.max(Math.ceil((v.reduce(Xd)/p.height+v.reduce(Ou)*d.length/p.height)/2),10)}}).xlsx.writeBuffer().then(Z5e).then(Q5e).then(J5e("table.xlsx"));default:throw new Error("Unexpected output format")}},children:X.jsx(pi,{w:"100%",type:"submit",colorScheme:"teal",children:"Create Table"})})]})}tv.createRoot(document.getElementById("root")).render(X.jsx(vt.StrictMode,{children:X.jsx(ZK,{children:X.jsx(c6e,{})})})); diff --git a/index.html b/index.html index 94b319c..a1d1e18 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ JSON to Table - +