@inertiaui/modal-react 0.1.0 → 0.1.1
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 +1 -0
- package/dist/inertiaui-modal.umd.cjs +18 -18
- package/package.json +1 -1
- package/src/inertiauiModal.js +2 -1
package/dist/inertiaui-modal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(H,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@inertiajs/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@inertiajs/react","react-dom"],m):(H=typeof globalThis<"u"?globalThis:H||self,m(H.InertiaUIModal={},H.React,H.react,H.ReactDOM))})(this,function(H,m,Re,ma){"use strict";var Wd=Object.defineProperty;var Hd=(H,m,Re)=>m in H?Wd(H,m,{enumerable:!0,configurable:!0,writable:!0,value:Re}):H[m]=Re;var Oe=(H,m,Re)=>Hd(H,typeof m!="symbol"?m+"":m,Re);function ya(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=ya(m),Rt={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 ha{constructor(){this.config={},this.reset()}reset(){this.config=JSON.parse(JSON.stringify(Rt))}put(t,r){if(typeof t=="object"){this.config={type:t.type??Rt.type,modal:{...Rt.modal,...t.modal??{}},slideover:{...Rt.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 ha,va=()=>It.reset(),ga=(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 ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wa(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 Rn;function
|
|
9
|
+
*/var Rn;function Ea(){if(Rn)return mt;Rn=1;var e=m,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 In;function
|
|
18
|
-
`+
|
|
17
|
+
*/var In;function Sa(){return In||(In=1,process.env.NODE_ENV!=="production"&&function(){var e=m,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,p="@@iterator";function y(d){if(d===null||typeof d!="object")return null;var E=c&&d[c]||d[p];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,W;W=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===W||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 Tn(){{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,De;function Ee(d,E,A){{if(De===void 0)try{throw Error()}catch(k){var F=k.stack.trim().match(/\n( *(at )?)/);De=F&&F[1]||""}return`
|
|
18
|
+
`+De+d}}var Pn=!1,vr;{var vd=typeof WeakMap=="function"?WeakMap:Map;vr=new vd}function ea(d,E){if(!d||Pn)return"";{var A=vr.get(d);if(A!==void 0)return A}var F;Pn=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Ke.current,Ke.current=null,Tn();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{Pn=!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 gd(d,E,A){return ea(d,!1)}function bd(d){var E=d.prototype;return!!(E&&E.isReactComponent)}function gr(d,E,A){if(d==null)return"";if(typeof d=="function")return ea(d,bd(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 gd(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,ta={},ra=w.ReactDebugCurrentFrame;function br(d){if(d){var E=d._owner,A=gr(d.type,d._source,E?E.type:null);ra.setExtraStackFrame(A)}else ra.setExtraStackFrame(null)}function wd(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 ta)&&(ta[M.message]=!0,br(k),S("Failed %s type: %s",A,M.message),br(null))}}}var Ed=Array.isArray;function Cn(d){return Ed(d)}function Sd(d){{var E=typeof Symbol=="function"&&Symbol.toStringTag,A=E&&d[Symbol.toStringTag]||d.constructor.name||"Object";return A}}function xd(d){try{return na(d),!1}catch{return!0}}function na(d){return""+d}function oa(d){if(xd(d))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Sd(d)),na(d)}var Dt=w.ReactCurrentOwner,Od={key:!0,ref:!0,__self:!0,__source:!0},ia,aa,Fn;Fn={};function Ad(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 Td(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 Pd(d,E){if(typeof d.ref=="string"&&Dt.current&&E&&Dt.current.stateNode!==E){var A=C(Dt.current.type);Fn[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(Dt.current.type),d.ref),Fn[A]=!0)}}function Cd(d,E){{var A=function(){ia||(ia=!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 Fd(d,E){{var A=function(){aa||(aa=!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 _d(d,E,A,F,k){{var B,D={},M=null,oe=null;A!==void 0&&(oa(A),M=""+A),Td(E)&&(oa(E.key),M=""+E.key),Ad(E)&&(oe=E.ref,Pd(E,k));for(B in E)Mt.call(E,B)&&!Od.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&&Cd(D,J),oe&&Fd(D,J)}return $d(d,M,oe,k,F,Dt.current,D)}}var $n=w.ReactCurrentOwner,sa=w.ReactDebugCurrentFrame;function ft(d){if(d){var E=d._owner,A=gr(d.type,d._source,E?E.type:null);sa.setExtraStackFrame(A)}else sa.setExtraStackFrame(null)}var _n;_n=!1;function Nn(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function la(){{if($n.current){var d=C($n.current.type);if(d)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+d+"`."}return""}}function Nd(d){return""}var
|
|
23
|
+
Check the render method of \``+d+"`."}return""}}function Nd(d){return""}var ua={};function Md(d){{var E=la();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 ca(d,E){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var A=Md(E);if(ua[A])return;ua[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 fa(d,E){{if(typeof d!="object")return;if(Cn(d))for(var A=0;A<d.length;A++){var F=d[A];Nn(F)&&ca(F,E)}else if(Nn(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;)Nn(D.value)&&ca(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);wd(A,d.props,"prop",F,d)}else if(E.PropTypes!==void 0&&!_n){_n=!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 Rd(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 da={};function pa(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=Nd();oe?M+=oe:M+=la();var G;d===null?G="null":Cn(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=_d(d,E,A,k,B);if(J==null)return J;if(D){var de=E.children;if(de!==void 0)if(F)if(Cn(de)){for(var dt=0;dt<de.length;dt++)fa(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 fa(de,d)}if(Mt.call(E,"key")){var Je=C(d),le=Object.keys(E).filter(function(Ud){return Ud!=="key"}),Mn=le.length>0?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}";if(!da[Je+Mn]){var Bd=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} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,Mn,Je,Bd,Je),da[Je+Mn]=!0}}return d===n?Rd(J):Dd(J),J}}function Id(d,E,A){return pa(d,E,A,!0)}function Ld(d,E,A){return pa(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=Ea():Er.exports=Sa();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 xa=Object.defineProperty,Oa=(e,t,r)=>t in e?xa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sr=(e,t,r)=>(Oa(e,typeof t!="symbol"?t+"":t,r),r);let Aa=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 Aa;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 q=function(e){let t=Le(e);return m.useCallback((...r)=>t.current(...r),[t])},Ta=m.createContext(void 0);function Pa(){return m.useContext(Ta)}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??Ca;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(`
|
|
31
31
|
`),"","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
32
|
`)].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]&&
|
|
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 :
|
|
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 Ca(...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 Fa="span";var Wt=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Wt||{});function $a(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:Fa,name:"Hidden"})}let Tr=ie($a),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=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[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 Na(){let[e,t]=m.useState([]);return[e.length>0?e.join(" "):void 0,m.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=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 Ma="p";function Da(e,t){let r=m.useId(),n=Pa(),{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:Ma,name:a.name||"Description"})}let Ra=ie(Da),Ia=Object.assign(Ra,{});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 La=m.createContext(()=>{});function ka({value:e,children:t}){return m.createElement(La.Provider,{value:e},t)}let ja=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 Ba=new ja(()=>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=Ba.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 Ua(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 Wa(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(","),Ha=["[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||{}),qa=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(qa||{});function Va(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 za(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ha)).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 Ga(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 Ka=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ka||{});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 Ja=["textarea","input"].join(",");function Ya(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Ja))!=null?r:!1}function Xa(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?Xa(e):e:t&64?za(e):Va(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&&Ya(v)&&v.select(),2}function Gn(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Qa(){return/Android/gi.test(window.navigator.userAgent)}function Za(){return Gn()||Qa()}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 es(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!Ga(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=>{Za()||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 ts(){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 rs(){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 ns(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function os(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:os(r)},o=[rs(),ts(),ns()];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 is(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 as(e,t,r=()=>[document.body]){let n=Xe(e,"scroll-lock");is(n,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],r]}})}function ss(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 ls=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ls||{});function us(e){let t={};for(let r in e)e[r]===!0&&(t[`data-${r}`]="");return t}function cs(e,t,r,n){let[o,i]=m.useState(r),{hasFlag:a,addFlag:s,removeFlag:l}=ss(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),fs(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 fs(e,{prepare:t,run:r,done:n,inFlight:o}){let i=Ae();return ps(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{r(),i.requestAnimationFrame(()=>{i.add(ds(e,n))})}),i.dispose}function ds(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 ps(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=q(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 ms({value:e,children:t}){return m.createElement(qt.Provider,{value:e},t)}function ys({children:e}){return m.createElement(qt.Provider,{value:null},e)}function hs(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ce=[];hs(()=>{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=q(e),r=m.useRef(!1);m.useEffect(()=>(r.current=!1,()=>{r.current=!0,jt(()=>{r.current&&t()})}),[t])}function vs(){let e=typeof document>"u";return"useSyncExternalStore"in pt?(t=>t.useSyncExternalStore)(pt)(()=>()=>{},()=>!1,()=>!e):!1}function wt(){let e=vs(),[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 gs(){return m.useContext(eo)}function to(e){return m.createElement(eo.Provider,{value:e.force},e.children)}function bs(e){let t=gs(),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,ws=ie(function(e,t){let r=e,n=m.useRef(null),o=he(_a(u=>{n.current=u}),t),i=bt(n),a=bs(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:ma.createPortal(fe({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:ro,name:"Portal"}),s):null});function Es(e,t){let r=he(t),{enabled:n=!0,...o}=e;return n?m.createElement(ws,{...o,ref:r}):fe({ourProps:{ref:r},theirProps:o,slot:{},defaultTag:ro,name:"Portal"})}let Ss=m.Fragment,no=m.createContext(null);function xs(e,t){let{target:r,...n}=e,o={ref:he(t)};return m.createElement(no.Provider,{value:r},fe({ourProps:o,theirProps:n,defaultTag:Ss,name:"Popover.Group"}))}let _r=m.createContext(null);function Os(){let e=m.useContext(_r),t=m.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=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 As=ie(Es),oo=ie(xs),Ts=Object.assign(As,{Group:oo});function Ps(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 Cs(){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 Fs({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=bt(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 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 $s(){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 Ns(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);Is(s,{ownerDocument:f});let u=Ls(s,{ownerDocument:f,container:r,initialFocus:o,initialFocusFallback:i});ks(s,{ownerDocument:f,container:r,containers:a,previousActiveElement:u});let h=$s(),v=q(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 Ms=ie(Ns),Ds=Object.assign(Ms,{features:Be});function Rs(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]),q(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function Is(e,{ownerDocument:t}){let r=!!(e&8),n=Rs(r);$r(()=>{r||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&xe(n())},[r]),Zn(()=>{r&&xe(n())})}function Ls(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 ks(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 js=(e=>(e.Visible="visible",e.Hidden="hidden",e))(js||{});function Bs(){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 Us(){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=q((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=q(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=q((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=q((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 Ws(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}=Bs(),[I,X]=m.useState(_?"visible":"hidden"),Z=Us(),{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=q(Ke=>{we.current=!0;let De=Ke?"enter":"leave";re.onStart(x,De,Ee=>{Ee==="enter"?i==null||i():Ee==="leave"&&(s==null||s())})}),Me=q(Ke=>{let De=Ke?"enter":"leave";we.current=!1,re.onStop(x,De,Ee=>{Ee==="enter"?a==null||a():Ee==="leave"&&(l==null||l())}),De==="leave"&&!Kt(re)&&(X("hidden"),L(x))});m.useEffect(()=>{O&&o||(U(_),Me(_))},[_,O,o]);let hr=!(!o||!O||!K||ce),[,ee]=cs(hr,w,_,{start:U,end:Me}),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,...us(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(ms,{value:Ge},fe({ourProps:Tn,theirProps:y,defaultTag:po,features:mo,visible:I==="visible",name:"Transition.Child"})))}function Hs(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=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 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 qs(e,t){let r=m.useContext(zt)!==null,n=Vt()!==null;return m.createElement(m.Fragment,null,!r&&n?m.createElement(Mr,{ref:t,...e}):m.createElement(yo,{ref:t,...e}))}let Mr=ie(Hs),yo=ie(Ws),Qe=ie(qs),ho=Object.assign(Mr,{Child:Qe,Root:Mr});var Vs=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Vs||{}),zs=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(zs||{});let Gs={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Dr=m.createContext(null);Dr.displayName="DialogContext";function Jt(e){let t=m.useContext(Dr);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 Ks(e,t){return Te(t.type,Gs,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(Ks,{titleId:null,descriptionId:null,panelRef:m.createRef()}),O=q(()=>i(!1)),T=q(U=>x({type:0,id:U})),P=wt()?w===0:!1,[_,j]=Os(),W={get current(){var U;return(U=S.panelRef.current)!=null?U:c.current}},I=so(),{resolveContainers:X}=Fs({mainTreeNode:I,portals:_,defaultContainers:[W]}),Z=g!==null?(g&pe.Closing)===pe.Closing:!1;Ua(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]})}),es(P,X,U=>{U.preventDefault(),O()}),Ps(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()}),as(f||Z?!1:P,y,X),Wa(P,c,O);let[C,L]=Na(),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=!Cs(),re=Be.None;return P&&!f&&(re|=Be.RestoreFocus,re|=Be.TabLock,l&&(re|=Be.AutoFocus),we&&(re|=Be.InitialFocus)),m.createElement(ys,null,m.createElement(to,{force:!0},m.createElement(Ts,null,m.createElement(Dr.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(ka,{value:O},fe({ourProps:ye,theirProps:h,slot:ce,defaultTag:Js,features:Ys,visible:w===0,name:"Dialog"})))))))))))}),Js="div",Ys=Bt.RenderStrategy|Bt.Static;function Xs(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 Qs="div";function Zs(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=q(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:Qs,name:"Dialog.Panel"}))}let el="div";function tl(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:el,name:"Dialog.Backdrop"}))}let rl="h2";function nl(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:rl,name:"Dialog.Title"})}let ol=ie(Xs),Rr=ie(Zs);ie(tl);let il=ie(nl),al=Object.assign(ol,{Panel:Rr,Title:il,Description:Ia});function go(e,t){return function(){return e.apply(t,arguments)}}const{toString:sl}=Object.prototype,{getPrototypeOf:Ir}=Object,Yt=(e=>t=>{const r=sl.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 ll(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 ul(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bo(e.buffer),t}const cl=Xt("string"),ue=Xt("function"),wo=Xt("number"),Qt=e=>e!==null&&typeof e=="object",fl=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)},dl=me("Date"),pl=me("File"),ml=me("Blob"),yl=me("FileList"),hl=e=>Qt(e)&&ue(e.pipe),vl=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]"))},gl=me("URLSearchParams"),[bl,wl,El,Sl]=["ReadableStream","Request","Response","Headers"].map(me),xl=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 Ol=(e,t,r,{allOwnKeys:n}={})=>(xt(t,(o,i)=>{r&&ue(o)?e[i]=go(o,r):e[i]=o},{allOwnKeys:n}),e),Al=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tl=(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)},Pl=(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},Cl=(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},Fl=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},$l=(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])}},Nl=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Ml=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),Rl=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)},Il=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+"'")})}})},Ll=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Ze(e)?n(e):n(String(e).split(t)),r},kl=()=>{},jl=(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},Bl=(e=16,t=To.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Ul(e){return!!(e&&ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Wl=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)},Hl=me("AsyncFunction"),ql=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)),Vl=typeof queueMicrotask<"u"?queueMicrotask.bind(Ue):typeof process<"u"&&process.nextTick||Po,b={isArray:Ze,isArrayBuffer:bo,isBuffer:ll,isFormData:vl,isArrayBufferView:ul,isString:cl,isNumber:wo,isBoolean:fl,isObject:Qt,isPlainObject:Zt,isReadableStream:bl,isRequest:wl,isResponse:El,isHeaders:Sl,isUndefined:St,isDate:dl,isFile:pl,isBlob:ml,isRegExp:Rl,isFunction:ue,isStream:hl,isURLSearchParams:gl,isTypedArray:$l,isFileList:yl,forEach:xt,merge:Lr,extend:Ol,trim:xl,stripBOM:Al,inherits:Tl,toFlatObject:Pl,kindOf:Yt,kindOfTest:me,endsWith:Cl,toArray:Fl,forEachEntry:_l,matchAll:Nl,isHTMLForm:Ml,hasOwnProperty:xo,hasOwnProp:xo,reduceDescriptors:Oo,freezeMethods:Il,toObjectSet:Ll,toCamelCase:Dl,noop:kl,toFiniteNumber:jl,findKey:Eo,global:Ue,isContextDefined:So,ALPHABET:To,generateString:Bl,isSpecCompliantForm:Ul,toJSONObject:Wl,isAsyncFn:Hl,isThenable:ql,setImmediate:Po,asap:Vl};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 zl=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 Gl(e){return b.isArray(e)&&!e.some(jr)}const Kl=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)&&Gl(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(Kl,{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 Mo=Br.prototype;Mo.append=function(t,r){this._pairs.push([t,r])},Mo.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 Jl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Do(e,t,r){if(!t)return e;const n=r&&r.encode||Jl,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},Yl={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,Xl=Ur&&(!Wr||["ReactNative","NativeScript","NS"].indexOf(Wr.product)<0),Ql=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zl=Ur&&window.location.href||"http://localhost",ae={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ur,hasStandardBrowserEnv:Xl,hasStandardBrowserWebWorkerEnv:Ql,navigator:Wr,origin:Zl},Symbol.toStringTag,{value:"Module"})),...Yl};function eu(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 tu(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ru(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]=ru(o[a])),!s)}if(b.isFormData(e)&&b.isFunction(e.entries)){const r={};return b.forEachEntry(e,(n,o)=>{t(tu(n),o,r,0)}),r}return null}function nu(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 eu(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),nu(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 ou=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"]),iu=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]&&ou[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 au(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 su=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 lu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function uu(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())&&!su(t))a(iu(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 au(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?lu(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]||(uu(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 cu(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fu(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 du(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=fu(50,250);return du(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)),pu=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}}(),mu=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 yu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hu(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ho(e,t){return e&&!yu(t)?hu(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=Do(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&&pu(t.url))){const f=o&&i&&mu.read(i);f&&a.set(o,f)}return t},vu=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=cu(o.url);if(S&&ae.protocols.indexOf(S)===-1){n(new $("Unsupported protocol "+S+":",$.ERR_BAD_REQUEST,e));return}y.send(i||null)})},gu=(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}},bu=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},wu=async function*(e,t){for await(const r of Eu(e))yield*bu(r,t)},Eu=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=wu(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",Su=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}},xu=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 Ou=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 Su(e)).byteLength},Au=async(e,t)=>{const r=b.toFiniteNumber(e.getContentLength());return r??Ou(t)},zr={http:zl,xhr:vu,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=gu([o,i&&i.toAbortSignal()],a),c;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(l&&xu&&r!=="get"&&r!=="head"&&(y=await Au(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}`,Tu=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,!Tu(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
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
|
|
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
|
|
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 Pu(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:Pu,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 Do(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 Cu(e){return function(r){return e.apply(null,r)}}function Fu(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=Cu,z.isAxiosError=Fu,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 $u(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 Nu(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 Mu=function(t){return Du(t)&&!Ru(t)};function Du(e){return!!e&&typeof e=="object"}function Ru(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ku(e)}var Iu=typeof Symbol=="function"&&Symbol.for,Lu=Iu?Symbol.for("react.element"):60103;function ku(e){return e.$$typeof===Lu}function ju(e){return Array.isArray(e)?[]:{}}function Tt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?tt(ju(e),e,t):e}function Bu(e,t,r){return e.concat(t).map(function(n){return Tt(n,r)})}function Uu(e,t){if(!t.customMerge)return tt;var r=t.customMerge(e);return typeof r=="function"?r:tt}function Wu(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ni(e){return Object.keys(e).concat(Wu(e))}function oi(e,t){try{return t in e}catch{return!1}}function Hu(e,t){return oi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function qu(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){Hu(e,o)||(oi(e,o)&&r.isMergeableObject(t[o])?n[o]=Uu(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||Bu,r.isMergeableObject=r.isMergeableObject||Mu,r.cloneUnlessOtherwiseSpecified=Tt;var n=Array.isArray(t),o=Array.isArray(e),i=n===o;return i?n?r.arrayMerge(e,t,r):qu(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 Vu=tt,zu=Vu;const Gu=ba(zu);var Ku=Error,Ju=EvalError,Yu=RangeError,Xu=ReferenceError,ii=SyntaxError,Pt=TypeError,Qu=URIError,Zu=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,ec=Zu,tc=function(){return typeof ai!="function"||typeof Symbol!="function"||typeof ai("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ec()},Qr={__proto__:null,foo:{}},rc=Object,nc=function(){return{__proto__:Qr}.foo===Qr.foo&&!(Qr instanceof rc)},oc="Function.prototype.bind called on incompatible ",ic=Object.prototype.toString,ac=Math.max,sc="[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},lc=function(t,r){for(var n=[],o=r,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},uc=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},cc=function(t){var r=this;if(typeof r!="function"||ic.apply(r)!==sc)throw new TypeError(oc+r);for(var n=lc(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=ac(0,r.length-n.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(o=Function("binder","return function ("+uc(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},fc=cc,Zr=Function.prototype.bind||fc,dc=Function.prototype.call,pc=Object.prototype.hasOwnProperty,mc=Zr,yc=mc.call(dc,pc),N,hc=Ku,vc=Ju,gc=Yu,bc=Xu,rt=ii,nt=Pt,wc=Qu,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},Ec=qe?function(){try{return arguments.callee,tn}catch{try{return qe(arguments,"callee").get}catch{return tn}}}():tn,ot=tc(),Sc=nc(),Q=Object.getPrototypeOf||(Sc?function(e){return e.__proto__}:null),it={},xc=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%":hc,"%eval%":eval,"%EvalError%":vc,"%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%":gc,"%ReferenceError%":bc,"%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%":Ec,"%TypedArray%":xc,"%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%":wc,"%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 Oc=Q(Q(e));Ve["%Error.prototype%"]=Oc}var Ac=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=yc,Tc=Ct.call(Function.call,Array.prototype.concat),Pc=Ct.call(Function.apply,Array.prototype.splice),ci=Ct.call(Function.call,String.prototype.replace),ar=Ct.call(Function.call,String.prototype.slice),Cc=Ct.call(Function.call,RegExp.prototype.exec),Fc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$c=/\\(\\)?/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,Fc,function(i,a,s,l){o[o.length]=s?ci(l,$c,"$1"):a||i}),o},Nc=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=Ac(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(Cc(/^%?[^%]*%?$/,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=Nc("%"+o+"%",r),a=i.name,s=i.value,l=!1,f=i.alias;f&&(o=f[0],Pc(n,Tc([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 Mc=at,sr=Mc("%Object.getOwnPropertyDescriptor%",!0);if(sr)try{sr([],"length")}catch{sr=null}var pi=sr,mi=nn(),Dc=ii,st=Pt,yi=pi,Rc=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 Ic=hi,Lc=at,vi=Rc,kc=Ic(),gi=pi,bi=Pt,jc=Lc("%Math.floor%"),Bc=function(t,r){if(typeof t!="function")throw new bi("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||jc(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)&&(kc?vi(t,"length",r,!0,!0):vi(t,"length",r)),t};(function(e){var t=Zr,r=at,n=Bc,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 Uc=fi.exports,wi=at,Ei=Uc,Wc=Ei(wi("String.prototype.indexOf")),Hc=function(t,r){var n=wi(t,!!r);return typeof n=="function"&&Wc(t,".prototype.")>-1?Ei(n):n};const qc=wa(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,Vc=typeof WeakMap=="function"&&WeakMap.prototype,Ft=Vc?WeakMap.prototype.has:null,zc=typeof WeakSet=="function"&&WeakSet.prototype,$t=zc?WeakSet.prototype.has:null,Gc=typeof WeakRef=="function"&&WeakRef.prototype,Oi=Gc?WeakRef.prototype.deref:null,Kc=Boolean.prototype.valueOf,Jc=Object.prototype.toString,Yc=Function.prototype.toString,Xc=String.prototype.match,cn=String.prototype.slice,$e=String.prototype.replace,Qc=String.prototype.toUpperCase,Ai=String.prototype.toLowerCase,Ti=RegExp.prototype.test,Pi=Array.prototype.concat,ve=Array.prototype.join,Zc=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=qc,Ni=mn.custom,Mi=Ii(Ni)?Ni:null,ef=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=bf(i,n);if(typeof o>"u")o=[];else if(Li(o,t)>=0)return"[Circular]";function v(C,L,K){if(L&&(o=Zc.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=cf(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(hf(t)){for(var y="<"+Ai.call(String(t.nodeName)),w=t.attributes||[],S=0;S<w.length;S++)y+=" "+w[S].name+"="+Di(tf(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&&!gf(x)?"["+vn(x,h)+"]":"[ "+ve.call(x,", ")+" ]"}if(nf(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(Mi&&typeof t[Mi]=="function"&&mn)return mn(t,{depth:u-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ff(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(mf(t)){var P=[];return xi&&xi.call(t,function(C){P.push(v(C,t))}),ji("Set",ur.call(t),P,h)}if(df(t))return hn("WeakMap");if(yf(t))return hn("WeakSet");if(pf(t))return hn("WeakRef");if(af(t))return _t(v(Number(t)));if(lf(t))return _t(v(fn.call(t)));if(sf(t))return _t(Kc.call(t));if(of(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(!rf(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 Di(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function tf(e){return $e.call(String(e),/"/g,""")}function yn(e){return Ne(e)==="[object Array]"&&(!te||!(typeof e=="object"&&te in e))}function rf(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 nf(e){return Ne(e)==="[object Error]"&&(!te||!(typeof e=="object"&&te in e))}function of(e){return Ne(e)==="[object String]"&&(!te||!(typeof e=="object"&&te in e))}function af(e){return Ne(e)==="[object Number]"&&(!te||!(typeof e=="object"&&te in e))}function sf(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 lf(e){if(!e||typeof e!="object"||!fn)return!1;try{return fn.call(e),!0}catch{}return!1}var uf=Object.prototype.hasOwnProperty||function(e){return e in this};function _e(e,t){return uf.call(e,t)}function Ne(e){return Jc.call(e)}function cf(e){if(e.name)return e.name;var t=Xc.call(Yc.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 ff(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 df(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 pf(e){if(!Oi||!e||typeof e!="object")return!1;try{return Oi.call(e),!0}catch{}return!1}function mf(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 yf(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 hf(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,vf);return Di(o,"single",t)}function vf(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":"")+Qc.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 gf(e){for(var t=0;t<e.length;t++)if(Li(e[t],`
|
|
40
|
+
`)>=0)return!1;return!0}function bf(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
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
|
+
`+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=Hc,wf=ef,Ef=Pt,fr=Bi("%WeakMap%",!0),dr=Bi("%Map%",!0),Sf=ut("WeakMap.prototype.get",!0),xf=ut("WeakMap.prototype.set",!0),Of=ut("WeakMap.prototype.has",!0),Af=ut("Map.prototype.get",!0),Tf=ut("Map.prototype.set",!0),Pf=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},Cf=function(e,t){var r=gn(e,t);return r&&r.value},Ff=function(e,t,r){var n=gn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},$f=function(e,t){return!!gn(e,t)},_f=function(){var t,r,n,o={assert:function(i){if(!o.has(i))throw new Ef("Side channel does not contain "+wf(i))},get:function(i){if(fr&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Sf(t,i)}else if(dr){if(r)return Af(r,i)}else if(n)return Cf(n,i)},has:function(i){if(fr&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Of(t,i)}else if(dr){if(r)return Pf(r,i)}else if(n)return $f(n,i);return!1},set:function(i,a){fr&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new fr),xf(t,i,a)):dr?(r||(r=new dr),Tf(r,i,a)):(n||(n={key:{},next:null}),Ff(n,i,a))}};return o},Nf=String.prototype.replace,Mf=/%20/g,bn={RFC1738:"RFC1738",RFC3986:"RFC3986"},wn={default:bn.RFC3986,formatters:{RFC1738:function(e){return Nf.call(e,Mf,"+")},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}(),Rf=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},If=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)},Lf=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},kf=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,jf=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},Bf=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 Rf(r),t},Uf=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Wf=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Hf=function(t,r){return[].concat(t,r)},qf=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:Lf,combine:Hf,compact:Bf,decode:kf,encode:jf,isBuffer:Wf,isRegExp:Uf,maybeMap:qf,merge:If},Hi=_f,pr=Wi,Nt=wn,Vf=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,zf=Array.prototype.push,Vi=function(e,t){zf.apply(e,be(t)?t:[t])},Gf=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 Gf.call(t)},skipNulls:!1,strictNullHandling:!1},Kf=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},xn={},Jf=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(Kf(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},Yf=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(!Vf.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}},Xf=function(e,t){var r=e,n=Yf(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,Jf(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,Qf=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},Zf=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},ed="utf8=%26%2310003%3B",td="utf8=%E2%9C%93",rd=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]===td?f="utf-8":a[l]===ed&&(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=Zf(c)),u.indexOf("[]=")>-1&&(c=Qf(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},nd=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},od=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 nd(u,r,n,o)}},id=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}},ad=function(e,t){var r=id(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?rd(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],l=od(s,n[s],r,typeof e=="string");o=ct.merge(o,l,r)}return r.allowSparse===!0?o:ct.compact(o)},sd=Xf,ld=ad,ud=wn,Ki={formats:ud,parse:ld,stringify:sd},cd={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})})(cd);function fd(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(Gu(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 dd=({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=$u(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]=fd(c,g||"",p,O);Nu().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"],pd=({children:e})=>{const t=m.useContext(mr).stack;return R.jsxs(R.Fragment,{children:[e,t.length>0&&R.jsx(Xi,{index:0})]})},An=m.createContext(null);An.displayName="ModalIndexContext";const Yi=()=>{const e=m.useContext(An);if(e===void 0)throw new Error("useModalIndex must be used within a ModalIndexProvider");return e},Xi=({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 Qi({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(Qi,{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(Qi,{onClick:e.close})}),typeof r=="function"?r({modalContext:e,modalProps:t}):r]})})})}),Zi=m.forwardRef(({name:e,children:t,...r},n)=>{const o=Yi(),{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??Dn("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(al,{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(Xi,{index:u.index+1})]})})});Zi.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})};H.Modal=Zi,H.ModalLink=hd,H.ModalRoot=pd,H.ModalStackProvider=dd,H.getConfig=Dn,H.putConfig=ga,H.resetConfig=va,H.useModalIndex=Yi,H.useModalStack=yr,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
package/src/inertiauiModal.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getConfig, putConfig, resetConfig } from './config.js'
|
|
2
2
|
import Modal from './Modal.jsx'
|
|
3
3
|
import ModalLink from './ModalLink.jsx'
|
|
4
|
+
import { useModalIndex } from './ModalRenderer.jsx'
|
|
4
5
|
import { useModalStack, ModalRoot, ModalStackProvider } from './ModalRoot.jsx'
|
|
5
6
|
|
|
6
|
-
export { useModalStack, Modal, ModalLink, ModalRoot, ModalStackProvider, getConfig, putConfig, resetConfig }
|
|
7
|
+
export { useModalIndex, useModalStack, Modal, ModalLink, ModalRoot, ModalStackProvider, getConfig, putConfig, resetConfig }
|