function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function n(e){return e&&e.__esModule?e.default:e}var r={},o={},i=t.parcelRequire94c2;null==i&&((i=function(e){if(e in r)return r[e].exports;if(e in o){var t=o[e];delete o[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){o[e]=t},t.parcelRequire94c2=i),i.register("cjuLU",(function(t,n){
/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var r,o,a;e(t.exports,"Fragment",(()=>r),(e=>r=e)),e(t.exports,"jsx",(()=>o),(e=>o=e)),e(t.exports,"jsxs",(()=>a),(e=>a=e));var l=i("fYo6y"),s=Symbol.for("react.element"),u=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)c.call(t,r)&&!d.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:s,type:e,key:i,ref:a,props:o,_owner:f.current}}r=u,o=p,a=p})),i.register("fYo6y",(function(e,t){e.exports=i("ha5xJ")})),i.register("ha5xJ",(function(t,n){
/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var r,o,i,a,l,s,u,c,f,d,p,h,m,g,v,y,b,x,w,S,k,E,_,C,O,P,j,T,M,D,R,A,N,I,L;e(t.exports,"Children",(()=>r),(e=>r=e)),e(t.exports,"Component",(()=>o),(e=>o=e)),e(t.exports,"Fragment",(()=>i),(e=>i=e)),e(t.exports,"Profiler",(()=>a),(e=>a=e)),e(t.exports,"PureComponent",(()=>l),(e=>l=e)),e(t.exports,"StrictMode",(()=>s),(e=>s=e)),e(t.exports,"Suspense",(()=>u),(e=>u=e)),e(t.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(()=>c),(e=>c=e)),e(t.exports,"cloneElement",(()=>f),(e=>f=e)),e(t.exports,"createContext",(()=>d),(e=>d=e)),e(t.exports,"createElement",(()=>p),(e=>p=e)),e(t.exports,"createFactory",(()=>h),(e=>h=e)),e(t.exports,"createRef",(()=>m),(e=>m=e)),e(t.exports,"forwardRef",(()=>g),(e=>g=e)),e(t.exports,"isValidElement",(()=>v),(e=>v=e)),e(t.exports,"lazy",(()=>y),(e=>y=e)),e(t.exports,"memo",(()=>b),(e=>b=e)),e(t.exports,"startTransition",(()=>x),(e=>x=e)),e(t.exports,"unstable_act",(()=>w),(e=>w=e)),e(t.exports,"useCallback",(()=>S),(e=>S=e)),e(t.exports,"useContext",(()=>k),(e=>k=e)),e(t.exports,"useDebugValue",(()=>E),(e=>E=e)),e(t.exports,"useDeferredValue",(()=>_),(e=>_=e)),e(t.exports,"useEffect",(()=>C),(e=>C=e)),e(t.exports,"useId",(()=>O),(e=>O=e)),e(t.exports,"useImperativeHandle",(()=>P),(e=>P=e)),e(t.exports,"useInsertionEffect",(()=>j),(e=>j=e)),e(t.exports,"useLayoutEffect",(()=>T),(e=>T=e)),e(t.exports,"useMemo",(()=>M),(e=>M=e)),e(t.exports,"useReducer",(()=>D),(e=>D=e)),e(t.exports,"useRef",(()=>R),(e=>R=e)),e(t.exports,"useState",(()=>A),(e=>A=e)),e(t.exports,"useSyncExternalStore",(()=>N),(e=>N=e)),e(t.exports,"useTransition",(()=>I),(e=>I=e)),e(t.exports,"version",(()=>L),(e=>L=e));var F=Symbol.for("react.element"),z=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),H=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),q=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),G=Symbol.iterator;var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,Q={};function Z(e,t,n){this.props=e,this.context=t,this.refs=Q,this.updater=n||J}function ee(){}function te(e,t,n){this.props=e,this.context=t,this.refs=Q,this.updater=n||J}Z.prototype.isReactComponent={},Z.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Z.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ee.prototype=Z.prototype;var ne=te.prototype=new ee;ne.constructor=te,X(ne,Z.prototype),ne.isPureReactComponent=!0;var re=Array.isArray,oe=Object.prototype.hasOwnProperty,ie={current:null},ae={key:!0,ref:!0,__self:!0,__source:!0};function le(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)oe.call(t,r)&&!ae.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:F,type:e,key:i,ref:a,props:o,_owner:ie.current}}function se(e){return"object"==typeof e&&null!==e&&e.$$typeof===F}var ue=/\/+/g;function ce(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function fe(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case F:case z:a=!0}}if(a)return o=o(a=e),e=""===r?"."+ce(a,0):r,re(o)?(n="",null!=e&&(n=e.replace(ue,"$&/")+"/"),fe(o,t,n,"",(function(e){return e}))):null!=o&&(se(o)&&(o=function(e,t){return{$$typeof:F,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(ue,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",re(e))for(var l=0;l<e.length;l++){var s=r+ce(i=e[l],l);a+=fe(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=G&&e[G]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=fe(i=i.value,t,n,s=r+ce(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function de(e,t,n){if(null==e)return e;var r=[],o=0;return fe(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function pe(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var he={current:null},me={transition:null};r={map:de,forEach:function(e,t,n){de(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return de(e,(function(){t++})),t},toArray:function(e){return de(e,(function(e){return e}))||[]},only:function(e){if(!se(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},o=Z,i=B,a=U,l=te,s=K,u=W,c={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:me,ReactCurrentOwner:ie},f=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=X({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=ie.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)oe.call(t,s)&&!ae.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:F,type:e.type,key:o,ref:i,props:r,_owner:a}},d=function(e){return(e={$$typeof:H,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:V,_context:e},e.Consumer=e},p=le,h=function(e){var t=le.bind(null,e);return t.type=e,t},m=function(){return{current:null}},g=function(e){return{$$typeof:$,render:e}},v=se,y=function(e){return{$$typeof:Y,_payload:{_status:-1,_result:e},_init:pe}},b=function(e,t){return{$$typeof:q,type:e,compare:void 0===t?null:t}},x=function(e){var t=me.transition;me.transition={};try{e()}finally{me.transition=t}},w=function(){throw Error("act(...) is not supported in production builds of React.")},S=function(e,t){return he.current.useCallback(e,t)},k=function(e){return he.current.useContext(e)},E=function(){},_=function(e){return he.current.useDeferredValue(e)},C=function(e,t){return he.current.useEffect(e,t)},O=function(){return he.current.useId()},P=function(e,t,n){return he.current.useImperativeHandle(e,t,n)},j=function(e,t){return he.current.useInsertionEffect(e,t)},T=function(e,t){return he.current.useLayoutEffect(e,t)},M=function(e,t){return he.current.useMemo(e,t)},D=function(e,t,n){return he.current.useReducer(e,t,n)},R=function(e){return he.current.useRef(e)},A=function(e){return he.current.useState(e)},N=function(e,t,n){return he.current.useSyncExternalStore(e,t,n)},I=function(){return he.current.useTransition()},L="18.2.0"})),i.register("gAtBI",(function(t,n){
/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var r,o,a,l,s,u,c,f,d,p,h,m;e(t.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(()=>r),(e=>r=e)),e(t.exports,"createPortal",(()=>o),(e=>o=e)),e(t.exports,"createRoot",(()=>a),(e=>a=e)),e(t.exports,"findDOMNode",(()=>l),(e=>l=e)),e(t.exports,"flushSync",(()=>s),(e=>s=e)),e(t.exports,"hydrate",(()=>u),(e=>u=e)),e(t.exports,"hydrateRoot",(()=>c),(e=>c=e)),e(t.exports,"render",(()=>f),(e=>f=e)),e(t.exports,"unmountComponentAtNode",(()=>d),(e=>d=e)),e(t.exports,"unstable_batchedUpdates",(()=>p),(e=>p=e)),e(t.exports,"unstable_renderSubtreeIntoContainer",(()=>h),(e=>h=e)),e(t.exports,"version",(()=>m),(e=>m=e));var g=i("fYo6y"),v=i("6qr1r");function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b=new Set,x={};function w(e,t){S(e,t),S(e+"Capture",t)}function S(e,t){for(x[e]=t,e=0;e<t.length;e++)b.add(t[e])}var k=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),E=Object.prototype.hasOwnProperty,_=/^[: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]*$/,C={},O={};function P(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){j[e]=new P(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];j[t]=new P(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){j[e]=new P(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){j[e]=new P(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){j[e]=new P(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){j[e]=new P(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){j[e]=new P(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){j[e]=new P(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){j[e]=new P(e,5,!1,e.toLowerCase(),null,!1,!1)}));var T=/[\-:]([a-z])/g;function M(e){return e[1].toUpperCase()}function D(e,t,n,r){var o=j.hasOwnProperty(t)?j[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!E.call(O,e)||!E.call(C,e)&&(_.test(e)?O[e]=!0:(C[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(T,M);j[t]=new P(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(T,M);j[t]=new P(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(T,M);j[t]=new P(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){j[e]=new P(e,1,!1,e.toLowerCase(),null,!1,!1)})),j.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){j[e]=new P(e,1,!1,e.toLowerCase(),null,!0,!0)}));var R=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),N=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),B=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),$=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var W=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var q=Symbol.iterator;function Y(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=q&&e[q]||e["@@iterator"])?e:null}var G,J=Object.assign;function X(e){if(void 0===G)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);G=t&&t[1]||""}return"\n"+G+e}var Q=!1;function Z(e,t){if(!e||Q)return"";Q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?X(e):""}function ee(e){switch(e.tag){case 5:return X(e.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return e=Z(e.type,!1);case 11:return e=Z(e.type.render,!1);case 1:return e=Z(e.type,!0);default:return""}}function te(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case I:return"Fragment";case N:return"Portal";case F:return"Profiler";case L:return"StrictMode";case U:return"Suspense";case V:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case B:return(e.displayName||"Context")+".Consumer";case z:return(e._context.displayName||"Context")+".Provider";case K:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case H:return null!==(t=e.displayName||null)?t:te(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return te(e(t))}catch(e){}}return null}function ne(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=(e=t.render).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 te(t);case 8:return t===L?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function re(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function oe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ie(e){e._valueTracker||(e._valueTracker=function(e){var t=oe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=oe(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function le(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function se(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ue(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=re(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ce(e,t){null!=(t=t.checked)&&D(e,"checked",t,!1)}function fe(e,t){ce(e,t);var n=re(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&pe(e,t.type,re(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function de(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function pe(e,t,n){"number"===t&&le(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var he=Array.isArray;function me(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+re(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ge(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(y(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ve(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(y(92));if(he(n)){if(1<n.length)throw Error(y(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:re(n)}}function ye(e,t){var n=re(t.value),r=re(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function be(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function xe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function we(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?xe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Se,ke,Ee=(ke=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Se=Se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ke(e,t)}))}:ke);function _e(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ce={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},Oe=["Webkit","ms","Moz","O"];function Pe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ce.hasOwnProperty(e)&&Ce[e]?(""+t).trim():t+"px"}function je(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Pe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Ce).forEach((function(e){Oe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ce[t]=Ce[e]}))}));var Te=J({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 Me(e,t){if(t){if(Te[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(y(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(y(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(y(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(y(62))}}function De(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 Re=null;function Ae(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ne=null,Ie=null,Le=null;function Fe(e){if(e=Ro(e)){if("function"!=typeof Ne)throw Error(y(280));var t=e.stateNode;t&&(t=No(t),Ne(e.stateNode,e.type,t))}}function ze(e){Ie?Le?Le.push(e):Le=[e]:Ie=e}function Be(){if(Ie){var e=Ie,t=Le;if(Le=Ie=null,Fe(e),t)for(e=0;e<t.length;e++)Fe(t[e])}}function Ke(e,t){return e(t)}function Ue(){}var Ve=!1;function He(e,t,n){if(Ve)return e(t,n);Ve=!0;try{return Ke(e,t,n)}finally{Ve=!1,(null!==Ie||null!==Le)&&(Ue(),Be())}}function $e(e,t){var n=e.stateNode;if(null===n)return null;var r=No(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(y(231,t,typeof n));return n}var We=!1;if(k)try{var qe={};Object.defineProperty(qe,"passive",{get:function(){We=!0}}),window.addEventListener("test",qe,qe),window.removeEventListener("test",qe,qe)}catch(ke){We=!1}function Ye(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ge=!1,Je=null,Xe=!1,Qe=null,Ze={onError:function(e){Ge=!0,Je=e}};function et(e,t,n,r,o,i,a,l,s){Ge=!1,Je=null,Ye.apply(Ze,arguments)}function tt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function nt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function rt(e){if(tt(e)!==e)throw Error(y(188))}function ot(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=tt(e)))throw Error(y(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return rt(o),e;if(i===r)return rt(o),t;i=i.sibling}throw Error(y(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(y(189))}}if(n.alternate!==r)throw Error(y(190))}if(3!==n.tag)throw Error(y(188));return n.stateNode.current===n?e:t}(e))?it(e):null}function it(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=it(e);if(null!==t)return t;e=e.sibling}return null}var at=v.unstable_scheduleCallback,lt=v.unstable_cancelCallback,st=v.unstable_shouldYield,ut=v.unstable_requestPaint,ct=v.unstable_now,ft=v.unstable_getCurrentPriorityLevel,dt=v.unstable_ImmediatePriority,pt=v.unstable_UserBlockingPriority,ht=v.unstable_NormalPriority,mt=v.unstable_LowPriority,gt=v.unstable_IdlePriority,vt=null,yt=null;var bt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(xt(e)/wt|0)|0},xt=Math.log,wt=Math.LN2;var St=64,kt=4194304;function Et(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _t(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=Et(l):0!==(i&=a)&&(r=Et(i))}else 0!==(a=n&~o)?r=Et(a):0!==i&&(r=Et(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-bt(t)),r|=e[n],t&=~o;return r}function Ct(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ot(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Pt(){var e=St;return 0==(4194240&(St<<=1))&&(St=64),e}function jt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Tt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-bt(t)]=n}function Mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Dt=0;function Rt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var At,Nt,It,Lt,Ft,zt=!1,Bt=[],Kt=null,Ut=null,Vt=null,Ht=new Map,$t=new Map,Wt=[],qt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Yt(e,t){switch(e){case"focusin":case"focusout":Kt=null;break;case"dragenter":case"dragleave":Ut=null;break;case"mouseover":case"mouseout":Vt=null;break;case"pointerover":case"pointerout":Ht.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$t.delete(t.pointerId)}}function Gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ro(t))&&Nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Jt(e){var t=Do(e.target);if(null!==t){var n=tt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=nt(n)))return e.blockedOn=t,void Ft(e.priority,(function(){It(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Xt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=un(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ro(n))&&Nt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Re=r,n.target.dispatchEvent(r),Re=null,t.shift()}return!0}function Qt(e,t,n){Xt(e)&&n.delete(t)}function Zt(){zt=!1,null!==Kt&&Xt(Kt)&&(Kt=null),null!==Ut&&Xt(Ut)&&(Ut=null),null!==Vt&&Xt(Vt)&&(Vt=null),Ht.forEach(Qt),$t.forEach(Qt)}function en(e,t){e.blockedOn===t&&(e.blockedOn=null,zt||(zt=!0,v.unstable_scheduleCallback(v.unstable_NormalPriority,Zt)))}function tn(e){function t(t){return en(t,e)}if(0<Bt.length){en(Bt[0],e);for(var n=1;n<Bt.length;n++){var r=Bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Kt&&en(Kt,e),null!==Ut&&en(Ut,e),null!==Vt&&en(Vt,e),Ht.forEach(t),$t.forEach(t),n=0;n<Wt.length;n++)(r=Wt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Wt.length&&null===(n=Wt[0]).blockedOn;)Jt(n),null===n.blockedOn&&Wt.shift()}var nn=R.ReactCurrentBatchConfig,rn=!0;function on(e,t,n,r){var o=Dt,i=nn.transition;nn.transition=null;try{Dt=1,ln(e,t,n,r)}finally{Dt=o,nn.transition=i}}function an(e,t,n,r){var o=Dt,i=nn.transition;nn.transition=null;try{Dt=4,ln(e,t,n,r)}finally{Dt=o,nn.transition=i}}function ln(e,t,n,r){if(rn){var o=un(e,t,n,r);if(null===o)ro(e,t,r,sn,n),Yt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Kt=Gt(Kt,e,t,n,r,o),!0;case"dragenter":return Ut=Gt(Ut,e,t,n,r,o),!0;case"mouseover":return Vt=Gt(Vt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ht.set(i,Gt(Ht.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,$t.set(i,Gt($t.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Yt(e,r),4&t&&-1<qt.indexOf(e)){for(;null!==o;){var i=Ro(o);if(null!==i&&At(i),null===(i=un(e,t,n,r))&&ro(e,t,r,sn,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else ro(e,t,r,null,n)}}var sn=null;function un(e,t,n,r){if(sn=null,null!==(e=Do(e=Ae(r))))if(null===(t=tt(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=nt(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return sn=e,null}function cn(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ft()){case dt:return 1;case pt:return 4;case ht:case mt:return 16;case gt:return 536870912;default:return 16}default:return 16}}var fn=null,dn=null,pn=null;function hn(){if(pn)return pn;var e,t,n=dn,r=n.length,o="value"in fn?fn.value:fn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return pn=o.slice(e,1<t?1-t:void 0)}function mn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function gn(){return!0}function vn(){return!1}function yn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?gn:vn,this.isPropagationStopped=vn,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=gn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=gn)},persist:function(){},isPersistent:gn}),t}var bn,xn,wn,Sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kn=yn(Sn),En=J({},Sn,{view:0,detail:0}),_n=yn(En),Cn=J({},En,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==wn&&(wn&&"mousemove"===e.type?(bn=e.screenX-wn.screenX,xn=e.screenY-wn.screenY):xn=bn=0,wn=e),bn)},movementY:function(e){return"movementY"in e?e.movementY:xn}}),On=yn(Cn),Pn=yn(J({},Cn,{dataTransfer:0})),jn=yn(J({},En,{relatedTarget:0})),Tn=yn(J({},Sn,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=J({},Sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dn=yn(Mn),Rn=yn(J({},Sn,{data:0})),An={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},In={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=In[e])&&!!t[e]}function Fn(){return Ln}var zn=J({},En,{key:function(e){if(e.key){var t=An[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=mn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Nn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return"keypress"===e.type?mn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?mn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Bn=yn(zn),Kn=yn(J({},Cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Un=yn(J({},En,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),Vn=yn(J({},Sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Hn=J({},Cn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$n=yn(Hn),Wn=[9,13,27,32],qn=k&&"CompositionEvent"in window,Yn=null;k&&"documentMode"in document&&(Yn=document.documentMode);var Gn=k&&"TextEvent"in window&&!Yn,Jn=k&&(!qn||Yn&&8<Yn&&11>=Yn),Xn=String.fromCharCode(32),Qn=!1;function Zn(e,t){switch(e){case"keyup":return-1!==Wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function er(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var tr=!1;var nr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nr[e.type]:"textarea"===t}function or(e,t,n,r){ze(r),0<(t=io(t,"onChange")).length&&(n=new kn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ir=null,ar=null;function lr(e){Xr(e,0)}function sr(e){if(ae(Ao(e)))return e}function ur(e,t){if("change"===e)return t}var cr=!1;if(k){var fr;if(k){var dr="oninput"in document;if(!dr){var pr=document.createElement("div");pr.setAttribute("oninput","return;"),dr="function"==typeof pr.oninput}fr=dr}else fr=!1;cr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){ir&&(ir.detachEvent("onpropertychange",mr),ar=ir=null)}function mr(e){if("value"===e.propertyName&&sr(ar)){var t=[];or(t,ar,e,Ae(e)),He(lr,t)}}function gr(e,t,n){"focusin"===e?(hr(),ar=n,(ir=t).attachEvent("onpropertychange",mr)):"focusout"===e&&hr()}function vr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return sr(ar)}function yr(e,t){if("click"===e)return sr(t)}function br(e,t){if("input"===e||"change"===e)return sr(t)}var xr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function wr(e,t){if(xr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!E.call(t,o)||!xr(e[o],t[o]))return!1}return!0}function Sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kr(e,t){var n,r=Sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Sr(r)}}function Er(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Er(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function _r(){for(var e=window,t=le();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=le((e=t.contentWindow).document)}return t}function Cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Or(e){var t=_r(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Er(n.ownerDocument.documentElement,n)){if(null!==r&&Cr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=kr(n,i);var a=kr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pr=k&&"documentMode"in document&&11>=document.documentMode,jr=null,Tr=null,Mr=null,Dr=!1;function Rr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Dr||null==jr||jr!==le(r)||("selectionStart"in(r=jr)&&Cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Mr&&wr(Mr,r)||(Mr=r,0<(r=io(Tr,"onSelect")).length&&(t=new kn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jr)))}function Ar(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nr={animationend:Ar("Animation","AnimationEnd"),animationiteration:Ar("Animation","AnimationIteration"),animationstart:Ar("Animation","AnimationStart"),transitionend:Ar("Transition","TransitionEnd")},Ir={},Lr={};function Fr(e){if(Ir[e])return Ir[e];if(!Nr[e])return e;var t,n=Nr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Lr)return Ir[e]=n[t];return e}k&&(Lr=document.createElement("div").style,"AnimationEvent"in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),"TransitionEvent"in window||delete Nr.transitionend.transition);var zr=Fr("animationend"),Br=Fr("animationiteration"),Kr=Fr("animationstart"),Ur=Fr("transitionend"),Vr=new Map,Hr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function $r(e,t){Vr.set(e,t),w(t,[e])}for(var Wr=0;Wr<Hr.length;Wr++){var qr=Hr[Wr];$r(qr.toLowerCase(),"on"+(qr[0].toUpperCase()+qr.slice(1)))}$r(zr,"onAnimationEnd"),$r(Br,"onAnimationIteration"),$r(Kr,"onAnimationStart"),$r("dblclick","onDoubleClick"),$r("focusin","onFocus"),$r("focusout","onBlur"),$r(Ur,"onTransitionEnd"),S("onMouseEnter",["mouseout","mouseover"]),S("onMouseLeave",["mouseout","mouseover"]),S("onPointerEnter",["pointerout","pointerover"]),S("onPointerLeave",["pointerout","pointerover"]),w("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),w("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),w("onBeforeInput",["compositionend","keypress","textInput","paste"]),w("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),w("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),w("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Gr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yr));function Jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(et.apply(this,arguments),Ge){if(!Ge)throw Error(y(198));var u=Je;Ge=!1,Je=null,Xe||(Xe=!0,Qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Xr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Jr(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Jr(o,l,u),i=s}}}if(Xe)throw e=Qe,Xe=!1,Qe=null,e}function Qr(e,t){var n=t[jo];void 0===n&&(n=t[jo]=new Set);var r=e+"__bubble";n.has(r)||(no(t,e,2,!1),n.add(r))}function Zr(e,t,n){var r=0;t&&(r|=4),no(n,e,r,t)}var eo="_reactListening"+Math.random().toString(36).slice(2);function to(e){if(!e[eo]){e[eo]=!0,b.forEach((function(t){"selectionchange"!==t&&(Gr.has(t)||Zr(t,!1,e),Zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[eo]||(t[eo]=!0,Zr("selectionchange",!1,t))}}function no(e,t,n,r){switch(cn(t)){case 1:var o=on;break;case 4:o=an;break;default:o=ln}n=o.bind(null,t,n,e),o=void 0,!We||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ro(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Do(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}He((function(){var r=i,o=Ae(n),a=[];e:{var l=Vr.get(e);if(void 0!==l){var s=kn,u=e;switch(e){case"keypress":if(0===mn(n))break e;case"keydown":case"keyup":s=Bn;break;case"focusin":u="focus",s=jn;break;case"focusout":u="blur",s=jn;break;case"beforeblur":case"afterblur":s=jn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=On;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=Pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Un;break;case zr:case Br:case Kr:s=Tn;break;case Ur:s=Vn;break;case"scroll":s=_n;break;case"wheel":s=$n;break;case"copy":case"cut":case"paste":s=Dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Kn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=$e(h,d))&&c.push(oo(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Re||!(u=n.relatedTarget||n.fromElement)||!Do(u)&&!u[Po])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Do(u):null)&&(u!==(f=tt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=On,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Kn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:Ao(s),p=null==u?l:Ao(u),(l=new c(m,h+"leave",s,n,o)).target=f,l.relatedTarget=p,m=null,Do(o)===r&&((c=new c(d,h+"enter",u,n,o)).target=p,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,h=0,p=c=s;p;p=ao(p))h++;for(p=0,m=d;m;m=ao(m))p++;for(;0<h-p;)c=ao(c),h--;for(;0<p-h;)d=ao(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=ao(c),d=ao(d)}c=null}else c=null;null!==s&&lo(a,l,s,c,!1),null!==u&&null!==f&&lo(a,f,u,c,!0)}if("select"===(s=(l=r?Ao(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=ur;else if(rr(l))if(cr)g=br;else{g=vr;var v=gr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=yr);switch(g&&(g=g(e,r))?or(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&pe(l,"number",l.value)),v=r?Ao(r):window,e){case"focusin":(rr(v)||"true"===v.contentEditable)&&(jr=v,Tr=r,Mr=null);break;case"focusout":Mr=Tr=jr=null;break;case"mousedown":Dr=!0;break;case"contextmenu":case"mouseup":case"dragend":Dr=!1,Rr(a,n,o);break;case"selectionchange":if(Pr)break;case"keydown":case"keyup":Rr(a,n,o)}var y;if(qn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else tr?Zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Jn&&"ko"!==n.locale&&(tr||"onCompositionStart"!==b?"onCompositionEnd"===b&&tr&&(y=hn()):(dn="value"in(fn=o)?fn.value:fn.textContent,tr=!0)),0<(v=io(r,b)).length&&(b=new Rn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=er(n))&&(b.data=y))),(y=Gn?function(e,t){switch(e){case"compositionend":return er(t);case"keypress":return 32!==t.which?null:(Qn=!0,Xn);case"textInput":return(e=t.data)===Xn&&Qn?null:e;default:return null}}(e,n):function(e,t){if(tr)return"compositionend"===e||!qn&&Zn(e,t)?(e=hn(),pn=dn=fn=null,tr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=io(r,"onBeforeInput")).length&&(o=new Rn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Xr(a,t)}))}function oo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function io(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=$e(e,n))&&r.unshift(oo(e,i,o)),null!=(i=$e(e,t))&&r.push(oo(e,i,o))),e=e.return}return r}function ao(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function lo(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=$e(n,i))&&a.unshift(oo(n,s,l)):o||null!=(s=$e(n,i))&&a.push(oo(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var so=/\r\n?/g,uo=/\u0000|\uFFFD/g;function co(e){return("string"==typeof e?e:""+e).replace(so,"\n").replace(uo,"")}function fo(e,t,n){if(t=co(t),co(e)!==t&&n)throw Error(y(425))}function po(){}var ho=null,mo=null;function go(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var vo="function"==typeof setTimeout?setTimeout:void 0,yo="function"==typeof clearTimeout?clearTimeout:void 0,bo="function"==typeof Promise?Promise:void 0,xo="function"==typeof queueMicrotask?queueMicrotask:void 0!==bo?function(e){return bo.resolve(null).then(e).catch(wo)}:vo;function wo(e){setTimeout((function(){throw e}))}function So(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void tn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);tn(t)}function ko(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Eo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var _o=Math.random().toString(36).slice(2),Co="__reactFiber$"+_o,Oo="__reactProps$"+_o,Po="__reactContainer$"+_o,jo="__reactEvents$"+_o,To="__reactListeners$"+_o,Mo="__reactHandles$"+_o;function Do(e){var t=e[Co];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Po]||n[Co]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Eo(e);null!==e;){if(n=e[Co])return n;e=Eo(e)}return t}n=(e=n).parentNode}return null}function Ro(e){return!(e=e[Co]||e[Po])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ao(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(y(33))}function No(e){return e[Oo]||null}var Io=[],Lo=-1;function Fo(e){return{current:e}}function zo(e){0>Lo||(e.current=Io[Lo],Io[Lo]=null,Lo--)}function Bo(e,t){Lo++,Io[Lo]=e.current,e.current=t}var Ko={},Uo=Fo(Ko),Vo=Fo(!1),Ho=Ko;function $o(e,t){var n=e.type.contextTypes;if(!n)return Ko;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Wo(e){return null!=(e=e.childContextTypes)}function qo(){zo(Vo),zo(Uo)}function Yo(e,t,n){if(Uo.current!==Ko)throw Error(y(168));Bo(Uo,t),Bo(Vo,n)}function Go(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(y(108,ne(e)||"Unknown",o));return J({},n,r)}function Jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ko,Ho=Uo.current,Bo(Uo,e),Bo(Vo,Vo.current),!0}function Xo(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=Go(e,t,Ho),r.__reactInternalMemoizedMergedChildContext=e,zo(Vo),zo(Uo),Bo(Uo,e)):zo(Vo),Bo(Vo,n)}var Qo=null,Zo=!1,ei=!1;function ti(e){null===Qo?Qo=[e]:Qo.push(e)}function ni(){if(!ei&&null!==Qo){ei=!0;var e=0,t=Dt;try{var n=Qo;for(Dt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Qo=null,Zo=!1}catch(t){throw null!==Qo&&(Qo=Qo.slice(e+1)),at(dt,ni),t}finally{Dt=t,ei=!1}}return null}var ri=[],oi=0,ii=null,ai=0,li=[],si=0,ui=null,ci=1,fi="";function di(e,t){ri[oi++]=ai,ri[oi++]=ii,ii=e,ai=t}function pi(e,t,n){li[si++]=ci,li[si++]=fi,li[si++]=ui,ui=e;var r=ci;e=fi;var o=32-bt(r)-1;r&=~(1<<o),n+=1;var i=32-bt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,ci=1<<32-bt(t)+o|n<<o|r,fi=i+e}else ci=1<<i|n<<o|r,fi=e}function hi(e){null!==e.return&&(di(e,1),pi(e,1,0))}function mi(e){for(;e===ii;)ii=ri[--oi],ri[oi]=null,ai=ri[--oi],ri[oi]=null;for(;e===ui;)ui=li[--si],li[si]=null,fi=li[--si],li[si]=null,ci=li[--si],li[si]=null}var gi=null,vi=null,yi=!1,bi=null;function xi(e,t){var n=$u(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function wi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,gi=e,vi=ko(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,gi=e,vi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==ui?{id:ci,overflow:fi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=$u(18,null,null,0)).stateNode=t,n.return=e,e.child=n,gi=e,vi=null,!0);default:return!1}}function Si(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ki(e){if(yi){var t=vi;if(t){var n=t;if(!wi(e,t)){if(Si(e))throw Error(y(418));t=ko(n.nextSibling);var r=gi;t&&wi(e,t)?xi(r,n):(e.flags=-4097&e.flags|2,yi=!1,gi=e)}}else{if(Si(e))throw Error(y(418));e.flags=-4097&e.flags|2,yi=!1,gi=e}}}function Ei(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;gi=e}function _i(e){if(e!==gi)return!1;if(!yi)return Ei(e),yi=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!go(e.type,e.memoizedProps)),t&&(t=vi)){if(Si(e))throw Ci(),Error(y(418));for(;t;)xi(e,t),t=ko(t.nextSibling)}if(Ei(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(y(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){vi=ko(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}vi=null}}else vi=gi?ko(e.stateNode.nextSibling):null;return!0}function Ci(){for(var e=vi;e;)e=ko(e.nextSibling)}function Oi(){vi=gi=null,yi=!1}function Pi(e){null===bi?bi=[e]:bi.push(e)}var ji=R.ReactCurrentBatchConfig;function Ti(e,t){if(e&&e.defaultProps){for(var n in t=J({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Mi=Fo(null),Di=null,Ri=null,Ai=null;function Ni(){Ai=Ri=Di=null}function Ii(e){var t=Mi.current;zo(Mi),e._currentValue=t}function Li(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fi(e,t){Di=e,Ai=Ri=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Rl=!0),e.firstContext=null)}function zi(e){var t=e._currentValue;if(Ai!==e)if(e={context:e,memoizedValue:t,next:null},null===Ri){if(null===Di)throw Error(y(308));Ri=e,Di.dependencies={lanes:0,firstContext:e}}else Ri=Ri.next=e;return t}var Bi=null;function Ki(e){null===Bi?Bi=[e]:Bi.push(e)}function Ui(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ki(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vi(e,r)}function Vi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Hi=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Us)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vi(e,n)}return null===(o=r.interleaved)?(t.next=t,Ki(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vi(e,n)}function Gi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Mt(e,n)}}function Ji(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xi(e,t,n,r){var o=e.updateQueue;Hi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var f=o.baseState;for(a=0,c=u=s=null,l=i;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=J({},f,d);break e;case 2:Hi=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=f):c=c.next=p,a|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(s=f),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Js|=a,e.lanes=a,e.memoizedState=f}}function Qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(y(191,o));o.call(r)}}}var Zi=(new g.Component).refs;function ea(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:J({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ta={isMounted:function(e){return!!(e=e._reactInternals)&&tt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),o=mu(e),i=qi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Yi(e,i,o))&&(gu(t,e,o,r),Gi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),o=mu(e),i=qi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Yi(e,i,o))&&(gu(t,e,o,r),Gi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=mu(e),o=qi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Yi(e,o,r))&&(gu(t,e,r,n),Gi(t,e,r))}};function na(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!wr(n,r)||!wr(o,i))}function ra(e,t,n){var r=!1,o=Ko,i=t.contextType;return"object"==typeof i&&null!==i?i=zi(i):(o=Wo(t)?Ho:Uo.current,i=(r=null!=(r=t.contextTypes))?$o(e,o):Ko),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ta,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function oa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ta.enqueueReplaceState(t,t.state,null)}function ia(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Zi,$i(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=zi(i):(i=Wo(t)?Ho:Uo.current,o.context=$o(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ea(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ta.enqueueReplaceState(o,o.state,null),Xi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function aa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(y(309));var r=n.stateNode}if(!r)throw Error(y(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Zi&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(y(284));if(!n._owner)throw Error(y(290,e))}return e}function la(e,t){throw e=Object.prototype.toString.call(t),Error(y(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sa(e){return(0,e._init)(e._payload)}function ua(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=qu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Xu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===I?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===$&&sa(i)===t.type)?((r=o(t,n.props)).ref=aa(e,t,n),r.return=e,r):((r=Yu(n.type,n.key,n.props,null,e.mode,r)).ref=aa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Qu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Gu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Xu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case A:return(n=Yu(t.type,t.key,t.props,null,e.mode,n)).ref=aa(e,null,t),n.return=e,n;case N:return(t=Qu(t,e.mode,n)).return=e,t;case $:return f(e,(0,t._init)(t._payload),n)}if(he(t)||Y(t))return(t=Gu(t,e.mode,n,null)).return=e,t;la(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case A:return n.key===o?s(e,t,n,r):null;case N:return n.key===o?u(e,t,n,r):null;case $:return d(e,t,(o=n._init)(n._payload),r)}if(he(n)||Y(n))return null!==o?null:c(e,t,n,r,null);la(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case A:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case N:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case $:return p(e,t,n,(0,r._init)(r._payload),o)}if(he(r)||Y(r))return c(t,e=e.get(n)||null,r,o,null);la(t,r)}return null}function h(o,a,l,s){for(var u=null,c=null,h=a,m=a=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=d(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v,h=g}if(m===l.length)return n(o,h),yi&&di(o,m),u;if(null===h){for(;m<l.length;m++)null!==(h=f(o,l[m],s))&&(a=i(h,a,m),null===c?u=h:c.sibling=h,c=h);return yi&&di(o,m),u}for(h=r(o,h);m<l.length;m++)null!==(g=p(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),yi&&di(o,m),u}function m(o,a,l,s){var u=Y(l);if("function"!=typeof u)throw Error(y(150));if(null==(l=u.call(l)))throw Error(y(151));for(var c=u=null,h=a,m=a=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=d(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,m),null===c?u=b:c.sibling=b,c=b,h=g}if(v.done)return n(o,h),yi&&di(o,m),u;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=f(o,v.value,s))&&(a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return yi&&di(o,m),u}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=p(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),yi&&di(o,m),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===I&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case A:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===I){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===$&&sa(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=aa(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===I?((i=Gu(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=Yu(l.type,l.key,l.props,null,r.mode,s)).ref=aa(r,i,l),s.return=r,r=s)}return a(r);case N:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Qu(l,r.mode,s)).return=r,r=i}return a(r);case $:return e(r,i,(c=l._init)(l._payload),s)}if(he(l))return h(r,i,l,s);if(Y(l))return m(r,i,l,s);la(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=Xu(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var ca=ua(!0),fa=ua(!1),da={},pa=Fo(da),ha=Fo(da),ma=Fo(da);function ga(e){if(e===da)throw Error(y(174));return e}function va(e,t){switch(Bo(ma,t),Bo(ha,e),Bo(pa,da),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:we(null,"");break;default:t=we(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}zo(pa),Bo(pa,t)}function ya(){zo(pa),zo(ha),zo(ma)}function ba(e){ga(ma.current);var t=ga(pa.current),n=we(t,e.type);t!==n&&(Bo(ha,e),Bo(pa,n))}function xa(e){ha.current===e&&(zo(pa),zo(ha))}var wa=Fo(0);function Sa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ka=[];function Ea(){for(var e=0;e<ka.length;e++)ka[e]._workInProgressVersionPrimary=null;ka.length=0}var _a=R.ReactCurrentDispatcher,Ca=R.ReactCurrentBatchConfig,Oa=0,Pa=null,ja=null,Ta=null,Ma=!1,Da=!1,Ra=0,Aa=0;function Na(){throw Error(y(321))}function Ia(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xr(e[n],t[n]))return!1;return!0}function La(e,t,n,r,o,i){if(Oa=i,Pa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_a.current=null===e||null===e.memoizedState?xl:wl,e=n(r,o),Da){i=0;do{if(Da=!1,Ra=0,25<=i)throw Error(y(301));i+=1,Ta=ja=null,t.updateQueue=null,_a.current=Sl,e=n(r,o)}while(Da)}if(_a.current=bl,t=null!==ja&&null!==ja.next,Oa=0,Ta=ja=Pa=null,Ma=!1,t)throw Error(y(300));return e}function Fa(){var e=0!==Ra;return Ra=0,e}function za(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ta?Pa.memoizedState=Ta=e:Ta=Ta.next=e,Ta}function Ba(){if(null===ja){var e=Pa.alternate;e=null!==e?e.memoizedState:null}else e=ja.next;var t=null===Ta?Pa.memoizedState:Ta.next;if(null!==t)Ta=t,ja=e;else{if(null===e)throw Error(y(310));e={memoizedState:(ja=e).memoizedState,baseState:ja.baseState,baseQueue:ja.baseQueue,queue:ja.queue,next:null},null===Ta?Pa.memoizedState=Ta=e:Ta=Ta.next=e}return Ta}function Ka(e,t){return"function"==typeof t?t(e):t}function Ua(e){var t=Ba(),n=t.queue;if(null===n)throw Error(y(311));n.lastRenderedReducer=e;var r=ja,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Oa&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=f,a=r):s=s.next=f,Pa.lanes|=c,Js|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,xr(r,t.memoizedState)||(Rl=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Pa.lanes|=i,Js|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Va(e){var t=Ba(),n=t.queue;if(null===n)throw Error(y(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);xr(i,t.memoizedState)||(Rl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ha(){}function $a(e,t){var n=Pa,r=Ba(),o=t(),i=!xr(r.memoizedState,o);if(i&&(r.memoizedState=o,Rl=!0),r=r.queue,rl(Ya.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Ta&&1&Ta.memoizedState.tag){if(n.flags|=2048,Qa(9,qa.bind(null,n,r,o,t),void 0,null),null===Vs)throw Error(y(349));0!=(30&Oa)||Wa(n,t,o)}return o}function Wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Pa.updateQueue)?(t={lastEffect:null,stores:null},Pa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function qa(e,t,n,r){t.value=n,t.getSnapshot=r,Ga(t)&&Ja(e)}function Ya(e,t,n){return n((function(){Ga(t)&&Ja(e)}))}function Ga(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xr(e,n)}catch(e){return!0}}function Ja(e){var t=Vi(e,1);null!==t&&gu(t,e,1,-1)}function Xa(e){var t=za();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},t.queue=e,e=e.dispatch=ml.bind(null,Pa,e),[t.memoizedState,e]}function Qa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Pa.updateQueue)?(t={lastEffect:null,stores:null},Pa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Za(){return Ba().memoizedState}function el(e,t,n,r){var o=za();Pa.flags|=e,o.memoizedState=Qa(1|t,n,void 0,void 0===r?null:r)}function tl(e,t,n,r){var o=Ba();r=void 0===r?null:r;var i=void 0;if(null!==ja){var a=ja.memoizedState;if(i=a.destroy,null!==r&&Ia(r,a.deps))return void(o.memoizedState=Qa(t,n,i,r))}Pa.flags|=e,o.memoizedState=Qa(1|t,n,i,r)}function nl(e,t){return el(8390656,8,e,t)}function rl(e,t){return tl(2048,8,e,t)}function ol(e,t){return tl(4,2,e,t)}function il(e,t){return tl(4,4,e,t)}function al(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ll(e,t,n){return n=null!=n?n.concat([e]):null,tl(4,4,al.bind(null,t,e),n)}function sl(){}function ul(e,t){var n=Ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ia(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cl(e,t){var n=Ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ia(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fl(e,t,n){return 0==(21&Oa)?(e.baseState&&(e.baseState=!1,Rl=!0),e.memoizedState=n):(xr(n,t)||(n=Pt(),Pa.lanes|=n,Js|=n,e.baseState=!0),t)}function dl(e,t){var n=Dt;Dt=0!==n&&4>n?n:4,e(!0);var r=Ca.transition;Ca.transition={};try{e(!1),t()}finally{Dt=n,Ca.transition=r}}function pl(){return Ba().memoizedState}function hl(e,t,n){var r=mu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gl(e))vl(t,n);else if(null!==(n=Ui(e,t,n,r))){gu(n,e,r,hu()),yl(n,t,r)}}function ml(e,t,n){var r=mu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gl(e))vl(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,xr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ki(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ui(e,t,o,r))&&(gu(n,e,r,o=hu()),yl(n,t,r))}}function gl(e){var t=e.alternate;return e===Pa||null!==t&&t===Pa}function vl(e,t){Da=Ma=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yl(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Mt(e,n)}}var bl={readContext:zi,useCallback:Na,useContext:Na,useEffect:Na,useImperativeHandle:Na,useInsertionEffect:Na,useLayoutEffect:Na,useMemo:Na,useReducer:Na,useRef:Na,useState:Na,useDebugValue:Na,useDeferredValue:Na,useTransition:Na,useMutableSource:Na,useSyncExternalStore:Na,useId:Na,unstable_isNewReconciler:!1},xl={readContext:zi,useCallback:function(e,t){return za().memoizedState=[e,void 0===t?null:t],e},useContext:zi,useEffect:nl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,el(4194308,4,al.bind(null,t,e),n)},useLayoutEffect:function(e,t){return el(4194308,4,e,t)},useInsertionEffect:function(e,t){return el(4,2,e,t)},useMemo:function(e,t){var n=za();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=za();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hl.bind(null,Pa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},za().memoizedState=e},useState:Xa,useDebugValue:sl,useDeferredValue:function(e){return za().memoizedState=e},useTransition:function(){var e=Xa(!1),t=e[0];return e=dl.bind(null,e[1]),za().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pa,o=za();if(yi){if(void 0===n)throw Error(y(407));n=n()}else{if(n=t(),null===Vs)throw Error(y(349));0!=(30&Oa)||Wa(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,nl(Ya.bind(null,r,i,e),[e]),r.flags|=2048,Qa(9,qa.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=za(),t=Vs.identifierPrefix;if(yi){var n=fi;t=":"+t+"R"+(n=(ci&~(1<<32-bt(ci)-1)).toString(32)+n),0<(n=Ra++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Aa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},wl={readContext:zi,useCallback:ul,useContext:zi,useEffect:rl,useImperativeHandle:ll,useInsertionEffect:ol,useLayoutEffect:il,useMemo:cl,useReducer:Ua,useRef:Za,useState:function(){return Ua(Ka)},useDebugValue:sl,useDeferredValue:function(e){return fl(Ba(),ja.memoizedState,e)},useTransition:function(){return[Ua(Ka)[0],Ba().memoizedState]},useMutableSource:Ha,useSyncExternalStore:$a,useId:pl,unstable_isNewReconciler:!1},Sl={readContext:zi,useCallback:ul,useContext:zi,useEffect:rl,useImperativeHandle:ll,useInsertionEffect:ol,useLayoutEffect:il,useMemo:cl,useReducer:Va,useRef:Za,useState:function(){return Va(Ka)},useDebugValue:sl,useDeferredValue:function(e){var t=Ba();return null===ja?t.memoizedState=e:fl(t,ja.memoizedState,e)},useTransition:function(){return[Va(Ka)[0],Ba().memoizedState]},useMutableSource:Ha,useSyncExternalStore:$a,useId:pl,unstable_isNewReconciler:!1};function kl(e,t){try{var n="",r=t;do{n+=ee(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function El(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function _l(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Cl="function"==typeof WeakMap?WeakMap:Map;function Ol(e,t,n){(n=qi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ou||(ou=!0,iu=r),_l(0,t)},n}function Pl(e,t,n){(n=qi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){_l(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){_l(0,t),"function"!=typeof r&&(null===au?au=new Set([this]):au.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function jl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Cl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=zu.bind(null,e,t,n),t.then(e,e))}function Tl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ml(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=qi(-1,1)).tag=2,Yi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Dl=R.ReactCurrentOwner,Rl=!1;function Al(e,t,n,r){t.child=null===e?fa(t,null,n,r):ca(t,e.child,n,r)}function Nl(e,t,n,r,o){n=n.render;var i=t.ref;return Fi(t,o),r=La(e,t,n,r,i,o),n=Fa(),null===e||Rl?(yi&&n&&hi(t),t.flags|=1,Al(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,os(e,t,o))}function Il(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Wu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Yu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ll(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:wr)(a,r)&&e.ref===t.ref)return os(e,t,o)}return t.flags|=1,(e=qu(i,r)).ref=t.ref,e.return=t,t.child=e}function Ll(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(wr(i,r)&&e.ref===t.ref){if(Rl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,os(e,t,o);0!=(131072&e.flags)&&(Rl=!0)}}return Bl(e,t,n,r,o)}function Fl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Bo(qs,Ws),Ws|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Bo(qs,Ws),Ws|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Bo(qs,Ws),Ws|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Bo(qs,Ws),Ws|=r;return Al(e,t,o,n),t.child}function zl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bl(e,t,n,r,o){var i=Wo(n)?Ho:Uo.current;return i=$o(t,i),Fi(t,o),n=La(e,t,n,r,i,o),r=Fa(),null===e||Rl?(yi&&r&&hi(t),t.flags|=1,Al(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,os(e,t,o))}function Kl(e,t,n,r,o){if(Wo(n)){var i=!0;Jo(t)}else i=!1;if(Fi(t,o),null===t.stateNode)rs(e,t),ra(t,n,r),ia(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=zi(u):u=$o(t,u=Wo(n)?Ho:Uo.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&oa(t,a,r,u),Hi=!1;var d=t.memoizedState;a.state=d,Xi(t,r,a,o),s=t.memoizedState,l!==r||d!==s||Vo.current||Hi?("function"==typeof c&&(ea(t,n,c,r),s=t.memoizedState),(l=Hi||na(t,n,l,r,d,s,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Wi(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ti(t.type,l),a.props=u,f=t.pendingProps,d=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=zi(s):s=$o(t,s=Wo(n)?Ho:Uo.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==s)&&oa(t,a,r,s),Hi=!1,d=t.memoizedState,a.state=d,Xi(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||Vo.current||Hi?("function"==typeof p&&(ea(t,n,p,r),h=t.memoizedState),(u=Hi||na(t,n,u,r,d,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ul(e,t,n,r,i,o)}function Ul(e,t,n,r,o,i){zl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Xo(t,n,!1),os(e,t,i);r=t.stateNode,Dl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ca(t,e.child,null,i),t.child=ca(t,null,l,i)):Al(e,t,l,i),t.memoizedState=r.state,o&&Xo(t,n,!0),t.child}function Vl(e){var t=e.stateNode;t.pendingContext?Yo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Yo(0,t.context,!1),va(e,t.containerInfo)}function Hl(e,t,n,r,o){return Oi(),Pi(o),t.flags|=256,Al(e,t,n,r),t.child}var $l,Wl,ql,Yl,Gl={dehydrated:null,treeContext:null,retryLane:0};function Jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xl(e,t,n){var r,o=t.pendingProps,i=wa.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Bo(wa,1&i),null===e)return ki(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Ju(l,o,0,null),e=Gu(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Jl(n),t.memoizedState=Gl,e):Ql(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Zl(e,t,a,r=El(Error(y(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ju({mode:"visible",children:r.children},o,0,null),(i=Gu(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&ca(t,e.child,null,a),t.child.memoizedState=Jl(a),t.memoizedState=Gl,i);if(0==(1&t.mode))return Zl(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Zl(e,t,a,r=El(i=Error(y(419)),r,void 0))}if(l=0!=(a&e.childLanes),Rl||l){if(null!==(r=Vs)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Vi(e,o),gu(r,e,o,-1))}return ju(),Zl(e,t,a,r=El(Error(y(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ku.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,vi=ko(o.nextSibling),gi=t,yi=!0,bi=null,null!==e&&(li[si++]=ci,li[si++]=fi,li[si++]=ui,ci=e.id,fi=e.overflow,ui=t),t=Ql(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=qu(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=qu(r,a):(a=Gu(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Jl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Gl,o}return e=(a=e.child).sibling,o=qu(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ql(e,t){return(t=Ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Zl(e,t,n,r){return null!==r&&Pi(r),ca(t,e.child,null,n),(e=Ql(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function es(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Li(e.return,t,n)}function ts(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ns(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Al(e,t,r.children,n),0!=(2&(r=wa.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&es(e,n,t);else if(19===e.tag)es(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Bo(wa,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Sa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ts(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Sa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ts(t,!0,n,null,i);break;case"together":ts(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Js|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(y(153));if(null!==t.child){for(n=qu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=qu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function is(e,t){if(!yi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function as(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ls(e,t,n){var r=t.pendingProps;switch(mi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return as(t),null;case 1:case 17:return Wo(t.type)&&qo(),as(t),null;case 3:return r=t.stateNode,ya(),zo(Vo),zo(Uo),Ea(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(_i(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==bi&&(xu(bi),bi=null))),Wl(e,t),as(t),null;case 5:xa(t);var o=ga(ma.current);if(n=t.type,null!==e&&null!=t.stateNode)ql(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(y(166));return as(t),null}if(e=ga(pa.current),_i(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Co]=t,r[Oo]=i,e=0!=(1&t.mode),n){case"dialog":Qr("cancel",r),Qr("close",r);break;case"iframe":case"object":case"embed":Qr("load",r);break;case"video":case"audio":for(o=0;o<Yr.length;o++)Qr(Yr[o],r);break;case"source":Qr("error",r);break;case"img":case"image":case"link":Qr("error",r),Qr("load",r);break;case"details":Qr("toggle",r);break;case"input":ue(r,i),Qr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Qr("invalid",r);break;case"textarea":ve(r,i),Qr("invalid",r)}for(var a in Me(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&fo(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&fo(r.textContent,l,e),o=["children",""+l]):x.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Qr("scroll",r)}switch(n){case"input":ie(r),de(r,i,!0);break;case"textarea":ie(r),be(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=po)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=xe(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Co]=t,e[Oo]=r,$l(e,t,!1,!1),t.stateNode=e;e:{switch(a=De(n,r),n){case"dialog":Qr("cancel",e),Qr("close",e),o=r;break;case"iframe":case"object":case"embed":Qr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Yr.length;o++)Qr(Yr[o],e);o=r;break;case"source":Qr("error",e),o=r;break;case"img":case"image":case"link":Qr("error",e),Qr("load",e),o=r;break;case"details":Qr("toggle",e),o=r;break;case"input":ue(e,r),o=se(e,r),Qr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=J({},r,{value:void 0}),Qr("invalid",e);break;case"textarea":ve(e,r),o=ge(e,r),Qr("invalid",e)}for(i in Me(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?je(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&Ee(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&_e(e,s):"number"==typeof s&&_e(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(x.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Qr("scroll",e):null!=s&&D(e,i,s,a))}switch(n){case"input":ie(e),de(e,r,!1);break;case"textarea":ie(e),be(e);break;case"option":null!=r.value&&e.setAttribute("value",""+re(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?me(e,!!r.multiple,i,!1):null!=r.defaultValue&&me(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=po)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return as(t),null;case 6:if(e&&null!=t.stateNode)Yl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(y(166));if(n=ga(ma.current),ga(pa.current),_i(t)){if(r=t.stateNode,n=t.memoizedProps,r[Co]=t,(i=r.nodeValue!==n)&&null!==(e=gi))switch(e.tag){case 3:fo(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&fo(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Co]=t,t.stateNode=r}return as(t),null;case 13:if(zo(wa),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(yi&&null!==vi&&0!=(1&t.mode)&&0==(128&t.flags))Ci(),Oi(),t.flags|=98560,i=!1;else if(i=_i(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(y(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(y(317));i[Co]=t}else Oi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;as(t),i=!1}else null!==bi&&(xu(bi),bi=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&wa.current)?0===Ys&&(Ys=3):ju())),null!==t.updateQueue&&(t.flags|=4),as(t),null);case 4:return ya(),Wl(e,t),null===e&&to(t.stateNode.containerInfo),as(t),null;case 10:return Ii(t.type._context),as(t),null;case 19:if(zo(wa),null===(i=t.memoizedState))return as(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)is(i,!1);else{if(0!==Ys||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Sa(e))){for(t.flags|=128,is(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Bo(wa,1&wa.current|2),t.child}e=e.sibling}null!==i.tail&&ct()>nu&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Sa(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),is(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!yi)return as(t),null}else 2*ct()-i.renderingStartTime>nu&&1073741824!==n&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ct(),t.sibling=null,n=wa.current,Bo(wa,r?1&n|2:1&n),t):(as(t),null);case 22:case 23:return _u(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ws)&&(as(t),6&t.subtreeFlags&&(t.flags|=8192)):as(t),null;case 24:case 25:return null}throw Error(y(156,t.tag))}function ss(e,t){switch(mi(t),t.tag){case 1:return Wo(t.type)&&qo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ya(),zo(Vo),zo(Uo),Ea(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return xa(t),null;case 13:if(zo(wa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(y(340));Oi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return zo(wa),null;case 4:return ya(),null;case 10:return Ii(t.type._context),null;case 22:case 23:return _u(),null;default:return null}}$l=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wl=function(){},ql=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ga(pa.current);var i,a=null;switch(n){case"input":o=se(e,o),r=se(e,r),a=[];break;case"select":o=J({},o,{value:void 0}),r=J({},r,{value:void 0}),a=[];break;case"textarea":o=ge(e,o),r=ge(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=po)}for(u in Me(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(x.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(x.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Qr("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Yl=function(e,t,n,r){n!==r&&(t.flags|=4)};var us=!1,cs=!1,fs="function"==typeof WeakSet?WeakSet:Set,ds=null;function ps(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Fu(e,t,n)}else n.current=null}function hs(e,t,n){try{n()}catch(n){Fu(e,t,n)}}var ms=!1;function gs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&hs(t,n,i)}o=o.next}while(o!==r)}}function vs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ys(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function bs(e){var t=e.alternate;null!==t&&(e.alternate=null,bs(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Co],delete t[Oo],delete t[jo],delete t[To],delete t[Mo])),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 xs(e){return 5===e.tag||3===e.tag||4===e.tag}function ws(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||xs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=po));else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function ks(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}var Es=null,_s=!1;function Cs(e,t,n){for(n=n.child;null!==n;)Os(e,t,n),n=n.sibling}function Os(e,t,n){if(yt&&"function"==typeof yt.onCommitFiberUnmount)try{yt.onCommitFiberUnmount(vt,n)}catch(e){}switch(n.tag){case 5:cs||ps(n,t);case 6:var r=Es,o=_s;Es=null,Cs(e,t,n),_s=o,null!==(Es=r)&&(_s?(e=Es,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Es.removeChild(n.stateNode));break;case 18:null!==Es&&(_s?(e=Es,n=n.stateNode,8===e.nodeType?So(e.parentNode,n):1===e.nodeType&&So(e,n),tn(e)):So(Es,n.stateNode));break;case 4:r=Es,o=_s,Es=n.stateNode.containerInfo,_s=!0,Cs(e,t,n),Es=r,_s=o;break;case 0:case 11:case 14:case 15:if(!cs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&hs(n,t,a),o=o.next}while(o!==r)}Cs(e,t,n);break;case 1:if(!cs&&(ps(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Fu(n,t,e)}Cs(e,t,n);break;case 21:Cs(e,t,n);break;case 22:1&n.mode?(cs=(r=cs)||null!==n.memoizedState,Cs(e,t,n),cs=r):Cs(e,t,n);break;default:Cs(e,t,n)}}function Ps(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Uu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function js(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:Es=l.stateNode,_s=!1;break e;case 3:case 4:Es=l.stateNode.containerInfo,_s=!0;break e}l=l.return}if(null===Es)throw Error(y(160));Os(i,a,o),Es=null,_s=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Fu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Ts(t,e),t=t.sibling}function Ts(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(js(t,e),Ms(e),4&r){try{gs(3,e,e.return),vs(3,e)}catch(t){Fu(e,e.return,t)}try{gs(5,e,e.return)}catch(t){Fu(e,e.return,t)}}break;case 1:js(t,e),Ms(e),512&r&&null!==n&&ps(n,n.return);break;case 5:if(js(t,e),Ms(e),512&r&&null!==n&&ps(n,n.return),32&e.flags){var o=e.stateNode;try{_e(o,"")}catch(t){Fu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&ce(o,i),De(l,a);var u=De(l,i);for(a=0;a<s.length;a+=2){var c=s[a],f=s[a+1];"style"===c?je(o,f):"dangerouslySetInnerHTML"===c?Ee(o,f):"children"===c?_e(o,f):D(o,c,f,u)}switch(l){case"input":fe(o,i);break;case"textarea":ye(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?me(o,!!i.multiple,p,!1):d!==!!i.multiple&&(null!=i.defaultValue?me(o,!!i.multiple,i.defaultValue,!0):me(o,!!i.multiple,i.multiple?[]:"",!1))}o[Oo]=i}catch(t){Fu(e,e.return,t)}}break;case 6:if(js(t,e),Ms(e),4&r){if(null===e.stateNode)throw Error(y(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Fu(e,e.return,t)}}break;case 3:if(js(t,e),Ms(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{tn(t.containerInfo)}catch(t){Fu(e,e.return,t)}break;case 4:default:js(t,e),Ms(e);break;case 13:js(t,e),Ms(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(tu=ct())),4&r&&Ps(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(cs=(u=cs)||c,js(t,e),cs=u):js(t,e),Ms(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(ds=e,c=e.child;null!==c;){for(f=ds=c;null!==ds;){switch(p=(d=ds).child,d.tag){case 0:case 11:case 14:case 15:gs(4,d,d.return);break;case 1:ps(d,d.return);var h=d.stateNode;if("function"==typeof h.componentWillUnmount){r=d,n=d.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Fu(r,n,e)}}break;case 5:ps(d,d.return);break;case 22:if(null!==d.memoizedState){Ns(f);continue}}null!==p?(p.return=d,ds=p):Ns(f)}c=c.sibling}e:for(c=null,f=e;;){if(5===f.tag){if(null===c){c=f;try{o=f.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=f.stateNode,a=null!=(s=f.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Pe("display",a))}catch(t){Fu(e,e.return,t)}}}else if(6===f.tag){if(null===c)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){Fu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:js(t,e),Ms(e),4&r&&Ps(e);case 21:}}function Ms(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(xs(n)){var r=n;break e}n=n.return}throw Error(y(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(_e(o,""),r.flags&=-33),ks(e,ws(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Ss(e,ws(e),i);break;default:throw Error(y(161))}}catch(t){Fu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ds(e,t,n){ds=e,Rs(e,t,n)}function Rs(e,t,n){for(var r=0!=(1&e.mode);null!==ds;){var o=ds,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||us;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||cs;l=us;var u=cs;if(us=a,(cs=s)&&!u)for(ds=o;null!==ds;)s=(a=ds).child,22===a.tag&&null!==a.memoizedState?Is(o):null!==s?(s.return=a,ds=s):Is(o);for(;null!==i;)ds=i,Rs(i,t,n),i=i.sibling;ds=o,us=l,cs=u}As(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,ds=i):As(e)}}function As(e){for(;null!==ds;){var t=ds;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:cs||vs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!cs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ti(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Qi(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Qi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var f=c.dehydrated;null!==f&&tn(f)}}}break;default:throw Error(y(163))}cs||512&t.flags&&ys(t)}catch(e){Fu(t,t.return,e)}}if(t===e){ds=null;break}if(null!==(n=t.sibling)){n.return=t.return,ds=n;break}ds=t.return}}function Ns(e){for(;null!==ds;){var t=ds;if(t===e){ds=null;break}var n=t.sibling;if(null!==n){n.return=t.return,ds=n;break}ds=t.return}}function Is(e){for(;null!==ds;){var t=ds;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vs(4,t)}catch(e){Fu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Fu(t,o,e)}}var i=t.return;try{ys(t)}catch(e){Fu(t,i,e)}break;case 5:var a=t.return;try{ys(t)}catch(e){Fu(t,a,e)}}}catch(e){Fu(t,t.return,e)}if(t===e){ds=null;break}var l=t.sibling;if(null!==l){l.return=t.return,ds=l;break}ds=t.return}}var Ls,Fs=Math.ceil,zs=R.ReactCurrentDispatcher,Bs=R.ReactCurrentOwner,Ks=R.ReactCurrentBatchConfig,Us=0,Vs=null,Hs=null,$s=0,Ws=0,qs=Fo(0),Ys=0,Gs=null,Js=0,Xs=0,Qs=0,Zs=null,eu=null,tu=0,nu=1/0,ru=null,ou=!1,iu=null,au=null,lu=!1,su=null,uu=0,cu=0,fu=null,du=-1,pu=0;function hu(){return 0!=(6&Us)?ct():-1!==du?du:du=ct()}function mu(e){return 0==(1&e.mode)?1:0!=(2&Us)&&0!==$s?$s&-$s:null!==ji.transition?(0===pu&&(pu=Pt()),pu):0!==(e=Dt)?e:e=void 0===(e=window.event)?16:cn(e.type)}function gu(e,t,n,r){if(50<cu)throw cu=0,fu=null,Error(y(185));Tt(e,n,r),0!=(2&Us)&&e===Vs||(e===Vs&&(0==(2&Us)&&(Xs|=n),4===Ys&&wu(e,$s)),vu(e,r),1===n&&0===Us&&0==(1&t.mode)&&(nu=ct()+500,Zo&&ni()))}function vu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-bt(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=Ct(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=_t(e,e===Vs?$s:0);if(0===r)null!==n&&lt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&lt(n),1===t)0===e.tag?function(e){Zo=!0,ti(e)}(Su.bind(null,e)):ti(Su.bind(null,e)),xo((function(){0==(6&Us)&&ni()})),n=null;else{switch(Rt(r)){case 1:n=dt;break;case 4:n=pt;break;case 16:default:n=ht;break;case 536870912:n=gt}n=Vu(n,yu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yu(e,t){if(du=-1,pu=0,0!=(6&Us))throw Error(y(327));var n=e.callbackNode;if(Iu()&&e.callbackNode!==n)return null;var r=_t(e,e===Vs?$s:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Tu(e,r);else{t=r;var o=Us;Us|=2;var i=Pu();for(Vs===e&&$s===t||(ru=null,nu=ct()+500,Cu(e,t));;)try{Du();break}catch(t){Ou(e,t)}Ni(),zs.current=i,Us=o,null!==Hs?t=0:(Vs=null,$s=0,t=Ys)}if(0!==t){if(2===t&&(0!==(o=Ot(e))&&(r=o,t=bu(e,o))),1===t)throw n=Gs,Cu(e,0),wu(e,r),vu(e,ct()),n;if(6===t)wu(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!xr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Tu(e,r))&&(0!==(i=Ot(e))&&(r=i,t=bu(e,i))),1===t))throw n=Gs,Cu(e,0),wu(e,r),vu(e,ct()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(y(345));case 2:case 5:Nu(e,eu,ru);break;case 3:if(wu(e,r),(130023424&r)===r&&10<(t=tu+500-ct())){if(0!==_t(e,0))break;if(((o=e.suspendedLanes)&r)!==r){hu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=vo(Nu.bind(null,e,eu,ru),t);break}Nu(e,eu,ru);break;case 4:if(wu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-bt(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=ct()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fs(r/1960))-r)){e.timeoutHandle=vo(Nu.bind(null,e,eu,ru),r);break}Nu(e,eu,ru);break;default:throw Error(y(329))}}}return vu(e,ct()),e.callbackNode===n?yu.bind(null,e):null}function bu(e,t){var n=Zs;return e.current.memoizedState.isDehydrated&&(Cu(e,t).flags|=256),2!==(e=Tu(e,t))&&(t=eu,eu=n,null!==t&&xu(t)),e}function xu(e){null===eu?eu=e:eu.push.apply(eu,e)}function wu(e,t){for(t&=~Qs,t&=~Xs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bt(t),r=1<<n;e[n]=-1,t&=~r}}function Su(e){if(0!=(6&Us))throw Error(y(327));Iu();var t=_t(e,0);if(0==(1&t))return vu(e,ct()),null;var n=Tu(e,t);if(0!==e.tag&&2===n){var r=Ot(e);0!==r&&(t=r,n=bu(e,r))}if(1===n)throw n=Gs,Cu(e,0),wu(e,t),vu(e,ct()),n;if(6===n)throw Error(y(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nu(e,eu,ru),vu(e,ct()),null}function ku(e,t){var n=Us;Us|=1;try{return e(t)}finally{0===(Us=n)&&(nu=ct()+500,Zo&&ni())}}function Eu(e){null!==su&&0===su.tag&&0==(6&Us)&&Iu();var t=Us;Us|=1;var n=Ks.transition,r=Dt;try{if(Ks.transition=null,Dt=1,e)return e()}finally{Dt=r,Ks.transition=n,0==(6&(Us=t))&&ni()}}function _u(){Ws=qs.current,zo(qs)}function Cu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,yo(n)),null!==Hs)for(n=Hs.return;null!==n;){var r=n;switch(mi(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&qo();break;case 3:ya(),zo(Vo),zo(Uo),Ea();break;case 5:xa(r);break;case 4:ya();break;case 13:case 19:zo(wa);break;case 10:Ii(r.type._context);break;case 22:case 23:_u()}n=n.return}if(Vs=e,Hs=e=qu(e.current,null),$s=Ws=t,Ys=0,Gs=null,Qs=Xs=Js=0,eu=Zs=null,null!==Bi){for(t=0;t<Bi.length;t++)if(null!==(r=(n=Bi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Bi=null}return e}function Ou(e,t){for(;;){var n=Hs;try{if(Ni(),_a.current=bl,Ma){for(var r=Pa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ma=!1}if(Oa=0,Ta=ja=Pa=null,Da=!1,Ra=0,Bs.current=null,null===n||null===n.return){Ys=1,Gs=t,Hs=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=$s,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,f=c.tag;if(0==(1&c.mode)&&(0===f||11===f||15===f)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Tl(a);if(null!==p){p.flags&=-257,Ml(p,a,l,0,t),1&p.mode&&jl(i,u,t),s=u;var h=(t=p).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){jl(i,u,t),ju();break e}s=Error(y(426))}else if(yi&&1&l.mode){var g=Tl(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Ml(g,a,l,0,t),Pi(kl(s,l));break e}}i=s=kl(s,l),4!==Ys&&(Ys=2),null===Zs?Zs=[i]:Zs.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ji(i,Ol(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===au||!au.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ji(i,Pl(i,l,t));break e}}i=i.return}while(null!==i)}Au(n)}catch(e){t=e,Hs===n&&null!==n&&(Hs=n=n.return);continue}break}}function Pu(){var e=zs.current;return zs.current=bl,null===e?bl:e}function ju(){0!==Ys&&3!==Ys&&2!==Ys||(Ys=4),null===Vs||0==(268435455&Js)&&0==(268435455&Xs)||wu(Vs,$s)}function Tu(e,t){var n=Us;Us|=2;var r=Pu();for(Vs===e&&$s===t||(ru=null,Cu(e,t));;)try{Mu();break}catch(t){Ou(e,t)}if(Ni(),Us=n,zs.current=r,null!==Hs)throw Error(y(261));return Vs=null,$s=0,Ys}function Mu(){for(;null!==Hs;)Ru(Hs)}function Du(){for(;null!==Hs&&!st();)Ru(Hs)}function Ru(e){var t=Ls(e.alternate,e,Ws);e.memoizedProps=e.pendingProps,null===t?Au(e):Hs=t,Bs.current=null}function Au(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=ls(n,t,Ws)))return void(Hs=n)}else{if(null!==(n=ss(n,t)))return n.flags&=32767,void(Hs=n);if(null===e)return Ys=6,void(Hs=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Hs=t);Hs=t=e}while(null!==t);0===Ys&&(Ys=5)}function Nu(e,t,n){var r=Dt,o=Ks.transition;try{Ks.transition=null,Dt=1,function(e,t,n,r){do{Iu()}while(null!==su);if(0!=(6&Us))throw Error(y(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(y(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-bt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Vs&&(Hs=Vs=null,$s=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||lu||(lu=!0,Vu(ht,(function(){return Iu(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Ks.transition,Ks.transition=null;var a=Dt;Dt=1;var l=Us;Us|=4,Bs.current=null,function(e,t){if(ho=rn,Cr(e=_r())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||0!==o&&3!==f.nodeType||(l=a+o),f!==i||0!==r&&3!==f.nodeType||(s=a+r),3===f.nodeType&&(a+=f.nodeValue.length),null!==(p=f.firstChild);)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++c===r&&(s=a),null!==(p=f.nextSibling))break;d=(f=d).parentNode}f=p}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(mo={focusedElem:e,selectionRange:n},rn=!1,ds=t;null!==ds;)if(e=(t=ds).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ds=e;else for(;null!==ds;){t=ds;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ti(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(y(163))}}catch(e){Fu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,ds=e;break}ds=t.return}h=ms,ms=!1}(e,n),Ts(n,e),Or(mo),rn=!!ho,mo=ho=null,e.current=n,Ds(n,e,o),ut(),Us=l,Dt=a,Ks.transition=i}else e.current=n;if(lu&&(lu=!1,su=e,uu=o),i=e.pendingLanes,0===i&&(au=null),function(e){if(yt&&"function"==typeof yt.onCommitFiberRoot)try{yt.onCommitFiberRoot(vt,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),vu(e,ct()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ou)throw ou=!1,e=iu,iu=null,e;0!=(1&uu)&&0!==e.tag&&Iu(),i=e.pendingLanes,0!=(1&i)?e===fu?cu++:(cu=0,fu=e):cu=0,ni()}(e,t,n,r)}finally{Ks.transition=o,Dt=r}return null}function Iu(){if(null!==su){var e=Rt(uu),t=Ks.transition,n=Dt;try{if(Ks.transition=null,Dt=16>e?16:e,null===su)var r=!1;else{if(e=su,su=null,uu=0,0!=(6&Us))throw Error(y(331));var o=Us;for(Us|=4,ds=e.current;null!==ds;){var i=ds,a=i.child;if(0!=(16&ds.flags)){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(ds=u;null!==ds;){var c=ds;switch(c.tag){case 0:case 11:case 15:gs(8,c,i)}var f=c.child;if(null!==f)f.return=c,ds=f;else for(;null!==ds;){var d=(c=ds).sibling,p=c.return;if(bs(c),c===u){ds=null;break}if(null!==d){d.return=p,ds=d;break}ds=p}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}ds=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,ds=a;else e:for(;null!==ds;){if(0!=(2048&(i=ds).flags))switch(i.tag){case 0:case 11:case 15:gs(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,ds=v;break e}ds=i.return}}var b=e.current;for(ds=b;null!==ds;){var x=(a=ds).child;if(0!=(2064&a.subtreeFlags)&&null!==x)x.return=a,ds=x;else e:for(a=b;null!==ds;){if(0!=(2048&(l=ds).flags))try{switch(l.tag){case 0:case 11:case 15:vs(9,l)}}catch(e){Fu(l,l.return,e)}if(l===a){ds=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,ds=w;break e}ds=l.return}}if(Us=o,ni(),yt&&"function"==typeof yt.onPostCommitFiberRoot)try{yt.onPostCommitFiberRoot(vt,e)}catch(e){}r=!0}return r}finally{Dt=n,Ks.transition=t}}return!1}function Lu(e,t,n){e=Yi(e,t=Ol(0,t=kl(n,t),1),1),t=hu(),null!==e&&(Tt(e,1,t),vu(e,t))}function Fu(e,t,n){if(3===e.tag)Lu(e,e,n);else for(;null!==t;){if(3===t.tag){Lu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===au||!au.has(r))){t=Yi(t,e=Pl(t,e=kl(n,e),1),1),e=hu(),null!==t&&(Tt(t,1,e),vu(t,e));break}}t=t.return}}function zu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=hu(),e.pingedLanes|=e.suspendedLanes&n,Vs===e&&($s&n)===n&&(4===Ys||3===Ys&&(130023424&$s)===$s&&500>ct()-tu?Cu(e,0):Qs|=n),vu(e,t)}function Bu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=kt,0==(130023424&(kt<<=1))&&(kt=4194304)));var n=hu();null!==(e=Vi(e,t))&&(Tt(e,t,n),vu(e,n))}function Ku(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Bu(e,n)}function Uu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}null!==r&&r.delete(t),Bu(e,n)}function Vu(e,t){return at(e,t)}function Hu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $u(e,t,n,r){return new Hu(e,t,n,r)}function Wu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function qu(e,t){var n=e.alternate;return null===n?((n=$u(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yu(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Wu(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case I:return Gu(n.children,o,i,t);case L:a=8,o|=8;break;case F:return(e=$u(12,n,t,2|o)).elementType=F,e.lanes=i,e;case U:return(e=$u(13,n,t,o)).elementType=U,e.lanes=i,e;case V:return(e=$u(19,n,t,o)).elementType=V,e.lanes=i,e;case W:return Ju(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case z:a=10;break e;case B:a=9;break e;case K:a=11;break e;case H:a=14;break e;case $:a=16,r=null;break e}throw Error(y(130,null==e?e:typeof e,""))}return(t=$u(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Gu(e,t,n,r){return(e=$u(7,e,r,t)).lanes=n,e}function Ju(e,t,n,r){return(e=$u(22,e,r,t)).elementType=W,e.lanes=n,e.stateNode={isHidden:!1},e}function Xu(e,t,n){return(e=$u(6,e,null,t)).lanes=n,e}function Qu(e,t,n){return(t=$u(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zu(e,t,n,r,o){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=jt(0),this.expirationTimes=jt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ec(e,t,n,r,o,i,a,l,s){return e=new Zu(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=$u(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$i(i),e}function tc(e){if(!e)return Ko;e:{if(tt(e=e._reactInternals)!==e||1!==e.tag)throw Error(y(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Wo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(y(171))}if(1===e.tag){var n=e.type;if(Wo(n))return Go(e,n,t)}return t}function nc(e,t,n,r,o,i,a,l,s){return(e=ec(n,r,!0,e,0,i,0,l,s)).context=tc(null),n=e.current,(i=qi(r=hu(),o=mu(n))).callback=null!=t?t:null,Yi(n,i,o),e.current.lanes=o,Tt(e,o,r),vu(e,r),e}function rc(e,t,n,r){var o=t.current,i=hu(),a=mu(o);return n=tc(n),null===t.context?t.context=n:t.pendingContext=n,(t=qi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Yi(o,t,a))&&(gu(e,o,a,i),Gi(e,o,a)),a}function oc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ic(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ac(e,t){ic(e,t),(e=e.alternate)&&ic(e,t)}Ls=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Vo.current)Rl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Rl=!1,function(e,t,n){switch(t.tag){case 3:Vl(t),Oi();break;case 5:ba(t);break;case 1:Wo(t.type)&&Jo(t);break;case 4:va(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Bo(Mi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Bo(wa,1&wa.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Xl(e,t,n):(Bo(wa,1&wa.current),null!==(e=os(e,t,n))?e.sibling:null);Bo(wa,1&wa.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ns(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Bo(wa,wa.current),r)break;return null;case 22:case 23:return t.lanes=0,Fl(e,t,n)}return os(e,t,n)}(e,t,n);Rl=0!=(131072&e.flags)}else Rl=!1,yi&&0!=(1048576&t.flags)&&pi(t,ai,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rs(e,t),e=t.pendingProps;var o=$o(t,Uo.current);Fi(t,n),o=La(null,t,r,e,o,n);var i=Fa();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wo(r)?(i=!0,Jo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,$i(t),o.updater=ta,t.stateNode=o,o._reactInternals=t,ia(t,r,e,n),t=Ul(null,t,r,!0,i,n)):(t.tag=0,yi&&i&&hi(t),Al(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Wu(e)?1:0;if(null!=e){if((e=e.$$typeof)===K)return 11;if(e===H)return 14}return 2}(r),e=Ti(r,e),o){case 0:t=Bl(null,t,r,e,n);break e;case 1:t=Kl(null,t,r,e,n);break e;case 11:t=Nl(null,t,r,e,n);break e;case 14:t=Il(null,t,r,Ti(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Bl(e,t,r,o=t.elementType===r?o:Ti(r,o),n);case 1:return r=t.type,o=t.pendingProps,Kl(e,t,r,o=t.elementType===r?o:Ti(r,o),n);case 3:e:{if(Vl(t),null===e)throw Error(y(387));r=t.pendingProps,o=(i=t.memoizedState).element,Wi(e,t),Xi(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Hl(e,t,r,n,o=kl(Error(y(423)),t));break e}if(r!==o){t=Hl(e,t,r,n,o=kl(Error(y(424)),t));break e}for(vi=ko(t.stateNode.containerInfo.firstChild),gi=t,yi=!0,bi=null,n=fa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Oi(),r===o){t=os(e,t,n);break e}Al(e,t,r,n)}t=t.child}return t;case 5:return ba(t),null===e&&ki(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,go(r,o)?a=null:null!==i&&go(r,i)&&(t.flags|=32),zl(e,t),Al(e,t,a,n),t.child;case 6:return null===e&&ki(t),null;case 13:return Xl(e,t,n);case 4:return va(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ca(t,null,r,n):Al(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Nl(e,t,r,o=t.elementType===r?o:Ti(r,o),n);case 7:return Al(e,t,t.pendingProps,n),t.child;case 8:case 12:return Al(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Bo(Mi,r._currentValue),r._currentValue=a,null!==i)if(xr(i.value,a)){if(i.children===o.children&&!Vo.current){t=os(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=qi(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Li(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(y(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Li(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Al(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fi(t,n),r=r(o=zi(o)),t.flags|=1,Al(e,t,r,n),t.child;case 14:return o=Ti(r=t.type,t.pendingProps),Il(e,t,r,o=Ti(r.type,o),n);case 15:return Ll(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ti(r,o),rs(e,t),t.tag=1,Wo(r)?(e=!0,Jo(t)):e=!1,Fi(t,n),ra(t,r,o),ia(t,r,o,n),Ul(null,t,r,!0,e,n);case 19:return ns(e,t,n);case 22:return Fl(e,t,n)}throw Error(y(156,t.tag))};var lc="function"==typeof reportError?reportError:function(e){console.error(e)};function sc(e){this._internalRoot=e}function uc(e){this._internalRoot=e}function cc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function fc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function dc(){}function pc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=oc(a);l.call(e)}}rc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=oc(a);i.call(e)}}var a=nc(t,r,e,0,null,!1,0,"",dc);return e._reactRootContainer=a,e[Po]=a.current,to(8===e.nodeType?e.parentNode:e),Eu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=oc(s);l.call(e)}}var s=ec(e,0,!1,null,0,!1,0,"",dc);return e._reactRootContainer=s,e[Po]=s.current,to(8===e.nodeType?e.parentNode:e),Eu((function(){rc(t,s,n,r)})),s}(n,t,e,o,r);return oc(a)}uc.prototype.render=sc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(y(409));rc(e,t,null,null)},uc.prototype.unmount=sc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Eu((function(){rc(null,e,null,null)})),t[Po]=null}},uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wt.length&&0!==t&&t<Wt[n].priority;n++);Wt.splice(n,0,e),0===n&&Jt(e)}},At=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Et(t.pendingLanes);0!==n&&(Mt(t,1|n),vu(t,ct()),0==(6&Us)&&(nu=ct()+500,ni()))}break;case 13:Eu((function(){var t=Vi(e,1);if(null!==t){var n=hu();gu(t,e,1,n)}})),ac(e,1)}},Nt=function(e){if(13===e.tag){var t=Vi(e,134217728);if(null!==t)gu(t,e,134217728,hu());ac(e,134217728)}},It=function(e){if(13===e.tag){var t=mu(e),n=Vi(e,t);if(null!==n)gu(n,e,t,hu());ac(e,t)}},Lt=function(){return Dt},Ft=function(e,t){var n=Dt;try{return Dt=e,t()}finally{Dt=n}},Ne=function(e,t,n){switch(t){case"input":if(fe(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=No(r);if(!o)throw Error(y(90));ae(r),fe(r,o)}}}break;case"textarea":ye(e,n);break;case"select":null!=(t=n.value)&&me(e,!!n.multiple,t,!1)}},Ke=ku,Ue=Eu;var hc={usingClientEntryPoint:!1,Events:[Ro,Ao,No,ze,Be,ku]},mc={findFiberByHostInstance:Do,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},gc={bundleType:mc.bundleType,version:mc.version,rendererPackageName:mc.rendererPackageName,rendererConfig:mc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ot(e))?null:e.stateNode},findFiberByHostInstance:mc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vc.isDisabled&&vc.supportsFiber)try{vt=vc.inject(gc),yt=vc}catch(ke){}}r=hc,o=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!cc(t))throw Error(y(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:N,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},a=function(e,t){if(!cc(e))throw Error(y(299));var n=!1,r="",o=lc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=ec(e,1,!1,null,0,n,0,r,o),e[Po]=t.current,to(8===e.nodeType?e.parentNode:e),new sc(t)},l=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(y(188));throw e=Object.keys(e).join(","),Error(y(268,e))}return e=null===(e=ot(t))?null:e.stateNode},s=function(e){return Eu(e)},u=function(e,t,n){if(!fc(t))throw Error(y(200));return pc(null,e,t,!0,n)},c=function(e,t,n){if(!cc(e))throw Error(y(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=lc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=nc(t,null,e,1,null!=n?n:null,o,0,i,a),e[Po]=t.current,to(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new uc(t)},f=function(e,t,n){if(!fc(t))throw Error(y(200));return pc(null,e,t,!1,n)},d=function(e){if(!fc(e))throw Error(y(40));return!!e._reactRootContainer&&(Eu((function(){pc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Po]=null}))})),!0)},p=ku,h=function(e,t,n,r){if(!fc(n))throw Error(y(200));if(null==e||void 0===e._reactInternals)throw Error(y(38));return pc(e,t,n,!1,r)},m="18.2.0-next-9e3b772b8-20220608"})),i.register("6qr1r",(function(e,t){e.exports=i("7vgeW")})),i.register("7vgeW",(function(t,n){
/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var r,o,i,a,l,s,u,c,f,d,p,h,m,g,v,y,b,x,w;function S(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function k(e){return 0===e.length?null:e[0]}function E(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var a=2*(r+1)-1,l=e[a],s=a+1,u=e[s];if(0>_(l,n))s<o&&0>_(u,l)?(e[r]=u,e[s]=n,r=s):(e[r]=l,e[a]=n,r=a);else{if(!(s<o&&0>_(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e(t.exports,"unstable_now",(()=>r),(e=>r=e)),e(t.exports,"unstable_IdlePriority",(()=>o),(e=>o=e)),e(t.exports,"unstable_ImmediatePriority",(()=>i),(e=>i=e)),e(t.exports,"unstable_LowPriority",(()=>a),(e=>a=e)),e(t.exports,"unstable_NormalPriority",(()=>l),(e=>l=e)),e(t.exports,"unstable_Profiling",(()=>s),(e=>s=e)),e(t.exports,"unstable_UserBlockingPriority",(()=>u),(e=>u=e)),e(t.exports,"unstable_cancelCallback",(()=>c),(e=>c=e)),e(t.exports,"unstable_continueExecution",(()=>f),(e=>f=e)),e(t.exports,"unstable_forceFrameRate",(()=>d),(e=>d=e)),e(t.exports,"unstable_getCurrentPriorityLevel",(()=>p),(e=>p=e)),e(t.exports,"unstable_getFirstCallbackNode",(()=>h),(e=>h=e)),e(t.exports,"unstable_next",(()=>m),(e=>m=e)),e(t.exports,"unstable_pauseExecution",(()=>g),(e=>g=e)),e(t.exports,"unstable_requestPaint",(()=>v),(e=>v=e)),e(t.exports,"unstable_runWithPriority",(()=>y),(e=>y=e)),e(t.exports,"unstable_scheduleCallback",(()=>b),(e=>b=e)),e(t.exports,"unstable_shouldYield",(()=>x),(e=>x=e)),e(t.exports,"unstable_wrapCallback",(()=>w),(e=>w=e)),"object"==typeof performance&&"function"==typeof performance.now){var C=performance;r=function(){return C.now()}}else{var O=Date,P=O.now();r=function(){return O.now()-P}}var j=[],T=[],M=1,D=null,R=3,A=!1,N=!1,I=!1,L="function"==typeof setTimeout?setTimeout:null,F="function"==typeof clearTimeout?clearTimeout:null,z="undefined"!=typeof setImmediate?setImmediate:null;function B(e){for(var t=k(T);null!==t;){if(null===t.callback)E(T);else{if(!(t.startTime<=e))break;E(T),t.sortIndex=t.expirationTime,S(j,t)}t=k(T)}}function K(e){if(I=!1,B(e),!N)if(null!==k(j))N=!0,Z(U);else{var t=k(T);null!==t&&ee(K,t.startTime-e)}}function U(e,t){N=!1,I&&(I=!1,F(W),W=-1),A=!0;var n=R;try{for(B(t),D=k(j);null!==D&&(!(D.expirationTime>t)||e&&!G());){var o=D.callback;if("function"==typeof o){D.callback=null,R=D.priorityLevel;var i=o(D.expirationTime<=t);t=r(),"function"==typeof i?D.callback=i:D===k(j)&&E(j),B(t)}else E(j);D=k(j)}if(null!==D)var a=!0;else{var l=k(T);null!==l&&ee(K,l.startTime-t),a=!1}return a}finally{D=null,R=n,A=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var V,H=!1,$=null,W=-1,q=5,Y=-1;function G(){return!(r()-Y<q)}function J(){if(null!==$){var e=r();Y=e;var t=!0;try{t=$(!0,e)}finally{t?V():(H=!1,$=null)}}else H=!1}if("function"==typeof z)V=function(){z(J)};else if("undefined"!=typeof MessageChannel){var X=new MessageChannel,Q=X.port2;X.port1.onmessage=J,V=function(){Q.postMessage(null)}}else V=function(){L(J,0)};function Z(e){$=e,H||(H=!0,V())}function ee(e,t){W=L((function(){e(r())}),t)}o=5,i=1,a=4,l=3,s=null,u=2,c=function(e){e.callback=null},f=function(){N||A||(N=!0,Z(U))},d=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<e?Math.floor(1e3/e):5},p=function(){return R},h=function(){return k(j)},m=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},g=function(){},v=function(){},y=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},b=function(e,t,n){var o=r();switch("object"==typeof n&&null!==n?n="number"==typeof(n=n.delay)&&0<n?o+n:o:n=o,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:M++,callback:t,priorityLevel:e,startTime:n,expirationTime:i=n+i,sortIndex:-1},n>o?(e.sortIndex=n,S(T,e),null===k(j)&&e===k(T)&&(I?(F(W),W=-1):I=!0,ee(K,n-o))):(e.sortIndex=i,S(j,e),N||A||(N=!0,Z(U))),e},x=G,w=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}})),i.register("1QxLU",(function(e,t){!function(n,r){var o="function",i="undefined",a="object",l="string",s="major",u="model",c="name",f="type",d="vendor",p="version",h="architecture",m="console",g="mobile",v="tablet",y="smarttv",b="wearable",x="embedded",w="Amazon",S="Apple",k="ASUS",E="BlackBerry",_="Browser",C="Chrome",O="Firefox",P="Google",j="Huawei",T="LG",M="Microsoft",D="Motorola",R="Opera",A="Samsung",N="Sharp",I="Sony",L="Xiaomi",F="Zebra",z="Facebook",B="Chromium OS",K="Mac OS",U=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===l&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},$=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},W=function(e,t){for(var n,i,l,s,u,c,f=0;f<t.length&&!u;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!u&&d[n];)if(u=d[n++].exec(e))for(l=0;l<p.length;l++)c=u[++i],typeof(s=p[l])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):r:this[s[0]]=c?s[1].call(this,c,s[2]):r:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):r):this[s]=c||r;f+=2}},q=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(V(t[n][o],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r:n;return e},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[c,R]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+_]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+_],p],[/\bfocus\/([\w\.]+)/i],[p,[c,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+_]],[/fxios\/([-\w\.]+)/i],[p,[c,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+_]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+_],p],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,z],p],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,C+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+_]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,O+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,H]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[d,A],[f,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,A],[f,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[d,S],[f,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,S],[f,v]],[/(macintosh);/i],[u,[d,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,N],[f,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[d,j],[f,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,j],[f,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[d,L],[f,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[d,L],[f,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,"OPPO"],[f,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[f,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[f,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,D],[f,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,D],[f,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,T],[f,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,T],[f,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[d,"Lenovo"],[f,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[d,"Nokia"],[f,g]],[/(pixel c)\b/i],[u,[d,P],[f,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,P],[f,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[d,I],[f,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,I],[f,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,"OnePlus"],[f,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,w],[f,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,w],[f,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[f,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,E],[f,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,k],[f,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,k],[f,g]],[/(nexus 9)/i],[u,[d,"HTC"],[f,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[f,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[f,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[f,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[f,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,u,[f,v]],[/(surface duo)/i],[u,[d,M],[f,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[f,g]],[/(u304aa)/i],[u,[d,"AT&T"],[f,g]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[f,g]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[f,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[f,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[f,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[f,v]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[f,v]],[/\b(k88) b/i],[u,[d,"ZTE"],[f,v]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[f,g]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[f,g]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[f,v]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[f,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[f,v]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[f,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[f,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[f,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[f,g]],[/\b(ph-1) /i],[u,[d,"Essential"],[f,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[f,v]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[f,v]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[f,v]],[/(shield[\w ]+) b/i],[u,[d,"Nvidia"],[f,v]],[/(sprint) (\w+)/i],[d,u,[f,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,M],[f,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,F],[f,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,F],[f,g]],[/smart-tv.+(samsung)/i],[d,[f,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,A],[f,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,T],[f,y]],[/(apple) ?tv/i],[d,[u,S+" TV"],[f,y]],[/crkey/i],[[u,C+"cast"],[d,P],[f,y]],[/droid.+aft(\w)( bui|\))/i],[u,[d,w],[f,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,N],[f,y]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,I],[f,y]],[/(mitv-\w{5}) bui/i],[u,[d,L],[f,y]],[/Hbbtv.*(technisat) (.*);/i],[d,u,[f,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,$],[u,$],[f,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[f,m]],[/droid.+; (shield) bui/i],[u,[d,"Nvidia"],[f,m]],[/(playstation [345portablevi]+)/i],[u,[d,I],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,M],[f,m]],[/((pebble))app/i],[d,u,[f,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[d,S],[f,b]],[/droid.+; (glass) \d/i],[u,[d,P],[f,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,F],[f,b]],[/(quest( 2| pro)?)/i],[u,[d,z],[f,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,x]],[/(aeobc)\b/i],[u,[d,w],[f,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[f,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[f,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[p,q,Y]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[p,q,Y]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,K],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,E]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,C+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,B],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},J=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof J))return new J(e,t).getResult();var m=typeof n!==i&&n.navigator?n.navigator:r,y=e||(m&&m.userAgent?m.userAgent:""),b=m&&m.userAgentData?m.userAgentData:r,x=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,w=m&&m.userAgent==y;return this.getBrowser=function(){var e,t={};return t[c]=r,t[p]=r,W.call(t,y,x.browser),t[s]=typeof(e=t[p])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r,w&&m&&m.brave&&typeof m.brave.isBrave==o&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,W.call(e,y,x.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[u]=r,e[f]=r,W.call(e,y,x.device),w&&!e[f]&&b&&b.mobile&&(e[f]=g),w&&"Macintosh"==e[u]&&m&&typeof m.standalone!==i&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[f]=v),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,W.call(e,y,x.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,W.call(e,y,x.os),w&&!e[c]&&b&&"Unknown"!=b.platform&&(e[c]=b.platform.replace(/chrome os/i,B).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return y},this.setUA=function(e){return y=typeof e===l&&e.length>350?$(e,350):e,this},this.setUA(y),this};J.VERSION="0.7.35",J.BROWSER=U([c,p,s]),J.CPU=U([h]),J.DEVICE=U([u,d,f,m,g,y,v,b,x]),J.ENGINE=J.OS=U([c,p]),typeof t!==i?(e.exports&&(t=e.exports=J),t.UAParser=J):typeof define===o&&define.amd?define((function(){return J})):typeof n!==i&&(n.UAParser=J);var X=typeof n!==i&&(n.jQuery||n.Zepto);if(X&&!X.ua){var Q=new J;X.ua=Q.getResult(),X.ua.get=function(){return Q.getUA()},X.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:this)})),i.register("jaDLD",(function(e,t){var n=i("5J2NM");function r(){return r=n||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=i("jLoU3"),a=i("56j1y"),l=i("fYo6y"),s=i("fP8fs"),u=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=i.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),u=n.getDecorator();return o!==i||a!==l||s!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,i=e.blockStyleFn,u=e.customStyleMap,c=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),m=f.getSelection(),g=f.mustForceSelection(),v=f.getDecorator(),y=s(f.getDirectionMap()),b=[],x=h.getBlocksAsArray()[0];x;){var w=x.getKey(),S={blockRenderMap:t,blockRendererFn:n,blockStyleFn:i,contentState:h,customStyleFn:c,customStyleMap:u,decorator:v,editorKey:d,editorState:f,forceSelection:g,selection:m,block:x,direction:p||y.get(w),tree:f.getBlockTree(w)},k=(t.get(x.getType())||t.get("unstyled")).wrapper;b.push({block:l.createElement(o,r({key:w},S)),wrapperTemplate:k,key:w,offsetKey:a.encode(w,0,0)});var E=x.getNextSiblingKey();x=E?h.getBlockForKey(E):null}for(var _=[],C=0;C<b.length;){var O=b[C];if(O.wrapperTemplate){var P=[];do{P.push(b[C].block),C++}while(C<b.length&&b[C].wrapperTemplate===O.wrapperTemplate);var j=l.cloneElement(O.wrapperTemplate,{key:O.key+"-wrap","data-offset-key":O.offsetKey},P);_.push(j)}else _.push(O.block),C++}return l.createElement("div",{"data-contents":"true"},_)},i}(l.Component);e.exports=u})),i.register("5J2NM",(function(e,t){var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in i=Object(arguments[s]))r.call(i,u)&&(l[u]=i[u]);if(n){a=n(i);for(var c=0;c<a.length;c++)o.call(i,a[c])&&(l[a[c]]=i[a[c]])}}return l}})),i.register("jLoU3",(function(e,t){var n=i("5J2NM");function r(){return r=n||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=i("ga8ZK"),s=i("56j1y"),u=i("fYo6y"),c=i("34wTR"),f=i("f6H7i"),d=i("6uNco"),p=i("3LqfB"),h=i("fkRy5"),m=i("7A3vo"),g=i("i5xG3"),v=i("hv7Tb"),y=(m.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),b=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},x=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},w=function(e,t,n,r,i,a){var l={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},s=r(e);return s&&(l.className=s),void 0!==i.customEditable&&(l=o({},l,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),l},S=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",u.createRef()),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var m=i.prototype;return m.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||y(e.selection,e.block.getKey())&&e.forceSelection;return i||a},m.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=f.getScrollParent(n),i=p(o);if(o===window){var a=d(n);(r=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{!v(n)&&g(!1);var l=n;(r=l.offsetHeight+l.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},m.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,c=t.blockRendererFn,f=t.blockStyleFn,d=t.contentState,p=t.decorator,h=t.editorKey,m=t.editorState,g=t.customStyleFn,v=t.customStyleMap,S=t.direction,k=t.forceSelection,E=t.selection,_=t.tree,C=null;n.children.size&&(C=n.children.reduce((function(t,n){var r=s.encode(n,0,0),l=d.getBlockForKey(n),p=x(l,c),g=p.CustomComponent||i,v=b(l,a),y=v.Element,S=v.wrapperTemplate,k=w(l,h,r,f,p,null),E=o({},e.props,{tree:m.getBlockTree(n),blockProps:p.customProps,offsetKey:r,block:l});return t.push(u.createElement(y,k,u.createElement(g,E))),!S||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(l,d)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var l,c=n.reverse()[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(u.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":s.encode(p,0,0)},d))}(S,y,t),t}),[]));var O=n.getKey(),P=s.encode(O,0,0),j=x(n,c),T=j.CustomComponent,M=null!=T?u.createElement(T,r({},this.props,{tree:m.getBlockTree(O),blockProps:j.customProps,offsetKey:P,block:n})):u.createElement(l,{block:n,children:C,contentState:d,customStyleFn:g,customStyleMap:v,decorator:p,direction:S,forceSelection:k,hasSelection:y(E,O),selection:E,tree:_});if(n.getParentKey())return M;var D=b(n,a).Element,R=w(n,h,P,f,j,this.wrapperRef);return u.createElement(D,R,M)},i}(u.Component);e.exports=S})),i.register("ga8ZK",(function(e,t){var n=i("gQQJp"),r=i("7wz44"),o=i("56j1y"),a=i("7A3vo"),l=i("fYo6y"),s=i("hk8oT"),u=(a.List,function(e){var t,i;function a(){return e.apply(this,arguments)||this}return i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,a.prototype.render=function(){var e=this.props,t=e.block,i=e.contentState,a=e.customStyleFn,u=e.customStyleMap,c=e.decorator,f=e.direction,d=e.forceSelection,p=e.hasSelection,h=e.selection,m=e.tree,g=t.getKey(),v=t.getText(),y=m.size-1,b=this.props.children||m.map((function(e,s){var m=e.get("decoratorKey"),b=e.get("leaves"),x=b.size-1,w=b.map((function(e,n){var i=o.encode(g,s,n),c=e.get("start"),f=e.get("end");return l.createElement(r,{key:i,offsetKey:i,block:t,start:c,selection:p?h:null,forceSelection:d,text:v.slice(c,f),styleSet:t.getInlineStyleAt(c),customStyleMap:u,customStyleFn:a,isLast:m===y&&n===x})})).toArray();return m&&c?l.createElement(n,{block:t,children:w,contentState:i,decorator:c,decoratorKey:m,direction:f,leafSet:e,text:v,key:s}):w})).toArray();return l.createElement("div",{"data-offset-key":o.encode(g,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},a}(l.Component));e.exports=u})),i.register("gQQJp",(function(e,t){var n=i("5J2NM");function r(){return r=n||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=i("56j1y"),a=i("fYo6y"),l=i("gnxI6"),s=i("1hPeP"),u=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this.props,t=e.block,n=e.children,i=e.contentState,u=e.decorator,c=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=t.getKey(),m=d.get("leaves"),g=u.getComponentForKey(c),v=u.getPropsForKey(c),y=o.encode(h,parseInt(c,10),0),b=p.slice(m.first().get("start"),m.last().get("end")),x=s.getHTMLDirIfDifferent(l.getDirection(b),f);return a.createElement(g,r({},v,{contentState:i,decoratedText:b,dir:x,key:y,entityKey:t.getEntityAt(d.get("start")),offsetKey:y}),n)},i}(a.Component);e.exports=u})),i.register("56j1y",(function(e,t){var n="-",r={encode:function(e,t,r){return e+n+t+n+r},decode:function(e){var t=e.split(n).reverse(),r=t[0],o=t[1];return{blockKey:t.slice(2).reverse().join(n),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=r})),i.register("gnxI6",(function(e,t){var n=i("1hPeP"),r=i("i5xG3"),o="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",l=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃǄ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ﬀ-ﬆﬓ-ﬗＡ-Ｚａ-ｚｦ-ｯｰｱ-ﾝﾞ-ﾟﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ"+o+a+"]"),s=new RegExp("["+o+a+"]");function u(e){var t=l.exec(e);return null==t?null:t[0]}function c(e){var t=u(e);return null==t?n.NEUTRAL:s.exec(t)?n.RTL:n.LTR}function f(e,t){if(t=t||n.NEUTRAL,!e.length)return t;var r=c(e);return r===n.NEUTRAL?t:r}function d(e,t){return t||(t=n.getGlobalDir()),!n.isStrong(t)&&r(!1),f(e,t)}var p={firstStrongChar:u,firstStrongCharDir:c,resolveBlockDir:f,getDirection:d,isDirectionLTR:function(e,t){return d(e,t)===n.LTR},isDirectionRTL:function(e,t){return d(e,t)===n.RTL}};e.exports=p})),i.register("1hPeP",(function(e,t){var n=i("i5xG3"),r="LTR",o="RTL",a=null;function l(e){return e===r||e===o}function s(e){return!l(e)&&n(!1),e===r?"ltr":"rtl"}function u(e){a=e}var c={NEUTRAL:"NEUTRAL",LTR:r,RTL:o,isStrong:l,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return!l(e)&&n(!1),!l(t)&&n(!1),e===t?null:s(e)},setGlobalDir:u,initGlobalDir:function(){u(r)},getGlobalDir:function(){return a||this.initGlobalDir(),!a&&n(!1),a}};e.exports=c})),i.register("i5xG3",(function(e,t){e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}}})),i.register("7wz44",(function(e,t){var n=i("5J2NM");var r=i("lXYBo"),o=i("fYo6y"),a=i("i5xG3"),l=i("5rbO4"),s=i("2BT3Y").setDraftEditorSelection,u=function(e){var t,i;function u(){for(var t,n,r,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}i=e,(t=u).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var c=u.prototype;return c._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),u=r+o.length;if(e.hasEdgeWithin(i,r,u)){var c=this.leaf;!c&&a(!1);var f,d=c.firstChild;!d&&a(!1),d.nodeType===Node.TEXT_NODE?f=d:l(d)?f=c:!(f=d.firstChild)&&a(!1),s(e,f,i,r,u)}}},c.shouldComponentUpdate=function(e){var t=this.leaf;return!t&&a(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},c.componentDidUpdate=function(){this._setSelection()},c.componentDidMount=function(){this._setSelection()},c.render=function(){var e=this,t=this.props.block,i=this.props.text;i.endsWith("\n")&&this.props.isLast&&(i+="\n");var a=this.props,l=a.customStyleMap,s=a.customStyleFn,u=a.offsetKey,c=a.styleSet,f=c.reduce((function(e,t){var r={},o=l[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(r.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),n(e,o,r)}),{});if(s){var d=s(c,t);f=n(f,d)}return o.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:f},o.createElement(r,null,i))},u}(o.Component);e.exports=u})),i.register("lXYBo",(function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=i("fYo6y"),a=i("2BAv2"),l=i("i5xG3"),s=i("fOE7D"),u=a.isBrowser("IE <= 11");var c=function(e){var t,i;function a(t){var o;return r(n(o=e.call(this,t)||this),"_forceFlag",void 0),r(n(o),"_node",void 0),o._forceFlag=!1,o}i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var c=a.prototype;return c.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;!s(t)&&l(!1);var r=t;return n?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},c.componentDidMount=function(){this._forceFlag=!this._forceFlag},c.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},c.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?o.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return u?o.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(o.Component);e.exports=c})),i.register("2BAv2",(function(e,t){var n=i("0CpG8"),r=i("i4DGx"),o=i("4AU0l"),a=i("imW4A");function l(e,t,n,o){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=o?o(i):i,r.contains(i,t))}function s(e){return"Windows"===n.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return l(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return l(n.browserArchitecture,null,e)},isDevice:function(e){return l(n.deviceName,null,e)},isEngine:function(e){return l(n.engineName,n.engineVersion,e)},isPlatform:function(e){return l(n.platformName,n.platformFullVersion,e,s)},isPlatformArchitecture:function(e){return l(n.platformArchitecture,null,e)}};e.exports=o(u,a)})),i.register("0CpG8",(function(e,t){var n=i("1QxLU"),r="Unknown",o={"Mac OS":"Mac OS X"};var a,l=(new n).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(l.browser.version),u={browserArchitecture:l.cpu.architecture||r,browserFullVersion:l.browser.version||r,browserMinorVersion:s.minor||r,browserName:l.browser.name||r,browserVersion:l.browser.major||r,deviceName:l.device.model||r,engineName:l.engine.name||r,engineVersion:l.engine.version||r,platformArchitecture:l.cpu.architecture||r,platformName:(a=l.os.name,o[a]||a||r),platformVersion:l.os.version||r,platformFullVersion:l.os.version||r};e.exports=u})),i.register("i4DGx",(function(e,t){var n=i("i5xG3"),r=/\./,o=/\|\|/,a=/\s+\-\s+/,l=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function u(e,t){var r=e.split(o);return r.length>1?r.some((function(e){return x.contains(e,t)})):function(e,t){var r=e.split(a);if(!(r.length>0&&r.length<=2)&&n(!1),1===r.length)return c(r[0],t);var o=r[0],i=r[1];return(!m(o)||!m(i))&&n(!1),c(">="+o,t)&&c("<="+i,t)}(e=r[0].trim(),t)}function c(e,t){if(""===(e=e.trim()))return!0;var n,o=t.split(r),i=p(e),a=i.modifier,l=i.rangeComponents;switch(a){case"<":return f(o,l);case"<=":return-1===(n=b(o,l))||0===n;case">=":return d(o,l);case">":return function(e,t){return 1===b(e,t)}(o,l);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return d(e,n)&&f(e,r)}(o,l);default:return function(e,t){return 0===b(e,t)}(o,l)}}function f(e,t){return-1===b(e,t)}function d(e,t){var n=b(e,t);return 1===n||0===n}function p(e){var t=e.split(r),o=t[0].match(l);return!o&&n(!1),{modifier:o[1],rangeComponents:[o[2]].concat(t.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function m(e){return!p(e).modifier}function g(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function v(e,t){var n=e.match(s)[1],r=t.match(s)[1],o=parseInt(n,10),i=parseInt(r,10);return h(o)&&h(i)&&o!==i?y(o,i):y(e,t)}function y(e,t){return typeof e!=typeof t&&n(!1),e>t?1:e<t?-1:0}function b(e,t){for(var n=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=v(r[i],o[i]);if(a)return a}return 0}var x={contains:function(e,t){return u(e.trim(),t.trim())}};e.exports=x})),i.register("4AU0l",(function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var o={};for(var i in e)n.call(e,i)&&(o[i]=t.call(r,e[i],i,e));return o}})),i.register("imW4A",(function(e,t){e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}})),i.register("fOE7D",(function(e,t){e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}})),i.register("5rbO4",(function(e,t){var n=i("fOE7D");e.exports=function(e){return!(!e||!e.ownerDocument)&&(n(e)&&"BR"===e.nodeName)}})),i.register("2BT3Y",(function(e,t){var n=i("95AQu"),r=i("lCBmk"),o=i("2BAv2"),a=i("fXTIM"),l=i("fu9ek"),s=i("9HZzX"),u=i("i5xG3"),c=i("fOE7D"),f=o.isBrowser("IE");function d(e,t){if(!e)return"[empty]";var n=p(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(!c(n)&&u(!1),n.outerHTML)}function p(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return s(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(p(i[a],t));return o}function h(e,t){for(var n=e,r=n;n;){if(c(n)&&r.hasAttribute("contenteditable"))return d(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function m(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function g(e,t,n,o){var i=l();if(e.extend&&null!=t&&a(i,t)){n>m(t)&&r.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())});var s=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw r.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===i&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:s,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(o.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var u=e.getRangeAt(0);u.setEnd(t,n),e.addRange(u.cloneRange())}}function v(e,t,o,i){var a=s(t).createRange();if(o>m(t)&&(r.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:o}),selectionState:JSON.stringify(i.toJS())}),n.handleExtensionCausedError()),a.setStart(t,o),f)try{e.addRange(a)}catch(e){}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i=s(t);if(a(i.documentElement,t)){var l=i.defaultView.getSelection(),u=e.getAnchorKey(),c=e.getAnchorOffset(),f=e.getFocusKey(),d=e.getFocusOffset(),p=e.getIsBackward();if(!l.extend&&p){var h=u,m=c;u=f,c=d,f=h,d=m,p=!1}var y=u===n&&r<=c&&o>=c,b=f===n&&r<=d&&o>=d;if(y&&b)return l.removeAllRanges(),v(l,t,c-r,e),void g(l,t,d-r,e);if(p){if(b&&(l.removeAllRanges(),v(l,t,d-r,e)),y){var x=l.focusNode,w=l.focusOffset;l.removeAllRanges(),v(l,t,c-r,e),g(l,x,w,e)}}else y&&(l.removeAllRanges(),v(l,t,c-r,e)),b&&g(l,t,d-r,e)}},addFocusToSelection:g}})),i.register("95AQu",(function(e,t){e.exports={initODS:function(){},handleExtensionCausedError:function(){}}})),i.register("lCBmk",(function(e,t){e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}})),i.register("fXTIM",(function(e,t){var n=i("jQTpU");e.exports=function e(t,r){return!(!t||!r)&&(t===r||!n(t)&&(n(r)?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}})),i.register("jQTpU",(function(e,t){var n=i("ek382");e.exports=function(e){return n(e)&&3==e.nodeType}})),i.register("ek382",(function(e,t){e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}})),i.register("fu9ek",(function(e,t){e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}})),i.register("9HZzX",(function(e,t){e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}})),i.register("7A3vo",(function(e,t){e.exports,e.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return l(e)?e:Y(e)}function o(e){return s(e)?e:G(e)}function i(e){return a(e)&&!u(e)?e:J(e)}function a(e){return!(!e||!e[f])}function l(e){return!(!e||!e[d])}function s(e){return!(!e||!e[p])}function u(e){return l(e)||s(e)}function c(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=l,n.isIndexed=s,n.isAssociative=u,n.isOrdered=c,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",m="delete",g=5,v=1<<g,y=v-1,b={},x={value:!1},w={value:!1};function S(e){return e.value=!1,e}function k(e){e&&(e.value=!0)}function E(){}function _(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function C(e){return void 0===e.size&&(e.size=e.__iterate(P)),e.size}function O(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function P(){return!0}function j(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return D(e,t,0)}function M(e,t){return D(e,t,t)}function D(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var R=0,A=1,N=2,I="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",F=I||L;function z(e){this.next=e}function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function K(){return{value:void 0,done:!0}}function U(e){return!!$(e)}function V(e){return e&&"function"==typeof e.next}function H(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(I&&e[I]||e[L]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ue(e)}function Y(e){return null==e?ae().toKeyedSeq():a(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function G(e){return null==e?ae():a(e)?l(e)?e.entrySeq():e.toIndexedSeq():se(e)}function J(e){return(null==e?ae():a(e)?l(e)?e.entrySeq():e:se(e)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=R,z.VALUES=A,z.ENTRIES=N,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[F]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},q.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(Y,q),Y.prototype.toKeyedSeq=function(){return this},t(G,q),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(J,q),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=Y,q.Set=J,q.Indexed=G;var X,Q,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new oe(e).fromEntrySeq():U(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return W(e)?new te(e):V(e)?new oe(e):U(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var l=o[n?i-a:a];if(!1===t(l[1],r?l[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new z((function(){var e=o[n?i-a:a];return a++>i?K():B(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):me(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):ge(t)?e.call(r,n,Y(t).map((function(n,r){return he(e,n,r,t)}))):t}function me(e){return Array.isArray(e)?G(e).map(me).toList():ge(e)?Y(e).map(me).toMap():e}function ge(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ye(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function xe(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we))return new we(e,t,n);if(xe(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Z)return Z;Z=this}}function Se(){throw TypeError("Abstract")}function ke(){}function Ee(){}function _e(){}q.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[O(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new z((function(){return o>r?K():B(e,o,n[t?r-o++:o++])}))},t(ne,Y),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new z((function(){var a=r[t?o-i:i];return i++>o?K():B(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._iterable),r=0;if(V(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._iterable);if(!V(n))return new z(K);var r=0;return new z((function(){var t=n.next();return t.done?t:B(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new z((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return B(e,o,r[o++])}))},t(be,G),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new z((function(){return r<n.size?B(e,r++,n._value):K()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):ye(e)},t(we,G),we.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){return j(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new we(0,0):new we(this.get(e,this._end),this.get(t,this._end),this._step))},we.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},we.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new z((function(){var a=o;return o+=t?-r:r,i>n?K():B(e,i++,a)}))},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:ye(this,e)},t(Se,n),t(ke,Se),t(Ee,Se),t(_e,Se),Se.Keyed=ke,Se.Indexed=Ee,Se.Set=_e;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Oe(e){return e>>>1&1073741824|3221225471&e}function Pe(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Oe(n)}if("string"===t)return e.length>ze?je(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function je(e){var t=Ue[e];return void 0===t&&(t=Te(e),Ke===Be&&(Ke=0,Ue={}),Ke++,Ue[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Oe(t)}function Me(e){var t;if(Ie&&void 0!==(t=Ne.get(e)))return t;if(void 0!==(t=e[Fe]))return t;if(!Re){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Fe]))return t;if(void 0!==(t=Ae(e)))return t}if(t=++Le,1073741824&Le&&(Le=0),Ie)Ne.set(e,t);else{if(void 0!==De&&!1===De(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Re)Object.defineProperty(e,Fe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Fe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Fe]=t}}return t}var De=Object.isExtensible,Re=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Ae(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ne,Ie="function"==typeof WeakMap;Ie&&(Ne=new WeakMap);var Le=0,Fe="__immutablehash__";"function"==typeof Symbol&&(Fe=Symbol(Fe));var ze=16,Be=255,Ke=0,Ue={};function Ve(e){xe(e!==1/0,"Cannot perform this action with an infinite size.")}function He(e){return null==e?ot():$e(e)&&!c(e)?e:ot().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[qe])}t(He,ke),He.prototype.toString=function(){return this.__toString("Map {","}")},He.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},He.prototype.set=function(e,t){return it(this,e,t)},He.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},He.prototype.remove=function(e){return it(this,e,b)},He.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},He.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},He.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=gt(this,Sn(e),t,n);return r===b?void 0:r},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},He.prototype.merge=function(){return dt(this,void 0,arguments)},He.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},He.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},He.prototype.mergeDeep=function(){return dt(this,pt,arguments)},He.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},He.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},He.prototype.sort=function(e){return Ut(fn(this,e))},He.prototype.sortBy=function(e,t){return Ut(fn(this,t,e))},He.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},He.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},He.prototype.asImmutable=function(){return this.__ensureOwner()},He.prototype.wasAltered=function(){return this.__altered},He.prototype.__iterator=function(e,t){return new et(this,e,t)},He.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},He.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},He.isMap=$e;var We,qe="@@__IMMUTABLE_MAP__@@",Ye=He.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Je(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ze(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return B(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ye);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=S(x),a=S(w);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,l){return e?e.update(t,n,r,o,i,a,l):i===b?e:(k(l),k(a),new Ze(t,r,[o,i]))}function lt(e){return e.constructor===Ze||e.constructor===Qe}function st(e,t,n,r,o){if(e.keyHash===r)return new Qe(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&y,l=(0===n?r:r>>>n)&y;return new Je(t,1<<a|1<<l,a===l?[st(e,t,n+g,r,o)]:(i=new Ze(t,r,o),a<l?[e,i]:[i,e]))}function ut(e,t,n,r){e||(e=new E);for(var o=new Ze(e,Pe(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ct(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,u=t.length;l<u;l++,s<<=1){var c=t[l];void 0!==c&&l!==r&&(o|=s,a[i++]=c)}return new Je(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(v),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var l=n[i],s=r(l);a(l)||(s=s.map((function(e){return pe(e)}))),o.push(s)}return mt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function mt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function gt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,l=r(a);return l===a?e:l}xe(o||e&&e.set,"invalid keyPath");var s=i.value,u=o?b:e.get(s,b),c=gt(u,t,n,r);return c===u?e:c===b?e.remove(s):(o?ot():e).set(s,c)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function yt(e,t,n,r){var o=r?e:_(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,l=0;l<o;l++)l===t?(i[l]=n,a=-1):i[l]=e[l+a];return i}function xt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ye[qe]=!0,Ye[m]=Ye.remove,Ye.removeIn=Ye.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var l=o===b,s=this.entries,u=0,c=s.length;u<c&&!ve(r,s[u][0]);u++);var f=u<c;if(f?s[u][1]===o:l)return this;if(k(a),(l||!f)&&k(i),!l||1!==s.length){if(!f&&!l&&s.length>=wt)return ut(e,s,r,o);var d=e&&e===this.ownerID,p=d?s:_(s);return f?l?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ge(e,p)}},Je.prototype.get=function(e,t,n,r){void 0===t&&(t=Pe(n));var o=1<<((0===e?t:t>>>e)&y),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+g,t,n,r)},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Pe(r));var l=(0===t?n:n>>>t)&y,s=1<<l,u=this.bitmap,c=0!=(u&s);if(!c&&o===b)return this;var f=vt(u&s-1),d=this.nodes,p=c?d[f]:void 0,h=at(p,e,t+g,n,r,o,i,a);if(h===p)return this;if(!c&&h&&d.length>=St)return ft(e,d,u,l,h);if(c&&!h&&2===d.length&&lt(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&lt(h))return h;var m=e&&e===this.ownerID,v=c?h?u:u^s:u|s,x=c?h?yt(d,f,h,m):xt(d,f,m):bt(d,f,h,m);return m?(this.bitmap=v,this.nodes=x,this):new Je(e,v,x)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=Pe(n));var o=(0===e?t:t>>>e)&y,i=this.nodes[o];return i?i.get(e+g,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Pe(r));var l=(0===t?n:n>>>t)&y,s=o===b,u=this.nodes,c=u[l];if(s&&!c)return this;var f=at(c,e,t+g,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d<kt)return ct(e,u,d,l)}else d++;var p=e&&e===this.ownerID,h=yt(u,l,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Qe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Qe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Pe(r));var l=o===b;if(n!==this.keyHash)return l?this:(k(a),k(i),st(this,e,t,n,[r,o]));for(var s=this.entries,u=0,c=s.length;u<c&&!ve(r,s[u][0]);u++);var f=u<c;if(f?s[u][1]===o:l)return this;if(k(a),(l||!f)&&k(i),l&&2===c)return new Ze(e,this.keyHash,s[1^u]);var d=e&&e===this.ownerID,p=d?s:_(s);return f?l?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Qe(e,this.keyHash,p)},Ze.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Ze.prototype.update=function(e,t,n,r,o,i,a){var l=o===b,s=ve(r,this.entry[0]);return(s?o===this.entry[1]:l)?this:(k(a),l?void k(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new Ze(e,this.keyHash,[r,o]):(k(i),st(this,e,t,Pe(r),[r,o])))},Ge.prototype.iterate=Qe.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Je.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Ze.prototype.iterate=function(e,t){return e(this.entry)},t(et,z),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return K()};var wt=v/4,St=v/2,kt=v/4;function Et(e){var t=At();if(null==e)return t;if(_t(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ve(r),r>0&&r<v?Rt(0,r,g,null,new Pt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function _t(e){return!(!e||!e[Ct])}t(Et,Ee),Et.of=function(){return this(arguments)},Et.prototype.toString=function(){return this.__toString("List [","]")},Et.prototype.get=function(e,t){if((e=O(this,e))>=0&&e<this.size){var n=Ft(this,e+=this._origin);return n&&n.array[e&y]}return t},Et.prototype.set=function(e,t){return Nt(this,e,t)},Et.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Et.prototype.insert=function(e,t){return this.splice(e,0,t)},Et.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):At()},Et.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){zt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},Et.prototype.pop=function(){return zt(this,0,-1)},Et.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){zt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},Et.prototype.shift=function(){return zt(this,1)},Et.prototype.merge=function(){return Bt(this,void 0,arguments)},Et.prototype.mergeWith=function(t){return Bt(this,t,e.call(arguments,1))},Et.prototype.mergeDeep=function(){return Bt(this,pt,arguments)},Et.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Bt(this,ht(t),n)},Et.prototype.setSize=function(e){return zt(this,0,e)},Et.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:zt(this,T(e,n),M(t,n))},Et.prototype.__iterator=function(e,t){var n=0,r=Dt(this,t);return new z((function(){var t=r();return t===Mt?K():B(e,n++,t)}))},Et.prototype.__iterate=function(e,t){for(var n,r=0,o=Dt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},Et.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Rt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Et.isList=_t;var Ct="@@__IMMUTABLE_LIST__@@",Ot=Et.prototype;function Pt(e,t){this.array=e,this.ownerID=t}Ot[Ct]=!0,Ot[m]=Ot.remove,Ot.setIn=Ye.setIn,Ot.deleteIn=Ot.removeIn=Ye.removeIn,Ot.update=Ye.update,Ot.updateIn=Ye.updateIn,Ot.mergeIn=Ye.mergeIn,Ot.mergeDeepIn=Ye.mergeDeepIn,Ot.withMutations=Ye.withMutations,Ot.asMutable=Ye.asMutable,Ot.asImmutable=Ye.asImmutable,Ot.wasAltered=Ye.wasAltered,Pt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&y;if(r>=this.array.length)return new Pt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-g,n))===a&&i)return this}if(i&&!o)return this;var l=Lt(this,e);if(!i)for(var s=0;s<r;s++)l.array[s]=void 0;return o&&(l.array[r]=o),l},Pt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&y;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-g,n))===i&&o===this.array.length-1)return this}var a=Lt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var jt,Tt,Mt={};function Dt(e,t){var n=e._origin,r=e._capacity,o=Kt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?l(e,n):s(e,t,n)}function l(e,a){var l=a===o?i&&i.array:e&&e.array,s=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(s===u)return Mt;var e=t?--u:s++;return l&&l[e]}}function s(e,o,i){var l,s=e&&e.array,u=i>n?0:n-i>>o,c=1+(r-i>>o);return c>v&&(c=v),function(){for(;;){if(l){var e=l();if(e!==Mt)return e;l=null}if(u===c)return Mt;var n=t?--c:u++;l=a(s&&s[n],o-g,i+(n<<o))}}}}function Rt(e,t,n,r,o,i,a){var l=Object.create(Ot);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=o,l.__ownerID=i,l.__hash=a,l.__altered=!1,l}function At(){return jt||(jt=Rt(0,0,g))}function Nt(e,t,n){if((t=O(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?zt(e,t).set(0,n):zt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=S(w);return t>=Kt(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Rt(e._origin,e._capacity,e._level,o,r):e}function It(e,t,n,r,o,i){var a,l=r>>>n&y,s=e&&l<e.array.length;if(!s&&void 0===o)return e;if(n>0){var u=e&&e.array[l],c=It(u,t,n-g,r,o,i);return c===u?e:((a=Lt(e,t)).array[l]=c,a)}return s&&e.array[l]===o?e:(k(i),a=Lt(e,t),void 0===o&&l===a.array.length-1?a.array.pop():a.array[l]=o,a)}function Lt(e,t){return t&&e&&t===e.ownerID?e:new Pt(e?e.array.slice():[],t)}function Ft(e,t){if(t>=Kt(e._capacity))return e._tail;if(t<1<<e._level+g){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&y],r-=g;return n}}function zt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new E,o=e._origin,i=e._capacity,a=o+t,l=void 0===n?i:n<0?i+n:o+n;if(a===o&&l===i)return e;if(a>=l)return e.clear();for(var s=e._level,u=e._root,c=0;a+c<0;)u=new Pt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(s+=g);c&&(a+=c,o+=c,l+=c,i+=c);for(var f=Kt(i),d=Kt(l);d>=1<<s+g;)u=new Pt(u&&u.array.length?[u]:[],r),s+=g;var p=e._tail,h=d<f?Ft(e,l-1):d>f?new Pt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var m=u=Lt(u,r),v=s;v>g;v-=g){var b=f>>>v&y;m=m.array[b]=Lt(m.array[b],r)}m.array[f>>>g&y]=p}if(l<i&&(h=h&&h.removeAfter(r,0,l)),a>=d)a-=d,l-=d,s=g,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(c=0;u;){var x=a>>>s&y;if(x!==d>>>s&y)break;x&&(c+=(1<<s)*x),s-=g,u=u.array[x]}u&&a>o&&(u=u.removeBefore(r,s,a-c)),u&&d<f&&(u=u.removeAfter(r,s,d-c)),c&&(a-=c,l-=c)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Rt(a,l,s,u,h)}function Bt(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var s=n[l],u=o(s);u.size>i&&(i=u.size),a(s)||(u=u.map((function(e){return pe(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),mt(e,t,r)}function Kt(e){return e<v?0:e-1>>>g<<g}function Ut(e){return null==e?$t():Vt(e)?e:$t().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Vt(e){return $e(e)&&c(e)}function Ht(e,t,n,r){var o=Object.create(Ut.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function $t(){return Tt||(Tt=Ht(ot(),At()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,l=i.get(t),s=void 0!==l;if(n===b){if(!s)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=i,o=a.set(l,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Ht(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Jt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=xn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===N){var r=e.__iterator(t,n);return new z((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===A?R:A,n)},t}function Qt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(N,o);return new z((function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return B(r,l,t.call(n,a[1],l,e),o)}))},r}function Zt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=xn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,l=0;return e.__iterate((function(e,i,s){if(t.call(n,e,i,s))return l++,o(e,r?i:l-1,a)}),i),l},o.__iteratorUncached=function(o,i){var a=e.__iterator(N,i),l=0;return new z((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,u=s[0],c=s[1];if(t.call(n,c,u,e))return B(o,r?u:l++,c,i)}}))},o}function tn(e,t,n){var r=He().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=l(e),o=(c(e)?Ut():He()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=yn(e);return o.map((function(t){return mn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),j(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var l,s=a-i;s==s&&(l=s<0?0:s);var u=bn(e);return u.size=0===l?l:e.size&&l||void 0,!r&&ie(e)&&l>=0&&(u.get=function(t,n){return(t=O(this,t))>=0&&t<l?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,u=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==l})),u},u.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var o=0!==l&&e.__iterator(t,n),a=0,s=0;return new z((function(){for(;a++<i;)o.next();if(++s>l)return K();var e=o.next();return r||t===A?e:B(t,s-1,t===R?void 0:e.value[1],e)}))},u}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,l){return t.call(n,e,o,l)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(N,o),l=!0;return new z((function(){if(!l)return K();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],u=o[1];return t.call(n,u,s,i)?r===N?e:B(r,s,u,e):(l=!1,K())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var l=!0,s=0;return e.__iterate((function(e,i,u){if(!l||!(l=t.call(n,e,i,u)))return s++,o(e,r?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var l=e.__iterator(N,i),s=!0,u=0;return new z((function(){var e,i,c;do{if((e=l.next()).done)return r||o===A?e:B(o,u++,o===R?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],s&&(s=t.call(n,c,i,a))}while(s);return o===N?e:B(o,i,c,e)}))},o}function ln(e,t){var n=l(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?le(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&l(i)||s(e)&&s(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,l=!1;function s(e,u){var c=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?s(e,u+1):!1===r(e,n?o:i++,c)&&(l=!0),!l}),o)}return s(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),l=[],s=0;return new z((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===N&&(u=u[1]),t&&!(l.length<t)||!a(u))return n?e:B(r,s++,u,e);l.push(i),i=u.__iterator(r,o)}else i=l.pop()}return K()}))},r}function un(e,t,n){var r=yn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function cn(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(A,r),a=0;return new z((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?B(n,a++,t):B(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=wn);var r=l(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?Y(i):s(e)?G(i):J(i)}function dn(e,t,n){if(t||(t=wn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(A,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),H(o?e.reverse():e)})),a=0,l=!1;return new z((function(){var n;return l||(n=i.map((function(e){return e.next()})),l=n.some((function(e){return e.done}))),l?K():B(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function mn(e,t){return ie(e)?t:e.constructor(t)}function gn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ve(e.size),C(e)}function yn(e){return l(e)?r:s(e)?o:i}function bn(e){return Object.create((l(e)?Y:s(e)?G:J).prototype)}function xn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function wn(e,t){return e>t?1:e<t?-1:0}function Sn(e){var t=H(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=H(n(e))}return t}function kn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);On(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=He(i)},o=r.prototype=Object.create(En);return o.constructor=r,r}t(Ut,He),Ut.of=function(){return this(arguments)},Ut.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ut.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ut.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Ut.prototype.set=function(e,t){return Wt(this,e,t)},Ut.prototype.remove=function(e){return Wt(this,e,b)},Ut.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ut.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Ut.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ut.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ht(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ut.isOrderedMap=Vt,Ut.prototype[h]=!0,Ut.prototype[m]=Ut.prototype.remove,t(qt,Y),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Zt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Qt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(A,t),r=t?vn(this):0;return new z((function(){var o=n.next();return o.done?o:B(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Yt,G),Yt.prototype.includes=function(e){return this._iter.includes(e)},Yt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(A,t),r=0;return new z((function(){var t=n.next();return t.done?t:B(e,r++,t.value,t)}))},t(Gt,J),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(A,t);return new z((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t(Jt,Y),Jt.prototype.entrySeq=function(){return this._iter.toSeq()},Jt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){gn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Jt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(A,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){gn(r);var o=a(r);return B(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Yt.prototype.cacheResult=qt.prototype.cacheResult=Gt.prototype.cacheResult=Jt.prototype.cacheResult=xn,t(kn,ke),kn.prototype.toString=function(){return this.__toString(Cn(this)+" {","}")},kn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},kn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},kn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=_n(this,ot()))},kn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Cn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:_n(this,n)},kn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:_n(this,t)},kn.prototype.wasAltered=function(){return this._map.wasAltered()},kn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},kn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},kn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?_n(this,t,e):(this.__ownerID=e,this._map=t,this)};var En=kn.prototype;function _n(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Cn(e){return e._name||e.constructor.name||"Record"}function On(e,t){try{t.forEach(Pn.bind(void 0,e))}catch(e){}}function Pn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){xe(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function jn(e){return null==e?In():Tn(e)&&!c(e)?e:In().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Dn])}En[m]=En.remove,En.deleteIn=En.removeIn=Ye.removeIn,En.merge=Ye.merge,En.mergeWith=Ye.mergeWith,En.mergeIn=Ye.mergeIn,En.mergeDeep=Ye.mergeDeep,En.mergeDeepWith=Ye.mergeDeepWith,En.mergeDeepIn=Ye.mergeDeepIn,En.setIn=Ye.setIn,En.update=Ye.update,En.updateIn=Ye.updateIn,En.withMutations=Ye.withMutations,En.asMutable=Ye.asMutable,En.asImmutable=Ye.asImmutable,t(jn,_e),jn.of=function(){return this(arguments)},jn.fromKeys=function(e){return this(r(e).keySeq())},jn.prototype.toString=function(){return this.__toString("Set {","}")},jn.prototype.has=function(e){return this._map.has(e)},jn.prototype.add=function(e){return An(this,this._map.set(e,!0))},jn.prototype.remove=function(e){return An(this,this._map.remove(e))},jn.prototype.clear=function(){return An(this,this._map.clear())},jn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},jn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},jn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},jn.prototype.merge=function(){return this.union.apply(this,arguments)},jn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},jn.prototype.sort=function(e){return Ln(fn(this,e))},jn.prototype.sortBy=function(e,t){return Ln(fn(this,t,e))},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},jn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},jn.isSet=Tn;var Mn,Dn="@@__IMMUTABLE_SET__@@",Rn=jn.prototype;function An(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Nn(e,t){var n=Object.create(Rn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Mn||(Mn=Nn(ot()))}function Ln(e){return null==e?Un():Fn(e)?e:Un().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Fn(e){return Tn(e)&&c(e)}Rn[Dn]=!0,Rn[m]=Rn.remove,Rn.mergeDeep=Rn.merge,Rn.mergeDeepWith=Rn.mergeWith,Rn.withMutations=Ye.withMutations,Rn.asMutable=Ye.asMutable,Rn.asImmutable=Ye.asImmutable,Rn.__empty=In,Rn.__make=Nn,t(Ln,jn),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=Fn;var zn,Bn=Ln.prototype;function Kn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Un(){return zn||(zn=Kn($t()))}function Vn(e){return null==e?Gn():Hn(e)?e:Gn().unshiftAll(e)}function Hn(e){return!(!e||!e[Wn])}Bn[h]=!0,Bn.__empty=Un,Bn.__make=Kn,t(Vn,Ee),Vn.of=function(){return this(arguments)},Vn.prototype.toString=function(){return this.__toString("Stack [","]")},Vn.prototype.get=function(e,t){var n=this._head;for(e=O(this,e);n&&e--;)n=n.next;return n?n.value:t},Vn.prototype.peek=function(){return this._head&&this._head.value},Vn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yn(e,t)},Vn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ve(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yn(t,n)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(e){return this.pushAll(e)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Vn.prototype.slice=function(e,t){if(j(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return Ee.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Yn(r,o)},Vn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Vn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new z((function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return K()}))},Vn.isStack=Hn;var $n,Wn="@@__IMMUTABLE_STACK__@@",qn=Vn.prototype;function Yn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return $n||($n=Yn(0))}function Jn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}qn[Wn]=!0,qn.withMutations=Ye.withMutations,qn.asMutable=Ye.asMutable,qn.asImmutable=Ye.asImmutable,qn.wasAltered=Ye.wasAltered,n.Iterator=z,Jn(n,{toArray:function(){Ve(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Yt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return He(this.toKeyedSeq())},toObject:function(){Ve(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ut(this.toKeyedSeq())},toOrderedSet:function(){return Ln(l(this)?this.valueSeq():this)},toSet:function(){return jn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vn(l(this)?this.valueSeq():this)},toList:function(){return Et(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return mn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(N)},every:function(e,t){Ve(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return mn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ve(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ve(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(R)},map:function(e,t){return mn(this,Qt(this,e,t))},reduce:function(e,t,n){var r,o;return Ve(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return mn(this,Zt(this,!0))},slice:function(e,t){return mn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return mn(this,fn(this,e))},values:function(){return this.__iterator(A)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ye(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(P)},flatMap:function(e,t){return mn(this,un(this,e,t))},flatten:function(e){return mn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Jt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Sn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Zn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return mn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return mn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return mn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return mn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return mn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[F]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Jn(r,{flip:function(){return mn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return mn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return mn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Qn=r.prototype;function Zn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return _(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=c(e),n=l(e),r=t?1:0;return lr(e.__iterate(n?t?function(e,t){r=31*r+sr(Pe(e),Pe(t))|0}:function(e,t){r=r+sr(Pe(e),Pe(t))|0}:t?function(e){r=31*r+Pe(e)|0}:function(e){r=r+Pe(e)|0}),r)}function lr(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Oe((t=Ce(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Qn[d]=!0,Qn[F]=Xn.entries,Qn.__toJS=Xn.toObject,Qn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Jn(o,{toKeyedSeq:function(){return new qt(this,!1)},filter:function(e,t){return mn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return mn(this,Zt(this,!1))},slice:function(e,t){return mn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return mn(this,1===n?r:r.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return mn(this,sn(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return mn(this,cn(this,e))},interleave:function(){var e=[this].concat(_(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),mn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return mn(this,an(this,e,t,!1))},zip:function(){return mn(this,hn(this,or,[this].concat(_(arguments))))},zipWith:function(e){var t=_(arguments);return t[0]=this,mn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Jn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Jn(Y,r.prototype),Jn(G,o.prototype),Jn(J,i.prototype),Jn(ke,r.prototype),Jn(Ee,o.prototype),Jn(_e,i.prototype),{Iterable:n,Seq:q,Collection:Se,Map:He,OrderedMap:Ut,List:Et,Stack:Vn,Set:jn,OrderedSet:Ln,Record:kn,Range:we,Repeat:be,is:ve,fromJS:pe}}()})),i.register("hk8oT",(function(e,t){function n(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(n).join(" "):Array.prototype.map.call(arguments,n).join(" ")}})),i.register("34wTR",(function(e,t){function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r})),i.register("f6H7i",(function(e,t){function n(e,t){var n=r.get(e,t);return"auto"===n||"scroll"===n}var r={get:i("1keDO"),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(n(e,"overflow")||n(e,"overflowY")||n(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=r})),i.register("1keDO",(function(e,t){var n=i("7HBoN"),r=i("kxnFJ");function o(e){return null==e?e:String(e)}e.exports=function(e,t){var i;if(window.getComputedStyle&&(i=window.getComputedStyle(e,null)))return o(i.getPropertyValue(r(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(i=document.defaultView.getComputedStyle(e,null))return o(i.getPropertyValue(r(t)));if("display"===t)return"none"}return e.currentStyle?o("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[n(t)]):o(e.style&&e.style[n(t)])}})),i.register("7HBoN",(function(e,t){var n=/-(.)/g;e.exports=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))}})),i.register("kxnFJ",(function(e,t){var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}})),i.register("6uNco",(function(e,t){var n=i("4rRJM");e.exports=function(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}})),i.register("4rRJM",(function(e,t){var n=i("fXTIM");e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!n(t,e))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}})),i.register("3LqfB",(function(e,t){var n=i("chRkS"),r=i("hDwYh");e.exports=function(e){var t=n(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var o=r(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,l=e.scrollHeight-i.clientHeight;return o.x=Math.max(0,Math.min(o.x,a)),o.y=Math.max(0,Math.min(o.y,l)),o}})),i.register("chRkS",(function(e,t){var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}})),i.register("hDwYh",(function(e,t){e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}})),i.register("fkRy5",(function(e,t){function n(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function o(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}o.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=o})),i.register("hv7Tb",(function(e,t){e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}})),i.register("fP8fs",(function(e,t){e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}})),i.register("cKZJh",(function(e,t){var n=i("5J2NM");function r(){return r=n||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=i("fLNsq"),s=i("56j1y"),u=i("fYo6y"),c=i("hk8oT"),f=i("9T2bT"),d=i("fP8fs"),p=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),u=n.getDecorator();return o!==i||a!==l||s!==u||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,i=e.blockStyleFn,a=e.customStyleMap,c=e.customStyleFn,h=e.editorState,m=e.editorKey,g=e.preventScroll,v=e.textDirectionality,y=h.getCurrentContent(),b=h.getSelection(),x=h.mustForceSelection(),w=h.getDecorator(),S=d(h.getDirectionMap()),k=y.getBlocksAsArray(),E=[],_=null,C=null,O=0;O<k.length;O++){var P=k[O],j=P.getKey(),T=P.getType(),M=n(P),D=void 0,R=void 0,A=void 0;M&&(D=M.component,R=M.props,A=M.editable);var N=v||S.get(j),I=s.encode(j,0,0),L={contentState:y,block:P,blockProps:R,blockStyleFn:i,customStyleMap:a,customStyleFn:c,decorator:w,direction:N,forceSelection:x,offsetKey:I,preventScroll:g,selection:b,tree:h.getBlockTree(j)},F=t.get(T)||t.get("unstyled"),z=F.wrapper,B=F.element||t.get("unstyled").element,K=P.getDepth(),U="";if(i&&(U=i(P)),"li"===B)U=f(U,p(T,K,C!==z||null===_||K>_,N));var V=D||l,H={className:U,"data-block":!0,"data-editor":m,"data-offset-key":I,key:j};void 0!==A&&(H=o({},H,{contentEditable:A,suppressContentEditableWarning:!0}));var $=u.createElement(B,H,u.createElement(V,r({},L,{key:j})));E.push({block:$,wrapperTemplate:z,key:j,offsetKey:I}),_=z?P.getDepth():null,C=z}for(var W=[],q=0;q<E.length;){var Y=E[q];if(Y.wrapperTemplate){var G=[];do{G.push(E[q].block),q++}while(q<E.length&&E[q].wrapperTemplate===Y.wrapperTemplate);var J=u.cloneElement(Y.wrapperTemplate,{key:Y.key+"-wrap","data-offset-key":Y.offsetKey},G);W.push(J)}else W.push(Y.block),q++}return u.createElement("div",{"data-contents":"true"},W)},i}(u.Component);e.exports=h})),i.register("fLNsq",(function(e,t){var n=i("5J2NM");function r(){return r=n||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=i("7wz44"),a=i("56j1y"),l=i("fYo6y"),s=i("34wTR"),u=i("f6H7i"),c=i("gnxI6"),f=i("1hPeP"),d=i("hk8oT"),p=i("6uNco"),h=i("3LqfB"),m=i("fkRy5"),g=i("i5xG3"),v=i("hv7Tb"),y=i("fP8fs"),b=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},x=function(e){var t,n;function i(){for(var t,n,r,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var x=i.prototype;return x.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection},x.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=u.getScrollParent(n),i=h(o);if(o===window){var a=p(n);(r=a.y+a.height-m().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{!v(n)&&g(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}}},x._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),i=t.getText(),s=this.props.tree.size-1,u=b(this.props.selection,n);return this.props.tree.map((function(d,p){var h=d.get("leaves");if(0===h.size)return null;var m=h.size-1,g=h.map((function(r,c){var f=a.encode(n,p,c),d=r.get("start"),h=r.get("end");return l.createElement(o,{key:f,offsetKey:f,block:t,start:d,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:i.slice(d,h),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:p===s&&c===m})})).toArray(),v=d.get("decoratorKey");if(null==v)return g;if(!e.props.decorator)return g;var b=y(e.props.decorator),x=b.getComponentForKey(v);if(!x)return g;var w=b.getPropsForKey(v),S=a.encode(n,p,0),k=h.first().get("start"),E=h.last().get("end"),_=i.slice(k,E),C=t.getEntityAt(d.get("start")),O=f.getHTMLDirIfDifferent(c.getDirection(_),e.props.direction),P={contentState:e.props.contentState,decoratedText:_,dir:O,start:k,end:E,blockKey:n,entityKey:C,offsetKey:S};return l.createElement(x,r({},w,P,{key:S}),g)})).toArray()},x.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return l.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},i}(l.Component);e.exports=x})),i.register("9T2bT",(function(e,t){e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}})),i.register("LagnA",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>k});const n=m(i("dW92x")),r=m(i("5KuVi")),o=m(i("8BOW9")),a=m(i("6FwOM"));var l=i("7GENb"),s=i("dCxkA"),u=i("e1W6u");const c=m(i("4OMRD"));var f=i("dIJsg"),d=i("2QNiO"),p=i("5S3e9");const h=m(i("j0zTC"));function m(e){return e&&e.__esModule?e:{default:e}}function g(e){return"function"==typeof e}function v(e,...t){let n=t.pop();for(let r of t)for(let t in r){let o=n(e[t],r[t]);void 0===o?(0,c.default)(e[t])&&(0,c.default)(r[t])?e[t]=v({},e[t],r[t],n):e[t]=r[t]:e[t]=o}return e}const y={colors:a.default,negative:e=>Object.keys(e).filter((t=>"0"!==e[t])).reduce(((t,r)=>{let o=(0,n.default)(e[r]);return void 0!==o&&(t[`-${r}`]=o),t}),{}),breakpoints:e=>Object.keys(e).filter((t=>"string"==typeof e[t])).reduce(((t,n)=>({...t,[`screen-${n}`]:e[n]})),{})};function b(e,t){return Array.isArray(e)&&(0,c.default)(e[0])?e.concat(t):Array.isArray(t)&&(0,c.default)(t[0])&&(0,c.default)(e)?[e,...t]:Array.isArray(t)?t:void 0}function x({extend:e,...t}){return v(t,e,((e,t)=>g(e)||t.some(g)?(n,r)=>v({},...[e,...t].map((e=>function(e,...t){return g(e)?e(...t):e}(e,n,r))),b):v({},e,...t,b)))}function w(e){const t=(n,r)=>{for(const r of function*(e){let t=(0,s.toPath)(e);if(0===t.length)return;if(yield t,Array.isArray(e))return;let n=e.match(/^(.*?)\s*\/\s*([^/]+)$/);if(null!==n){let[,e,t]=n,r=(0,s.toPath)(e);r.alpha=t,yield r}}(n)){let n=0,o=e;for(;null!=o&&n<r.length;){o=o[r[n++]],o=g(o)&&(void 0===r.alpha||n<=r.length-1)?o(t,y):o}if(void 0!==o){if(void 0!==r.alpha){let e=(0,d.parseColorFormat)(o);return(0,p.withAlphaValue)(e,r.alpha,(0,h.default)(e))}return(0,c.default)(o)?(0,f.cloneDeep)(o):o}}return r};return Object.assign(t,{theme:t,...y}),Object.keys(e).reduce(((n,r)=>(n[r]=g(e[r])?e[r](t,y):e[r],n)),{})}function S(e){let t=[];return e.forEach((e=>{var n;t=[...t,e];const r=null!==(n=null==e?void 0:e.plugins)&&void 0!==n?n:[];0!==r.length&&r.forEach((e=>{var n;e.__isOptionsFunction&&(e=e()),t=[...t,...S([null!==(n=null==e?void 0:e.config)&&void 0!==n?n:{}])]}))})),t}function k(e){let t=[...S(e),{prefix:"",important:!1,separator:":"}];var n,i,a,s,c,f;return(0,u.normalizeConfig)((0,l.defaults)({theme:w(x((c=t.map((e=>null!==(n=null==e?void 0:e.theme)&&void 0!==n?n:{})),{...c.reduce(((e,t)=>(0,l.defaults)(e,t)),{}),extend:(f=c,f.reduce(((e,{extend:t})=>v(e,t,((e,t)=>void 0===e?[t]:Array.isArray(e)?[t,...e]:[t,e]))),{}))}))),corePlugins:(s=t.map((e=>e.corePlugins)),[...s].reduceRight(((e,t)=>g(t)?t({corePlugins:e}):(0,o.default)(t,e)),r.default)),plugins:(a=e.map((e=>null!==(i=null==e?void 0:e.plugins)&&void 0!==i?i:[])),[...a].reduceRight(((e,t)=>[...e,...t]),[]))},...t))}})),i.register("dW92x",(function(e,t){function n(e){if("0"===(e=`${e}`))return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e))return e.replace(/^[+-]?/,(e=>"-"===e?"":"-"));let t=["var","calc","min","max","clamp"];for(const n of t)if(e.includes(`${n}(`))return`calc(${e} * -1)`}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>n})})),i.register("5KuVi",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>n});const n=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]})),i.register("8BOW9",(function(e,t){function n(e,t){if(void 0===e)return t;return Array.isArray(e)?e:[...new Set(t.filter((t=>!1!==e&&!1!==e[t])).concat(Object.keys(e).filter((t=>!1!==e[t]))))]}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>n})})),i.register("6FwOM",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>a});const n=r(i("dWHkc"));function r(e){return e&&e.__esModule?e:{default:e}}function o({version:e,from:t,to:r}){n.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}const a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})),i.register("dWHkc",(function(e,t){i("9Mq5w");Object.defineProperty(e.exports,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e.exports,{dim:()=>l,default:()=>s});const n=r(i("2zQdA"));function r(e){return e&&e.__esModule?e:{default:e}}let o=new Set;function a(e,t,n){n&&o.has(n)||(n&&o.add(n),console.warn(""),t.forEach((t=>console.warn(e,"-",t))))}function l(e){return n.default.dim(e)}const s={info(e,t){a(n.default.bold(n.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){a(n.default.bold(n.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){a(n.default.bold(n.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}})),i.register("9Mq5w",(function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}})),i.register("2zQdA",(function(e,t){var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n}};e.exports=r(),e.exports.createColors=r})),i.register("7GENb",(function(e,t){function n(e,...t){for(let o of t){for(let t in o){var n;(null==e||null===(n=e.hasOwnProperty)||void 0===n?void 0:n.call(e,t))||(e[t]=o[t])}for(let t of Object.getOwnPropertySymbols(o)){var r;(null==e||null===(r=e.hasOwnProperty)||void 0===r?void 0:r.call(e,t))||(e[t]=o[t])}}return e}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"defaults",{enumerable:!0,get:()=>n})})),i.register("dCxkA",(function(e,t){function n(e){if(Array.isArray(e))return e;if(e.split("[").length-1!==e.split("]").length-1)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"toPath",{enumerable:!0,get:()=>n})})),i.register("e1W6u",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"normalizeConfig",{enumerable:!0,get:()=>l});var n=i("8gRvJ");const r=a(i("dWHkc"));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function l(e){var t;((()=>{if(e.purge)return!1;if(!e.content)return!1;if(!Array.isArray(e.content)&&("object"!=typeof e.content||null===e.content))return!1;if(Array.isArray(e.content))return e.content.every((e=>"string"==typeof e||"string"==typeof(null==e?void 0:e.raw)&&(!(null==e?void 0:e.extension)||"string"==typeof(null==e?void 0:e.extension))));if("object"==typeof e.content&&null!==e.content){if(Object.keys(e.content).some((e=>!["files","relative","extract","transform"].includes(e))))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every((e=>"string"==typeof e||"string"==typeof(null==e?void 0:e.raw)&&(!(null==e?void 0:e.extension)||"string"==typeof(null==e?void 0:e.extension)))))return!1;if("object"==typeof e.content.extract){for(let t of Object.values(e.content.extract))if("function"!=typeof t)return!1}else if(void 0!==e.content.extract&&"function"!=typeof e.content.extract)return!1;if("object"==typeof e.content.transform){for(let t of Object.values(e.content.transform))if("function"!=typeof t)return!1}else if(void 0!==e.content.transform&&"function"!=typeof e.content.transform)return!1;if("boolean"!=typeof e.content.relative&&void 0!==e.content.relative)return!1}return!0}return!1})()||r.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var t;let{content:n,purge:r,safelist:o}=e;return Array.isArray(o)?o:Array.isArray(null==n?void 0:n.safelist)?n.safelist:Array.isArray(null==r?void 0:r.safelist)?r.safelist:Array.isArray(null==r||null===(t=r.options)||void 0===t?void 0:t.safelist)?r.options.safelist:[]})(),e.blocklist=(()=>{let{blocklist:t}=e;if(Array.isArray(t)){if(t.every((e=>"string"==typeof e)))return t;r.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),"function"==typeof e.prefix)?(r.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix=""):e.prefix=null!==(t=e.prefix)&&void 0!==t?t:"";e.content={relative:(()=>{let{content:t}=e;return(null==t?void 0:t.relative)?t.relative:(0,n.flagEnabled)(e,"relativeContentPathsByDefault")})(),files:(()=>{let{content:t,purge:n}=e;return Array.isArray(n)?n:Array.isArray(null==n?void 0:n.content)?n.content:Array.isArray(t)?t:Array.isArray(null==t?void 0:t.content)?t.content:Array.isArray(null==t?void 0:t.files)?t.files:[]})(),extract:(()=>{let t=(null===(n=e.purge)||void 0===n?void 0:n.extract)?e.purge.extract:(null===(r=e.content)||void 0===r?void 0:r.extract)?e.content.extract:(null===(o=e.purge)||void 0===o||null===(i=o.extract)||void 0===i?void 0:i.DEFAULT)?e.purge.extract.DEFAULT:(null===(a=e.content)||void 0===a||null===(l=a.extract)||void 0===l?void 0:l.DEFAULT)?e.content.extract.DEFAULT:(null===(s=e.purge)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.extractors)?e.purge.options.extractors:(null===(c=e.content)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.extractors)?e.content.options.extractors:{};var n,r,o,i,a,l,s,u,c,f;let d={},p=(()=>{var t,n,r,o;return(null===(t=e.purge)||void 0===t||null===(n=t.options)||void 0===n?void 0:n.defaultExtractor)?e.purge.options.defaultExtractor:(null===(r=e.content)||void 0===r||null===(o=r.options)||void 0===o?void 0:o.defaultExtractor)?e.content.options.defaultExtractor:void 0})();if(void 0!==p&&(d.DEFAULT=p),"function"==typeof t)d.DEFAULT=t;else if(Array.isArray(t))for(let{extensions:e,extractor:n}of null!=t?t:[])for(let t of e)d[t]=n;else"object"==typeof t&&null!==t&&Object.assign(d,t);return d})(),transform:(()=>{let t=(null===(n=e.purge)||void 0===n?void 0:n.transform)?e.purge.transform:(null===(r=e.content)||void 0===r?void 0:r.transform)?e.content.transform:(null===(o=e.purge)||void 0===o||null===(i=o.transform)||void 0===i?void 0:i.DEFAULT)?e.purge.transform.DEFAULT:(null===(a=e.content)||void 0===a||null===(l=a.transform)||void 0===l?void 0:l.DEFAULT)?e.content.transform.DEFAULT:{};var n,r,o,i,a,l;let s={};return"function"==typeof t&&(s.DEFAULT=t),"object"==typeof t&&null!==t&&Object.assign(s,t),s})()};for(let t of e.content.files)if("string"==typeof t&&/{([^,]*?)}/g.test(t)){r.default.warn("invalid-glob-braces",[`The glob pattern ${(0,r.dim)(t)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,r.dim)(t.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}})),i.register("8gRvJ",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e.exports,{flagEnabled:()=>u,issueFlagNotices:()=>f,default:()=>d});const n=a(i("2zQdA")),r=a(i("dWHkc"));var o=i("fXiqm");function a(e){return e&&e.__esModule?e:{default:e}}let l={optimizeUniversalDefaults:!1,generalizedModifiers:!0,get disableColorOpacityUtilitiesByDefault(){return o.env.OXIDE},get relativeContentPathsByDefault(){return o.env.OXIDE}},s={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function u(e,t){var n,r,o,i,a,u;return s.future.includes(t)?"all"===e.future||null!==(o=null!==(r=null==e||null===(n=e.future)||void 0===n?void 0:n[t])&&void 0!==r?r:l[t])&&void 0!==o&&o:!!s.experimental.includes(t)&&("all"===e.experimental||null!==(u=null!==(a=null==e||null===(i=e.experimental)||void 0===i?void 0:i[t])&&void 0!==a?a:l[t])&&void 0!==u&&u)}function c(e){return"all"===e.experimental?s.experimental:Object.keys(null!==(t=null==e?void 0:e.experimental)&&void 0!==t?t:{}).filter((t=>s.experimental.includes(t)&&e.experimental[t]));var t}function f(e){if(c(e).length>0){let t=c(e).map((e=>n.default.yellow(e))).join(", ");r.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${t}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const d=s})),i.register("fXiqm",(function(e,t){var n=i("9Mq5w");Object.defineProperty(e.exports,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e.exports,{env:()=>l,contextMap:()=>c,configContextMap:()=>f,contextSourcesMap:()=>d,sourceHashMap:()=>p,NOT_ON_DEMAND:()=>h,NONE:()=>m,resolveDebug:()=>g});const r=o(i("1hUgB"));function o(e){return e&&e.__esModule?e:{default:e}}let a="oxide"===r.default.tailwindcss.engine;const l=void 0!==n?{NODE_ENV:"production",DEBUG:g(void 0),ENGINE:r.default.tailwindcss.engine,OXIDE:(s=void 0,u=a,void 0===s?u:"0"!==s&&"false"!==s)}:{NODE_ENV:"production",DEBUG:!1,ENGINE:r.default.tailwindcss.engine,OXIDE:a};var s,u;const c=new Map,f=new Map,d=new Map,p=new Map,h=new String("*"),m=Symbol("__NONE__");function g(e){if(void 0===e)return!1;if("true"===e||"1"===e)return!0;if("false"===e||"0"===e)return!1;if("*"===e)return!0;let t=e.split(",").map((e=>e.split(":")[0]));return!t.includes("-tailwindcss")&&!!t.includes("tailwindcss")}})),i.register("1hUgB",(function(e,t){e.exports=JSON.parse('{"name":"tailwindcss","version":"3.3.1","description":"A utility-first CSS framework for rapidly building custom user interfaces.","license":"MIT","main":"lib/index.js","types":"types/index.d.ts","repository":"https://github.com/tailwindlabs/tailwindcss.git","bugs":"https://github.com/tailwindlabs/tailwindcss/issues","homepage":"https://tailwindcss.com","bin":{"tailwind":"lib/cli.js","tailwindcss":"lib/cli.js"},"tailwindcss":{"engine":"stable"},"scripts":{"prebuild":"npm run generate && rimraf lib","build":"swc src --out-dir lib --copy-files","postbuild":"esbuild lib/cli-peer-dependencies.js --bundle --platform=node --outfile=peers/index.js --define:process.env.CSS_TRANSFORMER_WASM=false","rebuild-fixtures":"npm run build && node -r @swc/register scripts/rebuildFixtures.js","style":"eslint .","pretest":"npm run generate","test":"jest","test:integrations":"npm run test --prefix ./integrations","install:integrations":"node scripts/install-integrations.js","generate:plugin-list":"node -r @swc/register scripts/create-plugin-list.js","generate:types":"node -r @swc/register scripts/generate-types.js","generate":"npm run generate:plugin-list && npm run generate:types","release-channel":"node ./scripts/release-channel.js","release-notes":"node ./scripts/release-notes.js","prepublishOnly":"npm install --force && npm run build"},"files":["src/*","cli/*","lib/*","peers/*","scripts/*.js","stubs/*","nesting/*","types/**/*","*.d.ts","*.css","*.js"],"devDependencies":{"@swc/cli":"0.1.59","@swc/core":"1.3.24","@swc/jest":"0.2.24","@swc/register":"0.1.10","autoprefixer":"^10.4.13","browserslist":"^4.21.4","concurrently":"^7.5.0","cssnano":"^5.1.14","esbuild":"^0.16.10","eslint":"^8.31.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","jest":"^28.1.3","jest-diff":"^28.1.3","lightningcss":"^1.18.0","prettier":"^2.8.1","rimraf":"^3.0.0","source-map-js":"^1.0.2","turbo":"^1.6.3"},"peerDependencies":{"postcss":"^8.0.9"},"dependencies":{"arg":"^5.0.2","chokidar":"^3.5.3","color-name":"^1.1.4","didyoumean":"^1.2.2","dlv":"^1.1.3","fast-glob":"^3.2.12","glob-parent":"^6.0.2","is-glob":"^4.0.3","jiti":"^1.17.2","lilconfig":"^2.0.6","micromatch":"^4.0.5","normalize-path":"^3.0.0","object-hash":"^3.0.0","picocolors":"^1.0.0","postcss":"^8.0.9","postcss-import":"^14.1.0","postcss-js":"^4.0.0","postcss-load-config":"^3.1.4","postcss-nested":"6.0.0","postcss-selector-parser":"^6.0.11","postcss-value-parser":"^4.2.0","quick-lru":"^5.1.1","resolve":"^1.22.1","sucrase":"^3.29.0"},"browserslist":["> 1%","not edge <= 18","not ie 11","not op_mini all"],"jest":{"testTimeout":30000,"setupFilesAfterEnv":["<rootDir>/jest/customMatchers.js"],"testPathIgnorePatterns":["/node_modules/","/integrations/","/standalone-cli/","\\\\.test\\\\.skip\\\\.js$"],"transformIgnorePatterns":["node_modules/(?!lightningcss)"],"transform":{"\\\\.js$":"@swc/jest","\\\\.ts$":"@swc/jest"}},"engines":{"node":">=12.13.0"}}')})),i.register("4OMRD",(function(e,t){function n(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>n})})),i.register("dIJsg",(function(e,t){function n(e){return Array.isArray(e)?e.map((e=>n(e))):"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e).map((([e,t])=>[e,n(t)]))):e}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"cloneDeep",{enumerable:!0,get:()=>n})})),i.register("2QNiO",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e.exports,{updateAllClasses:()=>c,asValue:()=>d,parseColorFormat:()=>m,asColor:()=>v,asLookupValue:()=>y,typeMap:()=>x,coerceValue:()=>S,getMatchingTypes:()=>k});const n=u(i("eu9Nq"));var r=i("5S3e9"),o=i("bJFC7");const a=u(i("dW92x"));var l=i("aRThU"),s=i("8gRvJ");function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){e.walkClasses((e=>{e.value=t(e.value),e.raws&&e.raws.value&&(e.raws.value=(0,n.default)(e.raws.value))}))}function f(e,t){if(!p(e))return;let n=e.slice(1,-1);return t(n)?(0,o.normalize)(n):void 0}function d(e,t={},{validate:n=(()=>!0)}={}){var r;let o=null===(r=t.values)||void 0===r?void 0:r[e];return void 0!==o?o:t.supportsNegativeValues&&e.startsWith("-")?function(e,t={},n){let r=t[e];if(void 0!==r)return(0,a.default)(r);if(p(e)){let t=f(e,n);if(void 0===t)return;return(0,a.default)(t)}}(e.slice(1),t.values,n):f(e,n)}function p(e){return e.startsWith("[")&&e.endsWith("]")}function h(e){let t=e.lastIndexOf("/");return-1===t||t===e.length-1||p(e)&&!e.includes("]/[")?[e,void 0]:[e.slice(0,t),e.slice(t+1)]}function m(e){if("string"==typeof e&&e.includes("<alpha-value>")){let t=e;return({opacityValue:e=1})=>t.replace("<alpha-value>",e)}return e}function g(e){return(e=e.slice(1,-1)).startsWith("--")&&(e=`var(${e})`),e}function v(e,t={},{tailwindConfig:n={}}={}){var i,a;if(void 0!==(null===(i=t.values)||void 0===i?void 0:i[e]))return m(null===(a=t.values)||void 0===a?void 0:a[e]);let[l,s]=h(e);if(void 0!==s){var u,c,f,v;let e=null!==(v=null===(u=t.values)||void 0===u?void 0:u[l])&&void 0!==v?v:p(l)?l.slice(1,-1):void 0;if(void 0===e)return;if(e=m(e),p(s))return(0,r.withAlphaValue)(e,g(s));if(void 0===(null===(c=n.theme)||void 0===c||null===(f=c.opacity)||void 0===f?void 0:f[s]))return;return(0,r.withAlphaValue)(e,n.theme.opacity[s])}return d(e,t,{validate:o.color})}function y(e,t={}){var n;return null===(n=t.values)||void 0===n?void 0:n[e]}function b(e){return(t,n)=>d(t,n,{validate:e})}let x={any:d,color:v,url:b(o.url),image:b(o.image),length:b(o.length),percentage:b(o.percentage),position:b(o.position),lookup:y,"generic-name":b(o.genericName),"family-name":b(o.familyName),number:b(o.number),"line-width":b(o.lineWidth),"absolute-size":b(o.absoluteSize),"relative-size":b(o.relativeSize),shadow:b(o.shadow),size:b(l.backgroundSize)},w=Object.keys(x);function S(e,t,n,r){if(n.values&&t in n.values)for(let{type:o}of null!=e?e:[]){let e=x[o](t,n,{tailwindConfig:r});if(void 0!==e)return[e,o,null]}if(p(t)){let e=t.slice(1,-1),[r,o]=function(e,t){let n=e.indexOf(t);return-1===n?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}(e,":");if(/^[\w-_]+$/g.test(r)){if(void 0!==r&&!w.includes(r))return[]}else o=e;if(o.length>0&&w.includes(r))return[d(`[${o}]`,n),r,null]}let o=k(e,t,n,r);for(let e of o)return e;return[]}function*k(e,t,n,r){let o=(0,s.flagEnabled)(r,"generalizedModifiers"),[i,a]=h(t);if(o&&null!=n.modifiers&&("any"===n.modifiers||"object"==typeof n.modifiers&&(a&&p(a)||a in n.modifiers))||(i=t,a=void 0),void 0!==a&&""===i&&(i="DEFAULT"),void 0!==a&&"object"==typeof n.modifiers){var l,u;let e=null!==(u=null===(l=n.modifiers)||void 0===l?void 0:l[a])&&void 0!==u?u:null;null!==e?a=e:p(a)&&(a=g(a))}for(let{type:t}of null!=e?e:[]){let e=x[t](i,n,{tailwindConfig:r});void 0!==e&&(yield[e,t,null!=a?a:null])}}})),i.register("eu9Nq",(function(e,t){function n(e){return e.replace(/\\,/g,"\\2c ")}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>n})})),i.register("5S3e9",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e.exports,{withAlphaValue:()=>r,default:()=>o});var n=i("220AJ");function r(e,t,r){if("function"==typeof e)return e({opacityValue:t});let o=(0,n.parseColor)(e,{loose:!0});return null===o?r:(0,n.formatColor)({...o,alpha:t})}function o({color:e,property:t,variable:r}){let o=[].concat(t);if("function"==typeof e)return{[r]:"1",...Object.fromEntries(o.map((t=>[t,e({opacityVariable:r,opacityValue:`var(${r})`})])))};const i=(0,n.parseColor)(e);return null===i||void 0!==i.alpha?Object.fromEntries(o.map((t=>[t,e]))):{[r]:"1",...Object.fromEntries(o.map((e=>[e,(0,n.formatColor)({...i,alpha:`var(${r})`})])))}}})),i.register("220AJ",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e.exports,{parseColor:()=>p,formatColor:()=>h});const n=r(i("5R4i7"));function r(e){return e&&e.__esModule?e:{default:e}}let o=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,a=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,l=/(?:\d+|\d*\.\d+)%?/,s=/(?:\s*,\s*|\s+)/,u=/\s*[,/]\s*/,c=/var\(--(?:[^ )]*?)\)/,f=new RegExp(`^(rgba?)\\(\\s*(${l.source}|${c.source})(?:${s.source}(${l.source}|${c.source}))?(?:${s.source}(${l.source}|${c.source}))?(?:${u.source}(${l.source}|${c.source}))?\\s*\\)$`),d=new RegExp(`^(hsla?)\\(\\s*((?:${l.source})(?:deg|rad|grad|turn)?|${c.source})(?:${s.source}(${l.source}|${c.source}))?(?:${s.source}(${l.source}|${c.source}))?(?:${u.source}(${l.source}|${c.source}))?\\s*\\)$`);function p(e,{loose:t=!1}={}){var r,i;if("string"!=typeof e)return null;if("transparent"===(e=e.trim()))return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in n.default)return{mode:"rgb",color:n.default[e].map((e=>e.toString()))};let l=e.replace(a,((e,t,n,r,o)=>["#",t,t,n,n,r,r,o?o+o:""].join(""))).match(o);if(null!==l)return{mode:"rgb",color:[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)].map((e=>e.toString())),alpha:l[4]?(parseInt(l[4],16)/255).toString():void 0};var s;let u=null!==(s=e.match(f))&&void 0!==s?s:e.match(d);if(null===u)return null;let c=[u[2],u[3],u[4]].filter(Boolean).map((e=>e.toString()));return 2===c.length&&c[0].startsWith("var(")?{mode:u[1],color:[c[0]],alpha:c[1]}:t||3===c.length?c.length<3&&!c.some((e=>/^var\(.*?\)$/.test(e)))?null:{mode:u[1],color:c,alpha:null===(r=u[5])||void 0===r||null===(i=r.toString)||void 0===i?void 0:i.call(r)}:null}function h({mode:e,color:t,alpha:n}){let r=void 0!==n;return"rgba"===e||"hsla"===e?`${e}(${t.join(", ")}${r?`, ${n}`:""})`:`${e}(${t.join(" ")}${r?` / ${n}`:""})`}})),i.register("5R4i7",(function(e,t){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})),i.register("bJFC7",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e.exports,{normalize:()=>c,url:()=>f,number:()=>d,percentage:()=>p,length:()=>m,lineWidth:()=>v,shadow:()=>y,color:()=>b,image:()=>x,gradient:()=>S,position:()=>E,familyName:()=>_,genericName:()=>O,absoluteSize:()=>j,relativeSize:()=>M});var n=i("220AJ"),r=i("hUR5i"),o=i("9Z9Pj");let a=["min","max","clamp","calc"];function l(e){return a.some((t=>new RegExp(`^${t}\\(.*\\)`).test(e)))}const s="--tw-placeholder",u=new RegExp(s,"g");function c(e,t=!0){return e.startsWith("--")?`var(${e})`:e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map((e=>/^url\(.*?\)$/.test(e)?e:c(e,!1))).join(""):(e=e.replace(/([^\\])_+/g,((e,t)=>t+" ".repeat(e.length-1))).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,(e=>{let t=[];return e.replace(/var\((--.+?)[,)]/g,((e,n)=>(t.push(n),e.replace(n,s)))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(u,(()=>t.shift()))})))}function f(e){return e.startsWith("url(")}function d(e){return!isNaN(Number(e))||l(e)}function p(e){return e.endsWith("%")&&d(e.slice(0,-1))||l(e)}let h=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function m(e){return"0"===e||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${h}$`).test(e)||l(e)}let g=new Set(["thin","medium","thick"]);function v(e){return g.has(e)}function y(e){let t=(0,r.parseBoxShadowValue)(c(e));for(let e of t)if(!e.valid)return!1;return!0}function b(e){let t=0;return!!(0,o.splitAtTopLevelOnly)(e,"_").every((e=>!!(e=c(e)).startsWith("var(")||null!==(0,n.parseColor)(e,{loose:!0})&&(t++,!0)))&&t>0}function x(e){let t=0;return!!(0,o.splitAtTopLevelOnly)(e,",").every((e=>!!(e=c(e)).startsWith("var(")||!!(f(e)||S(e)||["element(","image(","cross-fade(","image-set("].some((t=>e.startsWith(t))))&&(t++,!0)))&&t>0}let w=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function S(e){e=c(e);for(let t of w)if(e.startsWith(`${t}(`))return!0;return!1}let k=new Set(["center","top","right","bottom","left"]);function E(e){let t=0;return!!(0,o.splitAtTopLevelOnly)(e,"_").every((e=>!!(e=c(e)).startsWith("var(")||!!(k.has(e)||m(e)||p(e))&&(t++,!0)))&&t>0}function _(e){let t=0;return!!(0,o.splitAtTopLevelOnly)(e,",").every((e=>!!(e=c(e)).startsWith("var(")||!(e.includes(" ")&&!/(['"])([^"']+)\1/g.test(e))&&(!/^\d/g.test(e)&&(t++,!0))))&&t>0}let C=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function O(e){return C.has(e)}let P=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function j(e){return P.has(e)}let T=new Set(["larger","smaller"]);function M(e){return T.has(e)}})),i.register("hUR5i",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e.exports,{parseBoxShadowValue:()=>l,formatBoxShadowValue:()=>s});var n=i("9Z9Pj");let r=new Set(["inset","inherit","initial","revert","unset"]),o=/\ +(?![^(]*\))/g,a=/^-?(\d+|\.\d+)(.*?)$/g;function l(e){return(0,n.splitAtTopLevelOnly)(e,",").map((e=>{let t=e.trim(),n={raw:t},i=t.split(o),l=new Set;for(let e of i)a.lastIndex=0,!l.has("KEYWORD")&&r.has(e)?(n.keyword=e,l.add("KEYWORD")):a.test(e)?l.has("X")?l.has("Y")?l.has("BLUR")?l.has("SPREAD")||(n.spread=e,l.add("SPREAD")):(n.blur=e,l.add("BLUR")):(n.y=e,l.add("Y")):(n.x=e,l.add("X")):n.color?(n.unknown||(n.unknown=[]),n.unknown.push(e)):n.color=e;return n.valid=void 0!==n.x&&void 0!==n.y,n}))}function s(e){return e.map((e=>e.valid?[e.keyword,e.x,e.y,e.blur,e.spread,e.color].filter(Boolean).join(" "):e.raw)).join(", ")}})),i.register("9Z9Pj",(function(e,t){function n(e,t){let n=[],r=[],o=0,i=!1;for(let a=0;a<e.length;a++){let l=e[a];0!==n.length||l!==t[0]||i||1!==t.length&&e.slice(a,a+t.length)!==t||(r.push(e.slice(o,a)),o=a+t.length),i?i=!1:"\\"===l&&(i=!0),"("===l||"["===l||"{"===l?n.push(l):(")"===l&&"("===n[n.length-1]||"]"===l&&"["===n[n.length-1]||"}"===l&&"{"===n[n.length-1])&&n.pop()}return r.push(e.slice(o)),r}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"splitAtTopLevelOnly",{enumerable:!0,get:()=>n})})),i.register("aRThU",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"backgroundSize",{enumerable:!0,get:()=>o});var n=i("bJFC7"),r=i("9Z9Pj");function o(e){let t=["cover","contain"];return(0,r.splitAtTopLevelOnly)(e,",").every((e=>{let o=(0,r.splitAtTopLevelOnly)(e,"_").filter(Boolean);return!(1!==o.length||!t.includes(o[0]))||(1===o.length||2===o.length)&&o.every((e=>(0,n.length)(e)||(0,n.percentage)(e)||"auto"===e))}))}})),i.register("j0zTC",(function(e,t){function n(e){return"function"==typeof e?e({}):e}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>n})})),i.register("aLdlt",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>a});const n=o(i("4nfJ5"));var r=i("8gRvJ");function o(e){return e&&e.__esModule?e:{default:e}}function a(e){var t;const o=(null!==(t=null==e?void 0:e.presets)&&void 0!==t?t:[n.default]).slice().reverse().flatMap((e=>a(e instanceof Function?e():e))),i={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:e})=>({DEFAULT:"#3b82f67f",...e("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},l=Object.keys(i).filter((t=>(0,r.flagEnabled)(e,t))).map((e=>i[e]));return[e,...l,...o]}})),i.register("4nfJ5",(function(e,t){e.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.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",11:"2.75rem",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"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}})),i.register("ibflF",(function(e,t){var n=i("XDo3H");function r(e){return Object.fromEntries(Object.entries(e).filter((([e])=>"DEFAULT"!==e)))}e.exports=n((({addUtilities:e,matchUtilities:t,theme:n})=>{e({"@keyframes enter":n("keyframes.enter"),"@keyframes exit":n("keyframes.exit"),".animate-in":{animationName:"enter",animationDuration:n("animationDuration.DEFAULT"),"--tw-enter-opacity":"initial","--tw-enter-scale":"initial","--tw-enter-rotate":"initial","--tw-enter-translate-x":"initial","--tw-enter-translate-y":"initial"},".animate-out":{animationName:"exit",animationDuration:n("animationDuration.DEFAULT"),"--tw-exit-opacity":"initial","--tw-exit-scale":"initial","--tw-exit-rotate":"initial","--tw-exit-translate-x":"initial","--tw-exit-translate-y":"initial"}}),t({"fade-in":e=>({"--tw-enter-opacity":e}),"fade-out":e=>({"--tw-exit-opacity":e})},{values:n("animationOpacity")}),t({"zoom-in":e=>({"--tw-enter-scale":e}),"zoom-out":e=>({"--tw-exit-scale":e})},{values:n("animationScale")}),t({"spin-in":e=>({"--tw-enter-rotate":e}),"spin-out":e=>({"--tw-exit-rotate":e})},{values:n("animationRotate")}),t({"slide-in-from-top":e=>({"--tw-enter-translate-y":`-${e}`}),"slide-in-from-bottom":e=>({"--tw-enter-translate-y":e}),"slide-in-from-left":e=>({"--tw-enter-translate-x":`-${e}`}),"slide-in-from-right":e=>({"--tw-enter-translate-x":e}),"slide-out-to-top":e=>({"--tw-exit-translate-y":`-${e}`}),"slide-out-to-bottom":e=>({"--tw-exit-translate-y":e}),"slide-out-to-left":e=>({"--tw-exit-translate-x":`-${e}`}),"slide-out-to-right":e=>({"--tw-exit-translate-x":e})},{values:n("animationTranslate")}),t({duration:e=>({animationDuration:e})},{values:r(n("animationDuration"))}),t({delay:e=>({animationDelay:e})},{values:n("animationDelay")}),t({ease:e=>({animationTimingFunction:e})},{values:r(n("animationTimingFunction"))}),e({".running":{animationPlayState:"running"},".paused":{animationPlayState:"paused"}}),t({"fill-mode":e=>({animationFillMode:e})},{values:n("animationFillMode")}),t({direction:e=>({animationDirection:e})},{values:n("animationDirection")}),t({repeat:e=>({animationIterationCount:e})},{values:n("animationRepeat")})}),{theme:{extend:{animationDelay:({theme:e})=>({...e("transitionDelay")}),animationDuration:({theme:e})=>({0:"0ms",...e("transitionDuration")}),animationTimingFunction:({theme:e})=>({...e("transitionTimingFunction")}),animationFillMode:{none:"none",forwards:"forwards",backwards:"backwards",both:"both"},animationDirection:{normal:"normal",reverse:"reverse",alternate:"alternate","alternate-reverse":"alternate-reverse"},animationOpacity:({theme:e})=>({DEFAULT:0,...e("opacity")}),animationTranslate:({theme:e})=>({DEFAULT:"100%",...e("translate")}),animationScale:({theme:e})=>({DEFAULT:0,...e("scale")}),animationRotate:({theme:e})=>({DEFAULT:"30deg",...e("rotate")}),animationRepeat:{0:"0",1:"1",infinite:"infinite"},keyframes:{enter:{from:{opacity:"var(--tw-enter-opacity, 1)",transform:"translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"}},exit:{to:{opacity:"var(--tw-exit-opacity, 1)",transform:"translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"}}}}}})})),i.register("XDo3H",(function(e,t){var n=i("1q3br");e.exports=(n.__esModule?n:{default:n}).default})),i.register("1q3br",(function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>r});function n(e){return e&&e.__esModule?e:{default:e}}const r=n(i("8E4rH")).default})),i.register("8E4rH",(function(e,t){function n(e,t){return{handler:e,config:t}}Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:()=>r}),n.withOptions=function(e,t=(()=>({}))){const n=function(n){return{__options:n,handler:e(n),config:t(n)}};return n.__isOptionsFunction=!0,n.__pluginFunction=e,n.__configFunction=t,n};const r=n})),i.register("hjjwd",(function(t,n){
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var r,o,i,a,l,s,u,c,f,d,p,h,m,g,v,y,b,x,w,S,k,E,_,C,O,P,j,T;e(t.exports,"AsyncMode",(()=>r),(e=>r=e)),e(t.exports,"ConcurrentMode",(()=>o),(e=>o=e)),e(t.exports,"ContextConsumer",(()=>i),(e=>i=e)),e(t.exports,"ContextProvider",(()=>a),(e=>a=e)),e(t.exports,"Element",(()=>l),(e=>l=e)),e(t.exports,"ForwardRef",(()=>s),(e=>s=e)),e(t.exports,"Fragment",(()=>u),(e=>u=e)),e(t.exports,"Lazy",(()=>c),(e=>c=e)),e(t.exports,"Memo",(()=>f),(e=>f=e)),e(t.exports,"Portal",(()=>d),(e=>d=e)),e(t.exports,"Profiler",(()=>p),(e=>p=e)),e(t.exports,"StrictMode",(()=>h),(e=>h=e)),e(t.exports,"Suspense",(()=>m),(e=>m=e)),e(t.exports,"isAsyncMode",(()=>g),(e=>g=e)),e(t.exports,"isConcurrentMode",(()=>v),(e=>v=e)),e(t.exports,"isContextConsumer",(()=>y),(e=>y=e)),e(t.exports,"isContextProvider",(()=>b),(e=>b=e)),e(t.exports,"isElement",(()=>x),(e=>x=e)),e(t.exports,"isForwardRef",(()=>w),(e=>w=e)),e(t.exports,"isFragment",(()=>S),(e=>S=e)),e(t.exports,"isLazy",(()=>k),(e=>k=e)),e(t.exports,"isMemo",(()=>E),(e=>E=e)),e(t.exports,"isPortal",(()=>_),(e=>_=e)),e(t.exports,"isProfiler",(()=>C),(e=>C=e)),e(t.exports,"isStrictMode",(()=>O),(e=>O=e)),e(t.exports,"isSuspense",(()=>P),(e=>P=e)),e(t.exports,"isValidElementType",(()=>j),(e=>j=e)),e(t.exports,"typeOf",(()=>T),(e=>T=e));var M="function"==typeof Symbol&&Symbol.for,D=M?Symbol.for("react.element"):60103,R=M?Symbol.for("react.portal"):60106,A=M?Symbol.for("react.fragment"):60107,N=M?Symbol.for("react.strict_mode"):60108,I=M?Symbol.for("react.profiler"):60114,L=M?Symbol.for("react.provider"):60109,F=M?Symbol.for("react.context"):60110,z=M?Symbol.for("react.async_mode"):60111,B=M?Symbol.for("react.concurrent_mode"):60111,K=M?Symbol.for("react.forward_ref"):60112,U=M?Symbol.for("react.suspense"):60113,V=M?Symbol.for("react.suspense_list"):60120,H=M?Symbol.for("react.memo"):60115,$=M?Symbol.for("react.lazy"):60116,W=M?Symbol.for("react.block"):60121,q=M?Symbol.for("react.fundamental"):60117,Y=M?Symbol.for("react.responder"):60118,G=M?Symbol.for("react.scope"):60119;function J(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case D:switch(e=e.type){case z:case B:case A:case I:case N:case U:return e;default:switch(e=e&&e.$$typeof){case F:case K:case $:case H:case L:return e;default:return t}}case R:return t}}}function X(e){return J(e)===B}r=z,o=B,i=F,a=L,l=D,s=K,u=A,c=$,f=H,d=R,p=I,h=N,m=U,g=function(e){return X(e)||J(e)===z},v=X,y=function(e){return J(e)===F},b=function(e){return J(e)===L},x=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===D},w=function(e){return J(e)===K},S=function(e){return J(e)===A},k=function(e){return J(e)===$},E=function(e){return J(e)===H},_=function(e){return J(e)===R},C=function(e){return J(e)===I},O=function(e){return J(e)===N},P=function(e){return J(e)===U},j=function(e){return"string"==typeof e||"function"==typeof e||e===A||e===B||e===I||e===N||e===U||e===V||"object"==typeof e&&null!==e&&(e.$$typeof===$||e.$$typeof===H||e.$$typeof===L||e.$$typeof===F||e.$$typeof===K||e.$$typeof===q||e.$$typeof===Y||e.$$typeof===G||e.$$typeof===W)},T=J})),i.register("aBLNt",(function(e,t){var n=i("jeAAD"),r=i("605Ic"),o=i("5x9jo"),a=i("dYVlV");function l(e){return e.call.bind(e)}var s="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=l(Object.prototype.toString),f=l(Number.prototype.valueOf),d=l(String.prototype.valueOf),p=l(Boolean.prototype.valueOf);if(s)var h=l(BigInt.prototype.valueOf);if(u)var m=l(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===c(e)}function y(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function x(e){return"[object WeakSet]"===c(e)}function w(e){return"[object ArrayBuffer]"===c(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===c(e)}function E(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}e.exports.isArgumentsObject=n,e.exports.isGeneratorFunction=r,e.exports.isTypedArray=a,e.exports.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},e.exports.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||E(e)},e.exports.isUint8Array=function(e){return"Uint8Array"===o(e)},e.exports.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},e.exports.isUint16Array=function(e){return"Uint16Array"===o(e)},e.exports.isUint32Array=function(e){return"Uint32Array"===o(e)},e.exports.isInt8Array=function(e){return"Int8Array"===o(e)},e.exports.isInt16Array=function(e){return"Int16Array"===o(e)},e.exports.isInt32Array=function(e){return"Int32Array"===o(e)},e.exports.isFloat32Array=function(e){return"Float32Array"===o(e)},e.exports.isFloat64Array=function(e){return"Float64Array"===o(e)},e.exports.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},e.exports.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!=typeof Map&&v(new Map),e.exports.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),e.exports.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.exports.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),e.exports.isWeakSet=function(e){return x(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),e.exports.isArrayBuffer=S,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),e.exports.isDataView=E;var _="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function C(e){return"[object SharedArrayBuffer]"===c(e)}function O(e){return void 0!==_&&(void 0===C.working&&(C.working=C(new _)),C.working?C(e):e instanceof _)}function P(e){return g(e,f)}function j(e){return g(e,d)}function T(e){return g(e,p)}function M(e){return s&&g(e,h)}function D(e){return u&&g(e,m)}e.exports.isSharedArrayBuffer=O,e.exports.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},e.exports.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},e.exports.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},e.exports.isGeneratorObject=function(e){return"[object Generator]"===c(e)},e.exports.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},e.exports.isNumberObject=P,e.exports.isStringObject=j,e.exports.isBooleanObject=T,e.exports.isBigIntObject=M,e.exports.isSymbolObject=D,e.exports.isBoxedPrimitive=function(e){return P(e)||j(e)||T(e)||M(e)||D(e)},e.exports.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||O(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e.exports,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))})),i.register("jeAAD",(function(e,t){var n=i("62xi1")(),r=i("bh6VG")("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===r(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r(e)&&"[object Function]"===r(e.callee)},l=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=l?o:a})),i.register("62xi1",(function(e,t){var n=i("lrNgj");e.exports=function(){return n()&&!!Symbol.toStringTag}})),i.register("lrNgj",(function(e,t){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}})),i.register("bh6VG",(function(e,t){var n=i("k0uab"),r=i("ah9HS"),o=r(n("String.prototype.indexOf"));e.exports=function(e,t){var i=n(e,!!t);return"function"==typeof i&&o(e,".prototype.")>-1?r(i):i}})),i.register("k0uab",(function(e,t){var n,r=SyntaxError,o=Function,a=TypeError,l=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var u=function(){throw new a},c=s?function(){try{return u}catch(e){try{return s(arguments,"callee").get}catch(e){return u}}}():u,f=i("1tMgc")(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?n:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(e){var g=d(d(e));m["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=l("async function () {}");else if("%GeneratorFunction%"===t)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=i("6gIY6"),x=i("4ebPq"),w=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),k=b.call(Function.call,String.prototype.replace),E=b.call(Function.call,String.prototype.slice),_=b.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,P=function(e,t){var n,o=e;if(x(y,o)&&(o="%"+(n=y[o])[0]+"%"),x(m,o)){var i=m[o];if(i===p&&(i=v(o)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return k(e,C,(function(e,t,n,r){o[o.length]=n?k(r,O,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",i=P("%"+o+"%",t),l=i.name,u=i.value,c=!1,f=i.alias;f&&(o=f[0],S(n,w([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],g=E(h,0,1),v=E(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new r("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),x(m,l="%"+(o+="."+h)+"%"))u=m[l];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var y=s(u,h);u=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[h]}else p=x(u,h),u=u[h];p&&!c&&(m[l]=u)}}return u}})),i.register("1tMgc",(function(e,t){var n="undefined"!=typeof Symbol&&Symbol,r=i("lrNgj");e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&r())))}})),i.register("6gIY6",(function(e,t){var n=i("5q2Au");e.exports=Function.prototype.bind||n})),i.register("5q2Au",(function(e,t){var n=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==r.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var o,i=n.call(arguments,1),a=Math.max(0,t.length-i.length),l=[],s=0;s<a;s++)l.push("$"+s);if(o=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var r=t.apply(this,i.concat(n.call(arguments)));return Object(r)===r?r:this}return t.apply(e,i.concat(n.call(arguments)))})),t.prototype){var u=function(){};u.prototype=t.prototype,o.prototype=new u,u.prototype=null}return o}})),i.register("4ebPq",(function(e,t){var n=i("6gIY6");e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)})),i.register("ah9HS",(function(e,t){var n=i("6gIY6"),r=i("k0uab"),o=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||n.call(a,o),s=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=l(n,a,arguments);s&&u&&(s(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}));return t};var f=function(){return l(n,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f})),i.register("605Ic",(function(e,t){var n,r=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,l=i("62xi1")(),s=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!l)return"[object GeneratorFunction]"===r.call(e);if(!s)return!1;if(void 0===n){var t=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&s(t)}return s(e)===n}})),i.register("5x9jo",(function(e,n){var r=i("6Y9zB"),o=i("bfDOD"),a=i("bh6VG"),l=i("8Wg0p"),s=a("Object.prototype.toString"),u=i("62xi1")(),c="undefined"==typeof globalThis?t:globalThis,f=o(),d=a("String.prototype.slice"),p={},h=Object.getPrototypeOf;u&&l&&h&&r(f,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var n=h(t),r=l(n,Symbol.toStringTag);if(!r){var o=h(n);r=l(o,Symbol.toStringTag)}p[e]=r.get}}}));var m=i("dYVlV");e.exports=function(e){return!!m(e)&&(u&&Symbol.toStringTag in e?function(e){var t=!1;return r(p,(function(n,r){if(!t)try{var o=n.call(e);o===r&&(t=o)}catch(e){}})),t}(e):d(s(e),8,-1))}})),i.register("6Y9zB",(function(e,t){var n=i("fSmyv"),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,i){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=i),"[object Array]"===r.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}})),i.register("fSmyv",(function(e,t){var n,r,o=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,n)}catch(e){e!==r&&(i=null)}else i=null;var a=/^\s*class\b/,l=function(e){try{var t=o.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!l(e)&&(o.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(d=function(e){if((f||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,n)}catch(e){if(e!==r)return!1}return!l(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(l(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}})),i.register("bfDOD",(function(e,n){var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?t:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}})),i.register("8Wg0p",(function(e,t){var n=i("k0uab")("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n})),i.register("dYVlV",(function(e,n){var r=i("6Y9zB"),o=i("bfDOD"),a=i("bh6VG"),l=a("Object.prototype.toString"),s=i("62xi1")(),u=i("8Wg0p"),c="undefined"==typeof globalThis?t:globalThis,f=o(),d=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},p=a("String.prototype.slice"),h={},m=Object.getPrototypeOf;s&&u&&m&&r(f,(function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=m(t),r=u(n,Symbol.toStringTag);if(!r){var o=m(n);r=u(o,Symbol.toStringTag)}h[e]=r.get}}));e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=p(l(e),8,-1);return d(f,t)>-1}return!!u&&function(e){var t=!1;return r(h,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}})),i.register("90FXD",(function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}})),i.register("6cuMU",(function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}}));var a,l={};l=i("cjuLU"),i("fYo6y");var s={};!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),a=(s=i("gAtBI")).createRoot,s.hydrateRoot;var u,c=i("fYo6y"),f=(c=i("fYo6y"),{});function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){p(e,t,n[t])}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={},m=(ee=i("7A3vo")).OrderedMap;h={createFromArray:function(e){return m(e.map((function(e){return[e.getKey(),e]})))}};var g={};var v=(ee=i("7A3vo")).Map,y=ee.OrderedSet,b=ee.Record,x=y(),w={style:x,entity:null},S=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return k;var t=v({style:x,entity:null}).merge(e),n=E.get(t);if(n)return n;var o=new r(t);return E=E.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?y(t):t,entity:Array.isArray(n)?y(n):n})},r}(b(w)),k=new S,E=v([[v(w),k]]);S.EMPTY=k,g=S;var _={};var C={};C=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var O=(ee=i("7A3vo")).List,P=ee.Map,j=ee.OrderedSet,T=ee.Record,M=ee.Repeat,D=j(),R=T({key:"",type:"unstyled",text:"",characterList:O(),depth:0,data:P()}),A=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=O(M(g.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():D},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){C(this.getCharacterList(),N,e,t)},o.findEntityRanges=function(e,t){C(this.getCharacterList(),I,e,t)},r}(R);function N(e,t){return e.getStyle()===t.getStyle()}function I(e,t){return e.getEntity()===t.getEntity()}_=A;var L={};var F=(ee=i("7A3vo")).List,z=ee.Map,B=ee.OrderedSet,K=ee.Record,U=ee.Repeat,V=B(),H={parent:null,characterList:F(),data:z(),depth:0,key:"",text:"",type:"unstyled",children:F(),prevSibling:null,nextSibling:null},$=function(e,t){return e.getStyle()===t.getStyle()},W=function(e,t){return e.getEntity()===t.getEntity()},q=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=F(U(g.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():V},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){C(this.getCharacterList(),$,e,t)},o.findEntityRanges=function(e,t){C(this.getCharacterList(),W,e,t)},r}(K(H));L=q;var Y={},G={},J=(ee=i("7A3vo")).Map;function X(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),l=t.getEndKey(),s=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===l})).concat(J([[l,o.get(l)]])).map((function(e,t){var o,u;i===l?(o=a,u=s):(o=t===i?a:0,u=t===l?s:e.getLength());for(var c,f=e.getCharacterList();o<u;)c=f.get(o),f=f.set(o,r?g.applyStyle(c,n):g.removeStyle(c,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}G={add:function(e,t,n){return X(e,t,n,!0)},remove:function(e,t,n){return X(e,t,n,!1)}};var Q={},Z={};Z=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,g.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)};var ee=i("7A3vo");Q=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(ee.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,s=t===a?l:e.getLength();return Z(e,r,s,n)}));return e.merge({blockMap:r.merge(s),selectionBefore:t,selectionAfter:t})};var te={},ne={};ne={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,l=r,s=null,u=null,c=0;c<i.length;c++){if(e<(a=l+i[c].length)&&l<t)null!==s||(s=l),u=a;else if(null!==s)break;l=a}var f=r+n.length,d=s===r,p=u===f;return(!d&&p||d&&!p)&&("forward"===o?u!==f&&u++:s!==r&&s--),{start:s,end:u}}};var re={},oe=i("i5xG3");re=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),!n.length&&oe(!1),n};oe=i("i5xG3");function ie(e,t,n,r,o,i,a){var l=n.getStartOffset(),s=n.getEndOffset(),u=e.__get(o).getMutability(),c=a?l:s;if("MUTABLE"===u)return n;var f=re(t,o).filter((function(e){return c<=e.end&&c>=e.start}));1!=f.length&&oe(!1);var d=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?s=d.end:l=d.start);var p=ne.getRemovalRange(l,s,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}te=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),l=t.getEntityAt(i),s=n.getEntityAt(a-1);if(!l&&!s)return r;var u=r;if(l&&l===s)u=ie(e,t,u,o,l,!0,!0);else if(l&&s){var c=ie(e,t,u,o,l,!1,!0),f=ie(e,n,u,o,s,!1,!1);u=u.merge({anchorOffset:c.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(l){var d=ie(e,t,u,o,l,!1,!0);u=u.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(s){var p=ie(e,n,u,o,s,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u};var ae={},le={},se={},ue={},ce=Math.pow(2,24);se=function(){for(var e;void 0===e||ue.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*ce).toString(32);return ue[e]=!0,e};var fe=(ee=i("7A3vo")).OrderedMap;le=function(e){return e.first()instanceof L?function(e){var t,n={};return fe(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),s=r.getChildKeys(),u=r.getParentKey(),c=se();if(n[i]=c,a&&(e.get(a)?e.setIn([a,"prevSibling"],c):e.setIn([i,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],c):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"children"],f.set(f.indexOf(r.getKey()),c))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],c),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);s.forEach((function(t){e.get(t)?e.setIn([t,"parent"],c):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return fe(e.toArray().map((function(e){var t=se();return[t,e.set("key",t)]})))}(e)};var de={};oe=i("i5xG3");function pe(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,l=i?i.getEntity():void 0;if(l&&l===a&&"MUTABLE"!==e.__get(l).getMutability()){for(var s,u=function(e,t,n){var r;return C(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&oe(!1),r}(r,l,n),c=u.start,f=u.end;c<f;)s=r.get(c),r=r.set(c,g.applyEntity(s,null)),c++;return t.set("characterList",r)}return t}de=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),l=n.get(i),s=pe(r,l,a);s!==l&&(o[i]=s);var u=t.getEndKey(),c=t.getEndOffset(),f=n.get(u);i===u&&(f=s);var d=pe(r,f,c);return d!==f&&(o[u]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)};ae=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=de(e,t).getBlockMap(),l=a.keySeq(),s=l.indexOf(n),u=l.indexOf(o)+1;return le(a.slice(s,u).map((function(e,t){var a=e.getText(),l=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:l.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:l.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:l.slice(0,i)}):e})))};ee=i("7A3vo");var he={},me=(ee=i("7A3vo"),{});me=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r};oe=i("i5xG3");var ge=ee.List,ve=function(e,t,n,r,o,i){var a=n.first()instanceof L,l=[],s=r.size,u=n.get(o),c=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),m=a&&(!u.getChildKeys().isEmpty()||!c.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(m?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),l=n.first();return e.merge({text:i+l.getText(),characterList:a.concat(l.getCharacterList()),type:i?e.getType():l.getType(),data:l.getData()})}(e,i,r)),r.slice(m?0:1,s-1).forEach((function(e){return l.push(e)})),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),l=o.slice(t,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(l),data:s.getData()})}(e,i,r))):l.push(e)}));var g=h.createFromArray(l);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),l=n.getParentKey(),s=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=s[s.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),s.forEach((function(e){return t.setIn([e,"parent"],l)})),l){var c=e.get(l).getChildKeys(),f=c.indexOf(o)+1,d=c.toArray();d.splice.apply(d,[f,0].concat(s)),t.setIn([l,"children"],ge(d))}}))}(g,0,u,c)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})};he=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";!t.isCollapsed()&&oe(!1);var o=e.getBlockMap(),i=le(n),a=t.getStartKey(),l=t.getStartOffset(),s=o.get(a);return s instanceof L&&!s.getChildKeys().isEmpty()&&oe(!1),1===i.size?function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",l=n.get(o),s=l.getText(),u=l.getCharacterList(),c=o,f=i+r.getText().length,d=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var p=l.getType();s&&"unstyled"===p&&(p=r.getType());var h=l.merge({text:s.slice(0,i)+r.getText()+s.slice(i),characterList:me(u,r.getCharacterList(),i),type:p,data:d});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:f,focusKey:c,focusOffset:f,isBackward:!1})})}(e,t,o,i.first(),a,l,r):ve(e,t,o,i,a,l)};var ye={},be=(ee=i("7A3vo"),oe=i("i5xG3"),ee.Repeat);ye=function(e,t,n,r){!t.isCollapsed()&&oe(!1);var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),l=t.getStartOffset(),s=i.get(a),u=s.getText(),c=s.merge({text:u.slice(0,l)+n+u.slice(l,s.getLength()),characterList:me(s.getCharacterList(),be(r,o).toList(),l)}),f=l+o;return e.merge({blockMap:i.set(a,c),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})};oe=i("i5xG3");var xe={},we=(ee=i("7A3vo")).Map;xe=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(we([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})};var Se={},ke={};ke=function(e,t){if(!(e instanceof L))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null};(ee=i("7A3vo")).List;var Ee=ee.Map,_e=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Ce=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},Oe=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},Pe=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},je=function(e,t,n,r){return e.withMutations((function(o){if(_e(t.getKey(),o,(function(e){return e.merge({nextSibling:Oe(e,o,r),prevSibling:Pe(e,o,r)})})),_e(n.getKey(),o,(function(e){return e.merge({nextSibling:Oe(e,o,r),prevSibling:Pe(e,o,r)})})),Ce(t.getKey(),r).forEach((function(e){return _e(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Oe(e,o,r),prevSibling:Pe(e,o,r)})}))})),_e(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),_e(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:Oe(e,o,r)})})),_e(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:Pe(e,o,r)})})),_e(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),Ce(n.getKey(),r).forEach((function(e){_e(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Oe(e,o,r),prevSibling:Pe(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=ke(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?ke(o,t):null}return n}(n,r).forEach((function(e){return _e(e,o,(function(e){return e.merge({nextSibling:Oe(e,o,r),prevSibling:Pe(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();_e(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),_e(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,l=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){_e(e,o,(function(e){return e.merge({parent:l})}))})),null!=l){var s=e.get(l);_e(l,o,(function(e){return e.merge({children:s.getChildKeys().concat(t.getChildKeys())})}))}_e(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},Te=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};Se=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=r.get(o),u=r.get(a),c=s instanceof L,f=[];if(c){var d=u.getChildKeys(),p=Ce(a,r);u.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(Ce(ke(u,r),r))}n=s===u?Te(s.getCharacterList(),i,l):s.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(l));var h=s.merge({text:s.getText().slice(0,i)+u.getText().slice(l),characterList:n}),m=c&&0===i&&0===l&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?Ee([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(Ee([[a,null]])).map((function(e,t){return t===o?h:null})),g=r.merge(m).filter((function(e){return!!e}));return c&&s!==u&&(g=je(g,s,u,r)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})};var Me={},De=(ee=i("7A3vo"),oe=i("i5xG3"),ee.List),Re=ee.Map,Ae=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};Me=function(e,t){!t.isCollapsed()&&oe(!1);var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return xe(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var l=t.getAnchorOffset(),s=o.getCharacterList(),u=se(),c=o instanceof L,f=o.merge({text:i.slice(0,l),characterList:s.slice(0,l)}),d=f.merge({key:u,text:i.slice(l),characterList:s.slice(l),data:Re()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),m=p.concat([[n,f],[u,d]],h).toOrderedMap();return c&&(!o.getChildKeys().isEmpty()&&oe(!1),m=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();Ae(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:De(i)})})),Ae(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),Ae(r,e,(function(e){return e.merge({nextSibling:o})})),Ae(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(m,f,d)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})};var Ne=ee.OrderedSet,Ie={replaceText:function(e,t,n,r,o){var i=de(e,t),a=Se(i,t),l=g.create({style:r||Ne(),entity:o||null});return ye(a,a.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return!t.isCollapsed()&&oe(!1),Ie.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=ae(e,t),o=Ie.removeRange(e,t,"backward");return Ie.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=de(e,t),i=Se(o,t);return he(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var l=t.getStartOffset(),s=t.getEndOffset(),u=i.getEntityAt(l),c=a.getEntityAt(s-1);if(r===o&&u&&u===c){var f=te(e.getEntityMap(),i,a,t,n);return Se(e,f)}var d=de(e,t);return Se(d,t)},splitBlock:function(e,t){var n=de(e,t),r=Se(n,t);return Me(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return G.add(e,t,n)},removeInlineStyle:function(e,t,n){return G.remove(e,t,n)},setBlockType:function(e,t,n){return xe(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return xe(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return xe(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=de(e,t);return Q(r,t,n)}};Y=Ie;var Le={};function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ze(e,t,n[t])}))}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be={};function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ue={};Ue=function(e){return Object.keys(e).map((function(t){return e[t]}))};var Ve=(ee=i("7A3vo")).List,He=ee.Repeat,$e=ee.Record,We=function(){return!0},qe=$e({start:null,end:null}),Ye=$e({start:null,end:null,decoratorKey:null,leaves:null});function Ge(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return C(r,Je,We,(function(e,r){n.push(new qe({start:e+t,end:r+t}))})),Ve(n)}function Je(e,t){return e===t}Be={generate:function(e,t,n){var r=t.getLength();if(!r)return Ve.of(new Ye({start:0,end:0,decoratorKey:null,leaves:Ve.of(new qe({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):Ve(He(null,r)),a=t.getCharacterList();return C(i,Je,We,(function(e,t){o.push(new Ye({start:e,end:t,decoratorKey:i.get(e),leaves:Ge(a.slice(e,t).toList(),e)}))})),Ve(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new Ye(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ke(e,t,n[t])}))}return e}({},n,{leaves:null!=t?Ve(Array.isArray(t)?t:Ue(t)).map((function(e){return qe(e)})):null}))}};var Xe={};function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ze(e,t,n[t])}))}return e}function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var et={};function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nt={};var rt=(0,(ee=i("7A3vo")).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object});nt=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}(rt);ee=i("7A3vo"),oe=i("i5xG3");var ot={};ot=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};var it=(0,ee.Map)(),at=ot();function lt(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var st={getLastCreatedEntityKey:function(){return lt("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),st.__getLastCreatedEntityKey()},create:function(e,t,n){return lt("DraftEntity.create","contentState.createEntity"),st.__create(e,t,n)},add:function(e){return lt("DraftEntity.add","contentState.addEntity"),st.__add(e)},get:function(e){return lt("DraftEntity.get","contentState.getEntity"),st.__get(e)},__getAll:function(){return it},__loadWithEntities:function(e){it=e,at=ot()},mergeData:function(e,t){return lt("DraftEntity.mergeData","contentState.mergeEntityData"),st.__mergeData(e,t)},replaceData:function(e,t){return lt("DraftEntity.replaceData","contentState.replaceEntityData"),st.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return at},__create:function(e,t,n){return st.__add(new nt({type:e,mutability:t,data:n||{}}))},__add:function(e){return at=ot(),it=it.set(at,e),at},__get:function(e){var t=it.get(e);return!t&&oe(!1),t},__mergeData:function(e,t){var n=st.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tt(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return it=it.set(e,o),o},__replaceData:function(e,t){var n=st.__get(e).set("data",t);return it=it.set(e,n),n}};et=st;var ut={};var ct=(0,(ee=i("7A3vo")).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1});ut=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var l=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=l&&n>=l},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}(ct);var ft;ft=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]};ee=i("7A3vo");var dt={},pt=new RegExp("\r","g");dt=function(e){return e.replace(pt,"")};var ht=ee.List,mt=ee.Record,gt=ee.Repeat,vt=ee.Map,yt=ee.OrderedMap,bt=mt({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),xt=ft("draft_tree_data_support")?L:_;Xe=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return et},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return et.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return et.__create(e,t,n),this},o.mergeEntityData=function(e,t){return et.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return et.__replaceData(e,t),this},o.addEntity=function(e){return et.__add(e),this},o.getEntity=function(e){return et.__get(e)},o.getAllEntities=function(){return et.__getAll()},o.loadWithEntities=function(e){return et.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=h.createFromArray(n),i=o.isEmpty()?new ut:ut.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||et,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=dt(e),new xt({key:se(),text:e,type:"unstyled",characterList:ht(gt(g.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(Qe({},e,{blockMap:yt(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new ut(e.selectionBefore),selectionAfter:new ut(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new xt(Qe({},e,{data:vt(e.data),characterList:null!=t?ht((Array.isArray(t)?t:Ue(t)).map((function(e){return g.fromJS(e)}))):void 0}))},r}(bt);var wt={},St={};function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Et=i("gnxI6"),_t=i("1hPeP");oe=i("i5xG3");St=function(){function e(e){kt(this,"_defaultDir",void 0),kt(this,"_lastDir",void 0),e?!_t.isStrong(e)&&oe(!1):e=_t.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=Et.getDirection(e,this._lastDir),this._lastDir},e}();ee=i("7A3vo");var Ct,Ot=i("fP8fs"),Pt=ee.OrderedMap;wt={getDirectionMap:function(e,t){Ct?Ct.reset():Ct=new St;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return Ot(Ct).getDirection(e.getText())})),o=Pt(n.keySeq().zip(r));return null!=t&&ee.is(t,o)?t:o}};var jt=(ee=i("7A3vo")).OrderedSet,Tt=ee.Record,Mt=ee.Stack,Dt=ee.OrderedMap,Rt=ee.List,At=Tt({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Mt(),selection:null,treeMap:null,undoStack:Mt()}),Nt=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(Xe.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:Mt(),redoStack:Mt(),decorator:n||null,selection:ut.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=Fe({},e,{treeMap:Lt(n,e.decorator),directionMap:wt.getDirectionMap(n)});return new t(new At(r))},t.fromJS=function(e){return new t(new At(Fe({},e,{directionMap:null!=e.directionMap?Dt(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?jt(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?Xe.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?Mt(e.redoStack.map((function(e){return Xe.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new ut(e.selection):e.selection,treeMap:null!=e.treeMap?Dt(e.treeMap).map((function(e){return Rt(e).map((function(e){return Be.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?Mt(e.undoStack.map((function(e){return Xe.fromJS(e)}))):e.undoStack,currentContent:Xe.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,l=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return Be.generate(e,t,r)})))}(i,i.getBlockMap(),l,o,r):Lt(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return Be.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)})))};var e=t.prototype;function t(e){ze(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):Ft(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):Ft(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return It(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),It(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new ut({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=wt.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),s=e.getUndoStack(),u=n;a!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(s=s.push(l),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",l.getSelectionBefore()));var c=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(c=null);var f={currentContent:u,directionMap:i,undoStack:s,redoStack:Mt(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:c};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=wt.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=wt.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function It(e,t,n){return Nt.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function Lt(e,t){return e.getBlockMap().map((function(n){return Be.generate(e,n,t)})).toOrderedMap()}function Ft(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):jt()}Le=Nt;ee=i("7A3vo");var zt={},Bt=(ee=i("7A3vo"),oe=i("i5xG3"),ee.OrderedMap),Kt=ee.List,Ut=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Vt=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),l=n.getKey(),s=t.getParentKey(),u=t.getNextSiblingKey(),c=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():l,p=i?l:n.getPrevSiblingKey();return e.withMutations((function(e){Ut(s,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),Ut(c,e,(function(e){return e.merge({nextSibling:u})})),Ut(u,e,(function(e){return e.merge({prevSibling:c})})),Ut(d,e,(function(e){return e.merge({prevSibling:a})})),Ut(p,e,(function(e){return e.merge({nextSibling:a})})),Ut(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(l),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:Kt(o)})})),Ut(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};zt=function(e,t,n,r){"replace"===r&&oe(!1);var o=n.getKey(),i=t.getKey();i===o&&oe(!1);var a=e.getBlockMap(),l=t instanceof L,s=[t],u=a.delete(i);l&&(s=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=ke(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,l=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||l)})).forEach((function(t){s.push(t),e.delete(t.getKey())}))})));var c=u.toSeq().takeUntil((function(e){return e===n})),f=u.toSeq().skipUntil((function(e){return e===n})).skip(1),d=s.map((function(e){return[e.getKey(),e]})),p=Bt();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&oe(!1),p=c.concat([].concat(d,[[o,n]]),f).toOrderedMap()}else if("after"===r){var m=e.getBlockAfter(o);m&&m.getKey()===i&&oe(!1),p=c.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:Vt(p,t,n,r,l),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})};var Ht=ft("draft_tree_data_support"),$t=Ht?L:_,Wt=ee.List,qt=ee.Repeat;u={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=Y.removeRange(r,o,"backward"),a=i.getSelectionAfter(),l=Y.splitBlock(i,a),s=l.getSelectionAfter(),u=Y.setBlockType(l,s,"atomic"),c=g.create({entity:t}),f={key:se(),type:"atomic",text:n,characterList:Wt(qt(c,n.length))},p={key:se(),type:"unstyled"};Ht&&(f=d({},f,{nextSibling:p.key}),p=d({},p,{prevSibling:f.key}));var m=[new $t(f),new $t(p)],v=h.createFromArray(m),y=Y.replaceWithFragment(u,s,v),b=y.merge({selectionBefore:o,selectionAfter:y.getSelectionAfter().set("hasFocus",!0)});return Le.push(e,b,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var l=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=zt(i,t,l,r)}else{var s=Y.removeRange(i,n,"backward"),u=s.getSelectionAfter(),c=s.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=zt(s,t,c,"before");else if(u.getEndOffset()===c.getLength())o=zt(s,t,c,"after");else{var f=Y.splitBlock(s,u),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=zt(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return Le.push(e,h,"move-block")}};var Yt;var Gt=(ee=i("7A3vo")).List;Yt=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),Gt(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();c=i("fYo6y");var Jt,Xt=i("hk8oT"),Qt=(0,(ee=i("7A3vo")).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:c.createElement("ul",{className:Xt("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:c.createElement("ol",{className:Xt("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:c.createElement("pre",{className:Xt("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});Jt=Qt;var Zt;Zt={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};var en,tn=i("5J2NM");function nn(){return nn=tn||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nn.apply(this,arguments)}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){an(e,t,n[t])}))}return e}function on(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var sn,un={};function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fn=i("2BAv2"),dn={},pn=i("9HZzX"),hn={},mn=i("fOE7D");hn=function e(t){if(mn(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},dn=function(e){for(var t=e;t&&t!==pn(e).documentElement;){var n=hn(t);if(null!=n)return n;t=t.parentNode}return null};var gn={};gn=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};ee=i("7A3vo"),oe=i("i5xG3"),Ot=i("fP8fs");var vn=ee.Map,yn={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},bn=fn.isBrowser("IE <= 11");un=function(){function e(e){var t=this;cn(this,"observer",void 0),cn(this,"container",void 0),cn(this,"mutations",void 0),cn(this,"onCharData",void 0),this.container=e,this.mutations=vn();var n=gn(e);n.MutationObserver&&!bn?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){!(e.target instanceof Node)&&oe(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,yn):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=vn(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return bn?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=Ot(dn(e.target));this.mutations=this.mutations.set(n,t)}},e}();var xn=i("56j1y"),wn={};wn={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105};fn=i("2BAv2");var Sn,kn=i("lCBmk"),En={},_n=(oe=i("i5xG3"),i("hv7Tb"));En=function(e){var t=e.editorContainer;return!t&&oe(!1),!_n(t.firstChild)&&oe(!1),t.firstChild};var Cn={},On={},Pn={};xn=i("56j1y"),Ot=i("fP8fs");Pn=function(e,t,n,r,o){var i=Ot(e.getSelection());if(!t||!r)return i;var a=xn.decode(t),l=a.blockKey,s=e.getBlockTree(l),u=s&&s.getIn([a.decoratorKey,"leaves",a.leafKey]),c=xn.decode(r),f=c.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([c.decoratorKey,"leaves",c.leafKey]);if(!u||!p)return i;var h=u.get("start"),m=p.get("start"),g=u?h+n:null,v=p?m+o:null;if(i.getAnchorKey()===l&&i.getAnchorOffset()===g&&i.getFocusKey()===f&&i.getFocusOffset()===v)return i;var y=!1;if(l===f){var b=u.get("end"),x=p.get("end");y=m===h&&x===b?o<n:m<h}else{y=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===l||e===f})).first()===f}return i.merge({anchorKey:l,anchorOffset:g,focusKey:f,focusOffset:v,isBackward:y})};oe=i("i5xG3"),mn=i("fOE7D"),Ot=i("fP8fs");function jn(e,t,n){var r=t,o=dn(r);(null==o&&(!e||e!==r&&e.firstChild!==r)&&oe(!1),e===r)&&(r=r.firstChild,!mn(r)&&oe(!1),"true"!==(r=r).getAttribute("data-contents")&&oe(!1),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(mn(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||hn(e.firstChild));)e=e.firstChild;return e}(r);i=Ot(hn(a))}return{key:i,offset:0}}var l=r.childNodes[n-1],s=null,u=null;if(hn(l)){var c=function(e){for(;e.lastChild&&(mn(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||hn(e.lastChild));)e=e.lastChild;return e}(l);s=Ot(hn(c)),u=Tn(c)}else s=Ot(o),u=Tn(l);return{key:s,offset:u}}function Tn(e){var t=e.textContent;return"\n"===t?0:t.length}On=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,l=o.nodeType===Node.TEXT_NODE;if(a&&l)return{selectionState:Pn(e,Ot(dn(n)),r,Ot(dn(o)),i),needsRecovery:!1};var s=null,u=null,c=!0;return a?(s={key:Ot(dn(n)),offset:r},u=jn(t,o,i)):l?(u={key:Ot(dn(o)),offset:i},s=jn(t,n,r)):(s=jn(t,n,r),u=jn(t,o,i),n===o&&r===i&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:Pn(e,s.key,s.offset,u.key,u.offset),needsRecovery:c}},Cn=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:On(e,t,r,o,i,a)},Sn=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();kn.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=Cn(n,En(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?Le.forceSelection(n,o):Le.acceptSelection(n,o),e.update(n))}};var Mn,Dn={};var Rn=(Mn={notEmptyKey:function(e){return null!=e&&""!=e}}).notEmptyKey;function An(e,t){return Rn(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}Dn=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:An(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),l=e.getBlockForKey(i);return n=a===l.getLength()?null:l.getEntityAt(a),An(e.getEntityMap(),n)};Ot=i("fP8fs");var Nn=fn.isBrowser("IE"),In=!1,Ln=!1,Fn=null;var zn={onCompositionStart:function(e){Ln=!0,function(e){Fn||(Fn=new un(En(e))).start()}(e)},onCompositionEnd:function(e){In=!1,Ln=!1,setTimeout((function(){In||zn.resolveComposition(e)}),20)},onSelect:Sn,onKeyDown:function(e,t){if(!Ln)return zn.resolveComposition(e),void e._onKeyDown(t);t.which!==wn.RIGHT&&t.which!==wn.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===wn.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!Ln){var t=Ot(Fn).stopAndFlushMutations();Fn=null,In=!0;var n=Le.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=xn.decode(t),i=o.blockKey,a=o.decoratorKey,l=o.leafKey,s=n.getBlockTree(i).getIn([a,"leaves",l]),u=s.start,c=s.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:c,isBackward:!1}),d=Dn(r,f),p=r.getBlockForKey(i).getInlineStyleAt(u);r=Y.replaceText(r,f,e,p,d),n=Le.set(n,{currentContent:r})}));var o=Cn(n,En(e)).selectionState;e.restoreEditorDOM();var i=Nn?Le.forceSelection(n,o):Le.acceptSelection(n,o);e.update(Le.push(i,r,"insert-characters"))}else e.update(n)}}};sn=zn;var Bn,Kn=ft("draft_tree_data_support");Bn=i(Kn?"jaDLD":"cKZJh");var Un,Vn={},Hn={},$n={isImage:function(e){return"image"===Wn(e)[0]},isJpeg:function(e){var t=Wn(e);return $n.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function Wn(e){return e.split("/")}Hn=$n;var qn={};oe=i("i5xG3");qn=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&oe(!1),"number"!=typeof t&&oe(!1),0!==t&&!(t-1 in e)&&oe(!1),"function"==typeof e.callee&&oe(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};var Yn;function Gn(e){return function(){return e}}var Jn=function(){};Jn.thatReturns=Gn,Jn.thatReturnsFalse=Gn(!1),Jn.thatReturnsTrue=Gn(!0),Jn.thatReturnsNull=Gn(null),Jn.thatReturnsThis=function(){return this},Jn.thatReturnsArgument=function(e){return e},Yn=Jn;var Xn=new RegExp("\r\n","g"),Qn={"text/rtf":1,"text/html":1};function Zn(e){if("file"==e.kind)return e.getAsFile()}Vn=function(){function e(e){this.data=e,this.types=e.types?qn(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return Qn[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(Xn,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!Hn.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(Zn).filter(Yn.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}();pn=i("9HZzX");var er={},tr=(oe=i("i5xG3"),/\.textClipping$/),nr={"text/plain":!0,"text/html":!0,"text/rtf":!0};er=function(e,n){var r=0,o=[];e.forEach((function(i){!function(e,n){if(!t.FileReader||e.type&&!(e.type in nr))return void n("");if(""===e.type){var r="";return tr.test(e.name)&&(r=e.name.replace(tr,"")),void n(r)}var o=new FileReader;o.onload=function(){var e=o.result;"string"!=typeof e&&oe(!1),n(e)},o.onerror=function(){n("")},o.readAsText(e)}(i,(function(t){r++,t&&o.push(t.slice(0,5e3)),r==e.length&&n(o.join("\r"))}))}))};var rr={};rr=function(e){return"handled"===e||!0===e};Ot=i("fP8fs");function or(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:gn(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function ir(e,t,n){var r=Y.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return Le.push(e,r,"insert-fragment")}Un={onDragEnd:function(e){e.exitCurrentMode(),or(e)},onDrop:function(e,t){var n=new Vn(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=pn(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=Ot(n),r=Ot(r);var a=Ot(dn(n));return Pn(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&rr(e.props.handleDroppedFiles(o,i)))return;er(i,(function(t){t&&e.update(ir(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&rr(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=Y.moveText(e.getCurrentContent(),e.getSelection(),t);return Le.push(e,n,"insert-fragment")}(r,o)):e.update(ir(r,o,n.getText()))),or(e)}}}};fn=i("2BAv2"),fn=i("2BAv2");var ar,lr,sr={};sr=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};Ot=i("fP8fs");var ur={},cr=i("9Mq5w");!function(e,t){if(!e.setImmediate){var n,r,o,i,a,l=1,s={},u=!1,c=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){cr.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return s[l]=o,n(l),l++},f.clearImmediate=d}function d(e){delete s[e]}function p(e){if(u)setTimeout(p,0,e);else{var n=s[e];if(n){u=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),u=!1}}}}}("undefined"==typeof self?void 0===t?{}:t:self),ur=t.setImmediate;var fr="'",dr="/",pr=fn.isBrowser("Firefox");function hr(e,t,n,r,o){var i=Y.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return Le.push(e,i,"insert-characters",o)}lr=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&rr(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(hr(n,r,n.getCurrentInlineStyle(),Dn(n.getCurrentContent(),n.getSelection()),!0));var l,s=hr(n,r,n.getCurrentInlineStyle(),Dn(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=sr(e._latestCommittedEditorState)),!u){var c=n.getBlockTree(a),f=s.getBlockTree(a);u=c.size!==f.size||c.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),l=t.get("end"),s=l+(l>=i?r.length:0),u=n.get("start"),c=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==u||s!==c||null!=f&&c-u!=l-o}))}if(u||(l=r,u=pr&&(l==fr||l==dr)),u||(u=Ot(s.getDirectionMap()).get(a)!==Ot(n.getDirectionMap()).get(a)),u)return t.preventDefault(),s=Le.set(s,{forceSelection:!0}),void e.update(s);s=Le.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,ur((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}};var mr,gr=i("fXTIM"),vr=i("fu9ek");mr=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&vr(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&gr(o,r.anchorNode)&&gr(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var l=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(Le.acceptSelection(i,l))}};var yr;yr=function(e,t){e.setMode("composite"),e.update(Le.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)};var br,xr={};xr=function(e){var t=e.getSelection();return t.isCollapsed()?null:ae(e.getCurrentContent(),t)},br=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(xr(e._latestEditorState))};var wr,Sr=i("f6H7i"),kr=i("3LqfB"),Er={};Er=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1},wr=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(Er(i)){var a=i;n=kr(Sr.getScrollParent(a))}var l=xr(r);e.setClipboard(l),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=Y.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return Le.push(e,t,"remove-range")}(r))}),0)}};var _r;_r=function(e,t){e.setMode("drag"),t.preventDefault()};var Cr;Cr=function(e){e._internalDrag=!0,e.setMode("drag")};var Or;fn=i("2BAv2");Or=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),fn.isBrowser("Chrome < 60.0.3081.0")?e.update(Le.forceSelection(n,o)):e.update(Le.acceptSelection(n,o))}};xn=i("56j1y"),fn=i("2BAv2");var Pr,jr=Mn.notEmptyKey,Tr={},Mr={},Dr=(oe=i("i5xG3"),55296),Rr=57343,Ar=/[\uD800-\uDFFF]/;function Nr(e){return Dr<=e&&e<=Rr}function Ir(e){return Ar.test(e)}function Lr(e,t){return 1+Nr(e.charCodeAt(t))}function Fr(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!Ir(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=Lr(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=Lr(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=Lr(e,i);return e.substring(o,i)}Mr={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=Lr(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:Lr,hasSurrogateUnit:Ir,isCodeUnitInSurrogateRange:Nr,isSurrogatePair:function(e,t){if(!(0<=t&&t<e.length)&&oe(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return Dr<=n&&n<=56319&&56320<=r&&r<=Rr},strlen:function(e){if(!Ir(e))return e.length;for(var t=0,n=0;n<e.length;n+=Lr(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return Fr(e,t=t<n?t:n,r)},substr:Fr};var zr={};zr=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,l=0;if(t>i){var s=r.getKeyBefore(o);if(null==s)a=o;else a=s,l=r.getBlockForKey(s).getText().length}else l=i-t;return n.merge({focusKey:a,focusOffset:l,isBackward:!0})};var Br={},Kr=ft("draft_tree_data_support");Br=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),l=r.getFocusKey(),s=o.getBlockForKey(a);if(Kr&&"forward"===n&&a!==l)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(Kr)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(s.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return Y.removeRange(o,i,n)},Tr=function(e){var t=Br(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return zr(e,i?Mr.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Le.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")};Ot=i("fP8fs");var Ur=fn.isEngine("Gecko");Pr=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var l=a.firstChild;null!=l;l=l.nextSibling)l!==r&&a.removeChild(l)}var s=r.textContent,u=e._latestEditorState,c=Ot(dn(r)),f=xn.decode(c),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,m=u.getBlockTree(d).getIn([p,"leaves",h]),g=m.start,v=m.end,y=u.getCurrentContent(),b=y.getBlockForKey(d),x=b.getText().slice(g,v);if(s.endsWith("\n\n")&&(s=s.slice(0,-1)),s!==x){var w,S,k,E,_=u.getSelection(),C=_.merge({anchorOffset:g,focusOffset:v,isBackward:!1}),O=b.getEntityAt(g),P=jr(O)?y.getEntity(O):null,j="MUTABLE"===(null!=P?P.getMutability():null),T=j?"spellcheck-change":"apply-entity",M=Y.replaceText(y,C,s,b.getInlineStyleAt(g),j?b.getEntityAt(g):null);if(Ur)w=n.anchorOffset,S=n.focusOffset,E=(k=g+Math.min(w,S))+Math.abs(w-S),w=k,S=E;else{var D=s.length-x.length;k=_.getStartOffset(),E=_.getEndOffset(),w=o?E+D:k,S=E+D}var R=M.merge({selectionBefore:y.getSelectionAfter(),selectionAfter:_.merge({anchorOffset:w,focusOffset:S})});e.update(Le.push(u,R,T))}else{var A=t.nativeEvent.inputType;if(A){var N=function(e,t){return"deleteContentBackward"===e?Tr(t):t}(A,u);if(N!==u)return e.restoreEditorDOM(),void e.update(N)}}}};var Vr,Hr,$r;$r=function(e){return e.which===wn.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))};var Wr=(fn=i("2BAv2")).isPlatform("Mac OS X"),qr={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return Wr&&e.altKey},usesMacOSHeuristics:function(){return Wr},hasCommandModifier:function(e){return Wr?!!e.metaKey&&!e.altKey:qr.isCtrlKeyCommand(e)},isSoftNewlineEvent:$r};Hr=qr;var Yr={},Gr=(Ot=i("fP8fs"),null);Yr={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=Ot(r),Gr=ae(t,r);var l=Y.removeRange(t,r,"forward");return l===t?e:Le.push(e,l,"remove-range")},paste:function(e){if(!Gr)return e;var t=Y.replaceWithFragment(e.getCurrentContent(),e.getSelection(),Gr);return Le.push(e,t,"insert-fragment")}};fn=i("2BAv2");var Jr={},Xr={},Qr=(pn=i("9HZzX"),{}),Zr=(fn=i("2BAv2"),oe=i("i5xG3"),fn.isBrowser("Chrome"));Qr=Zr?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}oe(!1)}:function(e){return Array.from(e.getClientRects())};oe=i("i5xG3");function eo(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var l=e[a];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),o=Math.max(o,l.top),i=Math.max(i,l.bottom))}return o<=r&&o-n<t&&i-r<t}function to(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}Xr=function(e){!e.collapsed&&oe(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=pn(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;!o&&oe(!1),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);eo(Qr(e),n)&&(r=e.startContainer,o=e.startOffset,!r.parentNode&&oe(!1),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var l=i.nodeValue,s=a;s>=0;s--)if(!(null!=l&&s>0&&Mr.isSurrogatePair(l,s-1))){if(e.setStart(i,s),!eo(Qr(e),n))break;r=i,o=s}if(-1===s||0===i.childNodes.length)break;a=to(i=i.childNodes[s])}return e.setStart(r,o),e},Jr=function(e,t){var n=Br(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return zr(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=Xr(r),On(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:Le.push(e,n,"remove-range")};var no={},ro={},oo="['‘’]",io="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟：-？！-／［-｀｛-･⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),ao=new RegExp("^(?:"+io+")*(?:"+oo+"|(?!"+io+").)*(?:(?!"+io+").)"),lo=new RegExp("(?:(?!"+io+").)(?:"+oo+"|(?!"+io+").)*(?:"+io+")*$");function so(e,t){var n=t?lo.exec(e):ao.exec(e);return n?n[0]:e}ro={getBackward:function(e){return so(e,!0)},getForward:function(e){return so(e,!1)}},no=function(e){var t=Br(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return zr(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=ro.getBackward(o);return zr(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:Le.push(e,t,"remove-range")};var uo={},co={};co=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),l=o;return t>a.getBlockForKey(o).getText().length-i?(l=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:l,focusOffset:n})},uo=function(e){var t=Br(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=ro.getForward(o);return co(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:Le.push(e,t,"remove-range")};var fo={};fo=function(e){var t=Y.splitBlock(e.getCurrentContent(),e.getSelection());return Le.push(e,t,"split-block")};var po={};po=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return Le.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})};var ho={};ho=function(e){var t=e.getSelection(),n=t.getStartKey();return Le.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})};var mo={};mo=function(e){var t=Br(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return co(e,i?Mr.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Le.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")};var go={};go=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),l=a.getBlockForKey(i).getLength();if(l<=1)return e;n===l?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var s=ae(a,r),u=Y.removeRange(a,r,"backward"),c=u.getSelectionAfter(),f=c.getAnchorOffset()-1,d=c.merge({anchorOffset:f,focusOffset:f}),p=Y.replaceWithFragment(u,d,s),h=Le.push(e,p,"insert-fragment");return Le.acceptSelection(h,o)};var vo={};vo=function(e,t,n){var r=Le.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(Le.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(Le.set(r,{nativelyRenderedContent:o}))}};var yo=Hr.isOptionKeyCommand,bo=fn.isBrowser("Chrome");Vr=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case wn.RETURN:if(t.preventDefault(),e.props.handleReturn&&rr(e.props.handleReturn(t,r)))return;break;case wn.ESC:if(t.preventDefault(),o("onEscape"))return;break;case wn.TAB:if(o("onTab"))return;break;case wn.UP:if(o("onUpArrow"))return;break;case wn.RIGHT:if(o("onRightArrow"))return;break;case wn.DOWN:if(o("onDownArrow"))return;break;case wn.LEFT:if(o("onLeftArrow"))return;break;case wn.SPACE:bo&&yo(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!rr(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return Le.redo(t);case"delete":return mo(t);case"delete-word":return uo(t);case"backspace":return Tr(t);case"backspace-word":return no(t);case"backspace-to-start-of-line":return Jr(t,n);case"split-block":return fo(t);case"transpose-characters":return go(t);case"move-selection-to-start-of-block":return ho(t);case"move-selection-to-end-of-block":return po(t);case"secondary-cut":return Yr.cut(t);case"secondary-paste":return Yr.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else vo(t,r,e.update);else if(n===wn.SPACE&&bo&&yo(t)){var l=Y.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(Le.push(r,l,"insert-characters"))}};var xo,wo={};function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ko,Eo={};function _o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Co(e,t,n[t])}))}return e}function Co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oo={};Oo=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();Xt=i("hk8oT"),fn=i("2BAv2"),oe=i("i5xG3");var Po,jo=fn.isBrowser("IE <= 9");Po=function(e){var t,n=null;return!jo&&document.implementation&&document.implementation.createHTMLDocument&&(!(t=document.implementation.createHTMLDocument("foo")).documentElement&&oe(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n};var To=(ee=i("7A3vo")).List,Mo=ee.Map,Do=ee.OrderedSet,Ro={};mn=i("fOE7D");Ro=function(e){return!(!e||!e.ownerDocument)&&(mn(e)&&"A"===e.nodeName)};var Ao=i("5rbO4"),No=(_n=i("hv7Tb"),{});mn=i("fOE7D");No=function(e){return!(!e||!e.ownerDocument)&&(mn(e)&&"IMG"===e.nodeName)};var Io=ft("draft_tree_data_support"),Lo=new RegExp("\r","g"),Fo=new RegExp("\n","g"),zo=new RegExp("^\n","g"),Bo=new RegExp("&nbsp;","g"),Ko=new RegExp("&#13;?","g"),Uo=new RegExp("&#8203;?","g"),Vo=["bold","bolder","500","600","700","800","900"],Ho=["light","lighter","normal","100","200","300","400"],$o=["className","href","rel","target","title"],Wo=["alt","className","height","src","width"],qo=(Co(ko={},Xt("public/DraftStyleDefault/depth0"),0),Co(ko,Xt("public/DraftStyleDefault/depth1"),1),Co(ko,Xt("public/DraftStyleDefault/depth2"),2),Co(ko,Xt("public/DraftStyleDefault/depth3"),3),Co(ko,Xt("public/DraftStyleDefault/depth4"),4),ko),Yo=Mo({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Go=function(e){if(_n(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},Jo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(qo).some((function(n){e.classList.contains(n)&&(t=qo[n])})),t},Xo=function(e){if(!Ro(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new Oo(t.href);return!0}catch(e){return!1}},Qo=function(e){if(!No(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},Zo=function(e,t){if(!_n(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){Vo.indexOf(r)>=0?e.add("BOLD"):Ho.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},ei=function(e){return"ul"===e||"ol"===e},ti=function(){function e(e,t){Co(this,"characterList",To()),Co(this,"currentBlockType","unstyled"),Co(this,"currentDepth",0),Co(this,"currentEntity",null),Co(this,"currentText",""),Co(this,"wrapper",null),Co(this,"blockConfigs",[]),Co(this,"contentBlocks",[]),Co(this,"entityMap",et),Co(this,"blockTypeMap",void 0),Co(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=To(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=et,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],Do())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(Io?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=_o({key:e.key||se(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:To(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=To(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||ei(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;ei(i)&&(this.wrapper=i,ei(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=l}else{var s=this.blockTypeMap.get(i);if(void 0===s)if("#text"!==i)if("br"!==i)if(Qo(o))this._addImgNode(o,t);else if(Xo(o))this._addAnchorNode(o,n,t);else{var u=t;Yo.has(i)&&(u=u.add(Yo.get(i))),u=Zo(o,u);var c=Go(o);null!=c&&(u=u.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(i,this.wrapper)||s[0]||"unstyled"),!Io&&_n(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=o;this.currentDepth=Jo(p,this.currentDepth)}var h=se(),m=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:m,type:s})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=g.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=To()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(zo,"")).replace(Fo," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){Ao(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(No(e)){var n=e,r={};Wo.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),ft("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(Ro(e)){var r=e,o={};$o.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new Oo(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=To(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new L(_o({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return To(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new _(_o({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=To(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}();Eo=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jt,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Po)(e=e.trim().replace(Lo,"").replace(Bo," ").replace(Ko,"").replace(Uo,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),Mo(t)}(t);return new ti(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};var ni=(ee=i("7A3vo")).List,ri=ee.Repeat,oi=ft("draft_tree_data_support"),ii=oi?L:_;wo={processHTML:function(e,t){return Eo(e,Po,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=dt(r);var i=se(),a={key:i,type:n,text:r,characterList:ni(ri(t,r.length))};if(oi&&0!==o){var l=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){So(e,t,n[t])}))}return e}({},a,{prevSibling:(e[l]=e[l].merge({nextSibling:i})).getKey()})}return e.push(new ii(a)),e}),[])}};var ai={},li={};li=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),l=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(l),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})};Ot=i("fP8fs");var si={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return si.toggleInlineStyle(e,"BOLD");case"italic":return si.toggleInlineStyle(e,"ITALIC");case"underline":return si.toggleInlineStyle(e,"UNDERLINE");case"code":return si.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return si.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return si.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=Y.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Le.push(e,t,"insert-characters");return Le.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return Le.push(e,a,"remove-range")}var l=si.tryToRemoveBlockStyle(e);return l?Le.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),l=Y.removeRange(n,a,"forward");return l!==n?Le.push(e,l,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),l=a.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return t;e.preventDefault();var s=a.getDepth();if(!e.shiftKey&&s===n)return t;var u=li(i,r,e.shiftKey?-1:1,n);return Le.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var l=Ot(i.getBlockBefore(o));o=l.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:l.getLength(),isBackward:!1})}if(i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()})))return e;var s=i.getBlockForKey(r).getType()===t?"unstyled":t;return Le.push(e,Y.setBlockType(i,a,s),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?si.toggleBlockType(e,"code-block"):si.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Le.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?Y.removeInlineStyle(i,n,t):Y.applyInlineStyle(i,n,t),Le.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=Y.applyEntity(e.getCurrentContent(),t,n);return Le.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return Y.setBlockType(o,t,"unstyled")}return null}};ai=si;var ui={},ci=/\r\n?|\n/g;function fi(e,t,n){var r=Y.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return Le.push(e,r.set("entityMap",n),"insert-fragment")}ui=function(e){return e.split(ci)},xo=function(e,t){t.preventDefault();var n=new Vn(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&rr(e.props.handlePastedFiles(r)))return;return void er(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=ui(t),i=g.create({style:n.getCurrentInlineStyle(),entity:Dn(n.getCurrentContent(),n.getSelection())}),a=ai.getCurrentBlockType(n),l=wo.processText(r,i,a),s=h.createFromArray(l),u=Y.replaceWithFragment(n.getCurrentContent(),n.getSelection(),s);e.update(Le.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),l=n.getHTML(),s=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,l);a=u.text,l=u.html}if(!e.props.handlePastedText||!rr(e.props.handlePastedText(a,l,s))){if(a&&(i=ui(a)),!e.props.stripPastedStyles){var c,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(c=l)||void 0===c?void 0:c.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(fi(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(fi(e._latestEditorState,f));if(l){var d=wo.processHTML(l,e.props.blockRenderMap);if(d){var p=d.contentBlocks,m=d.entityMap;if(p){var v=h.createFromArray(p);return void e.update(fi(e._latestEditorState,v,m))}}}e.setClipboard(null)}if(i.length){var y=g.create({style:s.getCurrentInlineStyle(),entity:Dn(s.getCurrentContent(),s.getSelection())}),b=ai.getCurrentBlockType(s),x=wo.processText(i,y,b),w=h.createFromArray(x);e.update(fi(e._latestEditorState,w))}}};var di=fn.isBrowser("Chrome"),pi=fn.isBrowser("Firefox"),hi=di||pi?Sn:function(e){};ar={onBeforeInput:lr,onBlur:mr,onCompositionStart:yr,onCopy:br,onCut:wr,onDragOver:_r,onDragStart:Cr,onFocus:Or,onInput:Pr,onKeyDown:Vr,onPaste:xo,onSelect:Sn,onMouseUp:hi,onKeyUp:hi};var mi={},gi=s.unstable_flushControlled;mi=gi;var vi;c=i("fYo6y"),Xt=i("hk8oT");var yi=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=Xt({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return c.createElement("div",{className:t},c.createElement("div",{className:Xt("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(c.Component);vi=yi;var bi,xi=i("95AQu"),wi=(c=i("fYo6y"),i("34wTR")),Si=(Sr=i("f6H7i"),fn=i("2BAv2"),Xt=i("hk8oT"),(fn=i("2BAv2")).isPlatform("Mac OS X")),ki=Si&&fn.isBrowser("Firefox < 29"),Ei=Hr.hasCommandModifier,_i=Hr.isCtrlKeyCommand;function Ci(e){return Si&&e.altKey||_i(e)}bi=function(e){switch(e.keyCode){case 66:return Ei(e)?"bold":null;case 68:return _i(e)?"delete":null;case 72:return _i(e)?"backspace":null;case 73:return Ei(e)?"italic":null;case 74:return Ei(e)?"code":null;case 75:return Si&&_i(e)?"secondary-cut":null;case 77:case 79:return _i(e)?"split-block":null;case 84:return Si&&_i(e)?"transpose-characters":null;case 85:return Ei(e)?"underline":null;case 87:return Si&&_i(e)?"backspace-word":null;case 89:return _i(e)?Si?"secondary-paste":"redo":null;case 90:return function(e){return Ei(e)?e.shiftKey?"redo":"undo":null}(e)||null;case wn.RETURN:return"split-block";case wn.DELETE:return function(e){return!Si&&e.shiftKey?null:Ci(e)?"delete-word":"delete"}(e);case wn.BACKSPACE:return function(e){return Ei(e)&&Si?"backspace-to-start-of-line":Ci(e)?"backspace-word":"backspace"}(e);case wn.LEFT:return ki&&Ei(e)?"move-selection-to-start-of-block":null;case wn.RIGHT:return ki&&Ei(e)?"move-selection-to-end-of-block":null;default:return null}};kr=i("3LqfB"),oe=i("i5xG3"),_n=i("hv7Tb"),Ot=i("fP8fs");var Oi=fn.isBrowser("IE"),Pi=!Oi,ji={edit:ar,composite:sn,drag:Un,cut:null,render:null},Ti=!1,Mi=function(e){function t(){return e.apply(this,arguments)||this}ln(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(c.Component),Di=function(e){function n(t){var n;return an(on(n=e.call(this,t)||this),"_blockSelectEvents",void 0),an(on(n),"_clipboard",void 0),an(on(n),"_handler",void 0),an(on(n),"_dragCount",void 0),an(on(n),"_internalDrag",void 0),an(on(n),"_editorKey",void 0),an(on(n),"_placeholderAccessibilityID",void 0),an(on(n),"_latestEditorState",void 0),an(on(n),"_latestCommittedEditorState",void 0),an(on(n),"_pendingStateFromBeforeInput",void 0),an(on(n),"_onBeforeInput",void 0),an(on(n),"_onBlur",void 0),an(on(n),"_onCharacterData",void 0),an(on(n),"_onCompositionEnd",void 0),an(on(n),"_onCompositionStart",void 0),an(on(n),"_onCopy",void 0),an(on(n),"_onCut",void 0),an(on(n),"_onDragEnd",void 0),an(on(n),"_onDragOver",void 0),an(on(n),"_onDragStart",void 0),an(on(n),"_onDrop",void 0),an(on(n),"_onInput",void 0),an(on(n),"_onFocus",void 0),an(on(n),"_onKeyDown",void 0),an(on(n),"_onKeyPress",void 0),an(on(n),"_onKeyUp",void 0),an(on(n),"_onMouseDown",void 0),an(on(n),"_onMouseUp",void 0),an(on(n),"_onPaste",void 0),an(on(n),"_onSelect",void 0),an(on(n),"editor",void 0),an(on(n),"editorContainer",void 0),an(on(n),"focus",void 0),an(on(n),"blur",void 0),an(on(n),"setMode",void 0),an(on(n),"exitCurrentMode",void 0),an(on(n),"restoreEditorDOM",void 0),an(on(n),"setClipboard",void 0),an(on(n),"getClipboard",void 0),an(on(n),"getEditorKey",void 0),an(on(n),"update",void 0),an(on(n),"onDragEnter",void 0),an(on(n),"onDragLeave",void 0),an(on(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),an(on(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=Sr.getScrollParent(o),a=e||kr(i),l=a.x,s=a.y;!_n(o)&&oe(!1),o.focus(),i===window?window.scrollTo(l,s):wi.setTop(i,s),r||n.update(Le.forceSelection(t,t.getSelection()))}})),an(on(n),"blur",(function(){var e=n.editor;e&&(!_n(e)&&oe(!1),e.blur())})),an(on(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=rn({},ji.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var l=rn({},ji,{edit:a});n._handler=l[e]})),an(on(n),"exitCurrentMode",(function(){n.setMode("edit")})),an(on(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),an(on(n),"setClipboard",(function(e){n._clipboard=e})),an(on(n),"getClipboard",(function(){return n._clipboard})),an(on(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),an(on(n),"onDragEnter",(function(){n._dragCount++})),an(on(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||se(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}ln(n,e);var r=n.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(mi?mi((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:Ot(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return c.createElement(vi,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,l=e.preventScroll,s=e.readOnly,u=e.textAlignment,f=e.textDirectionality,d=Xt({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),p=this.props.role||"textbox",h="combobox"===p?!!this.props.ariaExpanded:null,m={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:rn({},Zt,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:l,textDirectionality:f};return c.createElement("div",{className:d},this._renderPlaceholder(),c.createElement("div",{className:Xt("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},c.createElement("div",{"aria-activedescendant":s?null:this.props.ariaActiveDescendantID,"aria-autocomplete":s?null:this.props.ariaAutoComplete,"aria-controls":s?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":s?null:h,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":s?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:Xt({notranslate:!s,"public/DraftEditor/content":!0}),contentEditable:!s,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:s?null:p,spellCheck:Pi&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},c.createElement(Mi,{editor:this,editorState:a}),c.createElement(Bn,nn({},m,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!Ti&&ft("draft_ods_enabled")&&(Ti=!0,xi.initODS()),this.setMode("edit"),Oi&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):t.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},n}(c.Component);an(Di,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:Jt,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:bi,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),en=Di;var Ri,Ai=i("fLNsq");function Ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ii={};Ii={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};var Li={},Fi=Mr.strlen;Li=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:Fi(i.slice(0,r)),length:Fi(i.slice(r,o)),key:Number(t[Ii.stringify(a)])})})),n};var zi={},Bi=function(e,t){return e===t},Ki=function(e){return!!e},Ui=[];zi=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return C(o,Bi,Ki,(function(t,o){var i=e.getText();r.push({offset:Mr.strlen(i.slice(0,t)),length:Mr.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(Ui,n.toJS())};oe=i("i5xG3");var Vi=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:zi(e),entityRanges:Li(e,t),data:e.getData().toObject()}},Hi=function(e,t,n,r){if(e instanceof _)n.push(Vi(e,t));else{!(e instanceof L)&&oe(!1);var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ni(e,t,n[t])}))}return e}({},Vi(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}};Ri=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=Ii.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),Hi(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(Ii.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};var $i;function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qi(e,t,n[t])}))}return e}function qi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yi={};function Gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ji(e,t,n[t])}))}return e}function Ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}oe=i("i5xG3");var Xi=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t};Yi={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return!Array.isArray(t)&&oe(!1),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;!Array.isArray(o)&&oe(!1),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=Gi({},e);Xi(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?Gi({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,Gi({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=Xi(e),o=e.depth||0,i=Gi({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var l={key:se(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===o?t.push(l):null!=a&&a.children.push(l),l.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),Gi({},e,{blocks:t})}};var Qi={},Zi=(ee=i("7A3vo")).List;Qi=function(e,t){var n=e.map((function(e,n){var r=t[n];return g.create({style:e,entity:r})}));return Zi(n)};var ea={},ta=Mr.substr;ea=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=ta(e,0,t.offset).length,o=r+ta(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n};var na={},ra=(ee=i("7A3vo")).OrderedSet,oa=Mr.substr,ia=ra();na=function(e,t){var n=Array(e.length).fill(ia);return t&&t.forEach((function(t){for(var r=oa(e,0,t.offset).length,o=r+oa(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};ee=i("7A3vo"),oe=i("i5xG3");var aa=ft("draft_tree_data_support"),la=ee.List,sa=ee.Map,ua=ee.OrderedMap,ca=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||se(),data:sa(o),characterList:fa(e,t)}},fa=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return Qi(na(n,o||[]),ea(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return Wi({},e,{key:t[e.key]})}))))},da=function(e){return Wi({},e,{key:e.key||se()})},pa=function(e,t,n){var r=t.map((function(e){return Wi({},e,{parentRef:n})}));return e.concat(r.reverse())},ha=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=aa&&!n?Yi.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!aa)return function(e,t){return ua(e.map((function(e){var n=new _(ca(e,t));return[n.getKey(),n]})))}(n?Yi.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(da).reduce((function(n,r,o){!Array.isArray(r.children)&&oe(!1);var i=r.children.map(da),a=new L(Wi({},ca(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:la(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var l=pa([],i,a);l.length>0;){var s=l.pop(),u=s.parentRef,c=u.getChildKeys(),f=c.indexOf(s.key),d=Array.isArray(s.children);if(!d){!d&&oe(!1);break}var p=s.children.map(da),h=new L(Wi({},ca(s,t),{parent:u.getKey(),children:la(p.map((function(e){return e.key}))),prevSibling:0===f?null:c.get(f-1),nextSibling:f===c.size-1?null:c.get(f+1)}));n=n.set(h.getKey(),h),l=pa(l,p,h)}return n}),ua())}(r,t);return o};$i=function(e){!Array.isArray(e.blocks)&&oe(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=et.__create(o,i,a||{})})),n}(e),n=ha(e,t),r=n.isEmpty()?new ut:ut.createEmpty(n.first().getKey());return new Xe({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})};var ma={};ma=function(e){var t=Qr(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var l=t[0];n=l.top,r=l.right,o=l.bottom,i=l.left}for(var s=1;s<t.length;s++){var u=t[s];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},f={Editor:en,EditorBlock:Ai,EditorState:Le,CompositeDecorator:Yt,Entity:et,EntityInstance:nt,BlockMapBuilder:h,CharacterMetadata:g,ContentBlock:_,ContentState:Xe,RawDraftContentState:{},SelectionState:ut,AtomicBlockUtils:u,KeyBindingUtil:Hr,Modifier:Y,RichUtils:ai,DefaultDraftBlockRenderMap:Jt,DefaultDraftInlineStyle:Zt,convertFromHTML:Eo,convertFromRaw:$i,convertToRaw:Ri,genKey:se,getDefaultKeyBinding:bi,getVisibleSelectionRect:function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=ma(n),o=r.top,i=r.right,a=r.bottom,l=r.left;return 0===o&&0===i&&0===a&&0===l?null:r}};c=i("fYo6y");const ga=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,va=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.flat(1/0).filter(Boolean).join(" ")},ya=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return va(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const a=ga(t)||ga(r);return o[e][a]})),l=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),s=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...l}[t]):{...i,...l}[t]===n}))?[...e,n,r]:e}),[]);return va(e,a,s,null==n?void 0:n.class,null==n?void 0:n.className)};function ba(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ba(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function xa(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ba(e))&&(r&&(r+=" "),r+=t);return r}var wa="-";function Sa(e){var t=function(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=function(e,t){return t?e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var n=e[0],r=e[1];return[t+n,r]}))):e}))]})):e}(Object.entries(e.classGroups),n);return o.forEach((function(e){var n=e[0];_a(e[1],r,n,t)})),r}(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=void 0===r?{}:r;return{getClassGroupId:function(e){var n=e.split(wa);return""===n[0]&&1!==n.length&&n.shift(),ka(n,t)||function(e){if(Ea.test(e)){var t=Ea.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var r=n[e]||[];return t&&o[e]?[].concat(r,o[e]):r}}}function ka(e,t){if(0===e.length)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?ka(e.slice(1),r):void 0;if(o)return o;if(0!==t.validators.length){var i=e.join(wa);return t.validators.find((function(e){return(0,e.validator)(i)}))?.classGroupId}}var Ea=/^\[(.+)\]$/;function _a(e,t,n,r){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void _a(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((function(e){var o=e[0];_a(e[1],Ca(t,o),n,r)}))}else{(""===e?t:Ca(t,e)).classGroupId=n}}))}function Ca(e,t){var n=e;return t.split(wa).forEach((function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function Oa(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}var Pa="!";function ja(e){var t=e.separator||":",n=1===t.length,r=t[0],o=t.length;return function(e){for(var i,a=[],l=0,s=0,u=0;u<e.length;u++){var c=e[u];if(0===l){if(c===r&&(n||e.slice(u,u+o)===t)){a.push(e.slice(s,u)),s=u+o;continue}if("/"===c){i=u;continue}}"["===c?l++:"]"===c&&l--}var f=0===a.length?e:e.substring(s),d=f.startsWith(Pa);return{modifiers:a,hasImportantModifier:d,baseClassName:d?f.substring(1):f,maybePostfixModifierPosition:i&&i>s?i-s:void 0}}}function Ta(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)})),t.push.apply(t,n.sort()),t}function Ma(e){return{cache:Oa(e.cacheSize),splitModifiers:ja(e),...Sa(e)}}var Da=/\s+/;function Ra(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(Da).map((function(e){var t=n(e),o=t.modifiers,i=t.hasImportantModifier,a=t.baseClassName,l=t.maybePostfixModifierPosition,s=r(l?a.substring(0,l):a),u=Boolean(l);if(!s){if(!l)return{isTailwindClass:!1,originalClassName:e};if(!(s=r(a)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=Ta(o).join(":");return{isTailwindClass:!0,modifierId:i?c+Pa:c,classGroupId:s,originalClassName:e,hasPostfixModifier:u}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((function(e){return i.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}function Aa(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Na(e))&&(r&&(r+=" "),r+=t);return r}function Na(e){if("string"==typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Na(e[r]))&&(n&&(n+=" "),n+=t);return n}function Ia(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var La=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fa=/^\d+\/\d+$/,za=new Set(["px","full","screen"]),Ba=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ka=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))/,Ua=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Va(e){return Ga(e)||za.has(e)||Fa.test(e)||Ha(e)}function Ha(e){return nl(e,"length",rl)}function $a(e){return nl(e,"size",ol)}function Wa(e){return nl(e,"position",ol)}function qa(e){return nl(e,"url",il)}function Ya(e){return nl(e,"number",Ga)}function Ga(e){return!Number.isNaN(Number(e))}function Ja(e){return e.endsWith("%")&&Ga(e.slice(0,-1))}function Xa(e){return al(e)||nl(e,"number",al)}function Qa(e){return La.test(e)}function Za(){return!0}function el(e){return Ba.test(e)}function tl(e){return nl(e,"",ll)}function nl(e,t,n){var r=La.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function rl(e){return Ka.test(e)}function ol(){return!1}function il(e){return e.startsWith("url(")}function al(e){return Number.isInteger(Number(e))}function ll(e){return Ua.test(e)}var sl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=function(e){var n=t[0],s=t.slice(1).reduce((function(e,t){return t(e)}),n());return r=Ma(s),o=r.cache.get,i=r.cache.set,a=l,l(e)};function l(e){var t=o(e);if(t)return t;var n=Ra(e,r);return i(e,n),n}return function(){return a(Aa.apply(null,arguments))}}((function(){var e=Ia("colors"),t=Ia("spacing"),n=Ia("blur"),r=Ia("brightness"),o=Ia("borderColor"),i=Ia("borderRadius"),a=Ia("borderSpacing"),l=Ia("borderWidth"),s=Ia("contrast"),u=Ia("grayscale"),c=Ia("hueRotate"),f=Ia("invert"),d=Ia("gap"),p=Ia("gradientColorStops"),h=Ia("gradientColorStopPositions"),m=Ia("inset"),g=Ia("margin"),v=Ia("opacity"),y=Ia("padding"),b=Ia("saturate"),x=Ia("scale"),w=Ia("sepia"),S=Ia("skew"),k=Ia("space"),E=Ia("translate"),_=function(){return["auto",t]},C=function(){return["",Va]},O=function(){return["auto",Ga,Qa]},P=function(){return["","0",Qa]},j=function(){return[Ga,Ya]},T=function(){return[Ga,Qa]};return{cacheSize:500,theme:{colors:[Za],spacing:[Va],blur:["none","",el,Ha],brightness:j(),borderColor:[e],borderRadius:["none","","full",el,Ha],borderSpacing:[t],borderWidth:C(),contrast:j(),grayscale:P(),hueRotate:T(),invert:P(),gap:[t],gradientColorStops:[e],gradientColorStopPositions:[Ja,Ha],inset:_(),margin:_(),opacity:j(),padding:[t],saturate:j(),scale:j(),sepia:P(),skew:T(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",Qa]}],container:["container"],columns:[{columns:[el]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[Qa])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xa]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Qa]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Xa]}],"grid-cols":[{"grid-cols":[Za]}],"col-start-end":[{col:["auto",{span:[Xa]},Qa]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Za]}],"row-start-end":[{row:["auto",{span:[Xa]},Qa]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Qa]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Qa]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",Va]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[el]},el,Ha]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Va]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",el,Ha]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ya]}],"font-family":[{font:[Za]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ha]}],"line-clamp":[{"line-clamp":["none",Ga,Ya]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Va]}],"list-image":[{"list-image":["none",Qa]}],"list-style-type":[{list:["none","disc","decimal",Qa]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Va]}],"underline-offset":[{"underline-offset":["auto",Va]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ha]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Qa]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[Wa])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$a]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[Va]}],"outline-w":[{outline:[Va]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Va]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",el,tl]}],"shadow-color":[{shadow:[Za]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",el,Qa]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Qa]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",Qa]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",Qa]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Xa,Qa]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Qa]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Qa]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-ms":[{"scroll-ms":[t]}],"scroll-me":[{"scroll-me":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-ps":[{"scroll-ps":[t]}],"scroll-pe":[{"scroll-pe":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Qa]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Va,Ya]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function ul(...e){return sl(xa(e))}function cl(e,t,n,r,o,i){const a=t.filter((e=>e.selected)).length,l=!i&&a>1||!e.selected;if(l&&!i){const t=e.parameters;o({...r,temperature:t.temperature?.value||r.temperature,maximumLength:t.maximumLength?.value||r.maximumLength,topP:t.topP?.value||r.topP,topK:t.topK?.value||r.topK,frequencyPenalty:t.frequencyPenalty?.value||r.frequencyPenalty,presencePenalty:t.presencePenalty?.value||r.presencePenalty,repetitionPenalty:t.repetitionPenalty?.value||r.repetitionPenalty,stopSequences:t.stopSequences?.value||r.stopSequences})}n(t.map((t=>(i||t.tag===e.tag?t.tag===e.tag&&(t.selected=l):t.selected=!1,t))))}const fl=ya("active:scale-95 inline-flex items-center justify-center rounded text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 dark:hover:bg-slate-800 dark:hover:text-slate-100 disabled:opacity-50 dark:focus:ring-slate-400 disabled:pointer-events-none dark:focus:ring-offset-slate-900 data-[state=open]:bg-slate-100 dark:data-[state=open]:bg-slate-800",{variants:{variant:{default:"bg-slate-900 text-white hover:bg-slate-700 dark:bg-slate-50 dark:text-slate-900",destructive:"bg-red-500 text-white hover:bg-red-600 dark:hover:bg-red-600",outline:"bg-transparent border border-slate-200 hover:bg-slate-100 dark:border-slate-700 dark:text-slate-100",subtle:"bg-slate-100 text-slate-900 hover:bg-slate-200 dark:bg-slate-700 dark:text-slate-100",ghost:"bg-transparent hover:bg-slate-100 dark:hover:bg-slate-800 dark:text-slate-100 dark:hover:text-slate-100 data-[state=open]:bg-transparent dark:data-[state=open]:bg-transparent",link:"bg-transparent underline-offset-4 hover:underline text-slate-900 dark:text-slate-100 hover:bg-transparent dark:hover:bg-transparent"},size:{default:"h-8 px-3",sm:"h-9 px-3 rounded",lg:"h-11 px-8 rounded"}},defaultVariants:{variant:"default",size:"default"}}),dl=c.forwardRef((({className:e,variant:t,size:n,...r},o)=>(0,l.jsx)("button",{className:ul(fl({variant:t,size:n,className:e})),ref:o,...r})));dl.displayName="Button",i("fYo6y");
/**
 * React Router DOM v6.10.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
var pl,hl;
/**
 * @remix-run/router v1.5.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */c=i("fYo6y");function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ml.apply(this,arguments)}(hl=pl||(pl={})).Pop="POP",hl.Push="PUSH",hl.Replace="REPLACE";const gl="popstate";function vl(e){return void 0===e&&(e={}),El((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return wl("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:Sl(t)}),null,e)}function yl(e,t){if(!1===e||null==e)throw new Error(t)}function bl(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function xl(e,t){return{usr:e.state,key:e.key,idx:t}}function wl(e,t,n,r){return void 0===n&&(n=null),ml({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?kl(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function Sl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function kl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function El(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=pl.Pop,s=null,u=c();function c(){return(a.state||{idx:null}).idx}function f(){l=pl.Pop;let e=c(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function d(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:Sl(e);return yl(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==u&&(u=0,a.replaceState(ml({},a.state,{idx:u}),""));let p={get action(){return l},get location(){return e(o,a)},listen(e){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(gl,f),s=e,()=>{o.removeEventListener(gl,f),s=null}},createHref:e=>t(o,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=pl.Push;let r=wl(p.location,e,t);n&&n(r,e),u=c()+1;let f=xl(r,u),d=p.createHref(r);try{a.pushState(f,"",d)}catch(e){o.location.assign(d)}i&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=pl.Replace;let r=wl(p.location,e,t);n&&n(r,e),u=c();let o=xl(r,u),f=p.createHref(r);a.replaceState(o,"",f),i&&s&&s({action:l,location:p.location,delta:0})},go:e=>a.go(e)};return p}var _l,Cl;(Cl=_l||(_l={})).data="data",Cl.deferred="deferred",Cl.redirect="redirect",Cl.error="error";new Set(["lazy","caseSensitive","path","id","index","children"]);function Ol(e,t,n){void 0===n&&(n="/");let r=Kl(("string"==typeof t?kl(t):t).pathname||"/",n);if(null==r)return null;let o=Pl(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e)i=Fl(o[e],Bl(r));return i}function Pl(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(yl(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=$l([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(yl(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),Pl(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:Ll(l,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of jl(e.path))o(e,t,n);else o(e,t)})),t}function jl(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=jl(r.join("/")),l=[];return l.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&l.push(...a),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const Tl=/^:\w+$/,Ml=3,Dl=2,Rl=1,Al=10,Nl=-2,Il=e=>"*"===e;function Ll(e,t){let n=e.split("/"),r=n.length;return n.some(Il)&&(r+=Nl),t&&(r+=Dl),n.filter((e=>!Il(e))).reduce(((e,t)=>e+(Tl.test(t)?Ml:""===t?Rl:Al)),r)}function Fl(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let e=0;e<n.length;++e){let a=n[e],l=e===n.length-1,s="/"===o?t:t.slice(o.length)||"/",u=zl({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},s);if(!u)return null;Object.assign(r,u.params);let c=a.route;i.push({params:r,pathname:$l([o,u.pathname]),pathnameBase:Wl($l([o,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(o=$l([o,u.pathnameBase]))}return i}function zl(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);bl("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(r.push(t),"/([^\\/]+)")));e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return bl(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function Bl(e){try{return decodeURI(e)}catch(t){return bl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Kl(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Ul(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Vl(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function Hl(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=kl(e):(o=ml({},e),yl(!o.pathname||!o.pathname.includes("?"),Ul("?","pathname","search",o)),yl(!o.pathname||!o.pathname.includes("#"),Ul("#","pathname","hash",o)),yl(!o.search||!o.search.includes("#"),Ul("#","search","hash",o)));let i,a=""===e||""===o.pathname,l=a?"/":o.pathname;if(r||null==l)i=n;else{let e=t.length-1;if(l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?kl(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:ql(r),hash:Yl(o)}}(o,i),u=l&&"/"!==l&&l.endsWith("/"),c=(a||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!c||(s.pathname+="/"),s}const $l=e=>e.join("/").replace(/\/\/+/g,"/"),Wl=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ql=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Yl=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class Gl extends Error{}function Jl(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Xl=["post","put","patch","delete"],Ql=(new Set(Xl),["get",...Xl]);new Set(Ql),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;Symbol("deferred");
/**
 * React Router v6.10.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
c=i("fYo6y");const Zl="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:es,useEffect:ts,useLayoutEffect:ns,useDebugValue:rs}=c;function os(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!Zl(n,e)}catch(e){return!0}}const is=!!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?function(e,t,n){return t()}:function(e,t,n){const r=t(),[{inst:o},i]=es({inst:{value:r,getSnapshot:t}});return ns((()=>{o.value=r,o.getSnapshot=t,os(o)&&i({inst:o})}),[e,r,t]),ts((()=>{os(o)&&i({inst:o});return e((()=>{os(o)&&i({inst:o})}))}),[e]),rs(r),r},as=("useSyncExternalStore"in c&&c.useSyncExternalStore,c.createContext(null)),ls=c.createContext(null),ss=c.createContext(null),us=c.createContext(null),cs=c.createContext({outlet:null,matches:[]}),fs=c.createContext(null);function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ds.apply(this,arguments)}function ps(e,t){let{relative:n}=void 0===t?{}:t;!hs()&&yl(!1);let{basename:r,navigator:o}=c.useContext(ss),{hash:i,pathname:a,search:l}=vs(e,{relative:n}),s=a;return"/"!==r&&(s="/"===a?r:$l([r,a])),o.createHref({pathname:s,search:l,hash:i})}function hs(){return null!=c.useContext(us)}function ms(){return!hs()&&yl(!1),c.useContext(us).location}function gs(){!hs()&&yl(!1);let{basename:e,navigator:t}=c.useContext(ss),{matches:n}=c.useContext(cs),{pathname:r}=ms(),o=JSON.stringify(Vl(n).map((e=>e.pathnameBase))),i=c.useRef(!1);return c.useEffect((()=>{i.current=!0})),c.useCallback((function(n,a){if(void 0===a&&(a={}),!i.current)return;if("number"==typeof n)return void t.go(n);let l=Hl(n,JSON.parse(o),r,"path"===a.relative);"/"!==e&&(l.pathname="/"===l.pathname?e:$l([e,l.pathname])),(a.replace?t.replace:t.push)(l,a.state,a)}),[e,t,o,r])}function vs(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=c.useContext(cs),{pathname:o}=ms(),i=JSON.stringify(Vl(r).map((e=>e.pathnameBase)));return c.useMemo((()=>Hl(e,JSON.parse(i),o,"path"===n)),[e,i,o,n])}function ys(){let e=function(){var e;let t=c.useContext(fs),n=Cs(Es.UseRouteError),r=Os(Es.UseRouteError);return t||(null==(e=n.errors)?void 0:e[r])}(),t=Jl(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,null)}class bs extends c.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?c.createElement(cs.Provider,{value:this.props.routeContext},c.createElement(fs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xs(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(as);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(cs.Provider,{value:t},r)}function ws(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}let r=e,o=null==n?void 0:n.errors;if(null!=o){let e=r.findIndex((e=>e.route.id&&(null==o?void 0:o[e.route.id])));!(e>=0)&&yl(!1),r=r.slice(0,Math.min(r.length,e+1))}return r.reduceRight(((e,i,a)=>{let l=i.route.id?null==o?void 0:o[i.route.id]:null,s=null;n&&(s=i.route.ErrorBoundary?c.createElement(i.route.ErrorBoundary,null):i.route.errorElement?i.route.errorElement:c.createElement(ys,null));let u=t.concat(r.slice(0,a+1)),f=()=>{let t=e;return l?t=s:i.route.Component?t=c.createElement(i.route.Component,null):i.route.element&&(t=i.route.element),c.createElement(xs,{match:i,routeContext:{outlet:e,matches:u},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===a)?c.createElement(bs,{location:n.location,component:s,error:l,children:f(),routeContext:{outlet:null,matches:u}}):f()}),null)}var Ss,ks,Es,_s;function Cs(e){let t=c.useContext(ls);return!t&&yl(!1),t}function Os(e){let t=function(e){let t=c.useContext(cs);return!t&&yl(!1),t}(),n=t.matches[t.matches.length-1];return!n.route.id&&yl(!1),n.route.id}(ks=Ss||(Ss={})).UseBlocker="useBlocker",ks.UseRevalidator="useRevalidator",(_s=Es||(Es={})).UseBlocker="useBlocker",_s.UseLoaderData="useLoaderData",_s.UseActionData="useActionData",_s.UseRouteError="useRouteError",_s.UseNavigation="useNavigation",_s.UseRouteLoaderData="useRouteLoaderData",_s.UseMatches="useMatches",_s.UseRevalidator="useRevalidator";function Ps(e){yl(!1)}function js(e){let{basename:t="/",children:n=null,location:r,navigationType:o=pl.Pop,navigator:i,static:a=!1}=e;hs()&&yl(!1);let l=t.replace(/^\/*/,"/"),s=c.useMemo((()=>({basename:l,navigator:i,static:a})),[l,i,a]);"string"==typeof r&&(r=kl(r));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:h="default"}=r,m=c.useMemo((()=>{let e=Kl(u,l);return null==e?null:{location:{pathname:e,search:f,hash:d,state:p,key:h},navigationType:o}}),[l,u,f,d,p,h,o]);return null==m?null:c.createElement(ss.Provider,{value:s},c.createElement(us.Provider,{children:n,value:m}))}function Ts(e){let{children:t,location:n}=e,r=c.useContext(as);return function(e,t){!hs()&&yl(!1);let n,{navigator:r}=c.useContext(ss),o=c.useContext(ls),{matches:i}=c.useContext(cs),a=i[i.length-1],l=a?a.params:{},s=(a&&a.pathname,a?a.pathnameBase:"/"),u=(a&&a.route,ms());if(t){var f;let e="string"==typeof t?kl(t):t;"/"!==s&&!(null==(f=e.pathname)?void 0:f.startsWith(s))&&yl(!1),n=e}else n=u;let d=n.pathname||"/",p=Ol(e,{pathname:"/"===s?d:d.slice(s.length)||"/"}),h=ws(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:$l([s,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?s:$l([s,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,o||void 0);return t&&h?c.createElement(us.Provider,{value:{location:ds({pathname:"/",search:"",hash:"",state:null,key:"default"},n),navigationType:pl.Pop}},h):h}(r&&!t?r.router.routes:As(t),n)}var Ms,Ds;(Ds=Ms||(Ms={}))[Ds.pending=0]="pending",Ds[Ds.success=1]="success",Ds[Ds.error=2]="error";new Promise((()=>{}));class Rs extends c.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,o=Ms.pending;if(n instanceof Promise)if(this.state.error){Ms.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?(n,void 0!==r._error?Ms.error:void 0!==r._data?Ms.success:Ms.pending):(Ms.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else Ms.success,Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(o===Ms.error&&r._error instanceof Gl)throw $ce84e892ed7f5f2c$var$neverSettledPromise;if(o===Ms.error&&!t)throw r._error;if(o===Ms.error)return c.createElement($ce84e892ed7f5f2c$var$AwaitContext.Provider,{value:r,children:t});if(o===Ms.success)return c.createElement($ce84e892ed7f5f2c$var$AwaitContext.Provider,{value:r,children:e});throw r}}function As(e,t){void 0===t&&(t=[]);let n=[];return c.Children.forEach(e,((e,r)=>{if(!c.isValidElement(e))return;let o=[...t,r];if(e.type===c.Fragment)return void n.push.apply(n,As(e.props.children,o));e.type!==Ps&&yl(!1),e.props.index&&e.props.children&&yl(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=As(e.props.children,o)),n.push(i)})),n}function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ns.apply(this,arguments)}function Is(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const Ls=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Fs(e){let{basename:t,children:n,window:r}=e,o=c.useRef();null==o.current&&(o.current=vl({window:r,v5Compat:!0}));let i=o.current,[a,l]=c.useState({action:i.action,location:i.location});return c.useLayoutEffect((()=>i.listen(l)),[i]),c.createElement(js,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}const zs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Bs=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ks=c.forwardRef((function(e,t){let n,{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:f}=e,d=Is(e,Ls),{basename:p}=c.useContext(ss),h=!1;if("string"==typeof u&&Bs.test(u)&&(n=u,zs)){let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=Kl(t.pathname,p);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:h=!0}let m=ps(u,{relative:o}),g=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=void 0===t?{}:t,l=gs(),s=ms(),u=vs(e,{relative:a});return c.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:Sl(s)===Sl(u);l(e,{replace:n,state:o,preventScrollReset:i,relative:a})}}),[s,l,u,r,o,n,e,i,a])}(u,{replace:a,state:l,target:s,preventScrollReset:f,relative:o});return c.createElement("a",Ns({},d,{href:n||m,onClick:h||i?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:s}))}));var Us,Vs;!function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"}(Us||(Us={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Vs||(Vs={}));function Hs({tab:e,children:t}){const n=["playground","compare","settings"].map(((t,n)=>(0,l.jsx)("div",{className:"align-middle mt-1 flex items-center",children:(0,l.jsx)(Ks,{to:`/${n>0?t:""}`,className:e===t?"cursor-default":"cursor-pointer",children:(0,l.jsx)("p",{className:e===t?"text-xl font-semibold":"text-xl font-medium text-gray-500 hover:text-gray-900",children:t.charAt(0).toUpperCase()+t.slice(1)})})},t)));return(0,l.jsx)("div",{className:"flex flex-col font-display mb-3 border",children:(0,l.jsxs)("div",{className:"flex inline-block mx-5 my-4 gap-x-4 flex-wrap",children:[n,(0,l.jsx)("div",{className:"flex-1"}),(0,l.jsx)("div",{className:"ml-4 mt-1 cursor-pointer flex justify-end items-center self-flex-end",onClick:()=>{window.open("https://discord.gg/J8sFfUK2N2","_blank")},children:(0,l.jsx)("img",{className:"h-[20px]",src:"https://assets-global.website-files.com/6257adef93867e50d84d30e2/636e0a6a49cf127bf92de1e2_icon_clyde_blurple_RGB.png"})}),(0,l.jsx)("div",{className:"ml-4 mt-1 cursor-pointer flex justify-end items-center self-flex-end",onClick:()=>{window.open("https://github.com/nat/openplayground","_blank")},children:(0,l.jsx)("img",{className:"h-[35px]",src:"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"})}),t]})})}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$s.apply(this,arguments)}c=i("fYo6y");function Ws(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}c=i("fYo6y");function qs(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Ys(...e){return(0,c.useCallback)(qs(...e),e)}c=i("fYo6y");function Gs(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,c.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,c.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,c.createContext)(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,l=(null==n?void 0:n[e][i])||o,s=(0,c.useMemo)((()=>a),Object.values(a));return(0,c.createElement)(l.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const l=(null==a?void 0:a[e][i])||o,s=(0,c.useContext)(l);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Js(r,...t)]}function Js(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,c.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}c=i("fYo6y"),c=i("fYo6y");function Xs(e){const t=(0,c.useRef)(e);return(0,c.useEffect)((()=>{t.current=e})),(0,c.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Qs({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,c.useState)(e),[r]=n,o=(0,c.useRef)(r),i=Xs(t);return(0,c.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,l=Xs(n);return[a,(0,c.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[i,e,o,l])]}c=i("fYo6y");const Zs=(0,(c=i("fYo6y")).forwardRef)(((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),i=o.find(nu);if(i){const e=i.props.children,n=o.map((t=>t===i?c.Children.count(e)>1?c.Children.only(null):(0,c.isValidElement)(e)?e.props.children:null:t));return(0,c.createElement)(eu,$s({},r,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(eu,$s({},r,{ref:t}),n)}));Zs.displayName="Slot";const eu=(0,c.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,c.isValidElement)(n)?(0,c.cloneElement)(n,{...ru(r,n.props),ref:qs(t,n.ref)}):c.Children.count(n)>1?c.Children.only(null):null}));eu.displayName="SlotClone";const tu=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function nu(e){return(0,c.isValidElement)(e)&&e.type===tu}function ru(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const ou=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,c.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?Zs:t;return(0,c.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,c.createElement)(i,$s({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function iu(e,t){e&&(0,s.flushSync)((()=>e.dispatchEvent(t)))}c=i("fYo6y"),c=i("fYo6y");function au(e){const t=e+"CollectionProvider",[r,o]=Gs(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{const{scope:t,children:r}=e,o=n(c).useRef(null),a=n(c).useRef(new Map).current;return n(c).createElement(i,{scope:t,itemMap:a,collectionRef:o},r)},s=e+"CollectionSlot",u=n(c).forwardRef(((e,t)=>{const{scope:r,children:o}=e,i=Ys(t,a(s,r).collectionRef);return n(c).createElement(Zs,{ref:i},o)})),f=e+"CollectionItemSlot",d="data-radix-collection-item",p=n(c).forwardRef(((e,t)=>{const{scope:r,children:o,...i}=e,l=n(c).useRef(null),s=Ys(t,l),u=a(f,r);return n(c).useEffect((()=>(u.itemMap.set(l,{ref:l,...i}),()=>{u.itemMap.delete(l)}))),n(c).createElement(Zs,{[d]:"",ref:s},o)}));return[{Provider:l,Slot:u,ItemSlot:p},function(t){const r=a(e+"CollectionConsumer",t);return n(c).useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}const lu=(0,(c=i("fYo6y")).createContext)(void 0);function su(e){const t=(0,c.useContext)(lu);return e||t||"ltr"}c=i("fYo6y"),c=i("fYo6y");function uu(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Xs(e);(0,c.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const cu="dismissableLayer.update",fu="dismissableLayer.pointerDownOutside",du="dismissableLayer.focusOutside";let pu;const hu=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mu=(0,c.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...u}=e,f=(0,c.useContext)(hu),[d,p]=(0,c.useState)(null),h=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=(0,c.useState)({}),g=Ys(t,(e=>p(e))),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),x=d?v.indexOf(d):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,k=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Xs(e),r=(0,c.useRef)(!1),o=(0,c.useRef)((()=>{}));return(0,c.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const a={originalEvent:e};function i(){yu(fu,n,a,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...f.branches].some((e=>e.contains(t)));S&&!n&&(null==i||i(e),null==l||l(e),e.defaultPrevented||null==s||s())}),h),E=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Xs(e),r=(0,c.useRef)(!1);return(0,c.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){yu(du,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...f.branches].some((e=>e.contains(t)))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==s||s())}),h);return uu((e=>{x===f.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),h),(0,c.useEffect)((()=>{if(d)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(pu=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),vu(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=pu)}}),[d,h,r,f]),(0,c.useEffect)((()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),vu())}),[d,f]),(0,c.useEffect)((()=>{const e=()=>m({});return document.addEventListener(cu,e),()=>document.removeEventListener(cu,e)}),[]),(0,c.createElement)(ou.div,$s({},u,{ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:Ws(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ws(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ws(e.onPointerDownCapture,k.onPointerDownCapture)}))})),gu=(0,c.forwardRef)(((e,t)=>{const n=(0,c.useContext)(hu),r=(0,c.useRef)(null),o=Ys(t,r);return(0,c.useEffect)((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,c.createElement)(ou.div,$s({},e,{ref:o}))}));function vu(){const e=new CustomEvent(cu);document.dispatchEvent(e)}function yu(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?iu(o,i):o.dispatchEvent(i)}const bu=mu,xu=gu;c=i("fYo6y");let wu=0;function Su(){(0,c.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ku()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ku()),wu++,()=>{1===wu&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),wu--}}),[])}function ku(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}c=i("fYo6y");const Eu="focusScope.autoFocusOnMount",_u="focusScope.autoFocusOnUnmount",Cu={bubbles:!1,cancelable:!0},Ou=(0,c.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=(0,c.useState)(null),u=Xs(o),f=Xs(i),d=(0,c.useRef)(null),p=Ys(t,(e=>s(e))),h=(0,c.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,c.useEffect)((()=>{if(r){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?d.current=t:Mu(d.current,{select:!0})}function t(e){!h.paused&&l&&(l.contains(e.relatedTarget)||Mu(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,l,h.paused]),(0,c.useEffect)((()=>{if(l){Du.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Eu,Cu);l.addEventListener(Eu,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Mu(r,{select:t}),document.activeElement!==n)return}((e=Pu(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Mu(l))}return()=>{l.removeEventListener(Eu,u),setTimeout((()=>{const e=new CustomEvent(_u,Cu);l.addEventListener(_u,f),l.dispatchEvent(e),e.defaultPrevented||Mu(null!=t?t:document.body,{select:!0}),l.removeEventListener(_u,f),Du.remove(h)}),0)}}var e}),[l,u,f,h]);const m=(0,c.useCallback)((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Pu(e),n=ju(t,e),r=ju(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Mu(i,{select:!0})):(e.preventDefault(),n&&Mu(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return(0,c.createElement)(ou.div,$s({tabIndex:-1},a,{ref:p,onKeyDown:m}))}));function Pu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ju(e,t){for(const n of e)if(!Tu(n,{upTo:t}))return n}function Tu(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Mu(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Du=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Ru(e,t),e.unshift(t)},remove(t){var n;e=Ru(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Ru(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}c=i("fYo6y"),c=i("fYo6y");const Au=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?c.useLayoutEffect:()=>{},Nu=c["useId".toString()]||(()=>{});let Iu=0;function Lu(e){const[t,n]=c.useState(Nu());return Au((()=>{e||n((e=>null!=e?e:String(Iu++)))}),[e]),e||(t?`radix-${t}`:"")}c=i("fYo6y");function Fu(e){return e.split("-")[0]}function zu(e){return e.split("-")[1]}function Bu(e){return["top","bottom"].includes(Fu(e))?"x":"y"}function Ku(e){return"y"===e?"height":"width"}function Uu(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,l=Bu(t),s=Ku(l),u=r[s]/2-o[s]/2,c="x"===l;let f;switch(Fu(t)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:a};break;case"left":f={x:r.x-o.width,y:a};break;default:f={x:r.x,y:r.y}}switch(zu(t)){case"start":f[l]-=u*(n&&c?-1:1);break;case"end":f[l]+=u*(n&&c?-1:1)}return f}const Vu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:c}=Uu(s,r,l),f=r,d={},p=0;for(let n=0;n<i.length;n++){const{name:h,fn:m}=i[n],{x:g,y:v,data:y,reset:b}=await m({x:u,y:c,initialPlacement:r,placement:f,strategy:o,middlewareData:d,rects:s,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,c=null!=v?v:c,d={...d,[h]:{...d[h],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(s=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:c}=Uu(s,f,l))),n=-1)}return{x:u,y:c,placement:f,strategy:o,middlewareData:d}};function Hu(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $u(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Wu(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,h=Hu(p),m=l[d?"floating"===f?"reference":"floating":f],g=$u(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v=$u(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),strategy:s}):a[f]);return{top:g.top-v.top+h.top,bottom:v.bottom-g.bottom+h.bottom,left:g.left-v.left+h.left,right:v.right-g.right+h.right}}const qu=Math.min,Yu=Math.max;function Gu(e,t,n){return Yu(e,qu(t,n))}const Ju=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:l,platform:s}=t;if(null==n)return{};const u=Hu(r),c={x:o,y:i},f=Bu(a),d=zu(a),p=Ku(f),h=await s.getDimensions(n),m="y"===f?"top":"left",g="y"===f?"bottom":"right",v=l.reference[p]+l.reference[f]-c[f]-l.floating[p],y=c[f]-l.reference[f],b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n));let x=b?"y"===f?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=l.floating[p]);const w=v/2-y/2,S=u[m],k=x-h[p]-u[g],E=x/2-h[p]/2+w,_=Gu(S,E,k),C=("start"===d?u[m]:u[g])>0&&E!==_&&l.reference[p]<=l.floating[p];return{[f]:c[f]-(C?E<S?S-E:k-E:0),data:{[f]:_,centerOffset:E-_}}}}),Xu={left:"right",right:"left",bottom:"top",top:"bottom"};function Qu(e){return e.replace(/left|right|bottom|top/g,(e=>Xu[e]))}function Zu(e,t,n){void 0===n&&(n=!1);const r=zu(e),o=Bu(e),i=Ku(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Qu(a)),{main:a,cross:Qu(a)}}const ec={start:"end",end:"start"};function tc(e){return e.replace(/start|end/g,(e=>ec[e]))}const nc=["top","right","bottom","left"];const rc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:s}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=e,m=Fu(r),g=f||(m===a||!p?[Qu(a)]:function(e){const t=Qu(e);return[tc(e),t,tc(t)]}(a)),v=[a,...g],y=await Wu(t,h),b=[];let x=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&b.push(y[m]),c){const{main:e,cross:t}=Zu(r,i,await(null==l.isRTL?void 0:l.isRTL(s.floating)));b.push(y[e],y[t])}if(x=[...x,{placement:r,overflows:b}],!b.every((e=>e<=0))){var w,S;const e=(null!=(w=null==(S=o.flip)?void 0:S.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var k;const e=null==(k=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function oc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ic(e){return nc.some((t=>e[t]>=0))}const ac=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=oc(await Wu(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:ic(t)}}}case"escaped":{const t=oc(await Wu(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:ic(t)}}}default:return{}}}}};const lc=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Fu(n),l=zu(n),s="x"===Bu(n),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function sc(e){return"x"===e?"y":"x"}const uc=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,u={x:n,y:r},c=await Wu(t,s),f=Bu(Fu(o)),d=sc(f);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=Gu(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=Gu(h+c["y"===d?"top":"left"],h,h-c[e])}const m=l.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},cc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...l}=e,s=await Wu(t,l),u=Fu(n),c=zu(n);let f,d;"top"===u||"bottom"===u?(f=u,d=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(d=u,f="end"===c?"top":"bottom");const p=Yu(s.left,0),h=Yu(s.right,0),m=Yu(s.top,0),g=Yu(s.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==g?m+g:Yu(s.top,s.bottom)):s[f]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==h?p+h:Yu(s.left,s.right)):s[d])},y=await o.getDimensions(i.floating);null==a||a({...t,...v});const b=await o.getDimensions(i.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}}};function fc(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function dc(e){if(null==e)return window;if(!fc(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function pc(e){return dc(e).getComputedStyle(e)}function hc(e){return fc(e)?"":e?(e.nodeName||"").toLowerCase():""}function mc(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function gc(e){return e instanceof dc(e).HTMLElement}function vc(e){return e instanceof dc(e).Element}function yc(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof dc(e).ShadowRoot||e instanceof ShadowRoot}function bc(e){const{overflow:t,overflowX:n,overflowY:r}=pc(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function xc(e){return["table","td","th"].includes(hc(e))}function wc(e){const t=/firefox/i.test(mc()),n=pc(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function Sc(){return!/^((?!chrome|android).)*safari/i.test(mc())}const kc=Math.min,Ec=Math.max,_c=Math.round;function Cc(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let s=1,u=1;t&&gc(e)&&(s=e.offsetWidth>0&&_c(l.width)/e.offsetWidth||1,u=e.offsetHeight>0&&_c(l.height)/e.offsetHeight||1);const c=vc(e)?dc(e):window,f=!Sc()&&n,d=(l.left+(f&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/s,p=(l.top+(f&&null!=(i=null==(a=c.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=l.width/s,m=l.height/u;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function Oc(e){return(t=e,(t instanceof dc(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Pc(e){return vc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jc(e){return Cc(Oc(e)).left+Pc(e).scrollLeft}function Tc(e,t,n){const r=gc(t),o=Oc(t),i=Cc(e,r&&function(e){const t=Cc(e);return _c(t.width)!==e.offsetWidth||_c(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==hc(t)||bc(o))&&(a=Pc(t)),gc(t)){const e=Cc(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=jc(o));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Mc(e){return"html"===hc(e)?e:e.assignedSlot||e.parentNode||(yc(e)?e.host:null)||Oc(e)}function Dc(e){return gc(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Rc(e){const t=dc(e);let n=Dc(e);for(;n&&xc(n)&&"static"===getComputedStyle(n).position;)n=Dc(n);return n&&("html"===hc(n)||"body"===hc(n)&&"static"===getComputedStyle(n).position&&!wc(n))?t:n||function(e){let t=Mc(e);for(yc(t)&&(t=t.host);gc(t)&&!["html","body"].includes(hc(t));){if(wc(t))return t;t=t.parentNode}return null}(e)||t}function Ac(e){if(gc(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Cc(e);return{width:t.width,height:t.height}}function Nc(e){const t=Mc(e);return["html","body","#document"].includes(hc(t))?e.ownerDocument.body:gc(t)&&bc(t)?t:Nc(t)}function Ic(e,t){var n;void 0===t&&(t=[]);const r=Nc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=dc(r),a=o?[i].concat(i.visualViewport||[],bc(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Ic(a))}function Lc(e,t,n){return"viewport"===t?$u(function(e,t){const n=dc(e),r=Oc(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=Sc();(e||!e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n)):vc(t)?function(e,t){const n=Cc(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):$u(function(e){var t;const n=Oc(e),r=Pc(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Ec(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ec(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let l=-r.scrollLeft+jc(e);const s=-r.scrollTop;return"rtl"===pc(o||n).direction&&(l+=Ec(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Oc(e)))}function Fc(e){const t=Ic(e),n=["absolute","fixed"].includes(pc(e).position)&&gc(e)?Rc(e):e;return vc(n)?t.filter((e=>vc(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yc(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==hc(e))):[]}const zc={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Fc(t):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=Lc(t,n,o);return e.top=Ec(r.top,e.top),e.right=kc(r.right,e.right),e.bottom=kc(r.bottom,e.bottom),e.left=Ec(r.left,e.left),e}),Lc(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=gc(n),i=Oc(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==hc(n)||bc(i))&&(a=Pc(n)),gc(n))){const e=Cc(n,!0);l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+l.x,y:t.y-a.scrollTop+l.y}},isElement:vc,getDimensions:Ac,getOffsetParent:Rc,getDocumentElement:Oc,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:Tc(t,Rc(n),r),floating:{...Ac(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===pc(e).direction};function Bc(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:l=!1}=r,s=o&&!l,u=i&&!l,c=s||u?[...vc(e)?Ic(e):[],...Ic(t)]:[];c.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)}));let f,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),vc(e)&&!l&&d.observe(e),d.observe(t)}let p=l?Cc(e):null;return l&&function t(){const r=Cc(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n();p=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,l&&cancelAnimationFrame(f)}}const Kc=(e,t,n)=>Vu(e,t,{platform:zc,...n});c=i("fYo6y"),c=i("fYo6y");var Uc="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function Vc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Vc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Vc(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Hc(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=c.useRef(null),a=c.useRef(null),l=function(e){const t=c.useRef(e);return Uc((()=>{t.current=e})),t}(o),u=c.useRef(null),[f,d]=c.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[p,h]=c.useState(t);Vc(null==p?void 0:p.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||h(t);const m=c.useCallback((()=>{i.current&&a.current&&Kc(i.current,a.current,{middleware:p,placement:n,strategy:r}).then((e=>{g.current&&s.flushSync((()=>{d(e)}))}))}),[p,n,r]);Uc((()=>{g.current&&m()}),[m]);const g=c.useRef(!1);Uc((()=>(g.current=!0,()=>{g.current=!1})),[]);const v=c.useCallback((()=>{if("function"==typeof u.current&&(u.current(),u.current=null),i.current&&a.current)if(l.current){const e=l.current(i.current,a.current,m);u.current=e}else m()}),[m,l]),y=c.useCallback((e=>{i.current=e,v()}),[v]),b=c.useCallback((e=>{a.current=e,v()}),[v]),x=c.useMemo((()=>({reference:i,floating:a})),[]);return c.useMemo((()=>({...f,update:m,refs:x,reference:y,floating:b})),[f,m,x,y,b])}const $c=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Ju({element:t.current,padding:n}).fn(e):{}:t?Ju({element:t,padding:n}).fn(e):{};var r}}};const Wc=(0,(c=i("fYo6y")).forwardRef)(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,c.createElement)(ou.svg,$s({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,c.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),qc=Wc;c=i("fYo6y");function Yc(e){const[t,n]=(0,c.useState)(void 0);return Au((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const Gc="Popper",[Jc,Xc]=Gs(Gc),[Qc,Zc]=Jc(Gc),ef=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,c.useState)(null);return(0,c.createElement)(Qc,{scope:t,anchor:r,onAnchorChange:o},n)},tf="PopperAnchor",nf=(0,c.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Zc(tf,n),a=(0,c.useRef)(null),l=Ys(t,a);return(0,c.useEffect)((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:(0,c.createElement)(ou.div,$s({},o,{ref:l}))})),rf="PopperContent",[of,af]=Jc(rf),[lf,sf]=Jc(rf,{hasParent:!1,positionUpdateFns:new Set}),uf=(0,c.forwardRef)(((e,t)=>{var n,r,o,i,a,l,s,u;const{__scopePopper:f,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:g=0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,onPlaced:S,...k}=e,E=Zc(rf,f),[_,C]=(0,c.useState)(null),O=Ys(t,(e=>C(e))),[P,j]=(0,c.useState)(null),T=Yc(P),M=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,D=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,R=d+("center"!==h?"-"+h:""),A="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},N=Array.isArray(v)?v:[v],I=N.length>0,L={padding:A,boundary:N.filter(hf),altBoundary:I},{reference:F,floating:z,strategy:B,x:K,y:U,placement:V,middlewareData:H,update:$}=Hc({strategy:"fixed",placement:R,whileElementsMounted:Bc,middleware:[mf(),lc({mainAxis:p+D,alignmentAxis:m}),w?uc({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?(void 0===W&&(W={}),{options:W,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:l=!0,crossAxis:s=!0}=W,u={x:t,y:n},c=Bu(r),f=sc(c);let d=u[c],p=u[f];const h="function"==typeof a?a({...o,placement:r}):a,m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===c?"height":"width",t=o.reference[c]-o.floating[e]+m.mainAxis,n=o.reference[c]+o.reference[e]-m.mainAxis;d<t?d=t:d>n&&(d=n)}if(s){var g,v,y,b;const e="y"===c?"width":"height",t=["top","left"].includes(Fu(r)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(v=i.offset)?void 0:v[f])?g:0)+(t?0:m.crossAxis),a=o.reference[f]+o.reference[e]+(t?0:null!=(y=null==(b=i.offset)?void 0:b[f])?y:0)-(t?m.crossAxis:0);p<n?p=n:p>a&&(p=a)}return{[c]:d,[f]:p}}}):void 0,...L}):void 0,P?$c({element:P,padding:g}):void 0,w?rc({...L}):void 0,cc({...L,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),gf({arrowWidth:M,arrowHeight:D}),x?ac({strategy:"referenceHidden"}):void 0].filter(pf)});var W;Au((()=>{F(E.anchor)}),[F,E.anchor]);const q=null!==K&&null!==U,[Y,G]=vf(V),J=Xs(S);Au((()=>{q&&(null==J||J())}),[q,J]);const X=null===(o=H.arrow)||void 0===o?void 0:o.x,Q=null===(i=H.arrow)||void 0===i?void 0:i.y,Z=0!==(null===(a=H.arrow)||void 0===a?void 0:a.centerOffset),[ee,te]=(0,c.useState)();Au((()=>{_&&te(window.getComputedStyle(_).zIndex)}),[_]);const{hasParent:ne,positionUpdateFns:re}=sf(rf,f),oe=!ne;(0,c.useLayoutEffect)((()=>{if(!oe)return re.add($),()=>{re.delete($)}}),[oe,re,$]),Au((()=>{oe&&q&&Array.from(re).reverse().forEach((e=>requestAnimationFrame(e)))}),[oe,q,re]);const ie={"data-side":Y,"data-align":G,...k,ref:O,style:{...k.style,animation:q?void 0:"none",opacity:null!==(l=H.hide)&&void 0!==l&&l.referenceHidden?0:void 0}};return(0,c.createElement)("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:q?`translate3d(${Math.round(K)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null===(s=H.transformOrigin)||void 0===s?void 0:s.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,c.createElement)(of,{scope:f,placedSide:Y,onArrowChange:j,arrowX:X,arrowY:Q,shouldHideArrow:Z},oe?(0,c.createElement)(lf,{scope:f,hasParent:!0,positionUpdateFns:re},(0,c.createElement)(ou.div,ie)):(0,c.createElement)(ou.div,ie)))})),cf="PopperArrow",ff={top:"bottom",right:"left",bottom:"top",left:"right"},df=(0,c.forwardRef)((function(e,t){const{__scopePopper:n,...r}=e,o=af(cf,n),i=ff[o.placedSide];return(0,c.createElement)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},(0,c.createElement)(qc,$s({},r,{ref:t,style:{...r.style,display:"block"}})))}));function pf(e){return void 0!==e}function hf(e){return null!==e}const mf=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),gf=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=vf(l),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+f/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+d/2;let y="",b="";return"bottom"===p?(y=c?m:`${g}px`,b=-d+"px"):"top"===p?(y=c?m:`${g}px`,b=`${s.floating.height+d}px`):"right"===p?(y=-d+"px",b=c?m:`${v}px`):"left"===p&&(y=`${s.floating.width+d}px`,b=c?m:`${v}px`),{data:{x:y,y:b}}}});function vf(e){const[t,n="center"]=e.split("-");return[t,n]}const yf=ef,bf=nf,xf=uf,wf=df;const Sf=(0,(c=i("fYo6y")).forwardRef)(((e,t)=>{var r;const{container:o=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...i}=e;return o?n(s).createPortal((0,c.createElement)(ou.div,$s({},i,{ref:t})),o):null}));c=i("fYo6y");const kf=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,c.useState)(),r=(0,c.useRef)({}),o=(0,c.useRef)(e),i=(0,c.useRef)("none"),a=e?"mounted":"unmounted",[l,u]=function(e,t){return(0,c.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,c.useEffect)((()=>{const e=Ef(r.current);i.current="mounted"===l?e:"none"}),[l]),Au((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Ef(t);if(e)u("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),Au((()=>{if(t){const e=e=>{const n=Ef(r.current).includes(e.animationName);e.target===t&&n&&(0,s.flushSync)((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Ef(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,c.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):c.Children.only(n),i=Ys(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,c.cloneElement)(o,{ref:i}):null};function Ef(e){return(null==e?void 0:e.animationName)||"none"}kf.displayName="Presence";c=i("fYo6y");const _f="rovingFocusGroup.onEntryFocus",Cf={bubbles:!1,cancelable:!0},Of="RovingFocusGroup",[Pf,jf,Tf]=au(Of),[Mf,Df]=Gs(Of,[Tf]),[Rf,Af]=Mf(Of),Nf=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(Pf.Provider,{scope:e.__scopeRovingFocusGroup},(0,c.createElement)(Pf.Slot,{scope:e.__scopeRovingFocusGroup},(0,c.createElement)(If,$s({},e,{ref:t})))))),If=(0,c.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,...f}=e,d=(0,c.useRef)(null),p=Ys(t,d),h=su(i),[m=null,g]=Qs({prop:a,defaultProp:l,onChange:s}),[v,y]=(0,c.useState)(!1),b=Xs(u),x=jf(n),w=(0,c.useRef)(!1),[S,k]=(0,c.useState)(0);return(0,c.useEffect)((()=>{const e=d.current;if(e)return e.addEventListener(_f,b),()=>e.removeEventListener(_f,b)}),[b]),(0,c.createElement)(Rf,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:m,onItemFocus:(0,c.useCallback)((e=>g(e)),[g]),onItemShiftTab:(0,c.useCallback)((()=>y(!0)),[]),onFocusableItemAdd:(0,c.useCallback)((()=>k((e=>e+1))),[]),onFocusableItemRemove:(0,c.useCallback)((()=>k((e=>e-1))),[])},(0,c.createElement)(ou.div,$s({tabIndex:v||0===S?-1:0,"data-orientation":r},f,{ref:p,style:{outline:"none",...e.style},onMouseDown:Ws(e.onMouseDown,(()=>{w.current=!0})),onFocus:Ws(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(_f,Cf);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));Bf([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:Ws(e.onBlur,(()=>y(!1)))})))})),Lf="RovingFocusGroupItem",Ff=(0,c.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=Lu(),s=i||l,u=Af(Lf,n),f=u.currentTabStopId===s,d=jf(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=u;return(0,c.useEffect)((()=>{if(r)return p(),()=>h()}),[r,p,h]),(0,c.createElement)(Pf.ItemSlot,{scope:n,id:s,focusable:r,active:o},(0,c.createElement)(ou.span,$s({tabIndex:f?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:Ws(e.onMouseDown,(e=>{r?u.onItemFocus(s):e.preventDefault()})),onFocus:Ws(e.onFocus,(()=>u.onItemFocus(s))),onKeyDown:Ws(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:zf[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Bf(o)))}var n,r}))})))})),zf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Bf(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Kf=Nf,Uf=Ff;var Vf=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Hf=new WeakMap,$f=new WeakMap,Wf={},qf=0,Yf=function(e){return e&&(e.host||Yf(e.parentNode))},Gf=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Yf(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Wf[n]||(Wf[n]=new WeakMap);var i=Wf[n],a=[],l=new Set,s=new Set(o),u=function(e){e&&!l.has(e)&&(l.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))c(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(Hf.get(e)||0)+1,u=(i.get(e)||0)+1;Hf.set(e,s),i.set(e,u),a.push(e),1===s&&o&&$f.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return c(t),l.clear(),qf++,function(){a.forEach((function(e){var t=Hf.get(e)-1,o=i.get(e)-1;Hf.set(e,t),i.set(e,o),t||($f.has(e)||e.removeAttribute(r),$f.delete(e)),o||e.removeAttribute(n)})),--qf||(Hf=new WeakMap,Hf=new WeakMap,$f=new WeakMap,Wf={})}},Jf=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Vf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Gf(r,o,n,"aria-hidden")):function(){return null}};var Xf=function(){return Xf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xf.apply(this,arguments)};function Qf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;c=i("fYo6y"),c=i("fYo6y");var Zf="right-scroll-bar-position",ed="width-before-scroll-bar";c=i("fYo6y");function td(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=(0,c.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}function nd(e){return e}function rd(e,t){void 0===t&&(t=nd);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}var od=function(e){void 0===e&&(e={});var t=rd(null);return t.options=Xf({async:!0,ssr:!1},e),t}(),id=function(){},ad=c.forwardRef((function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:id,onWheelCapture:id,onTouchMoveCapture:id}),o=r[0],i=r[1],a=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=Qf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=p,w=td([n,t]),S=Xf(Xf({},b),o);return c.createElement(c.Fragment,null,f&&c.createElement(x,{sideCar:od,removeScrollBar:u,shards:d,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),a?c.cloneElement(c.Children.only(l),Xf(Xf({},S),{ref:w})):c.createElement(y,Xf({},S,{className:s,ref:w}),l))}));ad.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ad.classNames={fullWidth:ed,zeroRight:Zf};c=i("fYo6y");var ld=function(e){var t=e.sideCar,n=Qf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,Xf({},n))};ld.isSideCarExport=!0;var sd;c=i("fYo6y"),c=i("fYo6y"),c=i("fYo6y");function ud(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sd||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}var cd=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ud())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fd=function(){var e,t=(e=cd(),function(t,n){c.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},dd={left:0,top:0,right:0,gap:0},pd=function(e){return parseInt(e||"",10)||0},hd=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return dd;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[pd(n),pd(r),pd(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},md=fd(),gd=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Zf," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(ed," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(Zf," .").concat(Zf," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(ed," .").concat(ed," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},vd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=c.useMemo((function(){return hd(o)}),[o]);return c.createElement(md,{styles:gd(i,!t,o,n?"":"!important")})},yd=!1;if("undefined"!=typeof window)try{var bd=Object.defineProperty({},"passive",{get:function(){return yd=!0,!0}});window.addEventListener("test",bd,bd),window.removeEventListener("test",bd,bd)}catch(e){yd=!1}var xd=!!yd&&{passive:!1},wd=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Sd=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),kd(e,n)){var r=Ed(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},kd=function(e,t){return"v"===e?function(e){return wd(e,"overflowY")}(t):function(e){return wd(e,"overflowX")}(t)},Ed=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},_d=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cd=function(e){return[e.deltaX,e.deltaY]},Od=function(e){return e&&"current"in e?e.current:e},Pd=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},jd=0,Td=[];var Md,Dd=(Md=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(jd++)[0],i=c.useState((function(){return fd()}))[0],a=c.useRef(e);c.useEffect((function(){a.current=e}),[e]),c.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Od),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=c.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=_d(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,f=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===c.type)return!1;var d=Sd(f,c);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=Sd(f,c)),!d)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),u=!1,c=a>0,f=0,d=0;do{var p=Ed(e,l),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&kd(e,l)&&(f+=m,d+=h),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(c&&(o&&0===f||!o&&a>f)||!c&&(o&&0===d||!o&&-a>d))&&(u=!0),u}(p,t,e,"h"===p?s:u,!0)}),[]),s=c.useCallback((function(e){var n=e;if(Td.length&&Td[Td.length-1]===i){var r="deltaY"in n?Cd(n):_d(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var s=(a.current.shards||[]).map(Od).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=c.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),f=c.useCallback((function(e){n.current=_d(e),r.current=void 0}),[]),d=c.useCallback((function(t){u(t.type,Cd(t),t.target,l(t,e.lockRef.current))}),[]),p=c.useCallback((function(t){u(t.type,_d(t),t.target,l(t,e.lockRef.current))}),[]);c.useEffect((function(){return Td.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,xd),document.addEventListener("touchmove",s,xd),document.addEventListener("touchstart",f,xd),function(){Td=Td.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,xd),document.removeEventListener("touchmove",s,xd),document.removeEventListener("touchstart",f,xd)}}),[]);var h=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(i,{styles:Pd(o)}):null,h?c.createElement(vd,{gapMode:"margin"}):null)},od.useMedium(Md),ld),Rd=c.forwardRef((function(e,t){return c.createElement(ad,Xf({},e,{ref:t,sideCar:Dd}))}));Rd.classNames=ad.classNames;var Ad=Rd;const Nd=["Enter"," "],Id=["ArrowUp","PageDown","End"],Ld=["ArrowDown","PageUp","Home",...Id],Fd="Menu",[zd,Bd,Kd]=au(Fd),[Ud,Vd]=Gs(Fd,[Kd,Xc,Df]),Hd=Xc(),$d=Df(),[Wd,qd]=Ud(Fd),[Yd,Gd]=Ud(Fd),Jd=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,l=Hd(t),[s,u]=(0,c.useState)(null),f=(0,c.useRef)(!1),d=Xs(i),p=su(o);return(0,c.useEffect)((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,c.createElement)(yf,l,(0,c.createElement)(Wd,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:u},(0,c.createElement)(Yd,{scope:t,onClose:(0,c.useCallback)((()=>d(!1)),[d]),isUsingKeyboardRef:f,dir:p,modal:a},r)))},Xd=(0,c.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Hd(n);return(0,c.createElement)(bf,$s({},o,r,{ref:t}))})),Qd="MenuPortal",[Zd,ep]=Ud(Qd,{forceMount:void 0}),tp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=qd(Qd,t);return(0,c.createElement)(Zd,{scope:t,forceMount:n},(0,c.createElement)(kf,{present:n||i.open},(0,c.createElement)(Sf,{asChild:!0,container:o},r)))},np="MenuContent",[rp,op]=Ud(np),ip=(0,c.forwardRef)(((e,t)=>{const n=ep(np,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=qd(np,e.__scopeMenu),a=Gd(np,e.__scopeMenu);return(0,c.createElement)(zd.Provider,{scope:e.__scopeMenu},(0,c.createElement)(kf,{present:r||i.open},(0,c.createElement)(zd.Slot,{scope:e.__scopeMenu},a.modal?(0,c.createElement)(ap,$s({},o,{ref:t})):(0,c.createElement)(lp,$s({},o,{ref:t})))))})),ap=(0,c.forwardRef)(((e,t)=>{const n=qd(np,e.__scopeMenu),r=(0,c.useRef)(null),o=Ys(t,r);return(0,c.useEffect)((()=>{const e=r.current;if(e)return Jf(e)}),[]),(0,c.createElement)(sp,$s({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ws(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),lp=(0,c.forwardRef)(((e,t)=>{const n=qd(np,e.__scopeMenu);return(0,c.createElement)(sp,$s({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),sp=(0,c.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:h,disableOutsideScroll:m,...g}=e,v=qd(np,n),y=Gd(np,n),b=Hd(n),x=$d(n),w=Bd(n),[S,k]=(0,c.useState)(null),E=(0,c.useRef)(null),_=Ys(t,E,v.onContentChange),C=(0,c.useRef)(0),O=(0,c.useRef)(""),P=(0,c.useRef)(0),j=(0,c.useRef)(null),T=(0,c.useRef)("right"),M=(0,c.useRef)(0),D=m?Ad:c.Fragment,R=m?{as:Zs,allowPinchZoom:!0}:void 0,A=e=>{var t,n;const r=O.current+e,o=w().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(l=e,s=Math.max(i,0),l.map(((e,t)=>l[(s+t)%l.length])));var l,s;1===o.length&&(a=a.filter((e=>e!==n)));const u=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==n?u:void 0}(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){O.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout((()=>e("")),1e3))}(r),s&&setTimeout((()=>s.focus()))};(0,c.useEffect)((()=>()=>window.clearTimeout(C.current)),[]),Su();const N=(0,c.useCallback)((e=>{var t,n;return T.current===(null===(t=j.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,s=t[i].x,u=t[i].y;l>r!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,t)}(e,null===(n=j.current)||void 0===n?void 0:n.area)}),[]);return(0,c.createElement)(rp,{scope:n,searchRef:O,onItemEnter:(0,c.useCallback)((e=>{N(e)&&e.preventDefault()}),[N]),onItemLeave:(0,c.useCallback)((e=>{var t;N(e)||(null===(t=E.current)||void 0===t||t.focus(),k(null))}),[N]),onTriggerLeave:(0,c.useCallback)((e=>{N(e)&&e.preventDefault()}),[N]),pointerGraceTimerRef:P,onPointerGraceIntentChange:(0,c.useCallback)((e=>{j.current=e}),[])},(0,c.createElement)(D,R,(0,c.createElement)(Ou,{asChild:!0,trapped:o,onMountAutoFocus:Ws(i,(e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},(0,c.createElement)(mu,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:h},(0,c.createElement)(Kf,$s({asChild:!0},x,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:k,onEntryFocus:Ws(s,(e=>{y.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,c.createElement)(xf,$s({role:"menu","aria-orientation":"vertical","data-state":Ep(v.open),"data-radix-menu-content":"",dir:y.dir},b,g,{ref:_,style:{outline:"none",...g.style},onKeyDown:Ws(g.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&A(e.key));const o=E.current;if(e.target!==o)return;if(!Ld.includes(e.key))return;e.preventDefault();const i=w().filter((e=>!e.disabled)).map((e=>e.ref.current));Id.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:Ws(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),O.current="")})),onPointerMove:Ws(e.onPointerMove,_p((e=>{const t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>M.current?"right":"left";T.current=t,M.current=e.clientX}})))})))))))})),up="MenuItem",cp="menu.itemSelect",fp=(0,c.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=(0,c.useRef)(null),a=Gd(up,e.__scopeMenu),l=op(up,e.__scopeMenu),s=Ys(t,i),u=(0,c.useRef)(!1);return(0,c.createElement)(dp,$s({},o,{ref:s,disabled:n,onClick:Ws(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(cp,{bubbles:!0,cancelable:!0});e.addEventListener(cp,(e=>null==r?void 0:r(e)),{once:!0}),iu(e,t),t.defaultPrevented?u.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:Ws(e.onPointerUp,(e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:Ws(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||Nd.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),dp=(0,c.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=op(up,n),l=$d(n),s=(0,c.useRef)(null),u=Ys(t,s),[f,d]=(0,c.useState)(!1),[p,h]=(0,c.useState)("");return(0,c.useEffect)((()=>{const e=s.current;var t;e&&h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),(0,c.createElement)(zd.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:p},(0,c.createElement)(Uf,$s({asChild:!0},l,{focusable:!r}),(0,c.createElement)(ou.div,$s({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:u,onPointerMove:Ws(e.onPointerMove,_p((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:Ws(e.onPointerLeave,_p((e=>a.onItemLeave(e)))),onFocus:Ws(e.onFocus,(()=>d(!0))),onBlur:Ws(e.onBlur,(()=>d(!1)))}))))})),pp="MenuRadioGroup",[hp,mp]=Ud(pp,{value:void 0,onValueChange:()=>{}}),gp="MenuItemIndicator",[vp,yp]=Ud(gp,{checked:!1}),bp=(0,c.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,c.createElement)(ou.div,$s({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),xp=(0,c.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Hd(n);return(0,c.createElement)(wf,$s({},o,r,{ref:t}))})),wp="MenuSub",[Sp,kp]=Ud(wp);function Ep(e){return e?"open":"closed"}function _p(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Cp=Jd,Op=Xd,Pp=tp,jp=ip,Tp=fp,Mp=bp,Dp=xp,Rp="DropdownMenu",[Ap,Np]=Gs(Rp,[Vd]),Ip=Vd(),[Lp,Fp]=Ap(Rp),zp=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,s=Ip(t),u=(0,c.useRef)(null),[f=!1,d]=Qs({prop:o,defaultProp:i,onChange:a});return(0,c.createElement)(Lp,{scope:t,triggerId:Lu(),triggerRef:u,contentId:Lu(),open:f,onOpenChange:d,onOpenToggle:(0,c.useCallback)((()=>d((e=>!e))),[d]),modal:l},(0,c.createElement)(Cp,$s({},s,{open:f,onOpenChange:d,dir:r,modal:l}),n))},Bp="DropdownMenuTrigger",Kp=(0,c.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Fp(Bp,n),a=Ip(n);return(0,c.createElement)(Op,$s({asChild:!0},a),(0,c.createElement)(ou.button,$s({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:qs(t,i.triggerRef),onPointerDown:Ws(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:Ws(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),Up=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ip(t);return(0,c.createElement)(Pp,$s({},r,n))},Vp="DropdownMenuContent",Hp=(0,c.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fp(Vp,n),i=Ip(n),a=(0,c.useRef)(!1);return(0,c.createElement)(jp,$s({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:Ws(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:Ws(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),$p=(0,c.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ip(n);return(0,c.createElement)(Tp,$s({},o,r,{ref:t}))})),Wp=(0,c.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ip(n);return(0,c.createElement)(Mp,$s({},o,r,{ref:t}))})),qp=(0,c.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ip(n);return(0,c.createElement)(Dp,$s({},o,r,{ref:t}))})),Yp=zp,Gp=Kp,Jp=Up,Xp=Hp,Qp=$p,Zp=Wp,eh=qp;c=i("fYo6y");var th={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const nh=(e,t)=>{const n=(0,c.forwardRef)((({color:n="currentColor",size:r=24,strokeWidth:o=2,children:i,...a},l)=>{return(0,c.createElement)("svg",{ref:l,...th,width:r,height:r,stroke:n,strokeWidth:o,className:`lucide lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...a},[...t.map((([e,t])=>(0,c.createElement)(e,t))),...(Array.isArray(i)?i:[i])||[]]);var s}));return n.displayName=`${e}`,n},rh=nh("History",[["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3.05 13A9 9 0 1 0 6 5.3L3 8",key:"1xoms2"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),oh=nh("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),ih=nh("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]),ah=nh("X",[["line",{x1:"18",y1:"6",x2:"6",y2:"18",key:"1o5bob"}],["line",{x1:"6",y1:"6",x2:"18",y2:"18",key:"z4dcbv"}]]);c=i("fYo6y"),c=i("fYo6y");const lh=(0,(c=i("fYo6y")).forwardRef)(((e,t)=>(0,c.createElement)(ou.span,$s({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),sh=lh,[uh,ch]=Gs("Tooltip",[Xc]),fh=Xc(),dh="TooltipProvider",ph=700,hh="tooltip.open",[mh,gh]=uh(dh),vh=e=>{const{__scopeTooltip:t,delayDuration:n=ph,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,l]=(0,c.useState)(!0),s=(0,c.useRef)(!1),u=(0,c.useRef)(0);return(0,c.useEffect)((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),(0,c.createElement)(mh,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,c.useCallback)((()=>{window.clearTimeout(u.current),l(!1)}),[]),onClose:(0,c.useCallback)((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>l(!0)),r)}),[r]),isPointerInTransitRef:s,onPointerInTransitChange:(0,c.useCallback)((e=>{s.current=e}),[]),disableHoverableContent:o},i)},yh="Tooltip",[bh,xh]=uh(yh),wh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:l}=e,s=gh(yh,e.__scopeTooltip),u=fh(t),[f,d]=(0,c.useState)(null),p=Lu(),h=(0,c.useRef)(0),m=null!=a?a:s.disableHoverableContent,g=null!=l?l:s.delayDuration,v=(0,c.useRef)(!1),[y=!1,b]=Qs({prop:r,defaultProp:o,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(hh))):s.onClose(),null==i||i(e)}}),x=(0,c.useMemo)((()=>y?v.current?"delayed-open":"instant-open":"closed"),[y]),w=(0,c.useCallback)((()=>{window.clearTimeout(h.current),v.current=!1,b(!0)}),[b]),S=(0,c.useCallback)((()=>{window.clearTimeout(h.current),b(!1)}),[b]),k=(0,c.useCallback)((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{v.current=!0,b(!0)}),g)}),[g,b]);return(0,c.useEffect)((()=>()=>window.clearTimeout(h.current)),[]),(0,c.createElement)(yf,u,(0,c.createElement)(bh,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:f,onTriggerChange:d,onTriggerEnter:(0,c.useCallback)((()=>{s.isOpenDelayed?k():w()}),[s.isOpenDelayed,k,w]),onTriggerLeave:(0,c.useCallback)((()=>{m?S():window.clearTimeout(h.current)}),[S,m]),onOpen:w,onClose:S,disableHoverableContent:m},n))},Sh="TooltipTrigger",kh=(0,c.forwardRef)(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=xh(Sh,n),i=gh(Sh,n),a=fh(n),l=Ys(t,(0,c.useRef)(null),o.onTriggerChange),s=(0,c.useRef)(!1),u=(0,c.useRef)(!1),f=(0,c.useCallback)((()=>s.current=!1),[]);return(0,c.useEffect)((()=>()=>document.removeEventListener("pointerup",f)),[f]),(0,c.createElement)(bf,$s({asChild:!0},a),(0,c.createElement)(ou.button,$s({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:Ws(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))})),onPointerLeave:Ws(e.onPointerLeave,(()=>{o.onTriggerLeave(),u.current=!1})),onPointerDown:Ws(e.onPointerDown,(()=>{s.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:Ws(e.onFocus,(()=>{s.current||o.onOpen()})),onBlur:Ws(e.onBlur,o.onClose),onClick:Ws(e.onClick,o.onClose)})))})),Eh="TooltipPortal",[_h,Ch]=uh(Eh,{forceMount:void 0}),Oh="TooltipContent",Ph=(0,c.forwardRef)(((e,t)=>{const n=Ch(Oh,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=xh(Oh,e.__scopeTooltip);return(0,c.createElement)(kf,{present:r||a.open},a.disableHoverableContent?(0,c.createElement)(Dh,$s({side:o},i,{ref:t})):(0,c.createElement)(jh,$s({side:o},i,{ref:t})))})),jh=(0,c.forwardRef)(((e,t)=>{const n=xh(Oh,e.__scopeTooltip),r=gh(Oh,e.__scopeTooltip),o=(0,c.useRef)(null),i=Ys(t,o),[a,l]=(0,c.useState)(null),{trigger:s,onClose:u}=n,f=o.current,{onPointerInTransitChange:d}=r,p=(0,c.useCallback)((()=>{l(null),d(!1)}),[d]),h=(0,c.useCallback)(((e,t)=>{const n=e.currentTarget,r=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},n.getBoundingClientRect()),o="right"===r||"bottom"===r?-5:5,i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}(["right"===r||"left"===r?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(i),d(!0)}),[d]);return(0,c.useEffect)((()=>()=>p()),[p]),(0,c.useEffect)((()=>{if(s&&f){const e=e=>h(e,f),t=e=>h(e,s);return s.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[s,f,h,p]),(0,c.useEffect)((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,s=t[i].x,u=t[i].y;l>r!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,a);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[s,f,a,u,p]),(0,c.createElement)(Dh,$s({},e,{ref:i}))})),[Th,Mh]=uh(yh,{isInside:!1}),Dh=(0,c.forwardRef)(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=e,s=xh(Oh,n),u=fh(n),{onClose:f}=s;return(0,c.useEffect)((()=>(document.addEventListener(hh,f),()=>document.removeEventListener(hh,f))),[f]),(0,c.useEffect)((()=>{if(s.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(s.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[s.trigger,f]),(0,c.createElement)(mu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:f},(0,c.createElement)(xf,$s({"data-state":s.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,c.createElement)(tu,null,r),(0,c.createElement)(Th,{scope:n,isInside:!0},(0,c.createElement)(sh,{id:s.contentId,role:"tooltip"},o||r))))}));const Rh=vh,Ah=wh,Nh=kh,Ih=Ph,Lh=({...e})=>(0,l.jsx)(Rh,{children:(0,l.jsx)(Ah,{...e})});Lh.displayName=wh.displayName;const Fh=Nh,zh=c.forwardRef((({className:e,sideOffset:t=4,...n},r)=>(0,l.jsx)(Ih,{ref:r,sideOffset:t,className:ul("z-50 overflow-hidden rounded-md border border-slate-100 bg-white px-3 py-1.5 text-sm text-slate-700 shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=top]:slide-in-from-bottom-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 dark:border-slate-800 dark:bg-slate-800 dark:text-slate-400",e),...n})));zh.displayName=Ih.displayName;var Bh={},Kh=Bh&&Bh.__assign||function(){return Kh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kh.apply(this,arguments)};Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.Popover=Bh.usePopover=Bh.ArrowContainer=Bh.useArrowContainer=void 0;c=i("fYo6y");var Uh={};Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.PopoverPortal=void 0;c=i("fYo6y");Uh.PopoverPortal=function(e){var t=e.container,n=e.element,r=e.scoutElement,o=e.children;return c.useLayoutEffect((function(){return t.appendChild(n),t.appendChild(r),function(){t.removeChild(n),t.removeChild(r)}}),[t,n,r]),s.createPortal(o,n)};var Vh={};Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.getNudgedPopoverRect=Vh.getNewPopoverRect=Vh.popoverRectForPosition=Vh.createContainer=Vh.rectsAreEqual=Vh.EMPTY_CLIENT_RECT=void 0,Vh.EMPTY_CLIENT_RECT={top:0,left:0,bottom:0,height:0,right:0,width:0};Vh.rectsAreEqual=function(e,t){return e===t||(null==e?void 0:e.bottom)===(null==t?void 0:t.bottom)&&(null==e?void 0:e.height)===(null==t?void 0:t.height)&&(null==e?void 0:e.left)===(null==t?void 0:t.left)&&(null==e?void 0:e.right)===(null==t?void 0:t.right)&&(null==e?void 0:e.top)===(null==t?void 0:t.top)&&(null==e?void 0:e.width)===(null==t?void 0:t.width)};Vh.createContainer=function(e,t){var n=window.document.createElement("div");return t&&(n.className=t),Object.assign(n.style,e),n};Vh.popoverRectForPosition=function(e,t,n,r,o){var i,a,l=t.left+t.width/2,s=t.top+t.height/2,u=n.width,c=n.height;switch(e){case"left":i=s-c/2,a=t.left-r-u,"start"===o&&(i=t.top),"end"===o&&(i=t.bottom-c);break;case"bottom":i=t.bottom+r,a=l-u/2,"start"===o&&(a=t.left),"end"===o&&(a=t.right-u);break;case"right":i=s-c/2,a=t.right+r,"start"===o&&(i=t.top),"end"===o&&(i=t.bottom-c);break;default:i=t.top-c-r,a=l-u/2,"start"===o&&(a=t.left),"end"===o&&(a=t.right-u)}return{top:i,left:a,width:u,height:c,right:a+u,bottom:i+c}};Vh.getNewPopoverRect=function(e,t){var n=e.position,r=e.align,o=e.childRect,i=e.popoverRect,a=e.boundaryRect,l=e.padding,s=e.reposition,u=Vh.popoverRectForPosition(n,o,i,l,r);return{rect:u,boundaryViolation:s&&("top"===n&&u.top<a.top+t||"left"===n&&u.left<a.left+t||"right"===n&&u.right>a.right-t||"bottom"===n&&u.bottom>a.bottom-t)}};Vh.getNudgedPopoverRect=function(e,t,n){var r=t.top+n,o=t.left+n,i=t.right-n,a=t.bottom-n,l=e.top<r?r:e.top;l=l+e.height>a?a-e.height:l;var s=e.left<o?o:e.left;return{top:l,left:s=s+e.width>i?i-e.width:s,width:e.width,height:e.height,right:s+e.width,bottom:l+e.height}};var Hh={};Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.usePopover=void 0;c=i("fYo6y");var $h={};Object.defineProperty($h,"__esModule",{value:!0}),$h.useElementRef=void 0;c=i("fYo6y");$h.useElementRef=function(e,t){var n=c.useRef(),r=c.useMemo((function(){return Vh.createContainer(t,e)}),[e,t]);return n.current=r,n};var Wh={position:"fixed",overflow:"visible",top:"0px",left:"0px"},qh={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"};Hh.usePopover=function(e){var t=e.isOpen,n=e.childRef,r=e.positions,o=e.containerClassName,i=e.parentElement,a=e.contentLocation,l=e.align,s=e.padding,u=e.reposition,f=e.boundaryInset,d=e.boundaryElement,p=e.onPositionPopover,h=$h.useElementRef(o,Wh),m=$h.useElementRef("react-tiny-popover-scout",qh),g=c.useCallback((function(e){var o,c,v=void 0===e?{}:e,y=v.positionIndex,b=void 0===y?0:y,x=v.parentRect,w=void 0===x?i.getBoundingClientRect():x,S=v.childRect,k=void 0===S?null===(o=null==n?void 0:n.current)||void 0===o?void 0:o.getBoundingClientRect():S,E=v.scoutRect,_=void 0===E?null===(c=null==m?void 0:m.current)||void 0===c?void 0:c.getBoundingClientRect():E,C=v.popoverRect,O=void 0===C?h.current.getBoundingClientRect():C,P=v.boundaryRect,j=void 0===P?d===i?w:d.getBoundingClientRect():P;if(k&&w&&t){if(a){var T="function"==typeof a?a({childRect:k,popoverRect:O,parentRect:w,boundaryRect:j,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:f,violations:Vh.EMPTY_CLIENT_RECT,hasViolations:!1}):a,M=T.top,D=T.left,R=Math.round(w.left+D-_.left),A=Math.round(w.top+M-_.top);return h.current.style.transform="translate("+R+"px, "+A+"px)",void p({childRect:k,popoverRect:O,parentRect:w,boundaryRect:j,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:f,violations:Vh.EMPTY_CLIENT_RECT,hasViolations:!1})}var N=b===r.length,I=N?r[0]:r[b],L=Vh.getNewPopoverRect({childRect:k,popoverRect:O,boundaryRect:j,position:I,align:l,padding:s,reposition:u},f),F=L.rect;if(L.boundaryViolation&&u&&!N)g({positionIndex:b+1,childRect:k,popoverRect:O,parentRect:w,boundaryRect:j});else{var z=F.top,B=F.left,K=F.width,U=F.height,V=u&&!N,H=Vh.getNudgedPopoverRect(F,j,f),$=H.left,W=H.top,q=z,Y=B;V&&(q=W,Y=$),q=Math.round(q-_.top),Y=Math.round(Y-_.left),h.current.style.transform="translate("+Y+"px, "+q+"px)";var G={top:j.top+f-q,left:j.left+f-Y,right:Y+K-j.right+f,bottom:q+U-j.bottom+f};p({childRect:k,popoverRect:{top:q,left:Y,width:K,height:U,right:Y+K,bottom:q+U},parentRect:w,boundaryRect:j,position:I,align:l,padding:s,nudgedTop:W-z,nudgedLeft:$-B,boundaryInset:f,violations:{top:G.top<=0?0:G.top,left:G.left<=0?0:G.left,right:G.right<=0?0:G.right,bottom:G.bottom<=0?0:G.bottom},hasViolations:G.top>0||G.left>0||G.right>0||G.bottom>0})}}}),[i,n,m,h,d,t,a,r,l,s,u,f,p]);return{positionPopover:g,popoverRef:h,scoutRef:m}},Object.defineProperty(Bh,"usePopover",{enumerable:!0,get:function(){return Hh.usePopover}});var Yh={};Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.useMemoizedArray=void 0;c=i("fYo6y");Yh.useMemoizedArray=function(e){var t=c.useRef(e);return c.useMemo((function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var n=0;n<e.length;n+=1)if(e[n]!==t.current[n])return t.current=e,e;return t.current}),[e])};var Gh={},Jh=Gh&&Gh.__assign||function(){return Jh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jh.apply(this,arguments)};Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.useArrowContainer=void 0;c=i("fYo6y");Gh.useArrowContainer=function(e){var t=e.childRect,n=e.popoverRect,r=e.position,o=e.arrowSize,i=e.arrowColor;return{arrowContainerStyle:c.useMemo((function(){return{padding:o}}),[o]),arrowStyle:c.useMemo((function(){return Jh({position:"absolute"},function(){var e=2*o,a=t.top-n.top+t.height/2-e/2,l=t.left-n.left+t.width/2-e/2,s=o,u=n.width-o,c=n.height-o;switch(l=(l=l<s?s:l)+e>u?u-e:l,a=(a=a<s?s:a)+e>c?c-e:a,a=Number.isNaN(a)?0:a,l=Number.isNaN(l)?0:l,r){case"right":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderRight:o+"px solid "+i,left:0,top:a};case"left":return{borderTop:o+"px solid transparent",borderBottom:o+"px solid transparent",borderLeft:o+"px solid "+i,right:0,top:a};case"bottom":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderBottom:o+"px solid "+i,top:0,left:l};case"top":return{borderLeft:o+"px solid transparent",borderRight:o+"px solid transparent",borderTop:o+"px solid "+i,bottom:0,left:l};default:return{display:"hidden"}}}())}),[i,o,t.height,t.left,t.top,t.width,n.height,n.left,n.top,n.width,r])}},Object.defineProperty(Bh,"useArrowContainer",{enumerable:!0,get:function(){return Gh.useArrowContainer}});var Xh={},Qh=Xh&&Xh.__assign||function(){return Qh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qh.apply(this,arguments)};Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.ArrowContainer=void 0;c=i("fYo6y");Xh.ArrowContainer=function(e){var t=e.childRect,n=e.popoverRect,r=e.position,o=e.arrowColor,i=e.arrowSize,a=e.arrowClassName,s=e.arrowStyle,u=e.className,f=e.children,d=e.style,p=Gh.useArrowContainer({childRect:t,popoverRect:n,position:r,arrowColor:o,arrowSize:i}),h=p.arrowContainerStyle,m=p.arrowStyle,g=c.useMemo((function(){return Qh(Qh({},h),d)}),[h,d]),v=c.useMemo((function(){return Qh(Qh({},m),s)}),[m,s]);return l.jsxs("div",Qh({className:u,style:g},{children:[l.jsx("div",{style:v,className:a},void 0),f]}),void 0)},Object.defineProperty(Bh,"ArrowContainer",{enumerable:!0,get:function(){return Xh.ArrowContainer}});var Zh=["top","left","right","bottom"],em=c.forwardRef((function(e,t){var n=e.isOpen,r=e.children,o=e.content,i=e.positions,a=void 0===i?Zh:i,s=e.align,u=void 0===s?"center":s,f=e.padding,d=void 0===f?0:f,p=e.reposition,h=void 0===p||p,m=e.parentElement,g=void 0===m?window.document.body:m,v=e.boundaryElement,y=void 0===v?g:v,b=e.containerClassName,x=void 0===b?"react-tiny-popover-container":b,w=e.containerStyle,S=e.contentLocation,k=e.boundaryInset,E=void 0===k?0:k,_=e.onClickOutside,C=e.clickOutsideCapture,O=void 0!==C&&C,P=Yh.useMemoizedArray(a),j=c.useRef(!1),T=c.useRef(),M=c.useRef(),D=c.useRef(h),R=c.useRef(),A=c.useState({align:u,nudgedLeft:0,nudgedTop:0,position:P[0],padding:d,childRect:Vh.EMPTY_CLIENT_RECT,popoverRect:Vh.EMPTY_CLIENT_RECT,parentRect:Vh.EMPTY_CLIENT_RECT,boundaryRect:Vh.EMPTY_CLIENT_RECT,boundaryInset:E,violations:Vh.EMPTY_CLIENT_RECT,hasViolations:!1}),N=A[0],I=A[1],L=c.useCallback((function(e){return I(e)}),[]),F=Hh.usePopover({isOpen:n,childRef:R,containerClassName:x,parentElement:g,boundaryElement:y,contentLocation:S,positions:P,align:u,padding:d,boundaryInset:E,reposition:h,onPositionPopover:L}),z=F.positionPopover,B=F.popoverRef,K=F.scoutRef;c.useLayoutEffect((function(){var e=!0,t=function(){var r,o;if(n&&e){var i=null===(r=null==R?void 0:R.current)||void 0===r?void 0:r.getBoundingClientRect(),a=null===(o=null==B?void 0:B.current)||void 0===o?void 0:o.getBoundingClientRect();null==i||null==a||Vh.rectsAreEqual(i,{top:N.childRect.top,left:N.childRect.left,width:N.childRect.width,height:N.childRect.height,bottom:N.childRect.top+N.childRect.height,right:N.childRect.left+N.childRect.width})&&a.width===N.popoverRect.width&&a.height===N.popoverRect.height&&N.padding===d&&N.align===u&&P===T.current&&S===M.current&&h===D.current||z(),P!==T.current&&(T.current=P),S!==M.current&&(M.current=S),h!==D.current&&(D.current=h),e&&window.requestAnimationFrame(t)}j.current=n};return window.requestAnimationFrame(t),function(){e=!1}}),[u,S,n,d,B,N.align,N.childRect.height,N.childRect.left,N.childRect.top,N.childRect.width,N.padding,N.popoverRect.height,N.popoverRect.width,z,P,h]),c.useEffect((function(){var e=B.current;return Object.assign(e.style,w),function(){Object.keys(null!=w?w:{}).forEach((function(t){return delete e.style[t]}))}}),[w,n,B]);var U=c.useCallback((function(e){var t,r;!n||(null===(t=B.current)||void 0===t?void 0:t.contains(e.target))||(null===(r=R.current)||void 0===r?void 0:r.contains(e.target))||null==_||_(e)}),[n,_,B]),V=c.useCallback((function(){R.current&&window.requestAnimationFrame((function(){return z()}))}),[z]);c.useEffect((function(){var e=g.ownerDocument.body;return e.addEventListener("click",U,O),e.addEventListener("contextmenu",U,O),e.addEventListener("resize",V),function(){e.removeEventListener("click",U,O),e.removeEventListener("contextmenu",U,O),e.removeEventListener("resize",V)}}),[O,U,V,g]);var H=c.useCallback((function(e){R.current=e,null!=t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))}),[t]);return l.jsxs(l.Fragment,{children:[c.cloneElement(r,{ref:H}),n?l.jsx(Uh.PopoverPortal,Kh({element:B.current,scoutElement:K.current,container:g},{children:"function"==typeof o?o(N):o}),void 0):null]},void 0)}));Bh.Popover=c.forwardRef((function(e,t){return"undefined"==typeof window?e.children:l.jsx(em,Kh({},e,{ref:t}),void 0)}));c=i("fYo6y"),c=i("fYo6y"),c=i("fYo6y");const tm="Dialog",[nm,rm]=Gs(tm),[om,im]=nm(tm),am=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=(0,c.useRef)(null),s=(0,c.useRef)(null),[u=!1,f]=Qs({prop:r,defaultProp:o,onChange:i});return(0,c.createElement)(om,{scope:t,triggerRef:l,contentRef:s,contentId:Lu(),titleId:Lu(),descriptionId:Lu(),open:u,onOpenChange:f,onOpenToggle:(0,c.useCallback)((()=>f((e=>!e))),[f]),modal:a},n)},lm="DialogTrigger",sm=(0,c.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=im(lm,n),i=Ys(t,o.triggerRef);return(0,c.createElement)(ou.button,$s({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Om(o.open)},r,{ref:i,onClick:Ws(e.onClick,o.onOpenToggle)}))})),um="DialogPortal",[cm,fm]=nm(um,{forceMount:void 0}),dm=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=im(um,t);return(0,c.createElement)(cm,{scope:t,forceMount:n},c.Children.map(r,(e=>(0,c.createElement)(kf,{present:n||i.open},(0,c.createElement)(Sf,{asChild:!0,container:o},e)))))},pm="DialogOverlay",hm=(0,c.forwardRef)(((e,t)=>{const n=fm(pm,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=im(pm,e.__scopeDialog);return i.modal?(0,c.createElement)(kf,{present:r||i.open},(0,c.createElement)(mm,$s({},o,{ref:t}))):null})),mm=(0,c.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=im(pm,n);return(0,c.createElement)(Ad,{as:Zs,allowPinchZoom:!0,shards:[o.contentRef]},(0,c.createElement)(ou.div,$s({"data-state":Om(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),gm="DialogContent",vm=(0,c.forwardRef)(((e,t)=>{const n=fm(gm,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=im(gm,e.__scopeDialog);return(0,c.createElement)(kf,{present:r||i.open},i.modal?(0,c.createElement)(ym,$s({},o,{ref:t})):(0,c.createElement)(bm,$s({},o,{ref:t})))})),ym=(0,c.forwardRef)(((e,t)=>{const n=im(gm,e.__scopeDialog),r=(0,c.useRef)(null),o=Ys(t,n.contentRef,r);return(0,c.useEffect)((()=>{const e=r.current;if(e)return Jf(e)}),[]),(0,c.createElement)(xm,$s({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ws(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Ws(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Ws(e.onFocusOutside,(e=>e.preventDefault()))}))})),bm=(0,c.forwardRef)(((e,t)=>{const n=im(gm,e.__scopeDialog),r=(0,c.useRef)(!1);return(0,c.createElement)(xm,$s({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),xm=(0,c.forwardRef)(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=im(gm,n),s=Ys(t,(0,c.useRef)(null));return Su(),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ou,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},(0,c.createElement)(mu,$s({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Om(l.open)},a,{ref:s,onDismiss:()=>l.onOpenChange(!1)}))),!1)})),wm="DialogTitle",Sm=(0,c.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=im(wm,n);return(0,c.createElement)(ou.h2,$s({id:o.titleId},r,{ref:t}))})),km="DialogDescription",Em=(0,c.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=im(km,n);return(0,c.createElement)(ou.p,$s({id:o.descriptionId},r,{ref:t}))})),_m="DialogClose",Cm=(0,c.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=im(_m,n);return(0,c.createElement)(ou.button,$s({type:"button"},r,{ref:t,onClick:Ws(e.onClick,(()=>o.onOpenChange(!1)))}))}));function Om(e){return e?"open":"closed"}const Pm="DialogTitleWarning",[jm,Tm]=function(e,t){const n=(0,c.createContext)(t);function r(e){const{children:t,...r}=e,o=(0,c.useMemo)((()=>r),Object.values(r));return(0,c.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=(0,c.useContext)(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Pm,{contentName:gm,titleName:wm,docsSlug:"dialog"}),Mm=am,Dm=sm,Rm=dm,Am=hm,Nm=vm,Im=Sm,Lm=Em,Fm=Cm,zm="AlertDialog",[Bm,Km]=Gs(zm,[rm]),Um=rm(),Vm=e=>{const{__scopeAlertDialog:t,...n}=e,r=Um(t);return(0,c.createElement)(Mm,$s({},r,n,{modal:!0}))},Hm=e=>{const{__scopeAlertDialog:t,...n}=e,r=Um(t);return(0,c.createElement)(Rm,$s({},r,n))},$m=(0,c.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Um(n);return(0,c.createElement)(Am,$s({},o,r,{ref:t}))})),Wm="AlertDialogContent",[qm,Ym]=Bm(Wm),Gm=(0,c.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Um(n),a=Ys(t,(0,c.useRef)(null)),l=(0,c.useRef)(null);return(0,c.createElement)(jm,{contentName:Wm,titleName:Jm,docsSlug:"alert-dialog"},(0,c.createElement)(qm,{scope:n,cancelRef:l},(0,c.createElement)(Nm,$s({role:"alertdialog"},i,o,{ref:a,onOpenAutoFocus:Ws(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=l.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),(0,c.createElement)(tu,null,r),!1)))})),Jm="AlertDialogTitle",Xm=(0,c.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Um(n);return(0,c.createElement)(Im,$s({},o,r,{ref:t}))})),Qm=(0,c.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Um(n);return(0,c.createElement)(Lm,$s({},o,r,{ref:t}))})),Zm=(0,c.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Um(n);return(0,c.createElement)(Fm,$s({},o,r,{ref:t}))})),eg="AlertDialogCancel",tg=(0,c.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Ym(eg,n),i=Um(n),a=Ys(t,o);return(0,c.createElement)(Fm,$s({},i,r,{ref:a}))})),ng=Hm,rg=$m,og=Gm,ig=Zm,ag=tg,lg=Xm,sg=Qm,ug=Vm,cg=({className:e,children:t,...n})=>(0,l.jsx)(ng,{className:ul(e),...n,children:(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:t})});cg.displayName=ng.displayName;const fg=c.forwardRef((({className:e,children:t,...n},r)=>(0,l.jsx)(rg,{className:ul("fixed inset-0 z-50 bg-black/50 backdrop-blur-sm transition-opacity animate-in fade-in",e),...n,ref:r})));fg.displayName=rg.displayName;const dg=c.forwardRef((({className:e,...t},n)=>(0,l.jsxs)(cg,{children:[(0,l.jsx)(fg,{}),(0,l.jsx)(og,{ref:n,className:ul("fixed z-50 grid w-full max-w-lg scale-100 gap-4 bg-white p-6 opacity-100 animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full","dark:bg-slate-900 font-display",e),...t})]})));dg.displayName=og.displayName;const pg=({className:e,...t})=>(0,l.jsx)("div",{className:ul("flex flex-col space-y-2 text-center sm:text-left",e),...t});pg.displayName="AlertDialogHeader";const hg=({className:e,...t})=>(0,l.jsx)("div",{className:ul("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hg.displayName="AlertDialogFooter";const mg=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(lg,{ref:n,className:ul("text-lg font-semibold text-slate-900","dark:text-slate-50",e),...t})));mg.displayName=lg.displayName;const gg=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(sg,{ref:n,className:ul(e),...t})));gg.displayName=sg.displayName;const vg=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(ig,{ref:n,className:ul("inline-flex h-10 items-center justify-center rounded-md bg-slate-900 py-2 px-4 text-sm font-semibold text-white transition-colors hover:bg-slate-700 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-slate-100 dark:text-slate-900 dark:hover:bg-slate-200 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900",e),...t})));vg.displayName=ig.displayName;const yg=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(ag,{ref:n,className:ul("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-slate-200 bg-transparent py-2 px-4 text-sm font-semibold text-slate-900 transition-colors hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900 sm:mt-0",e),...t})));yg.displayName=ag.displayName;c=i("fYo6y");const bg=(e,t,n=null)=>{const r=(0,c.useRef)(t);(0,c.useLayoutEffect)((()=>{r.current=t}));const o=(0,c.useCallback)((t=>{(t.ctrlKey||t.metaKey)&&e.some((e=>t.key===e))&&r.current(t)}),[e]);(0,c.useEffect)((()=>{const e=n??document;return e&&e.addEventListener("keydown",o),()=>e&&e.removeEventListener("keydown",o)}),[o,n])};c=i("fYo6y");const xg=(e,t,n=null)=>{const r=(0,c.useRef)(t);(0,c.useLayoutEffect)((()=>{r.current=t}));const o=(0,c.useCallback)((t=>{e.some((e=>t.key===e))&&r.current(t)}),[e]);(0,c.useEffect)((()=>{const e=n??document;return e&&e.addEventListener("keydown",o),()=>e&&e.removeEventListener("keydown",o)}),[o,n])};c=i("fYo6y");const wg=Mm,Sg=Dm,kg=({className:e,children:t,...n})=>(0,l.jsx)(Rm,{className:ul(e),...n,children:(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex justify-end",children:t})});kg.displayName=Rm.displayName;const Eg=c.forwardRef((({className:e,children:t,...n},r)=>(0,l.jsx)(Am,{className:ul("fixed inset-0 z-50 bg-black/50 backdrop-blur-sm transition-opacity animate-in fade-in",e),...n,ref:r})));Eg.displayName=Am.displayName;const _g=c.forwardRef((({className:e,children:t,...n},r)=>(0,l.jsxs)(kg,{children:[(0,l.jsx)(Eg,{}),(0,l.jsxs)(Nm,{ref:r,className:ul("font-display fixed z-50 grid w-full scale-100 gap-4 bg-white p-6 opacity-100 sm:max-w-lg","fixed z-50 scale-100 gap-4 bg-white p-6 opacity-100 dark:bg-slate-900 animate-in slide-in-from-right h-full duration-300","dark:bg-slate-900",e),...n,children:[t,n.hideClose?null:(0,l.jsxs)(Fm,{className:"absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900 dark:data-[state=open]:bg-slate-800",children:[(0,l.jsx)(ah,{className:"h-5 w-5"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})));_g.displayName=Nm.displayName;c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(Im,{ref:n,className:ul("text-lg font-semibold text-slate-900","dark:text-slate-50",e),...t}))).displayName=Im.displayName;c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(Lm,{ref:n,className:ul("text-sm text-slate-500","dark:text-slate-400",e),...t}))).displayName=Lm.displayName;var Cg={};
/**
 * chroma.js - JavaScript library for color conversions
 *
 * Copyright (c) 2011-2019, Gregor Aisch
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. The name Gregor Aisch may not be used to endorse or promote products
 * derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * -------------------------------------------------------
 *
 * chroma.js includes colors from colorbrewer2.org, which are released under
 * the following license:
 *
 * Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
 * and The Pennsylvania State University.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific
 * language governing permissions and limitations under the License.
 *
 * ------------------------------------------------------
 *
 * Named colors are taken from X11 Color Names.
 * http://www.w3.org/TR/css3-color/#svg-color
 *
 * @preserve
 */Cg=function(){for(var e=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e<t?t:e>n?n:e},t=e,n=function(e){e._clipped=!1,e._unclipped=e.slice(0);for(var n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=t(e[n],0,255)):3===n&&(e[n]=t(e[n],0,1));return e},r={},o=0,i=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];o<i.length;o+=1){var a=i[o];r["[object "+a+"]"]=a.toLowerCase()}var l=function(e){return r[Object.prototype.toString.call(e)]||"object"},s=l,u=function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==s(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},c=l,f=function(e){if(e.length<2)return null;var t=e.length-1;return"string"==c(e[t])?e[t].toLowerCase():null},d=Math.PI,p={clip_rgb:n,limit:e,type:l,unpack:u,last:f,PI:d,TWOPI:2*d,PITHIRD:d/3,DEG2RAD:d/180,RAD2DEG:180/d},h={format:{},autodetect:[]},m=p.last,g=p.clip_rgb,v=p.type,y=h,b=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===v(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var r=m(e),o=!1;if(!r){o=!0,y.sorted||(y.autodetect=y.autodetect.sort((function(e,t){return t.p-e.p})),y.sorted=!0);for(var i=0,a=y.autodetect;i<a.length;i+=1){var l=a[i];if(r=l.test.apply(l,e))break}}if(!y.format[r])throw new Error("unknown format: "+e);var s=y.format[r].apply(null,o?e:e.slice(0,-1));n._rgb=g(s),3===n._rgb.length&&n._rgb.push(1)};b.prototype.toString=function(){return"function"==v(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var x=b,w=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(w.Color,[null].concat(e)))};w.Color=x,w.version="2.4.2";var S=w,k=p.unpack,E=Math.max,_=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=k(e,"rgb"),r=n[0],o=n[1],i=n[2],a=1-E(r/=255,E(o/=255,i/=255)),l=a<1?1/(1-a):0;return[(1-r-a)*l,(1-o-a)*l,(1-i-a)*l,a]},C=_,O=p.unpack,P=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=O(e,"cmyk"))[0],r=e[1],o=e[2],i=e[3],a=e.length>4?e[4]:1;return 1===i?[0,0,0,a]:[n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),o>=1?0:255*(1-o)*(1-i),a]},j=P,T=S,M=x,D=h,R=p.unpack,A=p.type,N=C;M.prototype.cmyk=function(){return N(this._rgb)},T.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(M,[null].concat(e,["cmyk"])))},D.format.cmyk=j,D.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=R(e,"cmyk"),"array"===A(e)&&4===e.length)return"cmyk"}});var I=p.unpack,L=p.last,F=function(e){return Math.round(100*e)/100},z=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=I(e,"hsla"),r=L(e)||"lsa";return n[0]=F(n[0]||0),n[1]=F(100*n[1])+"%",n[2]=F(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},B=z,K=p.unpack,U=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=K(e,"rgba"))[0],r=e[1],o=e[2];n/=255,r/=255,o/=255;var i,a,l=Math.min(n,r,o),s=Math.max(n,r,o),u=(s+l)/2;return s===l?(i=0,a=Number.NaN):i=u<.5?(s-l)/(s+l):(s-l)/(2-s-l),n==s?a=(r-o)/(s-l):r==s?a=2+(o-n)/(s-l):o==s&&(a=4+(n-r)/(s-l)),(a*=60)<0&&(a+=360),e.length>3&&void 0!==e[3]?[a,i,u,e[3]]:[a,i,u]},V=U,H=p.unpack,$=p.last,W=B,q=V,Y=Math.round,G=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=H(e,"rgba"),r=$(e)||"rgb";return"hsl"==r.substr(0,3)?W(q(n),r):(n[0]=Y(n[0]),n[1]=Y(n[1]),n[2]=Y(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},J=G,X=p.unpack,Q=Math.round,Z=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,o,i,a=(t=X(t,"hsl"))[0],l=t[1],s=t[2];if(0===l)r=o=i=255*s;else{var u=[0,0,0],c=[0,0,0],f=s<.5?s*(1+l):s+l-s*l,d=2*s-f,p=a/360;u[0]=p+1/3,u[1]=p,u[2]=p-1/3;for(var h=0;h<3;h++)u[h]<0&&(u[h]+=1),u[h]>1&&(u[h]-=1),6*u[h]<1?c[h]=d+6*(f-d)*u[h]:2*u[h]<1?c[h]=f:3*u[h]<2?c[h]=d+(f-d)*(2/3-u[h])*6:c[h]=d;r=(e=[Q(255*c[0]),Q(255*c[1]),Q(255*c[2])])[0],o=e[1],i=e[2]}return t.length>3?[r,o,i,t[3]]:[r,o,i,1]},ee=Z,te=ee,ne=h,re=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,oe=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,ie=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,ae=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,le=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,se=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ue=Math.round,ce=function(e){var t;if(e=e.toLowerCase().trim(),ne.format.named)try{return ne.format.named(e)}catch(e){}if(t=e.match(re)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(oe)){for(var o=t.slice(1,5),i=0;i<4;i++)o[i]=+o[i];return o}if(t=e.match(ie)){for(var a=t.slice(1,4),l=0;l<3;l++)a[l]=ue(2.55*a[l]);return a[3]=1,a}if(t=e.match(ae)){for(var s=t.slice(1,5),u=0;u<3;u++)s[u]=ue(2.55*s[u]);return s[3]=+s[3],s}if(t=e.match(le)){var c=t.slice(1,4);c[1]*=.01,c[2]*=.01;var f=te(c);return f[3]=1,f}if(t=e.match(se)){var d=t.slice(1,4);d[1]*=.01,d[2]*=.01;var p=te(d);return p[3]=+t[4],p}};ce.test=function(e){return re.test(e)||oe.test(e)||ie.test(e)||ae.test(e)||le.test(e)||se.test(e)};var fe=ce,de=S,pe=x,he=h,me=p.type,ge=J,ve=fe;pe.prototype.css=function(e){return ge(this._rgb,e)},de.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(pe,[null].concat(e,["css"])))},he.format.css=ve,he.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===me(e)&&ve.test(e))return"css"}});var ye=x,be=S,xe=h,we=p.unpack;xe.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=we(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},be.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ye,[null].concat(e,["gl"])))},ye.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var Se=p.unpack,ke=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=Se(e,"rgb"),o=r[0],i=r[1],a=r[2],l=Math.min(o,i,a),s=Math.max(o,i,a),u=s-l,c=100*u/255,f=l/(255-u)*100;return 0===u?n=Number.NaN:(o===s&&(n=(i-a)/u),i===s&&(n=2+(a-o)/u),a===s&&(n=4+(o-i)/u),(n*=60)<0&&(n+=360)),[n,c,f]},Ee=ke,_e=p.unpack,Ce=Math.floor,Oe=function(){for(var e,t,n,r,o,i,a=[],l=arguments.length;l--;)a[l]=arguments[l];var s,u,c,f=(a=_e(a,"hcg"))[0],d=a[1],p=a[2];p*=255;var h=255*d;if(0===d)s=u=c=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var m=Ce(f/=60),g=f-m,v=p*(1-d),y=v+h*(1-g),b=v+h*g,x=v+h;switch(m){case 0:s=(e=[x,b,v])[0],u=e[1],c=e[2];break;case 1:s=(t=[y,x,v])[0],u=t[1],c=t[2];break;case 2:s=(n=[v,x,b])[0],u=n[1],c=n[2];break;case 3:s=(r=[v,y,x])[0],u=r[1],c=r[2];break;case 4:s=(o=[b,v,x])[0],u=o[1],c=o[2];break;case 5:s=(i=[x,v,y])[0],u=i[1],c=i[2]}}return[s,u,c,a.length>3?a[3]:1]},Pe=Oe,je=p.unpack,Te=p.type,Me=S,De=x,Re=h,Ae=Ee;De.prototype.hcg=function(){return Ae(this._rgb)},Me.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(De,[null].concat(e,["hcg"])))},Re.format.hcg=Pe,Re.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=je(e,"hcg"),"array"===Te(e)&&3===e.length)return"hcg"}});var Ne=p.unpack,Ie=p.last,Le=Math.round,Fe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Ne(e,"rgba"),r=n[0],o=n[1],i=n[2],a=n[3],l=Ie(e)||"auto";void 0===a&&(a=1),"auto"===l&&(l=a<1?"rgba":"rgb");var s="000000"+((r=Le(r))<<16|(o=Le(o))<<8|(i=Le(i))).toString(16);s=s.substr(s.length-6);var u="0"+Le(255*a).toString(16);switch(u=u.substr(u.length-2),l.toLowerCase()){case"rgba":return"#"+s+u;case"argb":return"#"+u+s;default:return"#"+s}},ze=Fe,Be=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Ke=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Ue=function(e){if(e.match(Be)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(Ke)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},Ve=S,He=x,$e=p.type,We=h,qe=ze;He.prototype.hex=function(e){return qe(this._rgb,e)},Ve.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(He,[null].concat(e,["hex"])))},We.format.hex=Ue,We.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===$e(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var Ye=p.unpack,Ge=p.TWOPI,Je=Math.min,Xe=Math.sqrt,Qe=Math.acos,Ze=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=Ye(e,"rgb"),o=r[0],i=r[1],a=r[2],l=Je(o/=255,i/=255,a/=255),s=(o+i+a)/3,u=s>0?1-l/s:0;return 0===u?n=NaN:(n=(o-i+(o-a))/2,n/=Xe((o-i)*(o-i)+(o-a)*(i-a)),n=Qe(n),a>i&&(n=Ge-n),n/=Ge),[360*n,u,s]},et=Ze,tt=p.unpack,nt=p.limit,rt=p.TWOPI,ot=p.PITHIRD,it=Math.cos,at=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,o,i=(e=tt(e,"hsi"))[0],a=e[1],l=e[2];return isNaN(i)&&(i=0),isNaN(a)&&(a=0),i>360&&(i-=360),i<0&&(i+=360),(i/=360)<1/3?r=1-((o=(1-a)/3)+(n=(1+a*it(rt*i)/it(ot-rt*i))/3)):i<2/3?o=1-((n=(1-a)/3)+(r=(1+a*it(rt*(i-=1/3))/it(ot-rt*i))/3)):n=1-((r=(1-a)/3)+(o=(1+a*it(rt*(i-=2/3))/it(ot-rt*i))/3)),[255*(n=nt(l*n*3)),255*(r=nt(l*r*3)),255*(o=nt(l*o*3)),e.length>3?e[3]:1]},lt=at,st=p.unpack,ut=p.type,ct=S,ft=x,dt=h,pt=et;ft.prototype.hsi=function(){return pt(this._rgb)},ct.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ft,[null].concat(e,["hsi"])))},dt.format.hsi=lt,dt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=st(e,"hsi"),"array"===ut(e)&&3===e.length)return"hsi"}});var ht=p.unpack,mt=p.type,gt=S,vt=x,yt=h,bt=V;vt.prototype.hsl=function(){return bt(this._rgb)},gt.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(vt,[null].concat(e,["hsl"])))},yt.format.hsl=ee,yt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=ht(e,"hsl"),"array"===mt(e)&&3===e.length)return"hsl"}});var xt=p.unpack,wt=Math.min,St=Math.max,kt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,o,i=(e=xt(e,"rgb"))[0],a=e[1],l=e[2],s=wt(i,a,l),u=St(i,a,l),c=u-s;return o=u/255,0===u?(n=Number.NaN,r=0):(r=c/u,i===u&&(n=(a-l)/c),a===u&&(n=2+(l-i)/c),l===u&&(n=4+(i-a)/c),(n*=60)<0&&(n+=360)),[n,r,o]},Et=kt,_t=p.unpack,Ct=Math.floor,Ot=function(){for(var e,t,n,r,o,i,a=[],l=arguments.length;l--;)a[l]=arguments[l];var s,u,c,f=(a=_t(a,"hsv"))[0],d=a[1],p=a[2];if(p*=255,0===d)s=u=c=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var h=Ct(f/=60),m=f-h,g=p*(1-d),v=p*(1-d*m),y=p*(1-d*(1-m));switch(h){case 0:s=(e=[p,y,g])[0],u=e[1],c=e[2];break;case 1:s=(t=[v,p,g])[0],u=t[1],c=t[2];break;case 2:s=(n=[g,p,y])[0],u=n[1],c=n[2];break;case 3:s=(r=[g,v,p])[0],u=r[1],c=r[2];break;case 4:s=(o=[y,g,p])[0],u=o[1],c=o[2];break;case 5:s=(i=[p,g,v])[0],u=i[1],c=i[2]}}return[s,u,c,a.length>3?a[3]:1]},Pt=Ot,jt=p.unpack,Tt=p.type,Mt=S,Dt=x,Rt=h,At=Et;Dt.prototype.hsv=function(){return At(this._rgb)},Mt.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Dt,[null].concat(e,["hsv"])))},Rt.format.hsv=Pt,Rt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=jt(e,"hsv"),"array"===Tt(e)&&3===e.length)return"hsv"}});var Nt={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},It=Nt,Lt=p.unpack,Ft=Math.pow,zt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Lt(e,"rgb"),r=n[0],o=n[1],i=n[2],a=Ut(r,o,i),l=a[0],s=a[1],u=116*s-16;return[u<0?0:u,500*(l-s),200*(s-a[2])]},Bt=function(e){return(e/=255)<=.04045?e/12.92:Ft((e+.055)/1.055,2.4)},Kt=function(e){return e>It.t3?Ft(e,1/3):e/It.t2+It.t0},Ut=function(e,t,n){return e=Bt(e),t=Bt(t),n=Bt(n),[Kt((.4124564*e+.3575761*t+.1804375*n)/It.Xn),Kt((.2126729*e+.7151522*t+.072175*n)/It.Yn),Kt((.0193339*e+.119192*t+.9503041*n)/It.Zn)]},Vt=zt,Ht=Nt,$t=p.unpack,Wt=Math.pow,qt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,o,i=(e=$t(e,"lab"))[0],a=e[1],l=e[2];return r=(i+16)/116,n=isNaN(a)?r:r+a/500,o=isNaN(l)?r:r-l/200,r=Ht.Yn*Gt(r),n=Ht.Xn*Gt(n),o=Ht.Zn*Gt(o),[Yt(3.2404542*n-1.5371385*r-.4985314*o),Yt(-.969266*n+1.8760108*r+.041556*o),Yt(.0556434*n-.2040259*r+1.0572252*o),e.length>3?e[3]:1]},Yt=function(e){return 255*(e<=.00304?12.92*e:1.055*Wt(e,1/2.4)-.055)},Gt=function(e){return e>Ht.t1?e*e*e:Ht.t2*(e-Ht.t0)},Jt=qt,Xt=p.unpack,Qt=p.type,Zt=S,en=x,tn=h,nn=Vt;en.prototype.lab=function(){return nn(this._rgb)},Zt.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(en,[null].concat(e,["lab"])))},tn.format.lab=Jt,tn.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Xt(e,"lab"),"array"===Qt(e)&&3===e.length)return"lab"}});var rn=p.unpack,on=p.RAD2DEG,an=Math.sqrt,ln=Math.atan2,sn=Math.round,un=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=rn(e,"lab"),r=n[0],o=n[1],i=n[2],a=an(o*o+i*i),l=(ln(i,o)*on+360)%360;return 0===sn(1e4*a)&&(l=Number.NaN),[r,a,l]},cn=un,fn=p.unpack,dn=Vt,pn=cn,hn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=fn(e,"rgb"),r=n[0],o=n[1],i=n[2],a=dn(r,o,i),l=a[0],s=a[1],u=a[2];return pn(l,s,u)},mn=hn,gn=p.unpack,vn=p.DEG2RAD,yn=Math.sin,bn=Math.cos,xn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=gn(e,"lch"),r=n[0],o=n[1],i=n[2];return isNaN(i)&&(i=0),[r,bn(i*=vn)*o,yn(i)*o]},wn=xn,Sn=p.unpack,kn=wn,En=Jt,_n=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=Sn(e,"lch"))[0],r=e[1],o=e[2],i=kn(n,r,o),a=i[0],l=i[1],s=i[2],u=En(a,l,s);return[u[0],u[1],u[2],e.length>3?e[3]:1]},Cn=_n,On=p.unpack,Pn=Cn,jn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=On(e,"hcl").reverse();return Pn.apply(void 0,n)},Tn=jn,Mn=p.unpack,Dn=p.type,Rn=S,An=x,Nn=h,In=mn;An.prototype.lch=function(){return In(this._rgb)},An.prototype.hcl=function(){return In(this._rgb).reverse()},Rn.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(An,[null].concat(e,["lch"])))},Rn.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(An,[null].concat(e,["hcl"])))},Nn.format.lch=Cn,Nn.format.hcl=Tn,["lch","hcl"].forEach((function(e){return Nn.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=Mn(t,e),"array"===Dn(t)&&3===t.length)return e}})}));var Ln={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Fn=x,zn=h,Bn=p.type,Kn=Ln,Un=Ue,Vn=ze;Fn.prototype.name=function(){for(var e=Vn(this._rgb,"rgb"),t=0,n=Object.keys(Kn);t<n.length;t+=1){var r=n[t];if(Kn[r]===e)return r.toLowerCase()}return e},zn.format.named=function(e){if(e=e.toLowerCase(),Kn[e])return Un(Kn[e]);throw new Error("unknown color name: "+e)},zn.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===Bn(e)&&Kn[e.toLowerCase()])return"named"}});var Hn=p.unpack,$n=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Hn(e,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},Wn=$n,qn=p.type,Yn=function(e){if("number"==qn(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},Gn=S,Jn=x,Xn=h,Qn=p.type,Zn=Wn;Jn.prototype.num=function(){return Zn(this._rgb)},Gn.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Jn,[null].concat(e,["num"])))},Xn.format.num=Yn,Xn.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===Qn(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var er=S,tr=x,nr=h,rr=p.unpack,or=p.type,ir=Math.round;tr.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(ir)},tr.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map((function(t,n){return n<3?!1===e?t:ir(t):t}))},er.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(tr,[null].concat(e,["rgb"])))},nr.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=rr(e,"rgba");return void 0===n[3]&&(n[3]=1),n},nr.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=rr(e,"rgba"),"array"===or(e)&&(3===e.length||4===e.length&&"number"==or(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var ar=Math.log,lr=function(e){var t,n,r,o=e/100;return o<66?(t=255,n=o<6?0:-155.25485562709179-.44596950469579133*(n=o-2)+104.49216199393888*ar(n),r=o<20?0:.8274096064007395*(r=o-10)-254.76935184120902+115.67994401066147*ar(r)):(t=351.97690566805693+.114206453784165*(t=o-55)-40.25366309332127*ar(t),n=325.4494125711974+.07943456536662342*(n=o-50)-28.0852963507957*ar(n),r=255),[t,n,r,1]},sr=lr,ur=p.unpack,cr=Math.round,fr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=ur(e,"rgb"),o=r[0],i=r[2],a=1e3,l=4e4,s=.4;l-a>s;){var u=sr(n=.5*(l+a));u[2]/u[0]>=i/o?l=n:a=n}return cr(n)},dr=S,pr=x,hr=h,mr=fr;pr.prototype.temp=pr.prototype.kelvin=pr.prototype.temperature=function(){return mr(this._rgb)},dr.temp=dr.kelvin=dr.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(pr,[null].concat(e,["temp"])))},hr.format.temp=hr.format.kelvin=hr.format.temperature=lr;var gr=p.unpack,vr=Math.cbrt,yr=Math.pow,br=Math.sign,xr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=gr(e,"rgb"),r=n[0],o=n[1],i=n[2],a=[Sr(r/255),Sr(o/255),Sr(i/255)],l=a[0],s=a[1],u=a[2],c=vr(.4122214708*l+.5363325363*s+.0514459929*u),f=vr(.2119034982*l+.6806995451*s+.1073969566*u),d=vr(.0883024619*l+.2817188376*s+.6299787005*u);return[.2104542553*c+.793617785*f-.0040720468*d,1.9779984951*c-2.428592205*f+.4505937099*d,.0259040371*c+.7827717662*f-.808675766*d]},wr=xr;function Sr(e){var t=Math.abs(e);return t<.04045?e/12.92:(br(e)||1)*yr((t+.055)/1.055,2.4)}var kr=p.unpack,Er=Math.pow,_r=Math.sign,Cr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=kr(e,"lab"))[0],r=e[1],o=e[2],i=Er(n+.3963377774*r+.2158037573*o,3),a=Er(n-.1055613458*r-.0638541728*o,3),l=Er(n-.0894841775*r-1.291485548*o,3);return[255*Pr(4.0767416621*i-3.3077115913*a+.2309699292*l),255*Pr(-1.2684380046*i+2.6097574011*a-.3413193965*l),255*Pr(-.0041960863*i-.7034186147*a+1.707614701*l),e.length>3?e[3]:1]},Or=Cr;function Pr(e){var t=Math.abs(e);return t>.0031308?(_r(e)||1)*(1.055*Er(t,1/2.4)-.055):12.92*e}var jr=p.unpack,Tr=p.type,Mr=S,Dr=x,Rr=h,Ar=wr;Dr.prototype.oklab=function(){return Ar(this._rgb)},Mr.oklab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Dr,[null].concat(e,["oklab"])))},Rr.format.oklab=Or,Rr.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=jr(e,"oklab"),"array"===Tr(e)&&3===e.length)return"oklab"}});var Nr=p.unpack,Ir=wr,Lr=cn,Fr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Nr(e,"rgb"),r=n[0],o=n[1],i=n[2],a=Ir(r,o,i),l=a[0],s=a[1],u=a[2];return Lr(l,s,u)},zr=Fr,Br=p.unpack,Kr=wn,Ur=Or,Vr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=Br(e,"lch"))[0],r=e[1],o=e[2],i=Kr(n,r,o),a=i[0],l=i[1],s=i[2],u=Ur(a,l,s);return[u[0],u[1],u[2],e.length>3?e[3]:1]},Hr=Vr,$r=p.unpack,Wr=p.type,qr=S,Yr=x,Gr=h,Jr=zr;Yr.prototype.oklch=function(){return Jr(this._rgb)},qr.oklch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Yr,[null].concat(e,["oklch"])))},Gr.format.oklch=Hr,Gr.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=$r(e,"oklch"),"array"===Wr(e)&&3===e.length)return"oklch"}});var Xr=x,Qr=p.type;Xr.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Qr(e)?t?(this._rgb[3]=e,this):new Xr([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},x.prototype.clipped=function(){return this._rgb._clipped||!1};var Zr=x,eo=Nt;Zr.prototype.darken=function(e){void 0===e&&(e=1);var t=this,n=t.lab();return n[0]-=eo.Kn*e,new Zr(n,"lab").alpha(t.alpha(),!0)},Zr.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},Zr.prototype.darker=Zr.prototype.darken,Zr.prototype.brighter=Zr.prototype.brighten,x.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],o=this[n]();if(r){var i=n.indexOf(r)-("ok"===n.substr(0,2)?2:0);if(i>-1)return o[i];throw new Error("unknown channel "+r+" in mode "+n)}return o};var to=x,no=p.type,ro=Math.pow,oo=1e-7,io=20;to.prototype.luminance=function(e){if(void 0!==e&&"number"===no(e)){if(0===e)return new to([0,0,0,this._rgb[3]],"rgb");if(1===e)return new to([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n="rgb",r=io,o=function(t,i){var a=t.interpolate(i,.5,n),l=a.luminance();return Math.abs(e-l)<oo||!r--?a:l>e?o(t,a):o(a,i)},i=(t>e?o(new to([0,0,0]),this):o(this,new to([255,255,255]))).rgb();return new to(i.concat([this._rgb[3]]))}return ao.apply(void 0,this._rgb.slice(0,3))};var ao=function(e,t,n){return.2126*(e=lo(e))+.7152*(t=lo(t))+.0722*(n=lo(n))},lo=function(e){return(e/=255)<=.03928?e/12.92:ro((e+.055)/1.055,2.4)},so={},uo=x,co=p.type,fo=so,po=function(e,t,n){void 0===n&&(n=.5);for(var r=[],o=arguments.length-3;o-- >0;)r[o]=arguments[o+3];var i=r[0]||"lrgb";if(fo[i]||r.length||(i=Object.keys(fo)[0]),!fo[i])throw new Error("interpolation mode "+i+" is not defined");return"object"!==co(e)&&(e=new uo(e)),"object"!==co(t)&&(t=new uo(t)),fo[i](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))},ho=x,mo=po;ho.prototype.mix=ho.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return mo.apply(void 0,[this,e,t].concat(n))};var go=x;go.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new go([t[0]*n,t[1]*n,t[2]*n,n],"rgb")};var vo=x,yo=Nt;vo.prototype.saturate=function(e){void 0===e&&(e=1);var t=this,n=t.lch();return n[1]+=yo.Kn*e,n[1]<0&&(n[1]=0),new vo(n,"lch").alpha(t.alpha(),!0)},vo.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var bo=x,xo=p.type;bo.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),o=r[0],i=r[1],a=this[o]();if(i){var l=o.indexOf(i)-("ok"===o.substr(0,2)?2:0);if(l>-1){if("string"==xo(t))switch(t.charAt(0)){case"+":case"-":a[l]+=+t;break;case"*":a[l]*=+t.substr(1);break;case"/":a[l]/=+t.substr(1);break;default:a[l]=+t}else{if("number"!==xo(t))throw new Error("unsupported value for Color.set");a[l]=t}var s=new bo(a,o);return n?(this._rgb=s._rgb,this):s}throw new Error("unknown channel "+i+" in mode "+o)}return a};var wo=x,So=function(e,t,n){var r=e._rgb,o=t._rgb;return new wo(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"rgb")};so.rgb=So;var ko=x,Eo=Math.sqrt,_o=Math.pow,Co=function(e,t,n){var r=e._rgb,o=r[0],i=r[1],a=r[2],l=t._rgb,s=l[0],u=l[1],c=l[2];return new ko(Eo(_o(o,2)*(1-n)+_o(s,2)*n),Eo(_o(i,2)*(1-n)+_o(u,2)*n),Eo(_o(a,2)*(1-n)+_o(c,2)*n),"rgb")};so.lrgb=Co;var Oo=x,Po=function(e,t,n){var r=e.lab(),o=t.lab();return new Oo(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"lab")};so.lab=Po;var jo=x,To=function(e,t,n,r){var o,i,a,l,s,u,c,f,d,p,h,m,g;return"hsl"===r?(a=e.hsl(),l=t.hsl()):"hsv"===r?(a=e.hsv(),l=t.hsv()):"hcg"===r?(a=e.hcg(),l=t.hcg()):"hsi"===r?(a=e.hsi(),l=t.hsi()):"lch"===r||"hcl"===r?(r="hcl",a=e.hcl(),l=t.hcl()):"oklch"===r&&(a=e.oklch().reverse(),l=t.oklch().reverse()),"h"!==r.substr(0,1)&&"oklch"!==r||(s=(o=a)[0],c=o[1],d=o[2],u=(i=l)[0],f=i[1],p=i[2]),isNaN(s)||isNaN(u)?isNaN(s)?isNaN(u)?m=Number.NaN:(m=u,1!=d&&0!=d||"hsv"==r||(h=f)):(m=s,1!=p&&0!=p||"hsv"==r||(h=c)):m=s+n*(u>s&&u-s>180?u-(s+360):u<s&&s-u>180?u+360-s:u-s),void 0===h&&(h=c+n*(f-c)),g=d+n*(p-d),new jo("oklch"===r?[g,h,m]:[m,h,g],r)},Mo=To,Do=function(e,t,n){return Mo(e,t,n,"lch")};so.lch=Do,so.hcl=Do;var Ro=x,Ao=function(e,t,n){var r=e.num(),o=t.num();return new Ro(r+n*(o-r),"num")};so.num=Ao;var No=To,Io=function(e,t,n){return No(e,t,n,"hcg")};so.hcg=Io;var Lo=To,Fo=function(e,t,n){return Lo(e,t,n,"hsi")};so.hsi=Fo;var zo=To,Bo=function(e,t,n){return zo(e,t,n,"hsl")};so.hsl=Bo;var Ko=To,Uo=function(e,t,n){return Ko(e,t,n,"hsv")};so.hsv=Uo;var Vo=x,Ho=function(e,t,n){var r=e.oklab(),o=t.oklab();return new Vo(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"oklab")};so.oklab=Ho;var $o=To,Wo=function(e,t,n){return $o(e,t,n,"oklch")};so.oklch=Wo;var qo=x,Yo=p.clip_rgb,Go=Math.pow,Jo=Math.sqrt,Xo=Math.PI,Qo=Math.cos,Zo=Math.sin,ei=Math.atan2,ti=function(e,t,n){void 0===t&&(t="lrgb"),void 0===n&&(n=null);var r=e.length;n||(n=Array.from(new Array(r)).map((function(){return 1})));var o=r/n.reduce((function(e,t){return e+t}));if(n.forEach((function(e,t){n[t]*=o})),e=e.map((function(e){return new qo(e)})),"lrgb"===t)return ni(e,n);for(var i=e.shift(),a=i.get(t),l=[],s=0,u=0,c=0;c<a.length;c++)if(a[c]=(a[c]||0)*n[0],l.push(isNaN(a[c])?0:n[0]),"h"===t.charAt(c)&&!isNaN(a[c])){var f=a[c]/180*Xo;s+=Qo(f)*n[0],u+=Zo(f)*n[0]}var d=i.alpha()*n[0];e.forEach((function(e,r){var o=e.get(t);d+=e.alpha()*n[r+1];for(var i=0;i<a.length;i++)if(!isNaN(o[i]))if(l[i]+=n[r+1],"h"===t.charAt(i)){var c=o[i]/180*Xo;s+=Qo(c)*n[r+1],u+=Zo(c)*n[r+1]}else a[i]+=o[i]*n[r+1]}));for(var p=0;p<a.length;p++)if("h"===t.charAt(p)){for(var h=ei(u/l[p],s/l[p])/Xo*180;h<0;)h+=360;for(;h>=360;)h-=360;a[p]=h}else a[p]=a[p]/l[p];return d/=r,new qo(a,t).alpha(d>.99999?1:d,!0)},ni=function(e,t){for(var n=e.length,r=[0,0,0,0],o=0;o<e.length;o++){var i=e[o],a=t[o]/n,l=i._rgb;r[0]+=Go(l[0],2)*a,r[1]+=Go(l[1],2)*a,r[2]+=Go(l[2],2)*a,r[3]+=l[3]*a}return r[0]=Jo(r[0]),r[1]=Jo(r[1]),r[2]=Jo(r[2]),r[3]>.9999999&&(r[3]=1),new qo(Yo(r))},ri=S,oi=p.type,ii=Math.pow,ai=function(e){var t="rgb",n=ri("#ccc"),r=0,o=[0,1],i=[],a=[0,0],l=!1,s=[],u=!1,c=0,f=1,d=!1,p={},h=!0,m=1,g=function(e){if((e=e||["#fff","#000"])&&"string"===oi(e)&&ri.brewer&&ri.brewer[e.toLowerCase()]&&(e=ri.brewer[e.toLowerCase()]),"array"===oi(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t<e.length;t++)e[t]=ri(e[t]);i.length=0;for(var n=0;n<e.length;n++)i.push(n/(e.length-1))}return w(),s=e},v=function(e){if(null!=l){for(var t=l.length-1,n=0;n<t&&e>=l[n];)n++;return n-1}return 0},y=function(e){return e},b=function(e){return e},x=function(e,r){var o,u;if(null==r&&(r=!1),isNaN(e)||null===e)return n;u=r?e:l&&l.length>2?v(e)/(l.length-2):f!==c?(e-c)/(f-c):1,u=b(u),r||(u=y(u)),1!==m&&(u=ii(u,m)),u=a[0]+u*(1-a[0]-a[1]),u=Math.min(1,Math.max(0,u));var d=Math.floor(1e4*u);if(h&&p[d])o=p[d];else{if("array"===oi(s))for(var g=0;g<i.length;g++){var x=i[g];if(u<=x){o=s[g];break}if(u>=x&&g===i.length-1){o=s[g];break}if(u>x&&u<i[g+1]){u=(u-x)/(i[g+1]-x),o=ri.interpolate(s[g],s[g+1],u,t);break}}else"function"===oi(s)&&(o=s(u));h&&(p[d]=o)}return o},w=function(){return p={}};g(e);var S=function(e){var t=ri(x(e));return u&&t[u]?t[u]():t};return S.classes=function(e){if(null!=e){if("array"===oi(e))l=e,o=[e[0],e[e.length-1]];else{var t=ri.analyze(o);l=0===e?[t.min,t.max]:ri.limits(t,"e",e)}return S}return l},S.domain=function(e){if(!arguments.length)return o;c=e[0],f=e[e.length-1],i=[];var t=s.length;if(e.length===t&&c!==f)for(var n=0,r=Array.from(e);n<r.length;n+=1){var a=r[n];i.push((a-c)/(f-c))}else{for(var l=0;l<t;l++)i.push(l/(t-1));if(e.length>2){var u=e.map((function(t,n){return n/(e.length-1)})),d=e.map((function(e){return(e-c)/(f-c)}));d.every((function(e,t){return u[t]===e}))||(b=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=d[t+1];)t++;var n=(e-d[t])/(d[t+1]-d[t]);return u[t]+n*(u[t+1]-u[t])})}}return o=[c,f],S},S.mode=function(e){return arguments.length?(t=e,w(),S):t},S.range=function(e,t){return g(e),S},S.out=function(e){return u=e,S},S.spread=function(e){return arguments.length?(r=e,S):r},S.correctLightness=function(e){return null==e&&(e=!0),d=e,w(),y=d?function(e){for(var t=x(0,!0).lab()[0],n=x(1,!0).lab()[0],r=t>n,o=x(e,!0).lab()[0],i=t+(n-t)*e,a=o-i,l=0,s=1,u=20;Math.abs(a)>.01&&u-- >0;)r&&(a*=-1),a<0?(l=e,e+=.5*(s-e)):(s=e,e+=.5*(l-e)),o=x(e,!0).lab()[0],a=o-i;return e}:function(e){return e},S},S.padding=function(e){return null!=e?("number"===oi(e)&&(e=[e,e]),a=e,S):a},S.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=s.slice(0);else if(1===t)r=[S(.5)];else if(t>1){var i=o[0],a=o[1]-i;r=li(0,t,!1).map((function(e){return S(i+e/(t-1)*a)}))}else{e=[];var u=[];if(l&&l.length>2)for(var c=1,f=l.length,d=1<=f;d?c<f:c>f;d?c++:c--)u.push(.5*(l[c-1]+l[c]));else u=o;r=u.map((function(e){return S(e)}))}return ri[n]&&(r=r.map((function(e){return e[n]()}))),r},S.cache=function(e){return null!=e?(h=e,S):h},S.gamma=function(e){return null!=e?(m=e,S):m},S.nodata=function(e){return null!=e?(n=ri(e),S):n},S};function li(e,t,n){for(var r=[],o=e<t,i=n?o?t+1:t-1:t,a=e;o?a<i:a>i;o?a++:a--)r.push(a);return r}var si=x,ui=ai,ci=function(e){for(var t=[1,1],n=1;n<e;n++){for(var r=[1],o=1;o<=t.length;o++)r[o]=(t[o]||0)+t[o-1];t=r}return t},fi=function(e){var t,n,r,o,i,a,l;if(2===(e=e.map((function(e){return new si(e)}))).length)t=e.map((function(e){return e.lab()})),i=t[0],a=t[1],o=function(e){var t=[0,1,2].map((function(t){return i[t]+e*(a[t]-i[t])}));return new si(t,"lab")};else if(3===e.length)n=e.map((function(e){return e.lab()})),i=n[0],a=n[1],l=n[2],o=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*i[t]+2*(1-e)*e*a[t]+e*e*l[t]}));return new si(t,"lab")};else if(4===e.length){var s;r=e.map((function(e){return e.lab()})),i=r[0],a=r[1],l=r[2],s=r[3],o=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*(1-e)*i[t]+3*(1-e)*(1-e)*e*a[t]+3*(1-e)*e*e*l[t]+e*e*e*s[t]}));return new si(t,"lab")}}else{if(!(e.length>=5))throw new RangeError("No point in running bezier with only one color.");var u,c,f;u=e.map((function(e){return e.lab()})),f=e.length-1,c=ci(f),o=function(e){var t=1-e,n=[0,1,2].map((function(n){return u.reduce((function(r,o,i){return r+c[i]*Math.pow(t,f-i)*Math.pow(e,i)*o[n]}),0)}));return new si(n,"lab")}}return o},di=function(e){var t=fi(e);return t.scale=function(){return ui(t)},t},pi=S,hi=function(e,t,n){if(!hi[n])throw new Error("unknown blend mode "+n);return hi[n](e,t)},mi=function(e){return function(t,n){var r=pi(n).rgb(),o=pi(t).rgb();return pi.rgb(e(r,o))}},gi=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}},vi=function(e){return e},yi=function(e,t){return e*t/255},bi=function(e,t){return e>t?t:e},xi=function(e,t){return e>t?e:t},wi=function(e,t){return 255*(1-(1-e/255)*(1-t/255))},Si=function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},ki=function(e,t){return 255*(1-(1-t/255)/(e/255))},Ei=function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e};hi.normal=mi(gi(vi)),hi.multiply=mi(gi(yi)),hi.screen=mi(gi(wi)),hi.overlay=mi(gi(Si)),hi.darken=mi(gi(bi)),hi.lighten=mi(gi(xi)),hi.dodge=mi(gi(Ei)),hi.burn=mi(gi(ki));for(var _i=hi,Ci=p.type,Oi=p.clip_rgb,Pi=p.TWOPI,ji=Math.pow,Ti=Math.sin,Mi=Math.cos,Di=S,Ri=function(e,t,n,r,o){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===o&&(o=[0,1]);var i,a=0;"array"===Ci(o)?i=o[1]-o[0]:(i=0,o=[o,o]);var l=function(l){var s=Pi*((e+120)/360+t*l),u=ji(o[0]+i*l,r),c=(0!==a?n[0]+l*a:n)*u*(1-u)/2,f=Mi(s),d=Ti(s);return Di(Oi([255*(u+c*(-.14861*f+1.78277*d)),255*(u+c*(-.29227*f-.90649*d)),255*(u+c*(1.97294*f)),1]))};return l.start=function(t){return null==t?e:(e=t,l)},l.rotations=function(e){return null==e?t:(t=e,l)},l.gamma=function(e){return null==e?r:(r=e,l)},l.hue=function(e){return null==e?n:("array"===Ci(n=e)?0==(a=n[1]-n[0])&&(n=n[1]):a=0,l)},l.lightness=function(e){return null==e?o:("array"===Ci(e)?(o=e,i=e[1]-e[0]):(o=[e,e],i=0),l)},l.scale=function(){return Di.scale(l)},l.hue(n),l},Ai=x,Ni="0123456789abcdef",Ii=Math.floor,Li=Math.random,Fi=function(){for(var e="#",t=0;t<6;t++)e+=Ni.charAt(Ii(16*Li()));return new Ai(e,"hex")},zi=l,Bi=Math.log,Ki=Math.pow,Ui=Math.floor,Vi=Math.abs,Hi=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===zi(e)&&(e=Object.values(e)),e.forEach((function(e){t&&"object"===zi(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(e,t){return $i(n,e,t)},n},$i=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==zi(e)&&(e=Hi(e));var r=e.min,o=e.max,i=e.values.sort((function(e,t){return e-t}));if(1===n)return[r,o];var a=[];if("c"===t.substr(0,1)&&(a.push(r),a.push(o)),"e"===t.substr(0,1)){a.push(r);for(var l=1;l<n;l++)a.push(r+l/n*(o-r));a.push(o)}else if("l"===t.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");var s=Math.LOG10E*Bi(r),u=Math.LOG10E*Bi(o);a.push(r);for(var c=1;c<n;c++)a.push(Ki(10,s+c/n*(u-s)));a.push(o)}else if("q"===t.substr(0,1)){a.push(r);for(var f=1;f<n;f++){var d=(i.length-1)*f/n,p=Ui(d);if(p===d)a.push(i[p]);else{var h=d-p;a.push(i[p]*(1-h)+i[p+1]*h)}}a.push(o)}else if("k"===t.substr(0,1)){var m,g=i.length,v=new Array(g),y=new Array(n),b=!0,x=0,w=null;(w=[]).push(r);for(var S=1;S<n;S++)w.push(r+S/n*(o-r));for(w.push(o);b;){for(var k=0;k<n;k++)y[k]=0;for(var E=0;E<g;E++)for(var _=i[E],C=Number.MAX_VALUE,O=void 0,P=0;P<n;P++){var j=Vi(w[P]-_);j<C&&(C=j,O=P),y[O]++,v[E]=O}for(var T=new Array(n),M=0;M<n;M++)T[M]=null;for(var D=0;D<g;D++)null===T[m=v[D]]?T[m]=i[D]:T[m]+=i[D];for(var R=0;R<n;R++)T[R]*=1/y[R];b=!1;for(var A=0;A<n;A++)if(T[A]!==w[A]){b=!0;break}w=T,++x>200&&(b=!1)}for(var N={},I=0;I<n;I++)N[I]=[];for(var L=0;L<g;L++)N[m=v[L]].push(i[L]);for(var F=[],z=0;z<n;z++)F.push(N[z][0]),F.push(N[z][N[z].length-1]);F=F.sort((function(e,t){return e-t})),a.push(F[0]);for(var B=1;B<F.length;B+=2){var K=F[B];isNaN(K)||-1!==a.indexOf(K)||a.push(K)}}return a},Wi={analyze:Hi,limits:$i},qi=x,Yi=function(e,t){e=new qi(e),t=new qi(t);var n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},Gi=x,Ji=Math.sqrt,Xi=Math.pow,Qi=Math.min,Zi=Math.max,ea=Math.atan2,ta=Math.abs,na=Math.cos,ra=Math.sin,oa=Math.exp,ia=Math.PI,aa=function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=1),void 0===o&&(o=1);var i=function(e){return 360*e/(2*ia)},a=function(e){return 2*ia*e/360};e=new Gi(e),t=new Gi(t);var l=Array.from(e.lab()),s=l[0],u=l[1],c=l[2],f=Array.from(t.lab()),d=f[0],p=f[1],h=f[2],m=(s+d)/2,g=(Ji(Xi(u,2)+Xi(c,2))+Ji(Xi(p,2)+Xi(h,2)))/2,v=.5*(1-Ji(Xi(g,7)/(Xi(g,7)+Xi(25,7)))),y=u*(1+v),b=p*(1+v),x=Ji(Xi(y,2)+Xi(c,2)),w=Ji(Xi(b,2)+Xi(h,2)),S=(x+w)/2,k=i(ea(c,y)),E=i(ea(h,b)),_=k>=0?k:k+360,C=E>=0?E:E+360,O=ta(_-C)>180?(_+C+360)/2:(_+C)/2,P=1-.17*na(a(O-30))+.24*na(a(2*O))+.32*na(a(3*O+6))-.2*na(a(4*O-63)),j=C-_;j=ta(j)<=180?j:C<=_?j+360:j-360,j=2*Ji(x*w)*ra(a(j)/2);var T=d-s,M=w-x,D=1+.015*Xi(m-50,2)/Ji(20+Xi(m-50,2)),R=1+.045*S,A=1+.015*S*P,N=30*oa(-Xi((O-275)/25,2)),I=-2*Ji(Xi(S,7)/(Xi(S,7)+Xi(25,7)))*ra(2*a(N)),L=Ji(Xi(T/(n*D),2)+Xi(M/(r*R),2)+Xi(j/(o*A),2)+I*(M/(r*R))*(j/(o*A)));return Zi(0,Qi(100,L))},la=x,sa=function(e,t,n){void 0===n&&(n="lab"),e=new la(e),t=new la(t);var r=e.get(n),o=t.get(n),i=0;for(var a in r){var l=(r[a]||0)-(o[a]||0);i+=l*l}return Math.sqrt(i)},ua=x,ca=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(ua,[null].concat(e))),!0}catch(e){return!1}},fa=S,da=ai,pa={cool:function(){return da([fa.hsl(180,1,.9),fa.hsl(250,.7,.4)])},hot:function(){return da(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ha={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},ma=0,ga=Object.keys(ha);ma<ga.length;ma+=1){var va=ga[ma];ha[va.toLowerCase()]=ha[va]}var ya=ha,ba=S;return ba.average=ti,ba.bezier=di,ba.blend=_i,ba.cubehelix=Ri,ba.mix=ba.interpolate=po,ba.random=Fi,ba.scale=ai,ba.analyze=Wi.analyze,ba.contrast=Yi,ba.deltaE=aa,ba.distance=sa,ba.limits=Wi.limits,ba.valid=ca,ba.scales=pa,ba.colors=Ln,ba.brewer=ya,ba}();c=i("fYo6y");let Og=0;const Pg=new Map,jg=e=>{if(Pg.has(e))return;const t=setTimeout((()=>{Pg.delete(e),Rg({type:"REMOVE_TOAST",toastId:e})}),1e3);Pg.set(e,t)},Tg=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case"DISMISS_TOAST":const{toastId:n}=t;return n?jg(n):e.toasts.forEach((e=>{jg(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===n||void 0===n?{...e,open:!1}:e))};case"REMOVE_TOAST":return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))}}},Mg=[];let Dg={toasts:[]};function Rg(e){Dg=Tg(Dg,e),Mg.forEach((e=>{e(Dg)}))}function Ag({...e}){const t=(Og=(Og+1)%Number.MAX_VALUE,Og.toString()),n=()=>Rg({type:"DISMISS_TOAST",toastId:t});return Rg({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||n()}}}),{id:t,dismiss:n,update:e=>Rg({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function Ng(){const[e,t]=c.useState(Dg);return c.useEffect((()=>(Mg.push(t),()=>{const e=Mg.indexOf(t);e>-1&&Mg.splice(e,1)})),[e]),{...e,toast:Ag,dismiss:e=>Rg({type:"DISMISS_TOAST",toastId:e})}}const Ig={HIGHLIGHT:{backgroundColor:"#faed27"},NORMAL:{backgroundColor:"transparent"},BOLD:{fontWeight:"bold"}},Lg={transition:"background-color 0.2s ease-in-out",backgroundColor:"#b9eebc",padding:"2px 0"},Fg={transition:"background-color 0.2s ease-in-out",backgroundColor:"#f6b2b3",padding:"2px 0"},zg={transition:"background-color 0.2s ease-in-out",backgroundColor:"#a198e6",padding:"2px 0"},Bg={transition:"background-color 0.2s ease-in-out",backgroundColor:"#D7BCE8",padding:"2px 0"},Kg={backgroundColor:"#BCCAE8",padding:"2px 0"},Ug={backgroundColor:"#cc785c80",padding:"2px 0"},Vg={backgroundColor:"#e3ff00",padding:"2px 0"},Hg={backgroundColor:"transparent",transition:"background-color 0.2s ease-in-out",padding:"2px 0"};function $g(e,t){if(!1===t)return Hg;switch(e){case"openai":return Lg;case"huggingface-local":return Fg;case"cohere":return zg;case"huggingface":return Bg;case"forefront":return Kg;case"anthropic":return Ug;case"aleph-alpha":return Vg;default:return Hg}}c=i("fYo6y"),c=i("fYo6y"),c=i("fYo6y"),c=i("fYo6y");function Wg(e){const t=(0,c.useRef)({value:e,previous:e});return(0,c.useMemo)((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const qg="Checkbox",[Yg,Gg]=Gs(qg),[Jg,Xg]=Yg(qg),Qg=(0,c.forwardRef)(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:l,value:s="on",onCheckedChange:u,...f}=e,[d,p]=(0,c.useState)(null),h=Ys(t,(e=>p(e))),m=(0,c.useRef)(!1),g=!d||Boolean(d.closest("form")),[v=!1,y]=Qs({prop:o,defaultProp:i,onChange:u}),b=(0,c.useRef)(v);return(0,c.useEffect)((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>y(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,y]),(0,c.createElement)(Jg,{scope:n,state:v,disabled:l},(0,c.createElement)(ou.button,$s({type:"button",role:"checkbox","aria-checked":nv(v)?"mixed":v,"aria-required":a,"data-state":rv(v),"data-disabled":l?"":void 0,disabled:l,value:s},f,{ref:h,onKeyDown:Ws(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:Ws(e.onClick,(e=>{y((e=>!!nv(e)||!e)),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),g&&(0,c.createElement)(tv,{control:d,bubbles:!m.current,name:r,value:s,checked:v,required:a,disabled:l,style:{transform:"translateX(-100%)"}}))})),Zg="CheckboxIndicator",ev=(0,c.forwardRef)(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Xg(Zg,n);return(0,c.createElement)(kf,{present:r||nv(i.state)||!0===i.state},(0,c.createElement)(ou.span,$s({"data-state":rv(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),tv=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=(0,c.useRef)(null),a=Wg(n),l=Yc(t);return(0,c.useEffect)((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=nv(n),o.call(e,!nv(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),(0,c.createElement)("input",$s({type:"checkbox","aria-hidden":!0,defaultChecked:!nv(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function nv(e){return"indeterminate"===e}function rv(e){return nv(e)?"indeterminate":e?"checked":"unchecked"}const ov=Qg,iv=ev,av=nh("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),lv=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(ov,{ref:n,className:ul("peer h-4 w-4 shrink-0 rounded-sm border border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900",e),...t,children:(0,l.jsx)(iv,{className:ul("flex items-center justify-center"),children:(0,l.jsx)(av,{className:"h-4 w-4"})})})));lv.displayName=ov.displayName;var sv={};sv=(e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":
/*!**********************************************!*\
  !*** ./node_modules/css-mediaquery/index.js ***!
  \**********************************************/(e,t)=>{t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,i=t[n];if(!i)return!1;switch(n){case"orientation":case"scan":return i.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=c(o),i=c(i);break;case"resolution":o=u(o),i=u(i);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),i=s(i);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,i=parseInt(i,10)||0}switch(r){case"min":return i>=o;case"max":return i<=o;default:return i===o}}));return o&&!n||!o&&n}))},t.parse=l;var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,o=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(n),i=t[1],a=t[2],l=t[3]||"",s={};return s.inverse=!!i&&"not"===i.toLowerCase(),s.type=a?a.toLowerCase():"all",l=l.match(/\([^\)]+\)/g)||[],s.expressions=l.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(o);return{modifier:n[1],feature:n[2],value:t[2]}})),s}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function c(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":
/*!****************************************************!*\
  !*** ./node_modules/hyphenate-style-name/index.js ***!
  \****************************************************/(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=/[A-Z]/g,o=/^ms-/,i={};function a(e){return"-"+e.toLowerCase()}const l=function(e){if(i.hasOwnProperty(e))return i[e];var t=e.replace(r,a);return i[e]=o.test(t)?"-"+t:t}},"./node_modules/matchmediaquery/index.js":
/*!***********************************************!*\
  !*** ./node_modules/matchmediaquery/index.js ***!
  \***********************************************/(e,t,n)=>{var r=n(/*! css-mediaquery */"./node_modules/css-mediaquery/index.js").match,o="undefined"!=typeof window?window.matchMedia:null;function i(e,t,n){var i=this;if(o&&!n){var a=o.call(window,e);this.matches=a.matches,this.media=a.media,a.addListener(l)}else this.matches=r(e,t),this.media=e;function l(e){i.matches=e.matches,i.media=e.media}this.addListener=function(e){a&&a.addListener(e)},this.removeListener=function(e){a&&a.removeListener(e)},this.dispose=function(){a&&a.removeListener(l)}}e.exports=function(e,t,n){return new i(e,t,n)}},"./node_modules/object-assign/index.js":
/*!*********************************************!*\
  !*** ./node_modules/object-assign/index.js ***!
  \*********************************************/e=>{
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in i=Object(arguments[s]))n.call(i,u)&&(l[u]=i[u]);if(t){a=t(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(l[a[c]]=i[a[c]])}}return l}},"./node_modules/prop-types/checkPropTypes.js":
/*!***************************************************!*\
  !*** ./node_modules/prop-types/checkPropTypes.js ***!
  \***************************************************/(e,t,n)=>{var r,o=n(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),i={},a=n(/*! ./lib/has */"./node_modules/prop-types/lib/has.js");function l(e,t,n,l,s){for(var u in e)if(a(e,u)){var c;try{if("function"!=typeof e[u]){var f=Error((l||"React class")+": "+n+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}c=e[u](t,u,l,n,null,o)}catch(e){c=e}if(!c||c instanceof Error||r((l||"React class")+": type specification of "+n+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in i)){i[c.message]=!0;var d=s?s():"";r("Failed "+n+" type: "+c.message+(null!=d?d:""))}}}r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},l.resetWarningCache=function(){i={}},e.exports=l},"./node_modules/prop-types/factoryWithTypeCheckers.js":
/*!************************************************************!*\
  !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
  \************************************************************/(e,t,n)=>{var r,o=n(/*! react-is */"./node_modules/react-is/index.js"),i=n(/*! object-assign */"./node_modules/object-assign/index.js"),a=n(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),l=n(/*! ./lib/has */"./node_modules/prop-types/lib/has.js"),s=n(/*! ./checkPropTypes */"./node_modules/prop-types/checkPropTypes.js");function u(){return null}r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,c="@@iterator",f="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(u),arrayOf:function(e){return m((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l))return new h("Invalid "+o+" `"+i+"` of type `"+b(l)+"` supplied to `"+r+"`, expected an array.");for(var s=0;s<l.length;s++){var u=e(l,s,r,o,i+"["+s+"]",a);if(u instanceof Error)return u}return null}))},element:m((function(t,n,r,o,i){var a=t[n];return e(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:m((function(e,t,n,r,i){var a=e[t];return o.isValidElementType(a)?null:new h("Invalid "+r+" `"+i+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:m((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],u=b(s);if("object"!==u)return new h("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in s)if(l(s,c)){var f=e(s,c,r,o,i+"."+c,a);if(f instanceof Error)return f}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")})):(r(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),u)},oneOfType:function(e){if(!Array.isArray(e))return r("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(n)+" at index "+t+"."),u}return m((function(t,n,r,o,i){for(var s=[],u=0;u<e.length;u++){var c=(0,e[u])(t,n,r,o,i,a);if(null==c)return null;c.data&&l(c.data,"expectedType")&&s.push(c.data.expectedType)}return new h("Invalid "+o+" `"+i+"` supplied to `"+r+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,n,r,o,i){var l=t[n],s=b(l);if("object"!==s)return new h("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return v(r,o,i,u,x(c));var f=c(l,u,r,o,i+"."+u,a);if(f)return f}return null}))},exact:function(e){return m((function(t,n,r,o,s){var u=t[n],c=b(u);if("object"!==c)return new h("Invalid "+o+" `"+s+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var f=i({},t[n],e);for(var d in f){var p=e[d];if(l(e,d)&&"function"!=typeof p)return v(r,o,s,d,x(p));if(!p)return new h("Invalid "+o+" `"+s+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var m=p(u,d,r,o,s+"."+d,a);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){var n={},o=0;function i(i,l,s,u,c,d,p){if(u=u||f,d=d||s,p!==a){if(t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("undefined"!=typeof console){var g=u+":"+s;!n[g]&&o<3&&(r("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[g]=!0,o++)}}return null==l[s]?i?null===l[s]?new h("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(l,s,u,c,d)}var l=i.bind(null,!1);return l.isRequired=i.bind(null,!0),l}function g(e){return m((function(t,n,r,o,i,a){var l=t[n];return b(l)!==e?new h("Invalid "+o+" `"+i+"` of type `"+x(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e[c]);if("function"==typeof t)return t}(t);if(!r)return!1;var o,i=r.call(t);if(r!==t.entries){for(;!(o=i.next()).done;)if(!y(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!y(a[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=s,d.resetWarningCache=s.resetWarningCache,d.PropTypes=d,d}},"./node_modules/prop-types/index.js":
/*!******************************************!*\
  !*** ./node_modules/prop-types/index.js ***!
  \******************************************/(e,t,n)=>{var r=n(/*! react-is */"./node_modules/react-is/index.js");e.exports=n(/*! ./factoryWithTypeCheckers */"./node_modules/prop-types/factoryWithTypeCheckers.js")(r.isElement,!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":
/*!*************************************************************!*\
  !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  \*************************************************************/e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/prop-types/lib/has.js":
/*!********************************************!*\
  !*** ./node_modules/prop-types/lib/has.js ***!
  \********************************************/e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-is/cjs/react-is.development.js ***!
  \***********************************************************/(e,t)=>{!function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case c:case o:case a:case i:case d:return p;default:var g=p&&p.$$typeof;switch(g){case s:case f:case m:case h:case l:return g;default:return t}}case r:return t}}}var w=u,S=c,k=s,E=l,_=n,C=f,O=o,P=m,j=h,T=r,M=a,D=i,R=d,A=!1;function N(e){return x(e)===c}t.AsyncMode=w,t.ConcurrentMode=S,t.ContextConsumer=k,t.ContextProvider=E,t.Element=_,t.ForwardRef=C,t.Fragment=O,t.Lazy=P,t.Memo=j,t.Portal=T,t.Profiler=M,t.StrictMode=D,t.Suspense=R,t.isAsyncMode=function(e){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||x(e)===u},t.isConcurrentMode=N,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===h},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===s||e.$$typeof===f||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},t.typeOf=x}()},"./node_modules/react-is/index.js":
/*!****************************************!*\
  !*** ./node_modules/react-is/index.js ***!
  \****************************************/(e,t,n)=>{e.exports=n(/*! ./cjs/react-is.development.js */"./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":
/*!******************************************************!*\
  !*** ./node_modules/shallow-equal/dist/index.esm.js ***!
  \******************************************************/(e,t,n)=>{function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}function o(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}n.r(t),n.d(t,{shallowEqualArrays:()=>o,shallowEqualObjects:()=>r})},"./src/Component.ts":
/*!**************************!*\
  !*** ./src/Component.ts ***!
  \**************************/function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(/*! ./useMediaQuery */"./src/useMediaQuery.ts"));t.default=function(e){var t=e.children,n=e.device,o=e.onChange,a=r(e,["children","device","onChange"]),l=(0,i.default)(a,n,o);return"function"==typeof t?t(l):l?t:null}},"./src/Context.ts":
/*!************************!*\
  !*** ./src/Context.ts ***!
  \************************/(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n(/*! react */"react").createContext)(void 0);t.default=r},"./src/index.ts":
/*!**********************!*\
  !*** ./src/index.ts ***!
  \**********************/function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var o=r(n(/*! ./useMediaQuery */"./src/useMediaQuery.ts"));t.useMediaQuery=o.default;var i=r(n(/*! ./Component */"./src/Component.ts"));t.default=i.default;var a=r(n(/*! ./toQuery */"./src/toQuery.ts"));t.toQuery=a.default;var l=r(n(/*! ./Context */"./src/Context.ts"));t.Context=l.default},"./src/mediaQuery.ts":
/*!***************************!*\
  !*** ./src/mediaQuery.ts ***!
  \***************************/function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(/*! prop-types */"./node_modules/prop-types/index.js")),l=a.default.oneOfType([a.default.string,a.default.number]),s={all:a.default.bool,grid:a.default.bool,aural:a.default.bool,braille:a.default.bool,handheld:a.default.bool,print:a.default.bool,projection:a.default.bool,screen:a.default.bool,tty:a.default.bool,tv:a.default.bool,embossed:a.default.bool},u={orientation:a.default.oneOf(["portrait","landscape"]),scan:a.default.oneOf(["progressive","interlace"]),aspectRatio:a.default.string,deviceAspectRatio:a.default.string,height:l,deviceHeight:l,width:l,deviceWidth:l,color:a.default.bool,colorIndex:a.default.bool,monochrome:a.default.bool,resolution:l,type:Object.keys(s)},c=o(u,["type"]),f=r({minAspectRatio:a.default.string,maxAspectRatio:a.default.string,minDeviceAspectRatio:a.default.string,maxDeviceAspectRatio:a.default.string,minHeight:l,maxHeight:l,minDeviceHeight:l,maxDeviceHeight:l,minWidth:l,maxWidth:l,minDeviceWidth:l,maxDeviceWidth:l,minColor:a.default.number,maxColor:a.default.number,minColorIndex:a.default.number,maxColorIndex:a.default.number,minMonochrome:a.default.number,maxMonochrome:a.default.number,minResolution:l,maxResolution:l},c),d=r(r({},s),f);t.default={all:d,types:s,matchers:u,features:f}},"./src/toQuery.ts":
/*!************************!*\
  !*** ./src/toQuery.ts ***!
  \************************/function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(/*! hyphenate-style-name */"./node_modules/hyphenate-style-name/index.js")),i=r(n(/*! ./mediaQuery */"./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(i.default.all).forEach((function(n){var r=e[n];null!=r&&t.push(function(e,t){var n=(0,o.default)(e);return"number"==typeof t&&(t="".concat(t,"px")),!0===t?n:!1===t?"not ".concat(n):"(".concat(n,": ").concat(t,")")}(n,r))})),t.join(" and ")}},"./src/useMediaQuery.ts":
/*!******************************!*\
  !*** ./src/useMediaQuery.ts ***!
  \******************************/function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! react */"react"),i=r(n(/*! matchmediaquery */"./node_modules/matchmediaquery/index.js")),a=r(n(/*! hyphenate-style-name */"./node_modules/hyphenate-style-name/index.js")),l=n(/*! shallow-equal */"./node_modules/shallow-equal/dist/index.esm.js"),s=r(n(/*! ./toQuery */"./src/toQuery.ts")),u=r(n(/*! ./Context */"./src/Context.ts")),c=function(e){if(e)return Object.keys(e).reduce((function(t,n){return t[(0,a.default)(n)]=e[n],t}),{})},f=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){e.current=!0}),[]),e.current},d=function(e){var t=function(){return function(e){return e.query||(0,s.default)(e)}(e)},n=(0,o.useState)(t),r=n[0],i=n[1];return(0,o.useEffect)((function(){var e=t();r!==e&&i(e)}),[e]),r};t.default=function(e,t,n){var r=function(e){var t=(0,o.useContext)(u.default),n=function(){return c(e)||c(t)},r=(0,o.useState)(n),i=r[0],a=r[1];return(0,o.useEffect)((function(){var e=n();(0,l.shallowEqualObjects)(i,e)||a(e)}),[e,t]),i}(t),a=d(e);if(!a)throw new Error("Invalid or missing MediaQuery!");var s=function(e,t){var n=function(){return(0,i.default)(e,t||{},!!t)},r=(0,o.useState)(n),a=r[0],l=r[1],s=f();return(0,o.useEffect)((function(){if(s){var e=n();return l(e),function(){e&&e.dispose()}}}),[e,t]),a}(a,r),p=function(e){var t=(0,o.useState)(e.matches),n=t[0],r=t[1];return(0,o.useEffect)((function(){var t=function(e){r(e.matches)};return e.addListener(t),r(e.matches),function(){e.removeListener(t)}}),[e]),n}(s),h=f();return(0,o.useEffect)((function(){h&&n&&n(p)}),[p]),(0,o.useEffect)((function(){return function(){s&&s.dispose()}}),[]),p}},react:
/*!**************************************************************************************!*\
  !*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
  \**************************************************************************************/t=>{t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.ts")})())(i("fYo6y"));var uv,cv={};Object.defineProperty(cv,"__esModule",{value:!0}),Object.defineProperty(cv,"default",{enumerable:!0,get:()=>hv});const fv=pv(i("LagnA")),dv=pv(i("aLdlt"));function pv(e){return e&&e.__esModule?e:{default:e}}function hv(...e){let[,...t]=(0,dv.default)(e[0]);return(0,fv.default)([...e,...t])}uv=(cv.__esModule?cv:{default:cv}).default;var mv,gv={};Object.defineProperty(gv,"__esModule",{value:!0}),Object.defineProperty(gv,"default",{enumerable:!0,get:()=>xv});var vv=i("dIJsg");const yv=bv(i("4nfJ5"));function bv(e){return e&&e.__esModule?e:{default:e}}const xv=(0,vv.cloneDeep)(yv.default.theme);mv={darkMode:["class",'[data-theme="dark"]'],content:["./src/**/*.{html,js,ts,jsx,tsx}"],theme:{extend:{colors:{"highlight-tokens":"#ff395ad1"},screens:{"3xl":"1792px","4xl":"2048px","5xl":"2748px","6xl":"3448px","8xl":"4000px"},fontFamily:{sans:["var(--font-sans)",...(gv.__esModule?gv:{default:gv}).default.fontFamily.sans],display:["Inter","Manrope","sans-serif"]},keyframes:{"accordion-down":{from:{height:0},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}},plugins:[i("ibflF")]};const wv=n(uv)(n(mv)),Sv=wv.theme?.screens;function kv(e){const t=(0,sv.useMediaQuery)({query:`(min-width: ${Sv[e]})`});return{[`is${e[0].toUpperCase()+e.substring(1)}`]:t}}c=i("fYo6y");const Ev=(c=i("fYo6y")).forwardRef((({className:e,...t},n)=>(0,l.jsx)("input",{className:ul("h-5 border border-slate-50 text-right bg-transparent py-2 text-base placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900",e),ref:n,...t,lang:"en-150"})));Ev.displayName="Input";c=i("fYo6y"),c=i("fYo6y");function _v(e,[t,n]){return Math.min(n,Math.max(t,e))}const Cv=["PageUp","PageDown"],Ov=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Pv={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},jv="Slider",[Tv,Mv,Dv]=au(jv),[Rv,Av]=Gs(jv,[Dv]),[Nv,Iv]=Rv(jv),Lv=(0,c.forwardRef)(((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:l=!1,minStepsBetweenThumbs:s=0,defaultValue:u=[r],value:f,onValueChange:d=(()=>{}),onValueCommit:p=(()=>{}),inverted:h=!1,...m}=e,[g,v]=(0,c.useState)(null),y=Ys(t,(e=>v(e))),b=(0,c.useRef)(new Set),x=(0,c.useRef)(0),w="horizontal"===a,S=!g||Boolean(g.closest("form")),k=w?Bv:Kv,[E=[],_]=Qs({prop:f,defaultProp:u,onChange:e=>{var t;null===(t=[...b.current][x.current])||void 0===t||t.focus(),d(e)}}),C=(0,c.useRef)(E);function O(e,t,{commit:n}={commit:!1}){const a=function(e){return(String(e).split(".")[1]||"").length}(i),l=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/i)*i+r,a),u=_v(l,[r,o]);_(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,u,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,s*i)){x.current=r.indexOf(u);const t=String(r)!==String(e);return t&&n&&p(r),t?r:e}return e}))}return(0,c.createElement)(Nv,{scope:e.__scopeSlider,disabled:l,min:r,max:o,valueIndexToChangeRef:x,thumbs:b.current,values:E,orientation:a},(0,c.createElement)(Tv.Provider,{scope:e.__scopeSlider},(0,c.createElement)(Tv.Slot,{scope:e.__scopeSlider},(0,c.createElement)(k,$s({"aria-disabled":l,"data-disabled":l?"":void 0},m,{ref:y,onPointerDown:Ws(m.onPointerDown,(()=>{l||(C.current=E)})),min:r,max:o,inverted:h,onSlideStart:l?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(E,e);O(e,t)},onSlideMove:l?void 0:function(e){O(e,x.current)},onSlideEnd:l?void 0:function(){const e=C.current[x.current];E[x.current]!==e&&p(E)},onHomeKeyDown:()=>!l&&O(r,0,{commit:!0}),onEndKeyDown:()=>!l&&O(o,E.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!l){const n=Cv.includes(e.key)||e.shiftKey&&Ov.includes(e.key)?10:1,r=x.current;O(E[r]+i*n*t,r,{commit:!0})}}})))),S&&E.map(((e,t)=>(0,c.createElement)(Jv,{key:t,name:n?n+(E.length>1?"[]":""):void 0,value:e}))))})),[Fv,zv]=Rv(jv,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Bv=(0,c.forwardRef)(((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:l,onSlideEnd:s,onStepKeyDown:u,...f}=e,[d,p]=(0,c.useState)(null),h=Ys(t,(e=>p(e))),m=(0,c.useRef)(),g=su(o),v="ltr"===g,y=v&&!i||!v&&i;function b(e){const t=m.current||d.getBoundingClientRect(),o=Qv([0,t.width],y?[n,r]:[r,n]);return m.current=t,o(e-t.left)}return(0,c.createElement)(Fv,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width"},(0,c.createElement)(Uv,$s({dir:g,"data-orientation":"horizontal"},f,{ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=b(e.clientX);null==a||a(t)},onSlideMove:e=>{const t=b(e.clientX);null==l||l(t)},onSlideEnd:()=>{m.current=void 0,null==s||s()},onStepKeyDown:e=>{const t=Pv[y?"from-left":"from-right"].includes(e.key);null==u||u({event:e,direction:t?-1:1})}})))})),Kv=(0,c.forwardRef)(((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:s,...u}=e,f=(0,c.useRef)(null),d=Ys(t,f),p=(0,c.useRef)(),h=!o;function m(e){const t=p.current||f.current.getBoundingClientRect(),o=Qv([0,t.height],h?[r,n]:[n,r]);return p.current=t,o(e-t.top)}return(0,c.createElement)(Fv,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1},(0,c.createElement)(Uv,$s({"data-orientation":"vertical"},u,{ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=m(e.clientY);null==i||i(t)},onSlideMove:e=>{const t=m(e.clientY);null==a||a(t)},onSlideEnd:()=>{p.current=void 0,null==l||l()},onStepKeyDown:e=>{const t=Pv[h?"from-bottom":"from-top"].includes(e.key);null==s||s({event:e,direction:t?-1:1})}})))})),Uv=(0,c.forwardRef)(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:l,onStepKeyDown:s,...u}=e,f=Iv(jv,n);return(0,c.createElement)(ou.span,$s({},u,{ref:t,onKeyDown:Ws(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):Cv.concat(Ov).includes(e.key)&&(s(e),e.preventDefault())})),onPointerDown:Ws(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),f.thumbs.has(t)?t.focus():r(e)})),onPointerMove:Ws(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:Ws(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))}))})),Vv="SliderTrack",Hv=(0,c.forwardRef)(((e,t)=>{const{__scopeSlider:n,...r}=e,o=Iv(Vv,n);return(0,c.createElement)(ou.span,$s({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))})),$v="SliderRange",Wv=(0,c.forwardRef)(((e,t)=>{const{__scopeSlider:n,...r}=e,o=Iv($v,n),i=zv($v,n),a=Ys(t,(0,c.useRef)(null)),l=o.values.length,s=o.values.map((e=>Xv(e,o.min,o.max))),u=l>1?Math.min(...s):0,f=100-Math.max(...s);return(0,c.createElement)(ou.span,$s({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:a,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:f+"%"}}))})),qv="SliderThumb",Yv=(0,c.forwardRef)(((e,t)=>{const n=Mv(e.__scopeSlider),[r,o]=(0,c.useState)(null),i=Ys(t,(e=>o(e))),a=(0,c.useMemo)((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return(0,c.createElement)(Gv,$s({},e,{ref:i,index:a}))})),Gv=(0,c.forwardRef)(((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,i=Iv(qv,n),a=zv(qv,n),[l,s]=(0,c.useState)(null),u=Ys(t,(e=>s(e))),f=Yc(l),d=i.values[r],p=void 0===d?0:Xv(d,i.min,i.max),h=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,i.values.length),m=null==f?void 0:f[a.size],g=m?function(e,t,n){const r=e/2,o=Qv([0,50],[0,r]);return(r-o(t)*n)*n}(m,p,a.direction):0;return(0,c.useEffect)((()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}}),[l,i.thumbs]),(0,c.createElement)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${p}% + ${g}px)`}},(0,c.createElement)(Tv.ItemSlot,{scope:e.__scopeSlider},(0,c.createElement)(ou.span,$s({role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":i.min,"aria-valuenow":d,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0},o,{ref:u,style:void 0===d?{display:"none"}:e.style,onFocus:Ws(e.onFocus,(()=>{i.valueIndexToChangeRef.current=r}))}))))})),Jv=e=>{const{value:t,...n}=e,r=(0,c.useRef)(null),o=Wg(t);return(0,c.useEffect)((()=>{const e=r.current,n=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(n,"value").set;if(o!==t&&i){const n=new Event("input",{bubbles:!0});i.call(e,t),e.dispatchEvent(n)}}),[o,t]),(0,c.createElement)("input",$s({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function Xv(e,t,n){return 100/(n-t)*(e-t)}function Qv(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}const Zv=Lv,ey=Hv,ty=Wv,ny=Yv,ry=c.forwardRef((({className:e,...t},n)=>{const[r,o]=c.useState(!1),{onValueChange:i,onValueCommit:a,...s}=t,u=c.useRef(null);return c.useEffect((()=>{setTimeout((()=>{u.current.parentElement.classList.add("ease-in","duration-500")}),0)}),[]),(0,l.jsxs)(Zv,{onValueChange:e=>{u.current&&u.current.parentElement.classList.remove("ease-in","duration-500"),r||o(!0),i&&i(e)},onValueCommit:e=>{o(!1),a&&a(e)},ref:n,className:ul("relative flex w-full touch-none select-none items-center",e),...s,children:[(0,l.jsx)(ey,{className:"relative h-1 w-full grow overflow-hidden rounded-full bg-slate-200 dark:bg-slate-800",children:(0,l.jsx)(ty,{className:"absolute h-full bg-slate-600  dark:bg-slate-800 "+(r?"":"ease-in duration-500")})}),(0,l.jsx)(ny,{ref:u,className:`block h-4 w-4 rounded-full border-2 border-slate-800 bg-white transition-colors focus:outline-none focus:ring-1 focus:ring-slate-400 disabled:pointer-events-none disabled:bg-slate-200  disabled:opacity-50 dark:border-slate-100 dark:bg-slate-400 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900 ${r?"cursor-grabbing":"cursor-grab ease-in duration-500"} disabled:cursor-default`})]})}));ry.displayName=Zv.displayName;const oy=nh("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["line",{x1:"12",y1:"9",x2:"12",y2:"13",key:"mb7vjk"}],["line",{x1:"12",y1:"17",x2:"12.01",y2:"17",key:"kdstpg"}]]);var iy=({title:e,defaultValue:t,disabled:n,min:r,max:o,step:i,normalizeInputData:a,normalizeSliderData:s,type:u="number",tooltipContent:f,onChangeValue:d})=>{const[p,h]=(0,c.useState)(t),{isLg:m}=kv("lg");(0,c.useEffect)((()=>{h(t)}),[t]);const g=Math.max(Number(r),Math.min(Number(o),Number(p)));return(0,l.jsx)("div",{className:"",children:(0,l.jsxs)(Lh,{delayDuration:300,skipDelayDuration:150,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("span",{className:"cursor-default flow-root inline-block align-middle mb-3",children:[(0,l.jsxs)("p",{className:"text-sm font-normal float-left align-text-top "+(n?"opacity-50 cursor-not-allowed":""),children:[n&&(0,l.jsx)(oy,{className:"w-4 h-4 text-gray-500 inline mr-1 mb-0.5"}),e]}),(0,l.jsx)(Ev,{inputMode:"decimal",className:"float-right h-6 p-0 w-14",type:u,value:[p.toString()],step:i,autoFocus:!1,onChange:e=>{if(a){let t=a(e.target.value);h(t),!isNaN(t)&&d&&d(t)}},onBlur:e=>{let n=Math.max(Number(r),Math.min(Number(o),Number(p)));isNaN(n)&&(n=t),h(n),d&&d(n)},disabled:n,min:r,max:o})]}),(0,l.jsx)(ry,{disabled:n,defaultValue:[p],value:[g],min:r,max:o,step:i,onValueChange:e=>{h(e[0])},onValueCommit:e=>{d&&d(e[0])}})]})}),(0,l.jsx)(zh,{side:m?"left":"bottom",children:f})]})})};c=i("fYo6y"),c=i("fYo6y");const ay=[" ","Enter","ArrowUp","ArrowDown"],ly=[" ","Enter"],sy="Select",[uy,cy,fy]=au(sy),[dy,py]=Gs(sy,[fy,Xc]),hy=Xc(),[my,gy]=dy(sy),[vy,yy]=dy(sy),by=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:l,onValueChange:s,dir:u,name:f,autoComplete:d,disabled:p,required:h}=e,m=hy(t),[g,v]=(0,c.useState)(null),[y,b]=(0,c.useState)(null),[x,w]=(0,c.useState)(!1),S=su(u),[k=!1,E]=Qs({prop:r,defaultProp:o,onChange:i}),[_,C]=Qs({prop:a,defaultProp:l,onChange:s}),O=(0,c.useRef)(null),P=!g||Boolean(g.closest("form")),[j,T]=(0,c.useState)(new Set),M=Array.from(j).map((e=>e.props.value)).join(";");return(0,c.createElement)(yf,m,(0,c.createElement)(my,{required:h,scope:t,trigger:g,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:w,contentId:Lu(),value:_,onValueChange:C,open:k,onOpenChange:E,dir:S,triggerPointerDownPosRef:O,disabled:p},(0,c.createElement)(uy.Provider,{scope:t},(0,c.createElement)(vy,{scope:e.__scopeSelect,onNativeOptionAdd:(0,c.useCallback)((e=>{T((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:(0,c.useCallback)((e=>{T((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),P?(0,c.createElement)(Qy,{key:M,"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:d,value:_,onChange:e=>C(e.target.value),disabled:p},void 0===_?(0,c.createElement)("option",{value:""}):null,Array.from(j)):null))},xy="SelectTrigger",wy=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=hy(n),a=gy(xy,n),l=a.disabled||r,s=Ys(t,a.onTriggerChange),u=cy(n),[f,d,p]=Zy((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=eb(t,e,n);void 0!==r&&a.onValueChange(r.value)})),h=()=>{l||(a.onOpenChange(!0),p())};return(0,c.createElement)(bf,$s({asChild:!0},i),(0,c.createElement)(ou.button,$s({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":void 0===a.value?"":void 0},o,{ref:s,onClick:Ws(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:Ws(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(h(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:Ws(o.onKeyDown,(e=>{const t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||d(e.key),t&&" "===e.key||ay.includes(e.key)&&(h(),e.preventDefault())}))})))})),Sy="SelectValue",ky=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a,...l}=e,s=gy(Sy,n),{onValueNodeHasChildrenChange:u}=s,f=void 0!==i,d=Ys(t,s.onValueNodeChange);return Au((()=>{u(f)}),[u,f]),(0,c.createElement)(ou.span,$s({},l,{ref:d,style:{pointerEvents:"none"}}),void 0===s.value&&void 0!==a?a:i)})),Ey=e=>(0,c.createElement)(Sf,$s({asChild:!0},e)),_y="SelectContent",Cy=(0,c.forwardRef)(((e,t)=>{const n=gy(_y,e.__scopeSelect),[r,o]=(0,c.useState)();if(Au((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?(0,s.createPortal)((0,c.createElement)(Py,{scope:e.__scopeSelect},(0,c.createElement)(uy.Slot,{scope:e.__scopeSelect},(0,c.createElement)("div",null,e.children))),t):null}return(0,c.createElement)(Ty,$s({},e,{ref:t}))})),Oy=10,[Py,jy]=dy(_y),Ty=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:m,hideWhenDetached:g,avoidCollisions:v,...y}=e,b=gy(_y,n),[x,w]=(0,c.useState)(null),[S,k]=(0,c.useState)(null),E=Ys(t,(e=>w(e))),[_,C]=(0,c.useState)(null),[O,P]=(0,c.useState)(null),j=cy(n),[T,M]=(0,c.useState)(!1),D=(0,c.useRef)(!1);(0,c.useEffect)((()=>{if(x)return Jf(x)}),[x]),Su();const R=(0,c.useCallback)((e=>{const[t,...n]=j().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(null==n||n.scrollIntoView({block:"nearest"}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),null==n||n.focus(),document.activeElement!==o)return}}),[j,S]),A=(0,c.useCallback)((()=>R([_,x])),[R,_,x]);(0,c.useEffect)((()=>{T&&A()}),[T,A]);const{onOpenChange:N,triggerPointerDownPosRef:I}=b;(0,c.useEffect)((()=>{if(x){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=I.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=I.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||N(!1),document.removeEventListener("pointermove",t),I.current=null};return null!==I.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[x,N,I]),(0,c.useEffect)((()=>{const e=()=>N(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[N]);const[L,F]=Zy((e=>{const t=j().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=eb(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),z=(0,c.useCallback)(((e,t,n)=>{const r=!D.current&&!n;(void 0!==b.value&&b.value===t||r)&&(C(e),r&&(D.current=!0))}),[b.value]),B=(0,c.useCallback)((()=>null==x?void 0:x.focus()),[x]),K=(0,c.useCallback)(((e,t,n)=>{const r=!D.current&&!n;(void 0!==b.value&&b.value===t||r)&&P(e)}),[b.value]),U="popper"===r?Dy:My,V=U===Dy?{side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:m,hideWhenDetached:g,avoidCollisions:v}:{};return(0,c.createElement)(Py,{scope:n,content:x,viewport:S,onViewportChange:k,itemRefCallback:z,selectedItem:_,onItemLeave:B,itemTextRefCallback:K,focusSelectedItem:A,selectedItemText:O,position:r,isPositioned:T,searchRef:L},(0,c.createElement)(Ad,{as:Zs,allowPinchZoom:!0},(0,c.createElement)(Ou,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Ws(o,(e=>{var t;null===(t=b.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},(0,c.createElement)(mu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},(0,c.createElement)(U,$s({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault()},y,V,{onPlaced:()=>M(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Ws(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=j().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>R(t))),e.preventDefault()}}))}))))))})),My=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=gy(_y,n),a=jy(_y,n),[l,s]=(0,c.useState)(null),[u,f]=(0,c.useState)(null),d=Ys(t,(e=>f(e))),p=cy(n),h=(0,c.useRef)(!1),m=(0,c.useRef)(!0),{viewport:g,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=a,x=(0,c.useCallback)((()=>{if(i.trigger&&i.valueNode&&l&&u&&g&&v&&y){const e=i.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=y.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,s=e.width+a,u=Math.max(s,t.width),c=window.innerWidth-Oy,f=_v(i,[Oy,c-u]);l.style.minWidth=s+"px",l.style.left=f+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,s=e.width+a,u=Math.max(s,t.width),c=window.innerWidth-Oy,f=_v(i,[Oy,c-u]);l.style.minWidth=s+"px",l.style.right=f+"px"}const a=p(),s=window.innerHeight-2*Oy,c=g.scrollHeight,f=window.getComputedStyle(u),d=parseInt(f.borderTopWidth,10),m=parseInt(f.paddingTop,10),b=parseInt(f.borderBottomWidth,10),x=d+m+c+parseInt(f.paddingBottom,10)+b,w=Math.min(5*v.offsetHeight,x),S=window.getComputedStyle(g),k=parseInt(S.paddingTop,10),E=parseInt(S.paddingBottom,10),_=e.top+e.height/2-Oy,C=s-_,O=v.offsetHeight/2,P=d+m+(v.offsetTop+O),j=x-P;if(P<=_){const e=v===a[a.length-1].ref.current;l.style.bottom="0px";const t=u.clientHeight-g.offsetTop-g.offsetHeight,n=P+Math.max(C,O+(e?E:0)+t+b);l.style.height=n+"px"}else{const e=v===a[0].ref.current;l.style.top="0px";const t=Math.max(_,d+g.offsetTop+(e?k:0)+O)+j;l.style.height=t+"px",g.scrollTop=P-_+g.offsetTop}l.style.margin=`${Oy}px 0`,l.style.minHeight=w+"px",l.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame((()=>h.current=!0))}}),[p,i.trigger,i.valueNode,l,u,g,v,y,i.dir,r]);Au((()=>x()),[x]);const[w,S]=(0,c.useState)();Au((()=>{u&&S(window.getComputedStyle(u).zIndex)}),[u]);const k=(0,c.useCallback)((e=>{e&&!0===m.current&&(x(),null==b||b(),m.current=!1)}),[x,b]);return(0,c.createElement)(Ry,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:k},(0,c.createElement)("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},(0,c.createElement)(ou.div,$s({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),Dy=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Oy,...i}=e,a=hy(n);return(0,c.createElement)(xf,$s({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[Ry,Ay]=dy(_y,{}),Ny="SelectViewport",Iy=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e,o=jy(Ny,n),i=Ay(Ny,n),a=Ys(t,o.onViewportChange),l=(0,c.useRef)(0);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,c.createElement)(uy.Slot,{scope:n},(0,c.createElement)(ou.div,$s({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Ws(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Oy,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),l=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))}))))})),Ly="SelectGroup",[Fy,zy]=dy(Ly),By=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e,o=Lu();return(0,c.createElement)(Fy,{scope:n,id:o},(0,c.createElement)(ou.div,$s({role:"group","aria-labelledby":o},r,{ref:t})))})),Ky="SelectLabel",Uy=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e,o=zy(Ky,n);return(0,c.createElement)(ou.div,$s({id:o.id},r,{ref:t}))})),Vy="SelectItem",[Hy,$y]=dy(Vy),Wy=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,l=gy(Vy,n),s=jy(Vy,n),u=l.value===r,[f,d]=(0,c.useState)(null!=i?i:""),[p,h]=(0,c.useState)(!1),m=Ys(t,(e=>{var t;return null===(t=s.itemRefCallback)||void 0===t?void 0:t.call(s,e,r,o)})),g=Lu(),v=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};return(0,c.createElement)(Hy,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:(0,c.useCallback)((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},(0,c.createElement)(uy.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},(0,c.createElement)(ou.div,$s({role:"option","aria-labelledby":g,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:m,onFocus:Ws(a.onFocus,(()=>h(!0))),onBlur:Ws(a.onBlur,(()=>h(!1))),onPointerUp:Ws(a.onPointerUp,v),onPointerMove:Ws(a.onPointerMove,(e=>{var t;o?null===(t=s.onItemLeave)||void 0===t||t.call(s):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Ws(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=s.onItemLeave)||void 0===t||t.call(s))})),onKeyDown:Ws(a.onKeyDown,(e=>{var t;""!==(null===(t=s.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(ly.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))}))))})),qy="SelectItemText",Yy=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=gy(qy,n),l=jy(qy,n),u=$y(qy,n),f=yy(qy,n),[d,p]=(0,c.useState)(null),h=Ys(t,(e=>p(e)),u.onItemTextChange,(e=>{var t;return null===(t=l.itemTextRefCallback)||void 0===t?void 0:t.call(l,e,u.value,u.disabled)})),m=null==d?void 0:d.textContent,g=(0,c.useMemo)((()=>(0,c.createElement)("option",{key:u.value,value:u.value,disabled:u.disabled},m)),[u.disabled,u.value,m]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=f;return Au((()=>(v(g),()=>y(g))),[v,y,g]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(ou.span,$s({id:u.textId},i,{ref:h})),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?(0,s.createPortal)(i.children,a.valueNode):null)})),Gy="SelectItemIndicator",Jy=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e;return $y(Gy,n).isSelected?(0,c.createElement)(ou.span,$s({"aria-hidden":!0},r,{ref:t})):null})),Xy=(0,c.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,c.createElement)(ou.div,$s({"aria-hidden":!0},r,{ref:t}))})),Qy=(0,c.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=(0,c.useRef)(null),i=Ys(t,o),a=Wg(n);return(0,c.useEffect)((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[a,n]),(0,c.createElement)(lh,{asChild:!0},(0,c.createElement)("select",$s({},r,{ref:i,defaultValue:n})))}));function Zy(e){const t=Xs(e),n=(0,c.useRef)(""),r=(0,c.useRef)(0),o=(0,c.useCallback)((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=(0,c.useCallback)((()=>{n.current="",window.clearTimeout(r.current)}),[]);return(0,c.useEffect)((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function eb(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,l=Math.max(o,0),a.map(((e,t)=>a[(l+t)%a.length])));var a,l;1===r.length&&(i=i.filter((e=>e!==n)));const s=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return s!==n?s:void 0}Qy.displayName="BubbleSelect";const tb=by,nb=wy,rb=ky,ob=Ey,ib=Cy,ab=Iy,lb=By,sb=Uy,ub=Wy,cb=Yy,fb=Jy,db=Xy,pb=nh("ChevronDown",[["polyline",{points:"6 9 12 15 18 9",key:"1do0m2"}]]),hb=tb,mb=lb,gb=rb,vb=c.forwardRef((({className:e,children:t,...n},r)=>(0,l.jsxs)(nb,{ref:r,className:ul("flex h-10 w-full items-center justify-between rounded-sm border border-slate-400 bg-transparent py-2 px-3 text-sm placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900",e),...n,children:[t,(0,l.jsx)(pb,{className:"h-4 w-4 opacity-50"})]})));vb.displayName=nb.displayName;const yb=c.forwardRef((({className:e,children:t,...n},r)=>(0,l.jsx)(ob,{children:(0,l.jsx)(ib,{ref:r,className:ul("font-display relative z-50 min-w-[8rem] overflow-hidden rounded-md border border-slate-100 bg-white text-slate-700 shadow-md animate-in fade-in-80 dark:border-slate-800 dark:bg-slate-800 dark:text-slate-400",e),...n,children:(0,l.jsx)(ab,{className:"p-1",children:t})})})));yb.displayName=ib.displayName;const bb=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(sb,{ref:n,className:ul("py-1.5 pr-2 pl-8 text-sm font-semibold text-slate-900 dark:text-slate-300",e),...t})));bb.displayName=sb.displayName;const xb=c.forwardRef((({className:e,children:t,...n},r)=>(0,l.jsxs)(ub,{ref:r,className:ul("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm font-medium outline-none focus:bg-slate-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-700",e),...n,children:[(0,l.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(fb,{children:(0,l.jsx)(av,{className:"h-4 w-4"})})}),(0,l.jsx)(cb,{children:t})]})));xb.displayName=ub.displayName;c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(db,{ref:n,className:ul("-mx-1 my-1 h-px bg-slate-100 dark:bg-slate-700",e),...t}))).displayName=db.displayName,i("fYo6y");c=i("fYo6y"),c=i("fYo6y");function wb(e){return wb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wb(e)}function Sb(e,t){if("object"!==wb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function kb(e){var t=Sb(e,"string");return"symbol"===wb(t)?t:String(t)}function Eb(e,t,n){return(t=kb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_b(Object(n),!0).forEach((function(t){Eb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ob(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kb(r.key),r)}}function jb(e,t){return jb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jb(e,t)}function Tb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jb(e,t)}function Mb(e){return Mb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mb(e)}function Db(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Rb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ab(e,t){if(t&&("object"===wb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rb(e)}function Nb(e){var t=Db();return function(){var n,r=Mb(e);if(t){var o=Mb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ab(this,n)}}function Ib(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lb(e){if(Array.isArray(e))return Ib(e)}function Fb(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function zb(e,t){if(e){if("string"==typeof e)return Ib(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ib(e,t):void 0}}function Bb(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Kb(e){return Lb(e)||Fb(e)||zb(e)||Bb()}c=i("fYo6y"),c=i("fYo6y"),c=i("fYo6y");var Ub=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Vb="-ms-",Hb="-moz-",$b="-webkit-",Wb="comm",qb="rule",Yb="decl",Gb="@keyframes",Jb=Math.abs,Xb=String.fromCharCode,Qb=Object.assign;function Zb(e,t){return 45^ox(e,0)?(((t<<2^ox(e,0))<<2^ox(e,1))<<2^ox(e,2))<<2^ox(e,3):0}function ex(e){return e.trim()}function tx(e,t){return(e=t.exec(e))?e[0]:e}function nx(e,t,n){return e.replace(t,n)}function rx(e,t){return e.indexOf(t)}function ox(e,t){return 0|e.charCodeAt(t)}function ix(e,t,n){return e.slice(t,n)}function ax(e){return e.length}function lx(e){return e.length}function sx(e,t){return t.push(e),e}function ux(e,t){return e.map(t).join("")}var cx=1,fx=1,dx=0,px=0,hx=0,mx="";function gx(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cx,column:fx,length:a,return:""}}function vx(e,t){return Qb(gx("",null,null,"",null,null,0),e,{length:-e.length},t)}function yx(){return hx=px<dx?ox(mx,px++):0,fx++,10===hx&&(fx=1,cx++),hx}function bx(){return ox(mx,px)}function xx(){return px}function wx(e,t){return ix(mx,e,t)}function Sx(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kx(e){return cx=fx=1,dx=ax(mx=e),px=0,[]}function Ex(e){return mx="",e}function _x(e){return ex(wx(px-1,Px(91===e?e+2:40===e?e+1:e)))}function Cx(e){for(;(hx=bx())&&hx<33;)yx();return Sx(e)>2||Sx(hx)>3?"":" "}function Ox(e,t){for(;--t&&yx()&&!(hx<48||hx>102||hx>57&&hx<65||hx>70&&hx<97););return wx(e,xx()+(t<6&&32==bx()&&32==yx()))}function Px(e){for(;yx();)switch(hx){case e:return px;case 34:case 39:34!==e&&39!==e&&Px(hx);break;case 40:41===e&&Px(e);break;case 92:yx()}return px}function jx(e,t){for(;yx()&&e+hx!==57&&(e+hx!==84||47!==bx()););return"/*"+wx(t,px-1)+"*"+Xb(47===e?e:yx())}function Tx(e){for(;!Sx(bx());)yx();return wx(e,px)}function Mx(e){return Ex(Dx("",null,null,null,[""],e=kx(e),0,[0],e))}function Dx(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,f=a,d=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,w=i,S=r,k=b;g;)switch(h=y,y=yx()){case 40:if(108!=h&&58==ox(k,f-1)){-1!=rx(k+=nx(_x(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=_x(y);break;case 9:case 10:case 13:case 32:k+=Cx(h);break;case 92:k+=Ox(xx()-1,7);continue;case 47:switch(bx()){case 42:case 47:sx(Ax(jx(yx(),xx()),t,n),s);break;default:k+="/"}break;case 123*m:l[u++]=ax(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:p>0&&ax(k)-f&&sx(p>32?Nx(k+";",r,n,f-1):Nx(nx(k," ","")+";",r,n,f-2),s);break;case 59:k+=";";default:if(sx(S=Rx(k,t,n,u,c,o,l,b,x=[],w=[],f),i),123===y)if(0===c)Dx(k,t,S,S,x,i,f,l,w);else switch(99===d&&110===ox(k,3)?100:d){case 100:case 109:case 115:Dx(e,S,S,r&&sx(Rx(e,S,S,0,0,o,l,b,o,x=[],f),w),o,w,f,l,r?x:w);break;default:Dx(k,S,S,S,[""],w,0,l,w)}}u=c=p=0,m=v=1,b=k="",f=a;break;case 58:f=1+ax(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(hx=px>0?ox(mx,--px):0,fx--,10===hx&&(fx=1,cx--),hx))continue;switch(k+=Xb(y),y*m){case 38:v=c>0?1:(k+="\f",-1);break;case 44:l[u++]=(ax(k)-1)*v,v=1;break;case 64:45===bx()&&(k+=_x(yx())),d=bx(),c=f=ax(b=k+=Tx(xx())),y++;break;case 45:45===h&&2==ax(k)&&(m=0)}}return i}function Rx(e,t,n,r,o,i,a,l,s,u,c){for(var f=o-1,d=0===o?i:[""],p=lx(d),h=0,m=0,g=0;h<r;++h)for(var v=0,y=ix(e,f+1,f=Jb(m=a[h])),b=e;v<p;++v)(b=ex(m>0?d[v]+" "+y:nx(y,/&\f/g,d[v])))&&(s[g++]=b);return gx(e,t,n,0===o?qb:l,s,u,c)}function Ax(e,t,n){return gx(e,t,n,Wb,Xb(hx),ix(e,2,-2),0)}function Nx(e,t,n,r){return gx(e,t,n,Yb,ix(e,0,r),ix(e,r+1,-1),r)}function Ix(e,t){for(var n="",r=lx(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Lx(e,t,n,r){switch(e.type){case"@import":case Yb:return e.return=e.return||e.value;case Wb:return"";case Gb:return e.return=e.value+"{"+Ix(e.children,r)+"}";case qb:e.value=e.props.join(",")}return ax(n=Ix(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fx(e){var t=lx(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}var zx=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},Bx=function(e,t,n){for(var r=0,o=0;r=o,o=bx(),38===r&&12===o&&(t[n]=1),!Sx(o);)yx();return wx(e,px)},Kx=function(e,t){return Ex(function(e,t){var n=-1,r=44;do{switch(Sx(r)){case 0:38===r&&12===bx()&&(t[n]=1),e[n]+=Bx(px-1,t,n);break;case 2:e[n]+=_x(r);break;case 4:if(44===r){e[++n]=58===bx()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Xb(r)}}while(r=yx());return e}(kx(e),t))},Ux=new WeakMap,Vx=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ux.get(n))&&!r){Ux.set(e,!0);for(var o=[],i=Kx(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},Hx=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function $x(e,t){switch(Zb(e,t)){case 5103:return $b+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $b+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $b+e+Hb+e+Vb+e+e;case 6828:case 4268:return $b+e+Vb+e+e;case 6165:return $b+e+Vb+"flex-"+e+e;case 5187:return $b+e+nx(e,/(\w+).+(:[^]+)/,$b+"box-$1$2"+Vb+"flex-$1$2")+e;case 5443:return $b+e+Vb+"flex-item-"+nx(e,/flex-|-self/,"")+e;case 4675:return $b+e+Vb+"flex-line-pack"+nx(e,/align-content|flex-|-self/,"")+e;case 5548:return $b+e+Vb+nx(e,"shrink","negative")+e;case 5292:return $b+e+Vb+nx(e,"basis","preferred-size")+e;case 6060:return $b+"box-"+nx(e,"-grow","")+$b+e+Vb+nx(e,"grow","positive")+e;case 4554:return $b+nx(e,/([^-])(transform)/g,"$1"+$b+"$2")+e;case 6187:return nx(nx(nx(e,/(zoom-|grab)/,$b+"$1"),/(image-set)/,$b+"$1"),e,"")+e;case 5495:case 3959:return nx(e,/(image-set\([^]*)/,$b+"$1$`$1");case 4968:return nx(nx(e,/(.+:)(flex-)?(.*)/,$b+"box-pack:$3"+Vb+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$b+e+e;case 4095:case 3583:case 4068:case 2532:return nx(e,/(.+)-inline(.+)/,$b+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ax(e)-1-t>6)switch(ox(e,t+1)){case 109:if(45!==ox(e,t+4))break;case 102:return nx(e,/(.+:)(.+)-([^]+)/,"$1"+$b+"$2-$3$1"+Hb+(108==ox(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rx(e,"stretch")?$x(nx(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ox(e,t+1))break;case 6444:switch(ox(e,ax(e)-3-(~rx(e,"!important")&&10))){case 107:return nx(e,":",":"+$b)+e;case 101:return nx(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$b+(45===ox(e,14)?"inline-":"")+"box$3$1"+$b+"$2$3$1"+Vb+"$2box$3")+e}break;case 5936:switch(ox(e,t+11)){case 114:return $b+e+Vb+nx(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $b+e+Vb+nx(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $b+e+Vb+nx(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $b+e+Vb+e+e}return e}var Wx=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Yb:e.return=$x(e.value,e.length);break;case Gb:return Ix([vx(e,{value:nx(e.value,"@","@"+$b)})],r);case qb:if(e.length)return ux(e.props,(function(t){switch(tx(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ix([vx(e,{props:[nx(t,/:(read-\w+)/,":"+Hb+"$1")]})],r);case"::placeholder":return Ix([vx(e,{props:[nx(t,/:(plac\w+)/,":"+$b+"input-$1")]}),vx(e,{props:[nx(t,/:(plac\w+)/,":"+Hb+"$1")]}),vx(e,{props:[nx(t,/:(plac\w+)/,Vb+"input-$1")]})],r)}return""}))}}],qx=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Wx,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var s,u,c=[Lx,(u=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=Fx([Vx,Hx].concat(i,c));o=function(e,t,n,r){s=n,Ix(Mx(e?e+"{"+t.styles+"}":t.styles),f),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new Ub({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return d.sheet.hydrate(l),d},Yx=(c=i("fYo6y"),{});Yx=i("hjjwd");var Gx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Jx={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qx={};function Zx(e){return Yx.isMemo(e)?Xx:Qx[e.$$typeof]||Gx}Qx[Yx.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qx[Yx.Memo]=Xx;var ew=Object.defineProperty,tw=Object.getOwnPropertyNames,nw=Object.getOwnPropertySymbols,rw=Object.getOwnPropertyDescriptor,ow=Object.getPrototypeOf,iw=Object.prototype;function aw(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var lw=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},sw=function(e,t,n){lw(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};var uw=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},cw={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fw=/[A-Z]|^ms/g,dw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pw=function(e){return 45===e.charCodeAt(1)},hw=function(e){return null!=e&&"boolean"!=typeof e},mw=zx((function(e){return pw(e)?e:e.replace(fw,"-$&").toLowerCase()})),gw=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dw,(function(e,t,n){return yw={name:t,styles:n,next:yw},t}))}return 1===cw[e]||pw(e)||"number"!=typeof t||0===t?t:t+"px"};function vw(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return yw={name:n.name,styles:n.styles,next:yw},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)yw={name:r.name,styles:r.styles,next:yw},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=vw(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":hw(a)&&(r+=mw(i)+":"+gw(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=vw(e,t,a);switch(i){case"animation":case"animationName":r+=mw(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)hw(a[s])&&(r+=mw(i)+":"+gw(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=yw,i=n(e);return yw=o,vw(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var yw,bw=/label:\s*([^\s;\n{]+)\s*(;|$)/g,xw=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";yw=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=vw(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=vw(n,t,e[a]),r&&(o+=i[a]);bw.lastIndex=0;for(var l,s="";null!==(l=bw.exec(o));)s+="-"+l[1];return{name:uw(o)+s,styles:o,next:yw}},ww=(c=i("fYo6y"),!!(c=i("fYo6y")).useInsertionEffect&&c.useInsertionEffect),Sw=ww||function(e){return e()},kw=(ww||c.useLayoutEffect,{}.hasOwnProperty),Ew=(0,c.createContext)("undefined"!=typeof HTMLElement?qx({key:"css"}):null),_w=(Ew.Provider,function(e){return(0,c.forwardRef)((function(t,n){var r=(0,c.useContext)(Ew);return e(t,r,n)}))}),Cw=(0,c.createContext)({});var Ow="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pw=function(e,t){var n={};for(var r in t)kw.call(t,r)&&(n[r]=t[r]);return n[Ow]=e,n},jw=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;lw(t,n,r);Sw((function(){return sw(t,n,r)}));return null},Tw=_w((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ow],i=[r],a="";"string"==typeof e.className?a=aw(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=xw(i,void 0,(0,c.useContext)(Cw));a+=t.key+"-"+l.name;var s={};for(var u in e)kw.call(e,u)&&"css"!==u&&u!==Ow&&(s[u]=e[u]);return s.ref=n,s.className=a,(0,c.createElement)(c.Fragment,null,(0,c.createElement)(jw,{cache:t,serialized:l,isStringTag:"string"==typeof o}),(0,c.createElement)(o,s))})),Mw={};function Dw(){return Mw=Dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mw.__esModule=!0,Mw.default=Mw,Dw.apply(this,arguments)}(Mw=Dw).__esModule=!0,Mw.default=Mw;var Rw=function(e,t){var n=arguments;if(null==t||!kw.call(t,"css"))return c.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Tw,o[1]=Pw(e,t);for(var i=2;i<r;i++)o[i]=n[i];return c.createElement.apply(null,o)};function Aw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xw(t)}function Nw(e){if(Array.isArray(e))return e}function Iw(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function Lw(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fw(e,t){return Nw(e)||Iw(e,t)||zb(e,t)||Lw()}function zw(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Bw(e,t){if(null==e)return{};var n,r,o=zw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}c=i("fYo6y");function Kw(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;function Uw(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Vw(e){return Uw(e).getComputedStyle(e)}function Hw(e){return e instanceof Uw(e).Node}function $w(e){return Hw(e)?(e.nodeName||"").toLowerCase():""}let Ww;function qw(){if(Ww)return Ww;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ww=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),Ww):navigator.userAgent}function Yw(e){return e instanceof Uw(e).HTMLElement}function Gw(e){return e instanceof Uw(e).Element}function Jw(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof Uw(e).ShadowRoot||e instanceof ShadowRoot}function Xw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Vw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Qw(){return/^((?!chrome|android).)*safari/i.test(qw())}function Zw(e){return["html","body","#document"].includes($w(e))}Math.min,Math.max;const eS=Math.round;function tS(e){const t=Vw(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=Yw(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=eS(n)!==i||eS(r)!==a;return l&&(n=i,r=a),{width:n,height:r,fallback:l}}function nS(e){return Gw(e)?e:e.contextElement}const rS={x:1,y:1};function oS(e){const t=nS(e);if(!Yw(t))return rS;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=tS(t);let a=(i?eS(n.width):n.width)/r,l=(i?eS(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function iS(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),l=nS(e);let s=rS;t&&(r?Gw(r)&&(s=oS(r)):s=oS(e));const u=l?Uw(l):window,c=Qw()&&n;let f=(a.left+(c&&(null==(o=u.visualViewport)?void 0:o.offsetLeft)||0))/s.x,d=(a.top+(c&&(null==(i=u.visualViewport)?void 0:i.offsetTop)||0))/s.y,p=a.width/s.x,h=a.height/s.y;if(l){const e=Uw(l),t=r&&Gw(r)?Uw(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=oS(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,f*=e.x,d*=e.y,p*=e.x,h*=e.y,f+=t.x,d+=t.y,n=Uw(n).frameElement}}return Kw({width:p,height:h,x:f,y:d})}function aS(e){return((Hw(e)?e.ownerDocument:e.document)||window.document).documentElement}function lS(e){if("html"===$w(e))return e;const t=e.assignedSlot||e.parentNode||Jw(e)&&e.host||aS(e);return Jw(t)?t.host:t}function sS(e){const t=lS(e);return Zw(t)?t.ownerDocument.body:Yw(t)&&Xw(t)?t:sS(t)}function uS(e,t){var n;void 0===t&&(t=[]);const r=sS(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Uw(r);return o?t.concat(i,i.visualViewport||[],Xw(r)?r:[]):t.concat(r,uS(r))}function cS(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:l=!1}=r,s=o&&!l,u=s||i?[...Gw(e)?uS(e):e.contextElement?uS(e.contextElement):[],...uS(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let c,f=null;a&&(f=new ResizeObserver((()=>{n()})),Gw(e)&&!l&&f.observe(e),Gw(e)||!e.contextElement||l||f.observe(e.contextElement),f.observe(t));let d=l?iS(e):null;return l&&function t(){const r=iS(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||n();d=r,c=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(c)}}var fS=(c=i("fYo6y")).useLayoutEffect,dS=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],pS=function(){};function hS(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function mS(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(hS(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var gS=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===wb(e)&&null!==e?[e]:[];var t},vS=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Cb({},Bw(e,dS))},yS=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function bS(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function xS(e){return bS(e)?window.pageYOffset:e.scrollTop}function wS(e,t){bS(e)?window.scrollTo(0,t):e.scrollTop=t}function SS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pS,o=xS(e),i=t-o,a=0;!function t(){var l,s=i*((l=(l=a+=10)/n-1)*l*l+1)+o;wS(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function kS(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?wS(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&wS(e,Math.max(t.offsetTop-o,0))}function ES(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var _S=!1,CS={get passive(){return _S=!0}},OS="undefined"!=typeof window?window:{};OS.addEventListener&&OS.removeEventListener&&(OS.addEventListener("p",pS,CS),OS.removeEventListener("p",pS,!1));var PS=_S;function jS(e){return null!=e}function TS(e,t,n){return e?t:n}var MS=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter((function(e){var t=Fw(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=Fw(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})};function DS(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,f=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,h=d.height,m=d.top,g=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:bS(c=s)?window.innerHeight:c.clientHeight,y=xS(s),b=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),w=g-x,S=v-m,k=w+y,E=f-y-m,_=p-v+y+b,C=y+m-x,O=160;switch(o){case"auto":case"bottom":if(S>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&SS(s,_,O),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&S>=r)return i&&SS(s,_,O),{placement:"bottom",maxHeight:a?S-b:E-b};if("auto"===o||a){var P=t,j=a?w:k;return j>=r&&(P=Math.min(j-b-l,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&wS(s,_),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&SS(s,C,O),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&w>=r){var T=t;return(!a&&k>=r||a&&w>=r)&&(T=a?w-x:k-x),i&&SS(s,C,O),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var RS=function(e){return"auto"===e?"bottom":e},AS=(0,c.createContext)(null),NS=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,s=((0,c.useContext)(AS)||{}).setPortalPlacement,u=(0,c.useRef)(null),f=Fw((0,c.useState)(r),2),d=f[0],p=f[1],h=Fw((0,c.useState)(null),2),m=h[0],g=h[1],v=l.spacing.controlHeight;return fS((function(){var e=u.current;if(e){var t="fixed"===i,l=DS({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});p(l.maxHeight),g(l.placement),null==s||s(l.placement)}}),[r,o,i,a,n,s,v]),t({ref:u,placerProps:Cb(Cb({},e),{},{placement:m||RS(o),maxHeight:d})})},IS=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Cb({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},LS=IS,FS=IS,zS=function(e){var t=e.children,n=e.innerProps;return Rw("div",$s({},yS(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};zS.defaultProps={children:"No options"};var BS=function(e){var t=e.children,n=e.innerProps;return Rw("div",$s({},yS(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};BS.defaultProps={children:"Loading..."};var KS,US=["size"];var VS,HS,$S={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},WS=function(e){var t=e.size,n=Bw(e,US);return Rw("svg",$s({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:$S},n))},qS=function(e){return Rw(WS,$s({size:20},e),Rw("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"}))},YS=function(e){return Rw(WS,$s({size:20},e),Rw("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"}))},GS=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Cb({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},JS=GS,XS=GS,QS=function(){var e=Aw.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(KS||(VS=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],HS||(HS=VS.slice(0)),KS=Object.freeze(Object.defineProperties(VS,{raw:{value:Object.freeze(HS)}})))),ZS=function(e){var t=e.delay,n=e.offset;return Rw("span",{css:Aw({animation:"".concat(QS," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ek=function(e){var t=e.innerProps,n=e.isRtl;return Rw("div",$s({},yS(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Rw(ZS,{delay:0,offset:n}),Rw(ZS,{delay:160,offset:!0}),Rw(ZS,{delay:320,offset:!n}))};ek.defaultProps={size:4};var tk=["data"],nk=["innerRef","isDisabled","isHidden","inputClassName"],rk={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ok={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Cb({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},rk)},ik=function(e){return Cb({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},rk)},ak=function(e){var t=e.children,n=e.innerProps;return Rw("div",n,t)};var lk={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Rw("div",$s({},yS(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Rw(qS,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Rw("div",$s({ref:o},yS(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Rw("div",$s({},yS(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Rw(YS,null))},DownChevron:YS,CrossIcon:qS,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,u=e.theme,c=e.selectProps;return Rw("div",$s({},yS(e,"group",{group:!0}),l),Rw(i,$s({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),s),Rw("div",null,t))},GroupHeading:function(e){var t=vS(e);t.data;var n=Bw(t,tk);return Rw("div",$s({},yS(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Rw("div",$s({},yS(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Rw("span",$s({},t,yS(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=vS(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=Bw(r,nk);return Rw("div",$s({},yS(e,"input",{"input-container":!0}),{"data-value":n||""}),Rw("input",$s({className:t({input:!0},l),ref:o,style:ik(a),disabled:i},s)))},LoadingIndicator:ek,Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Rw("div",$s({},yS(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Rw("div",$s({},yS(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,l=(0,c.useRef)(null),u=(0,c.useRef)(null),f=Fw((0,c.useState)(RS(i)),2),d=f[0],p=f[1],h=(0,c.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=Fw((0,c.useState)(null),2),g=m[0],v=m[1],y=(0,c.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[d]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||v({offset:n,rect:e})}}),[r,a,d,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);fS((function(){y()}),[y]);var b=(0,c.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),r&&l.current&&(u.current=cS(r,l.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);fS((function(){b()}),[b]);var x=(0,c.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==a||!g)return null;var w=Rw("div",$s({ref:x},yS(Cb(Cb({},e),{},{offset:g.offset,position:a,rect:g.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Rw(AS.Provider,{value:h},t?(0,s.createPortal)(w,t):w)},LoadingMessage:BS,NoOptionsMessage:zS,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,l=e.selectProps,s=n.Container,u=n.Label,c=n.Remove;return Rw(s,{data:r,innerProps:Cb(Cb({},yS(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},Rw(u,{data:r,innerProps:Cb({},yS(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Rw(c,{data:r,innerProps:Cb(Cb({},yS(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:ak,MultiValueLabel:ak,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Rw("div",$s({role:"button"},n),t||Rw(qS,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Rw("div",$s({},yS(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Rw("div",$s({},yS(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Rw("div",$s({},yS(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Rw("div",$s({},yS(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Rw("div",$s({},yS(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},sk=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function uk(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||sk(r)&&sk(o)))return!1;var r,o;return!0}for(var ck={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},fk=function(e){return Rw("span",$s({css:ck},e))},dk={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,l=e.isDisabled,s=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t){var c=l?" disabled":"",f="".concat(s?"selected":"focused").concat(c);return"option ".concat(i," ").concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},pk=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,l=e.selectProps,s=e.id,u=l.ariaLiveMessages,f=l.getOptionLabel,d=l.inputValue,p=l.isMulti,h=l.isOptionDisabled,m=l.isSearchable,g=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,b=l.tabSelectsValue,x=l["aria-label"],w=l["aria-live"],S=(0,c.useMemo)((function(){return Cb(Cb({},dk),u||{})}),[u]),k=(0,c.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,l=t.removedValues,s=t.value,u=i||r||(e=s,Array.isArray(e)?null:e),c=u?f(u):"",d=o||l||void 0,p=d?d.map(f):[],m=Cb({isDisabled:u&&h(u,a),label:c,labels:p},t);n=S.onChange(m)}return n}),[t,S,h,a,f]),E=(0,c.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var l={focused:t,label:f(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a};e=S.onFocus(l)}return e}),[n,r,f,h,S,o,a]),_=(0,c.useMemo)((function(){var e="";if(g&&v.length&&S.onFilter){var t=y({count:o.length});e=S.onFilter({inputValue:d,resultsMessage:t})}return e}),[o,d,g,S,v,y]),C=(0,c.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&h(n,a),isMulti:p,isSearchable:m,tabSelectsValue:b})}return e}),[x,n,r,p,h,m,g,S,a,b]),O="".concat(E," ").concat(_," ").concat(C),P=Rw(c.Fragment,null,Rw("span",{id:"aria-selection"},k),Rw("span",{id:"aria-context"},O)),j="initial-input-focus"===(null==t?void 0:t.action);return Rw(c.Fragment,null,Rw(fk,{id:s},j&&P),Rw(fk,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},i&&!j&&P))},hk=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],mk=new RegExp("["+hk.map((function(e){return e.letters})).join("")+"]","g"),gk={},vk=0;vk<hk.length;vk++)for(var yk=hk[vk],bk=0;bk<yk.letters.length;bk++)gk[yk.letters[bk]]=yk.base;var xk=function(e){return e.replace(mk,(function(e){return gk[e]}))},wk=function(e,t){void 0===t&&(t=uk);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(xk),Sk=function(e){return e.replace(/^\s+|\s+$/g,"")},kk=function(e){return"".concat(e.label," ").concat(e.value)},Ek=["innerRef"];function _k(e){var t=e.innerRef,n=Bw(e,Ek),r=MS(n,"onExited","in","enter","exit","appear");return Rw("input",$s({ref:t},r,{css:Aw({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 Ck=function(e){e.preventDefault(),e.stopPropagation()};var Ok=["boxSizing","height","overflow","paddingRight","position"],Pk={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function jk(e){e.preventDefault()}function Tk(e){e.stopPropagation()}function Mk(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Dk(){return"ontouchstart"in window||navigator.maxTouchPoints}var Rk=!("undefined"==typeof window||!window.document||!window.document.createElement),Ak=0,Nk={capture:!1,passive:!1};var Ik=function(){return document.activeElement&&document.activeElement.blur()},Lk={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Fk(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,c.useRef)(!1),l=(0,c.useRef)(!1),s=(0,c.useRef)(0),u=(0,c.useRef)(null),f=(0,c.useCallback)((function(e,t){if(null!==u.current){var s=u.current,c=s.scrollTop,f=s.scrollHeight,d=s.clientHeight,p=u.current,h=t>0,m=f-d-c,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&l.current&&(i&&i(e),l.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=f,g=!0,a.current=!0):!h&&-t>c&&(o&&!l.current&&o(e),p.scrollTop=0,g=!0,l.current=!0),g&&Ck(e)}}),[n,r,o,i]),d=(0,c.useCallback)((function(e){f(e,e.deltaY)}),[f]),p=(0,c.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),h=(0,c.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;f(e,t)}),[f]),m=(0,c.useCallback)((function(e){if(e){var t=!!PS&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,d]),g=(0,c.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,d]);return(0,c.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,c.useRef)({}),i=(0,c.useRef)(null),a=(0,c.useCallback)((function(e){if(Rk){var t=document.body,n=t&&t.style;if(r&&Ok.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ak<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+i||0;Object.keys(Pk).forEach((function(e){var t=Pk[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Dk()&&(t.addEventListener("touchmove",jk,Nk),e&&(e.addEventListener("touchstart",Mk,Nk),e.addEventListener("touchmove",Tk,Nk))),Ak+=1}}),[r]),l=(0,c.useCallback)((function(e){if(Rk){var t=document.body,n=t&&t.style;Ak=Math.max(Ak-1,0),r&&Ak<1&&Ok.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Dk()&&(t.removeEventListener("touchmove",jk,Nk),e&&(e.removeEventListener("touchstart",Mk,Nk),e.removeEventListener("touchmove",Tk,Nk)))}}),[r]);return(0,c.useEffect)((function(){if(t){var e=i.current;return a(e),function(){l(e)}}}),[t,a,l]),function(e){i.current=e}}({isEnabled:n});return Rw(c.Fragment,null,n&&Rw("div",{onClick:Ik,css:Lk}),t((function(e){o(e),i(e)})))}var zk={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Bk=function(e){var t=e.name,n=e.onFocus;return Rw("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:zk,value:"",onChange:function(){}})},Kk=function(e){return e.label},Uk=function(e){return e.value},Vk={clearIndicator:XS,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Cb({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:JS,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Cb({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Cb({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Cb(Cb({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ok),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Cb({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:FS,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,l=o.colors;return Cb((Eb(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Eb(n,"position","absolute"),Eb(n,"width","100%"),Eb(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Cb({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Cb({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Cb({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Cb({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:LS,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,l=i.colors;return Cb({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Cb({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Cb({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Cb({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Hk,$k={borderRadius:4,colors:{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%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Wk={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ES(),captureMenuScroll:!ES(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Cb({ignoreCase:!0,ignoreAccents:!0,stringify:kk,trim:!0,matchFrom:"any"},Hk),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,l=n.matchFrom,s=a?Sk(t):t,u=a?Sk(i(e)):i(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=wk(s),u=xk(u)),"start"===l?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:Kk,getOptionValue:Uk,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function qk(e,t,n,r){return{type:"option",data:t,isDisabled:Zk(e,t,n),isSelected:eE(e,t,n),label:Xk(e,t),value:Qk(e,t),index:r}}function Yk(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return qk(e,n,t,r)})).filter((function(t){return Jk(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=qk(e,n,t,r);return Jk(e,i)?i:void 0})).filter(jS)}function Gk(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Kb(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Jk(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!nE(e)||!i)&&tE(e,{label:a,value:l,data:o},r)}var Xk=function(e,t){return e.getOptionLabel(t)},Qk=function(e,t){return e.getOptionValue(t)};function Zk(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function eE(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Qk(e,t);return n.some((function(t){return Qk(e,t)===r}))}function tE(e,t,n){return!e.filterOption||e.filterOption(t,n)}var nE=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},rE=1,oE=function(e){Tb(i,(0,c.Component));var t,n,r,o=Nb(i);function i(e){var t;if(Ob(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,l=o&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(l){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(Kb(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=TS(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(TS(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=TS(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return mS.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Xk(t.props,e)},t.getOptionValue=function(e){return Qk(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Vk[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Cb(Cb({},lk),e.components);var e},t.buildCategorizedOptions=function(){return Yk(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Gk(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Cb({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&bS(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return nE(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,l=n.isClearable,s=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,f=n.tabSelectsValue,d=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!f||!h||d&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):l&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++rE),t.state.selectValue=gS(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=i,n=[{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&&kS(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(kS(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(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($k):Cb(Cb({},$k),this.props.theme):$k}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,l=this.props,s=l.isMulti,u=l.isRtl,c=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:c,selectOption:i,selectProps:l,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Zk(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return eE(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tE(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{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 e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,l=e.menuIsOpen,s=e.required,u=this.getComponents().Input,f=this.state,d=f.inputIsHidden,p=f.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=Cb(Cb(Cb({"aria-autocomplete":"list","aria-expanded":l,"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":s,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?c.createElement(u,$s({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},g)):c.createElement(_k,$s({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:pS,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,s=this.commonProps,u=this.props,f=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!f)return h?null:c.createElement(l,$s({},s,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return v.map((function(t,a){var l=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return c.createElement(n,$s({},s,{components:{Container:r,Label:o,Remove:i},isFocused:l,isDisabled:d,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var x=v[0];return c.createElement(a,$s({},s,{data:x,isDisabled:d}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,$s({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?c.createElement(e,$s({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return c.createElement(n,$s({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,$s({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,f=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,v=p.loadingMessage,y=p.minMenuHeight,b=p.maxMenuHeight,x=p.menuIsOpen,w=p.menuPlacement,S=p.menuPosition,k=p.menuPortalTarget,E=p.menuShouldBlockScroll,_=p.menuShouldScrollIntoView,C=p.noOptionsMessage,O=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!x)return null;var j,T=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,l=t.label,s=t.value,p=d===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1};return c.createElement(u,$s({},f,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:g,label:l,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,l="".concat(e.getElementId("group"),"-").concat(a),s="".concat(l,"-heading");return c.createElement(n,$s({},f,{key:l,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(g){var M=v({inputValue:m});if(null===M)return null;j=c.createElement(l,f,M)}else{var D=C({inputValue:m});if(null===D)return null;j=c.createElement(s,f,D)}var R={minMenuHeight:y,maxMenuHeight:b,menuPlacement:w,menuPosition:S,menuShouldScrollIntoView:_},A=c.createElement(NS,$s({},f,R),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,l=r.maxHeight;return c.createElement(o,$s({},f,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:g,placement:a}),c.createElement(Fk,{captureEnabled:h,onTopArrive:O,onBottomArrive:P,lockEnabled:E},(function(t){return c.createElement(i,$s({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:l,focusedOption:d}),j)})))}));return k||"fixed"===S?c.createElement(a,$s({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:w,menuPosition:S}),A):A}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,l=this.state.selectValue;if(a&&!this.hasValue()&&!r)return c.createElement(Bk,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var s=l.map((function(t){return e.getOptionValue(t)})).join(n);return c.createElement("input",{name:i,type:"hidden",value:s})}var u=l.length>0?l.map((function(t,n){return c.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):c.createElement("input",{name:i,type:"hidden",value:""});return c.createElement("div",null,u)}var f=l[0]?this.getOptionValue(l[0]):"";return c.createElement("input",{name:i,type:"hidden",value:f})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,l=this.getFocusableOptions();return c.createElement(pk,$s({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,l=i.id,s=i.isDisabled,u=i.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return c.createElement(r,$s({},d,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:f}),this.renderLiveRegion(),c.createElement(t,$s({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:f,menuIsOpen:u}),c.createElement(o,$s({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),c.createElement(n,$s({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,s=e.options,u=e.value,c=e.menuIsOpen,f=e.inputValue,d=e.isMulti,p=gS(u),h={};if(n&&(u!==n.value||s!==n.options||c!==n.menuIsOpen||f!==n.inputValue)){var m=c?function(e,t){return Gk(Yk(e,t))}(e,p):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,p):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:p,focusedOption:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},b=i,x=a&&l;return a&&!x&&(b={value:TS(d,p,p[0]||null),options:p,action:"initial-input-focus"},x=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(b=null),Cb(Cb(Cb({},h),y),{},{prevProps:e,ariaSelection:b,prevWasFocused:x})}}],n&&Pb(t.prototype,n),r&&Pb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}();oE.defaultProps=Wk;c=i("fYo6y");var iE=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];c=i("fYo6y");var aE=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],lE=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},sE={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return lE(e,t,r)}))||n.some((function(t){return lE(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function uE(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,o=void 0===r?"last":r,i=e.formatCreateLabel,a=void 0===i?sE.formatCreateLabel:i,l=e.isValidNewOption,s=void 0===l?sE.isValidNewOption:l,u=e.getNewOptionData,f=void 0===u?sE.getNewOptionData:u,d=e.onCreateOption,p=e.options,h=void 0===p?[]:p,m=e.onChange,g=Bw(e,aE),v=g.getOptionValue,y=void 0===v?Uk:v,b=g.getOptionLabel,x=void 0===b?Kk:b,w=g.inputValue,S=g.isLoading,k=g.isMulti,E=g.value,_=g.name,C=(0,c.useMemo)((function(){return s(w,gS(E),h,{getOptionValue:y,getOptionLabel:x})?f(w,a(w)):void 0}),[a,f,x,y,w,s,h,E]),O=(0,c.useMemo)((function(){return!n&&S||!C?h:"first"===o?[C].concat(Kb(h)):[].concat(Kb(h),[C])}),[n,o,S,C,h]),P=(0,c.useCallback)((function(e,t){if("select-option"!==t.action)return m(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==C)m(e,t);else if(d)d(w);else{var r=f(w,w),o={action:"create-option",name:_,option:r};m(TS(k,[].concat(Kb(gS(E)),[r]),r),o)}}),[f,w,k,_,C,d,m,E]);return Cb(Cb({},g),{},{options:O,onChange:P})}var cE={},fE={},dE={},pE={};function hE(e){return pE=hE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pE.__esModule=!0,pE.default=pE,hE(e)}(pE=hE).__esModule=!0,pE.default=pE;var mE=pE.default,gE={},vE=pE.default;function yE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(gE=function(e,t){if("object"!==vE(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}).__esModule=!0,gE.default=gE,(dE=function(e){var t=gE(e,"string");return"symbol"===mE(t)?t:String(t)}).__esModule=!0,dE.default=dE,(fE=function(e,t,n){return(t=dE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}).__esModule=!0,fE.default=fE,(cE=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yE(Object(n),!0).forEach((function(t){fE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}).__esModule=!0,cE.default=cE;var bE={};(bE=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}).__esModule=!0,bE.default=bE;var xE={};function wE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dE(r.key),r)}}(xE=function(e,t,n){return t&&wE(e.prototype,t),n&&wE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}).__esModule=!0,xE.default=xE;var SE={},kE={};function EE(e,t){return kE=EE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kE.__esModule=!0,kE.default=kE,EE(e,t)}(kE=EE).__esModule=!0,kE.default=kE,(SE=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kE(e,t)}).__esModule=!0,SE.default=SE;var _E={},CE={};function OE(e){return CE=OE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CE.__esModule=!0,CE.default=CE,OE(e)}(CE=OE).__esModule=!0,CE.default=CE;var PE={};(PE=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}).__esModule=!0,PE.default=PE;var jE={},TE=pE.default,ME={};(ME=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}).__esModule=!0,ME.default=ME,(jE=function(e,t){if(t&&("object"===TE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ME(e)}).__esModule=!0,jE.default=jE,(_E=function(e){var t=PE();return function(){var n,r=CE(e);if(t){var o=CE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jE(this,n)}}).__esModule=!0,_E.default=_E;var DE={},RE={},AE={};(AE=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}).__esModule=!0,AE.default=AE,(RE=function(e){if(Array.isArray(e))return AE(e)}).__esModule=!0,RE.default=RE;var NE={};(NE=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}).__esModule=!0,NE.default=NE;var IE={};(IE=function(e,t){if(e){if("string"==typeof e)return AE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AE(e,t):void 0}}).__esModule=!0,IE.default=IE;var LE={};(LE=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}).__esModule=!0,LE.default=LE,(DE=function(e){return RE(e)||NE(e)||IE(e)||LE()}).__esModule=!0,DE.default=DE;var FE={},zE={};(zE=function(e){if(Array.isArray(e))return e}).__esModule=!0,zE.default=zE;var BE={};(BE=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}).__esModule=!0,BE.default=BE;var KE={};(KE=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}).__esModule=!0,KE.default=KE,(FE=function(e,t){return zE(e)||BE(e,t)||IE(e,t)||KE()}).__esModule=!0,FE.default=FE;var UE={},VE={};(VE=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}).__esModule=!0,VE.default=VE,(UE=function(e,t){if(null==e)return{};var n,r,o=VE(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}).__esModule=!0,UE.default=UE;var HE={};HE=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},HE.__esModule=!0,HE.default=HE;var $E=(0,c.forwardRef)((function(e,t){var n,r,o,i,a,l,s,u,f,d,p,h,m,g,v,y,b,x,w,S,k,E,_,C,O,P,j,T,M,D,R,A=uE((r=(n=e).defaultInputValue,o=void 0===r?"":r,i=n.defaultMenuIsOpen,a=void 0!==i&&i,l=n.defaultValue,s=void 0===l?null:l,u=n.inputValue,f=n.menuIsOpen,d=n.onChange,p=n.onInputChange,h=n.onMenuClose,m=n.onMenuOpen,g=n.value,v=Bw(n,iE),y=Fw((0,c.useState)(void 0!==u?u:o),2),b=y[0],x=y[1],w=Fw((0,c.useState)(void 0!==f?f:a),2),S=w[0],k=w[1],E=Fw((0,c.useState)(void 0!==g?g:s),2),_=E[0],C=E[1],O=(0,c.useCallback)((function(e,t){"function"==typeof d&&d(e,t),C(e)}),[d]),P=(0,c.useCallback)((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),x(void 0!==n?n:e)}),[p]),j=(0,c.useCallback)((function(){"function"==typeof m&&m(),k(!0)}),[m]),T=(0,c.useCallback)((function(){"function"==typeof h&&h(),k(!1)}),[h]),M=void 0!==u?u:b,D=void 0!==f?f:S,R=void 0!==g?g:_,Cb(Cb({},v),{},{inputValue:M,menuIsOpen:D,onChange:O,onInputChange:P,onMenuClose:T,onMenuOpen:j,value:R})));return c.createElement(oE,$s({ref:t},A))}));var WE=({maxOptions:e,tooltipContent:t,defaultOptions:n,disabled:r=!1,onValueChange:o})=>{const{isLg:i}=kv("lg"),a=n.map((e=>({label:e,value:e})));return(0,l.jsx)("div",{children:(0,l.jsxs)(Lh,{delayDuration:300,skipDelayDuration:150,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"cursor-default flow-root inline-block align-middle mb-1",children:(0,l.jsx)("p",{className:"text-sm font-normal float-left align-text-top",children:"Stop Sequences"})}),(0,l.jsx)("span",{className:"cursor-default flow-root inline-block align-middle mb-3",children:(0,l.jsx)("p",{className:"text-xs font-normal float-left align-text-top text-gray-400",children:"Enter sequence and press Tab"})}),(0,l.jsx)($E,{isDisabled:r,isMulti:!0,placeholder:"",noOptionsMessage:({inputValue:e})=>"Enter a sequence",formatCreateLabel:e=>`Add ${e}`,value:a,options:a,defaultValue:a,components:{DropdownIndicator:()=>null,IndicatorSeparator:()=>null},isValidNewOption:(t,n)=>!(t.length<1)&&(null==e||!(n.length>=e)),onChange:e=>{console.log(e);const t=e.map((e=>e.value));o&&o(t)}})]})}),(0,l.jsx)(zh,{side:i?"left":"bottom",children:t})]})})},qE={};Object.defineProperty(qE,"__esModule",{value:!0}),qE.jsonSchema=qE.fromString=qE.empty=qE.isUuid=qE.regex=qE.uuid=void 0;var YE={},GE=(cr=i("9Mq5w"),Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n}),JE=/%[sdj%]/g;YE.format=function(e){if(!u_(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(ZE(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(JE,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<o;a=r[++n])l_(a)||!d_(a)?i+=" "+a:i+=" "+ZE(a);return i},YE.deprecate=function(e,t){if(void 0!==cr&&!0===cr.noDeprecation)return e;if(void 0===cr)return function(){return YE.deprecate(e,t).apply(this,arguments)};var n=!1;return function(){if(!n){if(cr.throwDeprecation)throw new Error(t);cr.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}};var XE={},QE=/^$/;function ZE(e,t){var n={seen:[],stylize:t_};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),a_(t)?n.showHidden=t:t&&YE._extend(n,t),c_(n.showHidden)&&(n.showHidden=!1),c_(n.depth)&&(n.depth=2),c_(n.colors)&&(n.colors=!1),c_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=e_),n_(n,e,n.depth)}function e_(e,t){var n=ZE.styles[t];return n?"["+ZE.colors[n][0]+"m"+e+"["+ZE.colors[n][1]+"m":e}function t_(e,t){return e}function n_(e,t,n){if(e.customInspect&&t&&m_(t.inspect)&&t.inspect!==YE.inspect&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return u_(r)||(r=n_(e,r,n)),r}var o=function(e,t){if(c_(t))return e.stylize("undefined","undefined");if(u_(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(s_(t))return e.stylize(""+t,"number");if(a_(t))return e.stylize(""+t,"boolean");if(l_(t))return e.stylize("null","null")}(e,t);if(o)return o;var i=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),h_(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return r_(t);if(0===i.length){if(m_(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(f_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(p_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(h_(t))return r_(t)}var s,u="",c=!1,f=["{","}"];(i_(t)&&(c=!0,f=["[","]"]),m_(t))&&(u=" [Function"+(t.name?": "+t.name:"")+"]");return f_(t)&&(u=" "+RegExp.prototype.toString.call(t)),p_(t)&&(u=" "+Date.prototype.toUTCString.call(t)),h_(t)&&(u=" "+r_(t)),0!==i.length||c&&0!=t.length?n<0?f_(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),s=c?function(e,t,n,r,o){for(var i=[],a=0,l=t.length;a<l;++a)b_(t,String(a))?i.push(o_(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(o_(e,t,n,r,o,!0))})),i}(e,t,n,a,i):i.map((function(r){return o_(e,t,n,a,r,c)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(s,u,f)):f[0]+u+f[1]}function r_(e){return"["+Error.prototype.toString.call(e)+"]"}function o_(e,t,n,r,o,i){var a,l,s;if((s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?l=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),b_(r,o)||(a="["+o+"]"),l||(e.seen.indexOf(s.value)<0?(l=l_(n)?n_(e,s.value,null):n_(e,s.value,n-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map((function(e){return"  "+e})).join("\n").slice(2):"\n"+l.split("\n").map((function(e){return"   "+e})).join("\n")):l=e.stylize("[Circular]","special")),c_(a)){if(i&&o.match(/^\d+$/))return l;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+l}function i_(e){return Array.isArray(e)}function a_(e){return"boolean"==typeof e}function l_(e){return null===e}function s_(e){return"number"==typeof e}function u_(e){return"string"==typeof e}function c_(e){return void 0===e}function f_(e){return d_(e)&&"[object RegExp]"===g_(e)}function d_(e){return"object"==typeof e&&null!==e}function p_(e){return d_(e)&&"[object Date]"===g_(e)}function h_(e){return d_(e)&&("[object Error]"===g_(e)||e instanceof Error)}function m_(e){return"function"==typeof e}function g_(e){return Object.prototype.toString.call(e)}function v_(e){return e<10?"0"+e.toString(10):e.toString(10)}YE.debuglog=function(e){if(e=e.toUpperCase(),!XE[e])if(QE.test(e)){var t=cr.pid;XE[e]=function(){var n=YE.format.apply(YE,arguments);console.error("%s %d: %s",e,t,n)}}else XE[e]=function(){};return XE[e]},YE.inspect=ZE,ZE.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ZE.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},YE.types=i("aBLNt"),YE.isArray=i_,YE.isBoolean=a_,YE.isNull=l_,YE.isNullOrUndefined=function(e){return null==e},YE.isNumber=s_,YE.isString=u_,YE.isSymbol=function(e){return"symbol"==typeof e},YE.isUndefined=c_,YE.isRegExp=f_,YE.types.isRegExp=f_,YE.isObject=d_,YE.isDate=p_,YE.types.isDate=p_,YE.isError=h_,YE.types.isNativeError=h_,YE.isFunction=m_,YE.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},YE.isBuffer=i("90FXD");var y_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function b_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}YE.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[v_(e.getHours()),v_(e.getMinutes()),v_(e.getSeconds())].join(":"),[e.getDate(),y_[e.getMonth()],t].join(" ")),YE.format.apply(YE,arguments))},YE.inherits=i("6cuMU"),YE._extend=function(e,t){if(!t||!d_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var x_="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function w_(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}YE.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x_&&e[x_]){var t;if("function"!=typeof(t=e[x_]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x_,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),x_&&Object.defineProperty(t,x_,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,GE(e))},YE.promisify.custom=x_,YE.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return r.apply(o,arguments)};e.apply(this,t).then((function(e){cr.nextTick(i.bind(null,null,e))}),(function(e){cr.nextTick(w_.bind(null,e,i))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,GE(e)),t};var S_,k_=new Uint8Array(16);function E_(){if(!S_&&!(S_="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return S_(k_)}var __=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var C_=function(e){return"string"==typeof e&&__.test(e)},O_=[],P_=0;P_<256;++P_)O_.push((P_+256).toString(16).substr(1));var j_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(O_[e[t+0]]+O_[e[t+1]]+O_[e[t+2]]+O_[e[t+3]]+"-"+O_[e[t+4]]+O_[e[t+5]]+"-"+O_[e[t+6]]+O_[e[t+7]]+"-"+O_[e[t+8]]+O_[e[t+9]]+"-"+O_[e[t+10]]+O_[e[t+11]]+O_[e[t+12]]+O_[e[t+13]]+O_[e[t+14]]+O_[e[t+15]]).toLowerCase();if(!C_(n))throw TypeError("Stringified UUID is invalid");return n};var T_=function(e,t,n){var r=(e=e||{}).random||(e.rng||E_)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return j_(r)};var M_=function(e){if(!C_(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function D_(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function R_(e,t){return e<<t|e>>>32-t}var A_=function(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=M_(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var l=0;l<16;++l)o[i+l]=a[l];return o}return j_(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),l=new Array(a),s=0;s<a;++s){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];l[s]=u}l[a-1][14]=8*(e.length-1)/Math.pow(2,32),l[a-1][14]=Math.floor(l[a-1][14]),l[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=l[f][p];for(var h=16;h<80;++h)d[h]=R_(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],x=0;x<80;++x){var w=Math.floor(x/20),S=R_(m,5)+D_(w,g,v,y)+b+t[w]+d[x]>>>0;b=y,y=v,v=R_(g,30)>>>0,g=m,m=S}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var N_=function(e){if(!C_(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};const I_={v4:/(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u,v5:/(?:^[a-f0-9]{8}-[a-f0-9]{4}-5[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u};qE.regex=I_;const L_={v4:{type:"string",pattern:I_.v4.toString().slice(1,-2)},v5:{type:"string",pattern:I_.v5.toString().slice(1,-2)}};qE.jsonSchema=L_;const F_=(0,YE.deprecate)((()=>T_()),"uuidv4() is deprecated. Use v4() from the uuid module instead.");qE.uuid=F_;const z_=(0,YE.deprecate)((e=>C_(e)&&(4===N_(e)||5===N_(e))),"isUuid() is deprecated. Use validate() from the uuid module instead.");qE.isUuid=z_;const B_=(0,YE.deprecate)((()=>"00000000-0000-0000-0000-000000000000"),"empty() is deprecated. Use NIL from the uuid module instead.");qE.empty=B_;const K_=(0,YE.deprecate)(((e,t="bb5d0ffa-9a4c-4d7c-8fc2-0a7d2220ba45")=>A_(e,t)),"fromString() is deprecated. Use v5() from the uuid module instead.");qE.fromString=K_;const U_=nh("BarChart2",[["line",{x1:"18",y1:"20",x2:"18",y2:"10",key:"1e8c49"}],["line",{x1:"12",y1:"20",x2:"12",y2:"4",key:"65j799"}],["line",{x1:"6",y1:"20",x2:"6",y2:"14",key:"4svqks"}]]),V_=nh("Copy",[["rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",key:"1ma1o8"}],["path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",key:"pklvoz"}]]),H_=nh("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]),$_=nh("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",y1:"11",x2:"10",y2:"17",key:"m9v7hp"}],["line",{x1:"14",y1:"11",x2:"14",y2:"17",key:"23cpt9"}]]),W_={forefront:"Forefront","huggingface-local":"Hugging Face (Local)",huggingface:"Hugging Face","aleph-alpha":"Aleph Alpha",anthropic:"Anthropic",cohere:"co:here",openai:"OpenAI"};var q_=({showModelDropdown:e,showModelList:t})=>{const{isLg:r}=kv("lg"),{parametersContext:o,setParametersContext:i}=(0,c.useContext)(VO),{modelsContext:a,setModelsContext:s}=(0,c.useContext)($O),{modelsStateContext:u,setModelsStateContext:f}=(0,c.useContext)(UO),[d,p]=n(c).useState(""),h=u.filter((e=>e.selected)).length,m=u.filter((e=>e.enabled)).length,g=0===Object.keys(a).length?{}:u.filter((e=>e.enabled&&(!(h>=1)||e.selected))).map((e=>a[e.name].defaultParameters)).flatMap((e=>Object.entries(e).map((([e,t])=>({key:e,range:t.range}))))).reduce(((e,{key:t,range:n})=>(e[t]=e[t]||{range:[]},e[t].range=[...new Set([...e[t].range,...n])],e)),{}),v=e=>(0,l.jsxs)("div",{className:`relative select-none my-2 flex justify-center items-center rounded-md border border-slate-200 font-mono text-sm dark:border-slate-700 overflow-hidden ${e.selected?"bg-slate-200 dark:bg-slate-200":""} ${e.enabled?"cursor-pointer hover:bg-slate-200 dark:hover:bg-slate-200":""}`,children:[(0,l.jsxs)("div",{className:"pl-4 py-3 flex-1 overflow-hidden "+(e.enabled?"":"text-zinc-400"),onClick:t=>{e.enabled&&cl(e,u,f,o,i,t.ctrlKey||t.metaKey)},children:[e.name.split(":")[1],(0,l.jsx)("br",{}),(0,l.jsxs)("span",{style:{fontSize:"12px"},children:["Provider: ",(0,l.jsx)("i",{children:e.provider})]}),(0,l.jsx)("br",{})]}),(0,l.jsx)(V_,{size:10,className:"absolute top-2 right-2",onClick:()=>{const t=u.findIndex((t=>t.name===e.name)),n=e.name.split(":");f([...u.slice(0,t+1),{...e,is_clone:!0,tag:`${n[0]}:${n[1]}:${(0,qE.uuid)()}`},...u.slice(t+1)])}}),(0,l.jsx)(lv,{className:"mr-6",checked:e.enabled,onCheckedChange:t=>{f(u.map((n=>n.tag===e.tag?{...n,enabled:t,selected:!1}:n)))}},e.tag),e.is_clone?(0,l.jsx)($_,{size:10,className:"absolute bottom-2 right-2",onClick:()=>{f(u.filter((t=>t.tag!==e.tag)))}}):null]},`selected_${e.tag}`);return(0,l.jsxs)("div",{className:"flex flex-col max-h-[100%] pt-4 sm:pt-4 md:pt-[0px] lg:pt-[0px]",children:[(0,l.jsx)("div",{className:"mb-2",children:(()=>{if(!e)return(0,l.jsxs)("div",{className:"flex mb-2",children:[(0,l.jsx)("span",{className:"cursor-default flex-1 flow-root inline-block align-middle",children:(0,l.jsx)("p",{className:"text-sm font-medium float-left align-text-top",children:"Parameters"})}),(0,l.jsxs)(Lh,{delayDuration:300,skipDelayDuration:150,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsx)("div",{onClick:()=>{i({...o,showParametersTable:!o.showParametersTable})},className:"mx-1 cursor-pointer flex justify-center items-center w-[24px] h-[24px] rounded-full border-[1px] border-slate-200 select-none "+(o.showParametersTable?"text-white bg-slate-700":"hover:text-white hover:bg-slate-700 text-slate-600 bg-white"),children:(0,l.jsx)(U_,{size:18})})}),(0,l.jsx)(zh,{side:"bottom",children:(0,l.jsx)("p",{children:"Show Parameters for all models"})})]})]});const t=u.find((e=>e.selected));return(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"mb-2",children:[(0,l.jsx)("span",{className:"flow-root inline-block align-middle",children:(0,l.jsx)("p",{className:"text-sm font-medium float-left align-text-top",children:"Model"})}),(0,l.jsxs)(hb,{value:t?.name||null,onValueChange:e=>{f(u.map((t=>({...t,selected:t.name===e}))));const t=u.find((t=>t.name===e)).parameters;i({temperature:t.temperature||o.temperature,maximumLength:t.maximumLength||o.maximumLength,topP:t.topP||o.topP,topK:t.topK||o.topK,frequencyPenalty:t.frequencyPenalty||o.frequencyPenalty,presencePenalty:t.presencePenalty||o.presencePenalty,repetitionPenalty:t.repetitionPenalty||o.repetitionPenalty,stopSequences:t.stopSequences||o.stopSequences})},children:[(0,l.jsx)(vb,{className:"w-full",onKeyDown:e=>{"Enter"===e.code&&e.metaKey&&e.preventDefault()},children:(0,l.jsx)(gb,{placeholder:"Select a Model"})}),(0,l.jsx)(yb,{onKeyDown:e=>{"Enter"===e.code&&e.metaKey&&e.preventDefault()},children:Object.entries(W_).map((([e,t])=>(0,l.jsx)(mb,{children:Object.entries(a).filter((([t])=>t.split(":")[0]===e)).map((([e,n],r)=>{if(a[e])return(0,l.jsxs)("div",{children:[(0,l.jsx)(bb,{hidden:0!=r,children:t}),(0,l.jsx)(xb,{value:e,onKeyDown:e=>{"Enter"===e.code&&e.metaKey&&e.preventDefault()},children:e.split(":")[1]})]},e)}))},e)))})]})]})})})()}),(0,l.jsxs)("div",{className:"flex flex-col gap-y-3",children:[[{title:"Maximum Length",name:"maximumLength",type:"number",step:1,tooltipContent:(0,l.jsxs)("p",{children:["Maximum number of tokens to generate. ",(0,l.jsx)("br",{})," Responses are not guaranted to fill up ",(0,l.jsx)("br",{})," to the maximum desired length. ",(0,l.jsx)("br",{})]}),normalizeFn:e=>parseInt(e)},{title:"Temperature",name:"temperature",type:"number",step:.01,tooltipContent:(0,l.jsxs)("p",{children:["A non-negative float that tunes the degree ",(0,l.jsx)("br",{})," of randomness in generation. Lower ",(0,l.jsx)("br",{}),"temperatures mean less random generations.",(0,l.jsx)("br",{})]}),normalizeFn:e=>parseFloat(e)},{title:"Top P",name:"topP",type:"number",step:.01,tooltipContent:(0,l.jsxs)("p",{children:["If set to float less than 1, only the smallest ",(0,l.jsx)("br",{})," set of most probable tokens with probabilities ",(0,l.jsx)("br",{})," that add up to top_p or higher are kept for",(0,l.jsx)("br",{})," generation. ",(0,l.jsx)("br",{})]}),normalizeFn:e=>parseFloat(e)},{title:"Top K",name:"topK",type:"number",step:1,tooltipContent:(0,l.jsxs)("p",{children:["Can be used to reduce repetitiveness of ",(0,l.jsx)("br",{}),"generated tokens. The higher the value,",(0,l.jsx)("br",{})," the stronger a penalty is applied to",(0,l.jsx)("br",{}),"previously present tokens, proportional",(0,l.jsx)("br",{})," to how many times they have already",(0,l.jsx)("br",{})," appeared in the prompt or prior generation. ",(0,l.jsx)("br",{})]}),normalizeFn:e=>parseInt(e)},{title:"Frequency Penalty",name:"frequencyPenalty",type:"number",step:.01,tooltipContent:(0,l.jsxs)("p",{children:["Can be used to reduce repetitiveness of ",(0,l.jsx)("br",{}),"generated tokens. The higher the value,",(0,l.jsx)("br",{})," the stronger a penalty is applied to",(0,l.jsx)("br",{}),"previously present tokens, proportional",(0,l.jsx)("br",{})," to how many times they have already",(0,l.jsx)("br",{})," appeared in the prompt or prior generation."]}),normalizeFn:e=>parseFloat(e)},{title:"Presence Penalty",name:"presencePenalty",type:"number",step:.01,tooltipContent:(0,l.jsxs)("p",{children:["Can be used to reduce repetitiveness of ",(0,l.jsx)("br",{}),"generated tokens. Similar to Frequency Penalty,",(0,l.jsx)("br",{})," except that this penalty is applied equally ",(0,l.jsx)("br",{})," to all tokens that have already appeared,",(0,l.jsx)("br",{}),"regardless of their ",(0,l.jsx)("br",{})," exact frequencies. ",(0,l.jsx)("br",{})]}),normalizeFn:e=>parseFloat(e)},{title:"Repetition Penalty",name:"repetitionPenalty",type:"number",step:.01,tooltipContent:(0,l.jsxs)("p",{children:["Akin to presence penalty. The repetition penalty is meant ",(0,l.jsx)("br",{})," to avoid sentences that repeat themselves without ",(0,l.jsx)("br",{})," anything really interesting."," "]}),normalizeFn:e=>parseFloat(e)}].filter((e=>e.name in g)).map((e=>({...e,value:o[e.name],min:g[e.name].range[0],max:g[e.name].range[1],disabled:0===m||g[e.name].range.length>2}))).map((e=>(0,l.jsx)(iy,{title:e.title,type:e.type,defaultValue:e.value,disabled:e.disabled,onChangeValue:t=>{f(u.map((n=>(n.parameters[e.name]&&(0===h||n.selected)&&(n.parameters[e.name]=t),n)))),i({...o,[e.name]:t})},min:e.min,max:e.max,step:e.step,normalizeInputData:e.normalizeFn,tooltipContent:(0,l.jsxs)(l.Fragment,{children:[e.tooltipContent,0===m?(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:"Disabled:"})," no models have been enabled."]}):e.disabled?(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:"Disabled:"})," the range of values for this parameter",(0,l.jsx)("br",{})," ",(0,l.jsx)("b",{children:"is not"})," uniform across all models.",(0,l.jsx)("br",{}),(0,l.jsx)("b",{children:"Tip:"})," to edit similar models, tap the models on",(0,l.jsx)("br",{})," the list or select them by clicking their name",(0,l.jsx)("br",{})," above their respective editor."]}):null]})},e.name))),(0,l.jsx)(WE,{onValueChange:e=>{f(u.map((t=>(t.parameters.stopSequences&&(0===h||t.selected)&&(t.parameters.stopSequences=e),t)))),i({...o,stopSequences:e})},defaultOptions:o.stopSequences,tooltipContent:(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("p",{children:["Up to four sequences where the API will stop ",(0,l.jsx)("br",{})," generating further tokens. The returned text ",(0,l.jsx)("br",{}),"will not contain the stop sequence."]})})}),(()=>{const e=u.find((e=>e.selected));return e&&e.capabilities&&e.capabilities.includes("logprobs")?(0,l.jsxs)(Lh,{delayDuration:300,skipDelayDuration:150,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsxs)("div",{className:"cursor-default flex justify-between align-middle inline-block align-middle mb-1",children:[(0,l.jsx)("p",{className:"text-sm font-normal float-left align-text-top",children:"Show Probabilities"}),(0,l.jsx)(lv,{name:"show-probabilities",className:"float-right self-center",checked:o.showProbabilities,onCheckedChange:e=>{i({...o,showProbabilities:e})}})]})}),(0,l.jsx)(zh,{side:r?"left":"bottom",children:(0,l.jsxs)("p",{children:["When enabled hover over generated words ",(0,l.jsx)("br",{})," to see how likely a token was to be generated,",(0,l.jsx)("br",{})," if the model supports it."]})})]}):null})(),(0,l.jsxs)(Lh,{delayDuration:300,skipDelayDuration:150,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsxs)("div",{className:"cursor-default flex justify-between align-middle inline-block align-middle mb-1",children:[(0,l.jsx)("p",{className:"text-sm font-normal float-left align-text-top",children:"Highlight Models"}),(0,l.jsx)(lv,{name:"highlight-models",className:"float-right self-center",checked:o.highlightModels,onCheckedChange:e=>{i({...o,highlightModels:e})}})]})}),(0,l.jsx)(zh,{side:r?"left":"bottom",children:(0,l.jsx)("p",{children:"Disable model specific text highlights"})})]})]}),t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"my-2 flex cursor-default flex mb-1",children:[(0,l.jsx)("p",{className:"flex-1 text-sm font-normal float-left align-text-top",children:"Enable All"}),(0,l.jsx)(lv,{checked:o.selectAllModels,onCheckedChange:e=>{f(u.map((t=>(t.enabled=e,t.selected=!1,t)))),i({...o,selectAllModels:e})},className:"float-right"})]})}),(0,l.jsxs)("div",{className:"my-2 flex flex-row border-slate-300 border p-2 rounded",children:[(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(H_,{size:18})}),(0,l.jsx)("div",{className:"ml-2 flex-1 mr-2",children:(0,l.jsx)("input",{className:"outline-0 w-[100%]",value:d,onChange:e=>{p(e.target.value)},placeholder:"Model Name"})})]}),(0,l.jsx)("div",{children:(0,l.jsx)("ul",{children:u.filter((e=>!!e.tag&&(""===d||-1!==e.name.toLowerCase().indexOf(d.toLowerCase())))).map(v)})})]}):null]})};const Y_=()=>{const{historyContext:e,toggleShowHistory:t,clearHistory:n,selectHistoryItem:r}=(0,c.useContext)(HO);if(!e.show)return null;return(0,l.jsxs)("div",{className:"flex flex-col h-full relative overflow-auto",children:[(0,l.jsxs)("div",{className:"text-lg tracking-tight font-semibold text-slate-900 flex sticky top-[0] right-[0]",style:{justifyContent:"flex-end"},children:[(0,l.jsx)("div",{children:(0,l.jsxs)(Yp,{children:[(0,l.jsx)(Gp,{asChild:!0,children:(0,l.jsx)(dl,{type:"button",variant:"subtle",className:"inline-flex text-sm font-medium outline-0",onClick:e=>{setShowHistory((e=>!e))},disabled:0==history.length,children:"..."})}),(0,l.jsx)(Jp,{children:(0,l.jsxs)(Xp,{className:"outline-0 cursor-default min-w-[150px] bg-white rounded-md shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] will-change-[opacity,transform] data-[side=top]:animate-slideDownAndFade data-[side=right]:animate-slideLeftAndFade data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade z-10",sideOffset:5,children:[(0,l.jsx)(Qp,{className:"cursor-pointer outline-0 hover:bg-slate-200 text-sm p-2 text-center",onClick:()=>{(()=>{const t=document.createElement("a"),n=e.entries.map((e=>{const t=e.modelsState.find((({selected:e})=>e)),n=f.EditorState.createWithContent((0,f.convertFromRaw)(e.editor.internalState)).getCurrentContent().getPlainText();return{model:t.name,date:e.date,timestamp:e.timestamp,text:n,parameters:e.parameters}})),r=new Blob([JSON.stringify(n)],{type:"application/json"});t.href=URL.createObjectURL(r),t.download="history.json",document.body.appendChild(t),t.click()})()},children:"Download as JSON"}),(0,l.jsx)(Zp,{className:"h-[1px] bg-slate-200"}),(0,l.jsx)(Qp,{className:"cursor-pointer outline-0 hover:bg-slate-200 text-sm p-2 text-center",onClick:()=>{n()},children:"Clear History"}),(0,l.jsx)(eh,{className:"fill-white"})]})})]})}),(0,l.jsx)("div",{className:"cursor-pointer inline m-2 align-middle lg:inline align-middle mb-1",style:{height:20,width:20},children:(0,l.jsx)(ah,{size:20,onClick:e=>{t()}})})]}),(0,l.jsx)("div",{className:"overflow-y-auto max-h-[100%] mt-2",children:e.entries.reduce(((e,t)=>{let n=t.date;return e.includes(n)||e.push(n),e.sort(((e,t)=>new Date(t)-new Date(e)))}),[]).map(((t,n)=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-xs tracking-tight mb-4 mt-2 font-semibold uppercase text-slate-900",children:new Date(t).toLocaleDateString(["en-GB","en-us"],{weekday:"long",year:"numeric",month:"short",day:"numeric"})}),e.entries.filter((e=>e.date===t)).sort(((e,t)=>new Date(t.timestamp)-new Date(e.timestamp))).map(((t,o)=>{const i=e.current.timestamp===t.timestamp&&e.current.editor.prompt===t.editor.prompt;return(0,l.jsx)("div",{children:(0,l.jsxs)("div",{onClick:()=>{r(t)},className:"[&>div:nth-child(2)]:hover:w-[7px]\n                              [&>div:nth-child(2)]:hover:h-[7px]\n                              [&>div:nth-child(2)]:hover:left-[77px]\n                              [&>div:nth-child(2)]:hover:border-slate-800\n                              [&>div:nth-child(2)]:hover:border-2\n                              rounded-sm rounded-sm relative flex flex-row p-4 font-bold text-sm cursor-pointer click:bg-slate-300 dark:hover:bg-slate-200  "+(i?"bg-slate-200":"hover:bg-slate-100"),children:[(0,l.jsx)("div",{className:"bg-slate-300 w-[1px] absolute left-[80px] "+(0===n&&0===o?"h-[75%] top-[25%]":"h-[100%] top-[0]")}),(0,l.jsx)("div",{className:`ease-in duration-100 border rounded-full bg-white absolute top-[22px] ${i?"border-slate-800 w-[7px] h-[7px] border-2 left-[77px]":"border-slate-500 w-[5px] h-[5px] left-[78px] "}\n                              `}),(0,l.jsx)("div",{className:"text-xs pl-4 pr-10",children:0===n&&0===o?(0,l.jsx)("span",{style:{marginRight:6},children:"Now"}):new Date(t.timestamp).toTimeString().split(":").slice(0,2).join(":")}),(0,l.jsxs)("div",{className:"text-xs overflow-hidden ",children:[(0,l.jsx)("p",{className:"truncate tracking-wide",children:0===n&&0===o?"Current":t.editor.prompt}),(0,l.jsx)("div",{className:"mt font-medium",style:{whiteSpace:"nowrap",overflow:"hidden"},children:t.modelsState.find((({selected:e})=>e)).name})]})]})},t.timestamp)}))]},t)))})]})};class G_ extends n(c).Component{componentDidCatch(){const{resetEditorState:e}=this.props;e()}keyBindingFn(e){return"Enter"===e.code&&e.metaKey?"ignore_enter":e.metaKey&&66===e.keyCode||e.ctrlKey&&66===e.keyCode?"bold":(0,f.getDefaultKeyBinding)(e)}handleKeyCommand(e,t){const{setEditorState:n}=this.props;return"bold"===e?(n(f.RichUtils.toggleInlineStyle(t,"BOLD")),"handled"):"ignore_enter"===e?"handled":"not-handled"}render(){const{editorState:e,setEditorState:t}=this.props;return(0,l.jsx)(f.Editor,{keyBindingFn:this.keyBindingFn.bind(this),handleKeyCommand:this.handleKeyCommand.bind(this),customStyleMap:Ig,editorState:e,onChange:e=>{t(e)},stripPastedStyles:!0})}}const J_=({showDialog:e})=>{const{editorContext:t,setEditorContext:r}=(0,c.useContext)(KO),{parametersContext:o}=(0,c.useContext)(VO),{modelsStateContext:i}=(0,c.useContext)(UO),{historyContext:a,addHistoryEntry:s,toggleShowHistory:u}=(0,c.useContext)(HO),d=i.filter((({selected:e})=>e)).length,[p,h]=n(c).useState([]),[m,g]=n(c).useState([]),v=(0,c.useContext)(BO),y=(0,c.useRef)(null),b=navigator.platform.toUpperCase().indexOf("MAC")>=0,[x,w]=n(c).useState(0),[S,k]=n(c).useState(!1),E=n(c).useRef(null),{toast:_}=Ng(),C=(0,c.useRef)(o.showProbabilities),O=(0,c.useRef)(o.highlightModels);(0,c.useEffect)((()=>{C.current=o.showProbabilities,O.current=o.highlightModels})),n(c).useEffect((()=>()=>{r({...t,internalState:(0,f.convertToRaw)(I.current.getCurrentContent()),prompt:I.current.getCurrentContent().getPlainText()},!0)}),[]),(0,c.useEffect)((()=>{t.internalState&&N(f.EditorState.createWithContent((0,f.convertFromRaw)(t.internalState),R()))}),[t.internalState]);(0,c.useEffect)((()=>{const t=({event:t,data:n,meta:o})=>{switch(t){case"cancel":k(!1);break;case"close":o.error||s((0,f.convertToRaw)(I.current.getCurrentContent())),r({prompt:I.current.getCurrentContent().getPlainText(),internalState:(0,f.convertToRaw)(I.current.getCurrentContent())}),k(!1);break;case"completion":g(n[Object.keys(n)[0]]),w((e=>e+1));break;case"status":const{message:i}=n;0===i.indexOf("[ERROR] ")&&e({title:"Model Error",message:i.replace("[ERROR] ","")});break;case"error":switch(n){case"Too many pending requests":e({title:"Too many pending requests",message:"Please wait a few seconds before trying again."});break;case"Too many daily completions":e({title:"Daily limit reached",message:"It seems you've reached your daily limit of completions. Please try again tomorrow."});break;case"Unauthorized":e({title:"Unauthorized",message:"Please log in to use this feature."});break;default:console.log("default error handling?"),e({title:"Error",message:n})}break;default:console.log("Unknown event",t,n)}};return v.Inference.subscribeTextCompletion(t),()=>{v.Inference.unsubscribeTextCompletion(t)}}),[]);const P=async(e=!1,t="")=>(async(e=!1,t="")=>{const n=e?t:A.getCurrentContent().getPlainText();k(!0),r({prePrompt:n,previousInternalState:(0,f.convertToRaw)(A.getCurrentContent())});const o=v.Inference.textCompletionRequest({prompt:e?t:n,models:i.map((e=>{if(e.selected)return e})).filter(Boolean)});E.current=o})(e,t);bg(["Enter"],(e=>{P()}));const j=()=>{E.current&&E.current()};xg(["Escape"],(e=>{j()})),bg(["u"],(e=>{""!==t.prePrompt&&L()}));const T=e=>{e.preventDefault(),""!==t.prePrompt&&(L(),P(!0,t.prePrompt))};bg(["alt","r"],T),bg(["alt","®"],T);const M=e=>{const t=e.children,r=e.contentState.getEntity(e.entityKey).getData(),o=$g(r.modelProvider,O.current),i=r.topNDistribution,a=i?i.tokens:[],[s,u]=n(c).useState(!1);if(r.message===e.decoratedText){let c=(0,l.jsx)("span",{style:o,"data-offset-key":t[0].key,children:t},t[0].key);if(i&&null!=a[e.decoratedText]&&a[e.decoratedText].length>0){let f=Math.min(a[e.decoratedText][1]/i.simpleProbSum,1),d=n(Cg).scale(["#ff8886","ffff00","#96f29b"])(f),p=C.current?{backgroundColor:d,padding:"2px 0"}:o,h=(0,l.jsxs)("div",{className:"shadow-xl shadow-inner rounded-sm bg-white mb-2","data-container":"body",children:[(0,l.jsx)("ul",{className:"grid pt-4",children:Object.entries(a).map(((e,n)=>(0,l.jsxs)("li",{className:e[0]===r.message?"bg-highlight-tokens w-full font-base text-white pl-4":"pl-4 text-bg-slate-800",children:[e[0]," = ",a[e[0]][1],"%"]},e+"-"+n+"-"+t[0].key)))},t[0].key),(0,l.jsxs)("div",{className:"m-4 pb-4",children:[(0,l.jsxs)("div",{className:"text-base",children:["Total: ",i.logProbSum," logprob on 1 tokens"]}),(0,l.jsxs)("div",{className:"text-xs",children:["(",i.simpleProbSum,"% probability covered in top ",Object.keys(i.tokens).length," logits)"]})]})]});c=(0,l.jsx)(Bh.Popover,{isOpen:s,onClickOutside:()=>u(!1),positions:["bottom","top","left","right"],content:h,containerStyle:{zIndex:"1000"},children:(0,l.jsx)("span",{style:p,className:s?"font-bold":"",id:t[0].key,"data-offset-key":t[0].key,onClick:()=>{C.current&&u(!s)},children:t},t[0].key)})}return c}return(0,l.jsx)("span",{"data-offset-key":t[0].key,children:t})};const D=(0,c.useCallback)((()=>I.current),[]),R=()=>{return new(0,f.CompositeDecorator)([{strategy:(e="HIGHLIGHTED_WORD",(t,n,r)=>{t.findEntityRanges((t=>{const n=t.getEntity();return null!==n&&r.getEntity(n).getType()===e}),n)}),component:M,props:{getEditorState:D}}]);var e},[A,N]=n(c).useState(f.EditorState.moveFocusToEnd(f.EditorState.createWithContent(null!==t.internalState?(0,f.convertFromRaw)(t.internalState):f.ContentState.createFromText(t.prompt),R()))),I=(0,c.useRef)(A);(0,c.useEffect)((()=>{I.current=A}),[A]),(0,c.useEffect)((()=>{N(f.EditorState.forceSelection(A,A.getSelection()))}),[o.showProbabilities,o.highlightModels]);(0,c.useEffect)((()=>{let e=A;try{for(const t of m){const n=e.getCurrentContent(),r=n.getBlockMap(),o=r.last().getKey(),i=r.last().getLength(),a=new(0,f.SelectionState)({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i});n.createEntity("HIGHLIGHTED_WORD","MUTABLE",t);const l=n.getLastCreatedEntityKey(),s=f.Modifier.insertText(n,a,t.message,null,l),u=f.EditorState.push(e,s,"insert-characters"),c=f.EditorState.moveSelectionToEnd(u);if(e=f.EditorState.forceSelection(c,c.getSelection()),y.current){const e=y.current;e.scrollTop=e.scrollHeight-e.clientHeight}}}catch(e){console.log("Error in editor update",e)}N(e),I.current=e}),[m]),(0,c.useEffect)((()=>{p.message&&0===p.message.indexOf("[QUEUE] ")?_({title:"Inference request queued",description:"We're currently experiencing high load, your compeletion request is in a queue and will be compeleted shortly"}):p.message&&0===p.message.indexOf("[ERROR] ")&&e({title:"An error occured!",description:p.message.replace("[ERROR] ","")})}),[p]);const L=()=>{N(f.EditorState.moveFocusToEnd(f.EditorState.createWithContent((0,f.convertFromRaw)(t.previousInternalState),R()))),r({prompt:t.prePrompt,prePrompt:"",previousInternalState:null})};return(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),P()},className:"flex flex-col grow basis-auto lg:max-w-[calc(100%-266px)]",children:[(0,l.jsx)("div",{id:"editor",ref:y,className:"overflow-y-auto editor-container h-full w-full py-3 px-3 text-base rounded-md border border-slate-300",children:(0,l.jsx)(G_,{editorState:A,setEditorState:N,resetEditorState:()=>{N(f.EditorState.moveFocusToEnd(f.EditorState.createWithContent(f.ContentState.createFromText(""),R())))}})}),(0,l.jsxs)("div",{className:"flex space-x-2 mb-8",children:[S&&(0,l.jsx)(vh,{children:(0,l.jsxs)(Lh,{delayDuration:100,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsxs)("div",{children:[(0,l.jsxs)(dl,{type:"button",variant:"subtle",className:"hidden lg:inline-flex md:inline-flex items-center mt-4 text-sm font-medium text-center",onClick:e=>{e.stopPropagation(),j()},children:[" ",(0,l.jsx)(oh,{className:"mr-2 h-4 w-4 animate-spin"}),"Cancel Generation"]}),(0,l.jsxs)(dl,{type:"button",variant:"subtle",className:"inline-flex lg:hidden md:hidden items-center mt-4 text-sm font-medium text-center",onClick:e=>{e.stopPropagation(),j()},children:[" ",(0,l.jsx)(oh,{className:"mr-2 h-4 w-4 animate-spin"}),"Cancel"]})]})}),(0,l.jsxs)(zh,{side:"top",align:"center",className:"bg-slate-600 text-white hidden hidden md:block",children:["Cancel Generation  ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:"Esc"})]})]})}),(0,l.jsxs)(vh,{children:[!S&&(0,l.jsxs)(Lh,{delayDuration:100,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsx)(dl,{variant:"default",className:"bg-emerald-500 hover:bg-emerald-700 inline-flex items-center mt-4 text-sm font-medium text-center",type:"submit",value:"submit",disabled:0===d,children:"Submit"})}),(0,l.jsxs)(zh,{side:"top",align:"center",className:"bg-slate-600 text-white hidden md:block",children:["Submit  ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:b?"⌘":"Control"})," ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:"Enter"})]})]}),(0,l.jsxs)(Lh,{delayDuration:100,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsx)("div",{children:(0,l.jsx)(dl,{type:"button",variant:"subtle",className:"inline-flex items-center mt-4 text-sm font-medium text-center",onClick:L,disabled:""===t.prePrompt,children:"Undo"})})}),(0,l.jsxs)(zh,{side:"top",align:"center",className:"bg-slate-600 text-white hidden md:block",children:["Undo Last  ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:b?"⌘":"Control"})," ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:"U"})]})]}),(0,l.jsxs)(Lh,{delayDuration:100,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsx)("div",{children:(0,l.jsx)(dl,{type:"button",variant:"subtle",className:"inline-flex items-center mt-4 text-sm font-medium text-center",onClick:e=>{e.stopPropagation(),L(),P(!0,t.prePrompt)},disabled:""===t.prePrompt,children:"Regenerate"})})}),(0,l.jsxs)(zh,{side:"top",align:"center",className:"bg-slate-600 text-white hidden md:block",children:["Regenerate  ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:b?"⌘":"Control"})," ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:b?"Option":"Alt"})," ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:"R"})]})]}),(0,l.jsxs)(Lh,{delayDuration:100,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsx)(dl,{type:"button",variant:"subtle",className:"inline-flex items-center py-2.5 mt-4 text-sm font-medium text-center hidden lg:inline-flex",onClick:e=>{e.stopPropagation(),u()},disabled:0==a.entries.length,children:(0,l.jsx)(rh,{className:"h-4 w-4"})})}),(0,l.jsxs)(zh,{side:"top",align:"center",className:"bg-slate-600 text-white",children:["Show History  ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:b?"⌘":"Control"})," ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:"H"})]})]})]})]})]})},X_=({dialog:e})=>{const[t,r]=n(c).useState(!1),[o,i]=n(c).useState({title:"",message:""});return(0,c.useEffect)((()=>{t||""===e.title||""===e.message||(i({title:e.title,message:e.message}),r(!0))}),[e]),(0,l.jsx)(ug,{open:t,onOpenChange:r,children:(0,l.jsxs)(dg,{children:[(0,l.jsxs)(pg,{children:[(0,l.jsx)(mg,{children:o.title}),(0,l.jsx)(gg,{className:"text-base text-slate-700 dark:text-slate-400",children:o.message})]}),(0,l.jsx)(hg,{children:(0,l.jsx)(vg,{children:"Ok"})})]})})};function Q_(){(0,c.useContext)(BO);const{historyContext:e,toggleShowHistory:t}=(0,c.useContext)(HO),[r,o]=n(c).useState(!1),[i,a]=n(c).useState(!1),s=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),[u,f]=n(c).useState(!1),[d,p]=n(c).useState({title:"",message:""}),h=(0,l.jsx)(Y_,{}),m=(0,l.jsx)(q_,{showModelDropdown:!0,showModelList:!1});bg(["h"],(n=>{n.preventDefault(),e.entries.length>0&&!s&&t()}));const g=(0,l.jsxs)(wg,{open:i,onOpenChange:a,children:[(0,l.jsx)(Sg,{asChild:!0,children:(0,l.jsx)(dl,{variant:"subtle",className:"lg:hidden",children:(0,l.jsx)(ih,{className:"h-6 w-6"})})}),(0,l.jsx)(_g,{className:"w-[80vw] p-4 pt-8",children:m})]});return(0,l.jsxs)("div",{className:"flex flex-col h-full",children:[(0,l.jsx)(Hs,{tab:"playground",children:(0,l.jsx)("div",{className:"align-middle mt-1",children:(0,l.jsx)("div",{className:"flex basis-full my-2 lg:mb-0 space-x-2",children:g})})}),(0,l.jsx)(ug,{open:u,onOpenChange:f,children:(0,l.jsxs)(dg,{children:[(0,l.jsxs)(pg,{children:[(0,l.jsx)(mg,{children:"Are you sure you want to delete all of your history?"}),(0,l.jsxs)(gg,{children:["This action cannot be ",(0,l.jsx)("b",{children:"reversed."})," Please make sure you have saved any important generations before proceeding."]})]}),(0,l.jsxs)(hg,{children:[(0,l.jsx)(yg,{children:"Cancel"}),(0,l.jsx)(vg,{className:"bg-red-500 text-white hover:bg-red-600 dark:hover:bg-red-600",asChild:!0,children:(0,l.jsx)(dl,{variant:"destructive",children:"Delete History"})})]})]})}),(0,l.jsx)(X_,{dialog:d}),(0,l.jsx)("div",{className:"flex flex-grow flex-col font-display min-h-0 min-w-0 ml-5",children:(0,l.jsxs)("div",{className:"flex flex-row space-x-4 flex-grow mr-5 min-h-0 min-w-0",children:[e.show?(0,l.jsx)("div",{className:"hidden p-1 grow-0 shrink-0 basis-auto lg:w-[250px] overflow-auto lg:block",children:h}):null,(0,l.jsx)(J_,{showDialog:p}),(0,l.jsx)("div",{className:"hidden p-1 grow-0 shrink-0 basis-auto lg:w-[250px] overflow-auto lg:block",children:m})]})})]})}c=i("fYo6y");function Z_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jb(e,t)}function eC(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}c=i("fYo6y"),c=i("fYo6y");var tC={disabled:!1},nC=n(c=i("fYo6y")).createContext(null),rC=function(e){return e.scrollTop},oC="unmounted",iC="exited",aC="entering",lC="entered",sC="exiting",uC=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=iC,r.appearStatus=aC):o=lC:o=t.unmountOnExit||t.mountOnEnter?oC:iC,r.state={status:o},r.nextCallback=null,r}Z_(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===oC?{status:iC}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==aC&&n!==lC&&(t=aC):n!==aC&&n!==lC||(t=sC)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===aC){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:n(s).findDOMNode(this);r&&rC(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===iC&&this.setState({status:oC})},r.performEnter=function(e){var t=this,r=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[n(s).findDOMNode(this),o],a=i[0],l=i[1],u=this.getTimeouts(),c=o?u.appear:u.enter;!e&&!r||tC.disabled?this.safeSetState({status:lC},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,l),this.safeSetState({status:aC},(function(){t.props.onEntering(a,l),t.onTransitionEnd(c,(function(){t.safeSetState({status:lC},(function(){t.props.onEntered(a,l)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:n(s).findDOMNode(this);t&&!tC.disabled?(this.props.onExit(o),this.safeSetState({status:sC},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:iC},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:iC},(function(){e.props.onExited(o)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:n(s).findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],l=i[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===oC)return null;var t=this.props,r=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,zw(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return n(c).createElement(nC.Provider,{value:null},"function"==typeof r?r(e,o):n(c).cloneElement(n(c).Children.only(r),o))},t}(n(c).Component);function cC(){}uC.contextType=nC,uC.propTypes={},uC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cC,onEntering:cC,onEntered:cC,onExit:cC,onExiting:cC,onExited:cC},uC.UNMOUNTED=oC,uC.EXITED=iC,uC.ENTERING=aC,uC.ENTERED=lC,uC.EXITING=sC;var fC=uC,dC=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},pC=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=eC(n.className,r):n.setAttribute("class",eC(n.className&&n.className.baseVal||"",r)));var n,r}))},hC=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Z_(t,e);var r=t.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&rC(e),r&&(this.appliedClasses[t][n]=r,dC(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&pC(e,r),o&&pC(e,o),i&&pC(e,i)},r.render=function(){var e=this.props,t=(e.classNames,zw(e,["classNames"]));return n(c).createElement(fC,$s({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(n(c).Component);hC.defaultProps={classNames:""},hC.propTypes={};var mC=hC;c=i("fYo6y"),c=i("fYo6y");function gC(e,t){var n=Object.create(null);return e&&c.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,c.isValidElement)(e)?t(e):e}(e)})),n}function vC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function yC(e,t,n){var r=gC(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if((0,c.isValidElement)(a)){var l=i in t,s=i in r,u=t[i],f=(0,c.isValidElement)(u)&&!u.props.in;!s||l&&!f?s||!l||f?s&&l&&(0,c.isValidElement)(u)&&(o[i]=(0,c.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:vC(a,"exit",e),enter:vC(a,"enter",e)})):o[i]=(0,c.cloneElement)(a,{in:!1}):o[i]=(0,c.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:vC(a,"exit",e),enter:vC(a,"enter",e)})}})),o}var bC=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},xC=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Rb(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Z_(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,gC(n.children,(function(e){return(0,c.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:vC(e,"appear",n),enter:vC(e,"enter",n),exit:vC(e,"exit",n)})}))):yC(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var n=gC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=$s({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,o=zw(e,["component","childFactory"]),i=this.state.contextValue,a=bC(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===t?n(c).createElement(nC.Provider,{value:i},a):n(c).createElement(nC.Provider,{value:i},n(c).createElement(t,o,a))},t}(n(c).Component);xC.propTypes={},xC.defaultProps={component:"div",childFactory:function(e){return e}};var wC=xC;const SC=e=>{const{errorMessage:t,is_running:n,totalCharacters:r}=e,[o,i]=(0,c.useState)(!1),a=(0,c.useRef)(null),[s,u]=(0,c.useState)(0);(0,c.useEffect)((()=>{n&&!1===o?f():n||!0!==o||d()}),[n]);const f=()=>{i(!0),u(0),a.current=setInterval((()=>{u((e=>e+1))}),1e3)},d=()=>{clearInterval(a.current),i(!1)};const p=function(e){if(null==e)return[];const t=e.split(" "),n=[];let r="";for(let e=0;e<t.length;e++)r+=`${t[e]} `,(e+1)%4!=0&&e!==t.length-1||(n.push(r),r="");return n}(t).map(((e,t)=>(0,l.jsx)("span",{className:"block text-center",children:e},t))),h=r>0?Math.floor(r/Math.max(s,1)):0;return(0,l.jsxs)("div",{className:"flex font-medium",children:[(0,l.jsx)("span",{children:(e=>`${Math.floor(e/60).toString().padStart(2,"0")}:${(e%60).toString().padStart(2,"0")}`)(s)}),(0,l.jsx)("span",{className:"flex-1"}),(0,l.jsxs)("span",{children:[(0,l.jsxs)(Lh,{delayDuration:300,skipDelayDuration:150,open:!!t,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsx)("div",{style:{display:t?"block":"none"},children:(0,l.jsx)(oy,{color:"#f56760"})})}),(0,l.jsx)(zh,{side:"top",children:(0,l.jsx)(l.Fragment,{children:p})})]}),0===h||t?"":`${h} chars/s`," "]}),(0,l.jsx)("span",{className:"flex-1"}),(0,l.jsxs)("span",{children:[r," chars"]})]})},kC=n(c).memo((e=>{const{editorState:t,setEditorState:n}=e;return(0,l.jsx)(f.Editor,{customStyleMap:Ig,editorState:t,onChange:e=>{n(e)}})})),EC=(0,c.forwardRef)(((e,t)=>{const r=(0,c.useRef)(0),{model:o,showHighlights:i,showProbabilities:a,completion:s}=e,[u,d]=n(c).useState("IDLE"),[p,h]=(0,c.useState)(null),[m,g]=(0,c.useState)(0),[v,y]=n(c).useState([]),[b,x]=n(c).useState([]),{modelsStateContext:w,setModelsStateContext:S}=(0,c.useContext)(UO),{parametersContext:k,setParametersContext:E}=(0,c.useContext)(VO),_=(0,c.useRef)(a),C=(0,c.useRef)(i);if((0,c.useEffect)((()=>{M(f.EditorState.forceSelection(T,T.getSelection()))}),[a,i]),(0,c.useEffect)((()=>{_.current=a,C.current=i})),s.length>r.current){let e=s.slice(r.current,s.length);r.current=s.length,y(e)}const O=e=>{const t=e.children,r=e.contentState.getEntity(e.entityKey).getData(),o=$g(r.modelProvider,C.current),i=r.topNDistribution,a=i?i.tokens:[],[s,u]=n(c).useState(!1);if(r.message===e.decoratedText){let c=(0,l.jsx)("span",{style:o,"data-offset-key":t[0].key,children:t},t[0].key);if(i&&null!=a[e.decoratedText]&&a[e.decoratedText].length>0){let f=Math.min(a[e.decoratedText][1]/i.simpleProbSum,1),d=n(Cg).scale(["#ff8886","ffff00","#96f29b"])(f),p=_.current?{backgroundColor:d,padding:"2px 0"}:o,h=(0,l.jsxs)("div",{className:"shadow-xl shadow-inner rounded-sm bg-white mb-2","data-container":"body",children:[(0,l.jsx)("ul",{className:"grid pt-4",children:Object.entries(a).map(((e,n)=>(0,l.jsxs)("li",{className:e[0]===r.message?"bg-highlight-tokens w-full font-base text-white pl-4":"pl-4 text-bg-slate-800",children:[e[0]," = ",a[e[0]][1],"%"]},e+"-"+n+"-"+t[0].key)))},t[0].key),(0,l.jsxs)("div",{className:"m-4 pb-4",children:[(0,l.jsxs)("div",{className:"text-base",children:["Total: ",i.logProbSum," logprob on 1 tokens"]}),(0,l.jsxs)("div",{className:"text-xs",children:["(",i.simpleProbSum,"% probability covered in top ",Object.keys(i.tokens).length," logits)"]})]})]});c=(0,l.jsx)(Bh.Popover,{isOpen:s,onClickOutside:()=>u(!1),positions:["bottom","top","left","right"],content:h,containerStyle:{zIndex:"1000"},children:(0,l.jsx)("span",{style:p,className:s?"font-bold":"",id:t[0].key,"data-offset-key":t[0].key,onClick:()=>{_.current&&u(!s)},children:t},t[0].key)})}return c}return(0,l.jsx)("span",{"data-offset-key":t[0].key,children:t})},P=(0,c.useCallback)((()=>D.current),[]),j=()=>{return new(0,f.CompositeDecorator)([{strategy:(e="HIGHLIGHTED_WORD",(t,n,r)=>{t.findEntityRanges((t=>{const n=t.getEntity();return null!==n&&r.getEntity(n).getType()===e}),n)}),component:O,props:{getEditorState:P}}]);var e},[T,M]=n(c).useState(f.EditorState.createEmpty(j())),D=(0,c.useRef)(T);(0,c.useEffect)((()=>{let e=T,t=0;try{for(const n of v){t+=n.message.split("").length;const r=e.getCurrentContent(),o=r.getBlockMap(),i=o.last().getKey(),a=o.last().getLength(),l=new(0,f.SelectionState)({anchorKey:i,anchorOffset:a,focusKey:i,focusOffset:a});r.createEntity("HIGHLIGHTED_WORD","MUTABLE",n);const s=r.getLastCreatedEntityKey(),u=f.Modifier.insertText(r,l,n.message,null,s);e=f.EditorState.push(T,u,"insert-characters")}}catch(e){}g(m+t),M(e)}),[v]),(0,c.useEffect)((()=>"[INITIALIZING]"===b.message?(d("INITIALIZED"),g(0),void h(null)):b.message&&0===b.message.indexOf("[ERROR] ")&&"COMPLETED"!==u&&"IDLE"!==u?(d("ERROR"),void h(b.message.replace("[ERROR] ",""))):void("[COMPLETED]"!==b.message||d("COMPLETED"))),[b]);const R=e=>{y(e)},A=e=>{x(e)},N=e=>{M(f.EditorState.createWithContent(f.ContentState.createFromText(""),j()))};(0,c.useImperativeHandle)(t,(()=>({handleNotification:R,handleUndo:N,handleNotificationStatus:A})));let I="";switch(u){case"INITIALIZED":I="border_inference_pending border_inference_animate";break;case"RUNNING":I="border_inference_animate";break;case"COMPLETED":I="border_inference_complete";break;case"ERROR":I="border_inference_error"}return(0,l.jsxs)("div",{className:"flex flex-col items-center text-gray-600 text-lg font-bold h-96",style:o.selected?{transition:"all 0.3s ease",backgroundColor:"#f5f5f5",borderRadius:4,padding:6}:{transition:"all 0.3s ease",backgroundColor:"#ffffff",borderRadius:0,padding:0},children:[(0,l.jsx)("div",{className:"flex justify max-w-[100%]",children:(0,l.jsx)("h2",{onClick:e=>{cl(o,w,S,k,E,e.ctrlKey||e.metaKey)},className:"select-none cursor-pointer text-ellipsis overflow-hidden max-w-full whitespace-nowrap overflow-hidden "+(o.selected?"font-medium":"font-normal"),children:o.name})}),(0,l.jsx)("div",{className:"relative editor-container h-full w-full text-base flex mt-2",style:{clipPath:"inset(-1px)"},children:(0,l.jsxs)("div",{className:`font-medium relative p-3 overflow-hidden flex-1 flex flex-col loading_border ${I}`,children:[(0,l.jsx)(kC,{...e,editorState:T,setEditorState:M}),(0,l.jsx)(SC,{errorMessage:p,totalCharacters:m,is_running:"ERROR"!==u&&"COMPLETED"!==u&&"IDLE"!==u})]})})]})}));function _C({editorState:e,setEditorState:t,...r}){const o=(0,c.useRef)(null),i=n(c).useRef(null),{modelsStateContext:a}=(0,c.useContext)(UO),{parametersContext:s}=(0,c.useContext)(VO),u=a.filter((e=>e.enabled)).length;return(0,c.useEffect)((()=>{t(f.EditorState.forceSelection(e,e.getSelection()))}),[s.showProbabilities]),(0,l.jsx)("div",{ref:o,onClick:function(){i.current.focus()},className:"overflow-y-auto editor-container h-[100%] w-full text-base",children:(0,l.jsx)(f.Editor,{placeholder:u>=1?"Type your prompt here...":"No models have been enabled...",ref:i,keyBindingFn:e=>"Enter"===e.code&&e.metaKey?"ignore_enter":e.metaKey&&66===e.keyCode||e.ctrlKey&&66===e.keyCode?"bold":(0,f.getDefaultKeyBinding)(e),handleKeyCommand:(e,n)=>"bold"===e?(t(f.RichUtils.toggleInlineStyle(n,"BOLD")),"handled"):"ignore_enter"===e?"handled":"not-handled",customStyleMap:Ig,editorState:e,onChange:e=>{t(e)}})})}function CC({showDialog:e}){const t=navigator.platform.toUpperCase().indexOf("MAC")>=0,r=n(c).useRef(null),[o,i]=n(c).useState(!1),a=(0,c.useContext)(BO),{modelsStateContext:s}=(0,c.useContext)(UO),{editorContext:u,setEditorContext:d}=(0,c.useContext)(KO);n(c).useEffect((()=>()=>{d({...u,internalState:(0,f.convertToRaw)(m.current.getCurrentContent()),prompt:m.current.getCurrentContent().getPlainText()},!0)}),[]);const[p,h]=n(c).useState(f.EditorState.moveFocusToEnd(f.EditorState.createWithContent(null!==u.internalState?(0,f.convertFromRaw)(u.internalState):f.ContentState.createFromText(u.prompt)))),m=(0,c.useRef)(p);(0,c.useEffect)((()=>{m.current=p}),[p]);const g=(0,c.useRef)(o),v=s.filter((e=>e.enabled)).length,y=()=>{r.current&&r.current()};xg(["Escape"],(e=>{y()})),(0,c.useEffect)((()=>{const e=({event:e})=>{if("close"===e)d({prompt:m.current.getCurrentContent().getPlainText()}),i(!1)};return a.Inference.subscribeTextCompletion(e),()=>{a.Inference.unsubscribeTextCompletion(e)}}),[]),bg(["Enter"],(e=>{b()}));(0,c.useEffect)((()=>{g.current=o}));const b=async(e=!1,t="")=>(async(e=!1,t="")=>{const n=e?t:p.getCurrentContent().getPlainText();i(!0),d({prePrompt:n});const o=a.Inference.textCompletionRequest({prompt:e?t:n,models:s.map((e=>{if(e.enabled)return e})).filter(Boolean)});r.current=o})(e,t);return(0,l.jsx)("form",{className:"flex flex-col grow basis-auto min-h-[25%] max-h-[75%] overflow-auto",onSubmit:e=>{e.preventDefault(),b()},children:(0,l.jsx)("div",{className:"flex-1 flex border border-slate-400",children:(0,l.jsxs)("div",{className:"relative overflow-hidden flex-1 flex flex-col p-2",children:[(0,l.jsx)(_C,{editorState:p,setEditorState:h}),(0,l.jsxs)("div",{className:"absolute bottom-[.5em] right-[1em] z-[2]",children:[o&&(0,l.jsxs)(Lh,{delayDuration:100,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsxs)(dl,{variant:"default",className:"inline-flex items-center ml-1 text-sm font-medium text-center",onClick:e=>{e.stopPropagation(),y()},children:[" ",(0,l.jsx)(oh,{className:"mr-2 h-4 w-4 animate-spin"}),"Cancel"]})}),(0,l.jsxs)(zh,{side:"top",align:"center",className:"bg-slate-600 text-white hidden md:block",children:["Cancel  ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:"Escape"})," "]})]}),!o&&(0,l.jsxs)(Lh,{delayDuration:100,children:[(0,l.jsx)(Fh,{asChild:!0,children:(0,l.jsx)(dl,{disabled:0===v,variant:"default",className:"bg-emerald-500 hover:bg-emerald-700 inline-flex items-center ml-1 text-sm font-medium text-center",type:"submit",value:"submit",children:"Submit"})}),(0,l.jsxs)(zh,{side:"top",align:"center",className:"bg-slate-600 text-white hidden md:block",children:["Submit  ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:t?"⌘":"Control"})," ",(0,l.jsx)("kbd",{className:"align-top pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border border-slate-100 bg-slate-100 px-1.5 font-mono text-[10px] font-medium text-slate-600 opacity-100 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-400",children:"Enter"})]})]})]})]})})})}const OC=({showDialog:e})=>{const t=(0,c.useRef)({}),[r,o]=n(c).useState({}),[i,a]=n(c).useState(0),s=n(c).useContext(BO),{modelsStateContext:u}=(0,c.useContext)(UO),{parametersContext:f}=n(c).useContext(VO),d=u.filter((e=>e.enabled)).length,p=(e,n)=>{if("*"!==e)t.current[e]&&t.current[e].handleNotificationStatus(n);else for(const e in t.current)t.current[e]&&t.current[e].handleNotificationStatus(n)},h=()=>{for(const e of Object.keys(t.current))t.current[e]&&t.current[e].handleUndo()};return bg(["O"],(e=>{""!==editorContext.prePrompt&&h()})),(0,c.useEffect)((()=>{const t=({event:t,data:n})=>{switch(t){case"open":h();break;case"status":p(n.modelTag,n);break;case"cancel":p("*",{message:"[ERROR] Cancelled by user"});break;case"completion":for(let e in n)r[e]=[...r[e]||[],...n[e]];o(r),a((e=>e+1));break;case"error":switch(n){case"Too many pending requests":e({title:"Too many pending requests",message:"Please wait a few seconds before trying again."});break;case"Too many daily completions":e({title:"Daily limit reached",message:"It seems you've reached your daily limit. Please try again tomorrow."});break;case"Unauthorized":e({title:"Unauthorized",message:"Please log in to use this feature."});break;default:e({title:"Error",message:n})}break;default:console.log("Unknown event",t,n)}};return s.Inference.subscribeTextCompletion(t),()=>{s.Inference.unsubscribeTextCompletion(t)}}),[]),(0,l.jsxs)(wC,{className:`grid h-full mt-3 pr-1 overflow-auto \n        ${1===d?"grid-cols-1 gap-1 sm:grid-cols-1 md:grid-cols-1 lg:grid-cols-2":2===d?"grid-cols-1 gap-3 sm:grid-cols-1 md:grid-cols-2":3===d?"grid-cols-1 gap-3 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-3":4===d?"grid-cols-1 gap-3 gap-3 sm:grid-cols-1 md:grid-cols-2":"grid-cols-1 gap-2 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-4 5xl:grid-cols-5 6xl:grid-cols-6 8xl:grid-cols-8"}\n      `,children:[" ",u.filter((e=>e.enabled&&e.tag)).map((e=>(0,l.jsx)(mC,{timeout:500,classNames:"fade",unmountOnExit:!0,children:(0,l.jsx)(EC,{ref:n=>t.current[e.tag]=n,completion:r[e.tag]||[],model:e,showProbabilities:f.showProbabilities,showHighlights:f.highlightModels},e.tag)},e.tag)))]})},PC=()=>{const{parametersContext:e,setParametersContext:t}=n(c).useContext(VO),{modelsContext:r}=n(c).useContext($O),{modelsStateContext:o,setModelsStateContext:i}=(0,c.useContext)(UO),a=o.filter((e=>e.enabled)).length,s=(e,t)=>{return e?(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsxs)("div",{className:"mx-4 relative flx items-center",children:[(0,l.jsx)("div",{className:"rounded-md bg-slate-200 w-[100%] h-[3px]"}),(0,l.jsx)("div",{className:"rounded-md bg-slate-600 absolute h-[3px] top-[0px] ease-in duration-300",style:{width:e/t.range[1]*100+"%"}})]}),(0,l.jsx)("span",{className:"cursor-default absolute top-[-1px] right-[16px] text-[12px]",children:(n=e,n>1?n:n.toFixed(1))})]}):(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)("span",{className:"cursor-default text-xs",children:"N/A"})});var n},u=(e,t)=>["name","maximumLength","temperature","topP","topK","frequencyPenalty","presencePenalty","repetitionPenalty"].map(((n,r)=>"name"===n?(0,l.jsx)("div",{className:"py-1 bg-inherit text-center font-light min-w-[150px] max-w-[150px] left-[0px] z-[2] sticky whitespace-nowrap text-ellipsis overflow-hidden "+(e.selected?"font-medium":""),children:(0,l.jsx)("span",{children:e.name.split(":")[1]})}):(0,l.jsx)("div",{className:"bg-inherit text-center font-light relative min-w-[150px] flex flex-1 items-center",children:s(e.parameters[n],t.defaultParameters[n])})));return(0,l.jsx)("div",{children:e.showParametersTable&&0!==a?(0,l.jsx)("div",{className:"flex mt-4 justify-center",children:(0,l.jsx)("div",{className:"rounded-sm border border-slate-200 max-h-[350px] max-w-[1400px] overflow-auto",children:(0,l.jsxs)("div",{className:"flex flex-col m-2 min-w-[900px]",children:[(0,l.jsx)("div",{className:"flex flex-row sticky top-[0] z-[3] bg-white",children:["Model","ML","T","TP","TK","FP","PP","RP"].map(((e,t)=>(0,l.jsx)("div",{className:"text-center font-normal "+(0===t?"min-w-[150px] sticky top-[0] left-[0] z-[1] bg-white":"min-w-[150px] flex-1"),children:e})))}),o.filter((e=>e.enabled)).map((n=>(0,l.jsx)("div",{className:"cursor-pointer flex flex-row hover:bg-slate-100 "+(n.selected?"bg-slate-100":"bg-white"),onClick:r=>{cl(n,o,i,e,t,r.ctrlKey||r.metaKey)},children:u(n,r[n.name])},n.tag)))]})})}):null})},jC=({dialog:e})=>{const[t,r]=n(c).useState(!1),[o,i]=n(c).useState({title:"",message:""});return(0,c.useEffect)((()=>{t||""===e.title||""===e.message||(i({title:e.title,message:e.message}),r(!0))}),[e]),(0,l.jsx)(ug,{open:t,onOpenChange:r,children:(0,l.jsxs)(dg,{children:[(0,l.jsxs)(pg,{children:[(0,l.jsx)(mg,{children:o.title}),(0,l.jsx)(gg,{className:"text-base text-slate-700 dark:text-slate-400",children:o.message})]}),(0,l.jsx)(hg,{children:(0,l.jsx)(vg,{children:"Ok"})})]})})};function TC(){const[e,t]=n(c).useState(!1),r=(0,l.jsx)(q_,{showModelList:!0}),[o,i]=n(c).useState({title:"",message:""});return(0,l.jsxs)("div",{className:"flex flex-col h-full",children:[(0,l.jsx)(Hs,{tab:"compare",children:(0,l.jsx)("div",{className:"align-middle mt-1",children:(0,l.jsx)("div",{className:"flex basis-full mb-2 lg:mb-0 space-x-2",children:(0,l.jsxs)(wg,{open:e,onOpenChange:t,children:[(0,l.jsx)(Sg,{asChild:!0,children:(0,l.jsx)(dl,{variant:"subtle",className:"lg:hidden",children:(0,l.jsx)(ih,{className:"h-6 w-6"})})}),(0,l.jsx)(_g,{className:"w-[80vw] p-4 pt-10 overflow-auto",children:r})]})})})}),(0,l.jsx)(jC,{dialog:o}),(0,l.jsx)("div",{className:"flex flex-grow flex-col font-display min-h-0 min-w-0",children:(0,l.jsxs)("div",{className:"flex flex-row space-x-4 flex-grow mx-2 md:ml-5 lg:ml-5 min-h-0 min-w-0",children:[(0,l.jsxs)("div",{className:"flex-1 flex flex-col lg:max-w-[calc(100%-266px)] max-w-[100%]",children:[(0,l.jsx)(CC,{showDialog:i}),(0,l.jsx)(PC,{showDialog:i}),(0,l.jsx)(OC,{showDialog:i})]}),(0,l.jsx)("div",{className:"hidden p-1 grow-0 shrink-0 basis-auto lg:w-[250px] overflow-auto lg:block",children:r})]})})]})}c=i("fYo6y");const MC=nh("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),DC=nh("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",y1:"2",x2:"22",y2:"22",key:"1w4vcy"}]]),RC=({provider:e,providerModels:t,providerRequiresAPIKey:n,apiKey:r,providerSearchURL:o,providerSearchResults:i,searchProviderModels:a,toggleModel:s})=>{if(!o)return null;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:"scroll-m-20 text-xl font-extrabold tracking-tight mt-2",children:"Model Search"}),(0,l.jsxs)("p",{children:["Search for a model or part of a model to get matches from ",e," Hub"]}),(0,l.jsx)("form",{onSubmit:t=>{t.preventDefault();const n=t.target.elements["model-query"].value;a(e,n)},children:(0,l.jsxs)("div",{className:"flex w-full max-w-sm items-center space-x-2 mt-2",children:[(0,l.jsx)(Ev,{disabled:n&&(""===r||null===r),type:"text",id:"model-query",placeholder:"Search Query",className:"flex text-left placeholder:text-left h-10 w-full rounded-md border border-slate-300 bg-transparent py-2 px-3 text-sm placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900"}),(0,l.jsx)(dl,{type:"submit",disabled:n&&(""===r||null===r),children:"Search"})]})}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"min-h-[320px] w-full border rounded-md mt-2",children:(0,l.jsx)("div",{className:"p-2",children:i.map((n=>(0,l.jsxs)("div",{className:"rounded-md border border-slate-200 px-4 py-3 my-2 font-mono text-sm dark:border-slate-700",children:[n,(0,l.jsx)(lv,{className:"float-right",onCheckedChange:t=>{s(e,n)},checked:t.find((({name:e})=>e===n))?.enabled||!1},n)]},n)))})})})]})},AC=({provider:e,providerRequiresAPIKey:t,apiKey:r,setAPIKey:o})=>{if(!t)return null;const[i,a]=(0,c.useState)(!1),[s,u]=n(c).useState(r);(0,c.useEffect)((()=>{u(r)}),[r]);return(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"scroll-m-20 text-xl font-extrabold tracking-tight mt-2",children:"API Key"}),null!==r&&""!==r?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"text-red-500",children:(0,l.jsxs)("b",{children:["No API key is saved for ",e]})}),(0,l.jsx)("p",{children:"Your API key allows us make generation requests for you in the playground"})]}),(0,l.jsx)("form",{onSubmit:async e=>{e.preventDefault(),o(s)},children:(0,l.jsxs)("div",{className:"flex w-full max-w-lg items-center space-x-2 mt-2",children:[(0,l.jsx)(Ev,{type:i?"text":"password",placeholder:`Enter your ${e} API Key`,value:s||"",onChange:e=>u(e.target.value),className:"flex text-left placeholder:text-left h-8 w-full rounded-md border border-slate-300 bg-transparent py-2 px-3 text-sm placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900"}),(0,l.jsx)("div",{onClick:()=>a((e=>!e)),className:"cursor-pointer",children:i?(0,l.jsx)(MC,{className:"h-5 w-5 align-middle"}):(0,l.jsx)(DC,{className:"h-5 w-5 align-middle"})},e),(0,l.jsx)(dl,{type:"submit",children:"Save"})]})})]})},NC=({provider:e,apiKey:t,providerRequiresAPIKey:n,providerModels:r,toggleModel:o})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:"scroll-m-20 text-xl font-extrabold tracking-tight mt-2",children:"Model Selection"}),(0,l.jsx)("p",{children:"Please select from the following models to show in the dropdown in playground"}),(0,l.jsx)("form",{onSubmit:e=>{e.preventDefault()},children:(0,l.jsx)("div",{className:"min-h-[320px] w-full border rounded-md mt-2",children:(0,l.jsx)("div",{className:"p-2",children:r.map((r=>(0,l.jsxs)("div",{className:"rounded-md border border-slate-200 px-4 py-3 my-2 font-mono text-sm dark:border-slate-700",children:[r.name,(0,l.jsx)(lv,{className:"float-right",disabled:n&&(""===t||null===t),onCheckedChange:t=>((t,n)=>{o(e,t)})(r.name),checked:r.enabled},r)]},r.name)))})})})]}),IC=e=>{const{provider:t}=e;return(0,l.jsx)("div",{className:"overflow-hidden flex col-span-6 lg:col-span-3 flex flex-row mx-2 lg:mx-0",children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("h1",{className:"scroll-m-20 text-3xl font-extrabold tracking-tight",children:[t," Setup"]}),(0,l.jsxs)("div",{className:"max-h-[100%] flex-1 overflow-auto mt-2",children:[(0,l.jsx)(AC,{...e}),(0,l.jsx)(NC,{...e}),(0,l.jsx)(RC,{...e})]})]})})},LC=({enabledModels:e,toggleModel:t})=>(0,l.jsx)("div",{className:"col-span-6 lg:col-span-2 flex flex-row mx-2 lg:mx-0 ",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"scroll-m-20 text-3xl font-extrabold tracking-tight",children:"Your Selected Models"}),(0,l.jsx)("div",{className:"mt-1",children:(0,l.jsx)("p",{children:"These models will be available in the menu dropdown"})}),(0,l.jsx)("div",{className:"max-h-[100%] overflow-hidden",children:(0,l.jsx)("div",{children:e.map((e=>(0,l.jsxs)("div",{className:"rounded-md border border-slate-200 px-4 py-3 my-2 font-mono text-sm dark:border-slate-700",children:[e.name,(0,l.jsx)("br",{}),(0,l.jsxs)("span",{style:{fontSize:"12px"},children:["Provider:",(0,l.jsx)("i",{children:e.provider})]}),(0,l.jsx)("button",{className:"float-right center",onClick:()=>t(e.provider,e.name),children:(0,l.jsx)(ah,{className:"h-4 w-4"})},`selected_${e}`),(0,l.jsx)("br",{}),(0,l.jsxs)("span",{style:{fontSize:"12px"},children:["Status:",(0,l.jsx)("i",{children:e.status})]})]},`selected_${e.name}_${e.provider}`)))})})]})});function FC(){const e=(0,c.useContext)(BO),[t,r]=n(c).useState({}),[o,i]=n(c).useState({}),[a,s]=n(c).useState("openai"),[u,f]=n(c).useState(null),[d,p]=n(c).useState(""),[h,m]=n(c).useState(!0),[g,v]=n(c).useState(!0),[y,b]=n(c).useState([]),[x,w]=n(c).useState([]),[S,k]=n(c).useState([]),{toast:E}=Ng(),{isLg:_}=kv("lg");(0,c.useEffect)((()=>{const t=async()=>{const t=await e.Provider.getAllWithModels(),n=Object.entries(t).map((([e,t])=>t.models.filter((({enabled:e})=>e)))).flat();r(t),k(n)},n=({event:e,data:n,meta:r})=>{switch(e){case"modelAdded":E({title:"New Model is available!",description:`${n.provider}'s model ${n.model} has been added to the playground!`}),t().catch(console.error);break;case"modelRemoved":E({title:"Model removed!",description:`${n.provider}'s model ${n.model} has been removed from the playground!`}),t().catch(console.error);break;default:console.log("Unknown event????",e,n)}};return e.Notifications.subscribe(n),t().catch(console.error),()=>{e.Notifications.unsubscribe(n)}}),[]),(0,c.useEffect)((()=>{if(0===Object.keys(t).length)return;const e=t[a];i(e),p(e.apiKey),b(e.models),m(e.requiresApiKey),v(e.remoteInference),f(e.searchUrl),w(o.name===e.name?x:[])}),[a,t]);const C=async(n,o)=>{try{const{enabled:i,model:a}=await e.Model.toggle(n,o),l=t[n].models.find((e=>e.name===o));l?l.enabled=i:y.push(a),r({...t,[n]:{...t[n],models:y}});let s=S;i?s.find((e=>e.name===o))||s.push(a):s=s.filter((e=>e.name!==o)),k(s)}catch(e){E({title:"Model Error",description:`There was an error enabling your ${o} model. ${e}}`})}};return(0,l.jsxs)("div",{className:"flex flex-col h-full",children:[(0,l.jsx)(Hs,{tab:"settings"}),(0,l.jsx)("div",{className:"flex flex-1 flex-col font-display flex-grow overflow-hidden",children:(0,l.jsxs)("div",{className:"max-h-[100%] lg:flex-grow grid gap-6 grid-cols-6 mx-1 lg:mx-5 flex flex-row",children:[(0,l.jsxs)("div",{className:"flex col-span-6 lg:flex-col lg:col-span-1",children:[(0,l.jsx)("h1",{className:"scroll-m-20 text-3xl mb-5 font-extrabold tracking-tight hidden lg:inline-block",children:"Providers"}),Object.entries(t).map((([e,t])=>(0,l.jsx)(n(c).Fragment,{children:(0,l.jsx)("button",{className:"block w-full text-left px-2 py-1 border-l-2 "+(a===e?"border-blue-500":"border-transparent"),onClick:t=>s(e),children:(0,l.jsx)("span",{className:a===e?"font-bold":"font-normal",children:e})})},e)))]}),(0,l.jsx)(IC,{apiKey:d,provider:a,providerRequiresAPIKey:h,providerRemoteInference:g,providerModels:y,providerSearchURL:u,providerSearchResults:x,searchProviderModels:async(t,n)=>{try{const r=await e.Model.search(t,n);w(r.map((e=>e.name)))}catch(e){E({title:"Model Error",description:`There was an error searching for models. ${e}}`})}},setAPIKey:async n=>{try{await e.Provider.setAPIKey(a,n),E({title:"API Key Saved",description:`${a} API key is saved and ready for generations!`}),r({...t,[a]:{...t[a],apiKey:n}})}catch(e){E({title:"API Key Error",description:`There was an error saving your ${o} API key. ${e}}`})}},toggleModel:C}),(0,l.jsx)(LC,{enabledModels:S,toggleModel:C})]})})]})}var zC,BC=function(e,t){if(!(this instanceof BC))return new BC(e,t);this.INITIALIZING=-1,this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,this.url=e,t=t||{},this.headers=t.headers||{},this.payload=void 0!==t.payload?t.payload:"",this.method=t.method||this.payload&&"POST"||"GET",this.withCredentials=!!t.withCredentials,this.FIELD_SEPARATOR=":",this.listeners={},this.xhr=null,this.readyState=this.INITIALIZING,this.progress=0,this.chunk="",this.addEventListener=function(e,t){void 0===this.listeners[e]&&(this.listeners[e]=[]),-1===this.listeners[e].indexOf(t)&&this.listeners[e].push(t)},this.removeEventListener=function(e,t){if(void 0!==this.listeners[e]){var n=[];this.listeners[e].forEach((function(e){e!==t&&n.push(e)})),0===n.length?delete this.listeners[e]:this.listeners[e]=n}},this.dispatchEvent=function(e){if(!e)return!0;e.source=this;var t="on"+e.type;return(!this.hasOwnProperty(t)||(this[t].call(this,e),!e.defaultPrevented))&&(!this.listeners[e.type]||this.listeners[e.type].every((function(t){return t(e),!e.defaultPrevented})))},this._setReadyState=function(e){var t=new CustomEvent("readystatechange");t.readyState=e,this.readyState=e,this.dispatchEvent(t)},this._onStreamFailure=function(e){var t=new CustomEvent("error");t.data=e.currentTarget.response,this.dispatchEvent(t),this.close()},this._onStreamAbort=function(e){this.dispatchEvent(new CustomEvent("abort")),this.close()},this._onStreamProgress=function(e){if(this.xhr)if(200===this.xhr.status){this.readyState==this.CONNECTING&&(this.dispatchEvent(new CustomEvent("open")),this._setReadyState(this.OPEN));var t=this.xhr.responseText.substring(this.progress);this.progress+=t.length,t.split(/(\r\n|\r|\n){2}/g).forEach(function(e){0===e.trim().length?(this.dispatchEvent(this._parseEventChunk(this.chunk.trim())),this.chunk=""):this.chunk+=e}.bind(this))}else this._onStreamFailure(e)},this._onStreamLoaded=function(e){this._onStreamProgress(e),this.dispatchEvent(this._parseEventChunk(this.chunk)),this.chunk=""},this._parseEventChunk=function(e){if(!e||0===e.length)return null;var t={id:null,retry:null,data:"",event:"message"};e.split(/\n|\r\n|\r/).forEach(function(e){var n=(e=e.trimRight()).indexOf(this.FIELD_SEPARATOR);if(!(n<=0)){var r=e.substring(0,n);if(r in t){var o=e.substring(n+1).trimLeft();"data"===r?t[r]+=o:t[r]=o}}}.bind(this));var n=new CustomEvent(t.event);return n.data=t.data,n.id=t.id,n},this._checkStreamClosed=function(){this.xhr&&this.xhr.readyState===XMLHttpRequest.DONE&&this._setReadyState(this.CLOSED)},this.stream=function(){for(var e in this._setReadyState(this.CONNECTING),this.xhr=new XMLHttpRequest,this.xhr.addEventListener("progress",this._onStreamProgress.bind(this)),this.xhr.addEventListener("load",this._onStreamLoaded.bind(this)),this.xhr.addEventListener("readystatechange",this._checkStreamClosed.bind(this)),this.xhr.addEventListener("error",this._onStreamFailure.bind(this)),this.xhr.addEventListener("abort",this._onStreamAbort.bind(this)),this.xhr.open(this.method,this.url),this.headers)this.xhr.setRequestHeader(e,this.headers[e]);this.xhr.withCredentials=this.withCredentials,this.xhr.send(this.payload)},this.close=function(){this.readyState!==this.CLOSED&&(this.xhr.abort(),this.xhr=null,this._setReadyState(this.CLOSED))}};zC=BC;c=i("fYo6y"),c=i("fYo6y");const KC="ToastProvider",[UC,VC,HC]=au("Toast"),[$C,WC]=Gs("Toast",[HC]),[qC,YC]=$C(KC),GC=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[l,s]=(0,c.useState)(null),[u,f]=(0,c.useState)(0),d=(0,c.useRef)(!1),p=(0,c.useRef)(!1);return(0,c.createElement)(UC.Provider,{scope:t},(0,c.createElement)(qC,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:s,onToastAdd:(0,c.useCallback)((()=>f((e=>e+1))),[]),onToastRemove:(0,c.useCallback)((()=>f((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p},a))};GC.propTypes={label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){return new Error(`Invalid prop \`label\` supplied to \`${KC}\`. Expected non-empty \`string\`.`)}return null}};const JC="ToastViewport",XC=["F8"],QC="toast.viewportPause",ZC="toast.viewportResume",eO=(0,c.forwardRef)(((e,t)=>{const{__scopeToast:n,hotkey:r=XC,label:o="Notifications ({hotkey})",...i}=e,a=YC(JC,n),l=VC(n),s=(0,c.useRef)(null),u=(0,c.useRef)(null),f=(0,c.useRef)(null),d=(0,c.useRef)(null),p=Ys(t,d,a.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=a.toastCount>0;(0,c.useEffect)((()=>{const e=e=>{var t;r.every((t=>e[t]||e.code===t))&&(null===(t=d.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r]),(0,c.useEffect)((()=>{const e=s.current,t=d.current;if(m&&e&&t){const n=()=>{if(!a.isClosePausedRef.current){const e=new CustomEvent(QC);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){const e=new CustomEvent(ZC);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},i=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",i),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[m,a.isClosePausedRef]);const g=(0,c.useCallback)((({tabbingDirection:e})=>{const t=l().map((t=>{const n=t.ref.current,r=[n,...bO(n)];return"forwards"===e?r:r.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[l]);return(0,c.useEffect)((()=>{const e=d.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,a=t.shiftKey;var r;if(t.target===e&&a)return void(null===(r=u.current)||void 0===r||r.focus());const l=g({tabbingDirection:a?"backwards":"forwards"}),s=l.findIndex((e=>e===n));var o,i;if(xO(l.slice(s+1)))t.preventDefault();else a?null===(o=u.current)||void 0===o||o.focus():null===(i=f.current)||void 0===i||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[l,g]),(0,c.createElement)(xu,{ref:s,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:m?void 0:"none"}},m&&(0,c.createElement)(nO,{ref:u,onFocusFromOutsideViewport:()=>{xO(g({tabbingDirection:"forwards"}))}}),(0,c.createElement)(UC.Slot,{scope:n},(0,c.createElement)(ou.ol,$s({tabIndex:-1},i,{ref:p}))),m&&(0,c.createElement)(nO,{ref:f,onFocusFromOutsideViewport:()=>{xO(g({tabbingDirection:"backwards"}))}}))})),tO="ToastFocusProxy",nO=(0,c.forwardRef)(((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=YC(tO,n);return(0,c.createElement)(lh,$s({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null!==(t=i.viewport)&&void 0!==t&&t.contains(n))&&r()}}))})),rO="Toast",oO=(0,c.forwardRef)(((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[l=!0,s]=Qs({prop:r,defaultProp:o,onChange:i});return(0,c.createElement)(kf,{present:n||l},(0,c.createElement)(lO,$s({open:l},a,{ref:t,onClose:()=>s(!1),onPause:Xs(e.onPause),onResume:Xs(e.onResume),onSwipeStart:Ws(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:Ws(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:Ws(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:Ws(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),s(!1)}))})))})),[iO,aO]=$C(rO,{onClose(){}}),lO=(0,c.forwardRef)(((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:l,onPause:u,onResume:f,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:h,onSwipeEnd:m,...g}=e,v=YC(rO,n),[y,b]=(0,c.useState)(null),x=Ys(t,(e=>b(e))),w=(0,c.useRef)(null),S=(0,c.useRef)(null),k=o||v.duration,E=(0,c.useRef)(0),_=(0,c.useRef)(k),C=(0,c.useRef)(0),{onToastAdd:O,onToastRemove:P}=v,j=Xs((()=>{var e;(null==y?void 0:y.contains(document.activeElement))&&(null===(e=v.viewport)||void 0===e||e.focus()),a()})),T=(0,c.useCallback)((e=>{e&&e!==1/0&&(window.clearTimeout(C.current),E.current=(new Date).getTime(),C.current=window.setTimeout(j,e))}),[j]);(0,c.useEffect)((()=>{const e=v.viewport;if(e){const t=()=>{T(_.current),null==f||f()},n=()=>{const e=(new Date).getTime()-E.current;_.current=_.current-e,window.clearTimeout(C.current),null==u||u()};return e.addEventListener(QC,n),e.addEventListener(ZC,t),()=>{e.removeEventListener(QC,n),e.removeEventListener(ZC,t)}}}),[v.viewport,k,u,f,T]),(0,c.useEffect)((()=>{i&&!v.isClosePausedRef.current&&T(k)}),[i,k,v.isClosePausedRef,T]),(0,c.useEffect)((()=>(O(),()=>P())),[O,P]);const M=(0,c.useMemo)((()=>y?gO(y):null),[y]);return v.viewport?(0,c.createElement)(c.Fragment,null,M&&(0,c.createElement)(sO,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0},M),(0,c.createElement)(iO,{scope:n,onClose:j},(0,s.createPortal)((0,c.createElement)(UC.ItemSlot,{scope:n},(0,c.createElement)(bu,{asChild:!0,onEscapeKeyDown:Ws(l,(()=>{v.isFocusedToastEscapeKeyDownRef.current||j(),v.isFocusedToastEscapeKeyDownRef.current=!1}))},(0,c.createElement)(ou.li,$s({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection},g,{ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ws(e.onKeyDown,(e=>{"Escape"===e.key&&(null==l||l(e.nativeEvent),e.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,j()))})),onPointerDown:Ws(e.onPointerDown,(e=>{0===e.button&&(w.current={x:e.clientX,y:e.clientY})})),onPointerMove:Ws(e.onPointerMove,(e=>{if(!w.current)return;const t=e.clientX-w.current.x,n=e.clientY-w.current.y,r=Boolean(S.current),o=["left","right"].includes(v.swipeDirection),i=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,l=o?0:i(0,n),s="touch"===e.pointerType?10:2,u={x:a,y:l},c={originalEvent:e,delta:u};r?(S.current=u,vO("toast.swipeMove",p,c,{discrete:!1})):yO(u,v.swipeDirection,s)?(S.current=u,vO("toast.swipeStart",d,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>s||Math.abs(n)>s)&&(w.current=null)})),onPointerUp:Ws(e.onPointerUp,(e=>{const t=S.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),S.current=null,w.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};yO(t,v.swipeDirection,v.swipeThreshold)?vO("toast.swipeEnd",m,r,{discrete:!0}):vO("toast.swipeCancel",h,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),v.viewport))):null}));lO.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${rO}\`. Expected \`foreground | background\`.`)}return null}};const sO=e=>{const{__scopeToast:t,children:n,...r}=e,o=YC(rO,t),[i,a]=(0,c.useState)(!1),[l,s]=(0,c.useState)(!1);return function(e=(()=>{})){const t=Xs(e);Au((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>a(!0))),(0,c.useEffect)((()=>{const e=window.setTimeout((()=>s(!0)),1e3);return()=>window.clearTimeout(e)}),[]),l?null:(0,c.createElement)(Sf,{asChild:!0},(0,c.createElement)(lh,r,i&&(0,c.createElement)(c.Fragment,null,o.label," ",n)))},uO=(0,c.forwardRef)(((e,t)=>{const{__scopeToast:n,...r}=e;return(0,c.createElement)(ou.div,$s({},r,{ref:t}))})),cO=(0,c.forwardRef)(((e,t)=>{const{__scopeToast:n,...r}=e;return(0,c.createElement)(ou.div,$s({},r,{ref:t}))})),fO="ToastAction",dO=(0,c.forwardRef)(((e,t)=>{const{altText:n,...r}=e;return n?(0,c.createElement)(mO,{altText:n,asChild:!0},(0,c.createElement)(hO,$s({},r,{ref:t}))):null}));dO.propTypes={altText:e=>e.altText?null:new Error(`Missing prop \`altText\` expected on \`${fO}\``)};const pO="ToastClose",hO=(0,c.forwardRef)(((e,t)=>{const{__scopeToast:n,...r}=e,o=aO(pO,n);return(0,c.createElement)(mO,{asChild:!0},(0,c.createElement)(ou.button,$s({type:"button"},r,{ref:t,onClick:Ws(e.onClick,o.onClose)})))})),mO=(0,c.forwardRef)(((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return(0,c.createElement)(ou.div,$s({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))}));function gO(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...gO(e))}})),t}function vO(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?iu(o,i):o.dispatchEvent(i)}const yO=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};function bO(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function xO(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}const wO=eO,SO=oO,kO=uO,EO=cO,_O=dO,CO=hO,OO=GC,PO=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(wO,{ref:n,className:ul("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:bottom-0 sm:right-0 sm:flex-col md:max-w-[420px]",e),...t})));PO.displayName=wO.displayName;const jO=ya("data-[swipe=move]:transition-none grow-1 group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full mt-4 data-[state=closed]:slide-out-to-right-full dark:border-slate-700 last:mt-0 sm:last:mt-4",{variants:{variant:{default:"bg-white border-slate-200 dark:bg-slate-800 dark:border-slate-700",destructive:"group destructive bg-red-600 text-white border-red-600 dark:border-red-600"}},defaultVariants:{variant:"default"}}),TO=c.forwardRef((({className:e,variant:t,...n},r)=>(0,l.jsx)(SO,{ref:r,className:ul(jO({variant:t}),e),...n})));TO.displayName=SO.displayName;c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(_O,{ref:n,className:ul("inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-slate-200 bg-transparent px-3 text-sm font-medium transition-colors hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-red-100 group-[.destructive]:hover:border-slate-50 group-[.destructive]:hover:bg-red-100 group-[.destructive]:hover:text-red-600 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 dark:border-slate-700 dark:text-slate-100 dark:hover:bg-slate-700 dark:hover:text-slate-100 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900 dark:data-[state=open]:bg-slate-800",e),...t}))).displayName=_O.displayName;const MO=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(CO,{ref:n,className:ul("absolute top-2 right-2 rounded-md p-1 text-slate-500 opacity-0 transition-opacity hover:text-slate-900 focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 dark:hover:text-slate-50",e),"toast-close":"",...t,children:(0,l.jsx)(ah,{className:"h-4 w-4"})})));MO.displayName=CO.displayName;const DO=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(kO,{ref:n,className:ul("text-base font-semibold font-display",e),...t})));DO.displayName=kO.displayName;const RO=c.forwardRef((({className:e,...t},n)=>(0,l.jsx)(EO,{ref:n,className:ul("text-sm opacity-90 font-display",e),...t})));function AO(){const{toasts:e}=Ng();return(0,l.jsxs)(OO,{children:[e.map((function({id:e,title:t,description:n,action:r,...o}){return(0,l.jsxs)(TO,{...o,children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[t&&(0,l.jsx)(DO,{children:t}),n&&(0,l.jsx)(RO,{children:n})]}),r,(0,l.jsx)(MO,{})]},e)})),(0,l.jsx)(PO,{})]})}RO.displayName=EO.displayName;const NO={temperature:1,maximumLength:200,topP:.9,topK:0,repetitionPenalty:1,frequencyPenalty:0,presencePenalty:0,stopSequences:[],highlightModels:!0,showProbabilities:!1},IO={prompt:"",prePrompt:"",internalState:null},LO={show:!1,entries:[],current:null},FO={PAGES:{playground:{history:LO,editor:{...IO,previousInternalState:null},modelsState:[],parameters:NO},compare:{history:LO,editor:IO,modelsState:[],parameters:{...NO,selectAllModels:!1,showParametersTable:!1}}},MODELS:[]};let zO=null;try{if(zO=JSON.parse(localStorage.getItem("openplayground_settings")),!zO)throw new Error("no settings")}catch(e){localStorage.clear(),zO={}}finally{zO.pages||(zO.pages=FO.PAGES),zO.models||(zO.models=FO.MODELS)}FO.PAGES=zO.pages,FO.MODELS=zO.models;const BO=n(c).createContext({}),KO=n(c).createContext({}),UO=n(c).createContext([]),VO=n(c).createContext({}),HO=n(c).createContext({}),$O=n(c).createContext(FO.MODELS),WO=()=>{let e=JSON.stringify(zO);if(2*e.length/1024/1024>=5){const t=confirm("Local Storage is full. Do you wish to download your history prior to clearing storage?"),n=zO.pages.playground.history.entries.shift();if(t){const e=document.createElement("a"),t=zO.pages.playground.history.entries.map((e=>{const t=e.modelsState.find((({selected:e})=>e)),n=f.EditorState.createWithContent((0,f.convertFromRaw)(e.editor.internalState)).getCurrentContent().getPlainText();return{model:t.name,date:e.date,timestamp:e.timestamp,text:n,parameters:e.parameters}})),n=new Blob([JSON.stringify(t)],{type:"application/json"});e.href=URL.createObjectURL(n),e.download="history.json",document.body.appendChild(e),e.click()}zO.pages.playground.history.entries=[n],zO.pages.playground.history.current=n,e=JSON.stringify(zO)}localStorage.setItem("openplayground_settings",e)};const qO=({children:e})=>{const t=n(c).useRef(!1),r=n(c).useRef([]),o=n(c).useRef([]),i=n(c).useRef([]);(0,c.useEffect)((()=>{const e=new zC("/api/notifications");e.addEventListener("notification",(e=>{const t=JSON.parse(e.data);i.current.forEach((e=>{e(t.message)}))})),e.stream()}),[]);const a={getAll:async()=>(await fetch("/api/models")).json(),getAllEnabled:async()=>(await fetch("/api/models-enabled")).json(),toggle:async(e,t)=>(await fetch(`/api/provider/${e}/model/${encodeURIComponent(t)}/toggle-status`)).json(),search:async(e,t)=>(await fetch(`/api/provider/${e}/models/search?query=${t}`)).json()},s={subscribe:e=>{i.current.push(e)},unsubscribe:e=>{i.current=i.current.filter((t=>t!==e))}},u={setAPIKey:async(e,t)=>(await fetch(`/api/provider/${e}/api-key`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:t})})).json(),getAll:async()=>(await fetch("/api/providers")).json(),getAllWithModels:async()=>(await fetch("/api/providers-with-key-and-models")).json()},f={subscribeTextCompletion:e=>{r.current.push(e)},unsubscribeTextCompletion:e=>{r.current=r.current.filter((t=>t!==e))},textCompletionRequest:function({prompt:e,models:t}){return h("/api/inference/text/stream",{prompt:e,models:t},r)},subscribeChatCompletion:e=>{o.current.push(e)},unsubscribeChatCompletion:e=>{o.current=o.current.filter((t=>t!==e))},chatCompletion:function(e,t){return h("/api/inference/chat/stream",{prompt:e,model:t},o)}},[d,p]=n(c).useState({Model:a,Notifications:s,Provider:u,Inference:f});function h(e,n,r){t.current=!0;let o=null;function i(){o&&o.close()}window.addEventListener("beforeunload",i);const a=function(e){const t={};return e.forEach((e=>{t[e.tag]=[]})),t}(n.models);return o=new zC(e,{payload:JSON.stringify(n)}),function(e,t,n,r,o){e.onopen=async()=>{g(t,n,o)},e.addEventListener("infer",(e=>{let n=JSON.parse(e.data);t[n.modelTag].push(n)})),e.addEventListener("status",(e=>{o.current.forEach((t=>t({event:"status",data:JSON.parse(e.data)})))})),e.addEventListener("error",(t=>{n.error_occured=!0;try{const e=JSON.parse(t.data);o.current.forEach((t=>t({event:"error",data:e.status})))}catch(e){o.current.forEach((e=>e({event:"error",data:"Unknown error"})))}m(e,n,r,o)})),e.addEventListener("abort",(()=>{n.error_occured=!0,m(e,n,r,o)})),e.addEventListener("readystatechange",(t=>{2===t.readyState&&m(e,n,r,o)})),e.stream()}(o,a,{error_occured:!1,request_complete:!1},i,r),()=>{o&&o.close()}}function m(e,t,n,r){t.request_complete=!0,r.current.forEach((e=>e({event:"close",meta:{error:t.error_occured}}))),window.removeEventListener("beforeunload",n)}function g(e,t,n){setTimeout((()=>{let r=!1,o={};for(let t in e)e[t].length>0&&(r=!0,o[t]=e[t].splice(0,e[t].length));r&&n.current.forEach((e=>e({event:"completion",data:o}))),t.request_complete||g(e,t,n)}),20)}return(0,l.jsx)(BO.Provider,{value:d,children:e})},YO=({page:e,children:t})=>{const r=n(c).useContext(BO),[o,i]=n(c).useState(FO.PAGES[e].editor),[a,s]=n(c).useState(FO.PAGES[e].parameters);let[u,f]=n(c).useState(FO.PAGES[e].modelsState);const[d,p]=n(c).useState(FO.MODELS),[h,m]=n(c).useState(FO.PAGES[e].history);for(const{name:e}of u)d[e]||(u=u.filter((({name:t})=>t!==e)));const g=n(c).useRef(o),v=n(c).useRef(h);n(c).useEffect((()=>{v.current=h,g.current=o}),[h,o]);const{toast:y}=Ng();(0,c.useEffect)((()=>{const e=({event:e,data:t,meta:n})=>{switch(console.warn("NOTIFICATION CALLBACK",e,t),e){case"modelAdded":y({title:"New Model is available!",description:`${t.provider}'s model ${t.model} has been added to the playground!`}),b().catch(console.error);break;case"modelRemoved":y({title:"Model removed!",description:`${t.provider}'s model ${t.model} has been removed from the playground!`}),b().catch(console.error);break;default:console.log("Unknown event????",e,t)}};return r.Notifications.subscribe(e),()=>{r.Notifications.unsubscribe(e)}}),[]);const b=async()=>{const t=await r.Model.getAllEnabled(),n={},o=zO.pages[e].modelsState;for(const[r,i]of Object.entries(t)){const t=o.find((e=>e.name===r));t?t.parameters||(t.capabilites=i.capabilities,t.provider=i.provider,t.tag=r,t.parameters=Object.entries(i.parameters).reduce(((e,[t,n])=>(e[t]=n.value,e)),{})):o.push({name:r,tag:r,capabilities:i.capabilities,provider:i.provider,parameters:Object.entries(i.parameters).reduce(((e,[t,n])=>(e[t]=n.value,e)),{}),enabled:"compare"!==e,selected:!1}),n[r]={name:r,capabilities:i.capabilities,defaultParameters:i.parameters,provider:i.provider}}const i=Object.keys(t);for(const{name:e}of o)i.includes(e)||o.splice(o.findIndex((t=>t.name===e)),1);S(n),k(o)},x=function(e,t){const r=n(c).useRef(null);return(0,c.useEffect)((()=>()=>{clearTimeout(r.current)}),[]),function(...n){clearTimeout(r.current),r.current=setTimeout((()=>{e(...n)}),t)}}(WO,3e3),w=t=>{const n={...NO,...t};zO.pages[e].parameters=n,x(),s(n)},S=e=>{zO.models=e,x(),p(e)},k=t=>{zO.pages[e].modelsState=t,x(),f(t)};return n(c).useEffect((()=>{b().catch(console.error)}),[]),(0,l.jsx)(HO.Provider,{value:{historyContext:h,selectHistoryItem:t=>{zO.pages[e].history.current=t,i(t.editor),m(zO.pages[e].history),w(t.parameters),k(t.modelsState)},addHistoryEntry:t=>{if(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent))return;const n=new Date,r=n.getFullYear(),o=String(n.getMonth()+1).padStart(2,"0"),i=String(n.getDate()).padStart(2,"0"),a={timestamp:n.getTime(),date:`${r}-${o}-${i}`,editor:{...g.current,internalState:t},parameters:zO.pages[e].parameters,modelsState:zO.pages[e].modelsState},l={...zO.pages[e].history,entries:[a,...zO.pages[e].history.entries],current:a};m(l),zO.pages[e].history=l,x()},removeHistoryEntry:t=>{const n={...zO.pages[e].history,entries:zO.pages[e].history.entries.filter((e=>e!==t))};m(n),zO.pages[e].history=n,x()},clearHistory:()=>{const t={entries:[],show:!1,current:null};m(t),zO.pages[e].history=t,x()},toggleShowHistory:t=>{const n={...zO.pages[e].history,show:null==t?!zO.pages[e].history.show:t};m(n),zO.pages[e].history=n,x()}},children:(0,l.jsx)(KO.Provider,{value:{editorContext:o,setEditorContext:(t,n=!1)=>{zO.pages[e].editor={...zO.pages[e].editor,...t};const r={...zO.pages[e].editor,internalState:null};i(r),n?WO():x()}},children:(0,l.jsx)(VO.Provider,{value:{parametersContext:a,setParametersContext:w},children:(0,l.jsx)($O.Provider,{value:{modelsContext:d,setModelsContext:S},children:(0,l.jsx)(UO.Provider,{value:{modelsStateContext:u,setModelsStateContext:k},children:t})})})})})};function GO(){return(0,l.jsxs)(Ts,{children:[(0,l.jsx)(Ps,{path:"/",element:(0,l.jsx)(qO,{children:(0,l.jsxs)(YO,{page:"playground",children:[(0,l.jsx)(Q_,{}),(0,l.jsx)(AO,{})]},"playground")})}),(0,l.jsx)(Ps,{path:"/compare",element:(0,l.jsx)(qO,{children:(0,l.jsxs)(YO,{page:"compare",children:[(0,l.jsx)(TC,{}),(0,l.jsx)(AO,{})]},"compare")})}),(0,l.jsx)(Ps,{path:"/settings",element:(0,l.jsxs)(qO,{children:[(0,l.jsx)(FC,{}),(0,l.jsx)(AO,{})]})})]})}a(document.getElementById("app")).render((0,l.jsx)((function(){return(0,l.jsx)(Fs,{children:(0,l.jsx)(GO,{})})}),{}));