gpt-researcher-ui
Version:
GPT Researcher frontend as a React component
25 lines • 422 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("react-hot-toast"),n=require("remark"),r=require("remark-html"),o=require("react-dom");function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function a(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var s=i(t),c=a(t),l=i(r),p=function(){return p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},p.apply(this,arguments)};function u(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function d(t,e){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function f(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"==typeof SuppressedError&&SuppressedError;var h,g={exports:{}},v={};var x,y,b={};
/**
* @license React
* react-jsx-runtime.development.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.
*/function w(){return x||(x=1,"production"!==process.env.NODE_ENV&&function(){var t=s.default,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=Symbol.iterator;var g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=g.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(e+="%s",n=n.concat([o]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,n)}var x;function y(t){return t.displayName||"Context"}function w(t){if(null==t)return null;if("number"==typeof t.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case p:return"Suspense";case u:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return y(t)+".Consumer";case a:return y(t._context)+".Provider";case l:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:w(t.type)||"Memo";case f:var s=t,m=s._payload,h=s._init;try{return w(h(m))}catch(t){return null}}return null}x=Symbol.for("react.module.reference");var k,j,E,S,_,P,O,C=Object.assign,T=0;function A(){}A.__reactDisabledLog=!0;var R,N=g.ReactCurrentDispatcher;function D(t,e,n){if(void 0===R)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);R=r&&r[1]||""}return"\n"+R+t}var L,M=!1,I="function"==typeof WeakMap?WeakMap:Map;function F(t,e){if(!t||M)return"";var n,r=L.get(t);if(void 0!==r)return r;M=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=N.current,N.current=null,function(){if(0===T){k=console.log,j=console.info,E=console.warn,S=console.error,_=console.group,P=console.groupCollapsed,O=console.groupEnd;var t={configurable:!0,enumerable:!0,value:A,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}T++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),c=n.stack.split("\n"),l=s.length-1,p=c.length-1;l>=1&&p>=0&&s[l]!==c[p];)p--;for(;l>=1&&p>=0;l--,p--)if(s[l]!==c[p]){if(1!==l||1!==p)do{if(l--,--p<0||s[l]!==c[p]){var u="\n"+s[l].replace(" at new "," at ");return t.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",t.displayName)),"function"==typeof t&&L.set(t,u),u}}while(l>=1&&p>=0);break}}}finally{M=!1,N.current=o,function(){if(0==--T){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},t,{value:k}),info:C({},t,{value:j}),warn:C({},t,{value:E}),error:C({},t,{value:S}),group:C({},t,{value:_}),groupCollapsed:C({},t,{value:P}),groupEnd:C({},t,{value:O})})}T<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=t?t.displayName||t.name:"",f=d?D(d):"";return"function"==typeof t&&L.set(t,f),f}function z(t,e,n){if(null==t)return"";if("function"==typeof t)return F(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return D(t);switch(t){case p:return D("Suspense");case u:return D("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case l:return F(t.render,!1);case d:return z(t.type,e,n);case f:var r=t,o=r._payload,i=r._init;try{return z(i(o),e,n)}catch(t){}}return""}L=new I;var B=Object.prototype.hasOwnProperty,V={},U=g.ReactDebugCurrentFrame;function q(t){if(t){var e=t._owner,n=z(t.type,t._source,e?e.type:null);U.setExtraStackFrame(n)}else U.setExtraStackFrame(null)}var $=Array.isArray;function W(t){return $(t)}function H(t){return""+t}function G(t){if(function(t){try{return H(t),!1}catch(t){return!0}}(t))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),H(t)}var X,Y,K,J=g.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};K={};function Q(t,n,r,o,i){var a,s={},c=null,l=null;for(a in void 0!==r&&(G(r),c=""+r),function(t){if(B.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(n)&&(G(n.key),c=""+n.key),function(t){if(B.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(n)&&(l=n.ref,function(t,e){if("string"==typeof t.ref&&J.current&&e&&J.current.stateNode!==e){var n=w(J.current.type);K[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(J.current.type),t.ref),K[n]=!0)}}(n,i)),n)B.call(n,a)&&!Z.hasOwnProperty(a)&&(s[a]=n[a]);if(t&&t.defaultProps){var p=t.defaultProps;for(a in p)void 0===s[a]&&(s[a]=p[a])}if(c||l){var u="function"==typeof t?t.displayName||t.name||"Unknown":t;c&&function(t,e){var n=function(){X||(X=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(s,u),l&&function(t,e){var n=function(){Y||(Y=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(s,u)}return function(t,n,r,o,i,a,s){var c={$$typeof:e,type:t,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(t,c,l,i,o,J.current,s)}var tt,et=g.ReactCurrentOwner,nt=g.ReactDebugCurrentFrame;function rt(t){if(t){var e=t._owner,n=z(t.type,t._source,e?e.type:null);nt.setExtraStackFrame(n)}else nt.setExtraStackFrame(null)}function ot(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function it(){if(et.current){var t=w(et.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}tt=!1;var at={};function st(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=it();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!at[n]){at[n]=!0;var r="";t&&t._owner&&t._owner!==et.current&&(r=" It was passed a child from "+w(t._owner.type)+"."),rt(t),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),rt(null)}}}function ct(t,e){if("object"==typeof t)if(W(t))for(var n=0;n<t.length;n++){var r=t[n];ot(r)&&st(r,e)}else if(ot(t))t._store&&(t._store.validated=!0);else if(t){var o=function(t){if(null===t||"object"!=typeof t)return null;var e=h&&t[h]||t["@@iterator"];return"function"==typeof e?e:null}(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)ot(i.value)&&st(i.value,e)}}function lt(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=w(n);!function(t,e,n,r,o){var i=Function.call.bind(B);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}!s||s instanceof Error||(q(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in V)&&(V[s.message]=!0,q(o),v("Failed %s type: %s",n,s.message),q(null))}}(e,t.props,"prop",r,t)}else if(void 0!==n.PropTypes&&!tt){tt=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var pt={};function ut(t,n,s,h,g,y){var b=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===p||t===u||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===x||void 0!==t.getModuleId)}(t);if(!b){var k="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,E=function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(g);k+=E||it(),null===t?j="null":W(t)?j="array":void 0!==t&&t.$$typeof===e?(j="<"+(w(t.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof t,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var S=Q(t,n,s,g,y);if(null==S)return S;if(b){var _=n.children;if(void 0!==_)if(h)if(W(_)){for(var P=0;P<_.length;P++)ct(_[P],t);Object.freeze&&Object.freeze(_)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ct(_,t)}if(B.call(n,"key")){var O=w(t),C=Object.keys(n).filter((function(t){return"key"!==t})),T=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!pt[O+T])v('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',T,O,C.length>0?"{"+C.join(": ..., ")+": ...}":"{}",O),pt[O+T]=!0}return t===r?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){rt(t),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),rt(null);break}}null!==t.ref&&(rt(t),v("Invalid attribute `ref` supplied to `React.Fragment`."),rt(null))}(S):lt(S),S}var dt=function(t,e,n){return ut(t,e,n,!1)},ft=function(t,e,n){return ut(t,e,n,!0)};b.Fragment=r,b.jsx=dt,b.jsxs=ft}()),b}function k(){return y||(y=1,"production"===process.env.NODE_ENV?g.exports=function(){if(h)return v;h=1;var t=s.default,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(t,n,a){var s,c={},l=null,p=null;for(s in void 0!==a&&(l=""+a),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(p=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(c[s]=n[s]);if(t&&t.defaultProps)for(s in n=t.defaultProps)void 0===c[s]&&(c[s]=n[s]);return{$$typeof:e,type:t,key:l,ref:p,props:c,_owner:o.current}}return v.Fragment=n,v.jsx=a,v.jsxs=a,v}():g.exports=w()),g.exports}var j=k();function E(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}E('@import "./styles/markdown.css";@import "./app/globals.css";@import "./components/Settings/Settings.css";*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }\n/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{margin-left:auto;margin-right:auto;width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:898px){.container{max-width:898px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-inset-0\\.5{inset:-.125rem}.-inset-1{inset:-.25rem}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-8{bottom:2rem}.left-0{left:0}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.right-8{right:2rem}.top-0{top:0}.top-1\\/2{top:50%}.top-4{top:1rem}.top-\\[20px\\]{top:20px}.-z-20{z-index:-20}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1000\\]{z-index:1000}.z-\\[1001\\]{z-index:1001}.z-\\[999\\]{z-index:999}.order-1{order:1}.order-2{order:2}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.my-8{margin-bottom:2rem;margin-top:2rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-auto{margin-left:auto}.mr-0\\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-\\[-60px\\]{margin-top:-60px}.line-clamp-2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.size-6{height:1.5rem;width:1.5rem}.size-\\[24px\\]{height:24px;width:24px}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[12px\\]{height:12px}.h-\\[38px\\]{height:38px}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[79px\\]{height:79px}.h-\\[calc\\(100vh-150px\\)\\]{height:calc(100vh - 150px)}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[250px\\]{max-height:250px}.max-h-\\[400px\\]{max-height:400px}.max-h-\\[500px\\]{max-height:500px}.max-h-\\[90vh\\]{max-height:90vh}.min-h-\\[100vh\\]{min-height:100vh}.min-h-\\[200px\\]{min-height:200px}.min-h-\\[4em\\]{min-height:4em}.min-h-\\[56px\\]{min-height:56px}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[80vh\\]{min-height:80vh}.min-h-screen{min-height:100vh}.w-1\\.5{width:.375rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[18px\\]{width:18px}.w-\\[260px\\]{width:260px}.w-\\[50px\\]{width:50px}.w-\\[70\\%\\]{width:70%}.w-\\[85\\%\\]{width:85%}.w-\\[90\\%\\]{width:90%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[120px\\]{min-width:120px}.min-w-\\[80px\\]{min-width:80px}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-\\[192px\\]{max-width:192px}.max-w-\\[760px\\]{max-width:760px}.max-w-\\[890px\\]{max-width:890px}.max-w-\\[90vw\\]{max-width:90vw}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes gradient-x{0%,to{background-position:0 50%}50%{background-position:100% 50%}}.animate-gradient-x{animation:gradient-x 10s ease infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[15px\\]{gap:15px}.gap-\\[5px\\]{gap:5px}.gap-\\[6px\\]{gap:6px}.gap-\\[7px\\]{gap:7px}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-\\[15px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(15px*var(--tw-space-y-reverse));margin-top:calc(15px*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-\\[\\#E5E5E5\\]>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 229 229/var(--tw-divide-opacity,1))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(243 244 246/var(--tw-divide-opacity,1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-\\[3px\\]{border-radius:3px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-\\[\\#C1C1C1\\]{--tw-border-opacity:1;border-color:rgb(193 193 193/var(--tw-border-opacity,1))}.border-\\[\\#C2C2C2\\]{--tw-border-opacity:1;border-color:rgb(194 194 194/var(--tw-border-opacity,1))}.border-gray-700\\/30{border-color:rgba(55,65,81,.3)}.border-gray-700\\/40{border-color:rgba(55,65,81,.4)}.border-gray-800{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.border-gray-800\\/60{border-color:rgba(31,41,55,.6)}.border-gray-900{--tw-border-opacity:1;border-color:rgb(17 24 39/var(--tw-border-opacity,1))}.border-teal-400\\/20{border-color:rgba(45,212,191,.2)}.border-teal-500\\/20{border-color:rgba(20,184,166,.2)}.border-teal-500\\/30{border-color:rgba(20,184,166,.3)}.bg-\\[\\#EDEDEA\\]{--tw-bg-opacity:1;background-color:rgb(237 237 234/var(--tw-bg-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\\/20{background-color:rgba(0,0,0,.2)}.bg-black\\/30{background-color:rgba(0,0,0,.3)}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-cyan-600{--tw-bg-opacity:1;background-color:rgb(8 145 178/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-300\\/20{background-color:rgba(209,213,219,.2)}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-800\\/30{background-color:rgba(31,41,55,.3)}.bg-gray-800\\/60{background-color:rgba(31,41,55,.6)}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-gray-900\\/80{background-color:rgba(17,24,39,.8)}.bg-gray-900\\/95{background-color:rgba(17,24,39,.95)}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-teal-400{--tw-bg-opacity:1;background-color:rgb(45 212 191/var(--tw-bg-opacity,1))}.bg-teal-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity,1))}.bg-teal-600{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-opacity-20{--tw-bg-opacity:0.2}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-opacity-75{--tw-bg-opacity:0.75}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#0cdbb6\\]{--tw-gradient-from:#0cdbb6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(12,219,182,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-gray-800\\/60{--tw-gradient-from:rgba(31,41,55,.6) var(--tw-gradient-from-position);--tw-gradient-to:rgba(31,41,55,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-400{--tw-gradient-from:#2dd4bf var(--tw-gradient-from-position);--tw-gradient-to:rgba(45,212,191,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from:#14b8a6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-500\\/15{--tw-gradient-from:rgba(20,184,166,.15) var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-500\\/20{--tw-gradient-from:rgba(20,184,166,.2) var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-600{--tw-gradient-from:#0d9488 var(--tw-gradient-from-position);--tw-gradient-to:rgba(13,148,136,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-900\\/30{--tw-gradient-from:rgba(19,78,74,.3) var(--tw-gradient-from-position);--tw-gradient-to:rgba(19,78,74,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-\\[\\#1fd0f0\\]{--tw-gradient-to:rgba(31,208,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#1fd0f0 var(--tw-gradient-via-position),var(--tw-gradient-to)}.via-cyan-500{--tw-gradient-to:rgba(6,182,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#06b6d4 var(--tw-gradient-via-position),var(--tw-gradient-to)}.via-cyan-500\\/15{--tw-gradient-to:rgba(6,182,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(6,182,212,.15) var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-\\[\\#06dbee\\]{--tw-gradient-to:#06dbee var(--tw-gradient-to-position)}.to-blue-500\\/10{--tw-gradient-to:rgba(59,130,246,.1) var(--tw-gradient-to-position)}.to-blue-500\\/20{--tw-gradient-to:rgba(59,130,246,.2) var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to:#2563eb var(--tw-gradient-to-position)}.to-cyan-400{--tw-gradient-to:#22d3ee var(--tw-gradient-to-position)}.to-cyan-900\\/30{--tw-gradient-to:rgba(22,78,99,.3) var(--tw-gradient-to-position)}.to-gray-700\\/40{--tw-gradient-to:rgba(55,65,81,.4) var(--tw-gradient-to-position)}.to-teal-600{--tw-gradient-to:#0d9488 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\\[20px\\]{padding-bottom:20px}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-5{padding-right:1.25rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3\\.5{padding-top:.875rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-\\[120px\\]{padding-top:120px}.pt-\\[60px\\]{padding-top:60px}.text-left{text-align:left}.text-center{text-align:center}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\\[15px\\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.leading-\\[152\\%\\]{line-height:152%}.leading-\\[152\\.5\\%\\]{line-height:152.5%}.leading-\\[normal\\]{line-height:normal}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-\\[\\#1B1B16\\]{--tw-text-opacity:1;color:rgb(27 27 22/var(--tw-text-opacity,1))}.text-\\[\\#1B1B16\\]\\/30{color:rgba(27,27,22,.3)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-300\\/60{color:rgba(209,213,219,.6)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-teal-100\\/90{color:rgba(204,251,241,.9)}.text-teal-200{--tw-text-opacity:1;color:rgb(153 246 228/var(--tw-text-opacity,1))}.text-teal-400{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity,1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\\[2px_2px_38px_0px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)\\2c 0px_-2px_4px_0px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)_inset\\2c 1px_2px_4px_0px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)_inset\\]{--tw-shadow:2px 2px 38px 0px rgba(0,0,0,.25),0px -2px 4px 0px rgba(0,0,0,.25) inset,1px 2px 4px 0px rgba(0,0,0,.25) inset;--tw-shadow-colored:2px 2px 38px 0px var(--tw-shadow-color),inset 0px -2px 4px 0px var(--tw-shadow-color),inset 1px 2px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-black\\/30{--tw-shadow-color:rgba(0,0,0,.3);--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-gray-800\\/60{--tw-ring-color:rgba(31,41,55,.6)}.blur{--tw-blur:blur(8px)}.blur,.blur-md{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-md{--tw-blur:blur(12px)}.blur-sm{--tw-blur:blur(4px)}.blur-sm,.brightness-100{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.brightness-100{--tw-brightness:brightness(1)}.drop-shadow-\\[0_0_1px_rgba\\(45\\2c 212\\2c 191\\2c 0\\.5\\)\\]{--tw-drop-shadow:drop-shadow(0 0 1px rgba(45,212,191,.5))}.drop-shadow-\\[0_0_1px_rgba\\(45\\2c 212\\2c 191\\2c 0\\.5\\)\\],.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert:invert(100%)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-md,.backdrop-blur-sm{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[leading-trim\\:both\\]{leading-trim:both}.\\[text-edge\\:cap\\]{text-edge:cap}.hover\\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05}.hover\\:scale-105:hover,.hover\\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}.hover\\:border-teal-500\\/30:hover{border-color:rgba(20,184,166,.3)}.hover\\:border-teal-500\\/40:hover{border-color:rgba(20,184,166,.4)}.hover\\:border-teal-500\\/60:hover{border-color:rgba(20,184,166,.6)}.hover\\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.hover\\:bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.hover\\:bg-gray-800:hover{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.hover\\:bg-gray-800\\/80:hover{background-color:rgba(31,41,55,.8)}.hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.hover\\:bg-teal-600:hover{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity,1))}.hover\\:bg-opacity-75:hover{--tw-bg-opacity:0.75}.hover\\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\\:from-\\[\\#0cdbb6\\]:hover{--tw-gradient-from:#0cdbb6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(12,219,182,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:from-teal-500\\/95:hover{--tw-gradient-from:rgba(20,184,166,.95) var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:from-teal-600:hover{--tw-gradient-from:#0d9488 var(--tw-gradient-from-position);--tw-gradient-to:rgba(13,148,136,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:from-teal-900\\/40:hover{--tw-gradient-from:rgba(19,78,74,.4) var(--tw-gradient-from-position);--tw-gradient-to:rgba(19,78,74,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:via-\\[\\#1fd0f0\\]:hover{--tw-gradient-to:rgba(31,208,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#1fd0f0 var(--tw-gradient-via-position),var(--tw-gradient-to)}.hover\\:via-cyan-500\\/90:hover{--tw-gradient-to:rgba(6,182,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(6,182,212,.9) var(--tw-gradient-via-position),var(--tw-gradient-to)}.hover\\:to-\\[\\#06dbee\\]:hover{--tw-gradient-to:#06dbee var(--tw-gradient-to-position)}.hover\\:to-cyan-900\\/40:hover{--tw-gradient-to:rgba(22,78,99,.4) var(--tw-gradient-to-position)}.hover\\:to-teal-600\\/95:hover{--tw-gradient-to:rgba(13,148,136,.95) var(--tw-gradient-to-position)}.hover\\:to-teal-700:hover{--tw-gradient-to:#0f766e var(--tw-gradient-to-position)}.hover\\:text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:text-teal-300\\/80:hover{color:rgba(94,234,212,.8)}.hover\\:text-teal-400:hover{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity,1))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:shadow-teal-400\\/10:hover{--tw-shadow-color:rgba(45,212,191,.1);--tw-shadow:var(--tw-shadow-colored)}.hover\\:shadow-teal-400\\/20:hover{--tw-shadow-color:rgba(45,212,191,.2);--tw-shadow:var(--tw-shadow-colored)}.hover\\:shadow-teal-900\\/20:hover{--tw-shadow-color:rgba(19,78,74,.2);--tw-shadow:var(--tw-shadow-colored)}.hover\\:brightness-110:hover{--tw-brightness:brightness(1.1)}.hover\\:brightness-110:hover,.hover\\:drop-shadow-\\[0_0_3px_rgba\\(255\\2c 255\\2c 255\\2c 0\\.7\\)\\]:hover{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:drop-shadow-\\[0_0_3px_rgba\\(255\\2c 255\\2c 255\\2c 0\\.7\\)\\]:hover{--tw-drop-shadow:drop-shadow(0 0 3px hsla(0,0%,100%,.7))}.hover\\:filter:hover{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-blue-400\\/50:focus{--tw-ring-color:rgba(96,165,250,.5)}.focus\\:ring-cyan-500\\/50:focus{--tw-ring-color:rgba(6,182,212,.5)}.focus\\:ring-teal-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(20 184 166/var(--tw-ring-opacity,1))}.focus\\:ring-teal-500\\/50:focus{--tw-ring-color:rgba(20,184,166,.5)}.focus\\:ring-offset-1:focus{--tw-ring-offset-width:1px}.focus\\:ring-offset-gray-900:focus{--tw-ring-offset-color:#111827}.focus-visible\\:ring-0:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-teal-500\\/75:hover:disabled{background-color:rgba(20,184,166,.75)}.group:hover .group-hover\\:scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:from-teal-500\\/25{--tw-gradient-from:rgba(20,184,166,.25) var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.group:hover .group-hover\\:via-cyan-400\\/20{--tw-gradient-to:rgba(34,211,238,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(34,211,238,.2) var(--tw-gradient-via-position),var(--tw-gradient-to)}.group:hover .group-hover\\:to-blue-500\\/15{--tw-gradient-to:rgba(59,130,246,.15) var(--tw-gradient-to-position)}.group:hover .group-hover\\:text-teal-400{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity,1))}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:shadow-\\[0_0_15px_rgba\\(20\\2c 184\\2c 166\\2c 0\\.3\\)\\]{--tw-shadow:0 0 15px rgba(20,184,166,.3);--tw-shadow-colored:0 0 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\\:duration-200{transition-duration:.2s}@media (min-width:640px){.sm\\:left-3{left:.75rem}.sm\\:top-\\[24px\\]{top:24px}.sm\\:order-1{order:1}.sm\\:order-2{order:2}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-1{margin-bottom:.25rem}.sm\\:mb-2{margin-bottom:.5rem}.sm\\:mb-6{margin-bottom:1.5rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-\\[-130px\\]{margin-top:-130px}.sm\\:h-10{height:2.5rem}.sm\\:h-20{height:5rem}.sm\\:h-5{height:1.25rem}.sm\\:h-6{height:1.5rem}.sm\\:h-7{height:1.75rem}.sm\\:h-\\[42px\\]{height:42px}.sm\\:h-\\[calc\\(100vh-190px\\)\\]{height:calc(100vh - 190px)}.sm\\:min-h-\\[72px\\]{min-height:72px}.sm\\:min-h-\\[85vh\\]{min-height:85vh}.sm\\:w-10{width:2.5rem}.sm\\:w-20{width:5rem}.sm\\:w-5{width:1.25rem}.sm\\:w-6{width:1.5rem}.sm\\:w-7{width:1.75rem}.sm\\:w-\\[20px\\]{width:20px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-between{justify-content:space-between}.sm\\:gap-0{gap:0}.sm\\:gap-4{gap:1rem}.sm\\:space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.sm\\:p-4{padding:1rem}.sm\\:px-3{padding-left:.75rem;padding-right:.75rem}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:py-10{padding-bottom:2.5rem;padding-top:2.5rem}.sm\\:py-2{padding-bottom:.5rem;padding-top:.5rem}.sm\\:py-3{padding-bottom:.75rem;padding-top:.75rem}.sm\\:py-5{padding-bottom:1.25rem;padding-top:1.25rem}.sm\\:py-8{padding-top:2rem}.sm\\:pb-8,.sm\\:py-8{padding-bottom:2rem}.sm\\:pt-2{padding-top:.5rem}.sm\\:pt-\\[80px\\]{padding-top:80px}.sm\\:text-left{text-align:left}.sm\\:text-5xl{font-size:3rem;line-height:1}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:mx-auto{margin-left:auto;margin-right:auto}.md\\:mb-0{margin-bottom:0}.md\\:mb-8{margin-bottom:2rem}.md\\:hidden{display:none}.md\\:w-auto{width:auto}.md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\\:gap-4{gap:1rem}.md\\:py-16{padding-bottom:4rem;padding-top:4rem}.md\\:pb-10{padding-bottom:2.5rem}}@media (min-width:898px){.lg\\:block{display:block}.lg\\:hidden{display:none}.lg\\:h-16{height:4rem}.lg\\:h-\\[80px\\]{height:80px}.lg\\:w-16{width:4rem}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:justify-normal{justify-content:normal}.lg\\:p-10{padding:2.5rem}.lg\\:px-0{padding-left:0;padding-right:0}.lg\\:pb-20{padding-bottom:5rem}.lg\\:pb-3\\.5{padding-bottom:.875rem}.lg\\:pt-10{padding-top:2.5rem}.lg\\:text-7xl{font-size:4.5rem;line-height:1}}.rtl\\:text-right:where([dir=rtl],[dir=rtl] *){text-align:right}@media (prefers-color-scheme:dark){.dark\\:border-gray-900{--tw-border-opacity:1;border-color:rgb(17 24 39/var(--tw-border-opacity,1))}.dark\\:bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}}');var S=function(t){var e=(void 0===t?{}:t).purpose;if("undefined"!=typeof window){var n=window.location.host,r=localStorage.getItem("GPTR_API_URL"),o=new URLSearchParams(window.location.search).get("GPTR_API_URL");return r||(o||(process.env.NEXT_PUBLIC_GPTR_API_URL?process.env.NEXT_PUBLIC_GPTR_API_URL:process.env.REACT_APP_GPTR_API_URL?process.env.REACT_APP_GPTR_API_URL:"langgraph-gui"===e?n.includes("localhost")?"http%3A%2F%2F127.0.0.1%3A8123":"https://".concat(n):n.includes("localhost")?"http://localhost:8000":"https://".concat(n)))}return""},_=function(e,n,r,o,i){var a=t.useState(null),s=a[0],c=a[1],l=t.useRef();t.useEffect((function(){return function(){l.current&&clearInterval(l.current)}}),[]);var u=t.useCallback((function(t,a){var u=localStorage.getItem("apiVariables");if(!u||JSON.parse(u),!s&&"undefined"!=typeof window){var d=S(),m=d.includes("https")?"wss:":"ws:",h=d.replace("http://","").replace("https://",""),g="".concat(m,"//").concat(h,"/ws"),v=new WebSocket(g);c(v),v.onopen=function(){console.log("chatBoxSettings",a);var e,n=JSON.parse(localStorage.getItem("domainFilters")||"[]"),r=n?n.map((function(t){return t.value})):[],o=a.report_type,i=a.report_source,s=a.tone,c="start "+JSON.stringify({task:t,report_type:o,report_source:i,tone:s,query_domains:r});v.send(c),e=v,l.current&&clearInterval(l.current),l.current=window.setInterval((function(){e.readyState===WebSocket.OPEN&&e.send("ping")}),3e4)},v.onmessage=function(t){try{if("pong"===t.data)return;var a=JSON.parse(t.data);if("human_feedback"===a.type&&"request"===a.content)i(a.output),o(!0);else{var s="".concat(a.content,"-").concat(a.type);e((function(t){return f(f([],t,!0),[p(p({},a),{contentAndType:s})],!1)})),"report"===a.type?n((function(t){return t+a.output})):"path"!==a.type&&"chat"!==a.type||r(!1)}}catch(e){console.error("Error parsing WebSocket message:",e,t.data)}},v.onclose=function(){l.current&&clearInterval(l.current),c(null)},v.onerror=function(t){console.error("WebSocket error:",t),l.current&&clearInterval(l.current)}}}),[s]);return{socket:s,setSocket:c,initializeWebSocket:u}},P=function(t){var e=[],n=null,r=null,o=null,i=null,a=!1,s=-1,c=new Set;return t.forEach((function(t){var l=t.type,p=t.content,u=t.metadata,d=t.output,f=t.link;if("question"===l)e.push({type:"question",content:p});else if("report"===l)o||(o={type:"reportBlock",content:""},e.push(o)),o.content+=d;else if("selected_images"===p)e.push({type:"imagesBlock",metadata:u});else if("logs"===l&&"research_report"===p)i||(i={type:"reportBlock",content:""},e.push(i)),i.content+=d.report;else if("langgraphButton"===l)e.push({type:"langgraphButton",link:f});else if("chat"===l)e.push({type:"chat",content:p});else if(o&&(o=null),"subqueries"===p)n&&(n=null),r&&(e.push(r),r=null),e.push(t),s=e.length-1;else if("sourceBlock"===l)r=t,-1!==s?(e.splice(s+1,0,r),s=-1):e.push(r),a=!0,r=null;else if("added_source_url"===p){if(r||(r={type:"sourceBlock",items:[]}),!c.has(u)){c.add(u);var m="";try{"string"==typeof u&&(m=new URL(u).hostname.replace("www.",""))}catch(t){m="unknown"}r.items.push({name:m,url:u})}r.items.length>0&&!e.includes(r)&&(e.push(r),a=!0)}else if("path"!==l&&""!==p)a?(n||(n={type:"accordionBlock",items:[]},e.push(n)),n.items.push(t)):e.push(t);else{if(n&&(n=null),r&&(r=null),o){var h=e.findIndex((function(t){return t===o}));-1!==h&&e.splice(h,1),o=null}e.push(t)}})),e=function(t){var e={type:"sourceBlock",items:t.filter((function(t){return"sourceBlock"===t.type})).flatMap((function(t){return t.items||[]})).filter((function(t,e,n){return e===n.findIndex((function(e){return e.url===t.url}))}))},n={type:"imagesBlock",metadata:t.filter((function(t){return"imagesBlock"===t.type})).flatMap((function(t){return t.metadata||[]}))};return t=t.filter((function(t){return"sourceBlock"!==t.type&&"imagesBlock"!==t.type})),e.items.length>0&&t.push(e),n.metadata.length>0&&t.push(n),t}(e)},O=function(t){var e=t.question;return j.jsxs("div",{className:"container w-full flex flex-col sm:flex-row items-start gap-3 pt-5 mb-5 px-4 sm:px-6 py-4 rounded-lg border border-gray-700/30 backdrop-blur-sm bg-black/20 mt-5",children:[j.jsxs("div",{className:"flex items-center gap-2 sm:gap-4",children:[j.jsx("img",{src:"https://askjarvis.ai/img/message-question-circle.svg",alt:"message",width:24,height:24,className:"w-6 h-6"}),j.jsx("p",{className:"font-bold uppercase leading-[152%] text-teal-200",children:"Research Task:"})]}),j.jsxs("div",{className:"grow text-white break-words max-w-full log-message mt-1 sm:mt-0 font-medium",children:['"',e,'"']})]})};function C(t,e){const n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");let r=0,o=n.indexOf(e);for(;-1!==o;)r++,o=n.indexOf(e,o+e.length);return r}const T=I(/[A-Za-z]/),A=I(/[\dA-Za-z]/);function R(t){return null!==t&&t<-2}function N(t){return null!==t&&(t<0||32===t)}function D(t){return-2===t||-1===t||32===t}const L=I(/\p{P}|\p{S}/u),M=I(/\s/);function I(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}const F=function(t){if(null==t)return B;if("function"==typeof t)return z(t);if("object"==typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=F(t[n]);return z(r);function r(...t){let n=-1;for(;++n<e.length;)if(e[n].apply(this,t))return!0;return!1}}(t):function(t){const e=t;return z(n);function n(n){const r=n;let o;for(o in t)if(r[o]!==e[o])return!1;return!0}}(t);if("string"==typeof t)return function(t){return z(e);function e(e){return e&&e.type===t}}(t);throw new Error("Expected function, string, or object as test")};function z(t){return function(e,n,r){return Boolean(function(t){return null!==t&&"object"==typeof t&&"type"in t}(e)&&t.call(this,e,"number"==typeof n?n:void 0,r||void 0))}}function B(){return!0}const V=[],U=!0,q=!1;function $(t,e,n,r){let o;"function"==typeof e&&"function"!=typeof n?(r=n,n=e):o=e;const i=F(o),a=r?-1:1;!function t(o,s,c){const l=o&&"object"==typeof o?o:{};if("string"==typeof l.type){const t="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(p,"name",{value:"node ("+o.type+(t?"<"+t+">":"")+")"})}return p;function p(){let l,p,u,d=V;if((!e||i(o,s,c[c.length-1]||void 0))&&(d=function(t){if(Array.isArray(t))return t;if("number"==typeof t)return[U,t];return null==t?V:[t]}(n(o,c)),d[0]===q))return d;if("children"in o&&o.children){const e=o;if(e.children&&"skip"!==d[0])for(p=(r?e.children.length:-1)+a,u=c.concat(e);p>-1&&p<e.children.length;){const n=e.children[p];if(l=t(n,p,u)(),l[0]===q)return l;p="number"==typeof l[1]?l[1]:p+a}}return d}}(t,void 0,[])()}function W(t,e,n){const r=F((n||{}).ignore||[]),o=function(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const t=n[r];e.push([H(t[0]),G(t[1])])}return e}(e);let i=-1;for(;++i<o.length;)$(t,"text",a);function a(t,e){let n,a=-1;for(;++a<e.length;){const t=e[a],o=n?n.children:void 0;if(r(t,o?o.indexOf(t):void 0,n))return;n=t}if(n)return function(t,e){const n=e[e.length-1],r=o[i][0],a=o[i][1];let s=0;const c=n.children.indexOf(t);let l=!1,p=[];r.lastIndex=0;let u=r.exec(t.value);for(;u;){const n=u.index,o={index:u.index,input:u.input,stack:[...e,t]};let i=a(...u,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&p.push({type:"text",value:t.value.slice(s,n)}),Array.isArray(i)?p.push(...i):i&&p.push(i),s=n+u[0].length,l=!0),!r.global)break;u=r.exec(t.value)}l?(s<t.value.length&&p.push({type:"text",value:t.value.slice(s)}),n.children.splice(c,1,...p)):p=[t];return c+p.length}(t,e)}}function H(t){return"string"==typeof t?new RegExp(function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(t),"g"):t}function G(t){return"function"==typeof t?t:function(){return t}}const X="phrasing",Y=["autolink","link","image","label"];function K(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function J(t){this.config.enter.autolinkProtocol.call(this,t)}function Z(t){this.config.exit.autolinkProtocol.call(this,t)}function Q(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function tt(t){this.config.exit.autolinkEmail.call(this,t)}function et(t){this.exit(t)}function nt(t){W(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,rt],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ot]],{ignore:["link","linkReference"]})}function rt(t,e,n,r,o){let i="";if(!it(o))return!1;if(/^w/i.test(e)&&(n=e+n,e="",i="http://"),!function(t){const e=t.split(".");if(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))return!1;return!0}(n))return!1;const a=function(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const o=C(t,"(");let i=C(t,")");for(;-1!==r&&o>i;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[t,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function ot(t,e,n,r){return!(!it(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function it(t,e){const n=t.input.charCodeAt(t.index-1);return(0===t.index||M(n)||L(n))&&(!e||47!==n)}function at(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function st(){this.buffer()}function ct(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function lt(){this.buffer()}function pt(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function ut(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=at(this.sliceSerialize(t)).toLowerCase(),n.label=e}function dt(t){this.exit(t)}function ft(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=at(this.sliceSerialize(t)).toLowerCase(),n.label=e}function mt(t){this.exit(t)}function ht(t,e,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(t),{after:"]",before:i})),s(),a(),i+=o.move("]"),i}function gt(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:function(t,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const s=r.enter("footnoteDefinition"),c=r.enter("label");a+=i.move(r.safe(r.associationId(t),{before:a,after:"]"})),c(),a+=i.move("]:"),t.children&&t.children.length>0&&(i.shift(4),a+=i.move((e?"\n":" ")+r.indentLines(r.containerFlow(t,i.current()),e?xt:vt)));return s(),a},footnoteReference:ht},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function vt(t,e,n){return 0===e?t:xt(t,e,n)}function xt(t,e,n){return(n?"":" ")+t}ht.peek=function(){return"["};const yt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function bt(t){this.enter({type:"delete",children:[]},t)}function wt(t){this.exit(t)}function kt(t,e,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(t,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function jt(t){return t.length}function Et(t){const e="string"==typeof t?t.codePointAt(0):0;return 67===e||99===e?99:76===e||108===e?108:82===e||114===e?114:0}function St(t,e,n){return">"+(n?"":" ")+t}function _t(t,e,n){if("string"==typeof e&&(e=[e]),!e||0===e.length)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function Pt(t,e,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],_t(i,a.inConstruct,!0)&&!_t(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function Ot(t,e,n){return(n?"":" ")+t}function Ct(t){const e=t.options.quote||'"';if('"'!==e&&"'"!==e)throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function Tt(t){return"&#x"+t.toString(16).toUpperCase()+";"}function At(t){return null===t||N(t)||M(t)?1:L(t)?2:void 0}function Rt(t,e,n){const r=At(t),o=At(e);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Nt(t,e,n,r){const o=function(t){const e=t.options.emphasis||"*";if("*"!==e&&"_"!==e)throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}(n),i=n.enter("emphasis"),a=n.createTracker(r),s=a.move(o);let c=a.move(n.containerPhrasing(t,{after:o,before:s,...a.current()}));const l=c.charCodeAt(0),p=Rt(r.before.charCodeAt(r.before.length-1),l,o);p.inside&&(c=Tt(l)+c.slice(1));const u=c.charCodeAt(c.length-1),d=Rt(r.after.charCodeAt(0),u,o);d.inside&&(c=c.slice(0,-1)+Tt(u));const f=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},s+c+f}kt.peek=function(){return"~"},Nt.peek=function(t,e,n){return n.options.emphasis||"*"};const Dt={};function Lt(t,e){const n=e||Dt;return Mt(t,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Mt(t,e,n){if(function(t){return Boolean(t&&"object"==typeof t)}(t)){if("value"in t)return"html"!==t.type||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return It(t.children,e,n)}return Array.isArray(t)?It(t,e,n):""}function It(t,e,n){const r=[];let o=-1;for(;++o<t.length;)r[o]=Mt(t[o],e,n);return r.join("")}function Ft(t,e){let n=!1;return function(t,e,n,r){let o,i,a;"function"==typeof e&&"function"!=typeof n?(i=void 0,a=e,o=n):(i=e,a=n,o=r),$(t,i,(function(t,e){const n=e[e.length-1],r=n?n.children.indexOf(t):void 0;return a(t,r,n)}),o)}(t,(function(t){if("value"in t&&/\r?\n|\r/.test(t.value)||"break"===t.type)return n=!0,q})),Boolean((!t.depth||t.depth<3)&&Lt(t)&&(e.options.setext||n))}function zt(t){return t.value||""}function Bt(t,e,n,r){const o=Ct(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(t.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(t.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(t.url,{before:l,after:t.title?" ":")",...c.current()}))),s(),t.title&&(s=n.enter(`title${i}`),l+=c.move(" "+o),l+=c.move(n.safe(t.title,{before:l,after:o,...c.current()})),l+=c.move(o),s()),l+=c.move(")"),a(),l}function Vt(t,e,n,r){const o=t.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("![");const l=n.safe(t.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const p=n.stack;n.stack=[],a=n.enter("reference");const u=n.safe(n.associationId(t),{before:c,after:"]",...s.current()});return a(),n.stack=p,i(),"full"!==o&&l&&l===u?"shortcut"===o?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(u+"]"),c}function Ut(t,e,n){let r=t.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const t=n.unsafe[i],e=n.compilePattern(t);let o;if(t.atBreak)for(;o=e.exec(r);){let t=o.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(o.index+1)}}return o+r+o}function qt(t,e){const n=Lt(t);return Boolean(!e.options.resourceLink&&t.url&&!t.title&&t.children&&1===t.children.length&&"text"===t.children[0].type&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}function $t(t,e,n,r){const o=Ct(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,c;if(qt(t,n)){const e=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(t,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=e,r}s=n.enter("link"),c=n.enter("label");let l=a.move("[");return l+=a.move(n.containerPhrasing(t,{before:l,after:"](",...a.current()})),l+=a.move("]("),c(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(c=n.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(n.safe(t.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(c=n.enter("destinationRaw"),l+=a.move(n.safe(t.url,{before:l,after:t.title?" ":")",...a.current()}))),c(),t.title&&(c=n.enter(`title${i}`),l+=a.move(" "+o),l+=a.move(n.safe(t.title,{before:l,after:o,...a.current()})),l+=a.move(o),c()),l+=a.move(")"),s(),l}function Wt(t,e,n,r){const o=t.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("[");const l=n.containerPhrasing(t,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const p=n.stack;n.stack=[],a=n.enter("reference");const u=n.safe(n.associationId(t),{before:c,after:"]",...s.current()});return a(),n.stack=p,i(),"full"!==o&&l&&l===u?"shortcut"===o?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(u+"]"),c}function Ht(t){const e=t.options.bullet||"*";if("*"!==e&&"+"!==e&&"-"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function Gt(t){const e=t.options.rule||"*";if("*"!==e&&"-"!==e&&"_"!==e)throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}zt.peek=function(){return"<"},Bt.peek=function(){return"!"},Vt.peek=function(){return"!"},Ut.peek=function(){return"`"},$t.peek=function(t,e,n){return qt(t,n)?"<":"["},Wt.peek=function(){return"["};const Xt=F(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Yt(t,e,n,r){const o=function(t){const e=t.options.strong||"*";if("*"!==e&&"_"!==e)throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}(n),i=n.enter("strong"),a=n.createTracker(r),s=a.move(o+o);let c=a.move(n.containerPhrasing(t,{after:o,before:s,...a.current()}));const l=c.charCodeAt(0),p=Rt(r.before.charCodeAt(r.before.length-1),l,o);p.inside&&(c=Tt(l)+c.slice(1));const u=c.charCodeAt(c.length-1),d=Rt(r.after.charCodeAt(0),u,o);d.inside&&(c=c.slice(0,-1)+Tt(u));const f=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},s+c+f}Yt.peek=function(t,e,n){return n.options.strong||"*"};const Kt={blockquote:function(t,e,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(t,i.current()),St);return o(),a},break:Pt,code:function(t,e,n,r){const o=function(t){const e=t.options.fence||"`";if("`"!==e&&"~"!==e)throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}(n),i=t.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(t,e){return Boolean(!1===e.options.fences&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}(t,n)){const t=n.enter("codeIndented"),e=n.indentLines(i,Ot);return t(),e}const s=n.createTracker(r),c=o.repeat(Math.max(function(t,e){const n=String(t);let r=n.indexOf(e),o=r,i=0,a=0;if("string"!=typeof e)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+e.length,r=n.indexOf(e,o);return a}(i,o)+1,3)),l=n.enter("codeFenced");let p=s.move(c);if(t.lang){const e=n.enter(`codeFencedLang${a}`);p+=s.move(n.safe(t.lang,{before:p,after:" ",encode:["`"],...s.current()})),e()}if(t.lang&&t.meta){const e=n.enter(`codeFencedMeta${a}`);p+=s.move(" "),p+=s.move(n.safe(t.meta,{before:p,after:"\n",encode:["`"],...s.current()})),e()}return p+=s.move("\n"),i&&(p+=s.move(i+"\n")),p+=s.move(c),l(),p},definition:function(t,e,n,r){const o=Ct(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("[");return l+=c.move(n.safe(n.associationId(t),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!t.url||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(t.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(t.url,{before:l,after:t.title?" ":"\n",...c.current()}))),s(),t.title&&(s=n.enter(`title${i}`),l+=c.move(" "+o),l+=c.move(n.safe(t.title,{before:l,after:o,...c.current()})),l+=c.move(o),s()),a(),l},emphasis:Nt,hardBreak:Pt,heading:function(t,e,n,r){const o=Math.max(Math.min(6,t.depth||1),1),i=n.createTracker(r);if(Ft(t,n)){const e=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(t,{...i.current(),before:"\n",after:"\n"});return r(),e(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),c=n.enter("phrasing");i.move(a+" ");let l=n.containerPhrasing(t,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(l)&&(l=Tt(l.charCodeAt(0))+l.slice(1)),l=l?a+" "+l:a,n.options.closeAtx&&(l+=" "+a),c(),s(),l},html:zt,image:Bt,imageReference:Vt,inlineCode:Ut,link:$t,linkReference:Wt,list:function(t,e,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=t.ordered?function(t){const e=t.options.bulletOrdered||".";if("."!==e&&")"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}(n):Ht(n);const s=t.ordered?"."===a?")":".":function(t){const e=Ht(t),n=t.options.bulletOther;if(!n)return"*"===e?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let c=!(!e||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!t.ordered){const e=t.children?t.children[0]:void 0;if("*"!==a&&"-"!==a||!e||e.children&&e.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(c=!0),Gt(n)===a&&e){let e=-1;for(;++e<t.children.length;){const n=t.children[e];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){c=!0;break}}}}c&&(a=s),n.bulletCurrent=a;const l=n.containerFlow(t,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),l},listItem:function(t,e,n,r){const o=function(t){const e=t.options.listItemIndent||"one";if("tab"!==e&&"one"!==e&&"mixed"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}(n);let i=n.bulletCurrent||Ht(n);e&&"list"===e.type&&e.ordered&&(i=("number"==typeof e.start&&e.start>-1?e.start:1)+(!1===n.options.incrementListMarker?0:e.children.indexOf(t))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(e&&"list"===e.type&&e.spread||t.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(t,s.current()),(function(t,e,n){if(e)return(n?"":" ".repeat(a))+t;return(n?i:i+" ".repeat(a-i.length))+t}));return c(),l},paragraph:function(t,e,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(t,r);return i(),o(),a},root:function(t,e,n,r){return(t.children.some((function(t){return Xt(t)}))?n.containerPhrasing:n.containerFlow).call(n,t,r)},strong:Yt,text:function(t,e,n,r){return n.safe(t.value,r)},thematicBreak:function(t,e,n){const r=(Gt(n)+(n.options.ruleSpaces?" ":"")).repeat(function(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Jt(t){const e=t._align;this.enter({type:"table",align:e.map((function(t){return"none"===t?null:t})),children:[]},t),this.data.inTable=!0}function Zt(t){this.exit(t),this.data.inTable=void 0}function Qt(t){this.enter({type:"tableRow",children:[]},t)}function te(t){this.exit(t)}function ee(t){this.enter({type:"tableCell",children:[]},t)}function ne(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,re));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function re(t,e){return"|"===e?e:t}function oe(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,o=e.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(t,e,n){let r=Kt.inlineCode(t,e,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(t,e,n,r){return s(function(t,e,n){const r=t.children;let o=-1;const i=[],a=e.enter("table");for(;++o<r.length;)i[o]=c(r[o],e,n);return a(),i}(t,n,r),t.align)},tableCell:a,tableRow:function(t,e,n,r){const o=c(t,n,r),i=s([o]);return i.slice(0,i.indexOf("\n"))}}};function a(t,e,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(t,{...r,before:i,after:i});return a(),o(),s}function s(t,e){return function(t,e){const n=e||{},r=(n.align||[]).concat(),o=n.stringLength||jt,i=[],a=[],s=[],c=[];let l=0,p=-1;for(;++p<t.length;){const e=[],r=[];let i=-1;for(t[p].length>l&&(l=t[p].length);++i<t[p].length;){const a=null==(u=t[p][i])?"":String(u);if(!1!==n.alignDelimiters){const t=o(a);r[i]=t,(void 0===c[i]||t>c[i])&&(c[i]=t)}e.push(a)}a[p]=e,s[p]=r}var u;let d=-1;if("object"==typeof r&&"length"in r)for(;++d<l;)i[d]=Et(r[d]);else{const t=Et(r);for(;++d<l;)i[d]=t}d=-1;const f=[],m=[];for(;++d<l;){const t=i[d];let e="",r="";99===t?(e=":",r=":"):108===t?e=":":114===t&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,c[d]-e.length-r.length);const a=e+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=e.length+o+r.length,o>c[d]&&(c[d]=o),m[d]=o),f[d]=a}a.splice(1,0,f),s.splice(1,0,m),p=-1;const h=[];for(;++p<a.length;){const t=a[p],e=s[p];d=-1;const r=[];for(;++d<l;){const o=t[d]||"";let a="",s="";if(!1!==n.alignDelimiters){const t=c[d]-(e[d]||0),n=i[d];114===n?a=" ".repeat(t):99===n?t%2?(a=" ".repeat(t/2+.5),s=" ".repeat(t/2-.5)):(a=" ".repeat(t/2),s=a):s=" ".repeat(t)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===l-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(t,{align:e,alignDelimiters:r,padding:n,stringLength:o})}function c(t,e,n){const r=t.children;let o=-1;const i=[],s=e.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,e,n);return s(),i}}function ie(t){const e=this.stack[this.stack.length-2];e.type,e.checked="taskListCheckValueChecked"===t.type}function ae(t){const e=this.stack[this.stack.length-2];if(e&&"listItem"===e.type&&"boolean"==typeof e.checked){const t=this.stack[this.stack.length-1];t.type;const n=t.children[0];if(n&&"text"===n.type){const r=e.children;let o,i=-1;for(;++i<r.length;){const t=r[i];if("paragraph"===t.type){o=t;break}}o===t&&(n.value=n.value.slice(1),0===n.value.length?t.children.shift():t.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,t.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function se(t,e,n,r){const o=t.children[0],i="boolean"==typeof t.checked&&o&&"paragraph"===o.type,a="["+(t.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let c=Kt.listItem(t,e,n,{...r,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+a}))),c}function ce(t,e,n,r){const o=t.length;let i,a=0;if(e=e<0?-e>o?0:o+e:e>o?o:e,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(e,n),t.splice(...i);else for(n&&t.splice(e,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(e,0),t.splice(...i),a+=1e4,e+=1e4}const le={}.hasOwnProperty;function pe(t,e){let n;for(n in e){const r=(le.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n];let i;if(o)for(i in o){le.call(r,i)||(r[i]=[]);const t=o[i];ue(r[i],Array.isArray(t)?t:t?[t]:[])}}}function ue(t,e){let n=-1;const r=[];for(;++n<e.length;)("after"===e[n].add?t:r).push(e[n]);ce(t,0,0,r)}const de={tokenize:function(t,e,n){let r=0;return function e(i){if((87===i||119===i)&&r<3)return r++,t.consume(i),e;if(46===i&&3===r)return t.consume(i),o;return n(i)};function o(t){return null===t?n(t):e(t)}},partial:!0},fe={tokenize:function(t,e,n){let r,o,i;return a;function a(e){return 46===e||95===e?t.check(he,c,s)(e):null===e||N(e)||M(e)||45!==e&&L(e)?c(e):(i=!0,t.consume(e),a)}function s(e){return 95===e?r=!0:(o=r,r=void 0),t.consume(e),a}function c(t){return o||r||!i?n(t):e(t)}},partial:!0},me={tokenize:function(t,e){let n=0,r=0;return o;function o(a){return 40===a?(n++,t.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?t.check(he,e,i)(a):null===a||N(a)||M(a)?e(a):(t.consume(a),o)}function i(e){return 41===e&&r++,t.consume(e),o}},partial:!0},he={tokenize:function(t,e,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(t.consume(a),r):38===a?(t.consume(a),i):93===a?(t.consume(a),o):60===a||null===a||N(a)||M(a)?e(a):n(a)}function o(t){return null===t||40===t||91===t||N(t)||M(t)?e(t):r(t)}function i(t){return T(t)?a(t):n(t)}function a(e){return 59===e?(t.consume(e),r):T(e)?(t.consume(e),a):n(e)}},partial:!0},ge={tokenize:function(t,e,n){return function(e){return t.consume(e),r};function r(t){return A(t)?n(t):e(t)}},partial:!0},ve={name:"wwwAutolink",tokenize:function(t,e,n){const r=this;return function(e){if(87!==e&&119!==e||!ke.call(r,r.previous)||_e(r.events))return n(e);return t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(de,t.attempt(fe,t.attempt(me,o),n),n)(e)};function o(n){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(n)}},previous:ke},xe={name:"protocolAutolink",tokenize:function(t,e,n){const r=this;let o="",i=!1;return function(e){if((72===e||104===e)&&je.call(r,r.previous)&&!_e(r.events))return t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(e),t.consume(e),a;return n(e)};function a(e){if(T(e)&&o.length<5)return o+=String.fromCodePoint(e),t.consume(e),a;if(58===e){const n=o.toLowerCase();if("http"===n||"https"===n)return t.consume(e),s}return n(e)}function s(e){return 47===e?(t.consume(e),i?c:(i=!0,s)):n(e)}function c(e){return null===e||function(t){return null!==t&&(t<32||127===t)}(e)||N(e)||M(e)||L(e)?n(e):t.attempt(fe,t.attempt(me,l),n)(e)}function l(n){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(n)}},previous:je},ye={name:"emailAutolink",tokenize:function(t,e,n){const r=this;let o,i;return function(e){if(!Se(e)||!Ee.call(r,r.previous)||_e(r.events))return n(e);return t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(e)};function a(e){return Se(e)?(t.consume(e),a):64===e?(t.consume(e),s):n(e)}function s(e){return 46===e?t.check(ge,l,c)(e):45===e||95===e||A(e)?(i=!0,t.consume(e),s):l(e)}function c(e){return t.consume(e),o=!0,s}function l(a){return i&&o&&T(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(a)):n(a)}},previous:Ee},be={};let we=48;for(;we<123;)be[we]=ye,we++,58===we?we=65:91===we&&(we=97);function ke(t){return null===t||40===t||42===t||95===t||91===t||93===t||126===t||N(t)}function je(t){return!T(t)}function Ee(t){return!(47===t||Se(t))}function Se(t){return 43===t||45===t||46===t||95===t||A(t)}function _e(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Pe(t,e,n){const r=[];let o=-1;for(;++o<t.length;){const i=t[o].resolveAll;i&&!r.includes(i)&&(e=i(e,n),r.push(i))}return e}function Oe(t,e,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(D(r))return t.enter(n),a(r);return e(r)};function a(r){return D(r)&&i++<o?(t.consume(r),a):(t.exit(n),e(r))}}be[43]=ye,be[45]=ye,be[46]=ye,be[95]=ye,be[72]=[ye,xe],be[104]=[ye,xe],be[87]=[ye,ve],be[119]=[ye,ve];const Ce={partial:!0,tokenize:function(t,e,n){return function(e){return D(e)?Oe(t,r,"linePrefix")(e):r(e)};function r(t){return null===t||R(t)?e(t):n(t)}}};const Te={tokenize:function(t,e,n){const r=this;return Oe(t,(function(t){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?e(t):n(t)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ae(t,e,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const t=r.events[o][1];if("labelImage"===t.type){a=t;break}if("gfmFootnoteCall"===t.type||"labelLink"===t.type||"label"===t.type||"image"===t.type||"link"===t.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=at(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return t.enter("gfmFootnoteCallLabelMarker"),t.consume(o),t.exit("gfmFootnoteCallLabelMarker"),e(o)}}function Re(t,e){let n=t.length;for(;n--;)if("labelImage"===t[n][1].type&&"enter"===t[n][0]){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",o,e],["exit",o,e],["enter",i,e],["enter",a,e],["exit",a,e],["exit",i,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...s),t}function Ne(t,e,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(e){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(e),t.exit("gfmFootnoteCallLabelMarker"),s};function s(e){return 94!==e?n(e):(t.enter("gfmFootnoteCallMarker"),t.consume(e),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(s){if(a>999||93===s&&!i||null===s||91===s||N(s))return n(s);if(93===s){t.exit("chunkString");const i=t.exit("gfmFootnoteCallString");return o.includes(at(r.sliceSerialize(i)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(s),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(s)}return N(s)||(i=!0),a++,t.consume(s),92===s?l:c}function l(e){return 91===e||92===e||93===e?(t.consume(e),a++,c):c(e)}}function De(t,e,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(e){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(e){return 94===e?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",l):n(e)}function l(e){if(s>999||93===e&&!a||null===e||91===e||N(e))return n(e);if(93===e){t.exit("chunkString");const n=t.exit("gfmFootnoteDefinitionLabelString");return i=at(r.sliceSerialize(n)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),u}return N(e)||(a=!0),s++,t.consume(e),92===e?p:l}function p(e){return 91===e||92===e||93===e?(t.consume(e),s++,l):l(e)}function u(e){return 58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),o.includes(i)||o.push(i),Oe(t,d,"gfmFootnoteDefinitionWhitespace")):n(e)}function d(t){return e(t)}}function Le(t,e,n){return t.check(Ce,e,t.attempt(Te,e,n))}function Me(t){t.exit("gfmFootnoteDefinition")}function Ie(t){let e=(t||{}).singleTilde;const n={name:"strikethrough",tokenize:function(t,n,r){const o=this.previous,i=this.events;let a=0;return function(e){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(e);return t.enter("strikethroughSequenceTemporary"),s(e)};function s(i){const c=At(o);if(126===i)return a>1?r(i):(t.consume(i),a++,s);if(a<2&&!e)return r(i);const l=t.exit("strikethroughSequenceTemporary"),p=At(i);return l._open=!p||2===p&&Boolean(c),l._close=!c||2===c&&Boolean(p),n(i)}},resolveAll:function(t,e){let n=-1;for(;++n<t.length;)if("enter"===t[n][0]&&"strikethroughSequenceTemporary"===t[n][1].type&&t[n][1]._close){let r=n;for(;r--;)if("exit"===t[r][0]&&"strikethroughSequenceTemporary"===t[r][1].type&&t[r][1]._open&&t[n][1].end.offset-t[n][1].start.offset==t[r][1].end.offset-t[r][1].start.offset){t[n][1].type="strikethroughSequence",t[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},t[r][1].start),end:Object.assign({},t[n][1].end)},i={type:"strikethroughText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[n][1].start)},a=[["enter",o,e],["enter",t[r][1],e],["exit",t[r][1],e],["enter",i,e]],s=e.parser.constructs.insideSpan.null;s&&ce(a,a.length,0,Pe(s,t.slice(r+1,n),e)),ce(a,a.length,0,[["exit",i,e],["enter",t[n][1],e],["exit",t[n][1],e],["exit",o,e]]),ce(t,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<t.length;)"strikethroughSequenceTemporary"===t[n][1].type&&(t[n][1].type="data");return t}};return null==e&&(e=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Fe{constructor(){this.map=[]}add(t,e,n){!function(t,e,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<t.map.length;){if(t.map[o][0]===e)return t.map[o][1]+=n,void t.map[o][2].push(...r);o+=1}t.map.push([e,n,r])}(this,t,e,n)}consume(t){if(this.map.sort((function(t,e){return t[0]-e[0]})),0===this.map.length)return;let e=this.map.length;const n=[];for(;e>0;)e-=1,n.push(t.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),t.length=this.map[e][0];n.push(t.slice()),t.length=0;let r=n.pop();for(;r;){for(const e of r)t.push(e);r=n.pop()}this.map.length=0}}function ze(t,e){let n=!1;const r=[];for(;e<t.length;){const o=t[e];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===t[e+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===t[e-1][1].type){const t=r.length-1;r[t]="left"===r[t]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);e+=1}return r}function Be(t,e,n){const r=this;let o,i=0,a=0;return function(t){let e=r.events.length-1;for(;e>-1;){const t=r.events[e][1].type;if("lineEnding"!==t&&"linePrefix"!==t)break;e--}const o=e>-1?r.events[e][1].type:null,i="tableHead"===o||"tableRow"===o?b:s;if(i===b&&r.parser.lazy[r.now().line])return n(t);return i(t)};function s(e){return t.enter("tableHead"),t.enter("tableRow"),function(t){if(124===t)return c(t);return o=!0,a+=1,c(t)}(e)}function c(e){return null===e?n(e):R(e)?a>1?(a=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),u):n(e):D(e)?Oe(t,c,"whitespace")(e):(a+=1,o&&(o=!1,i+=1),124===e?(t.enter("tableCellDivider"),t.consume(e),t.exit("tableCellDivider"),o=!0,c):(t.enter("data"),l(e)))}function l(e){return null===e||124===e||N(e)?(t.exit("data"),c(e)):(t.consume(e),92===e?p:l)}function p(e){return 92===e||124===e?(t.consume(e),l):l(e)}function u(e){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(e):(t.enter("tableDelimiterRow"),o=!1,D(e)?Oe(t,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):d(e))}function d(e){return 45===e||58===e?m(e):124===e?(o=!0,t.enter("tableCellDivider"),t.consume(e),t.exit("tableCellDivider"),f):y(e)}function f(e){return D(e)?Oe(t,m,"whitespace")(e):m(e)}function m(e){return 58===e?(a+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(e),t.exit("tableDelimiterMarker"),h):45===e?(a+=1,h(e)):null===e||R(e)?x(e):y(e)}function h(e){return 45===e?(t.enter("tableDelimiterFiller"),g(e)):y(e)}function g(e){return 45===e?(t.consume(e),g):58===e?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(e),t.exit("tableDelimiterMarker"),v):(t.exit("tableDelimiterFiller"),v(e))}function v(e){return D(e)?Oe(t,x,"whitespace")(e):x(e)}function x(n){return 124===n?d(n):(null===n||R(n))&&o&&i===a?(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(n)):y(n)}function y(t){return n(t)}function b(e){return t.enter("tableRow"),w(e)}function w(n){return 124===n?(t.enter("tableCellDivider"),t.consume(n),t.exit("tableCellDivider"),w):null===n||R(n)?(t.exit("tableRow"),e(n)):D(n)?Oe(t,w,"whitespace")(n):(t.enter("data"),k(n))}function k(e){return null===e||124===e||N(e)?(t.exit("data"),w(e)):(t.consume(e),92===e?j:k)}function j(e){return 92===e||124===e?(t.consume(e),k):k(e)}}function Ve(t,e){let n,r,o,i=-1,a=!0,s=0,c=[0,0,0,0],l=[0,0,0,0],p=!1,u=0;const d=new Fe;for(;++i<t.length;){const f=t[i],m=f[1];"enter"===f[0]?"tableHead"===m.type?(p=!1,0!==u&&(qe(d,e,u,n,r),r=void 0,u=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(i,0,[["enter",n,e]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(a=!0,o=void 0,c=[0,0,0,0],l=[0,i+1,0,0],p&&(p=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(i,0,[["enter",r,e]])),s="tableDelimiterRow"===m.type?2:r?3:1):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type?"tableCellDivider"===m.type&&(a?a=!1:(0!==c[1]&&(l[0]=l[1],o=Ue(d,e,c,s,void 0,o)),c=l,l=[c[1],i,0,0])):(a=!1,0===l[2]&&(0!==c[1]&&(l[0]=l[1],o=Ue(d,e,c,s,void 0,o),c=[0,0,0,0]),l[2]=i)):"tableHead"===m.type?(p=!0,u=i):"tableRow"===m.type||"tableDelimiterRow"===m.type?(u=i,0!==c[1]?(l[0]=l[1],o=Ue(d,e,c,s,i,o)):0!==l[1]&&(o=Ue(d,e,l,s,i,o)),s=0):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type||(l[3]=i)}for(0!==u&&qe(d,e,u,n,r),d.consume(e.events),i=-1;++i<e.events.length;){const t=e.events[i];"enter"===t[0]&&"table"===t[1].type&&(t[1]._align=ze(e.events,i))}return t}function Ue(t,e,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},$e(e.events,n[0])),t.add(n[0],0,[["exit",i,e]]));const s=$e(e.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},t.add(n[1],0,[["enter",i,e]]),0!==n[2]){const o=$e(e.events,n[2]),i=$e(e.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(t.add(n[2],0,[["enter",a,e]]),2!==r){const r=e.events[n[2]],o=e.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const e=n[2]+1,r=n[3]-n[2]-1;t.add(e,r,[])}}t.add(n[3]+1,0,[["exit",a,e]])}return void 0!==o&&(i.end=Object.assign({},$e(e.events,o)),t.add(o,0,[["exit",i,e]]),i=void 0),i}function qe(t,e,n,r,o){const i=[],a=$e(e.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,e])),r.end=Object.assign({},a),i.push(["exit",r,e]),t.add(n+1,0,i)}function $e(t,e){const n=t[e],r="enter"===n[0]?"start":"end";return n[1][r]}const We={name:"tasklistCheck",tokenize:function(t,e,n){const r=this;return function(e){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(e);return t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(e),t.exit("taskListCheckMarker"),o};function o(e){return N(e)?(t.enter("taskListCheckValueUnchecked"),t.consume(e),t.exit("taskListCheckValueUnchecked"),i):88===e||120===e?(t.enter("taskListCheckValueChecked"),t.consume(e),t.exit("taskListCheckValueChecked"),i):n(e)}function i(e){return 93===e?(t.enter("taskListCheckMarker"),t.consume(e),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):n(e)}function a(r){return R(r)?e(r):D(r)?t.check({tokenize:He},e,n)(r):n(r)}}};function He(t,e,n){return Oe(t,(function(t){return null===t?n(t):e(t)}),"whitespace")}function Ge(t){return function(t){const e={};let n=-1;for(;++n<t.length;)pe(e,t[n]);return e}([{text:be},{document:{91:{name:"gfmFootnoteDefinition",tokenize:De,continuation:{tokenize:Le},exit:Me}},text:{91:{name:"gfmFootnoteCall",tokenize:Ne},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ae,resolveTo:Re}}},Ie(t),{flow:{null:{name:"table",tokenize:Be,resolveAll:Ve}}},{text:{91:We}}])}const Xe={};function Ye(t){const e=t||Xe,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(Ge(e)),o.push([{transforms:[nt],enter:{literalAutolink:K,literalAutolinkEmail:J,literalAutolinkHttp:J,literalAutolinkWww:J},exit:{literalAutolink:et,literalAutolinkEmail:tt,literalAutolinkHttp:Z,literalAutolinkWww:Q}},{enter:{gfmFootnoteCallString:st,gfmFootnoteCall:ct,gfmFootnoteDefinitionLabelString:lt,gfmFootnoteDefinition:pt},exit:{gfmFootnoteCallString:ut,gfmFootnoteCall:dt,gfmFootnoteDefinitionLabelString:ft,gfmFootnoteDefinition:mt}},{canContainEols:["delete"],enter:{strikethrough:bt},exit:{strikethrough:wt}},{enter:{table:Jt,tableData:ee,tableHeader:ee,tableRow:Qt},exit:{codeText:ne,table:Zt,tableData:te,tableHeader:te,tableRow:te}},{exit:{taskListCheckValueChecked:ie,taskListCheckValueUnchecked:ie,paragraph:ae}}]),i.push(function(t){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:X,notInConstruct:Y},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:X,notInConstruct:Y},{character:":",before:"[ps]",after:"\\/",inConstruct:X,notInConstruct:Y}]},gt(t),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:yt}],handlers:{delete:kt}},oe(t),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:se}}]}}(e))}var Ke=function(t){return t.replace(/<a(.*?)href="(.*?)"(.*?)>/gi,'<a$1href="$2"$3 target="_blank" rel="noopener noreferrer">')},Je=function(t){return u(void 0,void 0,void 0,(function(){var e,r,o;return d(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,n.remark().use(Ye).use(l.default,{sanitize:!1}).process(t)];case 1:return e=i.sent(),r=e.toString(),r=r.replace(/<li>\s*<p>([\s\S]*?)<\/p>/g,"<li>$1"),[2,r=Ke(r)];case 2:return o=i.sent(),console.error("Error converting Markdown to HTML:",o),[2,""];case 3:return[2]}}))}))};function Ze(n){var r=n.answer,o=t.useState(""),i=o[0],a=o[1];return t.useEffect((function(){r&&Je(r).then((function(t){return a(t)}))}),[r]),j.jsxs("div",{className:"container flex h-auto w-full shrink-0 gap-4 bg-black/30 backdrop-blur-md shadow-lg rounded-lg border border-solid border-gray-700/40 p-5",children:[j.jsxs("div",{className:"w-full",children:[j.jsx("div",{className:"flex items-center justify-between pb-3",children:r&&j.jsx("div",{className:"flex items-center gap-3",children:j.jsx("button",{onClick:function(){navigator.clipboard.writeText(r.trim()),e.toast("Answer copied to clipboard",{icon:"✂️"})},className:"hover:opacity-80 transition-opacity duration-200",children:j.jsx("img",{src:"https://askjarvis.ai/img/copy-white.svg",alt:"copy",width:20,height:20,className:"cursor-pointer text-white"})})})}),j.jsx("div",{className:"flex flex-wrap content-center items-center gap-[15px] pl-5 pr-5",children:j.jsx("div",{className:"w-full whitespace-pre-wrap text-base font-light leading-[152.5%] text-white log-message",children:r?j.jsx("div",{className:"markdown-content",dangerouslySetInnerHTML:{__html:i}}):j.jsxs("div",{className:"flex w-full flex-col gap-2",children:[j.jsx("div",{className:"h-6 w-full animate-pulse rounded-md bg-gray-300/20"}),j.jsx("div",{className:"h-6 w-[85%] animate-pulse rounded-md bg-gray-300/20"}),j.jsx("div",{className:"h-6 w-[90%] animate-pulse rounded-md bg-gray-300/20"}),j.jsx("div",{className:"h-6 w-[70%] animate-pulse rounded-md bg-gray-300/20"})]})})})]}),j.jsx(e.Toaster,{position:"top-center",reverseOrder:!1,toastOptions:{duration:2e3}})]})}E(".markdown-content{color:#fff;font-family:Georgia,Times New Roman,Times,serif;font-size:18px;line-height:1.6;h1,h2,h3,h4,h5,h6{font-weight:500;line-height:1.2}h1{font-size:2.5em}h2{font-size:2em}h3{font-size:1.5em}h4{font-size:1.2em}h5{font-size:1.1em}h6{font-size:1em}p{line-height:1.6;margin:0}b,strong{font-weight:600}em,i{font-style:italic}del,s{text-decoration:line-through}ol,ul{line-height:1.6;margin:0;padding-left:2em}li{margin:0;padding-left:.5em}ul li{list-style-type:disc}ol li{list-style-type:decimal}ul.contains-task-list{list-style-type:none;padding-left:0}.task-list-item{list-style-type:none;padding-left:1.5em;position:relative}.task-list-item-checkbox{left:0;margin-right:.5em;position:absolute;top:.25em}a{color:#14b8a6;font-weight:500;text-decoration:underline;&:hover{color:#0d9488;opacity:.8}}pre{border-radius:4px;margin:1em 0;overflow-x:auto;padding:1em}code,pre{background-color:#1e1e1e}code{border-radius:3px;font-family:Courier New,Courier,monospace;font-size:.9em;padding:0 .4em}blockquote{background-color:rgba(20,184,166,.1);border-left:4px solid #14b8a6;border-radius:0 4px 4px 0;font-style:italic;margin:0;padding-left:1em}table{background-color:#111827;border:2px solid #4b5563;border-collapse:collapse;border-radius:4px;box-shadow:0 0 0 1px rgba(20,184,166,.1);margin:1em 0;overflow:hidden;width:100%}td,th{border:1px solid #4b5563;padding:.75em;text-align:left}tr:first-child th{border-top:2px solid #4b5563}tr:last-child td{border-bottom:2px solid #4b5563}td:first-child,th:first-child{border-left:2px solid #4b5563}td:last-child,th:last-child{border-right:2px solid #4b5563}th{background-color:#1f2937;color:#fff;font-weight:600}tr:nth-child(2n){background-color:#1a202c}tr:hover{background-color:#282c34}hr{border:0;border-top:1px solid #444;margin:1.5em 0}img{border-radius:4px;height:auto;max-width:100%}dl,img{margin:1em 0}dt{font-weight:700;margin-top:.5em}dd{margin-bottom:.5em;margin-left:2em}}");var Qe=function(e){var n=e.source,r=t.useState("https://www.google.com/s2/favicons?domain=".concat(n.url,"&sz=128")),o=r[0],i=r[1];return j.jsxs("div",{className:"flex h-[79px] w-full items-center gap-3 rounded-lg border border-solid border-gray-700/30 bg-gray-800/30 backdrop-blur-sm shadow-sm px-3 py-2 md:w-auto hover:border-teal-500/30 transition-colors duration-200",children:[j.jsx("img",{src:o,alt:n.url,className:"p-1",width:44,height:44,onError:function(){i("https://askjarvis.ai/img/globe.svg")}}),j.jsxs("div",{className:"flex max-w-[192px] flex-col justify-center gap-[7px]",children:[j.jsx("h6",{className:"line-clamp-2 text-sm font-medium leading-[normal] text-white",children:n.name}),j.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:n.url,className:"truncate text-sm font-light text-gray-300/60 hover:text-teal-300/80 transition-colors",children:n.url})]})]})};function tn(t){var e=t.sources;return j.jsxs("div",{className:"container h-auto w-full shrink-0 rounded-lg border border-solid border-gray-700/40 bg-black/30 backdrop-blur-md shadow-lg p-5",children:[j.jsxs("div",{className:"flex items-start gap-4 pb-3 lg:pb-3.5",children:[j.jsx("img",{src:"https://askjarvis.ai/img/browser.svg",alt:"sources",width:24,height:24}),j.jsxs("h3",{className:"text-base font-bold uppercase leading-[152.5%] text-white",children:[e.length," Sources"," "]})]}),j.jsx("div",{className:"overflow-y-auto max-h-[250px] scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-300/10",children:j.jsx("div",{className:"flex w-full max-w-[890px] flex-wrap content-center items-center gap-[15px] pb-2",children:e.length>0?e.map((function(t){return j.jsx(Qe,{source:t},t.url)})):j.jsxs(j.Fragment,{children:[j.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),j.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),j.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),j.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),j.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),j.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"})]})})})]})}function en(e){var n=e.imageSrc,r=e.isOpen,o=e.onClose,i=e.onNext,a=e.onPrev;if(t.useEffect((function(){if(r){var t=function(t){"ArrowLeft"===t.key?null==a||a():"ArrowRight"===t.key?null==i||i():"Escape"===t.key&&o()};return document.addEventListener("keydown",t),function(){return document.removeEventListener("keydown",t)}}}),[r,o,i,a]),!r)return null;var s=0,c=0,l=function(){c<s-50?null==i||i():c>s+50&&(null==a||a())};return j.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75 z-50 flex items-center justify-center p-4 overflow-auto",onClick:function(t){t.target===t.currentTarget&&o()},onTouchStart:function(t){s=t.changedTouches[0].screenX},onTouchEnd:function(t){c=t.changedTouches[0].screenX,l()},children:j.jsxs("div",{className:"relative max-w-[90vw] max-h-[90vh] flex items-center justify-center",children:[j.jsx("button",{onClick:a,className:"absolute left-4 z-10 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-75",children:"←"}),j.jsx("img",{src:n,alt:"Modal view",className:"max-h-[90vh] max-w-[90vw] object-contain"}),j.jsx("button",{onClick:i,className:"absolute right-4 z-10 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-75",children:"→"}),j.jsx("button",{onClick:o,className:"absolute top-4 right-4 z-10 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-75",children:"×"})]})})}function nn(e){var n=e.images,r=t.useState(!1),o=r[0],i=r[1],a=t.useState(null),s=a[0],c=a[1],l=t.useState(0),p=l[0],u=l[1],d=t.useState(n),f=d[0],m=d[1];return t.useEffect((function(){var t=[],e=n.filter((function(e){return!t.includes(e)}));m(e)}),[n]),0===f.length?null:j.jsxs("div",{className:"w-full h-full min-h-[200px] max-h-[400px]",children:[j.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-4 gap-4 pb-4",children:f.map((function(t,e){return j.jsx("div",{className:"relative aspect-square bg-gray-700 rounded-lg overflow-hidden hover:shadow-lg transition-shadow duration-300",children:j.jsx("img",{src:t,alt:"Image ".concat(e+1),className:"absolute inset-0 w-full h-full object-cover cursor-pointer hover:opacity-90 transition-opacity duration-300",onClick:function(){return function(t,e){c(t),u(e),i(!0)}(t,e)},onError:function(){return e=t,void m((function(t){return t.filter((function(t){return t!==e}))}));var e},loading:"lazy"})},e)}))}),s&&j.jsx(en,{imageSrc:s,isOpen:o,onClose:function(){i(!1),c(null)},onNext:function(){u((function(t){return(t+1)%f.length})),c(f[(p+1)%f.length])},onPrev:function(){u((function(t){return(t-1+f.length)%f.length})),c(f[(p-1+f.length)%f.length])}})]})}var rn=function(t){var e=t.metadata;return j.jsxs("div",{className:"container h-auto w-full shrink-0 rounded-lg border border-solid border-gray-700/40 bg-black/30 backdrop-blur-md shadow-lg p-5",children:[j.jsxs("div",{className:"flex items-start gap-4 pb-3 lg:pb-3.5",children:[j.jsx("img",{src:"https://askjarvis.ai/img/image.svg",alt:"images",width:24,height:24}),j.jsx("h3",{className:"text-base font-bold uppercase leading-[152.5%] text-white",children:"Related Images"})]}),j.jsx("div",{className:"overflow-y-auto max-h-[500px] scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-300/10",children:j.jsx(nn,{images:e})})]})},on=t.memo(rn,(function(t,e){if(t.metadata===e.metadata)return!0;if(!t.metadata||!e.metadata)return!1;if(t.metadata.length!==e.metadata.length)return!1;for(var n=0;n<t.metadata.length;n++)if(t.metadata[n]!==e.metadata[n])return!1;return!0})),an=function(t){var e=t.metadata,n=t.handleClickSuggestion;return j.jsxs("div",{className:"container flex w-full items-start gap-3 pt-5 pb-2",children:[j.jsx("div",{className:"flex w-fit items-center gap-4",children:j.jsx("img",{src:"https://askjarvis.ai/img/thinking.svg",alt:"thinking",width:30,height:30,className:"size-[24px]"})}),j.jsxs("div",{className:"grow text-white",children:[j.jsx("p",{className:"pr-5 font-bold leading-[152%] text-white pb-[20px]",children:"Pondering your question from several angles"}),j.jsx("div",{className:"flex flex-row flex-wrap items-center gap-2.5 pb-[20px]",children:e.map((function(t,e){return j.jsx("div",{className:"flex cursor-pointer items-center justify-center gap-[5px] rounded-full border border-solid border-[#C1C1C1] bg-[#EDEDEA] px-2.5 py-2",onClick:function(){return n(t)},children:j.jsx("span",{className:"text-sm font-light leading-[normal] text-[#1B1B16]",children:t})},"".concat(t,"-").concat(e))}))})]})]})};function sn(t){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(t)}var cn=function(e){var n=e.logs,r=t.useState(n),o=r[0],i=r[1];t.useEffect((function(){if(n&&n.length>0){var t=n.map((function(t){if(t.processedData){var e=t.processedData.map((function(t){return t.isMarkdown&&"string"==typeof t.htmlContent?p(p({},t),{htmlContent:Ke(t.htmlContent)}):t}));return p(p({},t),{processedData:e})}return t}));i(t)}}),[n]);var a=function(t){var e=t.text.match(/📃 Source: (https?:\/\/[^\s]+)/),n="";return e&&(n=e[1]),"differences"===t.header?"The following fields on the Langgraph were updated: "+Object.keys(JSON.parse(t.text).data).join(", "):"📄 Retrieved relevant content from the source: ".concat(n)},s=function(t){return"differences"===t.header&&t.processedData?t.processedData.map((function(t,e){return j.jsxs("div",{className:"mb-4",children:[j.jsxs("h3",{className:"font-semibold text-lg text-body-color dark:text-dark-6",children:[t.field,":"]}),t.isMarkdown?j.jsx("div",{className:"markdown-content",dangerouslySetInnerHTML:{__html:t.htmlContent}}):j.jsx("p",{className:"text-body-color dark:text-dark-6",children:"object"===sn(t.htmlContent)?JSON.stringify(t.htmlContent):t.htmlContent})]},e)})):j.jsx("p",{className:"mb-2 text-body-color dark:text-dark-6",children:t.text})},c=t.useState(null),l=c[0],u=c[1];return j.jsx("div",{id:"accordion-collapse","data-accordion":"collapse",className:"mt-4 bg-gray-900 rounded-lg",children:o.map((function(t,e){return j.jsxs("div",{children:[j.jsx("h2",{id:"accordion-collapse-heading-".concat(e),children:j.jsxs("button",{type:"button",className:"flex items-center w-full p-5 font-medium rtl:text-right text-white rounded-t-xl gap-3",onClick:function(){return function(t){u(l===t?null:t)}(e)},"aria-expanded":l===e,"aria-controls":"accordion-collapse-body-".concat(e),children:[j.jsx("span",{className:"flex-grow text-left",children:a(t)}),j.jsx("svg",{"data-accordion-icon":!0,className:"w-3 h-3 ".concat(l===e?"rotate-180":""," shrink-0"),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 6",children:j.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5 5 1 1 5"})})]})}),j.jsx("div",{id:"accordion-collapse-body-".concat(e),className:"".concat(l===e?"":"hidden"),"aria-labelledby":"accordion-collapse-heading-".concat(e),children:j.jsx("div",{className:"p-5 border border-b-0 border-gray-900 dark:border-gray-900 dark:bg-gray-900 text-white",children:s(t)})})]},e)}))})},ln=function(e){var n=e.logs,r=t.useState([]),o=r[0],i=r[1];return t.useEffect((function(){u(void 0,void 0,void 0,(function(){var t;return d(this,(function(e){switch(e.label){case 0:return n?[4,Promise.all(n.map((function(t){return u(void 0,void 0,void 0,(function(){var e,n,r;return d(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),"differences"===t.header&&t.text?(e=JSON.parse(t.text).data,[4,Promise.all(Object.keys(e).map((function(t){return u(void 0,void 0,void 0,(function(){var n,r;return d(this,(function(o){switch(o.label){case 0:return n=e[t].after||e[t].before,pn.includes(t)?[3,2]:[4,Je(n)];case 1:return r=o.sent(),[2,{field:t,htmlContent:r,isMarkdown:!0}];case 2:return[2,{field:t,htmlContent:n,isMarkdown:!1}]}}))}))})))]):[3,2];case 1:return n=o.sent(),[2,p(p({},t),{processedData:n})];case 2:return[2,t];case 3:return r=o.sent(),console.error("Error processing log:",r),[2,t];case 4:return[2]}}))}))})))]:[2];case 1:return t=e.sent(),i(t),[2]}}))}))}),[n]),j.jsx(j.Fragment,{children:o.map((function(t,e){return"subquery_context_window"===t.header||"differences"===t.header?j.jsx(cn,{logs:[t]},e):"selected_images"!==t.header&&"scraping_images"!==t.header?j.jsx("div",{className:"w-full max-w-4xl mx-auto rounded-lg pt-2 mt-3 pb-2 px-4 bg-gray-900 shadow-md",children:j.jsx("p",{className:"py-3 text-base leading-relaxed text-white dark:text-white",children:t.text})},e):null}))})},pn=["task","sections","headers","sources","research_data"],un=function(e){var n=e.logs,r=t.useRef(null);return t.useEffect((function(){r.current&&(r.current.scrollTop=r.current.scrollHeight)}),[n]),j.jsxs("div",{className:"container h-auto w-full shrink-0 rounded-lg border border-solid border-gray-700/40 bg-black/30 backdrop-blur-md shadow-lg p-5 mt-5",children:[j.jsxs("div",{className:"flex items-start gap-4 pb-3 lg:pb-3.5",children:[j.jsx("img",{src:"https://askjarvis.ai/img/chat-check.svg",alt:"logs",width:24,height:24}),j.jsx("h3",{className:"text-base font-bold uppercase leading-[152.5%] text-white",children:"Agent Work"})]}),j.jsx("div",{ref:r,className:"overflow-y-auto min-h-[200px] max-h-[500px] scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-300/10",children:j.jsx(ln,{logs:n})})]})},dn=function(t){var e=t.accessData,n=t.chatBoxSettings;t.report;var r=S(),o=function(t){if(!(null==e?void 0:e[t]))return console.warn("No ".concat(t," path provided")),"#";var n=e[t].trim().replace(/^\/+|\/+$/g,""),o=n.startsWith("outputs/")?n:"outputs/".concat(n);return"".concat(r,"/").concat(o)};return e&&"object"===sn(e)?j.jsx("div",{className:"container rounded-lg border border-solid border-gray-700/30 bg-black/30 backdrop-blur-md shadow-lg p-5 my-5",children:j.jsxs("div",{className:"flex flex-col items-center",children:[j.jsx("h3",{className:"text-lg font-bold mb-4 text-white",children:"Access Your Research Report"}),j.jsxs("div",{className:"flex flex-wrap justify-center gap-3",children:[j.jsxs("a",{href:o("pdf"),className:"bg-teal-600 text-white font-medium uppercase text-sm px-6 py-3 rounded-lg shadow-md hover:shadow-lg hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-teal-500/50 transform hover:scale-105 transition-all duration-200 flex items-center gap-2",target:"_blank",rel:"noopener noreferrer",children:[j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:j.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"View as PDF"]}),j.jsxs("a",{href:o("docx"),className:"bg-blue-500 text-white font-medium uppercase text-sm px-6 py-3 rounded-lg shadow-md hover:shadow-lg hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-blue-400/50 transform hover:scale-105 transition-all duration-200 flex items-center gap-2",target:"_blank",rel:"noopener noreferrer",children:[j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:j.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),"Download DocX"]}),"research_report"===(null==n?void 0:n.report_type)&&j.jsxs("a",{href:o("json"),className:"bg-cyan-600 text-white font-medium uppercase text-sm px-6 py-3 rounded-lg shadow-md hover:shadow-lg hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-cyan-500/50 transform hover:scale-105 transition-all duration-200 flex items-center gap-2",target:"_blank",rel:"noopener noreferrer",children:[j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:j.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"})}),"Download Logs"]})]})]})}):null},fn=function(t){var e=t.orderedData,n=t.answer,r=t.allLogs,o=t.chatBoxSettings,i=t.handleClickSuggestion,a=P(e),s=a.find((function(t){return"path"===t.type})),c=a.find((function(t){return"question"===t.type})),l=a.filter((function(t){return("question"!==t.type||t!==c)&&("question"===t.type||"chat"===t.type)})).map((function(t,e){return"question"===t.type?j.jsx(O,{question:t.content},"question-".concat(e)):j.jsx(Ze,{answer:t.content},"chat-".concat(e))})),p=a.filter((function(t){return"sourceBlock"===t.type})).map((function(t,e){return j.jsx(tn,{sources:t.items},"sourceBlock-".concat(e))})),u=a.filter((function(t){return"imagesBlock"===t.type})).map((function(t,e){var n;return j.jsx(on,{metadata:t.metadata},"images-".concat(e,"-").concat((null===(n=t.metadata)||void 0===n?void 0:n.length)||0))}));a.find((function(t){return"reportBlock"===t.type}));var d=a.filter((function(t){return"reportBlock"===t.type})).pop(),f=a.find((function(t){return"subqueries"===t.content}));return j.jsxs(j.Fragment,{children:[c&&j.jsx(O,{question:c.content}),e.length>0&&j.jsx(un,{logs:r}),f&&j.jsx(an,{metadata:f.metadata,handleClickSuggestion:i}),p,u,d&&j.jsx(Ze,{answer:d.content}),s&&j.jsx(dn,{accessData:s.output,report:n,chatBoxSettings:o}),l]})},mn=function(t){var e=t.loading,n=t.isStopped,r=t.showResult,o=t.onStop,i=t.onNewResearch;return j.jsxs("div",{className:"fixed top-0 left-0 right-0 z-50",children:[j.jsx("div",{className:"absolute inset-0 backdrop-blur-sm bg-transparent"}),j.jsx("div",{className:"container relative h-[60px] px-4 lg:h-[80px] lg:px-0 pt-4 pb-4",children:j.jsxs("div",{className:"flex flex-col items-center",children:[j.jsx("a",{href:"/",children:j.jsx("img",{src:"https://askjarvis.ai/img/gptr-logo.png",alt:"logo",width:60,height:60,className:"lg:h-16 lg:w-16"})}),j.jsxs("div",{className:"flex gap-2 mt-2 transition-all duration-300 ease-in-out",children:[e&&!n&&j.jsx("button",{onClick:o,className:"flex items-center justify-center px-4 sm:px-6 h-9 sm:h-10 text-sm text-white bg-red-500 rounded-full hover:bg-red-600 transform hover:scale-105 transition-all duration-200 shadow-lg whitespace-nowrap min-w-[80px]",children:"Stop"}),(n||!e)&&r&&j.jsx("button",{onClick:i,className:"flex items-center justify-center px-4 sm:px-6 h-9 sm:h-10 text-sm text-white bg-teal-500 rounded-full hover:bg-teal-600 transform hover:scale-105 transition-all duration-200 shadow-lg whitespace-nowrap min-w-[120px]",children:"New Research"})]})]})})]})},hn=function(){return j.jsxs("div",{className:"loader pb-1",children:[j.jsx("span",{}),j.jsx("span",{}),j.jsx("span",{})]})};var gn=function(e){var n,r,o,i=e.promptValue,a=e.setPromptValue,s=e.handleSubmit,c=e.handleSecondary,l=e.disabled,p=e.reset,u=e.isStopped,d=t.useRef(null),f=c?"Any questions about this report?":"What would you like me to research next?",m=function(){d.current&&(d.current.style.height="3em")},h=(n=function(t){t.style.height="auto",t.style.height="".concat(t.scrollHeight,"px")},r=100,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];clearTimeout(o),o=setTimeout((function(){clearTimeout(o),n.apply(void 0,t)}),r)});return u?null:c?j.jsx("span",{}):j.jsxs("form",{className:"mx-auto flex pt-2 pb-2 w-full items-center justify-between rounded-lg border bg-white px-3 shadow-[2px_2px_38px_0px_rgba(0,0,0,0.25),0px_-2px_4px_0px_rgba(0,0,0,0.25)_inset,1px_2px_4px_0px_rgba(0,0,0,0.25)_inset]",onSubmit:function(t){t.preventDefault(),p&&p(),s(i),a(""),m()},children:[j.jsx("textarea",{placeholder:f,ref:d,className:"focus-visible::outline-0 my-1 w-full pl-5 font-light not-italic leading-[normal] \n text-[#1B1B16]/30 text-black outline-none focus-visible:ring-0 focus-visible:ring-offset-0 \n sm:text-xl min-h-[4em] resize-none",disabled:l,value:i,required:!0,rows:3,onKeyDown:function(t){if("Enter"===t.key){if(t.shiftKey)return;t.preventDefault(),l||(p&&p(),s(i),a(""),m())}},onChange:function(t){var e=t.target;h(e),a(e.value)}}),j.jsxs("button",{disabled:l,type:"submit",className:"relative flex h-[50px] w-[50px] shrink-0 items-center justify-center rounded-[3px] bg-teal-500 hover:bg-gradient-to-br hover:from-[#0cdbb6] hover:via-[#1fd0f0] hover:to-[#06dbee] transition-all duration-300 disabled:opacity-75 disabled:hover:bg-teal-500/75",children:[l&&j.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:j.jsx(hn,{})}),j.jsx("div",{className:"relative p-2 cursor-pointer",children:j.jsx("img",{src:"https://askjarvis.ai/img/arrow-narrow-right.svg",alt:"search",width:24,height:24,className:"".concat(l?"invisible":""," transition-all duration-300 hover:scale-110 hover:brightness-110 hover:filter hover:drop-shadow-[0_0_3px_rgba(255,255,255,0.7)]")})})]})]})};const vn=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),xn=t.createContext({});const yn=t.createContext(null),bn="undefined"!=typeof document,wn=bn?t.useLayoutEffect:t.useEffect,kn=t.createContext({strict:!1});function jn(e,n,r,o){const i=t.useContext(xn).visualElement,a=t.useContext(kn),s=t.useContext(yn),c=t.useContext(vn).reducedMotion,l=t.useRef();o=o||a.renderer,!l.current&&o&&(l.current=o(e,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:c}));const p=l.current;t.useInsertionEffect((()=>{p&&p.update(r,s)})),wn((()=>{p&&p.render()})),t.useEffect((()=>{p&&p.updateFeatures()}));return(window.HandoffAppearAnimations?wn:t.useEffect)((()=>{p&&p.animationState&&p.animationState.animateChanges()})),p}function En(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Sn(t){return"string"==typeof t||Array.isArray(t)}function _n(t){return"object"==typeof t&&"function"==typeof t.start}const Pn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],On=["initial",...Pn];function Cn(t){return _n(t.animate)||On.some((e=>Sn(t[e])))}function Tn(t){return Boolean(Cn(t)||t.variants)}function An(e){const{initial:n,animate:r}=function(t,e){if(Cn(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Sn(e)?e:void 0,animate:Sn(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(xn));return t.useMemo((()=>({initial:n,animate:r})),[Rn(n),Rn(r)])}function Rn(t){return Array.isArray(t)?t.join(" "):t}const Nn={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Dn={};for(const t in Nn)Dn[t]={isEnabled:e=>Nn[t].some((t=>!!e[t]))};function Ln(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Mn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let In=1;const Fn=t.createContext({}),zn=t.createContext({}),Bn=Symbol.for("motionComponentSymbol");function Vn({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){e&&function(t){for(const e in t)Dn[e]={...Dn[e],...t[e]}}(e);const a=t.forwardRef((function(a,s){let l;const p={...t.useContext(vn),...a,layoutId:Un(a)},{isStatic:u}=p,d=An(a),f=u?void 0:Ln((()=>{if(Mn.hasEverUpdated)return In++})),m=o(a,u);if(!u&&bn){d.visualElement=jn(i,m,p,n);const r=t.useContext(zn),o=t.useContext(kn).strict;d.visualElement&&(l=d.visualElement.loadFeatures(p,o,e,f,r))}return c.createElement(xn.Provider,{value:d},l&&d.visualElement?c.createElement(l,{visualElement:d.visualElement,...p}):null,r(i,a,f,function(e,n,r){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):En(r)&&(r.current=t))}),[n])}(m,d.visualElement,s),m,u,d.visualElement))}));return a[Bn]=i,a}function Un({layoutId:e}){const n=t.useContext(Fn).id;return n&&void 0!==e?n+"-"+e:e}function qn(t){function e(e,n={}){return Vn(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const $n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wn(t){return"string"==typeof t&&!t.includes("-")&&!!($n.indexOf(t)>-1||/[A-Z]/.test(t))}const Hn={};const Gn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xn=new Set(Gn);function Yn(t,{layout:e,layoutId:n}){return Xn.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Hn[t]||"opacity"===t)}const Kn=t=>Boolean(t&&t.getVelocity),Jn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zn=Gn.length;const Qn=t=>e=>"string"==typeof e&&e.startsWith(t),tr=Qn("--"),er=Qn("var(--"),nr=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rr=(t,e,n)=>Math.min(Math.max(n,t),e),or={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},ir={...or,transform:t=>rr(0,1,t)},ar={...or,default:1},sr=t=>Math.round(1e5*t)/1e5,cr=/(-)?([\d]*\.?[\d])+/g,lr=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,pr=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ur(t){return"string"==typeof t}const dr=t=>({test:e=>ur(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),fr=dr("deg"),mr=dr("%"),hr=dr("px"),gr=dr("vh"),vr=dr("vw"),xr={...mr,parse:t=>mr.parse(t)/100,transform:t=>mr.transform(100*t)},yr={...or,transform:Math.round},br={borderWidth:hr,borderTopWidth:hr,borderRightWidth:hr,borderBottomWidth:hr,borderLeftWidth:hr,borderRadius:hr,radius:hr,borderTopLeftRadius:hr,borderTopRightRadius:hr,borderBottomRightRadius:hr,borderBottomLeftRadius:hr,width:hr,maxWidth:hr,height:hr,maxHeight:hr,size:hr,top:hr,right:hr,bottom:hr,left:hr,padding:hr,paddingTop:hr,paddingRight:hr,paddingBottom:hr,paddingLeft:hr,margin:hr,marginTop:hr,marginRight:hr,marginBottom:hr,marginLeft:hr,rotate:fr,rotateX:fr,rotateY:fr,rotateZ:fr,scale:ar,scaleX:ar,scaleY:ar,scaleZ:ar,skew:fr,skewX:fr,skewY:fr,distance:hr,translateX:hr,translateY:hr,translateZ:hr,x:hr,y:hr,z:hr,perspective:hr,transformPerspective:hr,opacity:ir,originX:xr,originY:xr,originZ:hr,zIndex:yr,fillOpacity:ir,strokeOpacity:ir,numOctaves:yr};function wr(t,e,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=t;let c=!1,l=!1,p=!0;for(const t in e){const n=e[t];if(tr(t)){i[t]=n;continue}const r=br[t],u=nr(n,r);if(Xn.has(t)){if(c=!0,a[t]=u,!p)continue;n!==(r.default||0)&&(p=!1)}else t.startsWith("origin")?(l=!0,s[t]=u):o[t]=u}if(e.transform||(c||r?o.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,o){let i="";for(let e=0;e<Zn;e++){const n=Gn[e];void 0!==t[n]&&(i+=`${Jn[n]||n}(${t[n]}) `)}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(t,r?"":i):n&&r&&(i="none"),i}(t.transform,n,p,r):o.transform&&(o.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;o.transformOrigin=`${t} ${e} ${n}`}}const kr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jr(t,e,n){for(const r in e)Kn(e[r])||Yn(r,n)||(t[r]=e[r])}function Er(e,n,r){const o={};return jr(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return wr(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function Sr(t,e,n){const r={},o=Er(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const _r=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Pr(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||_r.has(t)}let Or=t=>!Pr(t);try{(Cr=require("@emotion/is-prop-valid").default)&&(Or=t=>t.startsWith("on")?!Pr(t):Cr(t))}catch(t){}var Cr;function Tr(t,e,n){return"string"==typeof t?t:hr.transform(e+n*t)}const Ar={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rr={offset:"strokeDashoffset",array:"strokeDasharray"};function Nr(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...c},l,p,u){if(wr(t,c,l,u),p)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:f,dimensions:m}=t;d.transform&&(m&&(f.transform=d.transform),delete d.transform),m&&(void 0!==r||void 0!==o||f.transform)&&(f.transformOrigin=function(t,e,n){return`${Tr(e,t.x,t.width)} ${Tr(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?Ar:Rr;t[i.offset]=hr.transform(-r);const a=hr.transform(e),s=hr.transform(n);t[i.array]=`${a} ${s}`}(d,i,a,s,!1)}const Dr=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Lr=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Mr(e,n,r,o){const i=t.useMemo((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Nr(t,n,{enableHardwareAcceleration:!1},Lr(o),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};jr(t,e.style,e),i.style={...t,...i.style}}return i}function Ir(e=!1){return(n,r,o,i,{latestValues:a},s)=>{const c=(Wn(n)?Mr:Sr)(r,a,s,n),l=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(Or(o)||!0===n&&Pr(o)||!e&&!Pr(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(r,"string"==typeof n,e),p={...l,...c,ref:i},{children:u}=r,d=t.useMemo((()=>Kn(u)?u.get():u),[u]);return o&&(p["data-projection-id"]=o),t.createElement(n,{...p,children:d})}}const Fr=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function zr(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}const Br=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Vr(t,e,n,r){zr(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(Br.has(n)?n:Fr(n),e.attrs[n])}function Ur(t,e){const{style:n}=t,r={};for(const o in n)(Kn(n[o])||e.style&&Kn(e.style[o])||Yn(o,t))&&(r[o]=n[o]);return r}function qr(t,e){const n=Ur(t,e);for(const r in t)if(Kn(t[r])||Kn(e[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]}return n}function $r(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}const Wr=t=>Array.isArray(t);function Hr(t){const e=Kn(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const Gr=e=>(n,r)=>{const o=t.useContext(xn),i=t.useContext(yn),a=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const a={latestValues:Xr(r,o,i,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a}(e,n,o,i);return r?a():Ln(a)};function Xr(t,e,n,r){const o={},i=r(t,{});for(const t in i)o[t]=Hr(i[t]);let{initial:a,animate:s}=t;const c=Cn(t),l=Tn(t);e&&l&&!c&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===s&&(s=e.animate));let p=!!n&&!1===n.initial;p=p||!1===a;const u=p?s:a;if(u&&"boolean"!=typeof u&&!_n(u)){(Array.isArray(u)?u:[u]).forEach((e=>{const n=$r(t,e);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const t in a){let e=a[t];if(Array.isArray(e)){e=e[p?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const Yr={useVisualState:Gr({scrapeMotionValuesFromProps:qr,createRenderState:Dr,onMount:(t,e,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}Nr(n,r,{enableHardwareAcceleration:!1},Lr(e.tagName),t.transformTemplate),Vr(e,n)}})},Kr={useVisualState:Gr({scrapeMotionValuesFromProps:Ur,createRenderState:kr})};function Jr(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Zr=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Qr(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}function to(t,e,n,r){return Jr(t,e,(t=>e=>Zr(e)&&t(e,Qr(e)))(n),r)}const eo=(t,e)=>n=>e(t(n)),no=(...t)=>t.reduce(eo);function ro(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const oo=ro("dragHorizontal"),io=ro("dragVertical");function ao(t){let e=!1;if("y"===t)e=io();else if("x"===t)e=oo();else{const t=oo(),n=io();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function so(){const t=ao(!0);return!t||(t(),!1)}class co{constructor(t){this.isMounted=!1,this.node=t}update(){}}function lo(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return to(t.current,n,((n,o)=>{if("touch"===n.type||so())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[r]&&i[r](n,o)}),{passive:!t.getProps()[r]})}const po=(t,e)=>!!e&&(t===e||po(t,e.parentElement)),uo=t=>t;function fo(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Qr(n))}const mo=new WeakMap,ho=new WeakMap,go=t=>{const e=mo.get(t.target);e&&e(t)},vo=t=>{t.forEach(go)};function xo(t,e,n){const r=function({root:t,...e}){const n=t||document;ho.has(n)||ho.set(n,{});const r=ho.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(vo,{root:t,...e})),r[o]}(e);return mo.set(t,n),r.observe(t),()=>{mo.delete(t),r.unobserve(t)}}const yo={some:0,all:1};const bo={inView:{Feature:class extends co{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame((()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)}))}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:o,fallback:i=!0}=t;if("undefined"==typeof IntersectionObserver)return void(i&&this.viewportFallback());const a={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:yo[r]};return xo(this.node.current,a,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=e?n:r;i&&i(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends co{constructor(){super(...arguments),this.removeStartListeners=uo,this.removeEndListeners=uo,this.removeAccessibleListeners=uo,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=to(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();po(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}),{passive:!(n.onTap||n.onPointerUp)}),o=to(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=no(r,o),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Jr(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Jr(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&fo("up",this.node.getProps().onTap)})),fo("down",((t,e)=>{this.startPress(t,e)}))})),e=Jr(this.node.current,"blur",(()=>{this.isPressing&&fo("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=no(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(t,e)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!so()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(t,e)}mount(){const t=this.node.getProps(),e=to(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Jr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=no(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends co{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=no(Jr(this.node.current,"focus",(()=>this.onFocus())),Jr(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends co{mount(){this.unmount=no(lo(this.node,!0),lo(this.node,!1))}unmount(){}}}};function wo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const ko=t=>/^0[^.\s]+$/.test(t),jo={delta:0,timestamp:0},Eo=1/60*1e3,So="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),_o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(So())),Eo);let Po=!0,Oo=!1,Co=!1;const To=["read","update","preRender","render","postRender"],Ao=To.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const c=s&&o,l=c?e:n;return i&&a.add(t),-1===l.indexOf(t)&&(l.push(t),c&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),a.delete(t)},process:c=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(c),a.has(r)&&(s.schedule(r),t())}o=!1,i&&(i=!1,s.process(c))}}};return s}((()=>Oo=!0)),t)),{}),Ro=To.reduce(((t,e)=>{const n=Ao[e];return t[e]=(t,e=!1,r=!1)=>(Oo||Io(),n.schedule(t,e,r)),t}),{}),No=To.reduce(((t,e)=>(t[e]=Ao[e].cancel,t)),{}),Do=To.reduce(((t,e)=>(t[e]=()=>Ao[e].process(jo),t)),{}),Lo=t=>Ao[t].process(jo),Mo=t=>{Oo=!1,jo.delta=Po?Eo:Math.max(Math.min(t-jo.timestamp,40),1),jo.timestamp=t,Co=!0,To.forEach(Lo),Co=!1,Oo&&(Po=!1,_o(Mo))},Io=()=>{Oo=!0,Po=!0,Co||_o(Mo)};function Fo(t,e){-1===t.indexOf(e)&&t.push(e)}function zo(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Bo{constructor(){this.subscriptions=[]}add(t){return Fo(this.subscriptions,t),()=>zo(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Vo(t,e){return e?t*(1e3/e):0}class Uo{constructor(t,e={}){var n;this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:r}=jo;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Ro.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ro.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Bo);const n=this.events[t].add(e);return"change"===t?()=>{n(),Ro.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Vo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qo(t,e){return new Uo(t,e)}const $o=(t,e)=>n=>Boolean(ur(n)&&pr.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Wo=(t,e,n)=>r=>{if(!ur(r))return r;const[o,i,a,s]=r.match(cr);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Ho={...or,transform:t=>Math.round((t=>rr(0,255,t))(t))},Go={test:$o("rgb","red"),parse:Wo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Ho.transform(t)+", "+Ho.transform(e)+", "+Ho.transform(n)+", "+sr(ir.transform(r))+")"};const Xo={test:$o("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Go.transform},Yo={test:$o("hsl","hue"),parse:Wo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+mr.transform(sr(e))+", "+mr.transform(sr(n))+", "+sr(ir.transform(r))+")"},Ko={test:t=>Go.test(t)||Xo.test(t)||Yo.test(t),parse:t=>Go.test(t)?Go.parse(t):Yo.test(t)?Yo.parse(t):Xo.parse(t),transform:t=>ur(t)?t:t.hasOwnProperty("red")?Go.transform(t):Yo.transform(t)},Jo="${c}",Zo="${n}";function Qo(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,r=0;const o=t.match(lr);o&&(n=o.length,t=t.replace(lr,Jo),e.push(...o.map(Ko.parse)));const i=t.match(cr);return i&&(r=i.length,t=t.replace(cr,Zo),e.push(...i.map(or.parse))),{values:e,numColors:n,numNumbers:r,tokenised:t}}function ti(t){return Qo(t).values}function ei(t){const{values:e,numColors:n,tokenised:r}=Qo(t),o=e.length;return t=>{let e=r;for(let r=0;r<o;r++)e=e.replace(r<n?Jo:Zo,r<n?Ko.transform(t[r]):sr(t[r]));return e}}const ni=t=>"number"==typeof t?0:t;const ri={test:function(t){var e,n;return isNaN(t)&&ur(t)&&((null===(e=t.match(cr))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(lr))||void 0===n?void 0:n.length)||0)>0},parse:ti,createTransformer:ei,getAnimatableNone:function(t){const e=ti(t);return ei(t)(e.map(ni))}},oi=new Set(["brightness","contrast","saturate","opacity"]);function ii(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(cr)||[];if(!r)return t;const o=n.replace(r,"");let i=oi.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const ai=/([a-z-]*)\(.*?\)/g,si={...ri,getAnimatableNone:t=>{const e=t.match(ai);return e?e.map(ii).join(" "):t}},ci={...br,color:Ko,backgroundColor:Ko,outlineColor:Ko,fill:Ko,stroke:Ko,borderColor:Ko,borderTopColor:Ko,borderRightColor:Ko,borderBottomColor:Ko,borderLeftColor:Ko,filter:si,WebkitFilter:si},li=t=>ci[t];function pi(t,e){let n=li(t);return n!==si&&(n=ri),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ui=t=>e=>e.test(t),di=[or,hr,mr,fr,vr,gr,{test:t=>"auto"===t,parse:t=>t}],fi=t=>di.find(ui(t)),mi=[...di,Ko,ri],hi=t=>mi.find(ui(t));function gi(t,e,n){const r=t.getProps();return $r(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function vi(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,qo(n))}function xi(t,e){if(!e)return;return(e[t]||e.default||e).from}function yi(t){return Boolean(Kn(t)&&t.add)}const bi="data-"+Fr("framerAppearId");let wi=uo,ki=uo;"production"!==process.env.NODE_ENV&&(wi=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},ki=(t,e)=>{if(!t)throw new Error(e)});const ji=t=>1e3*t,Ei=!1,Si=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,_i=t=>e=>1-t(1-e),Pi=t=>t*t,Oi=_i(Pi),Ci=Si(Pi),Ti=(t,e,n)=>-n*t+n*e+t;function Ai(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Ri=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},Ni=[Xo,Go,Yo];function Di(t){const e=(n=t,Ni.find((t=>t.test(n))));var n;ki(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===Yo&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=Ai(s,r,t+1/3),i=Ai(s,r,t),a=Ai(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Li=(t,e)=>{const n=Di(t),r=Di(e),o={...n};return t=>(o.red=Ri(n.red,r.red,t),o.green=Ri(n.green,r.green,t),o.blue=Ri(n.blue,r.blue,t),o.alpha=Ti(n.alpha,r.alpha,t),Go.transform(o))};function Mi(t,e){return"number"==typeof t?n=>Ti(t,e,n):Ko.test(t)?Li(t,e):zi(t,e)}const Ii=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>Mi(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},Fi=(t,e)=>{const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=Mi(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}},zi=(t,e)=>{const n=ri.createTransformer(e),r=Qo(t),o=Qo(e);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?no(Ii(r.values,o.values),n):(wi(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},Bi=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},Vi=(t,e)=>n=>Ti(t,e,n);function Ui(t,e,n){const r=[],o=n||("number"==typeof(i=t[0])?Vi:"string"==typeof i?Ko.test(i)?Li:zi:Array.isArray(i)?Ii:"object"==typeof i?Fi:Vi);var i;const a=t.length-1;for(let n=0;n<a;n++){let i=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;i=no(t,i)}r.push(i)}return r}function qi(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;ki(i===e.length,"Both input and output ranges must be the same length"),ki(!r||!Array.isArray(r)||r.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ui(e,r,o),s=a.length,c=e=>{let n=0;if(s>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=Bi(t[n],t[n+1],e);return a[n](r)};return n?e=>c(rr(t[0],t[i-1],e)):c}function $i(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=Bi(0,e,r);t.push(Ti(n,1,o))}}(e,t.length-1),e}const Wi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Hi(t,e,n,r){if(t===e&&n===r)return uo;const o=e=>function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=Wi(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>1e-7&&++s<12);return a}(e,0,1,t,n);return t=>0===t||1===t?t:Wi(o(t),e,r)}const Gi=t=>1-Math.sin(Math.acos(t)),Xi=_i(Gi),Yi=Si(Xi),Ki=Hi(.33,1.53,.69,.99),Ji=_i(Ki),Zi=Si(Ji),Qi={linear:uo,easeIn:Pi,easeInOut:Ci,easeOut:Oi,circIn:Gi,circInOut:Yi,circOut:Xi,backIn:Ji,backInOut:Zi,backOut:Ki,anticipate:t=>(t*=2)<1?.5*Ji(t):.5*(2-Math.pow(2,-10*(t-1)))},ta=t=>{if(Array.isArray(t)){ki(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return Hi(e,n,r,o)}return"string"==typeof t?(ki(void 0!==Qi[t],`Invalid easing type '${t}'`),Qi[t]):t};function ea({keyframes:t,ease:e=Ci,times:n,duration:r=300}){t=[...t];const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(ta):ta(e),i={done:!1,value:t[0]},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:$i(t),r);function s(){return qi(a,t,{ease:Array.isArray(o)?o:(e=t,n=o,e.map((()=>n||Ci)).splice(0,e.length-1))});var e,n}let c=s();return{next:t=>(i.value=c(t),i.done=t>=r,i),flipTarget:()=>{t.reverse(),c=s()}}}const na=.001;function ra({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;wi(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=rr(.05,1,a),t=rr(.01,10,t/1e3),a<1?(o=e=>{const r=e*a,o=r*t,i=r-n,s=ia(e,a),c=Math.exp(-o);return na-i/s*c},i=e=>{const r=e*a*t,i=r*n+n,s=Math.pow(a,2)*Math.pow(e,2)*t,c=Math.exp(-r),l=ia(Math.pow(e,2),a);return(-o(e)+na>0?-1:1)*((i-s)*c)/l}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const s=function(t,e,n){let r=n;for(let n=1;n<oa;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(s,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}const oa=12;function ia(t,e){return t*Math.sqrt(1-e*e)}const aa=["duration","bounce"],sa=["stiffness","damping","mass"];function ca(t,e){return e.some((e=>void 0!==t[e]))}function la({keyframes:t,restDelta:e,restSpeed:n,...r}){let o=t[0],i=t[t.length-1];const a={done:!1,value:o},{stiffness:s,damping:c,mass:l,velocity:p,duration:u,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ca(t,sa)&&ca(t,aa)){const n=ra(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r);let f=pa,m=p?-p/1e3:0;const h=c/(2*Math.sqrt(s*l));function g(){const t=i-o,r=Math.sqrt(s/l)/1e3,a=Math.abs(t)<5;if(n||(n=a?.01:2),e||(e=a?.005:.5),h<1){const e=ia(r,h);f=n=>{const o=Math.exp(-h*r*n);return i-o*((m+h*r*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===h)f=e=>i-Math.exp(-r*e)*(t+(m+r*t)*e);else{const e=r*Math.sqrt(h*h-1);f=n=>{const o=Math.exp(-h*r*n),a=Math.min(e*n,300);return i-o*((m+h*r*t)*Math.sinh(a)+e*t*Math.cosh(a))/e}}}return g(),{next:t=>{const r=f(t);if(d)a.done=t>=u;else{let o=m;if(0!==t)if(h<1){const e=Math.max(0,t-5);o=Vo(r-f(e),t-e)}else o=0;const s=Math.abs(o)<=n,c=Math.abs(i-r)<=e;a.done=s&&c}return a.value=a.done?i:r,a},flipTarget:()=>{m=-m,[o,i]=[i,o],g()}}}la.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const pa=t=>0;const ua={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a=t[0],s={done:!1,value:a};let c=n*e;const l=a+c,p=void 0===i?l:i(l);return p!==l&&(c=p-a),{next:t=>{const e=-c*Math.exp(-t/r);return s.done=!(e>o||e<-o),s.value=s.done?p:p+e,s},flipTarget:()=>{}}},keyframes:ea,tween:ea,spring:la};function da(t,e,n=0){return t-e-n}const fa=t=>{const e=({delta:e})=>t(e);return{start:()=>Ro.update(e,!0),stop:()=>No.update(e)}};function ma({duration:t,driver:e=fa,elapsed:n=0,repeat:r=0,repeatType:o="loop",repeatDelay:i=0,keyframes:a,autoplay:s=!0,onPlay:c,onStop:l,onComplete:p,onRepeat:u,onUpdate:d,type:f="keyframes",...m}){const h=n;let g,v,x=0,y=t,b=!1,w=!0;const k=ua[a.length>2?"keyframes":f]||ea,j=a[0],E=a[a.length-1];let S={done:!1,value:j};const{needsInterpolation:_}=k;_&&_(j,E)&&(v=qi([0,100],[j,E],{clamp:!1}),a=[0,100]);const P=k({...m,duration:t,keyframes:a});function O(){x++,"reverse"===o?(w=x%2==0,n=function(t,e=0,n=0,r=!0){return r?da(e+-t,e,n):e-(t-e)+n}(n,y,i,w)):(n=da(n,y,i),"mirror"===o&&P.flipTarget()),b=!1,u&&u()}function C(t){w||(t=-t),n+=t,b||(S=P.next(Math.max(0,n)),v&&(S.value=v(S.value)),b=w?S.done:n<=0),d&&d(S.value),b&&(0===x&&(y=void 0!==y?y:n),x<r?function(t,e,n,r){return r?t>=e+n:t<=-n}(n,y,i,w)&&O():(g&&g.stop(),p&&p()))}return s&&(c&&c(),g=e(C),g.start()),{stop:()=>{l&&l(),g&&g.stop()},set currentTime(t){n=h,C(t)},sample:e=>{n=h;const r=t&&"number"==typeof t?Math.max(.5*t,50):50;let o=0;for(C(0);o<=e;){const t=e-o;C(Math.min(t,r)),o+=r}return S}}}const ha=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,ga={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ha([0,.65,.55,1]),circOut:ha([.55,0,1,.45]),backIn:ha([.31,.01,.66,-.59]),backOut:ha([.33,1.53,.69,.99])};function va(t){if(t)return Array.isArray(t)?ha(t):ga[t]}const xa={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},ya={},ba={};for(const t in xa)ba[t]=()=>(void 0===ya[t]&&(ya[t]=xa[t]()),ya[t]);const wa=new Set(["opacity","clipPath","filter","transform"]);function ka(t,e,{onUpdate:n,onComplete:r,...o}){if(!(ba.waapi()&&wa.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping))return!1;let{keyframes:i,duration:a=300,elapsed:s=0,ease:c}=o;if("spring"===o.type||!(!(l=o.ease)||Array.isArray(l)||"string"==typeof l&&ga[l])){if(o.repeat===1/0)return;const t=ma({...o,elapsed:0});let e={done:!1,value:i[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;i=n,a=r-10,c="linear"}var l;const p=function(t,e,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:c}={}){return t.animate({[e]:n,offset:c},{delay:r,duration:o,easing:va(s),fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,i,{...o,delay:-s,duration:a,ease:c});return p.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(i,o)),Ro.update((()=>p.cancel())),r&&r()},{get currentTime(){return p.currentTime||0},set currentTime(t){p.currentTime=t},stop:()=>{const{currentTime:e}=p;if(e){const n=ma({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}Ro.update((()=>p.cancel()))}}}function ja(t,e){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(No.read(r),t(i-e))};return Ro.read(r,!0),()=>No.read(r)}function Ea({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){const o=()=>{n&&n(t[t.length-1]),r&&r()};return e?{stop:ja(o,-e)}:o()}const Sa={type:"spring",stiffness:500,damping:25,restSpeed:10},_a={type:"keyframes",duration:.8},Pa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Oa=(t,{keyframes:e})=>e.length>2?_a:Xn.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Sa:Pa,Ca=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!ri.test(e)||e.startsWith("url(")));function Ta(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Aa(t){return"number"==typeof t?0:pi("",t)}function Ra(t,e){return t[e]||t.default||t}const Na=(t,e,n,r={})=>o=>{const i=Ra(r,t)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=ji(a);const c=function(t,e,n,r){const o=Ca(e,n);let i=void 0!==r.from?r.from:t.get();return"none"===i&&o&&"string"==typeof n?i=pi(e,n):Ta(i)&&"string"==typeof n?i=Aa(n):!Array.isArray(n)&&Ta(n)&&"string"==typeof i&&(n=Aa(i)),Array.isArray(n)?(null===n[0]&&(n[0]=i),n):[i,n]}(e,t,n,i),l=c[0],p=c[c.length-1],u=Ca(t,l),d=Ca(t,p);wi(u===d,`You are trying to animate ${t} from "${l}" to "${p}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${p} via the \`style\` property.`);let f={keyframes:c,velocity:e.getVelocity(),...i,elapsed:s,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(!u||!d||Ei||!1===i.type)return Ea(f);if("inertia"===i.type)return function({keyframes:t,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:p,onUpdate:u,onComplete:d,onStop:f}){const m=t[0];let h;function g(t){return void 0!==n&&t<n||void 0!==r&&t>r}function v(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function x(t){h&&h.stop(),h=ma({keyframes:[0,1],velocity:0,...t,driver:p,onUpdate:e=>{u&&u(e),t.onUpdate&&t.onUpdate(e)},onComplete:d,onStop:f})}function y(t){x({type:"spring",stiffness:a,damping:s,restDelta:c,...t})}if(g(m))y({velocity:e,keyframes:[m,v(m)]});else{let t=o*e+m;void 0!==l&&(t=l(t));const r=v(t),a=r===n?-1:1;let s,p;const u=t=>{s=p,p=t,e=Vo(t-s,jo.delta),(1===a&&t>r||-1===a&&t<r)&&y({keyframes:[t,r],velocity:e})};x({type:"decay",keyframes:[m,0],velocity:e,timeConstant:i,power:o,restDelta:c,modifyTarget:l,onUpdate:g(t)?u:void 0})}return{stop:()=>h&&h.stop()}}(f);if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:c,elapsed:l,...p}){return!!Object.keys(p).length}(i)||(f={...f,...Oa(t,f)}),f.duration&&(f.duration=ji(f.duration)),f.repeatDelay&&(f.repeatDelay=ji(f.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=ka(e,t,f);if(n)return n}return ma(f)};function Da(t,e,n={}){const r=gi(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>La(t,r,n):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(t,e,n=0,r=0,o=1,i){const a=[],s=(t.variantChildren.size-1)*r,c=1===o?(t=0)=>t*r:(t=0)=>s-t*r;return Array.from(t.variantChildren).sort(Ma).forEach(((t,r)=>{t.notify("AnimationStart",e),a.push(Da(t,e,{...i,delay:n+c(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[t,e]="beforeChildren"===s?[i,a]:[a,i];return t().then(e)}return Promise.all([i(),a(n.delay)])}function La(t,e,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:a,...s}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");r&&(i=r);const l=[],p=o&&t.animationState&&t.animationState.getState()[o];for(const e in s){const r=t.getValue(e),o=s[e];if(!r||void 0===o||p&&Ia(p,e))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=t.getProps()[bi];n&&(a.elapsed=window.HandoffAppearAnimations(n,e,r,Ro))}let u=r.start(Na(e,r,o,t.shouldReduceMotion&&Xn.has(e)?{type:!1}:a));yi(c)&&(c.add(e),u=u.then((()=>c.remove(e)))),l.push(u)}return Promise.all(l).then((()=>{a&&function(t,e){const n=gi(t,e);let{transitionEnd:r={},transition:o={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i)vi(t,e,(a=i[e],Wr(a)?a[a.length-1]||0:a));var a}(t,a)}))}function Ma(t,e){return t.sortNodePosition(e)}function Ia({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}const Fa=[...Pn].reverse(),za=Pn.length;function Ba(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>Da(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=Da(t,e,n);else{const o="function"==typeof e?gi(t,e,n.custom):e;r=La(t,o,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Va(t){let e=Ba(t);const n={animate:qa(!0),whileInView:qa(),whileHover:qa(),whileTap:qa(),whileDrag:qa(),whileFocus:qa(),exit:qa()};let r=!0;const o=(e,n)=>{const r=gi(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function i(i,a){const s=t.getProps(),c=t.getVariantContext(!0)||{},l=[],p=new Set;let u={},d=1/0;for(let e=0;e<za;e++){const f=Fa[e],m=n[f],h=void 0!==s[f]?s[f]:c[f],g=Sn(h),v=f===a?m.isActive:null;!1===v&&(d=e);let x=h===c[f]&&h!==s[f]&&g;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...u},!m.isActive&&null===v||!h&&!m.prevProp||_n(h)||"boolean"==typeof h)continue;const y=Ua(m.prevProp,h);let b=y||f===a&&m.isActive&&!x&&g||e>d&&g;const w=Array.isArray(h)?h:[h];let k=w.reduce(o,{});!1===v&&(k={});const{prevResolvedValues:j={}}=m,E={...j,...k},S=t=>{b=!0,p.delete(t),m.needsAnimating[t]=!0};for(const t in E){const e=k[t],n=j[t];u.hasOwnProperty(t)||(e!==n?Wr(e)&&Wr(n)?!wo(e,n)||y?S(t):m.protectedKeys[t]=!0:void 0!==e?S(t):p.add(t):void 0!==e&&p.has(t)?S(t):m.protectedKeys[t]=!0)}m.prevProp=h,m.prevResolvedValues=k,m.isActive&&(u={...u,...k}),r&&t.blockInitialAnimation&&(b=!1),b&&!x&&l.push(...w.map((t=>({animation:t,options:{type:f,...i}}))))}if(p.size){const e={};p.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),l.push({animation:e})}let f=Boolean(l.length);return r&&!1===s.initial&&!t.manuallyAnimateOnMount&&(f=!1),r=!1,f?e(l):Promise.resolve()}return{animateChanges:i,setActive:function(e,r,o){var a;if(n[e].isActive===r)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const s=i(o,e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function Ua(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!wo(e,t)}function qa(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let $a=0;const Wa={animation:{Feature:class extends co{constructor(t){super(t),t.animationState||(t.animationState=Va(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),_n(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends co{constructor(){super(...arguments),this.id=$a++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&o.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},Ha=(t,e)=>Math.abs(t-e);class Ga{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Ka(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Ha(t.x,e.x),r=Ha(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:o}=jo;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Xa(e,this.transformPagePoint),Ro.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Ka("pointercancel"===t.type?this.lastMoveEventInfo:Xa(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),r&&r(t,o)},!Zr(t))return;this.handlers=e,this.transformPagePoint=n;const r=Xa(Qr(t),this.transformPagePoint),{point:o}=r,{timestamp:i}=jo;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=e;a&&a(t,Ka(r,this.history)),this.removeListeners=no(to(window,"pointermove",this.handlePointerMove),to(window,"pointerup",this.handlePointerUp),to(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),No.update(this.updatePoint)}}function Xa(t,e){return e?{point:e(t.point)}:t}function Ya(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ka({point:t},e){return{point:t,delta:Ya(t,Za(e)),offset:Ya(t,Ja(e)),velocity:Qa(e,.1)}}function Ja(t){return t[0]}function Za(t){return t[t.length-1]}function Qa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=Za(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>ji(e)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ts(t){return t.max-t.min}function es(t,e=0,n=.01){return Math.abs(t-e)<=n}function ns(t,e,n,r=.5){t.origin=r,t.originPoint=Ti(e.min,e.max,t.origin),t.scale=ts(n)/ts(e),(es(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Ti(n.min,n.max,t.origin)-t.originPoint,(es(t.translate)||isNaN(t.translate))&&(t.translate=0)}function rs(t,e,n,r){ns(t.x,e.x,n.x,r?r.originX:void 0),ns(t.y,e.y,n.y,r?r.originY:void 0)}function os(t,e,n){t.min=n.min+e.min,t.max=t.min+ts(e)}function is(t,e,n){t.min=e.min-n.min,t.max=t.min+ts(e)}function as(t,e,n){is(t.x,e.x,n.x),is(t.y,e.y,n.y)}function ss(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function cs(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const ls=.35;function ps(t,e,n){return{min:us(t,e),max:us(t,n)}}function us(t,e){return"number"==typeof t?t:t[e]||0}function ds(t){return[t("x"),t("y")]}function fs({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function ms(t){return void 0===t||1===t}function hs({scale:t,scaleX:e,scaleY:n}){return!ms(t)||!ms(e)||!ms(n)}function gs(t){return hs(t)||vs(t)||t.z||t.rotate||t.rotateX||t.rotateY}function vs(t){return xs(t.x)||xs(t.y)}function xs(t){return t&&"0%"!==t}function ys(t,e,n){return n+e*(t-n)}function bs(t,e,n,r,o){return void 0!==o&&(t=ys(t,o,r)),ys(t,n,r)+e}function ws(t,e=0,n=1,r,o){t.min=bs(t.min,e,n,r,o),t.max=bs(t.max,e,n,r,o)}function ks(t,{x:e,y:n}){ws(t.x,e.translate,e.scale,e.originPoint),ws(t.y,n.translate,n.scale,n.originPoint)}function js(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Es(t,e){t.min=t.min+e,t.max=t.max+e}function Ss(t,e,[n,r,o]){const i=void 0!==e[o]?e[o]:.5,a=Ti(t.min,t.max,i);ws(t,e[n],e[r],a,e.scale)}const _s=["x","scaleX","originX"],Ps=["y","scaleY","originY"];function Os(t,e){Ss(t.x,e,_s),Ss(t.y,e,Ps)}function Cs(t,e){return fs(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const Ts=new WeakMap;class As{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Ga(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(Qr(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ao(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ds((t=>{let e=this.getAxisMotionValue(t).get()||0;if(mr.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=ts(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&o(t,e);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=e;if(r&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&o(t,e)}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:r}=this.getProps();if(!n||!Rs(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?Ti(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?Ti(n,t,r.max):Math.min(t,n)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;t&&En(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:r,right:o}){return{x:ss(t.x,n,o),y:ss(t.y,e,r)}}(n.layoutBox,t),this.elastic=function(t=ls){return!1===t?t=0:!0===t&&(t=ls),{x:ps(t,"left","right"),y:ps(t,"top","bottom")}}(e),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ds((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!En(t))return!1;const n=t.current;ki(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(t,e,n){const r=Cs(t,n),{scroll:o}=e;return o&&(Es(r.x,o.offset.x),Es(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:cs(t.x,e.x),y:cs(t.y,e.y)}}(r.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=fs(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},c=ds((a=>{if(!Rs(a,e,this.currentDirection))return;let c=s&&s[a]||{};i&&(c={min:0,max:0});const l=r?200:1e6,p=r?40:1e7,u={type:"inertia",velocity:n?t[a]:0,bounceStiffness:l,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(a,u)}));return Promise.all(c).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Na(t,n,0,e))}stopAnimation(){ds((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ds((e=>{const{drag:n}=this.getProps();if(!Rs(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[e];o.set(t[e]-Ti(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!En(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ds((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=ts(t),o=ts(e);return o>r?n=Bi(e.min,e.max-r,t.min):r>o&&(n=Bi(t.min,t.max-o,e.min)),rr(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ds((e=>{if(!Rs(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(Ti(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;Ts.set(this.visualElement,this);const t=to(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();En(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const o=Jr(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ds((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{o(),t(),r(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=ls,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Rs(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}function Ns(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ds={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!hr.test(t))return t;t=parseFloat(t)}return`${Ns(t,e.target.x)}% ${Ns(t,e.target.y)}%`}},Ls=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ms(t,e,n=1){ki(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,o]=function(t){const e=Ls.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);return i?i.trim():er(o)?Ms(o,e,n+1):o}const Is="_$css",Fs={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=t.includes("var("),i=[];o&&(t=t.replace(Ls,(t=>(i.push(t),Is))));const a=ri.parse(t);if(a.length>5)return r;const s=ri.createTransformer(t),c="number"!=typeof a[0]?1:0,l=n.x.scale*e.x,p=n.y.scale*e.y;a[0+c]/=l,a[1+c]/=p;const u=Ti(l,p,.5);"number"==typeof a[2+c]&&(a[2+c]/=u),"number"==typeof a[3+c]&&(a[3+c]/=u);let d=s(a);if(o){let t=0;d=d.replace(Is,(()=>{const e=i[t];return t++,e}))}return d}};class zs extends s.default.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;var i;i=Vs,Object.assign(Hn,i),o&&(e.group&&e.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Mn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||Ro.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Bs(e){const[n,r]=function(){const e=t.useContext(yn);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect((()=>o(i)),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(Fn);return s.default.createElement(zs,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(zn),isPresent:n,safeToRemove:r})}const Vs={borderRadius:{...Ds,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ds,borderTopRightRadius:Ds,borderBottomLeftRadius:Ds,borderBottomRightRadius:Ds,boxShadow:Fs};const Us=["TopLeft","TopRight","BottomLeft","BottomRight"],qs=Us.length,$s=t=>"string"==typeof t?parseFloat(t):t,Ws=t=>"number"==typeof t||hr.test(t);function Hs(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Gs=Ys(0,.5,Xi),Xs=Ys(.5,.95,uo);function Ys(t,e,n){return r=>r<t?0:r>e?1:n(Bi(t,e,r))}function Ks(t,e){t.min=e.min,t.max=e.max}function Js(t,e){Ks(t.x,e.x),Ks(t.y,e.y)}function Zs(t,e,n,r,o){return t=ys(t-=e,1/n,r),void 0!==o&&(t=ys(t,1/o,r)),t}function Qs(t,e,[n,r,o],i,a){!function(t,e=0,n=1,r=.5,o,i=t,a=t){mr.test(e)&&(e=parseFloat(e),e=Ti(a.min,a.max,e/100)-a.min);if("number"!=typeof e)return;let s=Ti(i.min,i.max,r);t===i&&(s-=e),t.min=Zs(t.min,e,n,s,o),t.max=Zs(t.max,e,n,s,o)}(t,e[n],e[r],e[o],e.scale,i,a)}const tc=["x","scaleX","originX"],ec=["y","scaleY","originY"];function nc(t,e,n,r){Qs(t.x,e,tc,n?n.x:void 0,r?r.x:void 0),Qs(t.y,e,ec,n?n.y:void 0,r?r.y:void 0)}function rc(t){return 0===t.translate&&1===t.scale}function oc(t){return rc(t.x)&&rc(t.y)}function ic(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function ac(t){return ts(t.x)/ts(t.y)}class sc{constructor(){this.members=[]}add(t){Fo(this.members,t),t.scheduleRender()}remove(t){if(zo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function cc(t,e,n){let r="";const o=t.x.translate/e.x,i=t.y.translate/e.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===e.x&&1===e.y||(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=t.x.scale*e.x,s=t.y.scale*e.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const lc=(t,e)=>t.depth-e.depth;class pc{constructor(){this.children=[],this.isDirty=!1}add(t){Fo(this.children,t),this.isDirty=!0}remove(t){zo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lc),this.isDirty=!1,this.children.forEach(t)}}const uc=["","X","Y","Z"];let dc=0;const fc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function mc({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(t,n={},r=(null==e?void 0:e())){this.id=dc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;fc.totalNodes=fc.resolvedTargetDeltas=fc.recalculatedProjection=0,this.nodes.forEach(vc),this.nodes.forEach(jc),this.nodes.forEach(Ec),this.nodes.forEach(xc),t=fc,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new pc)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Bo),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(o||r)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=ja(r,250),Mn.hasAnimatedSinceResize&&(Mn.hasAnimatedSinceResize=!1,this.nodes.forEach(kc))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||Tc,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ic(this.targetLayout,r)||n,l=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||e&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,l);const e={...Ra(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||kc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,No.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Sc),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(bc);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ac),this.potentialNodes.clear()),this.nodes.forEach(wc),this.nodes.forEach(hc),this.nodes.forEach(gc),this.clearAllSnapshots(),Do.update(),Do.preRender(),Do.render())}clearAllSnapshots(){this.nodes.forEach(yc),this.sharedNodes.forEach(_c)}scheduleUpdateProjection(){Ro.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ro.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!oc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||gs(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),Rc((r=n).x),Rc(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Es(e.x,n.offset.x),Es(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Js(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Js(e,t);const{scroll:n}=this.root;n&&(Es(e.x,-n.offset.x),Es(e.y,-n.offset.y))}Es(e.x,o.offset.x),Es(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Js(n,t);for(let t=0;t<this.path.length;t++){const r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Os(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),gs(r.latestValues)&&Os(n,r.latestValues)}return gs(this.latestValues)&&Os(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Js(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!gs(n.latestValues))continue;hs(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};Js(r,n.measurePageBox()),nc(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return gs(this.latestValues)&&nc(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var t;const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);if(!((Boolean(this.resumingFrom)||this!==e)&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},as(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Js(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var o,i,a;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(o=this.target,i=this.relativeTarget,a=this.relativeParent.target,os(o.x,i.x,a.x),os(o.y,i.y,a.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Js(this.target,this.layout.layoutBox),ks(this.target,this.targetDelta)):Js(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},as(this.relativeTargetOrigin,this.target,t.target),Js(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}fc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!hs(this.parent.latestValues)&&!vs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Js(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,r=!1){const o=n.length;if(!o)return;let i,a;e.x=e.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Os(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,ks(t,a)),r&&gs(i.latestValues)&&Os(t,i.latestValues))}e.x=js(e.x),e.y=js(e.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:a}=e;if(!a)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const s=this.treeScale.x,c=this.treeScale.y,l=this.projectionTransform;rs(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=cc(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===s&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),fc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,p=Boolean(s&&!l&&!0===this.options.crossfade&&!this.path.some(Cc));let u;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var c,d,f,m;Pc(i.x,t.x,n),Pc(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(as(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c=this.relativeTarget,d=this.relativeTargetOrigin,f=a,m=n,Oc(c.x,d.x,f.x,m),Oc(c.y,d.y,f.y,m),u&&ic(this.relativeTarget,u)&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),Js(u,this.relativeTarget)),s&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=Ti(0,void 0!==n.opacity?n.opacity:1,Gs(r)),t.opacityExit=Ti(void 0!==e.opacity?e.opacity:1,0,Xs(r))):i&&(t.opacity=Ti(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<qs;o++){const i=`border${Us[o]}Radius`;let a=Hs(e,i),s=Hs(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ws(a)===Ws(s)?(t[i]=Math.max(Ti($s(a),$s(s),r),0),(mr.test(s)||mr.test(a))&&(t[i]+="%")):t[i]=s)}(e.rotate||n.rotate)&&(t.rotate=Ti(e.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,p,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(No.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ro.update((()=>{Mn.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const r=Kn(t)?t:qo(t);return r.start(Na("",r,e,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:r,latestValues:o}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&Nc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=ts(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=ts(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Js(e,n),Os(e,o),rs(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sc);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const r={};for(let e=0;e<uc.length;e++){const o="rotate"+uc[e];n[o]&&(r[o]=n[o],t.setStaticValue(o,0))}t.render();for(const e in r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Hr(t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Hr(t.pointerEvents)||""),this.hasProjected&&!gs(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=cc(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:c}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*c.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in Hn){if(void 0===a[t])continue;const{correct:e,applyTo:n}=Hn[t],o="none"===r.transform?a[t]:e(a[t],i);if(n){const t=n.length;for(let e=0;e<t;e++)r[n[e]]=o}else r[t]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Hr(t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(bc),this.root.sharedNodes.clear()}}}function hc(t){t.updateLayout()}function gc(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:r}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;"size"===o?ds((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=ts(r);r.min=e[t].min,r.max=r.min+o})):Nc(o,n.layoutBox,e)&&ds((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=ts(e[t]);r.max=r.min+o}));const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};rs(a,e,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?rs(s,t.applyTransform(r,!0),n.measuredBox):rs(s,e,n.layoutBox);const c=!oc(a);let l=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};as(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};as(s,e,i.layoutBox),ic(a,s)||(l=!0),r.options.layoutRoot&&(t.relativeTarget=s,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function vc(t){fc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function xc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function yc(t){t.clearSnapshot()}function bc(t){t.clearMeasurements()}function wc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function kc(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function jc(t){t.resolveTargetDelta()}function Ec(t){t.calcProjection()}function Sc(t){t.resetRotation()}function _c(t){t.removeLeadSnapshot()}function Pc(t,e,n){t.translate=Ti(e.translate,0,n),t.scale=Ti(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Oc(t,e,n,r){t.min=Ti(e.min,n.min,r),t.max=Ti(e.max,n.max,r)}function Cc(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Tc={duration:.45,ease:[.4,0,.1,1]};function Ac(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const r=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);r&&t.mount(r,!0)}function Rc(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Nc(t,e,n){return"position"===t||"preserve-aspect"===t&&!es(ac(e),ac(n),.2)}const Dc=mc({attachResizeListener:(t,e)=>Jr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lc={current:void 0},Mc=mc({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Lc.current){const t=new Dc(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Lc.current=t}return Lc.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Ic={pan:{Feature:class extends co{constructor(){super(...arguments),this.removePointerDownListener=uo}onPointerDown(t){this.session=new Ga(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:t,onStart:e,onMove:n,onEnd:(t,e)=>{delete this.session,r&&r(t,e)}}}mount(){this.removePointerDownListener=to(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends co{constructor(t){super(t),this.removeGroupControls=uo,this.removeListeners=uo,this.controls=new As(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uo}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Mc,MeasureLayout:Bs}},Fc=new Set(["width","height","top","left","right","bottom","x","y"]),zc=t=>Fc.has(t),Bc=t=>t===or||t===hr,Vc=(t,e)=>parseFloat(t.split(", ")[e]),Uc=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Vc(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Vc(e[1],t):0}},qc=new Set(["x","y","z"]),$c=Gn.filter((t=>!qc.has(t)));const Wc={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Uc(4,13),y:Uc(5,14)},Hc=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(zc);let i=[],a=!1;const s=[];if(o.forEach((o=>{const c=t.getValue(o);if(!t.hasValue(o))return;let l=n[o],p=fi(l);const u=e[o];let d;if(Wr(u)){const t=u.length,e=null===u[0]?1:0;l=u[e],p=fi(l);for(let n=e;n<t;n++)d?ki(fi(u[n])===d,"All keyframes must be of the same type"):(d=fi(u[n]),ki(d===p||Bc(p)&&Bc(d),"Keyframes must be of the same dimension as the current value"))}else d=fi(u);if(p!==d)if(Bc(p)&&Bc(d)){const t=c.get();"string"==typeof t&&c.set(parseFloat(t)),"string"==typeof u?e[o]=parseFloat(u):Array.isArray(u)&&d===hr&&(e[o]=u.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==d?void 0:d.transform)&&(0===l||0===u)?0===l?c.set(d.transform(l)):e[o]=p.transform(u):(a||(i=function(t){const e=[];return $c.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:e[o],c.jump(u))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{s[t]=Wc[t](r,i)})),e.render();const c=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(s[n]),t[n]=Wc[n](c,i)})),t})(e,t,s);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),bn&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function Gc(t,e,n,r){return(t=>Object.keys(t).some(zc))(e)?Hc(t,e,n,r):{target:e,transitionEnd:r}}const Xc=(t,e,n,r)=>{const o=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!er(e))return;const n=Ms(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!er(o))continue;const i=Ms(o,r);i&&(e[t]=i,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,r);return Gc(t,e=o.target,n,r=o.transitionEnd)},Yc={current:null},Kc={current:!1};const Jc=new Set;function Zc(t,e,n){t||Jc.has(e)||(console.warn(e),n&&console.warn(n),Jc.add(e))}const Qc=Object.keys(Dn),tl=Qc.length,el=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nl=On.length;class rl{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ro.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Cn(e),this.isVariantNode=Tn(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==a[t]&&Kn(e)&&(e.set(a[t],!1),yi(c)&&c.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Kc.current||function(){if(Kc.current=!0,bn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Yc.current=t.matches;t.addListener(e),e()}else Yc.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Yc.current),"production"!==process.env.NODE_ENV&&Zc(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),No.update(this.notifyUpdate),No.render(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=Xn.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Ro.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,o,i){let a,s;if("production"!==process.env.NODE_ENV&&r&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?wi(!1,t):ki(!1,t)}for(let t=0;t<tl;t++){const n=Qc[t],{isEnabled:r,Feature:o,ProjectionNode:i,MeasureLayout:c}=Dn[n];i&&(a=i),r(e)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),c&&(s=c))}if(!this.projection&&a){this.projection=new a(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:s,layoutScroll:c,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||s&&En(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:c,layoutRoot:l})}return s}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update(this.props,this.prevProps):(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<el.length;e++){const n=el[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const i=e[o],a=n[o];if(Kn(i))t.addValue(o,i),yi(r)&&r.add(o),"development"===process.env.NODE_ENV&&Zc("9.1.7"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 9.1.7 may not work as expected.`);else if(Kn(a))t.addValue(o,qo(i,{owner:t})),yi(r)&&r.remove(o);else if(a!==i)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(o);t.addValue(o,qo(void 0!==e?e:i,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<nl;t++){const n=On[t],r=this.props[n];(Sn(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=qo(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=$r(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||Kn(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Bo),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class ol extends rl{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},o){let i=function(t,e,n){const r={};for(const o in t){const t=xi(o,e);if(void 0!==t)r[o]=t;else{const t=n.getValue(o);t&&(r[o]=t.get())}}return r}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),i&&(i=r(i))),o){!function(t,e,n){var r,o;const i=Object.keys(e).filter((e=>!t.hasValue(e))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],c=e[a];let l=null;Array.isArray(c)&&(l=c[0]),null===l&&(l=null!==(o=null!==(r=n[a])&&void 0!==r?r:t.readValue(a))&&void 0!==o?o:e[a]),null!=l&&("string"==typeof l&&(/^\-?\d*\.?\d+$/.test(l)||ko(l))?l=parseFloat(l):!hi(l)&&ri.test(c)&&(l=pi(a,c)),t.addValue(a,qo(l,{owner:t})),void 0===n[a]&&(n[a]=l),null!==l&&t.setBaseTarget(a,l))}}(this,n,i);const t=Xc(this,n,i,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class il extends ol{readValueFromInstance(t,e){if(Xn.has(e)){const t=li(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(tr(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Cs(t,e)}build(t,e,n,r){wr(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Ur(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Kn(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){zr(t,e,n,r)}}class al extends ol{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Xn.has(e)){const t=li(e);return t&&t.default||0}return e=Br.has(e)?e:Fr(e),t.getAttribute(e)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e){return qr(t,e)}build(t,e,n,r){Nr(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){Vr(t,e,0,r)}mount(t){this.isSVGTag=Lr(t.tagName),super.mount(t)}}const sl=(t,e)=>Wn(t)?new al(e,{enableHardwareAcceleration:!1}):new il(e,{enableHardwareAcceleration:!0}),cl={...Wa,...bo,...Ic,...{layout:{ProjectionNode:Mc,MeasureLayout:Bs}}},ll=qn(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...Wn(t)?Yr:Kr,preloadedFeatures:n,useRender:Ir(e),createVisualElement:r,Component:t}}(t,e,cl,sl)));function pl(){const e=t.useRef(!1);return wn((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class ul extends c.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function dl({children:e,isPresent:n}){const r=t.useId(),o=t.useRef(null),i=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect((()=>{const{width:t,height:e,top:a,left:s}=i.current;if(n||!o.current||!t||!e)return;o.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[n]),c.createElement(ul,{isPresent:n,childRef:o,sizeRef:i},c.cloneElement(e,{ref:o}))}const fl=({children:e,initial:n,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=Ln(ml),p=t.useId(),u=t.useMemo((()=>({id:p,initial:n,isPresent:r,custom:i,onExitComplete:t=>{l.set(t,!0);for(const t of l.values())if(!t)return;o&&o()},register:t=>(l.set(t,!1),()=>l.delete(t))})),a?void 0:[r]);return t.useMemo((()=>{l.forEach(((t,e)=>l.set(e,!1)))}),[r]),c.useEffect((()=>{!r&&!l.size&&o&&o()}),[r]),"popLayout"===s&&(e=c.createElement(dl,{isPresent:r},e)),c.createElement(yn.Provider,{value:u},e)};function ml(){return new Map}const hl=t=>t.key||"";const gl=({children:e,custom:n,initial:r=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{i&&(s="wait","production"!==process.env.NODE_ENV&&Zc(!1,"Replace exitBeforeEnter with mode='wait'"));let[l]=function(){const e=pl(),[n,r]=t.useState(0),o=t.useCallback((()=>{e.current&&r(n+1)}),[n]);return[t.useCallback((()=>Ro.postRender(o)),[o]),n]}();const p=t.useContext(Fn).forceRender;p&&(l=p);const u=pl(),d=function(e){const n=[];return t.Children.forEach(e,(e=>{t.isValidElement(e)&&n.push(e)})),n}(e);let f=d;const m=new Set,h=t.useRef(f),g=t.useRef(new Map).current,v=t.useRef(!0);var x;if(wn((()=>{v.current=!1,function(t,e){t.forEach((t=>{const n=hl(t);e.set(n,t)}))}(d,g),h.current=f})),x=()=>{v.current=!0,g.clear(),m.clear()},t.useEffect((()=>()=>x()),[]),v.current)return c.createElement(c.Fragment,null,f.map((t=>c.createElement(fl,{key:hl(t),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},t))));f=[...f];const y=h.current.map(hl),b=d.map(hl),w=y.length;for(let t=0;t<w;t++){const e=y[t];-1===b.indexOf(e)&&m.add(e)}return"wait"===s&&m.size&&(f=[]),m.forEach((t=>{if(-1!==b.indexOf(t))return;const e=g.get(t);if(!e)return;const r=y.indexOf(t);f.splice(r,0,c.createElement(fl,{key:hl(e),isPresent:!1,onExitComplete:()=>{g.delete(t),m.delete(t);const e=h.current.findIndex((e=>e.key===t));if(h.current.splice(e,1),!m.size){if(h.current=d,!1===u.current)return;l(),o&&o()}},custom:n,presenceAffectsLayout:a,mode:s},e))})),f=f.map((t=>{const e=t.key;return m.has(e)?t:c.createElement(fl,{key:hl(t),isPresent:!0,presenceAffectsLayout:a,mode:s},t)})),"production"!==process.env.NODE_ENV&&"wait"===s&&f.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),c.createElement(c.Fragment,null,m.size?f:f.map((e=>t.cloneElement(e))))};var vl,xl=function(e){var n=e.promptValue,r=e.setPromptValue,o=e.handleDisplayResult,i=t.useState(!1),a=i[0],s=i[1],c=t.useState(!0),l=c[0],p=c[1],u=t.useRef(null);t.useEffect((function(){if(s(!0),u.current){var t=u.current,e=window.innerWidth<768?15:30;t.innerHTML="";for(var n=0;n<e;n++){var r=document.createElement("div"),o=4*Math.random()+1,i=100*Math.random(),a=100*Math.random(),c=50*Math.random()+20,l=5*Math.random(),d=.3*Math.random()+.1;r.className="absolute rounded-full bg-white",Object.assign(r.style,{width:"".concat(o,"px"),height:"".concat(o,"px"),left:"".concat(i,"%"),top:"".concat(a,"%"),opacity:d.toString(),animation:"float ".concat(c,"s ease-in-out ").concat(l,"s infinite")}),t.appendChild(r)}}var f=window.scrollY,m=function(){var t=window.scrollY;t<=100?p(!0):t>f?p(!1):t<f&&p(!0),f=t};return window.addEventListener("scroll",m),function(){u.current&&(u.current.innerHTML=""),window.removeEventListener("scroll",m)}}),[]);var d={hidden:{opacity:0,y:20},visible:{opacity:1,y:0}};return j.jsxs("div",{className:"relative overflow-visible min-h-[80vh] sm:min-h-[85vh] flex items-center pt-[60px] sm:pt-[80px] mt-[-60px] sm:mt-[-130px]",children:[j.jsx("div",{ref:u,className:"absolute inset-0 -z-20"}),j.jsxs(ll.div,{initial:"hidden",animate:a?"visible":"hidden",variants:d,transition:{duration:.8},className:"flex flex-col items-center justify-center w-full py-6 sm:py-8 md:py-16 lg:pt-10 lg:pb-20",children:[j.jsxs(ll.div,{initial:{opacity:0,scale:.95},animate:{opacity:a?1:0,scale:a?1:.95},transition:{duration:.8,delay:.2},className:"landing flex flex-col items-center mb-4 sm:mb-6 md:mb-8",children:[j.jsxs(ll.h1,{className:"text-3xl xs:text-4xl sm:text-5xl font-black text-center lg:text-7xl mb-1 sm:mb-2 tracking-tight",variants:d,transition:{duration:.8,delay:.4},children:[j.jsx("div",{className:"mb-2 xs:mb-3 sm:mb-1 md:mb-0",children:"Say Goodbye to"}),j.jsx("span",{style:{backgroundImage:"linear-gradient(to right, #0cdbb6, #1fd0f0, #06dbee)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",display:"block",lineHeight:"1.2",paddingBottom:"0.1em"},children:"Hours of Research"})]}),j.jsx(ll.h2,{className:"text-base sm:text-xl font-light text-center px-4 mb-6 text-gray-300 max-w-2xl",variants:d,transition:{duration:.8,delay:.6},children:"Say Hello to GPT Researcher, your AI partner for instant insights and comprehensive research"})]}),j.jsx(ll.div,{variants:d,transition:{duration:.8,delay:.8},className:"w-full max-w-[760px] pb-6 sm:pb-8 md:pb-10 px-4 mt-4",children:j.jsxs("div",{className:"relative group",children:[j.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-teal-600 via-cyan-500 to-blue-600 rounded-lg blur-md opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-200 animate-gradient-x"}),j.jsx("div",{className:"relative bg-black bg-opacity-20 backdrop-blur-sm rounded-lg ring-1 ring-gray-800/60",children:j.jsx(gn,{promptValue:n,setPromptValue:r,handleSubmit:o})})]})}),j.jsx(ll.div,{variants:d,transition:{duration:.8,delay:1},className:"flex flex-wrap items-center justify-center gap-2 xs:gap-3 md:gap-4 pb-6 sm:pb-8 md:pb-10 px-4 lg:flex-nowrap lg:justify-normal",children:j.jsx(gl,{children:yl.map((function(t,e){return j.jsxs(ll.div,{variants:d,initial:"hidden",animate:"visible",transition:{duration:.4,delay:1+.1*e},className:"flex h-[38px] sm:h-[42px] cursor-pointer items-center justify-center gap-[6px] rounded-lg \n border border-solid border-teal-500/30 bg-gradient-to-r from-teal-900/30 to-cyan-900/30 \n backdrop-blur-sm px-2 sm:px-3 py-1 sm:py-2 hover:border-teal-500/60 hover:from-teal-900/40 \n hover:to-cyan-900/40 transition-all duration-300 hover:shadow-lg hover:shadow-teal-900/20 min-w-[100px]",onClick:function(){return e=null==t?void 0:t.name,void r(e);var e},whileHover:{scale:1.05},whileTap:{scale:.98},children:[j.jsx("img",{src:t.icon,alt:t.name,width:18,height:18,className:"w-[18px] sm:w-[20px] opacity-80 filter invert brightness-100"}),j.jsx("span",{className:"text-xs sm:text-sm font-medium leading-[normal] text-gray-200",children:t.name})]},t.id)}))})})]}),j.jsx(ll.div,{initial:{opacity:0},animate:{opacity:l?1:0},transition:{duration:1.2},className:"fixed bottom-0 left-0 right-0 h-[12px] z-50 overflow-hidden pointer-events-none",children:j.jsxs("div",{className:"relative w-full h-full",children:[j.jsx("div",{className:"absolute inset-0",style:{opacity:.85,background:"radial-gradient(ellipse at center, rgba(12, 219, 182, 1) 0%, rgba(6, 219, 238, 0.7) 25%, rgba(6, 219, 238, 0.2) 50%, rgba(0, 0, 0, 0) 75%)",boxShadow:"0 0 30px 6px rgba(12, 219, 182, 0.5), 0 0 60px 10px rgba(6, 219, 238, 0.25)"}}),j.jsx("div",{className:"absolute inset-0",style:{animation:"shimmer 8s ease-in-out infinite alternate",opacity:.5,background:"radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0) 60%)"}}),j.jsx("div",{className:"absolute inset-0",style:{opacity:.4,animation:"breathe 7s cubic-bezier(0.4, 0.0, 0.2, 1) infinite",background:"radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%)"}})]})}),j.jsx("style",{children:"\n @keyframes shimmer {\n 0% {\n opacity: 0.4;\n transform: scale(0.98);\n }\n 50% {\n opacity: 0.6;\n }\n 100% {\n opacity: 0.4;\n transform: scale(1.02);\n }\n }\n \n @keyframes breathe {\n 0%, 100% {\n opacity: 0.3;\n transform: scale(0.96);\n }\n 50% {\n opacity: 0.5;\n transform: scale(1.04);\n }\n }\n "})]})},yl=[{id:1,name:"Stock analysis on ",icon:"https://askjarvis.ai/img/stock2.svg"},{id:2,name:"Help me plan an adventure to ",icon:"https://askjarvis.ai/img/hiker.svg"},{id:3,name:"What are the latest news on ",icon:"https://askjarvis.ai/img/news.svg"}],bl={exports:{}},wl={};function kl(){if(vl)return wl;return vl=1,wl._=wl._interop_require_default=function(t){return t&&t.__esModule?t:{default:t}},wl}var jl,El={exports:{}},Sl={};function _l(){return jl||(jl=1,function(t){function e(t){const e={};return t.forEach(((t,n)=>{void 0===e[n]?e[n]=t:Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]})),e}function n(t){return"string"==typeof t||"number"==typeof t&&!isNaN(t)||"boolean"==typeof t?String(t):""}function r(t){const e=new URLSearchParams;return Object.entries(t).forEach((t=>{let[r,o]=t;Array.isArray(o)?o.forEach((t=>e.append(r,n(t)))):e.set(r,n(o))})),e}function o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach((e=>{Array.from(e.keys()).forEach((e=>t.delete(e))),e.forEach(((e,n)=>t.append(n,e)))})),t}Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return e},urlQueryToSearchParams:function(){return r}})}(Sl)),Sl}var Pl,Ol,Cl={},Tl={};function Al(){if(Pl)return Tl;function t(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(t=function(t){return t?r:n})(e)}return Pl=1,Tl._=Tl._interop_require_wildcard=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t(n);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o},Tl}function Rl(){return Ol||(Ol=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{formatUrl:function(){return r},formatWithValidation:function(){return i},urlObjectKeys:function(){return o}});const e=Al()._(_l()),n=/https?|ftp|gopher|file/;function r(t){let{auth:r,hostname:o}=t,i=t.protocol||"",a=t.pathname||"",s=t.hash||"",c=t.query||"",l=!1;r=r?encodeURIComponent(r).replace(/%3A/i,":")+"@":"",t.host?l=r+t.host:o&&(l=r+(~o.indexOf(":")?"["+o+"]":o),t.port&&(l+=":"+t.port)),c&&"object"==typeof c&&(c=String(e.urlQueryToSearchParams(c)));let p=t.search||c&&"?"+c||"";return i&&!i.endsWith(":")&&(i+=":"),t.slashes||(!i||n.test(i))&&!1!==l?(l="//"+(l||""),a&&"/"!==a[0]&&(a="/"+a)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),p&&"?"!==p[0]&&(p="?"+p),a=a.replace(/[?#]/g,encodeURIComponent),p=p.replace("#","%23"),""+i+l+a+p+s}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(t){return"development"===process.env.NODE_ENV&&null!==t&&"object"==typeof t&&Object.keys(t).forEach((t=>{o.includes(t)||console.warn("Unknown key passed via urlObject into url.format: "+t)})),r(t)}}(Cl)),Cl}var Nl,Dl={};var Ll,Ml={};function Il(){return Ll||(Ll=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return h},SP:function(){return u},ST:function(){return d},WEB_VITALS:function(){return e},execOnce:function(){return n},getDisplayName:function(){return s},getLocationOrigin:function(){return i},getURL:function(){return a},isAbsoluteUrl:function(){return o},isResSent:function(){return c},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return l},stringifyError:function(){return x}});const e=["CLS","FCP","FID","INP","LCP","TTFB"];function n(t){let e,n=!1;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n||(n=!0,e=t(...o)),e}}const r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=t=>r.test(t);function i(){const{protocol:t,hostname:e,port:n}=window.location;return t+"//"+e+(n?":"+n:"")}function a(){const{href:t}=window.location,e=i();return t.substring(e.length)}function s(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function c(t){return t.finished||t.headersSent}function l(t){const e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?"?"+e.slice(1).join("?"):"")}async function p(t,e){var n;if("production"!==process.env.NODE_ENV&&(null==(n=t.prototype)?void 0:n.getInitialProps)){const e='"'+s(t)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(e)}const r=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await p(e.Component,e.ctx)}:{};const o=await t.getInitialProps(e);if(r&&c(r))return o;if(!o){const e='"'+s(t)+'.getInitialProps()" should resolve to an object. But found "'+o+'" instead.';throw new Error(e)}return"production"!==process.env.NODE_ENV&&(0!==Object.keys(o).length||e.ctx||console.warn(s(t)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps")),o}const u="undefined"!=typeof performance,d=u&&["mark","measure","getEntriesByName"].every((t=>"function"==typeof performance[t]));class f extends Error{}class m extends Error{}class h extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+t}}class g extends Error{constructor(t,e){super(),this.message="Failed to load static file for page: "+t+" "+e}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(t){return JSON.stringify({message:t.message,stack:t.stack})}}(Ml)),Ml}var Fl,zl={exports:{}},Bl={};function Vl(){return Fl||(Fl=1,function(t){function e(t){return t.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}})}(Bl)),Bl}var Ul,ql,$l={};function Wl(){return Ul||(Ul=1,function(t){function e(t){const e=t.indexOf("#"),n=t.indexOf("?"),r=n>-1&&(e<0||n<e);return r||e>-1?{pathname:t.substring(0,r?n:e),query:r?t.substring(n,e>-1?e:void 0):"",hash:e>-1?t.slice(e):""}:{pathname:t,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}})}($l)),$l}function Hl(){return ql||(ql=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const n=Vl(),r=Wl(),o=t=>{if(!t.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return t;const{pathname:e,query:o,hash:i}=(0,r.parsePath)(t);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(e)?""+(0,n.removeTrailingSlash)(e)+o+i:e.endsWith("/")?""+e+o+i:e+"/"+o+i:""+(0,n.removeTrailingSlash)(e)+o+i};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(zl,zl.exports)),zl.exports}var Gl,Xl,Yl,Kl={},Jl={exports:{}},Zl={};function Ql(){return Gl||(Gl=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const e=Wl();function n(t,n){if("string"!=typeof t)return!1;const{pathname:r}=(0,e.parsePath)(t);return r===n||r.startsWith(n+"/")}}(Zl)),Zl}function tp(){return Yl||(Yl=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return r}});const e=Il(),n=(Xl||(Xl=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return o}});const n=Ql(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(t){return(0,n.pathHasPrefix)(t,r)}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Jl,Jl.exports)),Jl.exports);function r(t){if(!(0,e.isAbsoluteUrl)(t))return!0;try{const r=(0,e.getLocationOrigin)(),o=new URL(t,r);return o.origin===r&&(0,n.hasBasePath)(o.pathname)}catch(t){return!1}}}(Kl)),Kl}var ep,np={},rp={};var op,ip={},ap={},sp={},cp={};var lp,pp,up,dp,fp,mp={};function hp(){return pp||(pp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{normalizeAppPath:function(){return r},normalizeRscURL:function(){return o}});const e=(op||(op=1,function(t){function e(t){return t.startsWith("/")?t:"/"+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}})}(cp)),cp),n=(lp||(lp=1,function(t){function e(t){return"("===t[0]&&t.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return r},PAGE_SEGMENT_KEY:function(){return n},isGroupSegment:function(){return e}});const n="__PAGE__",r="__DEFAULT__"}(mp)),mp);function r(t){return(0,e.ensureLeadingSlash)(t.split("/").reduce(((t,e,r,o)=>e?(0,n.isGroupSegment)(e)||"@"===e[0]?t:"page"!==e&&"route"!==e||r!==o.length-1?t+"/"+e:t:t),""))}function o(t){return t.replace(/\.rsc($|\?)/,"$1")}}(sp)),sp}function gp(){return up||(up=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return n},extractInterceptionRouteInformation:function(){return o},isInterceptionRouteAppPath:function(){return r}});const e=hp(),n=["(..)(..)","(.)","(..)","(...)"];function r(t){return void 0!==t.split("/").find((t=>n.find((e=>t.startsWith(e)))))}function o(t){let r,o,i;for(const e of t.split("/"))if(o=n.find((t=>e.startsWith(t))),o){[r,i]=t.split(o,2);break}if(!r||!o||!i)throw new Error(`Invalid interception route: ${t}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(r=(0,e.normalizeAppPath)(r),o){case"(.)":i="/"===r?`/${i}`:r+"/"+i;break;case"(..)":if("/"===r)throw new Error(`Invalid interception route: ${t}. Cannot use (..) marker at the root level, use (.) instead.`);i=r.split("/").slice(0,-1).concat(i).join("/");break;case"(...)":i="/"+i;break;case"(..)(..)":const e=r.split("/");if(e.length<=2)throw new Error(`Invalid interception route: ${t}. Cannot use (..)(..) marker at the root level or one level up.`);i=e.slice(0,-2).concat(i).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:r,interceptedRoute:i}}}(ap)),ap}function vp(){return fp||(fp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{getSortedRoutes:function(){return e.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const e=(ep||(ep=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class e{insert(t){this._insert(t.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(t){void 0===t&&(t="/");const e=[...this.children.keys()].sort();null!==this.slugName&&e.splice(e.indexOf("[]"),1),null!==this.restSlugName&&e.splice(e.indexOf("[...]"),1),null!==this.optionalRestSlugName&&e.splice(e.indexOf("[[...]]"),1);const n=e.map((e=>this.children.get(e)._smoosh(""+t+e+"/"))).reduce(((t,e)=>[...t,...e]),[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(t+"["+this.slugName+"]/")),!this.placeholder){const e="/"===t?"/":t.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+e+'" and "'+e+"[[..."+this.optionalRestSlugName+']]").');n.unshift(e)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(t+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(t+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(t,n,r){if(0===t.length)return void(this.placeholder=!1);if(r)throw new Error("Catch-all must be the last part of the URL.");let o=t[0];if(o.startsWith("[")&&o.endsWith("]")){let i=o.slice(1,-1),a=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),a=!0),i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+i+"').");if(i.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+i+"').");function s(t,e){if(null!==t&&t!==e)throw new Error("You cannot use different slug names for the same dynamic path ('"+t+"' !== '"+e+"').");n.forEach((t=>{if(t===e)throw new Error('You cannot have the same slug name "'+e+'" repeat within a single dynamic path');if(t.replace(/\W/g,"")===o.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+t+'" and "'+e+'" differ only by non-word symbols within a single dynamic path')})),n.push(e)}if(r)if(a){if(null!=this.restSlugName)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+t[0]+'" ).');s(this.optionalRestSlugName,i),this.optionalRestSlugName=i,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+t[0]+'").');s(this.restSlugName,i),this.restSlugName=i,o="[...]"}else{if(a)throw new Error('Optional route parameters are not yet supported ("'+t[0]+'").');s(this.slugName,i),this.slugName=i,o="[]"}}this.children.has(o)||this.children.set(o,new e),this.children.get(o)._insert(t.slice(1),n,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(t){const n=new e;return t.forEach((t=>n.insert(t))),n.smoosh()}}(rp)),rp),n=(dp||(dp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const e=gp(),n=/\/\[[^/]+?\](?=\/|$)/;function r(t){return(0,e.isInterceptionRouteAppPath)(t)&&(t=(0,e.extractInterceptionRouteInformation)(t).interceptedRoute),n.test(t)}}(ip)),ip)}(np)),np}var xp,yp={},bp={};var wp,kp={},jp={};var Ep,Sp,_p,Pp,Op={};function Cp(){return Sp||(Sp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{getNamedMiddlewareRegex:function(){return u},getNamedRouteRegex:function(){return p},getRouteRegex:function(){return s},parseParameter:function(){return i}});const e=(wp||(wp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{ACTION_SUFFIX:function(){return s},APP_DIR_ALIAS:function(){return _},CACHE_ONE_YEAR:function(){return y},DOT_NEXT_ALIAS:function(){return E},ESLINT_DEFAULT_DIRS:function(){return $},GSP_NO_RETURNED_VALUE:function(){return F},GSSP_COMPONENT_MEMBER_ERROR:function(){return V},GSSP_NO_RETURNED_VALUE:function(){return z},INSTRUMENTATION_HOOK_FILENAME:function(){return k},MIDDLEWARE_FILENAME:function(){return b},MIDDLEWARE_LOCATION_REGEXP:function(){return w},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return x},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return f},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return m},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return v},NEXT_CACHE_TAGS_HEADER:function(){return u},NEXT_CACHE_TAG_MAX_ITEMS:function(){return h},NEXT_CACHE_TAG_MAX_LENGTH:function(){return g},NEXT_DATA_SUFFIX:function(){return c},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return l},NEXT_QUERY_PARAM_PREFIX:function(){return e},NON_STANDARD_NODE_ENV:function(){return U},PAGES_DIR_ALIAS:function(){return j},PRERENDER_REVALIDATE_HEADER:function(){return r},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return o},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return R},ROOT_DIR_ALIAS:function(){return S},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return A},RSC_ACTION_ENCRYPTION_ALIAS:function(){return T},RSC_ACTION_PROXY_ALIAS:function(){return C},RSC_ACTION_VALIDATE_ALIAS:function(){return O},RSC_MOD_REF_PROXY_ALIAS:function(){return P},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return a},SERVER_PROPS_EXPORT_ERROR:function(){return I},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return D},SERVER_PROPS_SSG_CONFLICT:function(){return L},SERVER_RUNTIME:function(){return W},SSG_FALLBACK_EXPORT_ERROR:function(){return q},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return N},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return M},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return B},WEBPACK_LAYERS:function(){return G},WEBPACK_RESOURCE_QUERIES:function(){return X}});const e="nxtP",n="nxtI",r="x-prerender-revalidate",o="x-prerender-revalidate-if-generated",i=".prefetch.rsc",a=".rsc",s=".action",c=".json",l=".meta",p=".body",u="x-next-cache-tags",d="x-next-cache-soft-tags",f="x-next-revalidated-tags",m="x-next-revalidate-tag-token",h=128,g=256,v=1024,x="_N_T_",y=31536e3,b="middleware",w=`(?:src/)?${b}`,k="instrumentation",j="private-next-pages",E="private-dot-next",S="private-next-root-dir",_="private-next-app-dir",P="private-next-rsc-mod-ref-proxy",O="private-next-rsc-action-validate",C="private-next-rsc-server-reference",T="private-next-rsc-action-encryption",A="private-next-rsc-action-client-wrapper",R="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",N="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",D="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",L="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",M="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",I="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",F="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",z="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",B="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",V="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",U='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',q="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",$=["app","pages","components","lib","src"],W={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},H={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},G={...H,GROUP:{serverOnly:[H.reactServerComponents,H.actionBrowser,H.appMetadataRoute,H.appRouteHandler,H.instrument],clientOnly:[H.serverSideRendering,H.appPagesBrowser],nonClientServerTarget:[H.middleware,H.api],app:[H.reactServerComponents,H.actionBrowser,H.appMetadataRoute,H.appRouteHandler,H.serverSideRendering,H.appPagesBrowser,H.shared,H.instrument]}},X={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(jp)),jp),n=gp(),r=(Ep||(Ep=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const e=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(t){return e.test(t)?t.replace(n,"\\$&"):t}}(Op)),Op),o=Vl();function i(t){const e=t.startsWith("[")&&t.endsWith("]");e&&(t=t.slice(1,-1));const n=t.startsWith("...");return n&&(t=t.slice(3)),{key:t,repeat:n,optional:e}}function a(t){const e=(0,o.removeTrailingSlash)(t).slice(1).split("/"),a={};let s=1;return{parameterizedRoute:e.map((t=>{const e=n.INTERCEPTION_ROUTE_MARKERS.find((e=>t.startsWith(e))),o=t.match(/\[((?:\[.*\])|.+)\]/);if(e&&o){const{key:t,optional:n,repeat:c}=i(o[1]);return a[t]={pos:s++,repeat:c,optional:n},"/"+(0,r.escapeStringRegexp)(e)+"([^/]+?)"}if(o){const{key:t,repeat:e,optional:n}=i(o[1]);return a[t]={pos:s++,repeat:e,optional:n},e?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return"/"+(0,r.escapeStringRegexp)(t)})).join(""),groups:a}}function s(t){const{parameterizedRoute:e,groups:n}=a(t);return{re:new RegExp("^"+e+"(?:/)?$"),groups:n}}function c(t){let{interceptionMarker:e,getSafeRouteKey:n,segment:o,routeKeys:a,keyPrefix:s}=t;const{key:c,optional:l,repeat:p}=i(o);let u=c.replace(/\W/g,"");s&&(u=""+s+u);let d=!1;(0===u.length||u.length>30)&&(d=!0),isNaN(parseInt(u.slice(0,1)))||(d=!0),d&&(u=n()),a[u]=s?""+s+c:c;const f=e?(0,r.escapeStringRegexp)(e):"";return p?l?"(?:/"+f+"(?<"+u+">.+?))?":"/"+f+"(?<"+u+">.+?)":"/"+f+"(?<"+u+">[^/]+?)"}function l(t,i){const a=(0,o.removeTrailingSlash)(t).slice(1).split("/"),s=function(){let t=0;return()=>{let e="",n=++t;for(;n>0;)e+=String.fromCharCode(97+(n-1)%26),n=Math.floor((n-1)/26);return e}}(),l={};return{namedParameterizedRoute:a.map((t=>{const o=n.INTERCEPTION_ROUTE_MARKERS.some((e=>t.startsWith(e))),a=t.match(/\[((?:\[.*\])|.+)\]/);if(o&&a){const[n]=t.split(a[0]);return c({getSafeRouteKey:s,interceptionMarker:n,segment:a[1],routeKeys:l,keyPrefix:i?e.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}return a?c({getSafeRouteKey:s,segment:a[1],routeKeys:l,keyPrefix:i?e.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,r.escapeStringRegexp)(t)})).join(""),routeKeys:l}}function p(t,e){const n=l(t,e);return{...s(t),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function u(t,e){const{parameterizedRoute:n}=a(t),{catchAll:r=!0}=e;if("/"===n){return{namedRegex:"^/"+(r?".*":"")+"$"}}const{namedParameterizedRoute:o}=l(t,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}}(kp)),kp}function Tp(){return _p||(_p=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return r}});const e=(xp||(xp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const e=Il();function n(t){let{re:n,groups:r}=t;return t=>{const o=n.exec(t);if(!o)return!1;const i=t=>{try{return decodeURIComponent(t)}catch(t){throw new e.DecodeError("failed to decode param")}},a={};return Object.keys(r).forEach((t=>{const e=r[t],n=o[e.pos];void 0!==n&&(a[t]=~n.indexOf("/")?n.split("/").map((t=>i(t))):e.repeat?[i(n)]:i(n))})),a}}}(bp)),bp),n=Cp();function r(t,r,o){let i="";const a=(0,n.getRouteRegex)(t),s=a.groups,c=(r!==t?(0,e.getRouteMatcher)(a)(r):"")||o;i=t;const l=Object.keys(s);return l.every((t=>{let e=c[t]||"";const{repeat:n,optional:r}=s[t];let o="["+(n?"...":"")+t+"]";return r&&(o=(e?"":"/")+"["+o+"]"),n&&!Array.isArray(e)&&(e=[e]),(r||t in c)&&(i=i.replace(o,n?e.map((t=>encodeURIComponent(t))).join("/"):encodeURIComponent(e))||"/")}))||(i=""),{params:l,result:i}}}(yp)),yp}function Ap(){return Pp||(Pp=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return p}});const n=_l(),r=Rl(),o=(Nl||(Nl=1,function(t){function e(t,e){const n={};return Object.keys(t).forEach((r=>{e.includes(r)||(n[r]=t[r])})),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}})}(Dl)),Dl),i=Il(),a=Hl(),s=tp(),c=vp(),l=Tp();function p(t,e,p){let u,d="string"==typeof e?e:(0,r.formatWithValidation)(e);const f=d.match(/^[a-zA-Z]{1,}:\/\//),m=f?d.slice(f[0].length):d;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+t.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const e=(0,i.normalizeRepeatedSlashes)(m);d=(f?f[0]:"")+e}if(!(0,s.isLocalURL)(d))return p?[d]:d;try{u=new URL(d.startsWith("#")?t.asPath:t.pathname,"http://n")}catch(t){u=new URL("/","http://n")}try{const t=new URL(d,u);t.pathname=(0,a.normalizePathTrailingSlash)(t.pathname);let e="";if((0,c.isDynamicRoute)(t.pathname)&&t.searchParams&&p){const i=(0,n.searchParamsToUrlQuery)(t.searchParams),{result:a,params:s}=(0,l.interpolateAs)(t.pathname,t.pathname,i);a&&(e=(0,r.formatWithValidation)({pathname:a,hash:t.hash,query:(0,o.omit)(i,s)}))}const i=t.origin===u.origin?t.href.slice(t.origin.length):t.href;return p?[i,e||i]:i}catch(t){return p?[d]:d}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(El,El.exports)),El.exports}var Rp,Np,Dp,Lp={exports:{}},Mp={},Ip={};function Fp(){return Rp||(Rp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return n}});const e=Wl();function n(t,n){if(!t.startsWith("/")||!n)return t;const{pathname:r,query:o,hash:i}=(0,e.parsePath)(t);return""+n+r+o+i}}(Ip)),Ip}function zp(){return Np||(Np=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const e=Fp(),n=Ql();function r(t,r,o,i){if(!r||r===o)return t;const a=t.toLowerCase();if(!i){if((0,n.pathHasPrefix)(a,"/api"))return t;if((0,n.pathHasPrefix)(a,"/"+r.toLowerCase()))return t}return(0,e.addPathPrefix)(t,"/"+r)}}(Mp)),Mp}var Bp,Vp={};var Up,qp={};var $p,Wp,Hp={exports:{}},Gp={exports:{}};function Xp(){return Wp||(Wp=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});const n=s.default,r=($p||($p=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});const n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Gp,Gp.exports)),Gp.exports),o="function"==typeof IntersectionObserver,i=new Map,a=[];function c(t,e,n){const{id:r,observer:o,elements:s}=function(t){const e={root:t.root||null,margin:t.rootMargin||""},n=a.find((t=>t.root===e.root&&t.margin===e.margin));let r;if(n&&(r=i.get(n),r))return r;const o=new Map,s=new IntersectionObserver((t=>{t.forEach((t=>{const e=o.get(t.target),n=t.isIntersecting||t.intersectionRatio>0;e&&n&&e(n)}))}),t);return r={id:e,observer:s,elements:o},a.push(e),i.set(e,r),r}(n);return s.set(t,e),o.observe(t),function(){if(s.delete(t),o.unobserve(t),0===s.size){o.disconnect(),i.delete(r);const t=a.findIndex((t=>t.root===r.root&&t.margin===r.margin));t>-1&&a.splice(t,1)}}}function l(t){let{rootRef:e,rootMargin:i,disabled:a}=t;const s=a||!o,[l,p]=(0,n.useState)(!1),u=(0,n.useRef)(null),d=(0,n.useCallback)((t=>{u.current=t}),[]);(0,n.useEffect)((()=>{if(o){if(s||l)return;const t=u.current;if(t&&t.tagName){return c(t,(t=>t&&p(t)),{root:null==e?void 0:e.current,rootMargin:i})}}else if(!l){const t=(0,r.requestIdleCallback)((()=>p(!0)));return()=>(0,r.cancelIdleCallback)(t)}}),[s,i,e,l,u.current]);const f=(0,n.useCallback)((()=>{p(!1)}),[]);return[d,l,f]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Hp,Hp.exports)),Hp.exports}var Yp,Kp,Jp={exports:{}},Zp={exports:{}},Qp={};function tu(){return Yp||(Yp=1,function(t){function e(t,e){let n;const r=t.split("/");return(e||[]).some((e=>!(!r[1]||r[1].toLowerCase()!==e.toLowerCase())&&(n=e,r.splice(1,1),t=r.join("/")||"/",!0))),{pathname:t,detectedLocale:n}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}})}(Qp)),Qp}var eu,nu,ru,ou={exports:{}},iu={};function au(){return eu||(eu=1,function(t){function e(t,e,n){if(t){n&&(n=n.toLowerCase());for(const i of t){var r,o;if(e===(null==(r=i.domain)?void 0:r.split(":",1)[0].toLowerCase())||n===i.defaultLocale.toLowerCase()||(null==(o=i.locales)?void 0:o.some((t=>t.toLowerCase()===n))))return i}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}})}(iu)),iu}function su(){return ru||(ru=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return o}});const n=Hl(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(t,e,o,i){if(process.env.__NEXT_I18N_SUPPORT){const a=(Kp||(Kp=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(t,e)=>process.env.__NEXT_I18N_SUPPORT?tu().normalizeLocalePath(t,e):{pathname:t,detectedLocale:void 0};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Zp,Zp.exports)),Zp.exports).normalizeLocalePath,s=(nu||(nu=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(process.env.__NEXT_I18N_SUPPORT)return au().detectDomainLocale(...e)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ou,ou.exports)),ou.exports).detectDomainLocale,c=e||a(t,o).detectedLocale,l=s(i,void 0,c);if(l){const e="http"+(l.http?"":"s")+"://",o=c===l.defaultLocale?"":"/"+c;return""+e+l.domain+(0,n.normalizePathTrailingSlash)(""+r+o+t)}return!1}return!1}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Jp,Jp.exports)),Jp.exports}var cu,lu={exports:{}};var pu,uu,du,fu,mu={exports:{}};function hu(){return uu||(uu=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return w}});const n=kl(),r=k(),o=n._(s.default),i=Ap(),a=tp(),c=Rl(),l=Il(),p=(Dp||(Dp=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const n=Hl(),r=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(zp().addLocale(t,...r)):t};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Lp,Lp.exports)),Lp.exports),u=(Bp||(Bp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return e}});const e=kl()._(s.default).default.createContext(null);"production"!==process.env.NODE_ENV&&(e.displayName="RouterContext")}(Vp)),Vp),d=(Up||(Up=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{AppRouterContext:function(){return n},GlobalLayoutRouterContext:function(){return o},LayoutRouterContext:function(){return r},MissingSlotContext:function(){return a},TemplateContext:function(){return i}});const e=kl()._(s.default),n=e.default.createContext(null),r=e.default.createContext(null),o=e.default.createContext(null),i=e.default.createContext(null);"production"!==process.env.NODE_ENV&&(n.displayName="AppRouterContext",r.displayName="LayoutRouterContext",o.displayName="GlobalLayoutRouterContext",i.displayName="TemplateContext");const a=e.default.createContext(new Set)}(qp)),qp),f=Xp(),m=su(),h=(cu||(cu=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return i}});const n=Fp(),r=Hl(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(t,e){return(0,r.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!e?t:(0,n.addPathPrefix)(t,o))}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(lu,lu.exports)),lu.exports),g=(pu||(pu=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{ACTION_FAST_REFRESH:function(){return s},ACTION_NAVIGATE:function(){return r},ACTION_PREFETCH:function(){return a},ACTION_REFRESH:function(){return n},ACTION_RESTORE:function(){return o},ACTION_SERVER_ACTION:function(){return c},ACTION_SERVER_PATCH:function(){return i},PrefetchCacheEntryStatus:function(){return p},PrefetchKind:function(){return l},isThenable:function(){return u}});const n="refresh",r="navigate",o="restore",i="server-patch",a="prefetch",s="fast-refresh",c="server-action";var l,p;function u(t){return t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}!function(t){t.AUTO="auto",t.FULL="full",t.TEMPORARY="temporary"}(l||(l={})),function(t){t.fresh="fresh",t.reusable="reusable",t.expired="expired",t.stale="stale"}(p||(p={})),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(mu,mu.exports)),mu.exports),v=new Set;function x(t,e,n,r,o,i){if("undefined"==typeof window)return;if(!i&&!(0,a.isLocalURL)(e))return;if(!r.bypassPrefetchedCheck){const o=void 0!==r.locale?r.locale:"locale"in t?t.locale:void 0,i=e+"%"+n+"%"+o;if(v.has(i))return;v.add(i)}(async()=>i?t.prefetch(e,o):t.prefetch(e,n,r))().catch((t=>{if("production"!==process.env.NODE_ENV)throw t}))}function y(t){return"string"==typeof t?t:(0,c.formatUrl)(t)}const b=o.default.forwardRef((function(t,e){let n;const{href:s,as:c,children:v,prefetch:b=null,passHref:w,replace:k,shallow:j,scroll:E,locale:S,onClick:_,onMouseEnter:P,onTouchStart:O,legacyBehavior:C=!1,...T}=t;n=v,!C||"string"!=typeof n&&"number"!=typeof n||(n=(0,r.jsx)("a",{children:n}));const A=o.default.useContext(u.RouterContext),R=o.default.useContext(d.AppRouterContext),N=null!=A?A:R,D=!A,L=!1!==b,M=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if("production"!==process.env.NODE_ENV){function X(t){return new Error("Failed prop type: The prop `"+t.key+"` expects a "+t.expected+" in `<Link>`, but got `"+t.actual+"` instead."+("undefined"!=typeof window?"\nOpen your browser's console to view the Component stack trace.":""))}const Y={href:!0};Object.keys(Y).forEach((e=>{if("href"===e&&(null==t[e]||"string"!=typeof t[e]&&"object"!=typeof t[e]))throw X({key:e,expected:"`string` or `object`",actual:null===t[e]?"null":typeof t[e]})}));const K={as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0};Object.keys(K).forEach((e=>{const n=typeof t[e];if("as"===e){if(t[e]&&"string"!==n&&"object"!==n)throw X({key:e,expected:"`string` or `object`",actual:n})}else if("locale"===e){if(t[e]&&"string"!==n)throw X({key:e,expected:"`string`",actual:n})}else if("onClick"===e||"onMouseEnter"===e||"onTouchStart"===e){if(t[e]&&"function"!==n)throw X({key:e,expected:"`function`",actual:n})}else if(("replace"===e||"scroll"===e||"shallow"===e||"passHref"===e||"prefetch"===e||"legacyBehavior"===e)&&null!=t[e]&&"boolean"!==n)throw X({key:e,expected:"`boolean`",actual:n})}));const J=o.default.useRef(!1);!t.prefetch||J.current||D||(J.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if("production"!==process.env.NODE_ENV&&D&&!c){let Z;if("string"==typeof s?Z=s:"object"==typeof s&&"string"==typeof s.pathname&&(Z=s.pathname),Z){const Q=Z.split("/").some((t=>t.startsWith("[")&&t.endsWith("]")));if(Q)throw new Error("Dynamic href `"+Z+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}}const{href:I,as:F}=o.default.useMemo((()=>{if(!A){const t=y(s);return{href:t,as:c?y(c):t}}const[t,e]=(0,i.resolveHref)(A,s,!0);return{href:t,as:c?(0,i.resolveHref)(A,c):e||t}}),[A,s,c]),z=o.default.useRef(I),B=o.default.useRef(F);let V;if(C)if("development"===process.env.NODE_ENV){_&&console.warn('"onClick" was passed to <Link> with `href` of `'+s+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),P&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+s+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{V=o.default.Children.only(n)}catch(tt){if(!n)throw new Error("No children were passed to <Link> with `href` of `"+s+"` but one child is required https://nextjs.org/docs/messages/link-no-children");throw new Error("Multiple children were passed to <Link> with `href` of `"+s+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+("undefined"!=typeof window?" \nOpen your browser's console to view the Component stack trace.":""))}}else V=o.default.Children.only(n);else if("development"===process.env.NODE_ENV&&"a"===(null==n?void 0:n.type))throw new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor");const U=C?V&&"object"==typeof V&&V.ref:e,[q,$,W]=(0,f.useIntersection)({rootMargin:"200px"}),H=o.default.useCallback((t=>{B.current===F&&z.current===I||(W(),B.current=F,z.current=I),q(t),U&&("function"==typeof U?U(t):"object"==typeof U&&(U.current=t))}),[F,U,I,W,q]);o.default.useEffect((()=>{"production"===process.env.NODE_ENV&&N&&$&&L&&x(N,I,F,{locale:S},{kind:M},D)}),[F,I,$,S,L,null==A?void 0:A.locale,N,D,M]);const G={ref:H,onClick(t){if("production"!==process.env.NODE_ENV&&!t)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');C||"function"!=typeof _||_(t),C&&V.props&&"function"==typeof V.props.onClick&&V.props.onClick(t),N&&(t.defaultPrevented||function(t,e,n,r,i,s,c,l,p){const{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&(function(t){const e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!p&&!(0,a.isLocalURL)(n)))return;t.preventDefault();const d=()=>{const t=null==c||c;"beforePopState"in e?e[i?"replace":"push"](n,r,{shallow:s,locale:l,scroll:t}):e[i?"replace":"push"](r||n,{scroll:t})};p?o.default.startTransition(d):d()}(t,N,I,F,k,j,E,S,D))},onMouseEnter(t){C||"function"!=typeof P||P(t),C&&V.props&&"function"==typeof V.props.onMouseEnter&&V.props.onMouseEnter(t),N&&(L&&"development"!==process.env.NODE_ENV||!D)&&x(N,I,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:M},D)},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function(t){C||"function"!=typeof O||O(t),C&&V.props&&"function"==typeof V.props.onTouchStart&&V.props.onTouchStart(t),N&&(!L&&D||x(N,I,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:M},D))}};if((0,l.isAbsoluteUrl)(F))G.href=F;else if(!C||w||"a"===V.type&&!("href"in V.props)){const et=void 0!==S?S:null==A?void 0:A.locale,nt=(null==A?void 0:A.isLocaleDomain)&&(0,m.getDomainLocale)(F,et,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);G.href=nt||(0,h.addBasePath)((0,p.addLocale)(F,et,null==A?void 0:A.defaultLocale))}return C?o.default.cloneElement(V,G):(0,r.jsx)("a",{...T,...G,children:n})})),w=b;("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(bl,bl.exports)),bl.exports}var gu=m(fu?du:(fu=1,du=hu()));function vu(t,e){return function(){return t.apply(e,arguments)}}E("@keyframes gradientBG{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.tabs{display:flex;justify-content:space-around;margin-bottom:1rem}.tab-button{background:none;border:none;cursor:pointer;font-size:1rem;padding:.5rem 1rem;transition:all .3s ease-in-out}.tab-button:hover{opacity:.8}.tab-button.active{background-image:linear-gradient(90deg,#0cdbb6,#1fd0f0);border-radius:5px;color:#fff}.settings html{scroll-behavior:smooth}.settings body{animation:gradientBG 10s ease infinite;background-image:linear-gradient(45deg,#151a2d,#2d284d,#151a2d);background-size:200% 200%;color:#fff;font-family:Montserrat,sans-serif;line-height:1.6}.settings .landing{align-items:center;display:flex;height:50vh;justify-content:center;text-align:center}.settings .landing h1{font-size:3.5rem;font-weight:700;margin-bottom:2rem}.settings .landing p{font-size:1.5rem;font-weight:400;margin:auto auto 2rem;max-width:500px}.settings .container{background-color:hsla(0,0%,100%,.1);border-radius:12px;box-shadow:0 10px 25px rgba(0,0,0,.1);margin:auto;max-height:80vh;max-width:900px;overflow-y:auto;padding:20px;transition:all .3s ease-in-out}.settings .container:hover{box-shadow:0 15px 30px rgba(0,0,0,.2);transform:scale(1.01)}.settings .static-container{background-color:hsla(0,0%,100%,.1);border-radius:12px;margin:auto;max-height:80vh;max-width:900px;overflow-y:auto;padding:20px}.settings #output,.settings #reportContainer,.settings input,.settings select{background-color:rgba(0,0,0,.5);border:none;color:#fff;transition:all .3s ease-in-out}.settings input:focus,.settings input:hover,.settings select:focus,.settings select:hover{background-color:#333;border:1px solid hsla(0,0%,100%,.5);box-shadow:0 4px 8px rgba(0,0,0,.1);transition:all .3s ease-in-out}.settings .btn-primary{background:linear-gradient(90deg,#0062cc,#007bff);border:none;transition:all .3s ease-in-out}.settings .btn-secondary{background:linear-gradient(90deg,#6c757d,#6c757d);border:none;transition:all .3s ease-in-out}.settings .btn:hover{box-shadow:0 10px 20px rgba(0,0,0,.3);opacity:.8;transform:scale(1.1)}.settings .agent_question{color:#fff;font-size:1.2rem;font-weight:600;letter-spacing:.01em;margin-bottom:.2rem}.settings footer{background:linear-gradient(90deg,#151a2d,#111827);bottom:0;color:#fff;left:0;padding:10px 0;position:fixed;text-align:center;width:100%}.settings .margin-div{margin-bottom:20px;margin-top:20px;padding:10px}.settings .agent_response{background-color:#747d8c;border-radius:12px;margin:10px;padding:10px}.settings #output{font-family:Times New Roman,Times,Courier New,serif;height:150px;margin-bottom:10px;margin-top:10px;overflow:auto;padding:10px}.settings #reportContainer{background-color:hsla(0,0%,100%,.1);border:none;border-radius:12px;color:#fff;padding:10px;transition:all .3s ease-in-out}.settings .sayGoodbye{-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-image:linear-gradient(90deg,#9867f0,#ed4e50)}.settings .form-group{align-items:center;display:flex;margin-bottom:1rem;width:100%}.settings .form-group label{flex:1;margin-right:1rem}.settings .form-group input,.settings .form-group select{background-color:rgba(0,0,0,.5);border:1px solid hsla(0,0%,100%,.5);border-radius:.375rem;color:#fff;flex:2;padding:.5rem;transition:all .3s ease-in-out;width:100%}.settings .form-group input:focus,.settings .form-group input:hover,.settings .form-group select:focus,.settings .form-group select:hover{background-color:#333;border:1px solid hsla(0,0%,100%,.5);box-shadow:0 4px 8px rgba(0,0,0,.1);transition:all .3s ease-in-out}.report_settings_static{background-color:hsla(0,0%,100%,.1);border-radius:8px;padding:10px;width:100%}.form-control-static{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,.4);background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");background-position:right .7rem center;background-repeat:no-repeat;background-size:1em;border:1px solid hsla(0,0%,100%,.3);border-radius:.375rem;color:#fff;padding:.5rem;transition:all .2s ease-in-out;width:100%}.form-control-static:hover{border-color:rgba(20,184,166,.5);box-shadow:0 0 0 2px rgba(20,184,166,.1)}.form-control-static:focus{border-color:rgba(20,184,166,.8);box-shadow:0 0 0 3px rgba(20,184,166,.2);outline:none}.form-control-static option{background-color:#1f2937;color:#fff;padding:8px}.input-static{background-color:rgba(0,0,0,.4);border:1px solid hsla(0,0%,100%,.3);border-radius:.375rem;color:#fff;flex:1;font-size:.875rem;padding:.5rem .75rem}.button-static{background-color:#0d9488;border:1px solid transparent;border-radius:.375rem;color:#fff;font-weight:500;justify-content:center;padding:.5rem 1rem}.button-static,.domain-tag-static{align-items:center;display:inline-flex;font-size:.875rem}.domain-tag-static{background-color:#ede9fe;border-radius:9999px;margin-bottom:.75rem;margin-right:.5rem;padding:.25rem .75rem}.domain-text-static{color:#0d9488}.domain-button-static{align-items:center;background:none;border:none;color:#9f7aea;display:flex;margin-left:.5rem;padding:0}.modal-content .agent_question{color:#fff;display:block;font-weight:600;letter-spacing:.015em;margin-bottom:.2rem;position:relative}.modal-content .form-group{align-items:flex-start;display:flex;flex-direction:column;margin-bottom:1.5rem}.modal-content .form-group label{margin-bottom:.5rem;margin-right:0;width:100%}.modal-content .form-group input,.modal-content .form-group select{width:100%}");const{toString:xu}=Object.prototype,{getPrototypeOf:yu}=Object,{iterator:bu,toStringTag:wu}=Symbol,ku=(ju=Object.create(null),t=>{const e=xu.call(t);return ju[e]||(ju[e]=e.slice(8,-1).toLowerCase())});var ju;const Eu=t=>(t=t.toLowerCase(),e=>ku(e)===t),Su=t=>e=>typeof e===t,{isArray:_u}=Array,Pu=Su("undefined");const Ou=Eu("ArrayBuffer");const Cu=Su("string"),Tu=Su("function"),Au=Su("number"),Ru=t=>null!==t&&"object"==typeof t,Nu=t=>{if("object"!==ku(t))return!1;const e=yu(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||wu in t||bu in t)},Du=Eu("Date"),Lu=Eu("File"),Mu=Eu("Blob"),Iu=Eu("FileList"),Fu=Eu("URLSearchParams"),[zu,Bu,Vu,Uu]=["ReadableStream","Request","Response","Headers"].map(Eu);function qu(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),_u(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function $u(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const Wu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Hu=t=>!Pu(t)&&t!==Wu;const Gu=(Xu="undefined"!=typeof Uint8Array&&yu(Uint8Array),t=>Xu&&t instanceof Xu);var Xu;const Yu=Eu("HTMLFormElement"),Ku=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Ju=Eu("RegExp"),Zu=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};qu(n,((n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)})),Object.defineProperties(t,r)};const Qu=Eu("AsyncFunction"),td=(ed="function"==typeof setImmediate,nd=Tu(Wu.postMessage),ed?setImmediate:nd?(rd=`axios@${Math.random()}`,od=[],Wu.addEventListener("message",(({source:t,data:e})=>{t===Wu&&e===rd&&od.length&&od.shift()()}),!1),t=>{od.push(t),Wu.postMessage(rd,"*")}):t=>setTimeout(t));var ed,nd,rd,od;const id="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Wu):"undefined"!=typeof process&&process.nextTick||td;var ad={isArray:_u,isArrayBuffer:Ou,isBuffer:function(t){return null!==t&&!Pu(t)&&null!==t.constructor&&!Pu(t.constructor)&&Tu(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||Tu(t.append)&&("formdata"===(e=ku(t))||"object"===e&&Tu(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Ou(t.buffer),e},isString:Cu,isNumber:Au,isBoolean:t=>!0===t||!1===t,isObject:Ru,isPlainObject:Nu,isReadableStream:zu,isRequest:Bu,isResponse:Vu,isHeaders:Uu,isUndefined:Pu,isDate:Du,isFile:Lu,isBlob:Mu,isRegExp:Ju,isFunction:Tu,isStream:t=>Ru(t)&&Tu(t.pipe),isURLSearchParams:Fu,isTypedArray:Gu,isFileList:Iu,forEach:qu,merge:function t(){const{caseless:e}=Hu(this)&&this||{},n={},r=(r,o)=>{const i=e&&$u(n,o)||o;Nu(n[i])&&Nu(r)?n[i]=t(n[i],r):Nu(r)?n[i]=t({},r):_u(r)?n[i]=r.slice():n[i]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&qu(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(qu(e,((e,r)=>{n&&Tu(e)?t[r]=vu(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&yu(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:ku,kindOfTest:Eu,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(_u(t))return t;let e=t.length;if(!Au(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[bu]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:Yu,hasOwnProperty:Ku,hasOwnProp:Ku,reduceDescriptors:Zu,freezeMethods:t=>{Zu(t,((e,n)=>{if(Tu(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];Tu(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return _u(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:$u,global:Wu,isContextDefined:Hu,isSpecCompliantForm:function(t){return!!(t&&Tu(t.append)&&"FormData"===t[wu]&&t[bu])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(Ru(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=_u(t)?[]:{};return qu(t,((t,e)=>{const i=n(t,r+1);!Pu(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:Qu,isThenable:t=>t&&(Ru(t)||Tu(t))&&Tu(t.then)&&Tu(t.catch),setImmediate:td,asap:id,isIterable:t=>null!=t&&Tu(t[bu])};function sd(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ad.inherits(sd,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ad.toJSONObject(this.config),code:this.code,status:this.status}}});const cd=sd.prototype,ld={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{ld[t]={value:t}})),Object.defineProperties(sd,ld),Object.defineProperty(cd,"isAxiosError",{value:!0}),sd.from=(t,e,n,r,o,i)=>{const a=Object.create(cd);return ad.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),sd.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};function pd(t){return ad.isPlainObject(t)||ad.isArray(t)}function ud(t){return ad.endsWith(t,"[]")?t.slice(0,-2):t}function dd(t,e,n){return t?t.concat(e).map((function(t,e){return t=ud(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const fd=ad.toFlatObject(ad,{},null,(function(t){return/^is[A-Z]/.test(t)}));function md(t,e,n){if(!ad.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=ad.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!ad.isUndefined(e[t])}))).metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ad.isSpecCompliantForm(e);if(!ad.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(ad.isDate(t))return t.toISOString();if(!s&&ad.isBlob(t))throw new sd("Blob is not supported. Use a Buffer instead.");return ad.isArrayBuffer(t)||ad.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,n,o){let s=t;if(t&&!o&&"object"==typeof t)if(ad.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(ad.isArray(t)&&function(t){return ad.isArray(t)&&!t.some(pd)}(t)||(ad.isFileList(t)||ad.endsWith(n,"[]"))&&(s=ad.toArray(t)))return n=ud(n),s.forEach((function(t,r){!ad.isUndefined(t)&&null!==t&&e.append(!0===a?dd([n],r,i):null===a?n:n+"[]",c(t))})),!1;return!!pd(t)||(e.append(dd(o,n,i),c(t)),!1)}const p=[],u=Object.assign(fd,{defaultVisitor:l,convertValue:c,isVisitable:pd});if(!ad.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!ad.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+r.join("."));p.push(n),ad.forEach(n,(function(n,i){!0===(!(ad.isUndefined(n)||null===n)&&o.call(e,n,ad.isString(i)?i.trim():i,r,u))&&t(n,r?r.concat(i):[i])})),p.pop()}}(t),e}function hd(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function gd(t,e){this._pairs=[],t&&md(t,this,e)}const vd=gd.prototype;function xd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yd(t,e,n){if(!e)return t;const r=n&&n.encode||xd;ad.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(e,n):ad.isURLSearchParams(e)?e.toString():new gd(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}vd.append=function(t,e){this._pairs.push([t,e])},vd.toString=function(t){const e=t?function(e){return t.call(this,e,hd)}:hd;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var bd=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ad.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},wd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kd={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gd,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const jd="undefined"!=typeof window&&"undefined"!=typeof document,Ed="object"==typeof navigator&&navigator||void 0,Sd=jd&&(!Ed||["ReactNative","NativeScript","NS"].indexOf(Ed.product)<0),_d="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Pd=jd&&window.location.href||"http://localhost";var Od={...Object.freeze({__proto__:null,hasBrowserEnv:jd,hasStandardBrowserWebWorkerEnv:_d,hasStandardBrowserEnv:Sd,navigator:Ed,origin:Pd}),...kd};function Cd(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&ad.isArray(r)?r.length:i,s)return ad.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&ad.isObject(r[i])||(r[i]=[]);return e(t,n,r[i],o)&&ad.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!a}if(ad.isFormData(t)&&ad.isFunction(t.entries)){const n={};return ad.forEachEntry(t,((t,r)=>{e(function(t){return ad.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const Td={transitional:wd,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=ad.isObject(t);o&&ad.isHTMLForm(t)&&(t=new FormData(t));if(ad.isFormData(t))return r?JSON.stringify(Cd(t)):t;if(ad.isArrayBuffer(t)||ad.isBuffer(t)||ad.isStream(t)||ad.isFile(t)||ad.isBlob(t)||ad.isReadableStream(t))return t;if(ad.isArrayBufferView(t))return t.buffer;if(ad.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return md(t,new Od.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return Od.isNode&&ad.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=ad.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return md(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(ad.isString(t))try{return(e||JSON.parse)(t),ad.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Td.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(ad.isResponse(t)||ad.isReadableStream(t))return t;if(t&&ad.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw sd.from(t,sd.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Od.classes.FormData,Blob:Od.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ad.forEach(["delete","get","head","post","put","patch"],(t=>{Td.headers[t]={}}));var Ad=Td;const Rd=ad.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Nd=Symbol("internals");function Dd(t){return t&&String(t).trim().toLowerCase()}function Ld(t){return!1===t||null==t?t:ad.isArray(t)?t.map(Ld):String(t)}function Md(t,e,n,r,o){return ad.isFunction(r)?r.call(this,e,n):(o&&(e=n),ad.isString(e)?ad.isString(r)?-1!==e.indexOf(r):ad.isRegExp(r)?r.test(e):void 0:void 0)}class Id{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Dd(e);if(!o)throw new Error("header name must be a non-empty string");const i=ad.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Ld(t))}const i=(t,e)=>ad.forEach(t,((t,n)=>o(t,n,e)));if(ad.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(ad.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Rd[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e);else if(ad.isObject(t)&&ad.isIterable(t)){let n,r,o={};for(const e of t){if(!ad.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[r=e[0]]=(n=o[r])?ad.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,n);return this}get(t,e){if(t=Dd(t)){const n=ad.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(ad.isFunction(e))return e.call(this,t,n);if(ad.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Dd(t)){const n=ad.findKey(this,t);return!(!n||void 0===this[n]||e&&!Md(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Dd(t)){const o=ad.findKey(n,t);!o||e&&!Md(0,n[o],o,e)||(delete n[o],r=!0)}}return ad.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!Md(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return ad.forEach(this,((r,o)=>{const i=ad.findKey(n,o);if(i)return e[i]=Ld(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete e[o],e[a]=Ld(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ad.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&ad.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[Nd]=this[Nd]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Dd(t);e[r]||(!function(t,e){const n=ad.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return ad.isArray(t)?t.forEach(r):r(t),this}}Id.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ad.reduceDescriptors(Id.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),ad.freezeMethods(Id);var Fd=Id;function zd(t,e){const n=this||Ad,r=e||n,o=Fd.from(r.headers);let i=r.data;return ad.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Bd(t){return!(!t||!t.__CANCEL__)}function Vd(t,e,n){sd.call(this,null==t?"canceled":t,sd.ERR_CANCELED,e,n),this.name="CanceledError"}function Ud(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new sd("Request failed with status code "+n.status,[sd.ERR_BAD_REQUEST,sd.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}ad.inherits(Vd,sd,{__CANCEL__:!0});const qd=(t,e,n=3)=>{let r=0;const o=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let p=a,u=0;for(;p!==i;)u+=n[p++],p%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),c-o<e)return;const d=l&&c-l;return d?Math.round(1e3*u/d):void 0}}(50,250);return function(t,e){let n,r,o=0,i=1e3/e;const a=(e,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),s=e-o;s>=i?a(t,e):(n=t,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i;t({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})}),n)},$d=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Wd=t=>(...e)=>ad.asap((()=>t(...e)));var Hd=Od.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Od.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Od.origin),Od.navigator&&/(msie|trident)/i.test(Od.navigator.userAgent)):()=>!0,Gd=Od.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const a=[t+"="+encodeURIComponent(e)];ad.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ad.isString(r)&&a.push("path="+r),ad.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Xd(t,e,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(r||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Yd=t=>t instanceof Fd?{...t}:t;function Kd(t,e){e=e||{};const n={};function r(t,e,n,r){return ad.isPlainObject(t)&&ad.isPlainObject(e)?ad.merge.call({caseless:r},t,e):ad.isPlainObject(e)?ad.merge({},e):ad.isArray(e)?e.slice():e}function o(t,e,n,o){return ad.isUndefined(e)?ad.isUndefined(t)?void 0:r(void 0,t,0,o):r(t,e,0,o)}function i(t,e){if(!ad.isUndefined(e))return r(void 0,e)}function a(t,e){return ad.isUndefined(e)?ad.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,n)=>o(Yd(t),Yd(e),0,!0)};return ad.forEach(Object.keys(Object.assign({},t,e)),(function(r){const i=c[r]||o,a=i(t[r],e[r],r);ad.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Jd=t=>{const e=Kd({},t);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=e;if(e.headers=s=Fd.from(s),e.url=yd(Xd(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ad.isFormData(r))if(Od.hasStandardBrowserEnv||Od.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if(Od.hasStandardBrowserEnv&&(o&&ad.isFunction(o)&&(o=o(e)),o||!1!==o&&Hd(e.url))){const t=i&&a&&Gd.read(a);t&&s.set(i,t)}return e};var Zd="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const r=Jd(t);let o=r.data;const i=Fd.from(r.headers).normalize();let a,s,c,l,p,{responseType:u,onUploadProgress:d,onDownloadProgress:f}=r;function m(){l&&l(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=Fd.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ud((function(t){e(t),m()}),(function(t){n(t),m()}),{data:u&&"text"!==u&&"json"!==u?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new sd("Request aborted",sd.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new sd("Network Error",sd.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||wd;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new sd(e,o.clarifyTimeoutError?sd.ETIMEDOUT:sd.ECONNABORTED,t,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&ad.forEach(i.toJSON(),(function(t,e){h.setRequestHeader(e,t)})),ad.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),u&&"json"!==u&&(h.responseType=r.responseType),f&&([c,p]=qd(f,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,l]=qd(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=e=>{h&&(n(!e||e.type?new Vd(null,t,h):e),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);v&&-1===Od.protocols.indexOf(v)?n(new sd("Unsupported protocol "+v+":",sd.ERR_BAD_REQUEST,t)):h.send(o||null)}))};var Qd=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const o=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;r.abort(e instanceof sd?e:new Vd(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,o(new sd(`timeout ${e} of ms exceeded`,sd.ETIMEDOUT))}),e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)})),t=null)};t.forEach((t=>t.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>ad.asap(a),s}};const tf=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,o=0;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},ef=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},nf=(t,e,n,r)=>{const o=async function*(t,e){for await(const n of ef(t))yield*tf(n,e)}(t,e);let i,a=0,s=t=>{i||(i=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await o.next();if(e)return s(),void t.close();let i=r.byteLength;if(n){let t=a+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},rf="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,of=rf&&"function"==typeof ReadableStream,af=rf&&("function"==typeof TextEncoder?(sf=new TextEncoder,t=>sf.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var sf;const cf=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},lf=of&&cf((()=>{let t=!1;const e=new Request(Od.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),pf=of&&cf((()=>ad.isReadableStream(new Response("").body))),uf={stream:pf&&(t=>t.body)};var df;rf&&(df=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!uf[t]&&(uf[t]=ad.isFunction(df[t])?e=>e[t]():(e,n)=>{throw new sd(`Response type '${t}' is not supported`,sd.ERR_NOT_SUPPORT,n)})})));const ff=async(t,e)=>{const n=ad.toFiniteNumber(t.getContentLength());return null==n?(async t=>{if(null==t)return 0;if(ad.isBlob(t))return t.size;if(ad.isSpecCompliantForm(t)){const e=new Request(Od.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return ad.isArrayBufferView(t)||ad.isArrayBuffer(t)?t.byteLength:(ad.isURLSearchParams(t)&&(t+=""),ad.isString(t)?(await af(t)).byteLength:void 0)})(e):n};const mf={http:null,xhr:Zd,fetch:rf&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:p,withCredentials:u="same-origin",fetchOptions:d}=Jd(t);l=l?(l+"").toLowerCase():"text";let f,m=Qd([o,i&&i.toAbortSignal()],a);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(c&&lf&&"get"!==n&&"head"!==n&&0!==(g=await ff(p,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});if(ad.isFormData(r)&&(t=n.headers.get("content-type"))&&p.setContentType(t),n.body){const[t,e]=$d(g,qd(Wd(c)));r=nf(n.body,65536,t,e)}}ad.isString(u)||(u=u?"include":"omit");const o="credentials"in Request.prototype;f=new Request(e,{...d,signal:m,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:o?u:void 0});let i=await fetch(f);const a=pf&&("stream"===l||"response"===l);if(pf&&(s||a&&h)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=i[e]}));const e=ad.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&$d(e,qd(Wd(s),!0))||[];i=new Response(nf(i.body,65536,n,(()=>{r&&r(),h&&h()})),t)}l=l||"text";let v=await uf[ad.findKey(uf,l)||"text"](i,t);return!a&&h&&h(),await new Promise(((e,n)=>{Ud(e,n,{data:v,headers:Fd.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:f})}))}catch(e){if(h&&h(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new sd("Network Error",sd.ERR_NETWORK,t,f),{cause:e.cause||e});throw sd.from(e,e&&e.code,t,f)}})};ad.forEach(mf,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const hf=t=>`- ${t}`,gf=t=>ad.isFunction(t)||null===t||!1===t;var vf=t=>{t=ad.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){let e;if(n=t[i],r=n,!gf(n)&&(r=mf[(e=String(n)).toLowerCase()],void 0===r))throw new sd(`Unknown adapter '${e}'`);if(r)break;o[e||"#"+i]=r}if(!r){const t=Object.entries(o).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));throw new sd("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(hf).join("\n"):" "+hf(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function xf(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Vd(null,t)}function yf(t){xf(t),t.headers=Fd.from(t.headers),t.data=zd.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return vf(t.adapter||Ad.adapter)(t).then((function(e){return xf(t),e.data=zd.call(t,t.transformResponse,e),e.headers=Fd.from(e.headers),e}),(function(e){return Bd(e)||(xf(t),e&&e.response&&(e.response.data=zd.call(t,t.transformResponse,e.response),e.response.headers=Fd.from(e.response.headers))),Promise.reject(e)}))}const bf="1.9.0",wf={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{wf[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const kf={};wf.transitional=function(t,e,n){function r(t,e){return"[Axios v1.9.0] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new sd(r(o," has been removed"+(e?" in "+e:"")),sd.ERR_DEPRECATED);return e&&!kf[o]&&(kf[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}},wf.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};var jf={assertOptions:function(t,e,n){if("object"!=typeof t)throw new sd("options must be an object",sd.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new sd("option "+i+" must be "+n,sd.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new sd("Unknown option "+i,sd.ERR_BAD_OPTION)}},validators:wf};const Ef=jf.validators;class Sf{constructor(t){this.defaults=t||{},this.interceptors={request:new bd,response:new bd}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Kd(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&jf.assertOptions(n,{silentJSONParsing:Ef.transitional(Ef.boolean),forcedJSONParsing:Ef.transitional(Ef.boolean),clarifyTimeoutError:Ef.transitional(Ef.boolean)},!1),null!=r&&(ad.isFunction(r)?e.paramsSerializer={serialize:r}:jf.assertOptions(r,{encode:Ef.function,serialize:Ef.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),jf.assertOptions(e,{baseUrl:Ef.spelling("baseURL"),withXsrfToken:Ef.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&ad.merge(o.common,o[e.method]);o&&ad.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Fd.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let p,u=0;if(!s){const t=[yf.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,c),p=t.length,l=Promise.resolve(e);u<p;)l=l.then(t[u++],t[u++]);return l}p=a.length;let d=e;for(u=0;u<p;){const t=a[u++],e=a[u++];try{d=t(d)}catch(t){e.call(this,t);break}}try{l=yf.call(this,d)}catch(t){return Promise.reject(t)}for(u=0,p=c.length;u<p;)l=l.then(c[u++],c[u++]);return l}getUri(t){return yd(Xd((t=Kd(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}ad.forEach(["delete","get","head","options"],(function(t){Sf.prototype[t]=function(e,n){return this.request(Kd(n||{},{method:t,url:e,data:(n||{}).data}))}})),ad.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(Kd(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Sf.prototype[t]=e(),Sf.prototype[t+"Form"]=e(!0)}));var _f=Sf;class Pf{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new Vd(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Pf((function(e){t=e})),cancel:t}}}var Of=Pf;const Cf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cf).forEach((([t,e])=>{Cf[e]=t}));var Tf=Cf;const Af=function t(e){const n=new _f(e),r=vu(_f.prototype.request,n);return ad.extend(r,_f.prototype,n,{allOwnKeys:!0}),ad.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Kd(e,n))},r}(Ad);Af.Axios=_f,Af.CanceledError=Vd,Af.CancelToken=Of,Af.isCancel=Bd,Af.VERSION=bf,Af.toFormData=md,Af.AxiosError=sd,Af.Cancel=Af.CanceledError,Af.all=function(t){return Promise.all(t)},Af.spread=function(t){return function(e){return t.apply(null,e)}},Af.isAxiosError=function(t){return ad.isObject(t)&&!0===t.isAxiosError},Af.mergeConfig=Kd,Af.AxiosHeaders=Fd,Af.formToJSON=t=>Cd(ad.isHTMLForm(t)?new FormData(t):t),Af.getAdapter=vf,Af.HttpStatusCode=Tf,Af.default=Af;var Rf,Nf=Af,Df={exports:{}},Lf={exports:{}},Mf={};var If,Ff,zf,Bf,Vf,Uf,qf,$f,Wf,Hf,Gf,Xf,Yf,Kf,Jf,Zf={};
/** @license React v16.13.1
* react-is.development.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.
*/function Qf(){return Ff||(Ff=1,"production"===process.env.NODE_ENV?Lf.exports=function(){if(Rf)return Mf;Rf=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function y(t){if("object"==typeof t&&null!==t){var d=t.$$typeof;switch(d){case e:switch(t=t.type){case c:case l:case r:case i:case o:case u:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case f:case a:return t;default:return d}}case n:return d}}}function b(t){return y(t)===l}return Mf.AsyncMode=c,Mf.ConcurrentMode=l,Mf.ContextConsumer=s,Mf.ContextProvider=a,Mf.Element=e,Mf.ForwardRef=p,Mf.Fragment=r,Mf.Lazy=m,Mf.Memo=f,Mf.Portal=n,Mf.Profiler=i,Mf.StrictMode=o,Mf.Suspense=u,Mf.isAsyncMode=function(t){return b(t)||y(t)===c},Mf.isConcurrentMode=b,Mf.isContextConsumer=function(t){return y(t)===s},Mf.isContextProvider=function(t){return y(t)===a},Mf.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Mf.isForwardRef=function(t){return y(t)===p},Mf.isFragment=function(t){return y(t)===r},Mf.isLazy=function(t){return y(t)===m},Mf.isMemo=function(t){return y(t)===f},Mf.isPortal=function(t){return y(t)===n},Mf.isProfiler=function(t){return y(t)===i},Mf.isStrictMode=function(t){return y(t)===o},Mf.isSuspense=function(t){return y(t)===u},Mf.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===i||t===o||t===u||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===v||t.$$typeof===x||t.$$typeof===h)},Mf.typeOf=y,Mf}():Lf.exports=(If||(If=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function y(t){if("object"==typeof t&&null!==t){var d=t.$$typeof;switch(d){case e:var h=t.type;switch(h){case c:case l:case r:case i:case o:case u:return h;default:var g=h&&h.$$typeof;switch(g){case s:case p:case m:case f:case a:return g;default:return d}}case n:return d}}}var b=c,w=l,k=s,j=a,E=e,S=p,_=r,P=m,O=f,C=n,T=i,A=o,R=u,N=!1;function D(t){return y(t)===l}Zf.AsyncMode=b,Zf.ConcurrentMode=w,Zf.ContextConsumer=k,Zf.ContextProvider=j,Zf.Element=E,Zf.ForwardRef=S,Zf.Fragment=_,Zf.Lazy=P,Zf.Memo=O,Zf.Portal=C,Zf.Profiler=T,Zf.StrictMode=A,Zf.Suspense=R,Zf.isAsyncMode=function(t){return N||(N=!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.")),D(t)||y(t)===c},Zf.isConcurrentMode=D,Zf.isContextConsumer=function(t){return y(t)===s},Zf.isContextProvider=function(t){return y(t)===a},Zf.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Zf.isForwardRef=function(t){return y(t)===p},Zf.isFragment=function(t){return y(t)===r},Zf.isLazy=function(t){return y(t)===m},Zf.isMemo=function(t){return y(t)===f},Zf.isPortal=function(t){return y(t)===n},Zf.isProfiler=function(t){return y(t)===i},Zf.isStrictMode=function(t){return y(t)===o},Zf.isSuspense=function(t){return y(t)===u},Zf.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===i||t===o||t===u||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===v||t.$$typeof===x||t.$$typeof===h)},Zf.typeOf=y}()),Zf)),Lf.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function tm(){if(Bf)return zf;Bf=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return zf=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))e.call(i,l)&&(s[l]=i[l]);if(t){a=t(i);for(var p=0;p<a.length;p++)n.call(i,a[p])&&(s[a[p]]=i[a[p]])}}return s},zf}function em(){if(Uf)return Vf;Uf=1;return Vf="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function nm(){return $f?qf:($f=1,qf=Function.call.bind(Object.prototype.hasOwnProperty))}function rm(){if(Hf)return Wf;Hf=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=em(),n={},r=nm();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,s,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var p;try{if("function"!=typeof o[l]){var u=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}p=o[l](i,l,s,a,null,e)}catch(t){p=t}if(!p||p instanceof Error||t((s||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var d=c?c():"";t("Failed "+a+" type: "+p.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Wf=o}function om(){if(Xf)return Gf;Xf=1;var t=Qf(),e=tm(),n=em(),r=nm(),o=rm(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Gf=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",u={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(a),arrayOf:function(t){return m((function(e,r,o,i,a){if("function"!=typeof t)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=e[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+a+"` of type `"+x(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=t(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:m((function(t,e,n,r,o){var i=t[e];return s(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+x(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(e,n,r,o,i){var a=e[n];return t.isValidElementType(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return m((function(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||p;return new f("Invalid "+o+" `"+i+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:p)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:m((function(t,e,n,r,o){return v(t[e])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return m((function(e,o,i,a,s){if("function"!=typeof t)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=e[o],l=x(c);if("object"!==l)return new f("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var p in c)if(r(c,p)){var u=t(c,p,i,a,s+"."+p,n);if(u instanceof Error)return u}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i(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."),a;return m((function(e,n,r,o,i){for(var a=e[n],s=0;s<t.length;s++)if(d(a,t[s]))return null;var c=JSON.stringify(t,(function(t,e){return"symbol"===y(e)?String(e):e}));return new f("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+b(o)+" at index "+e+"."),a}return m((function(e,o,i,a,s){for(var c=[],l=0;l<t.length;l++){var p=(0,t[l])(e,o,i,a,s,n);if(null==p)return null;p.data&&r(p.data,"expectedType")&&c.push(p.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(t){return m((function(e,r,o,i,a){var s=e[r],c=x(s);if("object"!==c)return new f("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var p=t[l];if("function"!=typeof p)return g(o,i,a,l,y(p));var u=p(s,l,o,i,a+"."+l,n);if(u)return u}return null}))},exact:function(t){return m((function(o,i,a,s,c){var l=o[i],p=x(l);if("object"!==p)return new f("Invalid "+s+" `"+c+"` of type `"+p+"` supplied to `"+a+"`, expected `object`.");var u=e({},o[i],t);for(var d in u){var m=t[d];if(r(t,d)&&"function"!=typeof m)return g(a,s,c,d,y(m));if(!m)return new f("Invalid "+s+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var h=m(l,d,a,s,c+"."+d,n);if(h)return h}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function f(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function m(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function o(o,a,s,l,u,d,m){if(l=l||p,d=d||s,m!==n){if(c){var h=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 h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=l+":"+s;!e[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. 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."),e[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new f("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new f("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,s,l,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function h(t){return m((function(e,n,r,o,i,a){var s=e[n];return x(s)!==t?new f("Invalid "+o+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,n,r,o){return new f((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function v(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(v);if(null===t||s(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t["@@iterator"]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function x(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function y(t){if(null==t)return""+t;var e=x(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function b(t){var e=y(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return f.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},Gf}function im(){if(Kf)return Yf;Kf=1;var t=em();function e(){}function n(){}return n.resetWarningCache=e,Yf=function(){function r(e,n,r,o,i,a){if(a!==t){var s=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 s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i}}function am(){if(Jf)return Df.exports;if(Jf=1,"production"!==process.env.NODE_ENV){var t=Qf();Df.exports=om()(t.isElement,true)}else Df.exports=im()();return Df.exports}var sm=m(am());const cm=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function lm(t,e,n){const r=function(t){const{name:e}=t;if(e&&-1!==e.lastIndexOf(".")&&!t.type){const n=e.split(".").pop().toLowerCase(),r=cm.get(n);r&&Object.defineProperty(t,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return t}(t),{webkitRelativePath:o}=t,i="string"==typeof e?e:"string"==typeof o&&o.length>0?o:`./${t.name}`;return"string"!=typeof r.path&&pm(r,"path",i),void 0!==n&&Object.defineProperty(r,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),pm(r,"relativePath",i),r}function pm(t,e,n){Object.defineProperty(t,e,{value:n,writable:!1,configurable:!1,enumerable:!0})}const um=[".DS_Store","Thumbs.db"];function dm(t){return"object"==typeof t&&null!==t}function fm(t){return t.filter((t=>-1===um.indexOf(t.name)))}function mm(t){if(null===t)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n];e.push(r)}return e}function hm(t){if("function"!=typeof t.webkitGetAsEntry)return vm(t);const e=t.webkitGetAsEntry();return e&&e.isDirectory?ym(e):vm(t,e)}function gm(t){return t.reduce(((t,e)=>[...t,...Array.isArray(e)?gm(e):[e]]),[])}function vm(t,e){return u(this,void 0,void 0,(function*(){var n;if(globalThis.isSecureContext&&"function"==typeof t.getAsFileSystemHandle){const e=yield t.getAsFileSystemHandle();if(null===e)throw new Error(`${t} is not a File`);if(void 0!==e){const t=yield e.getFile();return t.handle=e,lm(t)}}const r=t.getAsFile();if(!r)throw new Error(`${t} is not a File`);return lm(r,null!==(n=null==e?void 0:e.fullPath)&&void 0!==n?n:void 0)}))}function xm(t){return u(this,void 0,void 0,(function*(){return t.isDirectory?ym(t):function(t){return u(this,void 0,void 0,(function*(){return new Promise(((e,n)=>{t.file((n=>{const r=lm(n,t.fullPath);e(r)}),(t=>{n(t)}))}))}))}(t)}))}function ym(t){const e=t.createReader();return new Promise(((t,n)=>{const r=[];!function o(){e.readEntries((e=>u(this,void 0,void 0,(function*(){if(e.length){const t=Promise.all(e.map(xm));r.push(t),o()}else try{const e=yield Promise.all(r);t(e)}catch(t){n(t)}}))),(t=>{n(t)}))}()}))}var bm,wm={};var km=m((bm||(bm=1,wm.__esModule=!0,wm.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(0===n.length)return!0;var r=t.name||"",o=(t.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?r.toLowerCase().endsWith(e):e.endsWith("/*")?i===e.replace(/\/.*$/,""):o===e}))}return!0}),wm));function jm(t){return function(t){if(Array.isArray(t))return Cm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Om(t)||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.")}()}function Em(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Em(Object(n),!0).forEach((function(e){_m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Em(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||Om(t,e)||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.")}()}function Om(t,e){if(t){if("string"==typeof t)return Cm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cm(t,e):void 0}}function Cm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Tm="function"==typeof km?km:km.default,Am=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),e=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:"file-invalid-type",message:"File type must be ".concat(e)}},Rm=function(t){return{code:"file-too-large",message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},Nm=function(t){return{code:"file-too-small",message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},Dm={code:"too-many-files",message:"Too many files"};function Lm(t,e){var n="application/x-moz-file"===t.type||Tm(t,e);return[n,n?null:Am(e)]}function Mm(t,e,n){if(Im(t.size))if(Im(e)&&Im(n)){if(t.size>n)return[!1,Rm(n)];if(t.size<e)return[!1,Nm(e)]}else{if(Im(e)&&t.size<e)return[!1,Nm(e)];if(Im(n)&&t.size>n)return[!1,Rm(n)]}return[!0,null]}function Im(t){return null!=t}function Fm(t){return"function"==typeof t.isPropagationStopped?t.isPropagationStopped():void 0!==t.cancelBubble&&t.cancelBubble}function zm(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,(function(t){return"Files"===t||"application/x-moz-file"===t})):!!t.target&&!!t.target.files}function Bm(t){t.preventDefault()}function Vm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.some((function(e){return!Fm(t)&&e&&e.apply(void 0,[t].concat(r)),Fm(t)}))}}function Um(t){return"audio/*"===t||"video/*"===t||"image/*"===t||"text/*"===t||"application/*"===t||/\w+\/[-+.\w]+/g.test(t)}function qm(t){return/^.*\.[\w]+$/.test(t)}var $m=["children"],Wm=["open"],Hm=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Gm=["refKey","onChange","onClick"];function Xm(t){return function(t){if(Array.isArray(t))return Jm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Km(t)||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.")}()}function Ym(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||Km(t,e)||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.")}()}function Km(t,e){if(t){if("string"==typeof t)return Jm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jm(t,e):void 0}}function Jm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zm(Object(n),!0).forEach((function(e){th(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function th(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eh(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var nh=t.forwardRef((function(e,n){var r=e.children,o=ih(eh(e,$m)),i=o.open,a=eh(o,Wm);return t.useImperativeHandle(n,(function(){return{open:i}}),[i]),s.default.createElement(t.Fragment,null,r(Qm(Qm({},a),{},{open:i})))}));nh.displayName="Dropzone";var rh={disabled:!1,getFilesFromEvent:function(t){return u(this,void 0,void 0,(function*(){return dm(t)&&dm(t.dataTransfer)?function(t,e){return u(this,void 0,void 0,(function*(){if(t.items){const n=mm(t.items).filter((t=>"file"===t.kind));if("drop"!==e)return n;return fm(gm(yield Promise.all(n.map(hm))))}return fm(mm(t.files).map((t=>lm(t))))}))}(t.dataTransfer,t.type):function(t){return dm(t)&&dm(t.target)}(t)?function(t){return mm(t.target.files).map((t=>lm(t)))}(t):Array.isArray(t)&&t.every((t=>"getFile"in t&&"function"==typeof t.getFile))?function(t){return u(this,void 0,void 0,(function*(){return(yield Promise.all(t.map((t=>t.getFile())))).map((t=>lm(t)))}))}(t):[]}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};nh.defaultProps=rh,nh.propTypes={children:sm.func,accept:sm.objectOf(sm.arrayOf(sm.string)),multiple:sm.bool,preventDropOnDocument:sm.bool,noClick:sm.bool,noKeyboard:sm.bool,noDrag:sm.bool,noDragEventsBubbling:sm.bool,minSize:sm.number,maxSize:sm.number,maxFiles:sm.number,disabled:sm.bool,getFilesFromEvent:sm.func,onFileDialogCancel:sm.func,onFileDialogOpen:sm.func,useFsAccessApi:sm.bool,autoFocus:sm.bool,onDragEnter:sm.func,onDragLeave:sm.func,onDragOver:sm.func,onDrop:sm.func,onDropAccepted:sm.func,onDropRejected:sm.func,onError:sm.func,validator:sm.func};var oh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ih(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Qm(Qm({},rh),e),r=n.accept,o=n.disabled,i=n.getFilesFromEvent,a=n.maxSize,s=n.minSize,c=n.multiple,l=n.maxFiles,p=n.onDragEnter,u=n.onDragLeave,d=n.onDragOver,f=n.onDrop,m=n.onDropAccepted,h=n.onDropRejected,g=n.onFileDialogCancel,v=n.onFileDialogOpen,x=n.useFsAccessApi,y=n.autoFocus,b=n.preventDropOnDocument,w=n.noClick,k=n.noKeyboard,j=n.noDrag,E=n.noDragEventsBubbling,S=n.onError,_=n.validator,P=t.useMemo((function(){return function(t){if(Im(t))return Object.entries(t).reduce((function(t,e){var n=Pm(e,2),r=n[0],o=n[1];return[].concat(jm(t),[r],jm(o))}),[]).filter((function(t){return Um(t)||qm(t)})).join(",")}(r)}),[r]),O=t.useMemo((function(){return function(t){if(Im(t)){var e=Object.entries(t).filter((function(t){var e=Pm(t,2),n=e[0],r=e[1],o=!0;return Um(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(qm)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(t,e){var n=Pm(e,2),r=n[0],o=n[1];return Sm(Sm({},t),{},_m({},r,o))}),{});return[{description:"Files",accept:e}]}return t}(r)}),[r]),C=t.useMemo((function(){return"function"==typeof v?v:sh}),[v]),T=t.useMemo((function(){return"function"==typeof g?g:sh}),[g]),A=t.useRef(null),R=t.useRef(null),N=Ym(t.useReducer(ah,oh),2),D=N[0],L=N[1],M=D.isFocused,I=D.isFileDialogActive,F=t.useRef("undefined"!=typeof window&&window.isSecureContext&&x&&"showOpenFilePicker"in window),z=function(){!F.current&&I&&setTimeout((function(){R.current&&(R.current.files.length||(L({type:"closeDialog"}),T()))}),300)};t.useEffect((function(){return window.addEventListener("focus",z,!1),function(){window.removeEventListener("focus",z,!1)}}),[R,I,T,F]);var B=t.useRef([]),V=function(t){A.current&&A.current.contains(t.target)||(t.preventDefault(),B.current=[])};t.useEffect((function(){return b&&(document.addEventListener("dragover",Bm,!1),document.addEventListener("drop",V,!1)),function(){b&&(document.removeEventListener("dragover",Bm),document.removeEventListener("drop",V))}}),[A,b]),t.useEffect((function(){return!o&&y&&A.current&&A.current.focus(),function(){}}),[A,y,o]);var U=t.useCallback((function(t){S?S(t):console.error(t)}),[S]),q=t.useCallback((function(t){t.preventDefault(),t.persist(),nt(t),B.current=[].concat(Xm(B.current),[t.target]),zm(t)&&Promise.resolve(i(t)).then((function(e){if(!Fm(t)||E){var n=e.length,r=n>0&&function(t){var e=t.files,n=t.accept,r=t.minSize,o=t.maxSize,i=t.multiple,a=t.maxFiles,s=t.validator;return!(!i&&e.length>1||i&&a>=1&&e.length>a)&&e.every((function(t){var e=Pm(Lm(t,n),1)[0],i=Pm(Mm(t,r,o),1)[0],a=s?s(t):null;return e&&i&&!a}))}({files:e,accept:P,minSize:s,maxSize:a,multiple:c,maxFiles:l,validator:_});L({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),p&&p(t)}})).catch((function(t){return U(t)}))}),[i,p,U,E,P,s,a,c,l,_]),$=t.useCallback((function(t){t.preventDefault(),t.persist(),nt(t);var e=zm(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(t){}return e&&d&&d(t),!1}),[d,E]),W=t.useCallback((function(t){t.preventDefault(),t.persist(),nt(t);var e=B.current.filter((function(t){return A.current&&A.current.contains(t)})),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),B.current=e,e.length>0||(L({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),zm(t)&&u&&u(t))}),[A,u,E]),H=t.useCallback((function(t,e){var n=[],r=[];t.forEach((function(t){var e=Ym(Lm(t,P),2),o=e[0],i=e[1],c=Ym(Mm(t,s,a),2),l=c[0],p=c[1],u=_?_(t):null;if(o&&l&&!u)n.push(t);else{var d=[i,p];u&&(d=d.concat(u)),r.push({file:t,errors:d.filter((function(t){return t}))})}})),(!c&&n.length>1||c&&l>=1&&n.length>l)&&(n.forEach((function(t){r.push({file:t,errors:[Dm]})})),n.splice(0)),L({acceptedFiles:n,fileRejections:r,isDragReject:r.length>0,type:"setFiles"}),f&&f(n,r,e),r.length>0&&h&&h(r,e),n.length>0&&m&&m(n,e)}),[L,c,P,s,a,l,f,m,h,_]),G=t.useCallback((function(t){t.preventDefault(),t.persist(),nt(t),B.current=[],zm(t)&&Promise.resolve(i(t)).then((function(e){Fm(t)&&!E||H(e,t)})).catch((function(t){return U(t)})),L({type:"reset"})}),[i,H,U,E]),X=t.useCallback((function(){if(F.current){L({type:"openDialog"}),C();var t={multiple:c,types:O};window.showOpenFilePicker(t).then((function(t){return i(t)})).then((function(t){H(t,null),L({type:"closeDialog"})})).catch((function(t){var e;(e=t)instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(T(t),L({type:"closeDialog"})):!function(t){return t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)}(t)?U(t):(F.current=!1,R.current?(R.current.value=null,R.current.click()):U(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.")))}))}else R.current&&(L({type:"openDialog"}),C(),R.current.value=null,R.current.click())}),[L,C,T,x,H,U,O,c]),Y=t.useCallback((function(t){A.current&&A.current.isEqualNode(t.target)&&(" "!==t.key&&"Enter"!==t.key&&32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),X()))}),[A,X]),K=t.useCallback((function(){L({type:"focus"})}),[]),J=t.useCallback((function(){L({type:"blur"})}),[]),Z=t.useCallback((function(){w||(!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}(t)||function(t){return-1!==t.indexOf("Edge/")}(t)}()?X():setTimeout(X,0))}),[w,X]),Q=function(t){return o?null:t},tt=function(t){return k?null:Q(t)},et=function(t){return j?null:Q(t)},nt=function(t){E&&t.stopPropagation()},rt=t.useMemo((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.role,i=t.onKeyDown,a=t.onFocus,s=t.onBlur,c=t.onClick,l=t.onDragEnter,p=t.onDragOver,u=t.onDragLeave,d=t.onDrop,f=eh(t,Hm);return Qm(Qm(th({onKeyDown:tt(Vm(i,Y)),onFocus:tt(Vm(a,K)),onBlur:tt(Vm(s,J)),onClick:Q(Vm(c,Z)),onDragEnter:et(Vm(l,q)),onDragOver:et(Vm(p,$)),onDragLeave:et(Vm(u,W)),onDrop:et(Vm(d,G)),role:"string"==typeof r&&""!==r?r:"presentation"},n,A),o||k?{}:{tabIndex:0}),f)}}),[A,Y,K,J,Z,q,$,W,G,k,j,o]),ot=t.useCallback((function(t){t.stopPropagation()}),[]),it=t.useMemo((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.onChange,o=t.onClick,i=eh(t,Gm);return Qm(Qm({},th({accept:P,multiple:c,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Q(Vm(r,G)),onClick:Q(Vm(o,ot)),tabIndex:-1},n,R)),i)}}),[R,r,c,G,o]);return Qm(Qm({},D),{},{isFocused:M&&!o,getRootProps:rt,getInputProps:it,rootRef:A,inputRef:R,open:Q(X)})}function ah(t,e){switch(e.type){case"focus":return Qm(Qm({},t),{},{isFocused:!0});case"blur":return Qm(Qm({},t),{},{isFocused:!1});case"openDialog":return Qm(Qm({},oh),{},{isFileDialogActive:!0});case"closeDialog":return Qm(Qm({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Qm(Qm({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Qm(Qm({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return Qm({},oh);default:return t}}function sh(){}var ch=function(){var e=t.useState([]),n=e[0],r=e[1],o=S(),i=t.useCallback((function(){return u(void 0,void 0,void 0,(function(){var t,e;return d(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Nf.get("".concat(o,"/files/"))];case 1:return t=n.sent(),r(t.data.files),[3,3];case 2:return e=n.sent(),console.error("Error fetching files:",e),[3,3];case 3:return[2]}}))}))}),[o]);t.useEffect((function(){i()}),[i]);var a=ih({onDrop:function(t){return u(void 0,void 0,void 0,(function(){var e,n;return d(this,(function(r){switch(r.label){case 0:e=new FormData,t.forEach((function(t){e.append("file",t)})),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,Nf.post("".concat(o,"/upload/"),e,{headers:{"Content-Type":"multipart/form-data"}})];case 2:return r.sent(),i(),[3,4];case 3:return n=r.sent(),console.error("Error uploading files:",n),[3,4];case 4:return[2]}}))}))}}),s=a.getRootProps,c=a.getInputProps;return j.jsxs("div",{className:"mb-4 w-full",children:[j.jsxs("div",p({},s(),{style:{border:"2px dashed #cccccc",padding:"20px",textAlign:"center"},children:[j.jsx("input",p({},c())),j.jsx("p",{children:"Drag 'n' drop some files here, or click to select files"})]})),n.length>0&&j.jsxs(j.Fragment,{children:[j.jsx("h2",{className:"text-gray-900 mt-2 text-xl",children:"Uploaded Files"}),j.jsx("ul",{role:"list",className:"my-2 divide-y divide-gray-100",children:n.map((function(t){return j.jsxs("li",{className:"flex justify-between gap-x-6 py-1",children:[j.jsx("span",{className:"flex-1",children:t}),j.jsx("button",{onClick:function(e){var n;e.preventDefault(),n=t,u(void 0,void 0,void 0,(function(){var t;return d(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,Nf.delete("".concat(o,"/files/").concat(n))];case 1:return e.sent(),i(),[3,3];case 2:return t=e.sent(),console.error("Error deleting file:",t),[3,3];case 3:return[2]}}))}))},children:j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-6",children:j.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]},t)}))})]})]})};function lh(t){var e=t.tone,n=t.onToneChange;return j.jsxs("div",{className:"form-group",children:[j.jsx("label",{htmlFor:"tone",className:"agent_question",children:"Tone "}),j.jsxs("select",{name:"tone",id:"tone",value:e,onChange:n,className:"form-control-static",required:!0,children:[j.jsx("option",{value:"Objective",children:"Objective - Impartial and unbiased presentation of facts and findings"}),j.jsx("option",{value:"Formal",children:"Formal - Adheres to academic standards with sophisticated language and structure"}),j.jsx("option",{value:"Analytical",children:"Analytical - Critical evaluation and detailed examination of data and theories"}),j.jsx("option",{value:"Persuasive",children:"Persuasive - Convincing the audience of a particular viewpoint or argument"}),j.jsx("option",{value:"Informative",children:"Informative - Providing clear and comprehensive information on a topic"}),j.jsx("option",{value:"Explanatory",children:"Explanatory - Clarifying complex concepts and processes"}),j.jsx("option",{value:"Descriptive",children:"Descriptive - Detailed depiction of phenomena, experiments, or case studies"}),j.jsx("option",{value:"Critical",children:"Critical - Judging the validity and relevance of the research and its conclusions"}),j.jsx("option",{value:"Comparative",children:"Comparative - Juxtaposing different theories, data, or methods to highlight differences and similarities"}),j.jsx("option",{value:"Speculative",children:"Speculative - Exploring hypotheses and potential implications or future research directions"}),j.jsx("option",{value:"Reflective",children:"Reflective - Considering the research process and personal insights or experiences"}),j.jsx("option",{value:"Narrative",children:"Narrative - Telling a story to illustrate research findings or methodologies"}),j.jsx("option",{value:"Humorous",children:"Humorous - Light-hearted and engaging, usually to make the content more relatable"}),j.jsx("option",{value:"Optimistic",children:"Optimistic - Highlighting positive findings and potential benefits"}),j.jsx("option",{value:"Pessimistic",children:"Pessimistic - Focusing on limitations, challenges, or negative outcomes"}),j.jsx("option",{value:"Simple",children:"Simple - Written for young readers, using basic vocabulary and clear explanations"}),j.jsx("option",{value:"Casual",children:"Casual - Conversational and relaxed style for easy, everyday reading"})]})]})}var ph,uh={},dh={},fh={};var mh,hh,gh,vh={};function xh(){return mh||(mh=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t||"";r&&(i=t.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(t,n,r){return n>0&&n+t.length!==r.length&&t.search(e)>-1&&":"!==r.charAt(n-2)&&("-"!==r.charAt(n+t.length)||"-"===r.charAt(n-1))&&r.charAt(n-1).search(/[^\s-]/)<0?t.toLowerCase():t.substr(1).search(/[A-Z]|\../)>-1?t:t.charAt(0).toUpperCase()+t.substr(1)})));o&&(i=function(t){if(function(t){return"string"==typeof t&&-1!==t.indexOf("@")}(t))return console.warn("This arg looks like an email address, redacting."),n;return t}(i));return i};var e=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;var n="REDACTED (Potential Email Address)"}(vh)),vh}function yh(){return hh||(hh=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var e=a((ph||(ph=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r;"undefined"!=typeof window&&(void 0===window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(r=window).gtag.apply(r,e))};t.default=e}(fh)),fh)),n=a(xh()),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],i=["page","hitType"];function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||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.")}()}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||f(t,e)||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.")}()}function f(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,v(r.key),r)}}function g(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}var x=function(){function t(){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,"reset",(function(){a.isInitialized=!1,a._testMode=!1,a._currentMeasurementId,a._hasLoadedGA=!1,a._isQueuing=!1,a._queueGtag=[]})),g(this,"_gtag",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a._testMode||a._isQueuing?a._queueGtag.push(n):e.default.apply(void 0,n)})),g(this,"_loadGA",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!=typeof window&&"undefined"!=typeof document&&!a._hasLoadedGA){var r=document.createElement("script");r.async=!0,r.src="".concat(n,"?id=").concat(t),e&&r.setAttribute("nonce",e),document.body.appendChild(r),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},a._hasLoadedGA=!0}})),g(this,"_toGtagOptions",(function(t){if(t){var e={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(t).reduce((function(t,n){var r=d(n,2),o=r[0],i=r[1];return e[o]?t[e[o]]=i:t[o]=i,t}),{})}})),g(this,"initialize",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Require GA_MEASUREMENT_ID");var n="string"==typeof t?[{trackingId:t}]:t;a._currentMeasurementId=n[0].trackingId;var r=e.gaOptions,o=e.gtagOptions,i=e.nonce,s=e.testMode,c=void 0!==s&&s,p=e.gtagUrl;if(a._testMode=c,c||a._loadGA(a._currentMeasurementId,i,p),a.isInitialized||(a._gtag("js",new Date),n.forEach((function(t){var e=u(u(u({},a._toGtagOptions(u(u({},r),t.gaOptions))),o),t.gtagOptions);Object.keys(e).length?a._gtag("config",t.trackingId,e):a._gtag("config",t.trackingId)}))),a.isInitialized=!0,!c){var d=l(a._queueGtag);for(a._queueGtag=[],a._isQueuing=!1;d.length;){var f=d.shift();a._gtag.apply(a,l(f)),"get"===f[0]&&(a._isQueuing=!0)}}})),g(this,"set",(function(t){t?"object"===c(t)?(0===Object.keys(t).length&&console.warn("empty `fieldsObject` given to .set()"),a._gaCommand("set",t)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")})),g(this,"_gaCommandSendEvent",(function(t,e,n,r,o){a._gtag("event",e,u(u({event_category:t,event_label:n,value:r},o&&{non_interaction:o.nonInteraction}),a._toGtagOptions(o)))})),g(this,"_gaCommandSendEventParameters",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if("string"==typeof e[0])a._gaCommandSendEvent.apply(a,l(e.slice(1)));else{var o=e[0],i=o.eventCategory,c=o.eventAction,p=o.eventLabel,u=o.eventValue;o.hitType;var d=s(o,r);a._gaCommandSendEvent(i,c,p,u,d)}})),g(this,"_gaCommandSendTiming",(function(t,e,n,r){a._gtag("event","timing_complete",{name:e,value:n,event_category:t,event_label:r})})),g(this,"_gaCommandSendPageview",(function(t,e){if(e&&Object.keys(e).length){var n=a._toGtagOptions(e),r=n.title,i=n.location,c=s(n,o);a._gtag("event","page_view",u(u(u(u({},t&&{page_path:t}),r&&{page_title:r}),i&&{page_location:i}),c))}else t?a._gtag("event","page_view",{page_path:t}):a._gtag("event","page_view")})),g(this,"_gaCommandSendPageviewParameters",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if("string"==typeof e[0])a._gaCommandSendPageview.apply(a,l(e.slice(1)));else{var r=e[0],o=r.page;r.hitType;var c=s(r,i);a._gaCommandSendPageview(o,c)}})),g(this,"_gaCommandSend",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r="string"==typeof e[0]?e[0]:e[0].hitType;switch(r){case"event":a._gaCommandSendEventParameters.apply(a,e);break;case"pageview":a._gaCommandSendPageviewParameters.apply(a,e);break;case"timing":a._gaCommandSendTiming.apply(a,l(e.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(r));break;default:console.warn("Send command doesn't exist: ".concat(r))}})),g(this,"_gaCommandSet",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];"string"==typeof e[0]&&(e[0]=g({},e[0],e[1])),a._gtag("set",a._toGtagOptions(e[0]))})),g(this,"_gaCommand",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];switch(t){case"send":a._gaCommandSend.apply(a,n);break;case"set":a._gaCommandSet.apply(a,n);break;default:console.warn("Command doesn't exist: ".concat(t))}})),g(this,"ga",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if("string"==typeof e[0])a._gaCommand.apply(a,e);else{var r=e[0];a._gtag("get",a._currentMeasurementId,"client_id",(function(t){a._isQueuing=!1;var e=a._queueGtag;for(r({get:function(e){return"clientId"===e?t:"trackingId"===e?a._currentMeasurementId:"apiVersion"===e?"1":void 0}});e.length;){var n=e.shift();a._gtag.apply(a,l(n))}})),a._isQueuing=!0}return a.ga})),g(this,"event",(function(t,e){if("string"==typeof t)a._gtag("event",t,a._toGtagOptions(e));else{var r=t.action,o=t.category,i=t.label,s=t.value,c=t.nonInteraction,l=t.transport;if(!o||!r)return void console.warn("args.category AND args.action are required in event()");var p={hitType:"event",eventCategory:(0,n.default)(o),eventAction:(0,n.default)(r)};i&&(p.eventLabel=(0,n.default)(i)),void 0!==s&&("number"!=typeof s?console.warn("Expected `args.value` arg to be a Number."):p.eventValue=s),void 0!==c&&("boolean"!=typeof c?console.warn("`args.nonInteraction` must be a boolean."):p.nonInteraction=c),void 0!==l&&("string"!=typeof l?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(l)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),p.transport=l)),a._gaCommand("send",p)}})),g(this,"send",(function(t){a._gaCommand("send",t)})),this.reset()}var a,p,f;return a=t,p=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}],p&&h(a.prototype,p),f&&h(a,f),Object.defineProperty(a,"prototype",{writable:!1}),t}();t.GA4=x;var y=new x;t.default=y}(dh)),dh}function bh(e){var n=e.chatBoxSettings,r=e.setChatBoxSettings,o=e.onFormSubmit,i=t.useState(""),a=i[0];i[1];var s=t.useState(""),c=s[0],l=s[1],u=n.report_type,d=n.report_source,m=n.tone,h=t.useState((function(){if("undefined"!=typeof window){var t=localStorage.getItem("domainFilters");return t?JSON.parse(t):[]}return[]})),g=h[0],v=h[1];t.useEffect((function(){localStorage.setItem("domainFilters",JSON.stringify(g)),r((function(t){return p(p({},t),{domains:g.map((function(t){return t.value}))})}))}),[g,r]);var x=function(t){t.preventDefault(),c.trim()&&(v(f(f([],g,!0),[{value:c.trim()}],!1)),l(""))},y=function(t){var e=t.target,n=e.name,o=e.value;r((function(t){var e;return p(p({},t),((e={})[n]=o,e))}))};return j.jsxs("form",{method:"POST",className:"report_settings_static mt-3",onSubmit:function(t){if(t.preventDefault(),o){var e=p(p({},n),{domains:g.map((function(t){return t.value}))});r(e),o(a,u,d,g)}},children:[j.jsxs("div",{className:"form-group",children:[j.jsxs("label",{htmlFor:"report_type",className:"agent_question",children:["Report Type"," "]}),j.jsxs("select",{name:"report_type",value:u,onChange:y,className:"form-control-static",required:!0,children:[j.jsx("option",{value:"research_report",children:"Summary - Short and fast (~2 min)"}),j.jsx("option",{value:"deep",children:"Deep Research Report"}),j.jsx("option",{value:"multi_agents",children:"Multi Agents Report"}),j.jsx("option",{value:"detailed_report",children:"Detailed - In depth and longer (~5 min)"})]})]}),j.jsxs("div",{className:"form-group",children:[j.jsxs("label",{htmlFor:"report_source",className:"agent_question",children:["Report Source"," "]}),j.jsxs("select",{name:"report_source",value:d,onChange:y,className:"form-control-static",required:!0,children:[j.jsx("option",{value:"web",children:"The Internet"}),j.jsx("option",{value:"local",children:"My Documents"}),j.jsx("option",{value:"hybrid",children:"Hybrid"})]})]}),"local"===d||"hybrid"===d?j.jsx(ch,{}):null,j.jsx(lh,{tone:m,onToneChange:function(t){var e=t.target.value;r((function(t){return p(p({},t),{tone:e})}))}}),("web"===n.report_source||"hybrid"===n.report_source)&&j.jsxs("div",{className:"mt-4 domain_filters",children:[j.jsxs("div",{className:"flex gap-2 mb-4",children:[j.jsxs("label",{htmlFor:"domain_filters",className:"agent_question",children:["Filter by domain"," "]}),j.jsx("input",{type:"text",value:c,onChange:function(t){return l(t.target.value)},placeholder:"Filter by domain (e.g., techcrunch.com)",className:"input-static",onKeyPress:function(t){"Enter"===t.key&&(t.preventDefault(),x(t))}}),j.jsx("button",{type:"button",onClick:x,className:"button-static",children:"Add Domain"})]}),j.jsx("div",{className:"flex flex-wrap gap-2",children:g.map((function(t,e){return j.jsxs("div",{className:"domain-tag-static",children:[j.jsx("span",{className:"domain-text-static",children:t.value}),j.jsx("button",{type:"button",onClick:function(){return e=t.value,void v(g.filter((function(t){return t.value!==e})));var e},className:"domain-button-static",children:"X"})]},e)}))})]})]})}function wh(e){var n=this,r=e.report,o=t.useState(""),i=o[0],a=o[1];return t.useEffect((function(){r&&u(n,void 0,void 0,(function(){var t,e;return d(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Je(r)];case 1:return t=n.sent(),a(t),[3,3];case 2:return e=n.sent(),console.error("Error converting markdown to HTML:",e),a("<p>Error rendering content</p>"),[3,3];case 3:return[2]}}))}))}),[r]),j.jsxs("div",{children:[j.jsx("h2",{children:"Research Report"}),j.jsx("div",{id:"reportContainer",className:"markdown-content",children:j.jsx("div",{dangerouslySetInnerHTML:{__html:i}})})]})}function kh(t){var e=t.agentLogs;return j.jsxs("div",{className:"margin-div",children:[j.jsx("h2",{children:"Agent Output"}),j.jsx("div",{id:"output",children:function(t){return t&&t.map((function(t,e){return j.jsx("div",{children:t.output},e)}))}(e)})]})}function jh(e){var n=e.chatBoxSettings,r=e.setChatBoxSettings,o=t.useState([]),i=o[0],a=o[1],s=t.useState(""),c=s[0],l=s[1],u=t.useState({}),d=u[0],m=u[1],h=t.useState(null);h[0];var g=h[1];return t.useEffect((function(){if("undefined"!=typeof window){var t=S(),e=t.includes("https")?"wss:":"ws:",n=t.replace("http://","").replace("https://",""),r="".concat(e,"//").concat(n,"/ws"),o=new WebSocket(r);return g(o),o.onmessage=function(t){var e=JSON.parse(t.data);if("logs"===e.type)a((function(t){return f(f([],t,!0),[e],!1)}));else if("report"===e.type)l((function(t){return t+e.output}));else if("path"===e.type){var n=e.output;m(p(p(p({},n.pdf&&{pdf:"outputs/".concat(n.pdf)}),n.docx&&{docx:"outputs/".concat(n.docx)}),n.json&&{json:"outputs/".concat(n.json)}))}},function(){o.close()}}}),[]),j.jsx("div",{children:j.jsxs("main",{className:"static-container",id:"form",children:[j.jsx(bh,{chatBoxSettings:n,setChatBoxSettings:r}),(null==i?void 0:i.length)>0?j.jsx(kh,{agentLogs:i}):"",j.jsxs("div",{className:"margin-div",children:[c?j.jsx(wh,{report:c}):"",Object.keys(d).length>0&&j.jsx(dn,{accessData:d,chatBoxSettings:n,report:c})]})]})})}gh||(gh=1,function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReactGAImplementation=void 0;var n=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var o=r(n);if(o&&o.has(t))return o.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=a?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(i,s,c):i[s]=t[s]}return i.default=t,o&&o.set(t,i),i}(yh());function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}var o=n.GA4;t.ReactGAImplementation=o;var i=n.default;t.default=i}(uh));var Eh=function(e){var n=e.chatBoxSettings,r=e.setChatBoxSettings,i=t.useState(!1),a=i[0],s=i[1],c=t.useState("report_settings"),l=c[0];c[1];var u=t.useState(!1),d=u[0],f=u[1],m=t.useState({DOC_PATH:"./my-docs"}),h=m[0],g=m[1];t.useEffect((function(){return f(!0),function(){return f(!1)}}),[]),t.useEffect((function(){var t=localStorage.getItem("apiVariables");if(t&&g(JSON.parse(t)),a){document.body.style.overflow="hidden";var e=document.querySelector(".settings .App-header");e&&e.classList.remove("App-header")}else document.body.style.overflow="";return function(){document.body.style.overflow=""}}),[a]);var v=a&&j.jsxs(gl,{children:[j.jsx(ll.div,{className:"fixed inset-0 z-[1000] flex items-center justify-center overflow-auto",initial:"hidden",animate:"visible",exit:"hidden",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{duration:.3}}},style:{backdropFilter:"blur(5px)"},onClick:function(t){t.target===t.currentTarget&&s(!1)},children:j.jsx(ll.div,{className:"relative w-auto max-w-3xl z-[1001] mx-6 my-8 md:mx-auto",variants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.3,ease:"easeOut"}}},children:j.jsxs("div",{className:"relative",children:[j.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-teal-500/20 via-cyan-500/15 to-blue-500/20 rounded-xl blur-sm opacity-50 shadow-sm"}),j.jsxs("div",{className:"relative flex flex-col rounded-lg overflow-hidden bg-gray-900 border border-gray-800/60 shadow-md hover:shadow-teal-400/10 transition-shadow duration-300",children:[j.jsx("div",{className:"bg-gray-900 p-5 border-b border-gray-800",children:j.jsxs("div",{className:"flex items-center justify-between",children:[j.jsxs("h3",{className:"text-xl font-semibold text-white",children:[j.jsx("span",{className:"mr-2",children:"⚙️"}),j.jsx("span",{className:"text-teal-400",children:"Preferences"})]}),j.jsx("button",{className:"p-1 ml-auto text-gray-400 hover:text-white transition-colors duration-200",onClick:function(){return s(!1)},children:j.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),j.jsxs("div",{className:"relative p-6 flex-auto bg-gray-900/95 modal-content",children:[!1,"report_settings"===l&&j.jsx("div",{className:"App",children:j.jsx("header",{className:"App-header",children:j.jsx(jh,{setChatBoxSettings:r,chatBoxSettings:n})})})]}),j.jsxs("div",{className:"flex items-center justify-end p-4 border-t border-gray-800 bg-gray-900/80",children:[j.jsx("button",{className:"mr-3 px-4 py-2 text-sm font-medium text-gray-300 hover:text-white bg-gray-800 hover:bg-gray-700 rounded-md transition-colors duration-200",onClick:function(){return s(!1)},children:"Cancel"}),j.jsx("button",{className:"px-6 py-2.5 text-sm font-medium rounded-md text-white bg-teal-600 hover:bg-gradient-to-br hover:from-teal-500/95 hover:via-cyan-500/90 hover:to-teal-600/95 shadow-sm hover:shadow-teal-400/20 transition-all duration-300 focus:outline-none focus:ring-1 focus:ring-teal-500 focus:ring-offset-1 focus:ring-offset-gray-900",onClick:function(){r(p({},n)),localStorage.setItem("apiVariables",JSON.stringify(h)),s(!1)},children:"Save Changes"})]})]})]})})}),j.jsx(ll.div,{className:"fixed inset-0 z-[999] bg-black",initial:{opacity:0},animate:{opacity:.6},exit:{opacity:0}})]});return j.jsxs("div",{className:"settings",children:[j.jsx("button",{className:"bg-gray-900 text-white px-6 py-3 rounded-lg shadow-sm hover:shadow-teal-400/10 transition-all duration-300 border border-gray-800 hover:border-teal-500/30",type:"button",onClick:function(){return s(!0)},children:j.jsxs("span",{className:"flex items-center",children:[j.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[j.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),j.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),"Preferences"]})}),d&&a&&o.createPortal(v,document.body)]})},Sh=function(t){var e=t.chatBoxSettings,n=t.setChatBoxSettings;if("undefined"!=typeof window){var r=new URLSearchParams(window.location.search).get("domains");if(r){var o=r.split(",").map((function(t){return{value:t.trim()}}));localStorage.setItem("domainFilters",JSON.stringify(o))}}return j.jsx(j.Fragment,{children:j.jsxs("div",{className:"container flex flex-col sm:flex-row min-h-[60px] sm:min-h-[72px] mt-2 items-center justify-center sm:justify-between border-t border-gray-700/30 px-4 pb-3 pt-4 sm:py-5 lg:px-0 bg-transparent backdrop-blur-sm gap-3 sm:gap-0",children:[j.jsx(Eh,{setChatBoxSettings:n,chatBoxSettings:e}),j.jsxs("div",{className:"text-xs sm:text-sm text-gray-100 text-center sm:text-left order-2 sm:order-1",children:["© ",(new Date).getFullYear()," GPT Researcher. All rights reserved."]}),j.jsxs("div",{className:"flex items-center gap-4 order-1 sm:order-2 mb-2 sm:mb-0",children:[j.jsx(gu,{href:"https://gptr.dev",target:"_blank",className:"p-1",children:j.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-6 h-6 sm:w-7 sm:h-7 text-white hover:text-teal-400 transition-colors duration-300",children:[j.jsx("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),j.jsx("polyline",{points:"9 22 9 12 15 12 15 22"})]})}),j.jsxs(gu,{href:"https://github.com/assafelovic/gpt-researcher",target:"_blank",className:"p-1",children:[j.jsx("img",{src:"https://askjarvis.ai/img/github.svg",alt:"github",width:24,height:24,className:"w-6 h-6 sm:w-7 sm:h-7"})," "]}),j.jsxs(gu,{href:"https://discord.gg/QgZXvJAccX",target:"_blank",className:"p-1",children:[j.jsx("img",{src:"https://askjarvis.ai/img/discord.svg",alt:"discord",width:24,height:24,className:"w-6 h-6 sm:w-7 sm:h-7"})," "]}),j.jsxs(gu,{href:"https://hub.docker.com/r/gptresearcher/gpt-researcher",target:"_blank",className:"p-1",children:[j.jsx("img",{src:"https://askjarvis.ai/img/docker.svg",alt:"docker",width:24,height:24,className:"w-6 h-6 sm:w-7 sm:h-7"})," "]})]})]})})},_h=function(e){var n=e.questionForHuman;e.websocket;var r=e.onFeedbackSubmit,o=t.useState(null);o[0];var i=o[1],a=t.useState(""),s=a[0],c=a[1];return j.jsxs("div",{className:"bg-gray-100 p-4 rounded-lg shadow-md",children:[j.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Human Feedback Required"}),j.jsx("p",{className:"mb-4",children:n}),j.jsxs("form",{onSubmit:function(t){t.preventDefault(),r(""===s?null:s),i(null),c("")},children:[j.jsx("textarea",{className:"w-full p-2 border rounded-md",value:s,onChange:function(t){return c(t.target.value)},placeholder:"Enter your feedback here (or leave blank for 'no')"}),j.jsx("button",{type:"submit",className:"mt-2 px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600",children:"Submit Feedback"})]})]})},Ph=function(){return j.jsx("div",{className:"flex justify-center py-4",children:j.jsxs("div",{className:"animate-pulse flex space-x-2",children:[j.jsx("div",{className:"w-2 h-2 bg-gray-300 rounded-full"}),j.jsx("div",{className:"w-2 h-2 bg-gray-300 rounded-full"}),j.jsx("div",{className:"w-2 h-2 bg-gray-300 rounded-full"})]})})};exports.GPTResearcher=function(e){var n=e.apiUrl,r=void 0===n?"":n,o=e.apiKey,i=void 0===o?"":o,a=e.defaultPrompt,s=void 0===a?"":a,c=e.onResultsChange;e.theme,localStorage.setItem("apiURL",r);var l=t.useState(s),p=l[0],m=l[1],h=t.useState(!1),g=h[0],v=h[1],x=t.useState(""),y=x[0],b=x[1],w=t.useState(!1),k=w[0],E=w[1],S=t.useState({report_source:"web",report_type:"research_report",tone:"Objective",domains:[],defaultReportType:"research_report"}),O=S[0],C=S[1],T=t.useState("");T[0];var A=T[1],R=t.useState([]),N=R[0],D=R[1],L=t.useState(!1),M=L[0],I=L[1],F=t.useState(!1),z=F[0],B=F[1],V=t.useState([]),U=V[0],q=V[1],$=t.useRef(null),W=t.useState(!1),H=W[0],G=W[1],X=t.useState(!1),Y=X[0],K=X[1],J=t.useRef(null),Z=t.useState(r);Z[0];var Q=Z[1];t.useEffect((function(){Q(r)}),[r]),t.useEffect((function(){c&&N.length>0&&c(N)}),[N,c]);var tt=_(D,b,E,I,B),et=tt.socket,nt=tt.initializeWebSocket,rt=function(t){return u(void 0,void 0,void 0,(function(){var e,n;return d(this,(function(o){return v(!0),E(!0),A(t),m(""),b(""),D((function(e){return f(f([],e,!0),[{type:"question",content:t}],!1)})),e=localStorage.getItem("apiVariables"),n=e?JSON.parse(e):{LANGGRAPH_HOST_URL:""},r&&(n.API_URL=r),i&&(n.API_KEY=i),nt(t,O),[2]}))}))};t.useEffect((function(){var t=P(N),e=["agent_generated","starting_research","planning_research","error"],n=t.reduce((function(t,n){if("accordionBlock"===n.type){var r=n.items.map((function(t,e){return{header:t.content,text:t.output,metadata:t.metadata,key:"".concat(t.type,"-").concat(t.content,"-").concat(e)}}));return f(f([],t,!0),r,!0)}return e.includes(n.content)?f(f([],t,!0),[{header:n.content,text:n.output,metadata:n.metadata,key:"".concat(n.type,"-").concat(n.content)}],!1):t}),[]);q(n)}),[N]);var ot=t.useCallback((function(){var t=window.scrollY+window.innerHeight>=document.documentElement.scrollHeight-100,e=document.documentElement.scrollHeight>window.innerHeight;K(e&&!t)}),[]);t.useEffect((function(){var t=J.current,e=new ResizeObserver((function(){ot()}));return t&&e.observe(t),window.addEventListener("scroll",ot),window.addEventListener("resize",ot),function(){t&&e.unobserve(t),e.disconnect(),window.removeEventListener("scroll",ot),window.removeEventListener("resize",ot)}}),[ot]);return j.jsxs(j.Fragment,{children:[j.jsx(mn,{loading:k,isStopped:H,showResult:g,onStop:function(){et&&et.close(),E(!1),G(!0)},onNewResearch:function(){v(!1),m(""),G(!1),A(""),b(""),D([]),q([]),I(!1),B(!1),et&&et.close(),E(!1)}}),j.jsxs("main",{ref:J,className:"min-h-[100vh] pt-[120px]",children:[!g&&j.jsx(xl,{promptValue:p,setPromptValue:m,handleDisplayResult:rt}),g&&j.jsxs("div",{className:"flex h-full w-full grow flex-col justify-between",children:[j.jsxs("div",{className:"container w-full space-y-2",children:[j.jsx("div",{className:"container space-y-2 task-components",children:j.jsx(fn,{orderedData:N,answer:y,allLogs:U,chatBoxSettings:O,handleClickSuggestion:function(t){m(t);var e=document.getElementById("input-area");e&&e.scrollIntoView({behavior:"smooth"})}})}),M&&j.jsx(_h,{questionForHuman:z,websocket:et,onFeedbackSubmit:function(t){et&&et.send(JSON.stringify({type:"human_feedback",content:t})),I(!1)}}),j.jsx("div",{className:"pt-1 sm:pt-2",ref:$})]}),j.jsx("div",{id:"input-area",className:"container px-4 lg:px-0",children:k?j.jsx(Ph,{}):j.jsx(gn,{promptValue:p,setPromptValue:m,handleSubmit:function(t){return u(void 0,void 0,void 0,(function(){var e;return d(this,(function(n){return et&&(v(!0),A(t),E(!0),m(""),b(""),e={type:"question",content:t},D((function(t){return f(f([],t,!0),[e],!1)})),et.send("chat".concat(JSON.stringify({message:t})))),[2]}))}))},handleSecondary:rt,disabled:k,reset:function(){v(!1),m(""),A(""),b("")},isStopped:H})})]})]}),Y&&g&&j.jsx("button",{onClick:function(){window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"})},className:"fixed bottom-8 right-8 flex items-center justify-center w-12 h-12 text-white bg-[rgb(168,85,247)] rounded-full hover:bg-[rgb(147,51,234)] transform hover:scale-105 transition-all duration-200 shadow-lg z-50",children:j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:j.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})}),j.jsx(Sh,{setChatBoxSettings:C,chatBoxSettings:O})]})};
//# sourceMappingURL=index.js.map