@inertiaui/modal-react 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/inertiaui-modal.js +4544 -4504
- package/dist/inertiaui-modal.umd.cjs +20 -20
- package/package.json +1 -1
- package/src/HeadlessModal.jsx +88 -0
- package/src/Modal.jsx +86 -119
- package/src/inertiauiModal.js +4 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(W,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("@inertiajs/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@inertiajs/react","react-dom"],p):(W=typeof globalThis<"u"?globalThis:W||self,p(W.InertiaUIModal={},W.React,W.react,W.ReactDOM))})(this,function(W,p,De,ya){"use strict";var Hd=Object.defineProperty;var qd=(W,p,De)=>p in W?Hd(W,p,{enumerable:!0,configurable:!0,writable:!0,value:De}):W[p]=De;var Oe=(W,p,De)=>qd(W,typeof p!="symbol"?p+"":p,De);function ha(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pt=ha(p),Dt={type:"modal",modal:{closeButton:!0,closeExplicitly:!1,maxWidth:"2xl",paddingClasses:"p-4 sm:p-6",panelClasses:"bg-white rounded",position:"center"},slideover:{closeButton:!0,closeExplicitly:!1,maxWidth:"md",paddingClasses:"p-4 sm:p-6",panelClasses:"bg-white min-h-screen",position:"right"}};class va{constructor(){this.config={},this.reset()}reset(){this.config=JSON.parse(JSON.stringify(Dt))}put(t,r){if(typeof t=="object"){this.config={type:t.type??Dt.type,modal:{...Dt.modal,...t.modal??{}},slideover:{...Dt.slideover,...t.slideover??{}}};return}const n=t.split(".");let o=this.config;for(let i=0;i<n.length-1;i++)o=o[n[i]]=o[n[i]]||{};o[n[n.length-1]]=r}get(t){if(typeof t>"u")return this.config;const r=t.split(".");let n=this.config;for(const o of r){if(n[o]===void 0)return null;n=n[o]}return n}}const It=new va,ga=()=>It.reset(),ba=(e,t)=>It.put(e,t),Dn=e=>It.get(e),Ye=(e,t)=>It.get(e?`slideover.${t}`:`modal.${t}`);var wr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ea(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Er={exports:{}},mt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var In;function Sa(){if(In)return mt;In=1;var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,f){var u,h={},v=null,g=null;f!==void 0&&(v=""+f),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(g=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(h[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)h[u]===void 0&&(h[u]=l[u]);return{$$typeof:t,type:s,key:v,ref:g,props:h,_owner:o.current}}return mt.Fragment=r,mt.jsx=a,mt.jsxs=a,mt}var yt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,30 +14,30 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
17
|
+
*/var Ln;function xa(){return Ln||(Ln=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),c=Symbol.iterator,m="@@iterator";function y(d){if(d===null||typeof d!="object")return null;var E=c&&d[c]||d[m];return typeof E=="function"?E:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(d){{for(var E=arguments.length,A=new Array(E>1?E-1:0),F=1;F<E;F++)A[F-1]=arguments[F];x("error",d,A)}}function x(d,E,A){{var F=w.ReactDebugCurrentFrame,k=F.getStackAddendum();k!==""&&(E+="%s",A=A.concat([k]));var B=A.map(function(D){return String(D)});B.unshift("Warning: "+E),Function.prototype.apply.call(console[d],console,B)}}var O=!1,T=!1,P=!1,_=!1,j=!1,H;H=Symbol.for("react.module.reference");function I(d){return!!(typeof d=="string"||typeof d=="function"||d===n||d===i||j||d===o||d===f||d===u||_||d===g||O||T||P||typeof d=="object"&&d!==null&&(d.$$typeof===v||d.$$typeof===h||d.$$typeof===a||d.$$typeof===s||d.$$typeof===l||d.$$typeof===H||d.getModuleId!==void 0))}function X(d,E,A){var F=d.displayName;if(F)return F;var k=E.displayName||E.name||"";return k!==""?A+"("+k+")":A}function Z(d){return d.displayName||"Context"}function C(d){if(d==null)return null;if(typeof d.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case u:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case s:var E=d;return Z(E)+".Consumer";case a:var A=d;return Z(A._context)+".Provider";case l:return X(d,d.render,"ForwardRef");case h:var F=d.displayName||null;return F!==null?F:C(d.type)||"Memo";case v:{var k=d,B=k._payload,D=k._init;try{return C(D(B))}catch{return null}}}return null}var L=Object.assign,K=0,ce,ye,we,re,U,Me,hr;function ee(){}ee.__reactDisabledLog=!0;function Pn(){{if(K===0){ce=console.log,ye=console.info,we=console.warn,re=console.error,U=console.group,Me=console.groupCollapsed,hr=console.groupEnd;var d={configurable:!0,enumerable:!0,value:ee,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}K++}}function Ge(){{if(K--,K===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},d,{value:ce}),info:L({},d,{value:ye}),warn:L({},d,{value:we}),error:L({},d,{value:re}),group:L({},d,{value:U}),groupCollapsed:L({},d,{value:Me}),groupEnd:L({},d,{value:hr})})}K<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ke=w.ReactCurrentDispatcher,Re;function Ee(d,E,A){{if(Re===void 0)try{throw Error()}catch(k){var F=k.stack.trim().match(/\n( *(at )?)/);Re=F&&F[1]||""}return`
|
|
18
|
+
`+Re+d}}var Cn=!1,vr;{var gd=typeof WeakMap=="function"?WeakMap:Map;vr=new gd}function ta(d,E){if(!d||Cn)return"";{var A=vr.get(d);if(A!==void 0)return A}var F;Cn=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Ke.current,Ke.current=null,Pn();try{if(E){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(le){F=le}Reflect.construct(d,[],D)}else{try{D.call()}catch(le){F=le}d.call(D.prototype)}}else{try{throw Error()}catch(le){F=le}d()}}catch(le){if(le&&F&&typeof le.stack=="string"){for(var M=le.stack.split(`
|
|
19
19
|
`),oe=F.stack.split(`
|
|
20
|
-
`),G=
|
|
21
|
-
`+
|
|
20
|
+
`),G=M.length-1,J=oe.length-1;G>=1&&J>=0&&M[G]!==oe[J];)J--;for(;G>=1&&J>=0;G--,J--)if(M[G]!==oe[J]){if(G!==1||J!==1)do if(G--,J--,J<0||M[G]!==oe[J]){var de=`
|
|
21
|
+
`+M[G].replace(" at new "," at ");return d.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",d.displayName)),typeof d=="function"&&vr.set(d,de),de}while(G>=1&&J>=0);break}}}finally{Cn=!1,Ke.current=B,Ge(),Error.prepareStackTrace=k}var dt=d?d.displayName||d.name:"",Je=dt?Ee(dt):"";return typeof d=="function"&&vr.set(d,Je),Je}function bd(d,E,A){return ta(d,!1)}function wd(d){var E=d.prototype;return!!(E&&E.isReactComponent)}function gr(d,E,A){if(d==null)return"";if(typeof d=="function")return ta(d,wd(d));if(typeof d=="string")return Ee(d);switch(d){case f:return Ee("Suspense");case u:return Ee("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case l:return bd(d.render);case h:return gr(d.type,E,A);case v:{var F=d,k=F._payload,B=F._init;try{return gr(B(k),E,A)}catch{}}}return""}var Mt=Object.prototype.hasOwnProperty,ra={},na=w.ReactDebugCurrentFrame;function br(d){if(d){var E=d._owner,A=gr(d.type,d._source,E?E.type:null);na.setExtraStackFrame(A)}else na.setExtraStackFrame(null)}function Ed(d,E,A,F,k){{var B=Function.call.bind(Mt);for(var D in d)if(B(d,D)){var M=void 0;try{if(typeof d[D]!="function"){var oe=Error((F||"React class")+": "+A+" type `"+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[D]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oe.name="Invariant Violation",oe}M=d[D](E,D,F,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(G){M=G}M&&!(M instanceof Error)&&(br(k),S("%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).",F||"React class",A,D,typeof M),br(null)),M instanceof Error&&!(M.message in ra)&&(ra[M.message]=!0,br(k),S("Failed %s type: %s",A,M.message),br(null))}}}var Sd=Array.isArray;function Fn(d){return Sd(d)}function xd(d){{var E=typeof Symbol=="function"&&Symbol.toStringTag,A=E&&d[Symbol.toStringTag]||d.constructor.name||"Object";return A}}function Od(d){try{return oa(d),!1}catch{return!0}}function oa(d){return""+d}function ia(d){if(Od(d))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xd(d)),oa(d)}var Rt=w.ReactCurrentOwner,Ad={key:!0,ref:!0,__self:!0,__source:!0},aa,sa,$n;$n={};function Td(d){if(Mt.call(d,"ref")){var E=Object.getOwnPropertyDescriptor(d,"ref").get;if(E&&E.isReactWarning)return!1}return d.ref!==void 0}function Pd(d){if(Mt.call(d,"key")){var E=Object.getOwnPropertyDescriptor(d,"key").get;if(E&&E.isReactWarning)return!1}return d.key!==void 0}function Cd(d,E){if(typeof d.ref=="string"&&Rt.current&&E&&Rt.current.stateNode!==E){var A=C(Rt.current.type);$n[A]||(S('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',C(Rt.current.type),d.ref),$n[A]=!0)}}function Fd(d,E){{var A=function(){aa||(aa=!0,S("%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))};A.isReactWarning=!0,Object.defineProperty(d,"key",{get:A,configurable:!0})}}function $d(d,E){{var A=function(){sa||(sa=!0,S("%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))};A.isReactWarning=!0,Object.defineProperty(d,"ref",{get:A,configurable:!0})}}var _d=function(d,E,A,F,k,B,D){var M={$$typeof:t,type:d,key:E,ref:A,props:D,_owner:B};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function Nd(d,E,A,F,k){{var B,D={},M=null,oe=null;A!==void 0&&(ia(A),M=""+A),Pd(E)&&(ia(E.key),M=""+E.key),Td(E)&&(oe=E.ref,Cd(E,k));for(B in E)Mt.call(E,B)&&!Ad.hasOwnProperty(B)&&(D[B]=E[B]);if(d&&d.defaultProps){var G=d.defaultProps;for(B in G)D[B]===void 0&&(D[B]=G[B])}if(M||oe){var J=typeof d=="function"?d.displayName||d.name||"Unknown":d;M&&Fd(D,J),oe&&$d(D,J)}return _d(d,M,oe,k,F,Rt.current,D)}}var _n=w.ReactCurrentOwner,la=w.ReactDebugCurrentFrame;function ft(d){if(d){var E=d._owner,A=gr(d.type,d._source,E?E.type:null);la.setExtraStackFrame(A)}else la.setExtraStackFrame(null)}var Nn;Nn=!1;function Mn(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function ua(){{if(_n.current){var d=C(_n.current.type);if(d)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+d+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+d+"`."}return""}}function Md(d){return""}var ca={};function Rd(d){{var E=ua();if(!E){var A=typeof d=="string"?d:d.displayName||d.name;A&&(E=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+A+">.")}return E}}function
|
|
25
|
+
Check the top-level render call using <`+A+">.")}return E}}function fa(d,E){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var A=Rd(E);if(ca[A])return;ca[A]=!0;var F="";d&&d._owner&&d._owner!==_n.current&&(F=" It was passed a child from "+C(d._owner.type)+"."),ft(d),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,F),ft(null)}}function da(d,E){{if(typeof d!="object")return;if(Fn(d))for(var A=0;A<d.length;A++){var F=d[A];Mn(F)&&fa(F,E)}else if(Mn(d))d._store&&(d._store.validated=!0);else if(d){var k=y(d);if(typeof k=="function"&&k!==d.entries)for(var B=k.call(d),D;!(D=B.next()).done;)Mn(D.value)&&fa(D.value,E)}}}function Dd(d){{var E=d.type;if(E==null||typeof E=="string")return;var A;if(typeof E=="function")A=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===l||E.$$typeof===h))A=E.propTypes;else return;if(A){var F=C(E);Ed(A,d.props,"prop",F,d)}else if(E.PropTypes!==void 0&&!Nn){Nn=!0;var k=C(E);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Id(d){{for(var E=Object.keys(d.props),A=0;A<E.length;A++){var F=E[A];if(F!=="children"&&F!=="key"){ft(d),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),ft(null);break}}d.ref!==null&&(ft(d),S("Invalid attribute `ref` supplied to `React.Fragment`."),ft(null))}}var pa={};function ma(d,E,A,F,k,B){{var D=I(d);if(!D){var M="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(M+=" 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 oe=Md();oe?M+=oe:M+=ua();var G;d===null?G="null":Fn(d)?G="array":d!==void 0&&d.$$typeof===t?(G="<"+(C(d.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):G=typeof d,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",G,M)}var J=Nd(d,E,A,k,B);if(J==null)return J;if(D){var de=E.children;if(de!==void 0)if(F)if(Fn(de)){for(var dt=0;dt<de.length;dt++)da(de[dt],d);Object.freeze&&Object.freeze(de)}else S("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 da(de,d)}if(Mt.call(E,"key")){var Je=C(d),le=Object.keys(E).filter(function(Wd){return Wd!=="key"}),Rn=le.length>0?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}";if(!pa[Je+Rn]){var Ud=le.length>0?"{"+le.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Dn,Je,Bd,Je),fa[Je+Dn]=!0}}return d===n?Rd(J):Md(J),J}}function Id(d,E,A){return da(d,E,A,!0)}function Ld(d,E,A){return da(d,E,A,!1)}var kd=Ld,jd=Id;yt.Fragment=n,yt.jsx=kd,yt.jsxs=jd}()),yt}process.env.NODE_ENV==="production"?Er.exports=wa():Er.exports=Ea();var R=Er.exports;function Ln(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ln(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Lt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ln(e))&&(n&&(n+=" "),n+=t);return n}var Sa=Object.defineProperty,xa=(e,t,r)=>t in e?Sa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sr=(e,t,r)=>(xa(e,typeof t!="symbol"?t+"":t,r),r);let Oa=class{constructor(){Sr(this,"current",this.detect()),Sr(this,"handoffState","pending"),Sr(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ie=new Oa;function kt(e){return Ie.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function jt(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ae(){let e=[],t={addEventListener(r,n,o,i){return r.addEventListener(n,o,i),t.add(()=>r.removeEventListener(n,o,i))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return jt(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let i=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:i})})},group(r){let n=Ae();return r(n),this.add(()=>n.dispose())},add(r){return e.includes(r)||e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function xr(){let[e]=m.useState(Ae);return m.useEffect(()=>()=>e.dispose(),[e]),e}let ne=(e,t)=>{Ie.isServer?m.useEffect(e,t):m.useLayoutEffect(e,t)};function Le(e){let t=m.useRef(e);return ne(()=>{t.current=e},[e]),t}let H=function(e){let t=Le(e);return m.useCallback((...r)=>t.current(...r),[t])},Aa=m.createContext(void 0);function Ta(){return m.useContext(Aa)}function Or(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Te(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Te),n}var Bt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Bt||{}),Pe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Pe||{});function fe({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:a,mergeRefs:s}){s=s??Pa;let l=kn(t,e);if(i)return Ut(l,r,n,a,s);let f=o??0;if(f&2){let{static:u=!1,...h}=l;if(u)return Ut(h,r,n,a,s)}if(f&1){let{unmount:u=!0,...h}=l;return Te(u?0:1,{0(){return null},1(){return Ut({...h,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return Ut(l,r,n,a,s)}function Ut(e,t={},r,n,o){let{as:i=r,children:a,refName:s="ref",...l}=Ar(e,["unmount","static"]),f=e.ref!==void 0?{[s]:e.ref}:{},u=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let h={};if(t){let v=!1,g=[];for(let[c,p]of Object.entries(t))typeof p=="boolean"&&(v=!0),p===!0&&g.push(c.replace(/([A-Z])/g,y=>`-${y.toLowerCase()}`));if(v){h["data-headlessui-state"]=g.join(" ");for(let c of g)h[`data-${c}`]=""}}if(i===m.Fragment&&(Object.keys(ke(l)).length>0||Object.keys(ke(h)).length>0))if(!m.isValidElement(u)||Array.isArray(u)&&u.length>1){if(Object.keys(ke(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ke(l)).concat(Object.keys(ke(h))).map(v=>` - ${v}`).join(`
|
|
30
|
+
<%s key={someKey} {...props} />`,Rn,Je,Ud,Je),pa[Je+Rn]=!0}}return d===n?Id(J):Dd(J),J}}function Ld(d,E,A){return ma(d,E,A,!0)}function kd(d,E,A){return ma(d,E,A,!1)}var jd=kd,Bd=Ld;yt.Fragment=n,yt.jsx=jd,yt.jsxs=Bd}()),yt}process.env.NODE_ENV==="production"?Er.exports=Sa():Er.exports=xa();var R=Er.exports;function kn(e,t){return function(){return e.apply(t,arguments)}}const{toString:Oa}=Object.prototype,{getPrototypeOf:Sr}=Object,Lt=(e=>t=>{const r=Oa.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),pe=e=>(e=e.toLowerCase(),t=>Lt(t)===e),kt=e=>t=>typeof t===e,{isArray:Xe}=Array,ht=kt("undefined");function Aa(e){return e!==null&&!ht(e)&&e.constructor!==null&&!ht(e.constructor)&&ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jn=pe("ArrayBuffer");function Ta(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jn(e.buffer),t}const Pa=kt("string"),ue=kt("function"),Bn=kt("number"),jt=e=>e!==null&&typeof e=="object",Ca=e=>e===!0||e===!1,Bt=e=>{if(Lt(e)!=="object")return!1;const t=Sr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Fa=pe("Date"),$a=pe("File"),_a=pe("Blob"),Na=pe("FileList"),Ma=e=>jt(e)&&ue(e.pipe),Ra=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ue(e.append)&&((t=Lt(e))==="formdata"||t==="object"&&ue(e.toString)&&e.toString()==="[object FormData]"))},Da=pe("URLSearchParams"),[Ia,La,ka,ja]=["ReadableStream","Request","Response","Headers"].map(pe),Ba=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Xe(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function Un(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wn=e=>!ht(e)&&e!==Ie;function xr(){const{caseless:e}=Wn(this)&&this||{},t={},r=(n,o)=>{const i=e&&Un(t,o)||o;Bt(t[i])&&Bt(n)?t[i]=xr(t[i],n):Bt(n)?t[i]=xr({},n):Xe(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&vt(arguments[n],r);return t}const Ua=(e,t,r,{allOwnKeys:n}={})=>(vt(t,(o,i)=>{r&&ue(o)?e[i]=kn(o,r):e[i]=o},{allOwnKeys:n}),e),Wa=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ha=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},qa=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&Sr(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Va=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},za=e=>{if(!e)return null;if(Xe(e))return e;let t=e.length;if(!Bn(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ga=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sr(Uint8Array)),Ka=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Ja=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Ya=pe("HTMLFormElement"),Xa=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Hn=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Qa=pe("RegExp"),qn=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};vt(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Za=e=>{qn(e,(t,r)=>{if(ue(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ue(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},es=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Xe(e)?n(e):n(String(e).split(t)),r},ts=()=>{},rs=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Or="abcdefghijklmnopqrstuvwxyz",Vn="0123456789",zn={DIGIT:Vn,ALPHA:Or,ALPHA_DIGIT:Or+Or.toUpperCase()+Vn},ns=(e=16,t=zn.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function os(e){return!!(e&&ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const is=e=>{const t=new Array(10),r=(n,o)=>{if(jt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Xe(n)?[]:{};return vt(n,(a,s)=>{const l=r(a,o+1);!ht(l)&&(i[s]=l)}),t[o]=void 0,i}}return n};return r(e,0)},as=pe("AsyncFunction"),ss=e=>e&&(jt(e)||ue(e))&&ue(e.then)&&ue(e.catch),Gn=((e,t)=>e?setImmediate:t?((r,n)=>(Ie.addEventListener("message",({source:o,data:i})=>{o===Ie&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ie.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ue(Ie.postMessage)),ls=typeof queueMicrotask<"u"?queueMicrotask.bind(Ie):typeof process<"u"&&process.nextTick||Gn,b={isArray:Xe,isArrayBuffer:jn,isBuffer:Aa,isFormData:Ra,isArrayBufferView:Ta,isString:Pa,isNumber:Bn,isBoolean:Ca,isObject:jt,isPlainObject:Bt,isReadableStream:Ia,isRequest:La,isResponse:ka,isHeaders:ja,isUndefined:ht,isDate:Fa,isFile:$a,isBlob:_a,isRegExp:Qa,isFunction:ue,isStream:Ma,isURLSearchParams:Da,isTypedArray:Ga,isFileList:Na,forEach:vt,merge:xr,extend:Ua,trim:Ba,stripBOM:Wa,inherits:Ha,toFlatObject:qa,kindOf:Lt,kindOfTest:pe,endsWith:Va,toArray:za,forEachEntry:Ka,matchAll:Ja,isHTMLForm:Ya,hasOwnProperty:Hn,hasOwnProp:Hn,reduceDescriptors:qn,freezeMethods:Za,toObjectSet:es,toCamelCase:Xa,noop:ts,toFiniteNumber:rs,findKey:Un,global:Ie,isContextDefined:Wn,ALPHABET:zn,generateString:ns,isSpecCompliantForm:os,toJSONObject:is,isAsyncFn:as,isThenable:ss,setImmediate:Gn,asap:ls};function $(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}b.inherits($,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:b.toJSONObject(this.config),code:this.code,status:this.status}}});const Kn=$.prototype,Jn={};["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(e=>{Jn[e]={value:e}}),Object.defineProperties($,Jn),Object.defineProperty(Kn,"isAxiosError",{value:!0}),$.from=(e,t,r,n,o,i)=>{const a=Object.create(Kn);return b.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),$.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const us=null;function Ar(e){return b.isPlainObject(e)||b.isArray(e)}function Yn(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function Xn(e,t,r){return e?e.concat(t).map(function(o,i){return o=Yn(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function cs(e){return b.isArray(e)&&!e.some(Ar)}const fs=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function Ut(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!b.isUndefined(y[m])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function f(c){if(c===null)return"";if(b.isDate(c))return c.toISOString();if(!l&&b.isBlob(c))throw new $("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(c)||b.isTypedArray(c)?l&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function u(c,m,y){let w=c;if(c&&!y&&typeof c=="object"){if(b.endsWith(m,"{}"))m=n?m:m.slice(0,-2),c=JSON.stringify(c);else if(b.isArray(c)&&cs(c)||(b.isFileList(c)||b.endsWith(m,"[]"))&&(w=b.toArray(c)))return m=Yn(m),w.forEach(function(x,O){!(b.isUndefined(x)||x===null)&&t.append(a===!0?Xn([m],O,i):a===null?m:m+"[]",f(x))}),!1}return Ar(c)?!0:(t.append(Xn(y,m,i),f(c)),!1)}const h=[],v=Object.assign(fs,{defaultVisitor:u,convertValue:f,isVisitable:Ar});function g(c,m){if(!b.isUndefined(c)){if(h.indexOf(c)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(c),b.forEach(c,function(w,S){(!(b.isUndefined(w)||w===null)&&o.call(t,w,b.isString(S)?S.trim():S,m,v))===!0&&g(w,m?m.concat(S):[S])}),h.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Qn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Tr(e,t){this._pairs=[],e&&Ut(e,this,t)}const Zn=Tr.prototype;Zn.append=function(t,r){this._pairs.push([t,r])},Zn.toString=function(t){const r=t?function(n){return t.call(this,n,Qn)}:Qn;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function ds(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eo(e,t,r){if(!t)return e;const n=r&&r.encode||ds,o=r&&r.serialize;let i;if(o?i=o(t,r):i=b.isURLSearchParams(t)?t.toString():new Tr(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class to{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,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){b.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ro={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ps={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Tr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Pr=typeof window<"u"&&typeof document<"u",Cr=typeof navigator=="object"&&navigator||void 0,ms=Pr&&(!Cr||["ReactNative","NativeScript","NS"].indexOf(Cr.product)<0),ys=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hs=Pr&&window.location.href||"http://localhost",ie={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pr,hasStandardBrowserEnv:ms,hasStandardBrowserWebWorkerEnv:ys,navigator:Cr,origin:hs},Symbol.toStringTag,{value:"Module"})),...ps};function vs(e,t){return Ut(e,new ie.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return ie.isNode&&b.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function gs(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bs(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function no(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=r.length;return a=!a&&b.isArray(o)?o.length:a,l?(b.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!b.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&b.isArray(o[a])&&(o[a]=bs(o[a])),!s)}if(b.isFormData(e)&&b.isFunction(e.entries)){const r={};return b.forEachEntry(e,(n,o)=>{t(gs(n),o,r,0)}),r}return null}function ws(e,t,r){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const gt={transitional:ro,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=b.isObject(t);if(i&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return o?JSON.stringify(no(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return vs(t,this.formSerializer).toString();if((s=b.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ut(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),ws(t)):t}],transformResponse:[function(t){const r=this.transitional||gt.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?$.from(s,$.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{gt.headers[e]={}});const Es=b.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"]),Ss=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
31
|
+
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&Es[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},oo=Symbol("internals");function bt(e){return e&&String(e).trim().toLowerCase()}function Wt(e){return e===!1||e==null?e:b.isArray(e)?e.map(Wt):String(e)}function xs(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Os=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fr(e,t,r,n,o){if(b.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!b.isString(t)){if(b.isString(n))return t.indexOf(n)!==-1;if(b.isRegExp(n))return n.test(t)}}function As(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ts(e,t){const r=b.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}class ae{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,l,f){const u=bt(l);if(!u)throw new Error("header name must be a non-empty string");const h=b.findKey(o,u);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||l]=Wt(s))}const a=(s,l)=>b.forEach(s,(f,u)=>i(f,u,l));if(b.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(b.isString(t)&&(t=t.trim())&&!Os(t))a(Ss(t),r);else if(b.isHeaders(t))for(const[s,l]of t.entries())i(l,s,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=bt(t),t){const n=b.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return xs(o);if(b.isFunction(r))return r.call(this,o,n);if(b.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=bt(t),t){const n=b.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Fr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=bt(a),a){const s=b.findKey(n,a);s&&(!r||Fr(n,n[s],s,r))&&(delete n[s],o=!0)}}return b.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Fr(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return b.forEach(this,(o,i)=>{const a=b.findKey(n,i);if(a){r[a]=Wt(o),delete r[i];return}const s=t?As(i):String(i).trim();s!==i&&delete r[i],r[s]=Wt(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return b.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&b.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
32
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[oo]=this[oo]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=bt(a);n[s]||(Ts(o,a),n[s]=!0)}return b.isArray(t)?t.forEach(i):i(t),this}}ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(ae.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),b.freezeMethods(ae);function $r(e,t){const r=this||gt,n=t||r,o=ae.from(n.headers);let i=n.data;return b.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function io(e){return!!(e&&e.__CANCEL__)}function Qe(e,t,r){$.call(this,e??"canceled",$.ERR_CANCELED,t,r),this.name="CanceledError"}b.inherits(Qe,$,{__CANCEL__:!0});function ao(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ps(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Cs(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),u=n[i];a||(a=f),r[o]=l,n[o]=f;let h=i,v=0;for(;h!==o;)v+=r[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a<t)return;const g=u&&f-u;return g?Math.round(v*1e3/g):void 0}}function Fs(e,t){let r=0,n=1e3/t,o,i;const a=(f,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),h=u-r;h>=n?a(f,u):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},n-h)))},()=>o&&a(o)]}const Ht=(e,t,r=3)=>{let n=0;const o=Cs(50,250);return Fs(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-n,f=o(l),u=a<=s;n=a;const h={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:f||void 0,estimated:f&&s&&u?(s-a)/f:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},r)},so=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},lo=e=>(...t)=>b.asap(()=>e(...t)),$s=ie.hasStandardBrowserEnv?function(){const t=ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent),r=document.createElement("a");let n;function o(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(a){const s=b.isString(a)?o(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),_s=ie.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];b.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),b.isString(n)&&a.push("path="+n),b.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ns(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ms(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uo(e,t){return e&&!Ns(t)?Ms(e,t):t}const co=e=>e instanceof ae?{...e}:e;function Le(e,t){t=t||{};const r={};function n(f,u,h){return b.isPlainObject(f)&&b.isPlainObject(u)?b.merge.call({caseless:h},f,u):b.isPlainObject(u)?b.merge({},u):b.isArray(u)?u.slice():u}function o(f,u,h){if(b.isUndefined(u)){if(!b.isUndefined(f))return n(void 0,f,h)}else return n(f,u,h)}function i(f,u){if(!b.isUndefined(u))return n(void 0,u)}function a(f,u){if(b.isUndefined(u)){if(!b.isUndefined(f))return n(void 0,f)}else return n(void 0,u)}function s(f,u,h){if(h in t)return n(f,u);if(h in e)return n(void 0,f)}const l={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:(f,u)=>o(co(f),co(u),!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(u){const h=l[u]||o,v=h(e[u],t[u],u);b.isUndefined(v)&&h!==s||(r[u]=v)}),r}const fo=e=>{const t=Le({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=ae.from(a),t.url=eo(uo(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(b.isFormData(r)){if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[f,...u]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...u].join("; "))}}if(ie.hasStandardBrowserEnv&&(n&&b.isFunction(n)&&(n=n(t)),n||n!==!1&&$s(t.url))){const f=o&&i&&_s.read(i);f&&a.set(o,f)}return t},Rs=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=fo(e);let i=o.data;const a=ae.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:f}=o,u,h,v,g,c;function m(){g&&g(),c&&c(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function w(){if(!y)return;const x=ae.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:x,config:e,request:y};ao(function(_){r(_),m()},function(_){n(_),m()},T),y=null}"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(w)},y.onabort=function(){y&&(n(new $("Request aborted",$.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||ro;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new $(O,T.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&b.forEach(a.toJSON(),function(O,T){y.setRequestHeader(T,O)}),b.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),f&&([v,c]=Ht(f,!0),y.addEventListener("progress",v)),l&&y.upload&&([h,g]=Ht(l),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=x=>{y&&(n(!x||x.type?new Qe(null,e,y):x),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const S=Ps(o.url);if(S&&ie.protocols.indexOf(S)===-1){n(new $("Unsupported protocol "+S+":",$.ERR_BAD_REQUEST,e));return}y.send(i||null)})},Ds=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(f){if(!o){o=!0,s();const u=f instanceof Error?f:this.reason;n.abort(u instanceof $?u:new Qe(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>b.asap(s),l}},Is=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Ls=async function*(e,t){for await(const r of ks(e))yield*Is(r,t)},ks=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},po=(e,t,r,n)=>{const o=Ls(e,t);let i=0,a,s=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await o.next();if(f){s(),l.close();return}let h=u.byteLength;if(r){let v=i+=h;r(v)}l.enqueue(new Uint8Array(u))}catch(f){throw s(f),f}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},qt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mo=qt&&typeof ReadableStream=="function",js=qt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yo=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Bs=mo&&yo(()=>{let e=!1;const t=new Request(ie.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ho=64*1024,_r=mo&&yo(()=>b.isReadableStream(new Response("").body)),Vt={stream:_r&&(e=>e.body)};qt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vt[t]&&(Vt[t]=b.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new $(`Response type '${t}' is not supported`,$.ERR_NOT_SUPPORT,n)})})})(new Response);const Us=async e=>{if(e==null)return 0;if(b.isBlob(e))return e.size;if(b.isSpecCompliantForm(e))return(await new Request(ie.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(b.isArrayBufferView(e)||b.isArrayBuffer(e))return e.byteLength;if(b.isURLSearchParams(e)&&(e=e+""),b.isString(e))return(await js(e)).byteLength},Ws=async(e,t)=>{const r=b.toFiniteNumber(e.getContentLength());return r??Us(t)},Nr={http:us,xhr:Rs,fetch:qt&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:f,headers:u,withCredentials:h="same-origin",fetchOptions:v}=fo(e);f=f?(f+"").toLowerCase():"text";let g=Ds([o,i&&i.toAbortSignal()],a),c;const m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(l&&Bs&&r!=="get"&&r!=="head"&&(y=await Ws(u,n))!==0){let T=new Request(t,{method:"POST",body:n,duplex:"half"}),P;if(b.isFormData(n)&&(P=T.headers.get("content-type"))&&u.setContentType(P),T.body){const[_,j]=so(y,Ht(lo(l)));n=po(T.body,ho,_,j)}}b.isString(h)||(h=h?"include":"omit");const w="credentials"in Request.prototype;c=new Request(t,{...v,signal:g,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:w?h:void 0});let S=await fetch(c);const x=_r&&(f==="stream"||f==="response");if(_r&&(s||x&&m)){const T={};["status","statusText","headers"].forEach(H=>{T[H]=S[H]});const P=b.toFiniteNumber(S.headers.get("content-length")),[_,j]=s&&so(P,Ht(lo(s),!0))||[];S=new Response(po(S.body,ho,_,()=>{j&&j(),m&&m()}),T)}f=f||"text";let O=await Vt[b.findKey(Vt,f)||"text"](S,e);return!x&&m&&m(),await new Promise((T,P)=>{ao(T,P,{data:O,headers:ae.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:c})})}catch(w){throw m&&m(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,e,c),{cause:w.cause||w}):$.from(w,w&&w.code,e,c)}})};b.forEach(Nr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vo=e=>`- ${e}`,Hs=e=>b.isFunction(e)||e===null||e===!1,go={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Hs(r)&&(n=Nr[(a=String(r)).toLowerCase()],n===void 0))throw new $(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
33
|
+
`+i.map(vo).join(`
|
|
34
|
+
`):" "+vo(i[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Nr};function Mr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qe(null,e)}function bo(e){return Mr(e),e.headers=ae.from(e.headers),e.data=$r.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),go.getAdapter(e.adapter||gt.adapter)(e).then(function(n){return Mr(e),n.data=$r.call(e,e.transformResponse,n),n.headers=ae.from(n.headers),n},function(n){return io(n)||(Mr(e),n&&n.response&&(n.response.data=$r.call(e,e.transformResponse,n.response),n.response.headers=ae.from(n.response.headers))),Promise.reject(n)})}const wo="1.7.7",Rr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Eo={};Rr.transitional=function(t,r,n){function o(i,a){return"[Axios v"+wo+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new $(o(a," has been removed"+(r?" in "+r:"")),$.ERR_DEPRECATED);return r&&!Eo[a]&&(Eo[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};function qs(e,t,r){if(typeof e!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new $("option "+i+" must be "+l,$.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}}const Dr={assertOptions:qs,validators:Rr},Ae=Dr.validators;class ke{constructor(t){this.defaults=t,this.interceptors={request:new to,response:new to}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
35
|
+
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Le(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Dr.assertOptions(n,{silentJSONParsing:Ae.transitional(Ae.boolean),forcedJSONParsing:Ae.transitional(Ae.boolean),clarifyTimeoutError:Ae.transitional(Ae.boolean)},!1),o!=null&&(b.isFunction(o)?r.paramsSerializer={serialize:o}:Dr.assertOptions(o,{encode:Ae.function,serialize:Ae.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&b.merge(i.common,i[r.method]);i&&b.forEach(["delete","get","head","post","put","patch","common"],c=>{delete i[c]}),r.headers=ae.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let u,h=0,v;if(!l){const c=[bo.bind(this),void 0];for(c.unshift.apply(c,s),c.push.apply(c,f),v=c.length,u=Promise.resolve(r);h<v;)u=u.then(c[h++],c[h++]);return u}v=s.length;let g=r;for(h=0;h<v;){const c=s[h++],m=s[h++];try{g=c(g)}catch(y){m.call(this,y);break}}try{u=bo.call(this,g)}catch(c){return Promise.reject(c)}for(h=0,v=f.length;h<v;)u=u.then(f[h++],f[h++]);return u}getUri(t){t=Le(this.defaults,t);const r=uo(t.baseURL,t.url);return eo(r,t.params,t.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(t){ke.prototype[t]=function(r,n){return this.request(Le(n||{},{method:t,url:r,data:(n||{}).data}))}}),b.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(Le(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}ke.prototype[t]=r(),ke.prototype[t+"Form"]=r(!0)});class Ir{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new Qe(i,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ir(function(o){t=o}),cancel:t}}}function Vs(e){return function(r){return e.apply(null,r)}}function zs(e){return b.isObject(e)&&e.isAxiosError===!0}const Lr={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(Lr).forEach(([e,t])=>{Lr[t]=e});function So(e){const t=new ke(e),r=kn(ke.prototype.request,t);return b.extend(r,ke.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return So(Le(e,o))},r}const z=So(gt);z.Axios=ke,z.CanceledError=Qe,z.CancelToken=Ir,z.isCancel=io,z.VERSION=wo,z.toFormData=Ut,z.AxiosError=$,z.Cancel=z.CanceledError,z.all=function(t){return Promise.all(t)},z.spread=Vs,z.isAxiosError=zs,z.mergeConfig=Le,z.AxiosHeaders=ae,z.formToJSON=e=>no(b.isHTMLForm(e)?new FormData(e):e),z.getAdapter=go.getAdapter,z.HttpStatusCode=Lr,z.default=z;function Gs(e,t){return Array.isArray(e)?e.filter(r=>!t.includes(r)):Object.keys(e).reduce((r,n)=>(t.includes(n)||(r[n]=e[n]),r),{})}function xo(e,t){return Array.isArray(e)?e.filter(r=>t.includes(r)):t.reduce((r,n)=>(n in e&&(r[n]=e[n]),r),{})}function Ks(e){return Array.isArray(e)?e.filter(t=>t!==null):Object.keys(e).reduce((t,r)=>(r in e&&e[r]!==null&&(t[r]=e[r]),t),{})}function Js(e=3,t=100){const r=()=>De.router.page||null;return new Promise((n,o)=>{let i=r();if(i){n(i);return}let a=e*1e3/t;const s=setInterval(()=>{i=r(),i&&(clearInterval(s),n(i)),--a<=0&&(clearInterval(s),o(new Error("Inertia page not available")))},t)})}var Ys=function(t){return Xs(t)&&!Qs(t)};function Xs(e){return!!e&&typeof e=="object"}function Qs(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||tl(e)}var Zs=typeof Symbol=="function"&&Symbol.for,el=Zs?Symbol.for("react.element"):60103;function tl(e){return e.$$typeof===el}function rl(e){return Array.isArray(e)?[]:{}}function wt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ze(rl(e),e,t):e}function nl(e,t,r){return e.concat(t).map(function(n){return wt(n,r)})}function ol(e,t){if(!t.customMerge)return Ze;var r=t.customMerge(e);return typeof r=="function"?r:Ze}function il(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Oo(e){return Object.keys(e).concat(il(e))}function Ao(e,t){try{return t in e}catch{return!1}}function al(e,t){return Ao(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function sl(e,t,r){var n={};return r.isMergeableObject(e)&&Oo(e).forEach(function(o){n[o]=wt(e[o],r)}),Oo(t).forEach(function(o){al(e,o)||(Ao(e,o)&&r.isMergeableObject(t[o])?n[o]=ol(o,r)(e[o],t[o],r):n[o]=wt(t[o],r))}),n}function Ze(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||nl,r.isMergeableObject=r.isMergeableObject||Ys,r.cloneUnlessOtherwiseSpecified=wt;var n=Array.isArray(t),o=Array.isArray(e),i=n===o;return i?n?r.arrayMerge(e,t,r):sl(e,t,r):wt(t,r)}Ze.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return Ze(n,o,r)},{})};var ll=Ze,ul=ll;const cl=wa(ul);var fl=Error,dl=EvalError,pl=RangeError,ml=ReferenceError,To=SyntaxError,Et=TypeError,yl=URIError,hl=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0},Po=typeof Symbol<"u"&&Symbol,vl=hl,gl=function(){return typeof Po!="function"||typeof Symbol!="function"||typeof Po("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:vl()},kr={__proto__:null,foo:{}},bl=Object,wl=function(){return{__proto__:kr}.foo===kr.foo&&!(kr instanceof bl)},El="Function.prototype.bind called on incompatible ",Sl=Object.prototype.toString,xl=Math.max,Ol="[object Function]",Co=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},Al=function(t,r){for(var n=[],o=r,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},Tl=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},Pl=function(t){var r=this;if(typeof r!="function"||Sl.apply(r)!==Ol)throw new TypeError(El+r);for(var n=Al(arguments,1),o,i=function(){if(this instanceof o){var u=r.apply(this,Co(n,arguments));return Object(u)===u?u:this}return r.apply(t,Co(n,arguments))},a=xl(0,r.length-n.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(o=Function("binder","return function ("+Tl(s,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var f=function(){};f.prototype=r.prototype,o.prototype=new f,f.prototype=null}return o},Cl=Pl,jr=Function.prototype.bind||Cl,Fl=Function.prototype.call,$l=Object.prototype.hasOwnProperty,_l=jr,Nl=_l.call(Fl,$l),N,Ml=fl,Rl=dl,Dl=pl,Il=ml,et=To,tt=Et,Ll=yl,Fo=Function,Br=function(e){try{return Fo('"use strict"; return ('+e+").constructor;")()}catch{}},je=Object.getOwnPropertyDescriptor;if(je)try{je({},"")}catch{je=null}var Ur=function(){throw new tt},kl=je?function(){try{return arguments.callee,Ur}catch{try{return je(arguments,"callee").get}catch{return Ur}}}():Ur,rt=gl(),jl=wl(),Q=Object.getPrototypeOf||(jl?function(e){return e.__proto__}:null),nt={},Bl=typeof Uint8Array>"u"||!Q?N:Q(Uint8Array),Be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?N:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?N:ArrayBuffer,"%ArrayIteratorPrototype%":rt&&Q?Q([][Symbol.iterator]()):N,"%AsyncFromSyncIteratorPrototype%":N,"%AsyncFunction%":nt,"%AsyncGenerator%":nt,"%AsyncGeneratorFunction%":nt,"%AsyncIteratorPrototype%":nt,"%Atomics%":typeof Atomics>"u"?N:Atomics,"%BigInt%":typeof BigInt>"u"?N:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?N:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?N:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?N:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ml,"%eval%":eval,"%EvalError%":Rl,"%Float32Array%":typeof Float32Array>"u"?N:Float32Array,"%Float64Array%":typeof Float64Array>"u"?N:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?N:FinalizationRegistry,"%Function%":Fo,"%GeneratorFunction%":nt,"%Int8Array%":typeof Int8Array>"u"?N:Int8Array,"%Int16Array%":typeof Int16Array>"u"?N:Int16Array,"%Int32Array%":typeof Int32Array>"u"?N:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rt&&Q?Q(Q([][Symbol.iterator]())):N,"%JSON%":typeof JSON=="object"?JSON:N,"%Map%":typeof Map>"u"?N:Map,"%MapIteratorPrototype%":typeof Map>"u"||!rt||!Q?N:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?N:Promise,"%Proxy%":typeof Proxy>"u"?N:Proxy,"%RangeError%":Dl,"%ReferenceError%":Il,"%Reflect%":typeof Reflect>"u"?N:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?N:Set,"%SetIteratorPrototype%":typeof Set>"u"||!rt||!Q?N:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?N:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rt&&Q?Q(""[Symbol.iterator]()):N,"%Symbol%":rt?Symbol:N,"%SyntaxError%":et,"%ThrowTypeError%":kl,"%TypedArray%":Bl,"%TypeError%":tt,"%Uint8Array%":typeof Uint8Array>"u"?N:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?N:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?N:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?N:Uint32Array,"%URIError%":Ll,"%WeakMap%":typeof WeakMap>"u"?N:WeakMap,"%WeakRef%":typeof WeakRef>"u"?N:WeakRef,"%WeakSet%":typeof WeakSet>"u"?N:WeakSet};if(Q)try{null.error}catch(e){var Ul=Q(Q(e));Be["%Error.prototype%"]=Ul}var Wl=function e(t){var r;if(t==="%AsyncFunction%")r=Br("async function () {}");else if(t==="%GeneratorFunction%")r=Br("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Br("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Q&&(r=Q(o.prototype))}return Be[t]=r,r},$o={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},St=jr,zt=Nl,Hl=St.call(Function.call,Array.prototype.concat),ql=St.call(Function.apply,Array.prototype.splice),_o=St.call(Function.call,String.prototype.replace),Gt=St.call(Function.call,String.prototype.slice),Vl=St.call(Function.call,RegExp.prototype.exec),zl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gl=/\\(\\)?/g,Kl=function(t){var r=Gt(t,0,1),n=Gt(t,-1);if(r==="%"&&n!=="%")throw new et("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new et("invalid intrinsic syntax, expected opening `%`");var o=[];return _o(t,zl,function(i,a,s,l){o[o.length]=s?_o(l,Gl,"$1"):a||i}),o},Jl=function(t,r){var n=t,o;if(zt($o,n)&&(o=$o[n],n="%"+o[0]+"%"),zt(Be,n)){var i=Be[n];if(i===nt&&(i=Wl(n)),typeof i>"u"&&!r)throw new tt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new et("intrinsic "+t+" does not exist!")},ot=function(t,r){if(typeof t!="string"||t.length===0)throw new tt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tt('"allowMissing" argument must be a boolean');if(Vl(/^%?[^%]*%?$/,t)===null)throw new et("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Kl(t),o=n.length>0?n[0]:"",i=Jl("%"+o+"%",r),a=i.name,s=i.value,l=!1,f=i.alias;f&&(o=f[0],ql(n,Hl([0,1],f)));for(var u=1,h=!0;u<n.length;u+=1){var v=n[u],g=Gt(v,0,1),c=Gt(v,-1);if((g==='"'||g==="'"||g==="`"||c==='"'||c==="'"||c==="`")&&g!==c)throw new et("property names with quotes must have matching quotes");if((v==="constructor"||!h)&&(l=!0),o+="."+v,a="%"+o+"%",zt(Be,a))s=Be[a];else if(s!=null){if(!(v in s)){if(!r)throw new tt("base intrinsic for "+t+" exists, but the property is not available.");return}if(je&&u+1>=n.length){var m=je(s,v);h=!!m,h&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[v]}else h=zt(s,v),s=s[v];h&&!l&&(Be[a]=s)}}return s},No={exports:{}},Wr,Mo;function Hr(){if(Mo)return Wr;Mo=1;var e=ot,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Wr=t,Wr}var Yl=ot,Kt=Yl("%Object.getOwnPropertyDescriptor%",!0);if(Kt)try{Kt([],"length")}catch{Kt=null}var Ro=Kt,Do=Hr(),Xl=To,it=Et,Io=Ro,Ql=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new it("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new it("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new it("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new it("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new it("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new it("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!Io&&Io(t,r);if(Do)Do(t,r,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(s||!o&&!i&&!a)t[r]=n;else throw new Xl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},qr=Hr(),Lo=function(){return!!qr};Lo.hasArrayLengthDefineBug=function(){if(!qr)return null;try{return qr([],"length",{value:1}).length!==1}catch{return!0}};var Zl=Lo,eu=ot,ko=Ql,tu=Zl(),jo=Ro,Bo=Et,ru=eu("%Math.floor%"),nu=function(t,r){if(typeof t!="function")throw new Bo("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||ru(r)!==r)throw new Bo("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&jo){var a=jo(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(tu?ko(t,"length",r,!0,!0):ko(t,"length",r)),t};(function(e){var t=jr,r=ot,n=nu,o=Et,i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,i),l=Hr(),f=r("%Math.max%");e.exports=function(v){if(typeof v!="function")throw new o("a function is required");var g=s(t,a,arguments);return n(g,1+f(0,v.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(No);var ou=No.exports,Uo=ot,Wo=ou,iu=Wo(Uo("String.prototype.indexOf")),au=function(t,r){var n=Uo(t,!!r);return typeof n=="function"&&iu(t,".prototype.")>-1?Wo(n):n};const su=Ea(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Vr=typeof Map=="function"&&Map.prototype,zr=Object.getOwnPropertyDescriptor&&Vr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Jt=Vr&&zr&&typeof zr.get=="function"?zr.get:null,Ho=Vr&&Map.prototype.forEach,Gr=typeof Set=="function"&&Set.prototype,Kr=Object.getOwnPropertyDescriptor&&Gr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Yt=Gr&&Kr&&typeof Kr.get=="function"?Kr.get:null,qo=Gr&&Set.prototype.forEach,lu=typeof WeakMap=="function"&&WeakMap.prototype,xt=lu?WeakMap.prototype.has:null,uu=typeof WeakSet=="function"&&WeakSet.prototype,Ot=uu?WeakSet.prototype.has:null,cu=typeof WeakRef=="function"&&WeakRef.prototype,Vo=cu?WeakRef.prototype.deref:null,fu=Boolean.prototype.valueOf,du=Object.prototype.toString,pu=Function.prototype.toString,mu=String.prototype.match,Jr=String.prototype.slice,Te=String.prototype.replace,yu=String.prototype.toUpperCase,zo=String.prototype.toLowerCase,Go=RegExp.prototype.test,Ko=Array.prototype.concat,he=Array.prototype.join,hu=Array.prototype.slice,Jo=Math.floor,Yr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xr=Object.getOwnPropertySymbols,Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,at=typeof Symbol=="function"&&typeof Symbol.iterator=="object",te=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===at||!0)?Symbol.toStringTag:null,Yo=Object.prototype.propertyIsEnumerable,Xo=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Qo(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Go.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Jo(-e):Jo(e);if(n!==e){var o=String(n),i=Jr.call(t,o.length+1);return Te.call(o,r,"$&_")+"."+Te.call(Te.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Te.call(t,r,"$&_")}var Zr=su,Zo=Zr.custom,ei=ni(Zo)?Zo:null,vu=function e(t,r,n,o){var i=r||{};if(Pe(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Pe(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Pe(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Pe(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Pe(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ii(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?Qo(t,l):l}if(typeof t=="bigint"){var f=String(t)+"n";return s?Qo(t,f):f}var u=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return en(t)?"[Array]":"[Object]";var h=Du(i,n);if(typeof o>"u")o=[];else if(oi(o,t)>=0)return"[Circular]";function v(C,L,K){if(L&&(o=hu.call(o),o.push(L)),K){var ce={depth:i.depth};return Pe(i,"quoteStyle")&&(ce.quoteStyle=i.quoteStyle),e(C,ce,n+1,o)}return e(C,i,n+1,o)}if(typeof t=="function"&&!ri(t)){var g=Tu(t),c=Xt(t,v);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(c.length>0?" { "+he.call(c,", ")+" }":"")}if(ni(t)){var m=at?Te.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Qr.call(t);return typeof t=="object"&&!at?At(m):m}if(Nu(t)){for(var y="<"+zo.call(String(t.nodeName)),w=t.attributes||[],S=0;S<w.length;S++)y+=" "+w[S].name+"="+ti(gu(w[S].value),"double",i);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+zo.call(String(t.nodeName))+">",y}if(en(t)){if(t.length===0)return"[]";var x=Xt(t,v);return h&&!Ru(x)?"["+rn(x,h)+"]":"[ "+he.call(x,", ")+" ]"}if(wu(t)){var O=Xt(t,v);return!("cause"in Error.prototype)&&"cause"in t&&!Yo.call(t,"cause")?"{ ["+String(t)+"] "+he.call(Ko.call("[cause]: "+v(t.cause),O),", ")+" }":O.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+he.call(O,", ")+" }"}if(typeof t=="object"&&a){if(ei&&typeof t[ei]=="function"&&Zr)return Zr(t,{depth:u-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Pu(t)){var T=[];return Ho&&Ho.call(t,function(C,L){T.push(v(L,t,!0)+" => "+v(C,t))}),ai("Map",Jt.call(t),T,h)}if($u(t)){var P=[];return qo&&qo.call(t,function(C){P.push(v(C,t))}),ai("Set",Yt.call(t),P,h)}if(Cu(t))return tn("WeakMap");if(_u(t))return tn("WeakSet");if(Fu(t))return tn("WeakRef");if(Su(t))return At(v(Number(t)));if(Ou(t))return At(v(Yr.call(t)));if(xu(t))return At(fu.call(t));if(Eu(t))return At(v(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof wr<"u"&&t===wr)return"{ [object globalThis] }";if(!bu(t)&&!ri(t)){var _=Xt(t,v),j=Xo?Xo(t)===Object.prototype:t instanceof Object||t.constructor===Object,H=t instanceof Object?"":"null prototype",I=!j&&te&&Object(t)===t&&te in t?Jr.call(Ce(t),8,-1):H?"Object":"",X=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Z=X+(I||H?"["+he.call(Ko.call([],I||[],H||[]),": ")+"] ":"");return _.length===0?Z+"{}":h?Z+"{"+rn(_,h)+"}":Z+"{ "+he.call(_,", ")+" }"}return String(t)};function ti(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function gu(e){return Te.call(String(e),/"/g,""")}function en(e){return Ce(e)==="[object Array]"&&(!te||!(typeof e=="object"&&te in e))}function bu(e){return Ce(e)==="[object Date]"&&(!te||!(typeof e=="object"&&te in e))}function ri(e){return Ce(e)==="[object RegExp]"&&(!te||!(typeof e=="object"&&te in e))}function wu(e){return Ce(e)==="[object Error]"&&(!te||!(typeof e=="object"&&te in e))}function Eu(e){return Ce(e)==="[object String]"&&(!te||!(typeof e=="object"&&te in e))}function Su(e){return Ce(e)==="[object Number]"&&(!te||!(typeof e=="object"&&te in e))}function xu(e){return Ce(e)==="[object Boolean]"&&(!te||!(typeof e=="object"&&te in e))}function ni(e){if(at)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Qr)return!1;try{return Qr.call(e),!0}catch{}return!1}function Ou(e){if(!e||typeof e!="object"||!Yr)return!1;try{return Yr.call(e),!0}catch{}return!1}var Au=Object.prototype.hasOwnProperty||function(e){return e in this};function Pe(e,t){return Au.call(e,t)}function Ce(e){return du.call(e)}function Tu(e){if(e.name)return e.name;var t=mu.call(pu.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function oi(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Pu(e){if(!Jt||!e||typeof e!="object")return!1;try{Jt.call(e);try{Yt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Cu(e){if(!xt||!e||typeof e!="object")return!1;try{xt.call(e,xt);try{Ot.call(e,Ot)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Fu(e){if(!Vo||!e||typeof e!="object")return!1;try{return Vo.call(e),!0}catch{}return!1}function $u(e){if(!Yt||!e||typeof e!="object")return!1;try{Yt.call(e);try{Jt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function _u(e){if(!Ot||!e||typeof e!="object")return!1;try{Ot.call(e,Ot);try{xt.call(e,xt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Nu(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ii(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ii(Jr.call(e,0,t.maxStringLength),t)+n}var o=Te.call(Te.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Mu);return ti(o,"single",t)}function Mu(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+yu.call(t.toString(16))}function At(e){return"Object("+e+")"}function tn(e){return e+" { ? }"}function ai(e,t,r,n){var o=n?rn(r,n):he.call(r,", ");return e+" ("+t+") {"+o+"}"}function Ru(e){for(var t=0;t<e.length;t++)if(oi(e[t],`
|
|
36
|
+
`)>=0)return!1;return!0}function Du(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=he.call(Array(e.indent+1)," ");else return null;return{base:r,prev:he.call(Array(t+1),r)}}function rn(e,t){if(e.length===0)return"";var r=`
|
|
37
|
+
`+t.prev+t.base;return r+he.call(e,","+r)+`
|
|
38
|
+
`+t.prev}function Xt(e,t){var r=en(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Pe(e,o)?t(e[o],e):""}var i=typeof Xr=="function"?Xr(e):[],a;if(at){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in e)Pe(e,l)&&(r&&String(Number(l))===l&&l<e.length||at&&a["$"+l]instanceof Symbol||(Go.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Xr=="function")for(var f=0;f<i.length;f++)Yo.call(e,i[f])&&n.push("["+t(i[f])+"]: "+t(e[i[f]],e));return n}var si=ot,st=au,Iu=vu,Lu=Et,Qt=si("%WeakMap%",!0),Zt=si("%Map%",!0),ku=st("WeakMap.prototype.get",!0),ju=st("WeakMap.prototype.set",!0),Bu=st("WeakMap.prototype.has",!0),Uu=st("Map.prototype.get",!0),Wu=st("Map.prototype.set",!0),Hu=st("Map.prototype.has",!0),nn=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},qu=function(e,t){var r=nn(e,t);return r&&r.value},Vu=function(e,t,r){var n=nn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},zu=function(e,t){return!!nn(e,t)},Gu=function(){var t,r,n,o={assert:function(i){if(!o.has(i))throw new Lu("Side channel does not contain "+Iu(i))},get:function(i){if(Qt&&i&&(typeof i=="object"||typeof i=="function")){if(t)return ku(t,i)}else if(Zt){if(r)return Uu(r,i)}else if(n)return qu(n,i)},has:function(i){if(Qt&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Bu(t,i)}else if(Zt){if(r)return Hu(r,i)}else if(n)return zu(n,i);return!1},set:function(i,a){Qt&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Qt),ju(t,i,a)):Zt?(r||(r=new Zt),Wu(r,i,a)):(n||(n={key:{},next:null}),Vu(n,i,a))}};return o},Ku=String.prototype.replace,Ju=/%20/g,on={RFC1738:"RFC1738",RFC3986:"RFC3986"},an={default:on.RFC3986,formatters:{RFC1738:function(e){return Ku.call(e,Ju,"+")},RFC3986:function(e){return String(e)}},RFC1738:on.RFC1738,RFC3986:on.RFC3986},Yu=an,sn=Object.prototype.hasOwnProperty,Ue=Array.isArray,ve=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Xu=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Ue(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},li=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},Qu=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Ue(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!sn.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return Ue(t)&&!Ue(r)&&(o=li(t,n)),Ue(t)&&Ue(r)?(r.forEach(function(i,a){if(sn.call(t,a)){var s=t[a];s&&typeof s=="object"&&i&&typeof i=="object"?t[a]=e(s,i,n):t.push(i)}else t[a]=i}),t):Object.keys(r).reduce(function(i,a){var s=r[a];return sn.call(i,a)?i[a]=e(i[a],s,n):i[a]=s,i},o)},Zu=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},ec=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},ln=1024,tc=function(t,r,n,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=ln){for(var f=a.length>=ln?a.slice(l,l+ln):a,u=[],h=0;h<f.length;++h){var v=f.charCodeAt(h);if(v===45||v===46||v===95||v===126||v>=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||i===Yu.RFC1738&&(v===40||v===41)){u[u.length]=f.charAt(h);continue}if(v<128){u[u.length]=ve[v];continue}if(v<2048){u[u.length]=ve[192|v>>6]+ve[128|v&63];continue}if(v<55296||v>=57344){u[u.length]=ve[224|v>>12]+ve[128|v>>6&63]+ve[128|v&63];continue}h+=1,v=65536+((v&1023)<<10|f.charCodeAt(h)&1023),u[u.length]=ve[240|v>>18]+ve[128|v>>12&63]+ve[128|v>>6&63]+ve[128|v&63]}s+=u.join("")}return s},rc=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var f=s[l],u=a[f];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:a,prop:f}),n.push(u))}return Xu(r),t},nc=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},oc=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},ic=function(t,r){return[].concat(t,r)},ac=function(t,r){if(Ue(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(r(t[o]));return n}return r(t)},ui={arrayToObject:li,assign:Zu,combine:ic,compact:rc,decode:ec,encode:tc,isBuffer:oc,isRegExp:nc,maybeMap:ac,merge:Qu},ci=Gu,er=ui,Tt=an,sc=Object.prototype.hasOwnProperty,fi={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},ge=Array.isArray,lc=Array.prototype.push,di=function(e,t){lc.apply(e,ge(t)?t:[t])},uc=Date.prototype.toISOString,pi=Tt.default,Y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:er.encode,encodeValuesOnly:!1,format:pi,formatter:Tt.formatters[pi],indices:!1,serializeDate:function(t){return uc.call(t)},skipNulls:!1,strictNullHandling:!1},cc=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},un={},fc=function e(t,r,n,o,i,a,s,l,f,u,h,v,g,c,m,y,w,S){for(var x=t,O=S,T=0,P=!1;(O=O.get(un))!==void 0&&!P;){var _=O.get(t);if(T+=1,typeof _<"u"){if(_===T)throw new RangeError("Cyclic object value");P=!0}typeof O.get(un)>"u"&&(T=0)}if(typeof u=="function"?x=u(r,x):x instanceof Date?x=g(x):n==="comma"&&ge(x)&&(x=er.maybeMap(x,function(U){return U instanceof Date?g(U):U})),x===null){if(a)return f&&!y?f(r,Y.encoder,w,"key",c):r;x=""}if(cc(x)||er.isBuffer(x)){if(f){var j=y?r:f(r,Y.encoder,w,"key",c);return[m(j)+"="+m(f(x,Y.encoder,w,"value",c))]}return[m(r)+"="+m(String(x))]}var H=[];if(typeof x>"u")return H;var I;if(n==="comma"&&ge(x))y&&f&&(x=er.maybeMap(x,f)),I=[{value:x.length>0?x.join(",")||null:void 0}];else if(ge(u))I=u;else{var X=Object.keys(x);I=h?X.sort(h):X}var Z=l?r.replace(/\./g,"%2E"):r,C=o&&ge(x)&&x.length===1?Z+"[]":Z;if(i&&ge(x)&&x.length===0)return C+"[]";for(var L=0;L<I.length;++L){var K=I[L],ce=typeof K=="object"&&typeof K.value<"u"?K.value:x[K];if(!(s&&ce===null)){var ye=v&&l?K.replace(/\./g,"%2E"):K,we=ge(x)?typeof n=="function"?n(C,ye):C:C+(v?"."+ye:"["+ye+"]");S.set(t,T);var re=ci();re.set(un,S),di(H,e(ce,we,n,o,i,a,s,l,n==="comma"&&y&&ge(x)?null:f,u,h,v,g,c,m,y,w,re))}}return H},dc=function(t){if(!t)return Y;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Y.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Tt.default;if(typeof t.format<"u"){if(!sc.call(Tt.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var o=Tt.formatters[n],i=Y.filter;(typeof t.filter=="function"||ge(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in fi?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Y.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Y.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Y.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Y.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Y.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Y.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Y.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Y.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Y.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Y.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Y.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Y.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Y.strictNullHandling}},pc=function(e,t){var r=e,n=dc(t),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):ge(n.filter)&&(i=n.filter,o=i);var a=[];if(typeof r!="object"||r===null)return"";var s=fi[n.arrayFormat],l=s==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=ci(),u=0;u<o.length;++u){var h=o[u];n.skipNulls&&r[h]===null||di(a,fc(r[h],h,s,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,f))}var v=a.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),v.length>0?g+v:""},lt=ui,cn=Object.prototype.hasOwnProperty,mc=Array.isArray,V={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:lt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},yc=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},mi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},hc="utf8=%26%2310003%3B",vc="utf8=%E2%9C%93",gc=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,a=o.split(r.delimiter,i),s=-1,l,f=r.charset;if(r.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===vc?f="utf-8":a[l]===hc&&(f="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var u=a[l],h=u.indexOf("]="),v=h===-1?u.indexOf("="):h+1,g,c;v===-1?(g=r.decoder(u,V.decoder,f,"key"),c=r.strictNullHandling?null:""):(g=r.decoder(u.slice(0,v),V.decoder,f,"key"),c=lt.maybeMap(mi(u.slice(v+1),r),function(y){return r.decoder(y,V.decoder,f,"value")})),c&&r.interpretNumericEntities&&f==="iso-8859-1"&&(c=yc(c)),u.indexOf("[]=")>-1&&(c=mc(c)?[c]:c);var m=cn.call(n,g);m&&r.duplicates==="combine"?n[g]=lt.combine(n[g],c):(!m||r.duplicates==="last")&&(n[g]=c)}return n},bc=function(e,t,r,n){for(var o=n?t:mi(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if(s==="[]"&&r.parseArrays)a=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,f=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,u=parseInt(f,10);!r.parseArrays&&f===""?a={0:o}:!isNaN(u)&&s!==f&&String(u)===f&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[],a[u]=o):f!=="__proto__"&&(a[f]=o)}o=a}return o},wc=function(t,r,n,o){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(i),f=l?i.slice(0,l.index):i,u=[];if(f){if(!n.plainObjects&&cn.call(Object.prototype,f)&&!n.allowPrototypes)return;u.push(f)}for(var h=0;n.depth>0&&(l=s.exec(i))!==null&&h<n.depth;){if(h+=1,!n.plainObjects&&cn.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+i.slice(l.index)+"]")}return bc(u,r,n,o)}},Ec=function(t){if(!t)return V;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?V.charset:t.charset,n=typeof t.duplicates>"u"?V.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:V.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:V.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:V.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:V.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:V.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:V.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:V.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:V.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:V.decoder,delimiter:typeof t.delimiter=="string"||lt.isRegExp(t.delimiter)?t.delimiter:V.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:V.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:V.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:V.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:V.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:V.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:V.strictNullHandling}},Sc=function(e,t){var r=Ec(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?gc(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],l=wc(s,n[s],r,typeof e=="string");o=lt.merge(o,l,r)}return r.allowSparse===!0?o:lt.compact(o)},xc=pc,Oc=Sc,Ac=an,yi={formats:Ac,parse:Oc,stringify:xc},Tc={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
39
|
+
* @license MIT */(function(e,t){(function(r,n){e.exports=n()})(wr,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(c){var m,y;for(m in c)y=c[m],y!==void 0&&c.hasOwnProperty(m)&&(n[m]=y);return this},r.status=null,r.set=function(c){var m=r.isStarted();c=o(c,n.minimum,1),r.status=c===1?null:c;var y=r.render(!m),w=y.querySelector(n.barSelector),S=n.speed,x=n.easing;return y.offsetWidth,s(function(O){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),l(w,a(c,S,x)),c===1?(l(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){l(y,{transition:"all "+S+"ms linear",opacity:0}),setTimeout(function(){r.remove(),O()},S)},S)):setTimeout(O,S)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var c=function(){setTimeout(function(){r.status&&(r.trickle(),c())},n.trickleSpeed)};return n.trickle&&c(),this},r.done=function(c){return!c&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(c){var m=r.status;return m?(typeof c!="number"&&(c=(1-m)*o(Math.random()*m,.1,.95)),m=o(m+c,0,.994),r.set(m)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var c=0,m=0;r.promise=function(y){return!y||y.state()==="resolved"?this:(m===0&&r.start(),c++,m++,y.always(function(){m--,m===0?(c=0,r.done()):r.set((c-m)/c)}),this)}}(),r.render=function(c){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=n.template;var y=m.querySelector(n.barSelector),w=c?"-100":i(r.status||0),S=document.querySelector(n.parent),x;return l(y,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),n.showSpinner||(x=m.querySelector(n.spinnerSelector),x&&g(x)),S!=document.body&&u(S,"nprogress-custom-parent"),S.appendChild(m),m},r.remove=function(){h(document.documentElement,"nprogress-busy"),h(document.querySelector(n.parent),"nprogress-custom-parent");var c=document.getElementById("nprogress");c&&g(c)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var c=document.body.style,m="WebkitTransform"in c?"Webkit":"MozTransform"in c?"Moz":"msTransform"in c?"ms":"OTransform"in c?"O":"";return m+"Perspective"in c?"translate3d":m+"Transform"in c?"translate":"margin"};function o(c,m,y){return c<m?m:c>y?y:c}function i(c){return(-1+c)*100}function a(c,m,y){var w;return n.positionUsing==="translate3d"?w={transform:"translate3d("+i(c)+"%,0,0)"}:n.positionUsing==="translate"?w={transform:"translate("+i(c)+"%,0)"}:w={"margin-left":i(c)+"%"},w.transition="all "+m+"ms "+y,w}var s=function(){var c=[];function m(){var y=c.shift();y&&y(m)}return function(y){c.push(y),c.length==1&&m()}}(),l=function(){var c=["Webkit","O","Moz","ms"],m={};function y(O){return O.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(T,P){return P.toUpperCase()})}function w(O){var T=document.body.style;if(O in T)return O;for(var P=c.length,_=O.charAt(0).toUpperCase()+O.slice(1),j;P--;)if(j=c[P]+_,j in T)return j;return O}function S(O){return O=y(O),m[O]||(m[O]=w(O))}function x(O,T,P){T=S(T),O.style[T]=P}return function(O,T){var P=arguments,_,j;if(P.length==2)for(_ in T)j=T[_],j!==void 0&&T.hasOwnProperty(_)&&x(O,_,j);else x(O,P[1],P[2])}}();function f(c,m){var y=typeof c=="string"?c:v(c);return y.indexOf(" "+m+" ")>=0}function u(c,m){var y=v(c),w=y+m;f(y,m)||(c.className=w.substring(1))}function h(c,m){var y=v(c),w;f(c,m)&&(w=y.replace(" "+m+" "," "),c.className=w.substring(1,w.length-1))}function v(c){return(" "+(c.className||"")+" ").replace(/\s+/gi," ")}function g(c){c&&c.parentNode&&c.parentNode.removeChild(c)}return r})})(Tc);function Pc(e,t,r,n="brackets"){let o=/^https?:\/\//.test(t.toString()),i=o||t.toString().startsWith("/"),a=!i&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),s=t.toString().includes("?")||e==="get"&&Object.keys(r).length,l=t.toString().includes("#"),f=new URL(t.toString(),"http://localhost");return e==="get"&&Object.keys(r).length&&(f.search=yi.stringify(cl(yi.parse(f.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:n}),r={}),[[o?`${f.protocol}//${f.host}`:"",i?f.pathname:"",a?f.pathname.substring(1):"",s?f.search:"",l?f.hash:""].join(""),r]}const tr=p.createContext(null);tr.displayName="ModalStackContext";const Cc=({children:e})=>{const[t,r]=p.useState([]),[n,o]=p.useState({});class i{constructor(c,m,y,w,S){Oe(this,"updateStack",c=>{r(m=>{const y=c([...m]);return y.forEach((w,S)=>{y[S].index=S,y[S].onTopOfStack=S===y.length-1}),y})});Oe(this,"close",()=>{this.updateStack(c=>c.map(m=>{var y;return m.id===this.id&&(Object.keys(m.listeners).forEach(w=>{m.off(w)}),m.open=!1,(y=m.onCloseCallback)==null||y.call(m)),m}))});Oe(this,"afterLeave",()=>{this.updateStack(c=>c.filter(m=>{var y;return m.id!==this.id?!0:((y=m.afterLeaveCallback)==null||y.call(m),!1)}))});Oe(this,"on",(c,m)=>{this.listeners[c]=this.listeners[c]??[],this.listeners[c].push(m)});Oe(this,"off",(c,m)=>{var y;m?this.listeners[c]=((y=this.listeners[c])==null?void 0:y.filter(w=>w!==m))??[]:delete this.listeners[c]});Oe(this,"emit",(c,...m)=>{var y;return console.log("Emitting",c,"with args",m),(y=this.listeners[c])==null||y.forEach(w=>w(...m)),"OK"});Oe(this,"registerEventListenersFromProps",c=>{const m=[];return Object.keys(c).filter(y=>y.startsWith("on")).forEach(y=>{const w=y.replace(/^on/,"").replace(/^./,S=>S.toLowerCase()).replace(/([A-Z])/g,"-$1").toLowerCase();this.on(w,c[y]),m.push(()=>this.off(w,c[y]))}),()=>m.forEach(y=>y())});Oe(this,"reload",(c={})=>{let m=Object.keys(this.response.props);c.only&&(m=xo(m,c.only)),c.except&&(m=Gs(m,c.except)),z.get(this.response.url,{headers:{Accept:"text/html, application/xhtml+xml","X-Inertia":!0,"X-Inertia-Partial-Component":this.response.component,"X-Inertia-Version":this.response.version,"X-Inertia-Partial-Data":m.join(",")}}).then(y=>{Object.assign(this.componentProps,y.data.props),r(w=>[...w])})});this.id=i.generateId(),this.open=!0,this.listeners={},this.component=c,this.componentProps=m.props,this.response=m,this.modalProps=y,this.onCloseCallback=w,this.afterLeaveCallback=S,this.index=-1,this.getParentModal=()=>null,this.getChildModal=()=>null,this.onTopOfStack=!0}static generateId(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?`inertiaui_modal_${crypto.randomUUID()}`:`inertiaui_modal_${Date.now().toString(36)}_${Math.random().toString(36).substr(2,9)}`}}const a=(g,c,m,y,w)=>{const S=new i(g,c,m,y,w);return r(x=>{const O=[...x,S];return O.forEach((T,P)=>{T.index=P,T.onTopOfStack=P===O.length-1}),O.forEach((T,P)=>{T.getParentModal=()=>P>0?O[P-1]:null,T.getChildModal=()=>P<O.length-1?O[P+1]:null}),O}),S};function s(g,c,m,y){if(!n[g])throw new Error(`The local modal "${g}" has not been registered.`);const w=a(null,{},c,m,y);return w.name=g,n[g].callback(w),w}const l=(g,c={})=>f(g,c.method??"get",c.data??{},c.headers??{},c.config??{},c.onClose,c.onAfterLeave,c.queryStringArrayFormat??"brackets"),f=(g,c,m={},y={},w={},S=null,x=null,O="brackets")=>new Promise((T,P)=>{if(g.startsWith("#")){const H=s(g.substring(1),w,S,x);T(H);return}const[_,j]=Pc(c,g||"",m,O);Js().then(H=>{z({url:_,method:c,data:j,headers:{...y,Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0,"X-Inertia-Version":H.version,"X-InertiaUI-Modal":!0}}).then(I=>{De.router.resolveComponent(I.data.component).then(X=>{T(a(X,I.data,w,S,x))})}).catch(I=>{P(I)})})}),v={stack:t,localModals:n,push:a,reset:()=>r([]),visit:f,visitModal:l,registerLocalModal:(g,c)=>{o(m=>({...m,[g]:{name:g,callback:c}}))},removeLocalModal:g=>{o(c=>{const m={...c};return delete m[g],m})}};return R.jsx(tr.Provider,{value:v,children:e})},rr=()=>{const e=p.useContext(tr);if(e===null)throw new Error("useModalStack must be used within a ModalStackProvider");return e},hi=["closeButton","closeExplicitly","maxWidth","paddingClasses","panelClasses","position","slideover"],Fc=({children:e})=>{const t=p.useContext(tr).stack;return R.jsxs(R.Fragment,{children:[e,t.length>0&&R.jsx(gi,{index:0})]})},fn=p.createContext(null);fn.displayName="ModalIndexContext";const vi=()=>{const e=p.useContext(fn);if(e===void 0)throw new Error("useModalIndex must be used within a ModalIndexProvider");return e},gi=({index:e})=>{const{stack:t}=rr(),r=t[e];return!r||!r.component?null:R.jsx(fn.Provider,{value:e,children:R.jsx(r.component,{...r.componentProps,onModalEvent:(...n)=>r.emit(...n)})})},dn=p.forwardRef(({name:e,children:t,...r},n)=>{const o=vi(),{stack:i,registerLocalModal:a,removeLocalModal:s}=rr(),[l,f]=p.useState(null),u=p.useMemo(()=>e?l:i[o]),h=p.useMemo(()=>(u==null?void 0:u.modalProps.slideover)??r.slideover??Dn("type")==="slideover",[r.slideover]),v=p.useMemo(()=>({slideover:h,closeButton:r.closeButton??Ye(h,"closeButton"),closeExplicitly:r.closeExplicitly??Ye(h,"closeExplicitly"),maxWidth:r.maxWidth??Ye(h,"maxWidth"),paddingClasses:r.paddingClasses??Ye(h,"paddingClasses"),panelClasses:r.panelClasses??Ye(h,"panelClasses"),position:r.position??Ye(h,"position"),...u==null?void 0:u.modalProps}),[r,u==null?void 0:u.modalProps]);return p.useEffect(()=>{if(e){let g=null;return a(e,c=>{g=c.registerEventListenersFromProps(r),f(c)}),()=>{g==null||g(),g=null,s(e)}}return u.registerEventListenersFromProps(r)},[e]),p.useImperativeHandle(n,()=>({afterLeave:()=>u.afterLeave(),close:()=>u.close(),emit:(...g)=>u.emit(...g),getChildModal:()=>u.getChildModal(),getParentModal:()=>u.getParentModal(),modalContext:u,modalProps:v,reload:()=>u.reload()}),[u]),u&&R.jsxs(R.Fragment,{children:[typeof t=="function"?t({afterLeave:u.afterLeave,close:u.close,emit:u.emit,getChildModal:u.getChildModal,getParentModal:u.getParentModal,modalContext:u,modalProps:v,reload:u.reload}):t,i[u.index+1]&&R.jsx(gi,{index:u.index+1})]})});dn.displayName="HeadlessModal";function bi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=bi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function nr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=bi(e))&&(n&&(n+=" "),n+=t);return n}var $c=Object.defineProperty,_c=(e,t,r)=>t in e?$c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pn=(e,t,r)=>(_c(e,typeof t!="symbol"?t+"":t,r),r);let Nc=class{constructor(){pn(this,"current",this.detect()),pn(this,"handoffState","pending"),pn(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},We=new Nc;function or(e){return We.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ir(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Fe(){let e=[],t={addEventListener(r,n,o,i){return r.addEventListener(n,o,i),t.add(()=>r.removeEventListener(n,o,i))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return ir(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let i=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:i})})},group(r){let n=Fe();return r(n),this.add(()=>n.dispose())},add(r){return e.includes(r)||e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function mn(){let[e]=p.useState(Fe);return p.useEffect(()=>()=>e.dispose(),[e]),e}let ne=(e,t)=>{We.isServer?p.useEffect(e,t):p.useLayoutEffect(e,t)};function He(e){let t=p.useRef(e);return ne(()=>{t.current=e},[e]),t}let q=function(e){let t=He(e);return p.useCallback((...r)=>t.current(...r),[t])},Mc=p.createContext(void 0);function Rc(){return p.useContext(Mc)}function yn(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function $e(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,$e),n}var ar=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ar||{}),_e=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_e||{});function fe({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:a,mergeRefs:s}){s=s??Dc;let l=wi(t,e);if(i)return sr(l,r,n,a,s);let f=o??0;if(f&2){let{static:u=!1,...h}=l;if(u)return sr(h,r,n,a,s)}if(f&1){let{unmount:u=!0,...h}=l;return $e(u?0:1,{0(){return null},1(){return sr({...h,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return sr(l,r,n,a,s)}function sr(e,t={},r,n,o){let{as:i=r,children:a,refName:s="ref",...l}=hn(e,["unmount","static"]),f=e.ref!==void 0?{[s]:e.ref}:{},u=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let h={};if(t){let v=!1,g=[];for(let[c,m]of Object.entries(t))typeof m=="boolean"&&(v=!0),m===!0&&g.push(c.replace(/([A-Z])/g,y=>`-${y.toLowerCase()}`));if(v){h["data-headlessui-state"]=g.join(" ");for(let c of g)h[`data-${c}`]=""}}if(i===p.Fragment&&(Object.keys(qe(l)).length>0||Object.keys(qe(h)).length>0))if(!p.isValidElement(u)||Array.isArray(u)&&u.length>1){if(Object.keys(qe(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(qe(l)).concat(Object.keys(qe(h))).map(v=>` - ${v}`).join(`
|
|
31
40
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
|
|
32
41
|
`)].join(`
|
|
33
|
-
`))}else{let v=u.props,g=v==null?void 0:v.className,c=typeof g=="function"?(...w)=>Or(g(...w),l.className):Or(g,l.className),p=c?{className:c}:{},y=kn(u.props,ke(Ar(l,["ref"])));for(let w in h)w in y&&delete h[w];return m.cloneElement(u,Object.assign({},y,h,f,{ref:o(u.ref,f.ref)},p))}return m.createElement(i,Object.assign({},Ar(l,["ref"]),i!==m.Fragment&&f,i!==m.Fragment&&h),u)}function Pa(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function kn(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])for(let n in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(r[n]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let n in r)Object.assign(t,{[n](o,...i){let a=r[n];for(let s of a){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return t}function ie(e){var t;return Object.assign(m.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ke(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Ar(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Ca="span";var Wt=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Wt||{});function Fa(e,t){var r;let{features:n=1,...o}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:(r=o["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return fe({ourProps:i,theirProps:o,slot:{},defaultTag:Ca,name:"Hidden"})}let Tr=ie(Fa),jn=Symbol();function $a(e,t=!0){return Object.assign(e,{[jn]:t})}function he(...e){let t=m.useRef(e);m.useEffect(()=>{t.current=e},[e]);let r=H(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[jn]))?void 0:r}let Pr=m.createContext(null);Pr.displayName="DescriptionContext";function Bn(){let e=m.useContext(Pr);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Bn),t}return e}function _a(){let[e,t]=m.useState([]);return[e.length>0?e.join(" "):void 0,m.useMemo(()=>function(r){let n=H(i=>(t(a=>[...a,i]),()=>t(a=>{let s=a.slice(),l=s.indexOf(i);return l!==-1&&s.splice(l,1),s}))),o=m.useMemo(()=>({register:n,slot:r.slot,name:r.name,props:r.props,value:r.value}),[n,r.slot,r.name,r.props,r.value]);return m.createElement(Pr.Provider,{value:o},r.children)},[t])]}let Na="p";function Da(e,t){let r=m.useId(),n=Ta(),{id:o=`headlessui-description-${r}`,...i}=e,a=Bn(),s=he(t);ne(()=>a.register(o),[o,a.register]);let l=n||!1,f=m.useMemo(()=>({...a.slot,disabled:l}),[a.slot,l]),u={ref:s,...a.props,id:o};return fe({ourProps:u,theirProps:i,slot:f,defaultTag:Na,name:a.name||"Description"})}let Ma=ie(Da),Ra=Object.assign(Ma,{});var Un=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Un||{});let Ia=m.createContext(()=>{});function La({value:e,children:t}){return m.createElement(Ia.Provider,{value:e},t)}let ka=class extends Map{constructor(t){super(),this.factory=t}get(t){let r=super.get(t);return r===void 0&&(r=this.factory(t),this.set(t,r)),r}};function Wn(e,t){let r=e(),n=new Set;return{getSnapshot(){return r},subscribe(o){return n.add(o),()=>n.delete(o)},dispatch(o,...i){let a=t[o].call(r,...i);a&&(r=a,n.forEach(s=>s()))}}}function Hn(e){return m.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let ja=new ka(()=>Wn(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let r=this.slice();return r.splice(t,1),r}}));function Xe(e,t){let r=ja.get(t),n=m.useId(),o=Hn(r);if(ne(()=>{if(e)return r.dispatch("ADD",n),()=>r.dispatch("REMOVE",n)},[r,e]),!e)return!1;let i=o.indexOf(n),a=o.length;return i===-1&&(i=a,a+=1),i===a-1}let Cr=new Map,ht=new Map;function qn(e){var t;let r=(t=ht.get(e))!=null?t:0;return ht.set(e,r+1),r!==0?()=>Vn(e):(Cr.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Vn(e))}function Vn(e){var t;let r=(t=ht.get(e))!=null?t:1;if(r===1?ht.delete(e):ht.set(e,r-1),r!==1)return;let n=Cr.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,Cr.delete(e))}function Ba(e,{allowed:t,disallowed:r}={}){let n=Xe(e,"inert-others");ne(()=>{var o,i;if(!n)return;let a=Ae();for(let l of(o=r==null?void 0:r())!=null?o:[])l&&a.add(qn(l));let s=(i=t==null?void 0:t())!=null?i:[];for(let l of s){if(!l)continue;let f=kt(l);if(!f)continue;let u=l.parentElement;for(;u&&u!==f.body;){for(let h of u.children)s.some(v=>h.contains(v))||a.add(qn(h));u=u.parentElement}}return a.dispose},[n,t,r])}function Ua(e,t,r){let n=Le(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&r()});m.useEffect(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let i=Ae();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>n.current(o));a.observe(o),i.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>n.current(o));a.observe(o),i.add(()=>a.disconnect())}return()=>i.dispose()},[t,n,e])}let Ht=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Wa=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Se=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Se||{}),Fr=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Fr||{}),Ha=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ha||{});function qa(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ht)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}function Va(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Wa)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var zn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(zn||{});function za(e,t=0){var r;return e===((r=kt(e))==null?void 0:r.body)?!1:Te(t,{0(){return e.matches(Ht)},1(){let n=e;for(;n!==null;){if(n.matches(Ht))return!0;n=n.parentElement}return!1}})}var Ga=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ga||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function xe(e){e==null||e.focus({preventScroll:!0})}let Ka=["textarea","input"].join(",");function Ja(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Ka))!=null?r:!1}function Ya(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);if(o===null||i===null)return 0;let a=o.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vt(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?Ya(e):e:t&64?Va(e):qa(e);o.length>0&&a.length>1&&(a=a.filter(g=>!o.some(c=>c!=null&&"current"in c?(c==null?void 0:c.current)===g:c===g))),n=n??i.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(n))-1;if(t&4)return Math.max(0,a.indexOf(n))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=t&32?{preventScroll:!0}:{},u=0,h=a.length,v;do{if(u>=h||u+h<=0)return 0;let g=l+u;if(t&16)g=(g+h)%h;else{if(g<0)return 3;if(g>=h)return 1}v=a[g],v==null||v.focus(f),u+=s}while(v!==i.activeElement);return t&6&&Ja(v)&&v.select(),2}function Gn(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Xa(){return/Android/gi.test(window.navigator.userAgent)}function Qa(){return Gn()||Xa()}function gt(e,t,r,n){let o=Le(r);m.useEffect(()=>{if(!e)return;function i(a){o.current(a)}return document.addEventListener(t,i,n),()=>document.removeEventListener(t,i,n)},[e,t,n])}function Kn(e,t,r,n){let o=Le(r);m.useEffect(()=>{if(!e)return;function i(a){o.current(a)}return window.addEventListener(t,i,n),()=>window.removeEventListener(t,i,n)},[e,t,n])}const Jn=30;function Za(e,t,r){let n=Xe(e,"outside-click"),o=Le(r),i=m.useCallback(function(l,f){if(l.defaultPrevented)return;let u=f(l);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let h=function v(g){return typeof g=="function"?v(g()):Array.isArray(g)||g instanceof Set?g:[g]}(t);for(let v of h)if(v!==null&&(v.contains(u)||l.composed&&l.composedPath().includes(v)))return;return!za(u,zn.Loose)&&u.tabIndex!==-1&&l.preventDefault(),o.current(l,u)},[o,t]),a=m.useRef(null);gt(n,"pointerdown",l=>{var f,u;a.current=((u=(f=l.composedPath)==null?void 0:f.call(l))==null?void 0:u[0])||l.target},!0),gt(n,"mousedown",l=>{var f,u;a.current=((u=(f=l.composedPath)==null?void 0:f.call(l))==null?void 0:u[0])||l.target},!0),gt(n,"click",l=>{Qa()||a.current&&(i(l,()=>a.current),a.current=null)},!0);let s=m.useRef({x:0,y:0});gt(n,"touchstart",l=>{s.current.x=l.touches[0].clientX,s.current.y=l.touches[0].clientY},!0),gt(n,"touchend",l=>{let f={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(f.x-s.current.x)>=Jn||Math.abs(f.y-s.current.y)>=Jn))return i(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Kn(n,"blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function bt(...e){return m.useMemo(()=>kt(...e),[...e])}function Yn(e,t,r,n){let o=Le(r);m.useEffect(()=>{e=e??window;function i(a){o.current(a)}return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)},[e,t,n])}function es(){let e;return{before({doc:t}){var r;let n=t.documentElement,o=(r=t.defaultView)!=null?r:window;e=Math.max(0,o.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,o=Math.max(0,n.clientWidth-n.offsetWidth),i=Math.max(0,e-o);r.style(n,"paddingRight",`${i}px`)}}}function ts(){return Gn()?{before({doc:e,d:t,meta:r}){function n(o){return r.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=Ae();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,a=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let l=s.target.closest("a");if(!l)return;let{hash:f}=new URL(l.href),u=e.querySelector(f);u&&!n(u)&&(a=u)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(n(s.target)){let l=s.target;for(;l.parentElement&&n(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(n(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;i!==l&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function rs(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function ns(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let je=Wn(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:Ae(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:ns(r)},o=[ts(),es(),rs()];o.forEach(({before:i})=>i==null?void 0:i(n)),o.forEach(({after:i})=>i==null?void 0:i(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});je.subscribe(()=>{let e=je.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let n=t.get(r.doc)==="hidden",o=r.count!==0;(o&&!n||!o&&n)&&je.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&je.dispatch("TEARDOWN",r)}});function os(e,t,r=()=>({containers:[]})){let n=Hn(je),o=t?n.get(t):void 0,i=o?o.count>0:!1;return ne(()=>{if(!(!t||!e))return je.dispatch("PUSH",t,r),()=>je.dispatch("POP",t,r)},[e,t]),i}function is(e,t,r=()=>[document.body]){let n=Xe(e,"scroll-lock");os(n,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],r]}})}function as(e=0){let[t,r]=m.useState(e),n=m.useCallback(l=>r(l),[t]),o=m.useCallback(l=>r(f=>f|l),[t]),i=m.useCallback(l=>(t&l)===l,[t]),a=m.useCallback(l=>r(f=>f&~l),[r]),s=m.useCallback(l=>r(f=>f^l),[r]);return{flags:t,setFlag:n,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}var Xn,Qn;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Xn=process==null?void 0:process.env)==null?void 0:Xn.NODE_ENV)==="test"&&typeof((Qn=Element==null?void 0:Element.prototype)==null?void 0:Qn.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
34
|
-
`)),[]});var ss=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ss||{});function ls(e){let t={};for(let r in e)e[r]===!0&&(t[`data-${r}`]="");return t}function us(e,t,r,n){let[o,i]=m.useState(r),{hasFlag:a,addFlag:s,removeFlag:l}=as(e&&o?3:0),f=m.useRef(!1),u=m.useRef(!1),h=xr();return ne(()=>{var v;if(e){if(r&&i(!0),!t){r&&s(3);return}return(v=n==null?void 0:n.start)==null||v.call(n,r),cs(t,{inFlight:f,prepare(){u.current?u.current=!1:u.current=f.current,f.current=!0,!u.current&&(r?(s(3),l(4)):(s(4),l(2)))},run(){u.current?r?(l(3),s(4)):(l(4),s(3)):r?l(1):s(1)},done(){var g;u.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(f.current=!1,l(7),r||i(!1),(g=n==null?void 0:n.end)==null||g.call(n,r))}})}},[e,r,t,h]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function cs(e,{prepare:t,run:r,done:n,inFlight:o}){let i=Ae();return ds(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{r(),i.requestAnimationFrame(()=>{i.add(fs(e,n))})}),i.dispose}function fs(e,t){var r,n;let o=Ae();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let a=(n=(r=e.getAnimations)==null?void 0:r.call(e).filter(s=>s instanceof CSSTransition))!=null?n:[];return a.length===0?(t(),o.dispose):(Promise.allSettled(a.map(s=>s.finished)).then(()=>{i||t()}),o.dispose)}function ds(e,{inFlight:t,prepare:r}){if(t!=null&&t.current){r();return}let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}function $r(e,t){let r=m.useRef([]),n=H(e);m.useEffect(()=>{let o=[...r.current];for(let[i,a]of t.entries())if(r.current[i]!==a){let s=n(t,o);return r.current=t,s}},[n,...t])}let qt=m.createContext(null);qt.displayName="OpenClosedContext";var pe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(pe||{});function Vt(){return m.useContext(qt)}function ps({value:e,children:t}){return m.createElement(qt.Provider,{value:e},t)}function ms({children:e}){return m.createElement(qt.Provider,{value:null},e)}function ys(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ce=[];ys(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Ce[0]===t.target)return;let r=t.target;r=r.closest(Ht),Ce.unshift(r??t.target),Ce=Ce.filter(n=>n!=null&&n.isConnected),Ce.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Zn(e){let t=H(e),r=m.useRef(!1);m.useEffect(()=>(r.current=!1,()=>{r.current=!0,jt(()=>{r.current&&t()})}),[t])}function hs(){let e=typeof document>"u";return"useSyncExternalStore"in pt?(t=>t.useSyncExternalStore)(pt)(()=>()=>{},()=>!1,()=>!e):!1}function wt(){let e=hs(),[t,r]=pt.useState(Ie.isHandoffComplete);return t&&Ie.isHandoffComplete===!1&&r(!1),pt.useEffect(()=>{t!==!0&&r(!0)},[t]),pt.useEffect(()=>Ie.handoff(),[]),e?!1:t}let eo=m.createContext(!1);function vs(){return m.useContext(eo)}function to(e){return m.createElement(eo.Provider,{value:e.force},e.children)}function gs(e){let t=vs(),r=m.useContext(no),n=bt(e),[o,i]=m.useState(()=>{var a;if(!t&&r!==null)return(a=r.current)!=null?a:null;if(Ie.isServer)return null;let s=n==null?void 0:n.getElementById("headlessui-portal-root");if(s)return s;if(n===null)return null;let l=n.createElement("div");return l.setAttribute("id","headlessui-portal-root"),n.body.appendChild(l)});return m.useEffect(()=>{o!==null&&(n!=null&&n.body.contains(o)||n==null||n.body.appendChild(o))},[o,n]),m.useEffect(()=>{t||r!==null&&i(r.current)},[r,i,t]),o}let ro=m.Fragment,bs=ie(function(e,t){let r=e,n=m.useRef(null),o=he($a(u=>{n.current=u}),t),i=bt(n),a=gs(n),[s]=m.useState(()=>{var u;return Ie.isServer?null:(u=i==null?void 0:i.createElement("div"))!=null?u:null}),l=m.useContext(_r),f=wt();return ne(()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))},[a,s]),ne(()=>{if(s&&l)return l.register(s)},[l,s]),Zn(()=>{var u;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&((u=a.parentElement)==null||u.removeChild(a)))}),f?!a||!s?null:pa.createPortal(fe({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:ro,name:"Portal"}),s):null});function ws(e,t){let r=he(t),{enabled:n=!0,...o}=e;return n?m.createElement(bs,{...o,ref:r}):fe({ourProps:{ref:r},theirProps:o,slot:{},defaultTag:ro,name:"Portal"})}let Es=m.Fragment,no=m.createContext(null);function Ss(e,t){let{target:r,...n}=e,o={ref:he(t)};return m.createElement(no.Provider,{value:r},fe({ourProps:o,theirProps:n,defaultTag:Es,name:"Popover.Group"}))}let _r=m.createContext(null);function xs(){let e=m.useContext(_r),t=m.useRef([]),r=H(i=>(t.current.push(i),e&&e.register(i),()=>n(i))),n=H(i=>{let a=t.current.indexOf(i);a!==-1&&t.current.splice(a,1),e&&e.unregister(i)}),o=m.useMemo(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,m.useMemo(()=>function({children:i}){return m.createElement(_r.Provider,{value:o},i)},[o])]}let Os=ie(ws),oo=ie(Ss),As=Object.assign(Os,{Group:oo});function Ts(e,t=typeof document<"u"?document.defaultView:null,r){let n=Xe(e,"escape");Yn(t,"keydown",o=>{n&&(o.defaultPrevented||o.key===Un.Escape&&r(o))})}function Ps(){var e;let[t]=m.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=m.useState((e=t==null?void 0:t.matches)!=null?e:!1);return ne(()=>{if(!t)return;function o(i){n(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),r}function Cs({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=bt(r),o=H(()=>{var i,a;let s=[];for(let l of e)l!==null&&(l instanceof HTMLElement?s.push(l):"current"in l&&l.current instanceof HTMLElement&&s.push(l.current));if(t!=null&&t.current)for(let l of t.current)s.push(l);for(let l of(i=n==null?void 0:n.querySelectorAll("html > *, body > *"))!=null?i:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(r&&(l.contains(r)||l.contains((a=r==null?void 0:r.getRootNode())==null?void 0:a.host))||s.some(f=>l.contains(f))||s.push(l));return s});return{resolveContainers:o,contains:H(i=>o().some(a=>a.contains(i)))}}let io=m.createContext(null);function ao({children:e,node:t}){let[r,n]=m.useState(null),o=so(t??r);return m.createElement(io.Provider,{value:o},e,o===null&&m.createElement(Tr,{features:Wt.Hidden,ref:i=>{var a,s;if(i){for(let l of(s=(a=kt(i))==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(i)){n(l);break}}}}))}function so(e=null){var t;return(t=m.useContext(io))!=null?t:e}function Nr(){let e=m.useRef(!1);return ne(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Et=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Et||{});function Fs(){let e=m.useRef(0);return Kn(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function lo(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}let $s="div";var Be=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Be||{});function _s(e,t){let r=m.useRef(null),n=he(r,t),{initialFocus:o,initialFocusFallback:i,containers:a,features:s=15,...l}=e;wt()||(s=0);let f=bt(r);Rs(s,{ownerDocument:f});let u=Is(s,{ownerDocument:f,container:r,initialFocus:o,initialFocusFallback:i});Ls(s,{ownerDocument:f,container:r,containers:a,previousActiveElement:u});let h=Fs(),v=H(w=>{let S=r.current;S&&(x=>x())(()=>{Te(h.current,{[Et.Forwards]:()=>{vt(S,Se.First,{skipElements:[w.relatedTarget,i]})},[Et.Backwards]:()=>{vt(S,Se.Last,{skipElements:[w.relatedTarget,i]})}})})}),g=Xe(!!(s&2),"focus-trap#tab-lock"),c=xr(),p=m.useRef(!1),y={ref:n,onKeyDown(w){w.key=="Tab"&&(p.current=!0,c.requestAnimationFrame(()=>{p.current=!1}))},onBlur(w){if(!(s&4))return;let S=lo(a);r.current instanceof HTMLElement&&S.add(r.current);let x=w.relatedTarget;x instanceof HTMLElement&&x.dataset.headlessuiFocusGuard!=="true"&&(uo(S,x)||(p.current?vt(r.current,Te(h.current,{[Et.Forwards]:()=>Se.Next,[Et.Backwards]:()=>Se.Previous})|Se.WrapAround,{relativeTo:w.target}):w.target instanceof HTMLElement&&xe(w.target)))}};return m.createElement(m.Fragment,null,g&&m.createElement(Tr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:Wt.Focusable}),fe({ourProps:y,theirProps:l,defaultTag:$s,name:"FocusTrap"}),g&&m.createElement(Tr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:Wt.Focusable}))}let Ns=ie(_s),Ds=Object.assign(Ns,{features:Be});function Ms(e=!0){let t=m.useRef(Ce.slice());return $r(([r],[n])=>{n===!0&&r===!1&&jt(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=Ce.slice())},[e,Ce,t]),H(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function Rs(e,{ownerDocument:t}){let r=!!(e&8),n=Ms(r);$r(()=>{r||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&xe(n())},[r]),Zn(()=>{r&&xe(n())})}function Is(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:o}){let i=m.useRef(null),a=Xe(!!(e&1),"focus-trap#initial-focus"),s=Nr();return $r(()=>{if(e===0)return;if(!a){o!=null&&o.current&&xe(o.current);return}let l=r.current;l&&jt(()=>{if(!s.current)return;let f=t==null?void 0:t.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===f){i.current=f;return}}else if(l.contains(f)){i.current=f;return}if(n!=null&&n.current)xe(n.current);else{if(e&16){if(vt(l,Se.First|Se.AutoFocus)!==Fr.Error)return}else if(vt(l,Se.First)!==Fr.Error)return;if(o!=null&&o.current&&(xe(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t==null?void 0:t.activeElement})},[o,a,e]),i}function Ls(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:o}){let i=Nr(),a=!!(e&4);Yn(t==null?void 0:t.defaultView,"focus",s=>{if(!a||!i.current)return;let l=lo(n);r.current instanceof HTMLElement&&l.add(r.current);let f=o.current;if(!f)return;let u=s.target;u&&u instanceof HTMLElement?uo(l,u)?(o.current=u,xe(u)):(s.preventDefault(),s.stopPropagation(),xe(f)):xe(o.current)},!0)}function uo(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function co(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:po)!==m.Fragment||m.Children.count(e.children)===1}let zt=m.createContext(null);zt.displayName="TransitionContext";var ks=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ks||{});function js(){let e=m.useContext(zt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Bs(){let e=m.useContext(Gt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Gt=m.createContext(null);Gt.displayName="NestingContext";function Kt(e){return"children"in e?Kt(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function fo(e,t){let r=Le(e),n=m.useRef([]),o=Nr(),i=xr(),a=H((g,c=Pe.Hidden)=>{let p=n.current.findIndex(({el:y})=>y===g);p!==-1&&(Te(c,{[Pe.Unmount](){n.current.splice(p,1)},[Pe.Hidden](){n.current[p].state="hidden"}}),i.microTask(()=>{var y;!Kt(n)&&o.current&&((y=r.current)==null||y.call(r))}))}),s=H(g=>{let c=n.current.find(({el:p})=>p===g);return c?c.state!=="visible"&&(c.state="visible"):n.current.push({el:g,state:"visible"}),()=>a(g,Pe.Unmount)}),l=m.useRef([]),f=m.useRef(Promise.resolve()),u=m.useRef({enter:[],leave:[]}),h=H((g,c,p)=>{l.current.splice(0),t&&(t.chains.current[c]=t.chains.current[c].filter(([y])=>y!==g)),t==null||t.chains.current[c].push([g,new Promise(y=>{l.current.push(y)})]),t==null||t.chains.current[c].push([g,new Promise(y=>{Promise.all(u.current[c].map(([w,S])=>S)).then(()=>y())})]),c==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>p(c)):p(c)}),v=H((g,c,p)=>{Promise.all(u.current[c].splice(0).map(([y,w])=>w)).then(()=>{var y;(y=l.current.shift())==null||y()}).then(()=>p(c))});return m.useMemo(()=>({children:n,register:s,unregister:a,onStart:h,onStop:v,wait:f,chains:u}),[s,a,n,h,v,u,f])}let po=m.Fragment,mo=Bt.RenderStrategy;function Us(e,t){var r,n;let{transition:o=!0,beforeEnter:i,afterEnter:a,beforeLeave:s,afterLeave:l,enter:f,enterFrom:u,enterTo:h,entered:v,leave:g,leaveFrom:c,leaveTo:p,...y}=e,[w,S]=m.useState(null),x=m.useRef(null),O=co(e),T=he(...O?[x,t,S]:t===null?[]:[t]),P=(r=y.unmount)==null||r?Pe.Unmount:Pe.Hidden,{show:_,appear:j,initial:W}=js(),[I,X]=m.useState(_?"visible":"hidden"),Z=Bs(),{register:C,unregister:L}=Z;ne(()=>C(x),[C,x]),ne(()=>{if(P===Pe.Hidden&&x.current){if(_&&I!=="visible"){X("visible");return}return Te(I,{hidden:()=>L(x),visible:()=>C(x)})}},[I,x,C,L,_,P]);let K=wt();ne(()=>{if(O&&K&&I==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,I,K,O]);let ce=W&&!j,ye=j&&_&&W,we=m.useRef(!1),re=fo(()=>{we.current||(X("hidden"),L(x))},Z),U=H(Ke=>{we.current=!0;let Me=Ke?"enter":"leave";re.onStart(x,Me,Ee=>{Ee==="enter"?i==null||i():Ee==="leave"&&(s==null||s())})}),De=H(Ke=>{let Me=Ke?"enter":"leave";we.current=!1,re.onStop(x,Me,Ee=>{Ee==="enter"?a==null||a():Ee==="leave"&&(l==null||l())}),Me==="leave"&&!Kt(re)&&(X("hidden"),L(x))});m.useEffect(()=>{O&&o||(U(_),De(_))},[_,O,o]);let hr=!(!o||!O||!K||ce),[,ee]=us(hr,w,_,{start:U,end:De}),Tn=ke({ref:T,className:((n=Or(y.className,ye&&f,ye&&u,ee.enter&&f,ee.enter&&ee.closed&&u,ee.enter&&!ee.closed&&h,ee.leave&&g,ee.leave&&!ee.closed&&c,ee.leave&&ee.closed&&p,!ee.transition&&_&&v))==null?void 0:n.trim())||void 0,...ls(ee)}),Ge=0;return I==="visible"&&(Ge|=pe.Open),I==="hidden"&&(Ge|=pe.Closed),ee.enter&&(Ge|=pe.Opening),ee.leave&&(Ge|=pe.Closing),m.createElement(Gt.Provider,{value:re},m.createElement(ps,{value:Ge},fe({ourProps:Tn,theirProps:y,defaultTag:po,features:mo,visible:I==="visible",name:"Transition.Child"})))}function Ws(e,t){let{show:r,appear:n=!1,unmount:o=!0,...i}=e,a=m.useRef(null),s=co(e),l=he(...s?[a,t]:t===null?[]:[t]);wt();let f=Vt();if(r===void 0&&f!==null&&(r=(f&pe.Open)===pe.Open),r===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,h]=m.useState(r?"visible":"hidden"),v=fo(()=>{r||h("hidden")}),[g,c]=m.useState(!0),p=m.useRef([r]);ne(()=>{g!==!1&&p.current[p.current.length-1]!==r&&(p.current.push(r),c(!1))},[p,r]);let y=m.useMemo(()=>({show:r,appear:n,initial:g}),[r,n,g]);ne(()=>{r?h("visible"):!Kt(v)&&a.current!==null&&h("hidden")},[r,v]);let w={unmount:o},S=H(()=>{var O;g&&c(!1),(O=e.beforeEnter)==null||O.call(e)}),x=H(()=>{var O;g&&c(!1),(O=e.beforeLeave)==null||O.call(e)});return m.createElement(Gt.Provider,{value:v},m.createElement(zt.Provider,{value:y},fe({ourProps:{...w,as:m.Fragment,children:m.createElement(yo,{ref:l,...w,...i,beforeEnter:S,beforeLeave:x})},theirProps:{},defaultTag:m.Fragment,features:mo,visible:u==="visible",name:"Transition"})))}function Hs(e,t){let r=m.useContext(zt)!==null,n=Vt()!==null;return m.createElement(m.Fragment,null,!r&&n?m.createElement(Dr,{ref:t,...e}):m.createElement(yo,{ref:t,...e}))}let Dr=ie(Ws),yo=ie(Us),Qe=ie(Hs),ho=Object.assign(Dr,{Child:Qe,Root:Dr});var qs=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(qs||{}),Vs=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Vs||{});let zs={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Mr=m.createContext(null);Mr.displayName="DialogContext";function Jt(e){let t=m.useContext(Mr);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Jt),r}return t}function Gs(e,t){return Te(t.type,zs,e,t)}let vo=ie(function(e,t){let r=m.useId(),{id:n=`headlessui-dialog-${r}`,open:o,onClose:i,initialFocus:a,role:s="dialog",autoFocus:l=!0,__demoMode:f=!1,unmount:u=!1,...h}=e,v=m.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(v.current||(v.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let g=Vt();o===void 0&&g!==null&&(o=(g&pe.Open)===pe.Open);let c=m.useRef(null),p=he(c,t),y=bt(c),w=o?0:1,[S,x]=m.useReducer(Gs,{titleId:null,descriptionId:null,panelRef:m.createRef()}),O=H(()=>i(!1)),T=H(U=>x({type:0,id:U})),P=wt()?w===0:!1,[_,j]=xs(),W={get current(){var U;return(U=S.panelRef.current)!=null?U:c.current}},I=so(),{resolveContainers:X}=Cs({mainTreeNode:I,portals:_,defaultContainers:[W]}),Z=g!==null?(g&pe.Closing)===pe.Closing:!1;Ba(f||Z?!1:P,{allowed:H(()=>{var U,De;return[(De=(U=c.current)==null?void 0:U.closest("[data-headlessui-portal]"))!=null?De:null]}),disallowed:H(()=>{var U;return[(U=I==null?void 0:I.closest("body > *:not(#headlessui-portal-root)"))!=null?U:null]})}),Za(P,X,U=>{U.preventDefault(),O()}),Ts(P,y==null?void 0:y.defaultView,U=>{U.preventDefault(),U.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),O()}),is(f||Z?!1:P,y,X),Ua(P,c,O);let[C,L]=_a(),K=m.useMemo(()=>[{dialogState:w,close:O,setTitleId:T,unmount:u},S],[w,S,O,T,u]),ce=m.useMemo(()=>({open:w===0}),[w]),ye={ref:p,id:n,role:s,tabIndex:-1,"aria-modal":f?void 0:w===0?!0:void 0,"aria-labelledby":S.titleId,"aria-describedby":C,unmount:u},we=!Ps(),re=Be.None;return P&&!f&&(re|=Be.RestoreFocus,re|=Be.TabLock,l&&(re|=Be.AutoFocus),we&&(re|=Be.InitialFocus)),m.createElement(ms,null,m.createElement(to,{force:!0},m.createElement(As,null,m.createElement(Mr.Provider,{value:K},m.createElement(oo,{target:c},m.createElement(to,{force:!1},m.createElement(L,{slot:ce},m.createElement(j,null,m.createElement(Ds,{initialFocus:a,initialFocusFallback:c,containers:X,features:re},m.createElement(La,{value:O},fe({ourProps:ye,theirProps:h,slot:ce,defaultTag:Ks,features:Js,visible:w===0,name:"Dialog"})))))))))))}),Ks="div",Js=Bt.RenderStrategy|Bt.Static;function Ys(e,t){let{transition:r=!1,open:n,...o}=e,i=Vt(),a=e.hasOwnProperty("open")||i!==null,s=e.hasOwnProperty("onClose");if(!a&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(n!==void 0||r)&&!o.static?m.createElement(ao,null,m.createElement(ho,{show:n,transition:r,unmount:o.unmount},m.createElement(vo,{ref:t,...o}))):m.createElement(ao,null,m.createElement(vo,{ref:t,open:n,...o}))}let Xs="div";function Qs(e,t){let r=m.useId(),{id:n=`headlessui-dialog-panel-${r}`,transition:o=!1,...i}=e,[{dialogState:a,unmount:s},l]=Jt("Dialog.Panel"),f=he(t,l.panelRef),u=m.useMemo(()=>({open:a===0}),[a]),h=H(g=>{g.stopPropagation()}),v={ref:f,id:n,onClick:h};return m.createElement(o?Qe:m.Fragment,{...o?{unmount:s}:{}},fe({ourProps:v,theirProps:i,slot:u,defaultTag:Xs,name:"Dialog.Panel"}))}let Zs="div";function el(e,t){let{transition:r=!1,...n}=e,[{dialogState:o,unmount:i}]=Jt("Dialog.Backdrop"),a=m.useMemo(()=>({open:o===0}),[o]),s={ref:t,"aria-hidden":!0};return m.createElement(r?Qe:m.Fragment,{...r?{unmount:i}:{}},fe({ourProps:s,theirProps:n,slot:a,defaultTag:Zs,name:"Dialog.Backdrop"}))}let tl="h2";function rl(e,t){let r=m.useId(),{id:n=`headlessui-dialog-title-${r}`,...o}=e,[{dialogState:i,setTitleId:a}]=Jt("Dialog.Title"),s=he(t);m.useEffect(()=>(a(n),()=>a(null)),[n,a]);let l=m.useMemo(()=>({open:i===0}),[i]);return fe({ourProps:{ref:s,id:n},theirProps:o,slot:l,defaultTag:tl,name:"Dialog.Title"})}let nl=ie(Ys),Rr=ie(Qs);ie(el);let ol=ie(rl),il=Object.assign(nl,{Panel:Rr,Title:ol,Description:Ra});function go(e,t){return function(){return e.apply(t,arguments)}}const{toString:al}=Object.prototype,{getPrototypeOf:Ir}=Object,Yt=(e=>t=>{const r=al.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),me=e=>(e=e.toLowerCase(),t=>Yt(t)===e),Xt=e=>t=>typeof t===e,{isArray:Ze}=Array,St=Xt("undefined");function sl(e){return e!==null&&!St(e)&&e.constructor!==null&&!St(e.constructor)&&ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bo=me("ArrayBuffer");function ll(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bo(e.buffer),t}const ul=Xt("string"),ue=Xt("function"),wo=Xt("number"),Qt=e=>e!==null&&typeof e=="object",cl=e=>e===!0||e===!1,Zt=e=>{if(Yt(e)!=="object")return!1;const t=Ir(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fl=me("Date"),dl=me("File"),pl=me("Blob"),ml=me("FileList"),yl=e=>Qt(e)&&ue(e.pipe),hl=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ue(e.append)&&((t=Yt(e))==="formdata"||t==="object"&&ue(e.toString)&&e.toString()==="[object FormData]"))},vl=me("URLSearchParams"),[gl,bl,wl,El]=["ReadableStream","Request","Response","Headers"].map(me),Sl=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Ze(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function Eo(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,So=e=>!St(e)&&e!==Ue;function Lr(){const{caseless:e}=So(this)&&this||{},t={},r=(n,o)=>{const i=e&&Eo(t,o)||o;Zt(t[i])&&Zt(n)?t[i]=Lr(t[i],n):Zt(n)?t[i]=Lr({},n):Ze(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&xt(arguments[n],r);return t}const xl=(e,t,r,{allOwnKeys:n}={})=>(xt(t,(o,i)=>{r&&ue(o)?e[i]=go(o,r):e[i]=o},{allOwnKeys:n}),e),Ol=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Al=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Tl=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&Ir(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Pl=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Cl=e=>{if(!e)return null;if(Ze(e))return e;let t=e.length;if(!wo(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Fl=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ir(Uint8Array)),$l=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},_l=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Nl=me("HTMLFormElement"),Dl=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),xo=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ml=me("RegExp"),Oo=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};xt(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Rl=e=>{Oo(e,(t,r)=>{if(ue(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ue(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Il=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Ze(e)?n(e):n(String(e).split(t)),r},Ll=()=>{},kl=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,kr="abcdefghijklmnopqrstuvwxyz",Ao="0123456789",To={DIGIT:Ao,ALPHA:kr,ALPHA_DIGIT:kr+kr.toUpperCase()+Ao},jl=(e=16,t=To.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Bl(e){return!!(e&&ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ul=e=>{const t=new Array(10),r=(n,o)=>{if(Qt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Ze(n)?[]:{};return xt(n,(a,s)=>{const l=r(a,o+1);!St(l)&&(i[s]=l)}),t[o]=void 0,i}}return n};return r(e,0)},Wl=me("AsyncFunction"),Hl=e=>e&&(Qt(e)||ue(e))&&ue(e.then)&&ue(e.catch),Po=((e,t)=>e?setImmediate:t?((r,n)=>(Ue.addEventListener("message",({source:o,data:i})=>{o===Ue&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ue.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ue(Ue.postMessage)),ql=typeof queueMicrotask<"u"?queueMicrotask.bind(Ue):typeof process<"u"&&process.nextTick||Po,b={isArray:Ze,isArrayBuffer:bo,isBuffer:sl,isFormData:hl,isArrayBufferView:ll,isString:ul,isNumber:wo,isBoolean:cl,isObject:Qt,isPlainObject:Zt,isReadableStream:gl,isRequest:bl,isResponse:wl,isHeaders:El,isUndefined:St,isDate:fl,isFile:dl,isBlob:pl,isRegExp:Ml,isFunction:ue,isStream:yl,isURLSearchParams:vl,isTypedArray:Fl,isFileList:ml,forEach:xt,merge:Lr,extend:xl,trim:Sl,stripBOM:Ol,inherits:Al,toFlatObject:Tl,kindOf:Yt,kindOfTest:me,endsWith:Pl,toArray:Cl,forEachEntry:$l,matchAll:_l,isHTMLForm:Nl,hasOwnProperty:xo,hasOwnProp:xo,reduceDescriptors:Oo,freezeMethods:Rl,toObjectSet:Il,toCamelCase:Dl,noop:Ll,toFiniteNumber:kl,findKey:Eo,global:Ue,isContextDefined:So,ALPHABET:To,generateString:jl,isSpecCompliantForm:Bl,toJSONObject:Ul,isAsyncFn:Wl,isThenable:Hl,setImmediate:Po,asap:ql};function $(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}b.inherits($,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:b.toJSONObject(this.config),code:this.code,status:this.status}}});const Co=$.prototype,Fo={};["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(e=>{Fo[e]={value:e}}),Object.defineProperties($,Fo),Object.defineProperty(Co,"isAxiosError",{value:!0}),$.from=(e,t,r,n,o,i)=>{const a=Object.create(Co);return b.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),$.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Vl=null;function jr(e){return b.isPlainObject(e)||b.isArray(e)}function $o(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function _o(e,t,r){return e?e.concat(t).map(function(o,i){return o=$o(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function zl(e){return b.isArray(e)&&!e.some(jr)}const Gl=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function er(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!b.isUndefined(y[p])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function f(c){if(c===null)return"";if(b.isDate(c))return c.toISOString();if(!l&&b.isBlob(c))throw new $("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(c)||b.isTypedArray(c)?l&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function u(c,p,y){let w=c;if(c&&!y&&typeof c=="object"){if(b.endsWith(p,"{}"))p=n?p:p.slice(0,-2),c=JSON.stringify(c);else if(b.isArray(c)&&zl(c)||(b.isFileList(c)||b.endsWith(p,"[]"))&&(w=b.toArray(c)))return p=$o(p),w.forEach(function(x,O){!(b.isUndefined(x)||x===null)&&t.append(a===!0?_o([p],O,i):a===null?p:p+"[]",f(x))}),!1}return jr(c)?!0:(t.append(_o(y,p,i),f(c)),!1)}const h=[],v=Object.assign(Gl,{defaultVisitor:u,convertValue:f,isVisitable:jr});function g(c,p){if(!b.isUndefined(c)){if(h.indexOf(c)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(c),b.forEach(c,function(w,S){(!(b.isUndefined(w)||w===null)&&o.call(t,w,b.isString(S)?S.trim():S,p,v))===!0&&g(w,p?p.concat(S):[S])}),h.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return g(e),t}function No(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Br(e,t){this._pairs=[],e&&er(e,this,t)}const Do=Br.prototype;Do.append=function(t,r){this._pairs.push([t,r])},Do.toString=function(t){const r=t?function(n){return t.call(this,n,No)}:No;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Kl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mo(e,t,r){if(!t)return e;const n=r&&r.encode||Kl,o=r&&r.serialize;let i;if(o?i=o(t,r):i=b.isURLSearchParams(t)?t.toString():new Br(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ro{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,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){b.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Io={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Br,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ur=typeof window<"u"&&typeof document<"u",Wr=typeof navigator=="object"&&navigator||void 0,Yl=Ur&&(!Wr||["ReactNative","NativeScript","NS"].indexOf(Wr.product)<0),Xl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ql=Ur&&window.location.href||"http://localhost",ae={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ur,hasStandardBrowserEnv:Yl,hasStandardBrowserWebWorkerEnv:Xl,navigator:Wr,origin:Ql},Symbol.toStringTag,{value:"Module"})),...Jl};function Zl(e,t){return er(e,new ae.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return ae.isNode&&b.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function eu(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tu(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Lo(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=r.length;return a=!a&&b.isArray(o)?o.length:a,l?(b.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!b.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&b.isArray(o[a])&&(o[a]=tu(o[a])),!s)}if(b.isFormData(e)&&b.isFunction(e.entries)){const r={};return b.forEachEntry(e,(n,o)=>{t(eu(n),o,r,0)}),r}return null}function ru(e,t,r){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const Ot={transitional:Io,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=b.isObject(t);if(i&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return o?JSON.stringify(Lo(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Zl(t,this.formSerializer).toString();if((s=b.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return er(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),ru(t)):t}],transformResponse:[function(t){const r=this.transitional||Ot.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?$.from(s,$.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae.classes.FormData,Blob:ae.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{Ot.headers[e]={}});const nu=b.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"]),ou=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
35
|
-
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&nu[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ko=Symbol("internals");function At(e){return e&&String(e).trim().toLowerCase()}function tr(e){return e===!1||e==null?e:b.isArray(e)?e.map(tr):String(e)}function iu(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const au=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hr(e,t,r,n,o){if(b.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!b.isString(t)){if(b.isString(n))return t.indexOf(n)!==-1;if(b.isRegExp(n))return n.test(t)}}function su(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function lu(e,t){const r=b.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}class se{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,l,f){const u=At(l);if(!u)throw new Error("header name must be a non-empty string");const h=b.findKey(o,u);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||l]=tr(s))}const a=(s,l)=>b.forEach(s,(f,u)=>i(f,u,l));if(b.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(b.isString(t)&&(t=t.trim())&&!au(t))a(ou(t),r);else if(b.isHeaders(t))for(const[s,l]of t.entries())i(l,s,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=At(t),t){const n=b.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return iu(o);if(b.isFunction(r))return r.call(this,o,n);if(b.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=At(t),t){const n=b.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Hr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=At(a),a){const s=b.findKey(n,a);s&&(!r||Hr(n,n[s],s,r))&&(delete n[s],o=!0)}}return b.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Hr(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return b.forEach(this,(o,i)=>{const a=b.findKey(n,i);if(a){r[a]=tr(o),delete r[i];return}const s=t?su(i):String(i).trim();s!==i&&delete r[i],r[s]=tr(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return b.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&b.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
36
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[ko]=this[ko]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=At(a);n[s]||(lu(o,a),n[s]=!0)}return b.isArray(t)?t.forEach(i):i(t),this}}se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(se.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),b.freezeMethods(se);function qr(e,t){const r=this||Ot,n=t||r,o=se.from(n.headers);let i=n.data;return b.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function jo(e){return!!(e&&e.__CANCEL__)}function et(e,t,r){$.call(this,e??"canceled",$.ERR_CANCELED,t,r),this.name="CanceledError"}b.inherits(et,$,{__CANCEL__:!0});function Bo(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function uu(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cu(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),u=n[i];a||(a=f),r[o]=l,n[o]=f;let h=i,v=0;for(;h!==o;)v+=r[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a<t)return;const g=u&&f-u;return g?Math.round(v*1e3/g):void 0}}function fu(e,t){let r=0,n=1e3/t,o,i;const a=(f,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),h=u-r;h>=n?a(f,u):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},n-h)))},()=>o&&a(o)]}const rr=(e,t,r=3)=>{let n=0;const o=cu(50,250);return fu(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-n,f=o(l),u=a<=s;n=a;const h={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:f||void 0,estimated:f&&s&&u?(s-a)/f:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},r)},Uo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Wo=e=>(...t)=>b.asap(()=>e(...t)),du=ae.hasStandardBrowserEnv?function(){const t=ae.navigator&&/(msie|trident)/i.test(ae.navigator.userAgent),r=document.createElement("a");let n;function o(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(a){const s=b.isString(a)?o(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),pu=ae.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];b.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),b.isString(n)&&a.push("path="+n),b.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function mu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yu(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ho(e,t){return e&&!mu(t)?yu(e,t):t}const qo=e=>e instanceof se?{...e}:e;function We(e,t){t=t||{};const r={};function n(f,u,h){return b.isPlainObject(f)&&b.isPlainObject(u)?b.merge.call({caseless:h},f,u):b.isPlainObject(u)?b.merge({},u):b.isArray(u)?u.slice():u}function o(f,u,h){if(b.isUndefined(u)){if(!b.isUndefined(f))return n(void 0,f,h)}else return n(f,u,h)}function i(f,u){if(!b.isUndefined(u))return n(void 0,u)}function a(f,u){if(b.isUndefined(u)){if(!b.isUndefined(f))return n(void 0,f)}else return n(void 0,u)}function s(f,u,h){if(h in t)return n(f,u);if(h in e)return n(void 0,f)}const l={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:(f,u)=>o(qo(f),qo(u),!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(u){const h=l[u]||o,v=h(e[u],t[u],u);b.isUndefined(v)&&h!==s||(r[u]=v)}),r}const Vo=e=>{const t=We({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=se.from(a),t.url=Mo(Ho(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(b.isFormData(r)){if(ae.hasStandardBrowserEnv||ae.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[f,...u]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...u].join("; "))}}if(ae.hasStandardBrowserEnv&&(n&&b.isFunction(n)&&(n=n(t)),n||n!==!1&&du(t.url))){const f=o&&i&&pu.read(i);f&&a.set(o,f)}return t},hu=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Vo(e);let i=o.data;const a=se.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:f}=o,u,h,v,g,c;function p(){g&&g(),c&&c(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function w(){if(!y)return;const x=se.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:x,config:e,request:y};Bo(function(_){r(_),p()},function(_){n(_),p()},T),y=null}"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(w)},y.onabort=function(){y&&(n(new $("Request aborted",$.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Io;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new $(O,T.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&b.forEach(a.toJSON(),function(O,T){y.setRequestHeader(T,O)}),b.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),f&&([v,c]=rr(f,!0),y.addEventListener("progress",v)),l&&y.upload&&([h,g]=rr(l),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=x=>{y&&(n(!x||x.type?new et(null,e,y):x),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const S=uu(o.url);if(S&&ae.protocols.indexOf(S)===-1){n(new $("Unsupported protocol "+S+":",$.ERR_BAD_REQUEST,e));return}y.send(i||null)})},vu=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(f){if(!o){o=!0,s();const u=f instanceof Error?f:this.reason;n.abort(u instanceof $?u:new et(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>b.asap(s),l}},gu=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},bu=async function*(e,t){for await(const r of wu(e))yield*gu(r,t)},wu=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},zo=(e,t,r,n)=>{const o=bu(e,t);let i=0,a,s=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await o.next();if(f){s(),l.close();return}let h=u.byteLength;if(r){let v=i+=h;r(v)}l.enqueue(new Uint8Array(u))}catch(f){throw s(f),f}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},nr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Go=nr&&typeof ReadableStream=="function",Eu=nr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ko=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Su=Go&&Ko(()=>{let e=!1;const t=new Request(ae.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Jo=64*1024,Vr=Go&&Ko(()=>b.isReadableStream(new Response("").body)),or={stream:Vr&&(e=>e.body)};nr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!or[t]&&(or[t]=b.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new $(`Response type '${t}' is not supported`,$.ERR_NOT_SUPPORT,n)})})})(new Response);const xu=async e=>{if(e==null)return 0;if(b.isBlob(e))return e.size;if(b.isSpecCompliantForm(e))return(await new Request(ae.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(b.isArrayBufferView(e)||b.isArrayBuffer(e))return e.byteLength;if(b.isURLSearchParams(e)&&(e=e+""),b.isString(e))return(await Eu(e)).byteLength},Ou=async(e,t)=>{const r=b.toFiniteNumber(e.getContentLength());return r??xu(t)},zr={http:Vl,xhr:hu,fetch:nr&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:f,headers:u,withCredentials:h="same-origin",fetchOptions:v}=Vo(e);f=f?(f+"").toLowerCase():"text";let g=vu([o,i&&i.toAbortSignal()],a),c;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(l&&Su&&r!=="get"&&r!=="head"&&(y=await Ou(u,n))!==0){let T=new Request(t,{method:"POST",body:n,duplex:"half"}),P;if(b.isFormData(n)&&(P=T.headers.get("content-type"))&&u.setContentType(P),T.body){const[_,j]=Uo(y,rr(Wo(l)));n=zo(T.body,Jo,_,j)}}b.isString(h)||(h=h?"include":"omit");const w="credentials"in Request.prototype;c=new Request(t,{...v,signal:g,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:w?h:void 0});let S=await fetch(c);const x=Vr&&(f==="stream"||f==="response");if(Vr&&(s||x&&p)){const T={};["status","statusText","headers"].forEach(W=>{T[W]=S[W]});const P=b.toFiniteNumber(S.headers.get("content-length")),[_,j]=s&&Uo(P,rr(Wo(s),!0))||[];S=new Response(zo(S.body,Jo,_,()=>{j&&j(),p&&p()}),T)}f=f||"text";let O=await or[b.findKey(or,f)||"text"](S,e);return!x&&p&&p(),await new Promise((T,P)=>{Bo(T,P,{data:O,headers:se.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:c})})}catch(w){throw p&&p(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,e,c),{cause:w.cause||w}):$.from(w,w&&w.code,e,c)}})};b.forEach(zr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yo=e=>`- ${e}`,Au=e=>b.isFunction(e)||e===null||e===!1,Xo={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Au(r)&&(n=zr[(a=String(r)).toLowerCase()],n===void 0))throw new $(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
37
|
-
`+i.map(Yo).join(`
|
|
38
|
-
`):" "+Yo(i[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:zr};function Gr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new et(null,e)}function Qo(e){return Gr(e),e.headers=se.from(e.headers),e.data=qr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xo.getAdapter(e.adapter||Ot.adapter)(e).then(function(n){return Gr(e),n.data=qr.call(e,e.transformResponse,n),n.headers=se.from(n.headers),n},function(n){return jo(n)||(Gr(e),n&&n.response&&(n.response.data=qr.call(e,e.transformResponse,n.response),n.response.headers=se.from(n.response.headers))),Promise.reject(n)})}const Zo="1.7.7",Kr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ei={};Kr.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Zo+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new $(o(a," has been removed"+(r?" in "+r:"")),$.ERR_DEPRECATED);return r&&!ei[a]&&(ei[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};function Tu(e,t,r){if(typeof e!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new $("option "+i+" must be "+l,$.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}}const Jr={assertOptions:Tu,validators:Kr},Fe=Jr.validators;class He{constructor(t){this.defaults=t,this.interceptors={request:new Ro,response:new Ro}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
39
|
-
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=We(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Jr.assertOptions(n,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean)},!1),o!=null&&(b.isFunction(o)?r.paramsSerializer={serialize:o}:Jr.assertOptions(o,{encode:Fe.function,serialize:Fe.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&b.merge(i.common,i[r.method]);i&&b.forEach(["delete","get","head","post","put","patch","common"],c=>{delete i[c]}),r.headers=se.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const f=[];this.interceptors.response.forEach(function(p){f.push(p.fulfilled,p.rejected)});let u,h=0,v;if(!l){const c=[Qo.bind(this),void 0];for(c.unshift.apply(c,s),c.push.apply(c,f),v=c.length,u=Promise.resolve(r);h<v;)u=u.then(c[h++],c[h++]);return u}v=s.length;let g=r;for(h=0;h<v;){const c=s[h++],p=s[h++];try{g=c(g)}catch(y){p.call(this,y);break}}try{u=Qo.call(this,g)}catch(c){return Promise.reject(c)}for(h=0,v=f.length;h<v;)u=u.then(f[h++],f[h++]);return u}getUri(t){t=We(this.defaults,t);const r=Ho(t.baseURL,t.url);return Mo(r,t.params,t.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(t){He.prototype[t]=function(r,n){return this.request(We(n||{},{method:t,url:r,data:(n||{}).data}))}}),b.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(We(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}He.prototype[t]=r(),He.prototype[t+"Form"]=r(!0)});class Yr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new et(i,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Yr(function(o){t=o}),cancel:t}}}function Pu(e){return function(r){return e.apply(null,r)}}function Cu(e){return b.isObject(e)&&e.isAxiosError===!0}const Xr={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(Xr).forEach(([e,t])=>{Xr[t]=e});function ti(e){const t=new He(e),r=go(He.prototype.request,t);return b.extend(r,He.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ti(We(e,o))},r}const z=ti(Ot);z.Axios=He,z.CanceledError=et,z.CancelToken=Yr,z.isCancel=jo,z.VERSION=Zo,z.toFormData=er,z.AxiosError=$,z.Cancel=z.CanceledError,z.all=function(t){return Promise.all(t)},z.spread=Pu,z.isAxiosError=Cu,z.mergeConfig=We,z.AxiosHeaders=se,z.formToJSON=e=>Lo(b.isHTMLForm(e)?new FormData(e):e),z.getAdapter=Xo.getAdapter,z.HttpStatusCode=Xr,z.default=z;function Fu(e,t){return Array.isArray(e)?e.filter(r=>!t.includes(r)):Object.keys(e).reduce((r,n)=>(t.includes(n)||(r[n]=e[n]),r),{})}function ri(e,t){return Array.isArray(e)?e.filter(r=>t.includes(r)):t.reduce((r,n)=>(n in e&&(r[n]=e[n]),r),{})}function $u(e){return Array.isArray(e)?e.filter(t=>t!==null):Object.keys(e).reduce((t,r)=>(r in e&&e[r]!==null&&(t[r]=e[r]),t),{})}function _u(e=3,t=100){const r=()=>Re.router.page||null;return new Promise((n,o)=>{let i=r();if(i){n(i);return}let a=e*1e3/t;const s=setInterval(()=>{i=r(),i&&(clearInterval(s),n(i)),--a<=0&&(clearInterval(s),o(new Error("Inertia page not available")))},t)})}var Nu=function(t){return Du(t)&&!Mu(t)};function Du(e){return!!e&&typeof e=="object"}function Mu(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Lu(e)}var Ru=typeof Symbol=="function"&&Symbol.for,Iu=Ru?Symbol.for("react.element"):60103;function Lu(e){return e.$$typeof===Iu}function ku(e){return Array.isArray(e)?[]:{}}function Tt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?tt(ku(e),e,t):e}function ju(e,t,r){return e.concat(t).map(function(n){return Tt(n,r)})}function Bu(e,t){if(!t.customMerge)return tt;var r=t.customMerge(e);return typeof r=="function"?r:tt}function Uu(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ni(e){return Object.keys(e).concat(Uu(e))}function oi(e,t){try{return t in e}catch{return!1}}function Wu(e,t){return oi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Hu(e,t,r){var n={};return r.isMergeableObject(e)&&ni(e).forEach(function(o){n[o]=Tt(e[o],r)}),ni(t).forEach(function(o){Wu(e,o)||(oi(e,o)&&r.isMergeableObject(t[o])?n[o]=Bu(o,r)(e[o],t[o],r):n[o]=Tt(t[o],r))}),n}function tt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ju,r.isMergeableObject=r.isMergeableObject||Nu,r.cloneUnlessOtherwiseSpecified=Tt;var n=Array.isArray(t),o=Array.isArray(e),i=n===o;return i?n?r.arrayMerge(e,t,r):Hu(e,t,r):Tt(t,r)}tt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return tt(n,o,r)},{})};var qu=tt,Vu=qu;const zu=ga(Vu);var Gu=Error,Ku=EvalError,Ju=RangeError,Yu=ReferenceError,ii=SyntaxError,Pt=TypeError,Xu=URIError,Qu=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0},ai=typeof Symbol<"u"&&Symbol,Zu=Qu,ec=function(){return typeof ai!="function"||typeof Symbol!="function"||typeof ai("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Zu()},Qr={__proto__:null,foo:{}},tc=Object,rc=function(){return{__proto__:Qr}.foo===Qr.foo&&!(Qr instanceof tc)},nc="Function.prototype.bind called on incompatible ",oc=Object.prototype.toString,ic=Math.max,ac="[object Function]",si=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},sc=function(t,r){for(var n=[],o=r,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},lc=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},uc=function(t){var r=this;if(typeof r!="function"||oc.apply(r)!==ac)throw new TypeError(nc+r);for(var n=sc(arguments,1),o,i=function(){if(this instanceof o){var u=r.apply(this,si(n,arguments));return Object(u)===u?u:this}return r.apply(t,si(n,arguments))},a=ic(0,r.length-n.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(o=Function("binder","return function ("+lc(s,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var f=function(){};f.prototype=r.prototype,o.prototype=new f,f.prototype=null}return o},cc=uc,Zr=Function.prototype.bind||cc,fc=Function.prototype.call,dc=Object.prototype.hasOwnProperty,pc=Zr,mc=pc.call(fc,dc),N,yc=Gu,hc=Ku,vc=Ju,gc=Yu,rt=ii,nt=Pt,bc=Xu,li=Function,en=function(e){try{return li('"use strict"; return ('+e+").constructor;")()}catch{}},qe=Object.getOwnPropertyDescriptor;if(qe)try{qe({},"")}catch{qe=null}var tn=function(){throw new nt},wc=qe?function(){try{return arguments.callee,tn}catch{try{return qe(arguments,"callee").get}catch{return tn}}}():tn,ot=ec(),Ec=rc(),Q=Object.getPrototypeOf||(Ec?function(e){return e.__proto__}:null),it={},Sc=typeof Uint8Array>"u"||!Q?N:Q(Uint8Array),Ve={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?N:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?N:ArrayBuffer,"%ArrayIteratorPrototype%":ot&&Q?Q([][Symbol.iterator]()):N,"%AsyncFromSyncIteratorPrototype%":N,"%AsyncFunction%":it,"%AsyncGenerator%":it,"%AsyncGeneratorFunction%":it,"%AsyncIteratorPrototype%":it,"%Atomics%":typeof Atomics>"u"?N:Atomics,"%BigInt%":typeof BigInt>"u"?N:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?N:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?N:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?N:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":yc,"%eval%":eval,"%EvalError%":hc,"%Float32Array%":typeof Float32Array>"u"?N:Float32Array,"%Float64Array%":typeof Float64Array>"u"?N:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?N:FinalizationRegistry,"%Function%":li,"%GeneratorFunction%":it,"%Int8Array%":typeof Int8Array>"u"?N:Int8Array,"%Int16Array%":typeof Int16Array>"u"?N:Int16Array,"%Int32Array%":typeof Int32Array>"u"?N:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ot&&Q?Q(Q([][Symbol.iterator]())):N,"%JSON%":typeof JSON=="object"?JSON:N,"%Map%":typeof Map>"u"?N:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ot||!Q?N:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?N:Promise,"%Proxy%":typeof Proxy>"u"?N:Proxy,"%RangeError%":vc,"%ReferenceError%":gc,"%Reflect%":typeof Reflect>"u"?N:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?N:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ot||!Q?N:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?N:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ot&&Q?Q(""[Symbol.iterator]()):N,"%Symbol%":ot?Symbol:N,"%SyntaxError%":rt,"%ThrowTypeError%":wc,"%TypedArray%":Sc,"%TypeError%":nt,"%Uint8Array%":typeof Uint8Array>"u"?N:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?N:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?N:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?N:Uint32Array,"%URIError%":bc,"%WeakMap%":typeof WeakMap>"u"?N:WeakMap,"%WeakRef%":typeof WeakRef>"u"?N:WeakRef,"%WeakSet%":typeof WeakSet>"u"?N:WeakSet};if(Q)try{null.error}catch(e){var xc=Q(Q(e));Ve["%Error.prototype%"]=xc}var Oc=function e(t){var r;if(t==="%AsyncFunction%")r=en("async function () {}");else if(t==="%GeneratorFunction%")r=en("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=en("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Q&&(r=Q(o.prototype))}return Ve[t]=r,r},ui={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ct=Zr,ir=mc,Ac=Ct.call(Function.call,Array.prototype.concat),Tc=Ct.call(Function.apply,Array.prototype.splice),ci=Ct.call(Function.call,String.prototype.replace),ar=Ct.call(Function.call,String.prototype.slice),Pc=Ct.call(Function.call,RegExp.prototype.exec),Cc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fc=/\\(\\)?/g,$c=function(t){var r=ar(t,0,1),n=ar(t,-1);if(r==="%"&&n!=="%")throw new rt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rt("invalid intrinsic syntax, expected opening `%`");var o=[];return ci(t,Cc,function(i,a,s,l){o[o.length]=s?ci(l,Fc,"$1"):a||i}),o},_c=function(t,r){var n=t,o;if(ir(ui,n)&&(o=ui[n],n="%"+o[0]+"%"),ir(Ve,n)){var i=Ve[n];if(i===it&&(i=Oc(n)),typeof i>"u"&&!r)throw new nt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new rt("intrinsic "+t+" does not exist!")},at=function(t,r){if(typeof t!="string"||t.length===0)throw new nt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new nt('"allowMissing" argument must be a boolean');if(Pc(/^%?[^%]*%?$/,t)===null)throw new rt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=$c(t),o=n.length>0?n[0]:"",i=_c("%"+o+"%",r),a=i.name,s=i.value,l=!1,f=i.alias;f&&(o=f[0],Tc(n,Ac([0,1],f)));for(var u=1,h=!0;u<n.length;u+=1){var v=n[u],g=ar(v,0,1),c=ar(v,-1);if((g==='"'||g==="'"||g==="`"||c==='"'||c==="'"||c==="`")&&g!==c)throw new rt("property names with quotes must have matching quotes");if((v==="constructor"||!h)&&(l=!0),o+="."+v,a="%"+o+"%",ir(Ve,a))s=Ve[a];else if(s!=null){if(!(v in s)){if(!r)throw new nt("base intrinsic for "+t+" exists, but the property is not available.");return}if(qe&&u+1>=n.length){var p=qe(s,v);h=!!p,h&&"get"in p&&!("originalValue"in p.get)?s=p.get:s=s[v]}else h=ir(s,v),s=s[v];h&&!l&&(Ve[a]=s)}}return s},fi={exports:{}},rn,di;function nn(){if(di)return rn;di=1;var e=at,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return rn=t,rn}var Nc=at,sr=Nc("%Object.getOwnPropertyDescriptor%",!0);if(sr)try{sr([],"length")}catch{sr=null}var pi=sr,mi=nn(),Dc=ii,st=Pt,yi=pi,Mc=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new st("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new st("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new st("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new st("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new st("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new st("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!yi&&yi(t,r);if(mi)mi(t,r,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(s||!o&&!i&&!a)t[r]=n;else throw new Dc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},on=nn(),hi=function(){return!!on};hi.hasArrayLengthDefineBug=function(){if(!on)return null;try{return on([],"length",{value:1}).length!==1}catch{return!0}};var Rc=hi,Ic=at,vi=Mc,Lc=Rc(),gi=pi,bi=Pt,kc=Ic("%Math.floor%"),jc=function(t,r){if(typeof t!="function")throw new bi("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||kc(r)!==r)throw new bi("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&gi){var a=gi(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(Lc?vi(t,"length",r,!0,!0):vi(t,"length",r)),t};(function(e){var t=Zr,r=at,n=jc,o=Pt,i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,i),l=nn(),f=r("%Math.max%");e.exports=function(v){if(typeof v!="function")throw new o("a function is required");var g=s(t,a,arguments);return n(g,1+f(0,v.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(fi);var Bc=fi.exports,wi=at,Ei=Bc,Uc=Ei(wi("String.prototype.indexOf")),Wc=function(t,r){var n=wi(t,!!r);return typeof n=="function"&&Uc(t,".prototype.")>-1?Ei(n):n};const Hc=ba(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var an=typeof Map=="function"&&Map.prototype,sn=Object.getOwnPropertyDescriptor&&an?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,lr=an&&sn&&typeof sn.get=="function"?sn.get:null,Si=an&&Map.prototype.forEach,ln=typeof Set=="function"&&Set.prototype,un=Object.getOwnPropertyDescriptor&&ln?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ur=ln&&un&&typeof un.get=="function"?un.get:null,xi=ln&&Set.prototype.forEach,qc=typeof WeakMap=="function"&&WeakMap.prototype,Ft=qc?WeakMap.prototype.has:null,Vc=typeof WeakSet=="function"&&WeakSet.prototype,$t=Vc?WeakSet.prototype.has:null,zc=typeof WeakRef=="function"&&WeakRef.prototype,Oi=zc?WeakRef.prototype.deref:null,Gc=Boolean.prototype.valueOf,Kc=Object.prototype.toString,Jc=Function.prototype.toString,Yc=String.prototype.match,cn=String.prototype.slice,$e=String.prototype.replace,Xc=String.prototype.toUpperCase,Ai=String.prototype.toLowerCase,Ti=RegExp.prototype.test,Pi=Array.prototype.concat,ve=Array.prototype.join,Qc=Array.prototype.slice,Ci=Math.floor,fn=typeof BigInt=="function"?BigInt.prototype.valueOf:null,dn=Object.getOwnPropertySymbols,pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,lt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",te=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===lt||!0)?Symbol.toStringTag:null,Fi=Object.prototype.propertyIsEnumerable,$i=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function _i(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ti.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Ci(-e):Ci(e);if(n!==e){var o=String(n),i=cn.call(t,o.length+1);return $e.call(o,r,"$&_")+"."+$e.call($e.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $e.call(t,r,"$&_")}var mn=Hc,Ni=mn.custom,Di=Ii(Ni)?Ni:null,Zc=function e(t,r,n,o){var i=r||{};if(_e(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_e(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=_e(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_e(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_e(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ki(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?_i(t,l):l}if(typeof t=="bigint"){var f=String(t)+"n";return s?_i(t,f):f}var u=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return yn(t)?"[Array]":"[Object]";var h=gf(i,n);if(typeof o>"u")o=[];else if(Li(o,t)>=0)return"[Circular]";function v(C,L,K){if(L&&(o=Qc.call(o),o.push(L)),K){var ce={depth:i.depth};return _e(i,"quoteStyle")&&(ce.quoteStyle=i.quoteStyle),e(C,ce,n+1,o)}return e(C,i,n+1,o)}if(typeof t=="function"&&!Ri(t)){var g=uf(t),c=cr(t,v);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(c.length>0?" { "+ve.call(c,", ")+" }":"")}if(Ii(t)){var p=lt?$e.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):pn.call(t);return typeof t=="object"&&!lt?_t(p):p}if(yf(t)){for(var y="<"+Ai.call(String(t.nodeName)),w=t.attributes||[],S=0;S<w.length;S++)y+=" "+w[S].name+"="+Mi(ef(w[S].value),"double",i);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+Ai.call(String(t.nodeName))+">",y}if(yn(t)){if(t.length===0)return"[]";var x=cr(t,v);return h&&!vf(x)?"["+vn(x,h)+"]":"[ "+ve.call(x,", ")+" ]"}if(rf(t)){var O=cr(t,v);return!("cause"in Error.prototype)&&"cause"in t&&!Fi.call(t,"cause")?"{ ["+String(t)+"] "+ve.call(Pi.call("[cause]: "+v(t.cause),O),", ")+" }":O.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ve.call(O,", ")+" }"}if(typeof t=="object"&&a){if(Di&&typeof t[Di]=="function"&&mn)return mn(t,{depth:u-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(cf(t)){var T=[];return Si&&Si.call(t,function(C,L){T.push(v(L,t,!0)+" => "+v(C,t))}),ji("Map",lr.call(t),T,h)}if(pf(t)){var P=[];return xi&&xi.call(t,function(C){P.push(v(C,t))}),ji("Set",ur.call(t),P,h)}if(ff(t))return hn("WeakMap");if(mf(t))return hn("WeakSet");if(df(t))return hn("WeakRef");if(of(t))return _t(v(Number(t)));if(sf(t))return _t(v(fn.call(t)));if(af(t))return _t(Gc.call(t));if(nf(t))return _t(v(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof wr<"u"&&t===wr)return"{ [object globalThis] }";if(!tf(t)&&!Ri(t)){var _=cr(t,v),j=$i?$i(t)===Object.prototype:t instanceof Object||t.constructor===Object,W=t instanceof Object?"":"null prototype",I=!j&&te&&Object(t)===t&&te in t?cn.call(Ne(t),8,-1):W?"Object":"",X=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Z=X+(I||W?"["+ve.call(Pi.call([],I||[],W||[]),": ")+"] ":"");return _.length===0?Z+"{}":h?Z+"{"+vn(_,h)+"}":Z+"{ "+ve.call(_,", ")+" }"}return String(t)};function Mi(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function ef(e){return $e.call(String(e),/"/g,""")}function yn(e){return Ne(e)==="[object Array]"&&(!te||!(typeof e=="object"&&te in e))}function tf(e){return Ne(e)==="[object Date]"&&(!te||!(typeof e=="object"&&te in e))}function Ri(e){return Ne(e)==="[object RegExp]"&&(!te||!(typeof e=="object"&&te in e))}function rf(e){return Ne(e)==="[object Error]"&&(!te||!(typeof e=="object"&&te in e))}function nf(e){return Ne(e)==="[object String]"&&(!te||!(typeof e=="object"&&te in e))}function of(e){return Ne(e)==="[object Number]"&&(!te||!(typeof e=="object"&&te in e))}function af(e){return Ne(e)==="[object Boolean]"&&(!te||!(typeof e=="object"&&te in e))}function Ii(e){if(lt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!pn)return!1;try{return pn.call(e),!0}catch{}return!1}function sf(e){if(!e||typeof e!="object"||!fn)return!1;try{return fn.call(e),!0}catch{}return!1}var lf=Object.prototype.hasOwnProperty||function(e){return e in this};function _e(e,t){return lf.call(e,t)}function Ne(e){return Kc.call(e)}function uf(e){if(e.name)return e.name;var t=Yc.call(Jc.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Li(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function cf(e){if(!lr||!e||typeof e!="object")return!1;try{lr.call(e);try{ur.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ff(e){if(!Ft||!e||typeof e!="object")return!1;try{Ft.call(e,Ft);try{$t.call(e,$t)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function df(e){if(!Oi||!e||typeof e!="object")return!1;try{return Oi.call(e),!0}catch{}return!1}function pf(e){if(!ur||!e||typeof e!="object")return!1;try{ur.call(e);try{lr.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function mf(e){if(!$t||!e||typeof e!="object")return!1;try{$t.call(e,$t);try{Ft.call(e,Ft)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function yf(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ki(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ki(cn.call(e,0,t.maxStringLength),t)+n}var o=$e.call($e.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,hf);return Mi(o,"single",t)}function hf(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Xc.call(t.toString(16))}function _t(e){return"Object("+e+")"}function hn(e){return e+" { ? }"}function ji(e,t,r,n){var o=n?vn(r,n):ve.call(r,", ");return e+" ("+t+") {"+o+"}"}function vf(e){for(var t=0;t<e.length;t++)if(Li(e[t],`
|
|
40
|
-
`)>=0)return!1;return!0}function gf(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ve.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ve.call(Array(t+1),r)}}function vn(e,t){if(e.length===0)return"";var r=`
|
|
41
|
-
`+t.prev+t.base;return r+ve.call(e,","+r)+`
|
|
42
|
-
`+t.prev}function cr(e,t){var r=yn(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=_e(e,o)?t(e[o],e):""}var i=typeof dn=="function"?dn(e):[],a;if(lt){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in e)_e(e,l)&&(r&&String(Number(l))===l&&l<e.length||lt&&a["$"+l]instanceof Symbol||(Ti.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof dn=="function")for(var f=0;f<i.length;f++)Fi.call(e,i[f])&&n.push("["+t(i[f])+"]: "+t(e[i[f]],e));return n}var Bi=at,ut=Wc,bf=Zc,wf=Pt,fr=Bi("%WeakMap%",!0),dr=Bi("%Map%",!0),Ef=ut("WeakMap.prototype.get",!0),Sf=ut("WeakMap.prototype.set",!0),xf=ut("WeakMap.prototype.has",!0),Of=ut("Map.prototype.get",!0),Af=ut("Map.prototype.set",!0),Tf=ut("Map.prototype.has",!0),gn=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Pf=function(e,t){var r=gn(e,t);return r&&r.value},Cf=function(e,t,r){var n=gn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Ff=function(e,t){return!!gn(e,t)},$f=function(){var t,r,n,o={assert:function(i){if(!o.has(i))throw new wf("Side channel does not contain "+bf(i))},get:function(i){if(fr&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Ef(t,i)}else if(dr){if(r)return Of(r,i)}else if(n)return Pf(n,i)},has:function(i){if(fr&&i&&(typeof i=="object"||typeof i=="function")){if(t)return xf(t,i)}else if(dr){if(r)return Tf(r,i)}else if(n)return Ff(n,i);return!1},set:function(i,a){fr&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new fr),Sf(t,i,a)):dr?(r||(r=new dr),Af(r,i,a)):(n||(n={key:{},next:null}),Cf(n,i,a))}};return o},_f=String.prototype.replace,Nf=/%20/g,bn={RFC1738:"RFC1738",RFC3986:"RFC3986"},wn={default:bn.RFC3986,formatters:{RFC1738:function(e){return _f.call(e,Nf,"+")},RFC3986:function(e){return String(e)}},RFC1738:bn.RFC1738,RFC3986:bn.RFC3986},Df=wn,En=Object.prototype.hasOwnProperty,ze=Array.isArray,ge=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Mf=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(ze(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},Ui=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},Rf=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(ze(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!En.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return ze(t)&&!ze(r)&&(o=Ui(t,n)),ze(t)&&ze(r)?(r.forEach(function(i,a){if(En.call(t,a)){var s=t[a];s&&typeof s=="object"&&i&&typeof i=="object"?t[a]=e(s,i,n):t.push(i)}else t[a]=i}),t):Object.keys(r).reduce(function(i,a){var s=r[a];return En.call(i,a)?i[a]=e(i[a],s,n):i[a]=s,i},o)},If=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},Lf=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Sn=1024,kf=function(t,r,n,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=Sn){for(var f=a.length>=Sn?a.slice(l,l+Sn):a,u=[],h=0;h<f.length;++h){var v=f.charCodeAt(h);if(v===45||v===46||v===95||v===126||v>=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||i===Df.RFC1738&&(v===40||v===41)){u[u.length]=f.charAt(h);continue}if(v<128){u[u.length]=ge[v];continue}if(v<2048){u[u.length]=ge[192|v>>6]+ge[128|v&63];continue}if(v<55296||v>=57344){u[u.length]=ge[224|v>>12]+ge[128|v>>6&63]+ge[128|v&63];continue}h+=1,v=65536+((v&1023)<<10|f.charCodeAt(h)&1023),u[u.length]=ge[240|v>>18]+ge[128|v>>12&63]+ge[128|v>>6&63]+ge[128|v&63]}s+=u.join("")}return s},jf=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var f=s[l],u=a[f];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:a,prop:f}),n.push(u))}return Mf(r),t},Bf=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Uf=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Wf=function(t,r){return[].concat(t,r)},Hf=function(t,r){if(ze(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(r(t[o]));return n}return r(t)},Wi={arrayToObject:Ui,assign:If,combine:Wf,compact:jf,decode:Lf,encode:kf,isBuffer:Uf,isRegExp:Bf,maybeMap:Hf,merge:Rf},Hi=$f,pr=Wi,Nt=wn,qf=Object.prototype.hasOwnProperty,qi={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},be=Array.isArray,Vf=Array.prototype.push,Vi=function(e,t){Vf.apply(e,be(t)?t:[t])},zf=Date.prototype.toISOString,zi=Nt.default,Y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:pr.encode,encodeValuesOnly:!1,format:zi,formatter:Nt.formatters[zi],indices:!1,serializeDate:function(t){return zf.call(t)},skipNulls:!1,strictNullHandling:!1},Gf=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},xn={},Kf=function e(t,r,n,o,i,a,s,l,f,u,h,v,g,c,p,y,w,S){for(var x=t,O=S,T=0,P=!1;(O=O.get(xn))!==void 0&&!P;){var _=O.get(t);if(T+=1,typeof _<"u"){if(_===T)throw new RangeError("Cyclic object value");P=!0}typeof O.get(xn)>"u"&&(T=0)}if(typeof u=="function"?x=u(r,x):x instanceof Date?x=g(x):n==="comma"&&be(x)&&(x=pr.maybeMap(x,function(U){return U instanceof Date?g(U):U})),x===null){if(a)return f&&!y?f(r,Y.encoder,w,"key",c):r;x=""}if(Gf(x)||pr.isBuffer(x)){if(f){var j=y?r:f(r,Y.encoder,w,"key",c);return[p(j)+"="+p(f(x,Y.encoder,w,"value",c))]}return[p(r)+"="+p(String(x))]}var W=[];if(typeof x>"u")return W;var I;if(n==="comma"&&be(x))y&&f&&(x=pr.maybeMap(x,f)),I=[{value:x.length>0?x.join(",")||null:void 0}];else if(be(u))I=u;else{var X=Object.keys(x);I=h?X.sort(h):X}var Z=l?r.replace(/\./g,"%2E"):r,C=o&&be(x)&&x.length===1?Z+"[]":Z;if(i&&be(x)&&x.length===0)return C+"[]";for(var L=0;L<I.length;++L){var K=I[L],ce=typeof K=="object"&&typeof K.value<"u"?K.value:x[K];if(!(s&&ce===null)){var ye=v&&l?K.replace(/\./g,"%2E"):K,we=be(x)?typeof n=="function"?n(C,ye):C:C+(v?"."+ye:"["+ye+"]");S.set(t,T);var re=Hi();re.set(xn,S),Vi(W,e(ce,we,n,o,i,a,s,l,n==="comma"&&y&&be(x)?null:f,u,h,v,g,c,p,y,w,re))}}return W},Jf=function(t){if(!t)return Y;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Y.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Nt.default;if(typeof t.format<"u"){if(!qf.call(Nt.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var o=Nt.formatters[n],i=Y.filter;(typeof t.filter=="function"||be(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in qi?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Y.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Y.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Y.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Y.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Y.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Y.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Y.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Y.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Y.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Y.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Y.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Y.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Y.strictNullHandling}},Yf=function(e,t){var r=e,n=Jf(t),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):be(n.filter)&&(i=n.filter,o=i);var a=[];if(typeof r!="object"||r===null)return"";var s=qi[n.arrayFormat],l=s==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=Hi(),u=0;u<o.length;++u){var h=o[u];n.skipNulls&&r[h]===null||Vi(a,Kf(r[h],h,s,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,f))}var v=a.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),v.length>0?g+v:""},ct=Wi,On=Object.prototype.hasOwnProperty,Xf=Array.isArray,V={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ct.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Qf=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Gi=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Zf="utf8=%26%2310003%3B",ed="utf8=%E2%9C%93",td=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,a=o.split(r.delimiter,i),s=-1,l,f=r.charset;if(r.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===ed?f="utf-8":a[l]===Zf&&(f="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var u=a[l],h=u.indexOf("]="),v=h===-1?u.indexOf("="):h+1,g,c;v===-1?(g=r.decoder(u,V.decoder,f,"key"),c=r.strictNullHandling?null:""):(g=r.decoder(u.slice(0,v),V.decoder,f,"key"),c=ct.maybeMap(Gi(u.slice(v+1),r),function(y){return r.decoder(y,V.decoder,f,"value")})),c&&r.interpretNumericEntities&&f==="iso-8859-1"&&(c=Qf(c)),u.indexOf("[]=")>-1&&(c=Xf(c)?[c]:c);var p=On.call(n,g);p&&r.duplicates==="combine"?n[g]=ct.combine(n[g],c):(!p||r.duplicates==="last")&&(n[g]=c)}return n},rd=function(e,t,r,n){for(var o=n?t:Gi(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if(s==="[]"&&r.parseArrays)a=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,f=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,u=parseInt(f,10);!r.parseArrays&&f===""?a={0:o}:!isNaN(u)&&s!==f&&String(u)===f&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[],a[u]=o):f!=="__proto__"&&(a[f]=o)}o=a}return o},nd=function(t,r,n,o){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(i),f=l?i.slice(0,l.index):i,u=[];if(f){if(!n.plainObjects&&On.call(Object.prototype,f)&&!n.allowPrototypes)return;u.push(f)}for(var h=0;n.depth>0&&(l=s.exec(i))!==null&&h<n.depth;){if(h+=1,!n.plainObjects&&On.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+i.slice(l.index)+"]")}return rd(u,r,n,o)}},od=function(t){if(!t)return V;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?V.charset:t.charset,n=typeof t.duplicates>"u"?V.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:V.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:V.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:V.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:V.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:V.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:V.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:V.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:V.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:V.decoder,delimiter:typeof t.delimiter=="string"||ct.isRegExp(t.delimiter)?t.delimiter:V.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:V.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:V.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:V.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:V.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:V.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:V.strictNullHandling}},id=function(e,t){var r=od(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?td(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],l=nd(s,n[s],r,typeof e=="string");o=ct.merge(o,l,r)}return r.allowSparse===!0?o:ct.compact(o)},ad=Yf,sd=id,ld=wn,Ki={formats:ld,parse:sd,stringify:ad},ud={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
43
|
-
* @license MIT */(function(e,t){(function(r,n){e.exports=n()})(wr,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(c){var p,y;for(p in c)y=c[p],y!==void 0&&c.hasOwnProperty(p)&&(n[p]=y);return this},r.status=null,r.set=function(c){var p=r.isStarted();c=o(c,n.minimum,1),r.status=c===1?null:c;var y=r.render(!p),w=y.querySelector(n.barSelector),S=n.speed,x=n.easing;return y.offsetWidth,s(function(O){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),l(w,a(c,S,x)),c===1?(l(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){l(y,{transition:"all "+S+"ms linear",opacity:0}),setTimeout(function(){r.remove(),O()},S)},S)):setTimeout(O,S)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var c=function(){setTimeout(function(){r.status&&(r.trickle(),c())},n.trickleSpeed)};return n.trickle&&c(),this},r.done=function(c){return!c&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(c){var p=r.status;return p?(typeof c!="number"&&(c=(1-p)*o(Math.random()*p,.1,.95)),p=o(p+c,0,.994),r.set(p)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var c=0,p=0;r.promise=function(y){return!y||y.state()==="resolved"?this:(p===0&&r.start(),c++,p++,y.always(function(){p--,p===0?(c=0,r.done()):r.set((c-p)/c)}),this)}}(),r.render=function(c){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var p=document.createElement("div");p.id="nprogress",p.innerHTML=n.template;var y=p.querySelector(n.barSelector),w=c?"-100":i(r.status||0),S=document.querySelector(n.parent),x;return l(y,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),n.showSpinner||(x=p.querySelector(n.spinnerSelector),x&&g(x)),S!=document.body&&u(S,"nprogress-custom-parent"),S.appendChild(p),p},r.remove=function(){h(document.documentElement,"nprogress-busy"),h(document.querySelector(n.parent),"nprogress-custom-parent");var c=document.getElementById("nprogress");c&&g(c)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var c=document.body.style,p="WebkitTransform"in c?"Webkit":"MozTransform"in c?"Moz":"msTransform"in c?"ms":"OTransform"in c?"O":"";return p+"Perspective"in c?"translate3d":p+"Transform"in c?"translate":"margin"};function o(c,p,y){return c<p?p:c>y?y:c}function i(c){return(-1+c)*100}function a(c,p,y){var w;return n.positionUsing==="translate3d"?w={transform:"translate3d("+i(c)+"%,0,0)"}:n.positionUsing==="translate"?w={transform:"translate("+i(c)+"%,0)"}:w={"margin-left":i(c)+"%"},w.transition="all "+p+"ms "+y,w}var s=function(){var c=[];function p(){var y=c.shift();y&&y(p)}return function(y){c.push(y),c.length==1&&p()}}(),l=function(){var c=["Webkit","O","Moz","ms"],p={};function y(O){return O.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(T,P){return P.toUpperCase()})}function w(O){var T=document.body.style;if(O in T)return O;for(var P=c.length,_=O.charAt(0).toUpperCase()+O.slice(1),j;P--;)if(j=c[P]+_,j in T)return j;return O}function S(O){return O=y(O),p[O]||(p[O]=w(O))}function x(O,T,P){T=S(T),O.style[T]=P}return function(O,T){var P=arguments,_,j;if(P.length==2)for(_ in T)j=T[_],j!==void 0&&T.hasOwnProperty(_)&&x(O,_,j);else x(O,P[1],P[2])}}();function f(c,p){var y=typeof c=="string"?c:v(c);return y.indexOf(" "+p+" ")>=0}function u(c,p){var y=v(c),w=y+p;f(y,p)||(c.className=w.substring(1))}function h(c,p){var y=v(c),w;f(c,p)&&(w=y.replace(" "+p+" "," "),c.className=w.substring(1,w.length-1))}function v(c){return(" "+(c.className||"")+" ").replace(/\s+/gi," ")}function g(c){c&&c.parentNode&&c.parentNode.removeChild(c)}return r})})(ud);function cd(e,t,r,n="brackets"){let o=/^https?:\/\//.test(t.toString()),i=o||t.toString().startsWith("/"),a=!i&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),s=t.toString().includes("?")||e==="get"&&Object.keys(r).length,l=t.toString().includes("#"),f=new URL(t.toString(),"http://localhost");return e==="get"&&Object.keys(r).length&&(f.search=Ki.stringify(zu(Ki.parse(f.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:n}),r={}),[[o?`${f.protocol}//${f.host}`:"",i?f.pathname:"",a?f.pathname.substring(1):"",s?f.search:"",l?f.hash:""].join(""),r]}const mr=m.createContext(null);mr.displayName="ModalStackContext";const fd=({children:e})=>{const[t,r]=m.useState([]),[n,o]=m.useState({});class i{constructor(c,p,y,w,S){Oe(this,"updateStack",c=>{r(p=>{const y=c([...p]);return y.forEach((w,S)=>{y[S].index=S,y[S].onTopOfStack=S===y.length-1}),y})});Oe(this,"close",()=>{this.updateStack(c=>c.map(p=>{var y;return p.id===this.id&&(Object.keys(p.listeners).forEach(w=>{p.off(w)}),p.open=!1,(y=p.onCloseCallback)==null||y.call(p)),p}))});Oe(this,"afterLeave",()=>{this.updateStack(c=>c.filter(p=>{var y;return p.id!==this.id?!0:((y=p.afterLeaveCallback)==null||y.call(p),!1)}))});Oe(this,"on",(c,p)=>{this.listeners[c]=this.listeners[c]??[],this.listeners[c].push(p)});Oe(this,"off",(c,p)=>{var y;p?this.listeners[c]=((y=this.listeners[c])==null?void 0:y.filter(w=>w!==p))??[]:delete this.listeners[c]});Oe(this,"emit",(c,...p)=>{var y;return console.log("Emitting",c,"with args",p),(y=this.listeners[c])==null||y.forEach(w=>w(...p)),"OK"});Oe(this,"registerEventListenersFromProps",c=>{const p=[];return Object.keys(c).filter(y=>y.startsWith("on")).forEach(y=>{const w=y.replace(/^on/,"").replace(/^./,S=>S.toLowerCase()).replace(/([A-Z])/g,"-$1").toLowerCase();this.on(w,c[y]),p.push(()=>this.off(w,c[y]))}),()=>p.forEach(y=>y())});Oe(this,"reload",(c={})=>{let p=Object.keys(this.response.props);c.only&&(p=ri(p,c.only)),c.except&&(p=Fu(p,c.except)),z.get(this.response.url,{headers:{Accept:"text/html, application/xhtml+xml","X-Inertia":!0,"X-Inertia-Partial-Component":this.response.component,"X-Inertia-Version":this.response.version,"X-Inertia-Partial-Data":p.join(",")}}).then(y=>{Object.assign(this.componentProps,y.data.props),r(w=>[...w])})});this.id=i.generateId(),this.open=!0,this.listeners={},this.component=c,this.componentProps=p.props,this.response=p,this.modalProps=y,this.onCloseCallback=w,this.afterLeaveCallback=S,this.index=-1,this.getParentModal=()=>null,this.getChildModal=()=>null,this.onTopOfStack=!0}static generateId(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?`inertiaui_modal_${crypto.randomUUID()}`:`inertiaui_modal_${Date.now().toString(36)}_${Math.random().toString(36).substr(2,9)}`}}const a=(g,c,p,y,w)=>{const S=new i(g,c,p,y,w);return r(x=>{const O=[...x,S];return O.forEach((T,P)=>{T.index=P,T.onTopOfStack=P===O.length-1}),O.forEach((T,P)=>{T.getParentModal=()=>P>0?O[P-1]:null,T.getChildModal=()=>P<O.length-1?O[P+1]:null}),O}),S};function s(g,c,p,y){if(!n[g])throw new Error(`The local modal "${g}" has not been registered.`);const w=a(null,{},c,p,y);return w.name=g,n[g].callback(w),w}const l=(g,c={})=>f(g,c.method??"get",c.data??{},c.headers??{},c.config??{},c.onClose,c.onAfterLeave,c.queryStringArrayFormat??"brackets"),f=(g,c,p={},y={},w={},S=null,x=null,O="brackets")=>new Promise((T,P)=>{if(g.startsWith("#")){const W=s(g.substring(1),w,S,x);T(W);return}const[_,j]=cd(c,g||"",p,O);_u().then(W=>{z({url:_,method:c,data:j,headers:{...y,Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0,"X-Inertia-Version":W.version,"X-InertiaUI-Modal":!0}}).then(I=>{Re.router.resolveComponent(I.data.component).then(X=>{T(a(X,I.data,w,S,x))})}).catch(I=>{P(I)})})}),v={stack:t,localModals:n,push:a,reset:()=>r([]),visit:f,visitModal:l,registerLocalModal:(g,c)=>{o(p=>({...p,[g]:{name:g,callback:c}}))},removeLocalModal:g=>{o(c=>{const p={...c};return delete p[g],p})}};return R.jsx(mr.Provider,{value:v,children:e})},yr=()=>{const e=m.useContext(mr);if(e===null)throw new Error("useModalStack must be used within a ModalStackProvider");return e},Ji=["closeButton","closeExplicitly","maxWidth","paddingClasses","panelClasses","position","slideover"],dd=({children:e})=>{const t=m.useContext(mr).stack;return R.jsxs(R.Fragment,{children:[e,t.length>0&&R.jsx(Yi,{index:0})]})},An=m.createContext(null);An.displayName="ModalIndexContext";const pd=()=>{const e=m.useContext(An);if(e===void 0)throw new Error("useModalIndex must be used within a ModalIndexProvider");return e},Yi=({index:e})=>{const{stack:t}=yr(),r=t[e];return!r||!r.component?null:R.jsx(An.Provider,{value:e,children:R.jsx(r.component,{...r.componentProps,onModalEvent:(...n)=>r.emit(...n)})})};function Xi({onClick:e}){return R.jsxs("button",{type:"button",className:"im-close-button text-gray-400 hover:text-gray-500",onClick:e,children:[R.jsx("span",{className:"sr-only",children:"Close"}),R.jsx("svg",{className:"size-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true",children:R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})]})}const md=({modalContext:e,modalProps:t,children:r})=>R.jsx("div",{className:"im-modal-container fixed inset-0 z-40 overflow-y-auto p-4",children:R.jsx("div",{className:Lt("im-modal-positioner flex min-h-full justify-center",{"items-start":t.position==="top","items-center":t.position==="center","items-end":t.position==="bottom"}),children:R.jsx(Qe,{enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",afterLeave:e.afterLeave,className:Lt("im-modal-wrapper w-full transition duration-300 ease-in-out",e.onTopOfStack?"":"blur-sm",{"sm:max-w-sm":t.maxWidth==="sm","sm:max-w-md":t.maxWidth==="md","sm:max-w-md md:max-w-lg":t.maxWidth==="lg","sm:max-w-md md:max-w-xl":t.maxWidth==="xl","sm:max-w-md md:max-w-xl lg:max-w-2xl":t.maxWidth==="2xl","sm:max-w-md md:max-w-xl lg:max-w-3xl":t.maxWidth==="3xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-4xl":t.maxWidth==="4xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl":t.maxWidth==="5xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl":t.maxWidth==="6xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl":t.maxWidth==="7xl"}),children:R.jsxs(Rr,{className:`im-modal-content relative ${t.paddingClasses} ${t.panelClasses}`,children:[t.closeButton&&R.jsx("div",{className:"absolute right-0 top-0 pr-3 pt-3",children:R.jsx(Xi,{onClick:e.close})}),typeof r=="function"?r({modalContext:e,modalProps:t}):r]})})})}),yd=({modalContext:e,modalProps:t,children:r})=>R.jsx("div",{className:"im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden",children:R.jsx("div",{className:Lt("im-slideover-positioner flex min-h-full items-center",{"justify-start":t.position==="left","justify-end":t.position==="right"}),children:R.jsx(Qe,{enterFrom:`opacity-0 ${t.position==="left"?"-translate-x-full":"translate-x-full"}`,enterTo:"opacity-100 translate-x-0",leaveFrom:"opacity-100 translate-x-0",leaveTo:`opacity-0 ${t.position==="left"?"-translate-x-full":"translate-x-full"}`,afterLeave:e.afterLeave,className:Lt("im-slideover-wrapper w-full transition duration-300 ease-in-out",e.onTopOfStack?"":"blur-sm",{"sm:max-w-sm":t.maxWidth==="sm","sm:max-w-md":t.maxWidth==="md","sm:max-w-md md:max-w-lg":t.maxWidth==="lg","sm:max-w-md md:max-w-xl":t.maxWidth==="xl","sm:max-w-md md:max-w-xl lg:max-w-2xl":t.maxWidth==="2xl","sm:max-w-md md:max-w-xl lg:max-w-3xl":t.maxWidth==="3xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-4xl":t.maxWidth==="4xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl":t.maxWidth==="5xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl":t.maxWidth==="6xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl":t.maxWidth==="7xl"}),children:R.jsxs(Rr,{className:`im-slideover-content relative ${t.paddingClasses} ${t.panelClasses}`,children:[t.closeButton&&R.jsx("div",{className:"absolute right-0 top-0 pr-3 pt-3",children:R.jsx(Xi,{onClick:e.close})}),typeof r=="function"?r({modalContext:e,modalProps:t}):r]})})})}),Qi=m.forwardRef(({name:e,children:t,...r},n)=>{const o=pd(),{stack:i,registerLocalModal:a,removeLocalModal:s}=yr(),[l,f]=m.useState(null),u=m.useMemo(()=>e?l:i[o]),h=m.useMemo(()=>(u==null?void 0:u.modalProps.slideover)??r.slideover??Mn("type")==="slideover",[r.slideover]),v=m.useMemo(()=>({slideover:h,closeButton:r.closeButton??Ye(h,"closeButton"),closeExplicitly:r.closeExplicitly??Ye(h,"closeExplicitly"),maxWidth:r.maxWidth??Ye(h,"maxWidth"),paddingClasses:r.paddingClasses??Ye(h,"paddingClasses"),panelClasses:r.panelClasses??Ye(h,"panelClasses"),position:r.position??Ye(h,"position"),...u==null?void 0:u.modalProps}),[r,u==null?void 0:u.modalProps]),g=m.useMemo(()=>v.slideover?yd:md,[v.slideover]);m.useEffect(()=>{if(e){let p=null;return a(e,y=>{p=y.registerEventListenersFromProps(r),f(y)}),()=>{p==null||p(),p=null,s(e)}}return u.registerEventListenersFromProps(r)},[e]),m.useImperativeHandle(n,()=>({close:()=>u.close(),emit:(...p)=>u.emit(...p),getChildModal:()=>u.getChildModal(),getParentModal:()=>u.getParentModal(),modalContext:u,reload:()=>u.reload()}),[u]);const c=()=>{v.closeExplicitly||u.close()};return u&&R.jsx(ho,{appear:!0,show:u.open??!1,children:R.jsxs(il,{as:"div",className:"im-dialog relative z-20",onClose:c,"data-inertiaui-modal-id":u.id,"data-inertiaui-modal-index":u.index,children:[u.index===0?R.jsx(Qe,{enter:"transition transform ease-in-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition transform ease-in-out duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:u.onTopOfStack?R.jsx("div",{className:"im-backdrop fixed inset-0 z-30 bg-black/75","aria-hidden":"true"}):R.jsx("div",{})}):null,u.index>0&&u.onTopOfStack?R.jsx("div",{className:"im-backdrop fixed inset-0 z-30 bg-black/75"}):null,R.jsx(g,{modalContext:u,modalProps:v,children:typeof t=="function"?t({close:u.close,emit:u.emit,getChildModal:u.getChildModal,getParentModal:u.getParentModal,modalContext:u,modalProps:v,reload:u.reload}):t}),i[u.index+1]&&R.jsx(Yi,{index:u.index+1})]})})});Qi.displayName="Modal";const hd=({href:e,method:t="get",data:r={},as:n="a",fragment:o=null,headers:i={},queryStringArrayFormat:a="brackets",onAfterLeave:s=null,onBlur:l=null,onClose:f=null,onError:u=null,onFocus:h=null,onStart:v=null,onSuccess:g=null,children:c,...p})=>{const[y,w]=m.useState(!1),[S,x]=m.useState(null),{stack:O,visit:T}=yr(),P={},_={};Object.keys(p).forEach(C=>{Ji.includes(C)||(C.startsWith("on")&&typeof p[C]=="function"?C.toLowerCase()in window?P[C]=p[C]:_[C]=p[C]:P[C]=p[C])}),m.useEffect(()=>{o&&window.location.hash===`#${o}`&&Z()},[o]);const[j,W]=m.useState(!1);m.useEffect(()=>{S&&(S.onTopOfStack&&j?h==null||h():!S.onTopOfStack&&!j&&(l==null||l()),W(!S.onTopOfStack))},[O]);const I=m.useCallback(C=>{o&&C===0&&(window.location.hash=""),f==null||f()},[f,o]),X=m.useCallback(()=>{x(null),s==null||s()},[s]),Z=m.useCallback(C=>{C==null||C.preventDefault(),!y&&(e.startsWith("#")||(w(!0),v==null||v()),T(e,t,r,i,$u(ri(p,Ji)),()=>I(O.length),X,a).then(L=>{x(L),o&&L.index===0&&(window.location.hash=o),L.registerEventListenersFromProps(_),g==null||g()}).catch(L=>{console.error(L),u==null||u(L)}).finally(()=>w(!1)))},[e,t,r,i,a,p,I,X]);return R.jsx(n,{...P,href:e,onClick:Z,children:typeof c=="function"?c({loading:y}):c})};q.Modal=Qi,q.ModalLink=hd,q.ModalRoot=dd,q.ModalStackProvider=fd,q.getConfig=Mn,q.putConfig=va,q.resetConfig=ha,q.useModalStack=yr,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
|
|
42
|
+
`))}else{let v=u.props,g=v==null?void 0:v.className,c=typeof g=="function"?(...w)=>yn(g(...w),l.className):yn(g,l.className),m=c?{className:c}:{},y=wi(u.props,qe(hn(l,["ref"])));for(let w in h)w in y&&delete h[w];return p.cloneElement(u,Object.assign({},y,h,f,{ref:o(u.ref,f.ref)},m))}return p.createElement(i,Object.assign({},hn(l,["ref"]),i!==p.Fragment&&f,i!==p.Fragment&&h),u)}function Dc(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function wi(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])for(let n in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(r[n]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let n in r)Object.assign(t,{[n](o,...i){let a=r[n];for(let s of a){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return t}function se(e){var t;return Object.assign(p.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function qe(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function hn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Ic="span";var lr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(lr||{});function Lc(e,t){var r;let{features:n=1,...o}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:(r=o["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return fe({ourProps:i,theirProps:o,slot:{},defaultTag:Ic,name:"Hidden"})}let vn=se(Lc),Ei=Symbol();function kc(e,t=!0){return Object.assign(e,{[Ei]:t})}function be(...e){let t=p.useRef(e);p.useEffect(()=>{t.current=e},[e]);let r=q(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Ei]))?void 0:r}let gn=p.createContext(null);gn.displayName="DescriptionContext";function Si(){let e=p.useContext(gn);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Si),t}return e}function jc(){let[e,t]=p.useState([]);return[e.length>0?e.join(" "):void 0,p.useMemo(()=>function(r){let n=q(i=>(t(a=>[...a,i]),()=>t(a=>{let s=a.slice(),l=s.indexOf(i);return l!==-1&&s.splice(l,1),s}))),o=p.useMemo(()=>({register:n,slot:r.slot,name:r.name,props:r.props,value:r.value}),[n,r.slot,r.name,r.props,r.value]);return p.createElement(gn.Provider,{value:o},r.children)},[t])]}let Bc="p";function Uc(e,t){let r=p.useId(),n=Rc(),{id:o=`headlessui-description-${r}`,...i}=e,a=Si(),s=be(t);ne(()=>a.register(o),[o,a.register]);let l=n||!1,f=p.useMemo(()=>({...a.slot,disabled:l}),[a.slot,l]),u={ref:s,...a.props,id:o};return fe({ourProps:u,theirProps:i,slot:f,defaultTag:Bc,name:a.name||"Description"})}let Wc=se(Uc),Hc=Object.assign(Wc,{});var xi=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(xi||{});let qc=p.createContext(()=>{});function Vc({value:e,children:t}){return p.createElement(qc.Provider,{value:e},t)}let zc=class extends Map{constructor(t){super(),this.factory=t}get(t){let r=super.get(t);return r===void 0&&(r=this.factory(t),this.set(t,r)),r}};function Oi(e,t){let r=e(),n=new Set;return{getSnapshot(){return r},subscribe(o){return n.add(o),()=>n.delete(o)},dispatch(o,...i){let a=t[o].call(r,...i);a&&(r=a,n.forEach(s=>s()))}}}function Ai(e){return p.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let Gc=new zc(()=>Oi(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let r=this.slice();return r.splice(t,1),r}}));function ut(e,t){let r=Gc.get(t),n=p.useId(),o=Ai(r);if(ne(()=>{if(e)return r.dispatch("ADD",n),()=>r.dispatch("REMOVE",n)},[r,e]),!e)return!1;let i=o.indexOf(n),a=o.length;return i===-1&&(i=a,a+=1),i===a-1}let bn=new Map,Pt=new Map;function Ti(e){var t;let r=(t=Pt.get(e))!=null?t:0;return Pt.set(e,r+1),r!==0?()=>Pi(e):(bn.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Pi(e))}function Pi(e){var t;let r=(t=Pt.get(e))!=null?t:1;if(r===1?Pt.delete(e):Pt.set(e,r-1),r!==1)return;let n=bn.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,bn.delete(e))}function Kc(e,{allowed:t,disallowed:r}={}){let n=ut(e,"inert-others");ne(()=>{var o,i;if(!n)return;let a=Fe();for(let l of(o=r==null?void 0:r())!=null?o:[])l&&a.add(Ti(l));let s=(i=t==null?void 0:t())!=null?i:[];for(let l of s){if(!l)continue;let f=or(l);if(!f)continue;let u=l.parentElement;for(;u&&u!==f.body;){for(let h of u.children)s.some(v=>h.contains(v))||a.add(Ti(h));u=u.parentElement}}return a.dispose},[n,t,r])}function Jc(e,t,r){let n=He(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&r()});p.useEffect(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let i=Fe();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>n.current(o));a.observe(o),i.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>n.current(o));a.observe(o),i.add(()=>a.disconnect())}return()=>i.dispose()},[t,n,e])}let ur=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Yc=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Se=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Se||{}),wn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(wn||{}),Xc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Xc||{});function Qc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ur)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}function Zc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Yc)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ci=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ci||{});function ef(e,t=0){var r;return e===((r=or(e))==null?void 0:r.body)?!1:$e(t,{0(){return e.matches(ur)},1(){let n=e;for(;n!==null;){if(n.matches(ur))return!0;n=n.parentElement}return!1}})}var tf=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(tf||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function xe(e){e==null||e.focus({preventScroll:!0})}let rf=["textarea","input"].join(",");function nf(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,rf))!=null?r:!1}function of(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);if(o===null||i===null)return 0;let a=o.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ct(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?of(e):e:t&64?Zc(e):Qc(e);o.length>0&&a.length>1&&(a=a.filter(g=>!o.some(c=>c!=null&&"current"in c?(c==null?void 0:c.current)===g:c===g))),n=n??i.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(n))-1;if(t&4)return Math.max(0,a.indexOf(n))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=t&32?{preventScroll:!0}:{},u=0,h=a.length,v;do{if(u>=h||u+h<=0)return 0;let g=l+u;if(t&16)g=(g+h)%h;else{if(g<0)return 3;if(g>=h)return 1}v=a[g],v==null||v.focus(f),u+=s}while(v!==i.activeElement);return t&6&&nf(v)&&v.select(),2}function Fi(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function af(){return/Android/gi.test(window.navigator.userAgent)}function sf(){return Fi()||af()}function Ft(e,t,r,n){let o=He(r);p.useEffect(()=>{if(!e)return;function i(a){o.current(a)}return document.addEventListener(t,i,n),()=>document.removeEventListener(t,i,n)},[e,t,n])}function $i(e,t,r,n){let o=He(r);p.useEffect(()=>{if(!e)return;function i(a){o.current(a)}return window.addEventListener(t,i,n),()=>window.removeEventListener(t,i,n)},[e,t,n])}const _i=30;function lf(e,t,r){let n=ut(e,"outside-click"),o=He(r),i=p.useCallback(function(l,f){if(l.defaultPrevented)return;let u=f(l);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let h=function v(g){return typeof g=="function"?v(g()):Array.isArray(g)||g instanceof Set?g:[g]}(t);for(let v of h)if(v!==null&&(v.contains(u)||l.composed&&l.composedPath().includes(v)))return;return!ef(u,Ci.Loose)&&u.tabIndex!==-1&&l.preventDefault(),o.current(l,u)},[o,t]),a=p.useRef(null);Ft(n,"pointerdown",l=>{var f,u;a.current=((u=(f=l.composedPath)==null?void 0:f.call(l))==null?void 0:u[0])||l.target},!0),Ft(n,"mousedown",l=>{var f,u;a.current=((u=(f=l.composedPath)==null?void 0:f.call(l))==null?void 0:u[0])||l.target},!0),Ft(n,"click",l=>{sf()||a.current&&(i(l,()=>a.current),a.current=null)},!0);let s=p.useRef({x:0,y:0});Ft(n,"touchstart",l=>{s.current.x=l.touches[0].clientX,s.current.y=l.touches[0].clientY},!0),Ft(n,"touchend",l=>{let f={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(f.x-s.current.x)>=_i||Math.abs(f.y-s.current.y)>=_i))return i(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),$i(n,"blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function $t(...e){return p.useMemo(()=>or(...e),[...e])}function Ni(e,t,r,n){let o=He(r);p.useEffect(()=>{e=e??window;function i(a){o.current(a)}return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)},[e,t,n])}function uf(){let e;return{before({doc:t}){var r;let n=t.documentElement,o=(r=t.defaultView)!=null?r:window;e=Math.max(0,o.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,o=Math.max(0,n.clientWidth-n.offsetWidth),i=Math.max(0,e-o);r.style(n,"paddingRight",`${i}px`)}}}function cf(){return Fi()?{before({doc:e,d:t,meta:r}){function n(o){return r.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=Fe();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,a=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let l=s.target.closest("a");if(!l)return;let{hash:f}=new URL(l.href),u=e.querySelector(f);u&&!n(u)&&(a=u)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(n(s.target)){let l=s.target;for(;l.parentElement&&n(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(n(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;i!==l&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function ff(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function df(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let Ve=Oi(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:Fe(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:df(r)},o=[cf(),uf(),ff()];o.forEach(({before:i})=>i==null?void 0:i(n)),o.forEach(({after:i})=>i==null?void 0:i(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ve.subscribe(()=>{let e=Ve.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let n=t.get(r.doc)==="hidden",o=r.count!==0;(o&&!n||!o&&n)&&Ve.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&Ve.dispatch("TEARDOWN",r)}});function pf(e,t,r=()=>({containers:[]})){let n=Ai(Ve),o=t?n.get(t):void 0,i=o?o.count>0:!1;return ne(()=>{if(!(!t||!e))return Ve.dispatch("PUSH",t,r),()=>Ve.dispatch("POP",t,r)},[e,t]),i}function mf(e,t,r=()=>[document.body]){let n=ut(e,"scroll-lock");pf(n,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],r]}})}function yf(e=0){let[t,r]=p.useState(e),n=p.useCallback(l=>r(l),[t]),o=p.useCallback(l=>r(f=>f|l),[t]),i=p.useCallback(l=>(t&l)===l,[t]),a=p.useCallback(l=>r(f=>f&~l),[r]),s=p.useCallback(l=>r(f=>f^l),[r]);return{flags:t,setFlag:n,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}var Mi,Ri;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Mi=process==null?void 0:process.env)==null?void 0:Mi.NODE_ENV)==="test"&&typeof((Ri=Element==null?void 0:Element.prototype)==null?void 0:Ri.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
43
|
+
`)),[]});var hf=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(hf||{});function vf(e){let t={};for(let r in e)e[r]===!0&&(t[`data-${r}`]="");return t}function gf(e,t,r,n){let[o,i]=p.useState(r),{hasFlag:a,addFlag:s,removeFlag:l}=yf(e&&o?3:0),f=p.useRef(!1),u=p.useRef(!1),h=mn();return ne(()=>{var v;if(e){if(r&&i(!0),!t){r&&s(3);return}return(v=n==null?void 0:n.start)==null||v.call(n,r),bf(t,{inFlight:f,prepare(){u.current?u.current=!1:u.current=f.current,f.current=!0,!u.current&&(r?(s(3),l(4)):(s(4),l(2)))},run(){u.current?r?(l(3),s(4)):(l(4),s(3)):r?l(1):s(1)},done(){var g;u.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(f.current=!1,l(7),r||i(!1),(g=n==null?void 0:n.end)==null||g.call(n,r))}})}},[e,r,t,h]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function bf(e,{prepare:t,run:r,done:n,inFlight:o}){let i=Fe();return Ef(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{r(),i.requestAnimationFrame(()=>{i.add(wf(e,n))})}),i.dispose}function wf(e,t){var r,n;let o=Fe();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let a=(n=(r=e.getAnimations)==null?void 0:r.call(e).filter(s=>s instanceof CSSTransition))!=null?n:[];return a.length===0?(t(),o.dispose):(Promise.allSettled(a.map(s=>s.finished)).then(()=>{i||t()}),o.dispose)}function Ef(e,{inFlight:t,prepare:r}){if(t!=null&&t.current){r();return}let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}function En(e,t){let r=p.useRef([]),n=q(e);p.useEffect(()=>{let o=[...r.current];for(let[i,a]of t.entries())if(r.current[i]!==a){let s=n(t,o);return r.current=t,s}},[n,...t])}let cr=p.createContext(null);cr.displayName="OpenClosedContext";var me=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(me||{});function fr(){return p.useContext(cr)}function Sf({value:e,children:t}){return p.createElement(cr.Provider,{value:e},t)}function xf({children:e}){return p.createElement(cr.Provider,{value:null},e)}function Of(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ne=[];Of(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Ne[0]===t.target)return;let r=t.target;r=r.closest(ur),Ne.unshift(r??t.target),Ne=Ne.filter(n=>n!=null&&n.isConnected),Ne.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Di(e){let t=q(e),r=p.useRef(!1);p.useEffect(()=>(r.current=!1,()=>{r.current=!0,ir(()=>{r.current&&t()})}),[t])}function Af(){let e=typeof document>"u";return"useSyncExternalStore"in pt?(t=>t.useSyncExternalStore)(pt)(()=>()=>{},()=>!1,()=>!e):!1}function _t(){let e=Af(),[t,r]=pt.useState(We.isHandoffComplete);return t&&We.isHandoffComplete===!1&&r(!1),pt.useEffect(()=>{t!==!0&&r(!0)},[t]),pt.useEffect(()=>We.handoff(),[]),e?!1:t}let Ii=p.createContext(!1);function Tf(){return p.useContext(Ii)}function Li(e){return p.createElement(Ii.Provider,{value:e.force},e.children)}function Pf(e){let t=Tf(),r=p.useContext(ji),n=$t(e),[o,i]=p.useState(()=>{var a;if(!t&&r!==null)return(a=r.current)!=null?a:null;if(We.isServer)return null;let s=n==null?void 0:n.getElementById("headlessui-portal-root");if(s)return s;if(n===null)return null;let l=n.createElement("div");return l.setAttribute("id","headlessui-portal-root"),n.body.appendChild(l)});return p.useEffect(()=>{o!==null&&(n!=null&&n.body.contains(o)||n==null||n.body.appendChild(o))},[o,n]),p.useEffect(()=>{t||r!==null&&i(r.current)},[r,i,t]),o}let ki=p.Fragment,Cf=se(function(e,t){let r=e,n=p.useRef(null),o=be(kc(u=>{n.current=u}),t),i=$t(n),a=Pf(n),[s]=p.useState(()=>{var u;return We.isServer?null:(u=i==null?void 0:i.createElement("div"))!=null?u:null}),l=p.useContext(Sn),f=_t();return ne(()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))},[a,s]),ne(()=>{if(s&&l)return l.register(s)},[l,s]),Di(()=>{var u;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&((u=a.parentElement)==null||u.removeChild(a)))}),f?!a||!s?null:ya.createPortal(fe({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:ki,name:"Portal"}),s):null});function Ff(e,t){let r=be(t),{enabled:n=!0,...o}=e;return n?p.createElement(Cf,{...o,ref:r}):fe({ourProps:{ref:r},theirProps:o,slot:{},defaultTag:ki,name:"Portal"})}let $f=p.Fragment,ji=p.createContext(null);function _f(e,t){let{target:r,...n}=e,o={ref:be(t)};return p.createElement(ji.Provider,{value:r},fe({ourProps:o,theirProps:n,defaultTag:$f,name:"Popover.Group"}))}let Sn=p.createContext(null);function Nf(){let e=p.useContext(Sn),t=p.useRef([]),r=q(i=>(t.current.push(i),e&&e.register(i),()=>n(i))),n=q(i=>{let a=t.current.indexOf(i);a!==-1&&t.current.splice(a,1),e&&e.unregister(i)}),o=p.useMemo(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,p.useMemo(()=>function({children:i}){return p.createElement(Sn.Provider,{value:o},i)},[o])]}let Mf=se(Ff),Bi=se(_f),Rf=Object.assign(Mf,{Group:Bi});function Df(e,t=typeof document<"u"?document.defaultView:null,r){let n=ut(e,"escape");Ni(t,"keydown",o=>{n&&(o.defaultPrevented||o.key===xi.Escape&&r(o))})}function If(){var e;let[t]=p.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=p.useState((e=t==null?void 0:t.matches)!=null?e:!1);return ne(()=>{if(!t)return;function o(i){n(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),r}function Lf({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=$t(r),o=q(()=>{var i,a;let s=[];for(let l of e)l!==null&&(l instanceof HTMLElement?s.push(l):"current"in l&&l.current instanceof HTMLElement&&s.push(l.current));if(t!=null&&t.current)for(let l of t.current)s.push(l);for(let l of(i=n==null?void 0:n.querySelectorAll("html > *, body > *"))!=null?i:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(r&&(l.contains(r)||l.contains((a=r==null?void 0:r.getRootNode())==null?void 0:a.host))||s.some(f=>l.contains(f))||s.push(l));return s});return{resolveContainers:o,contains:q(i=>o().some(a=>a.contains(i)))}}let Ui=p.createContext(null);function Wi({children:e,node:t}){let[r,n]=p.useState(null),o=Hi(t??r);return p.createElement(Ui.Provider,{value:o},e,o===null&&p.createElement(vn,{features:lr.Hidden,ref:i=>{var a,s;if(i){for(let l of(s=(a=or(i))==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(i)){n(l);break}}}}))}function Hi(e=null){var t;return(t=p.useContext(Ui))!=null?t:e}function xn(){let e=p.useRef(!1);return ne(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Nt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Nt||{});function kf(){let e=p.useRef(0);return $i(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function qi(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}let jf="div";var ze=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(ze||{});function Bf(e,t){let r=p.useRef(null),n=be(r,t),{initialFocus:o,initialFocusFallback:i,containers:a,features:s=15,...l}=e;_t()||(s=0);let f=$t(r);qf(s,{ownerDocument:f});let u=Vf(s,{ownerDocument:f,container:r,initialFocus:o,initialFocusFallback:i});zf(s,{ownerDocument:f,container:r,containers:a,previousActiveElement:u});let h=kf(),v=q(w=>{let S=r.current;S&&(x=>x())(()=>{$e(h.current,{[Nt.Forwards]:()=>{Ct(S,Se.First,{skipElements:[w.relatedTarget,i]})},[Nt.Backwards]:()=>{Ct(S,Se.Last,{skipElements:[w.relatedTarget,i]})}})})}),g=ut(!!(s&2),"focus-trap#tab-lock"),c=mn(),m=p.useRef(!1),y={ref:n,onKeyDown(w){w.key=="Tab"&&(m.current=!0,c.requestAnimationFrame(()=>{m.current=!1}))},onBlur(w){if(!(s&4))return;let S=qi(a);r.current instanceof HTMLElement&&S.add(r.current);let x=w.relatedTarget;x instanceof HTMLElement&&x.dataset.headlessuiFocusGuard!=="true"&&(Vi(S,x)||(m.current?Ct(r.current,$e(h.current,{[Nt.Forwards]:()=>Se.Next,[Nt.Backwards]:()=>Se.Previous})|Se.WrapAround,{relativeTo:w.target}):w.target instanceof HTMLElement&&xe(w.target)))}};return p.createElement(p.Fragment,null,g&&p.createElement(vn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:lr.Focusable}),fe({ourProps:y,theirProps:l,defaultTag:jf,name:"FocusTrap"}),g&&p.createElement(vn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:lr.Focusable}))}let Uf=se(Bf),Wf=Object.assign(Uf,{features:ze});function Hf(e=!0){let t=p.useRef(Ne.slice());return En(([r],[n])=>{n===!0&&r===!1&&ir(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=Ne.slice())},[e,Ne,t]),q(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function qf(e,{ownerDocument:t}){let r=!!(e&8),n=Hf(r);En(()=>{r||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&xe(n())},[r]),Di(()=>{r&&xe(n())})}function Vf(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:o}){let i=p.useRef(null),a=ut(!!(e&1),"focus-trap#initial-focus"),s=xn();return En(()=>{if(e===0)return;if(!a){o!=null&&o.current&&xe(o.current);return}let l=r.current;l&&ir(()=>{if(!s.current)return;let f=t==null?void 0:t.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===f){i.current=f;return}}else if(l.contains(f)){i.current=f;return}if(n!=null&&n.current)xe(n.current);else{if(e&16){if(Ct(l,Se.First|Se.AutoFocus)!==wn.Error)return}else if(Ct(l,Se.First)!==wn.Error)return;if(o!=null&&o.current&&(xe(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t==null?void 0:t.activeElement})},[o,a,e]),i}function zf(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:o}){let i=xn(),a=!!(e&4);Ni(t==null?void 0:t.defaultView,"focus",s=>{if(!a||!i.current)return;let l=qi(n);r.current instanceof HTMLElement&&l.add(r.current);let f=o.current;if(!f)return;let u=s.target;u&&u instanceof HTMLElement?Vi(l,u)?(o.current=u,xe(u)):(s.preventDefault(),s.stopPropagation(),xe(f)):xe(o.current)},!0)}function Vi(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function zi(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:Ki)!==p.Fragment||p.Children.count(e.children)===1}let dr=p.createContext(null);dr.displayName="TransitionContext";var Gf=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Gf||{});function Kf(){let e=p.useContext(dr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Jf(){let e=p.useContext(pr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let pr=p.createContext(null);pr.displayName="NestingContext";function mr(e){return"children"in e?mr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Gi(e,t){let r=He(e),n=p.useRef([]),o=xn(),i=mn(),a=q((g,c=_e.Hidden)=>{let m=n.current.findIndex(({el:y})=>y===g);m!==-1&&($e(c,{[_e.Unmount](){n.current.splice(m,1)},[_e.Hidden](){n.current[m].state="hidden"}}),i.microTask(()=>{var y;!mr(n)&&o.current&&((y=r.current)==null||y.call(r))}))}),s=q(g=>{let c=n.current.find(({el:m})=>m===g);return c?c.state!=="visible"&&(c.state="visible"):n.current.push({el:g,state:"visible"}),()=>a(g,_e.Unmount)}),l=p.useRef([]),f=p.useRef(Promise.resolve()),u=p.useRef({enter:[],leave:[]}),h=q((g,c,m)=>{l.current.splice(0),t&&(t.chains.current[c]=t.chains.current[c].filter(([y])=>y!==g)),t==null||t.chains.current[c].push([g,new Promise(y=>{l.current.push(y)})]),t==null||t.chains.current[c].push([g,new Promise(y=>{Promise.all(u.current[c].map(([w,S])=>S)).then(()=>y())})]),c==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>m(c)):m(c)}),v=q((g,c,m)=>{Promise.all(u.current[c].splice(0).map(([y,w])=>w)).then(()=>{var y;(y=l.current.shift())==null||y()}).then(()=>m(c))});return p.useMemo(()=>({children:n,register:s,unregister:a,onStart:h,onStop:v,wait:f,chains:u}),[s,a,n,h,v,u,f])}let Ki=p.Fragment,Ji=ar.RenderStrategy;function Yf(e,t){var r,n;let{transition:o=!0,beforeEnter:i,afterEnter:a,beforeLeave:s,afterLeave:l,enter:f,enterFrom:u,enterTo:h,entered:v,leave:g,leaveFrom:c,leaveTo:m,...y}=e,[w,S]=p.useState(null),x=p.useRef(null),O=zi(e),T=be(...O?[x,t,S]:t===null?[]:[t]),P=(r=y.unmount)==null||r?_e.Unmount:_e.Hidden,{show:_,appear:j,initial:H}=Kf(),[I,X]=p.useState(_?"visible":"hidden"),Z=Jf(),{register:C,unregister:L}=Z;ne(()=>C(x),[C,x]),ne(()=>{if(P===_e.Hidden&&x.current){if(_&&I!=="visible"){X("visible");return}return $e(I,{hidden:()=>L(x),visible:()=>C(x)})}},[I,x,C,L,_,P]);let K=_t();ne(()=>{if(O&&K&&I==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,I,K,O]);let ce=H&&!j,ye=j&&_&&H,we=p.useRef(!1),re=Gi(()=>{we.current||(X("hidden"),L(x))},Z),U=q(Ke=>{we.current=!0;let Re=Ke?"enter":"leave";re.onStart(x,Re,Ee=>{Ee==="enter"?i==null||i():Ee==="leave"&&(s==null||s())})}),Me=q(Ke=>{let Re=Ke?"enter":"leave";we.current=!1,re.onStop(x,Re,Ee=>{Ee==="enter"?a==null||a():Ee==="leave"&&(l==null||l())}),Re==="leave"&&!mr(re)&&(X("hidden"),L(x))});p.useEffect(()=>{O&&o||(U(_),Me(_))},[_,O,o]);let hr=!(!o||!O||!K||ce),[,ee]=gf(hr,w,_,{start:U,end:Me}),Pn=qe({ref:T,className:((n=yn(y.className,ye&&f,ye&&u,ee.enter&&f,ee.enter&&ee.closed&&u,ee.enter&&!ee.closed&&h,ee.leave&&g,ee.leave&&!ee.closed&&c,ee.leave&&ee.closed&&m,!ee.transition&&_&&v))==null?void 0:n.trim())||void 0,...vf(ee)}),Ge=0;return I==="visible"&&(Ge|=me.Open),I==="hidden"&&(Ge|=me.Closed),ee.enter&&(Ge|=me.Opening),ee.leave&&(Ge|=me.Closing),p.createElement(pr.Provider,{value:re},p.createElement(Sf,{value:Ge},fe({ourProps:Pn,theirProps:y,defaultTag:Ki,features:Ji,visible:I==="visible",name:"Transition.Child"})))}function Xf(e,t){let{show:r,appear:n=!1,unmount:o=!0,...i}=e,a=p.useRef(null),s=zi(e),l=be(...s?[a,t]:t===null?[]:[t]);_t();let f=fr();if(r===void 0&&f!==null&&(r=(f&me.Open)===me.Open),r===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,h]=p.useState(r?"visible":"hidden"),v=Gi(()=>{r||h("hidden")}),[g,c]=p.useState(!0),m=p.useRef([r]);ne(()=>{g!==!1&&m.current[m.current.length-1]!==r&&(m.current.push(r),c(!1))},[m,r]);let y=p.useMemo(()=>({show:r,appear:n,initial:g}),[r,n,g]);ne(()=>{r?h("visible"):!mr(v)&&a.current!==null&&h("hidden")},[r,v]);let w={unmount:o},S=q(()=>{var O;g&&c(!1),(O=e.beforeEnter)==null||O.call(e)}),x=q(()=>{var O;g&&c(!1),(O=e.beforeLeave)==null||O.call(e)});return p.createElement(pr.Provider,{value:v},p.createElement(dr.Provider,{value:y},fe({ourProps:{...w,as:p.Fragment,children:p.createElement(Yi,{ref:l,...w,...i,beforeEnter:S,beforeLeave:x})},theirProps:{},defaultTag:p.Fragment,features:Ji,visible:u==="visible",name:"Transition"})))}function Qf(e,t){let r=p.useContext(dr)!==null,n=fr()!==null;return p.createElement(p.Fragment,null,!r&&n?p.createElement(On,{ref:t,...e}):p.createElement(Yi,{ref:t,...e}))}let On=se(Xf),Yi=se(Yf),ct=se(Qf),Xi=Object.assign(On,{Child:ct,Root:On});var Zf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Zf||{}),ed=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ed||{});let td={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},An=p.createContext(null);An.displayName="DialogContext";function yr(e){let t=p.useContext(An);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,yr),r}return t}function rd(e,t){return $e(t.type,td,e,t)}let Qi=se(function(e,t){let r=p.useId(),{id:n=`headlessui-dialog-${r}`,open:o,onClose:i,initialFocus:a,role:s="dialog",autoFocus:l=!0,__demoMode:f=!1,unmount:u=!1,...h}=e,v=p.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(v.current||(v.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let g=fr();o===void 0&&g!==null&&(o=(g&me.Open)===me.Open);let c=p.useRef(null),m=be(c,t),y=$t(c),w=o?0:1,[S,x]=p.useReducer(rd,{titleId:null,descriptionId:null,panelRef:p.createRef()}),O=q(()=>i(!1)),T=q(U=>x({type:0,id:U})),P=_t()?w===0:!1,[_,j]=Nf(),H={get current(){var U;return(U=S.panelRef.current)!=null?U:c.current}},I=Hi(),{resolveContainers:X}=Lf({mainTreeNode:I,portals:_,defaultContainers:[H]}),Z=g!==null?(g&me.Closing)===me.Closing:!1;Kc(f||Z?!1:P,{allowed:q(()=>{var U,Me;return[(Me=(U=c.current)==null?void 0:U.closest("[data-headlessui-portal]"))!=null?Me:null]}),disallowed:q(()=>{var U;return[(U=I==null?void 0:I.closest("body > *:not(#headlessui-portal-root)"))!=null?U:null]})}),lf(P,X,U=>{U.preventDefault(),O()}),Df(P,y==null?void 0:y.defaultView,U=>{U.preventDefault(),U.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),O()}),mf(f||Z?!1:P,y,X),Jc(P,c,O);let[C,L]=jc(),K=p.useMemo(()=>[{dialogState:w,close:O,setTitleId:T,unmount:u},S],[w,S,O,T,u]),ce=p.useMemo(()=>({open:w===0}),[w]),ye={ref:m,id:n,role:s,tabIndex:-1,"aria-modal":f?void 0:w===0?!0:void 0,"aria-labelledby":S.titleId,"aria-describedby":C,unmount:u},we=!If(),re=ze.None;return P&&!f&&(re|=ze.RestoreFocus,re|=ze.TabLock,l&&(re|=ze.AutoFocus),we&&(re|=ze.InitialFocus)),p.createElement(xf,null,p.createElement(Li,{force:!0},p.createElement(Rf,null,p.createElement(An.Provider,{value:K},p.createElement(Bi,{target:c},p.createElement(Li,{force:!1},p.createElement(L,{slot:ce},p.createElement(j,null,p.createElement(Wf,{initialFocus:a,initialFocusFallback:c,containers:X,features:re},p.createElement(Vc,{value:O},fe({ourProps:ye,theirProps:h,slot:ce,defaultTag:nd,features:od,visible:w===0,name:"Dialog"})))))))))))}),nd="div",od=ar.RenderStrategy|ar.Static;function id(e,t){let{transition:r=!1,open:n,...o}=e,i=fr(),a=e.hasOwnProperty("open")||i!==null,s=e.hasOwnProperty("onClose");if(!a&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(n!==void 0||r)&&!o.static?p.createElement(Wi,null,p.createElement(Xi,{show:n,transition:r,unmount:o.unmount},p.createElement(Qi,{ref:t,...o}))):p.createElement(Wi,null,p.createElement(Qi,{ref:t,open:n,...o}))}let ad="div";function sd(e,t){let r=p.useId(),{id:n=`headlessui-dialog-panel-${r}`,transition:o=!1,...i}=e,[{dialogState:a,unmount:s},l]=yr("Dialog.Panel"),f=be(t,l.panelRef),u=p.useMemo(()=>({open:a===0}),[a]),h=q(g=>{g.stopPropagation()}),v={ref:f,id:n,onClick:h};return p.createElement(o?ct:p.Fragment,{...o?{unmount:s}:{}},fe({ourProps:v,theirProps:i,slot:u,defaultTag:ad,name:"Dialog.Panel"}))}let ld="div";function ud(e,t){let{transition:r=!1,...n}=e,[{dialogState:o,unmount:i}]=yr("Dialog.Backdrop"),a=p.useMemo(()=>({open:o===0}),[o]),s={ref:t,"aria-hidden":!0};return p.createElement(r?ct:p.Fragment,{...r?{unmount:i}:{}},fe({ourProps:s,theirProps:n,slot:a,defaultTag:ld,name:"Dialog.Backdrop"}))}let cd="h2";function fd(e,t){let r=p.useId(),{id:n=`headlessui-dialog-title-${r}`,...o}=e,[{dialogState:i,setTitleId:a}]=yr("Dialog.Title"),s=be(t);p.useEffect(()=>(a(n),()=>a(null)),[n,a]);let l=p.useMemo(()=>({open:i===0}),[i]);return fe({ourProps:{ref:s,id:n},theirProps:o,slot:l,defaultTag:cd,name:"Dialog.Title"})}let dd=se(id),Tn=se(sd);se(ud);let pd=se(fd),md=Object.assign(dd,{Panel:Tn,Title:pd,Description:Hc});function Zi({onClick:e}){return R.jsxs("button",{type:"button",className:"im-close-button text-gray-400 hover:text-gray-500",onClick:e,children:[R.jsx("span",{className:"sr-only",children:"Close"}),R.jsx("svg",{className:"size-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true",children:R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})]})}const yd=({modalContext:e,modalProps:t,children:r})=>R.jsx("div",{className:"im-modal-container fixed inset-0 z-40 overflow-y-auto p-4",children:R.jsx("div",{className:nr("im-modal-positioner flex min-h-full justify-center",{"items-start":t.position==="top","items-center":t.position==="center","items-end":t.position==="bottom"}),children:R.jsx(ct,{enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",afterLeave:e.afterLeave,className:nr("im-modal-wrapper w-full transition duration-300 ease-in-out",e.onTopOfStack?"":"blur-sm",{"sm:max-w-sm":t.maxWidth==="sm","sm:max-w-md":t.maxWidth==="md","sm:max-w-md md:max-w-lg":t.maxWidth==="lg","sm:max-w-md md:max-w-xl":t.maxWidth==="xl","sm:max-w-md md:max-w-xl lg:max-w-2xl":t.maxWidth==="2xl","sm:max-w-md md:max-w-xl lg:max-w-3xl":t.maxWidth==="3xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-4xl":t.maxWidth==="4xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl":t.maxWidth==="5xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl":t.maxWidth==="6xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl":t.maxWidth==="7xl"}),children:R.jsxs(Tn,{className:`im-modal-content relative ${t.paddingClasses} ${t.panelClasses}`,children:[t.closeButton&&R.jsx("div",{className:"absolute right-0 top-0 pr-3 pt-3",children:R.jsx(Zi,{onClick:e.close})}),typeof r=="function"?r({modalContext:e,modalProps:t}):r]})})})}),hd=({modalContext:e,modalProps:t,children:r})=>R.jsx("div",{className:"im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden",children:R.jsx("div",{className:nr("im-slideover-positioner flex min-h-full items-center",{"justify-start":t.position==="left","justify-end":t.position==="right"}),children:R.jsx(ct,{enterFrom:`opacity-0 ${t.position==="left"?"-translate-x-full":"translate-x-full"}`,enterTo:"opacity-100 translate-x-0",leaveFrom:"opacity-100 translate-x-0",leaveTo:`opacity-0 ${t.position==="left"?"-translate-x-full":"translate-x-full"}`,afterLeave:e.afterLeave,className:nr("im-slideover-wrapper w-full transition duration-300 ease-in-out",e.onTopOfStack?"":"blur-sm",{"sm:max-w-sm":t.maxWidth==="sm","sm:max-w-md":t.maxWidth==="md","sm:max-w-md md:max-w-lg":t.maxWidth==="lg","sm:max-w-md md:max-w-xl":t.maxWidth==="xl","sm:max-w-md md:max-w-xl lg:max-w-2xl":t.maxWidth==="2xl","sm:max-w-md md:max-w-xl lg:max-w-3xl":t.maxWidth==="3xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-4xl":t.maxWidth==="4xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl":t.maxWidth==="5xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl":t.maxWidth==="6xl","sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl":t.maxWidth==="7xl"}),children:R.jsxs(Tn,{className:`im-slideover-content relative ${t.paddingClasses} ${t.panelClasses}`,children:[t.closeButton&&R.jsx("div",{className:"absolute right-0 top-0 pr-3 pt-3",children:R.jsx(Zi,{onClick:e.close})}),typeof r=="function"?r({modalContext:e,modalProps:t}):r]})})})}),ea=p.forwardRef(({name:e,children:t,...r},n)=>{const o=a=>typeof t=="function"?t(a):t,i=p.useRef(null);return p.useImperativeHandle(n,()=>i.current,[i]),R.jsx(dn,{ref:i,name:e,...r,children:({afterLeave:a,close:s,emit:l,getChildModal:f,getParentModal:u,modalContext:h,modalProps:v,reload:g})=>R.jsx(Xi,{appear:!0,show:h.open??!1,children:R.jsxs(md,{as:"div",className:"im-dialog relative z-20",onClose:()=>v.closeExplicitly?null:s(),"data-inertiaui-modal-id":h.id,"data-inertiaui-modal-index":h.index,children:[h.index===0?R.jsx(ct,{enter:"transition transform ease-in-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition transform ease-in-out duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:h.onTopOfStack?R.jsx("div",{className:"im-backdrop fixed inset-0 z-30 bg-black/75","aria-hidden":"true"}):R.jsx("div",{})}):null,h.index>0&&h.onTopOfStack?R.jsx("div",{className:"im-backdrop fixed inset-0 z-30 bg-black/75"}):null,v.slideover?R.jsx(hd,{modalContext:h,modalProps:v,children:o({afterLeave:a,close:s,emit:l,getChildModal:f,getParentModal:u,modalContext:h,modalProps:v,reload:g})}):R.jsx(yd,{modalContext:h,modalProps:v,children:o({afterLeave:a,close:s,emit:l,getChildModal:f,getParentModal:u,modalContext:h,modalProps:v,reload:g})})]})})})});ea.displayName="Modal";const vd=({href:e,method:t="get",data:r={},as:n="a",fragment:o=null,headers:i={},queryStringArrayFormat:a="brackets",onAfterLeave:s=null,onBlur:l=null,onClose:f=null,onError:u=null,onFocus:h=null,onStart:v=null,onSuccess:g=null,children:c,...m})=>{const[y,w]=p.useState(!1),[S,x]=p.useState(null),{stack:O,visit:T}=rr(),P={},_={};Object.keys(m).forEach(C=>{hi.includes(C)||(C.startsWith("on")&&typeof m[C]=="function"?C.toLowerCase()in window?P[C]=m[C]:_[C]=m[C]:P[C]=m[C])}),p.useEffect(()=>{o&&window.location.hash===`#${o}`&&Z()},[o]);const[j,H]=p.useState(!1);p.useEffect(()=>{S&&(S.onTopOfStack&&j?h==null||h():!S.onTopOfStack&&!j&&(l==null||l()),H(!S.onTopOfStack))},[O]);const I=p.useCallback(C=>{o&&C===0&&(window.location.hash=""),f==null||f()},[f,o]),X=p.useCallback(()=>{x(null),s==null||s()},[s]),Z=p.useCallback(C=>{C==null||C.preventDefault(),!y&&(e.startsWith("#")||(w(!0),v==null||v()),T(e,t,r,i,Ks(xo(m,hi)),()=>I(O.length),X,a).then(L=>{x(L),o&&L.index===0&&(window.location.hash=o),L.registerEventListenersFromProps(_),g==null||g()}).catch(L=>{console.error(L),u==null||u(L)}).finally(()=>w(!1)))},[e,t,r,i,a,m,I,X]);return R.jsx(n,{...P,href:e,onClick:Z,children:typeof c=="function"?c({loading:y}):c})};W.HeadlessModal=dn,W.Modal=ea,W.ModalLink=vd,W.ModalRoot=Fc,W.ModalStackProvider=Cc,W.getConfig=Dn,W.putConfig=ba,W.resetConfig=ga,W.useModalIndex=vi,W.useModalStack=rr,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
|