function qx(t,e){for(var a=0;a<e.length;a++){const i=e[a];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in t)){const o=Object.getOwnPropertyDescriptor(i,l);o&&Object.defineProperty(t,l,o.get?o:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function a(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=a(l);fetch(l.href,o)}})();var $c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var c0={exports:{}},Ko={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ev;function zx(){if(ev)return Ko;ev=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function a(i,l,o){var c=null;if(o!==void 0&&(c=""+o),l.key!==void 0&&(c=""+l.key),"key"in l){o={};for(var h in l)h!=="key"&&(o[h]=l[h])}else o=l;return l=o.ref,{$$typeof:t,type:i,key:c,ref:l!==void 0?l:null,props:o}}return Ko.Fragment=e,Ko.jsx=a,Ko.jsxs=a,Ko}var tv;function Px(){return tv||(tv=1,c0.exports=zx()),c0.exports}var y=Px(),f0={exports:{}},Jo={},d0={exports:{}},h0={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var nv;function Hx(){return nv||(nv=1,function(t){function e(M,P){var H=M.length;M.push(P);e:for(;0<H;){var $=H-1>>>1,T=M[$];if(0<l(T,P))M[$]=P,M[H]=T,H=$;else break e}}function a(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var P=M[0],H=M.pop();if(H!==P){M[0]=H;e:for(var $=0,T=M.length,G=T>>>1;$<G;){var ee=2*($+1)-1,ne=M[ee],ge=ee+1,fe=M[ge];if(0>l(ne,H))ge<T&&0>l(fe,ne)?(M[$]=fe,M[ge]=H,$=ge):(M[$]=ne,M[ee]=H,$=ee);else if(ge<T&&0>l(fe,H))M[$]=fe,M[ge]=H,$=ge;else break e}}return P}function l(M,P){var H=M.sortIndex-P.sortIndex;return H!==0?H:M.id-P.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var c=Date,h=c.now();t.unstable_now=function(){return c.now()-h}}var f=[],m=[],v=1,b=null,S=3,A=!1,w=!1,R=!1,k=!1,D=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function Y(M){for(var P=a(m);P!==null;){if(P.callback===null)i(m);else if(P.startTime<=M)i(m),P.sortIndex=P.expirationTime,e(f,P);else break;P=a(m)}}function j(M){if(R=!1,Y(M),!w)if(a(f)!==null)w=!0,F||(F=!0,_());else{var P=a(m);P!==null&&U(j,P.startTime-M)}}var F=!1,Z=-1,E=5,x=-1;function O(){return k?!0:!(t.unstable_now()-x<E)}function z(){if(k=!1,F){var M=t.unstable_now();x=M;var P=!0;try{e:{w=!1,R&&(R=!1,I(Z),Z=-1),A=!0;var H=S;try{t:{for(Y(M),b=a(f);b!==null&&!(b.expirationTime>M&&O());){var $=b.callback;if(typeof $=="function"){b.callback=null,S=b.priorityLevel;var T=$(b.expirationTime<=M);if(M=t.unstable_now(),typeof T=="function"){b.callback=T,Y(M),P=!0;break t}b===a(f)&&i(f),Y(M)}else i(f);b=a(f)}if(b!==null)P=!0;else{var G=a(m);G!==null&&U(j,G.startTime-M),P=!1}}break e}finally{b=null,S=H,A=!1}P=void 0}}finally{P?_():F=!1}}}var _;if(typeof B=="function")_=function(){B(z)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,V=q.port2;q.port1.onmessage=z,_=function(){V.postMessage(null)}}else _=function(){D(z,0)};function U(M,P){Z=D(function(){M(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(M){M.callback=null},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<M?Math.floor(1e3/M):5},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_next=function(M){switch(S){case 1:case 2:case 3:var P=3;break;default:P=S}var H=S;S=P;try{return M()}finally{S=H}},t.unstable_requestPaint=function(){k=!0},t.unstable_runWithPriority=function(M,P){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var H=S;S=M;try{return P()}finally{S=H}},t.unstable_scheduleCallback=function(M,P,H){var $=t.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?$+H:$):H=$,M){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=H+T,M={id:v++,callback:P,priorityLevel:M,startTime:H,expirationTime:T,sortIndex:-1},H>$?(M.sortIndex=H,e(m,M),a(f)===null&&M===a(m)&&(R?(I(Z),Z=-1):R=!0,U(j,H-$))):(M.sortIndex=T,e(f,M),w||A||(w=!0,F||(F=!0,_()))),M},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(M){var P=S;return function(){var H=S;S=P;try{return M.apply(this,arguments)}finally{S=H}}}}(h0)),h0}var rv;function Bx(){return rv||(rv=1,d0.exports=Hx()),d0.exports}var m0={exports:{}},lt={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var av;function Fx(){if(av)return lt;av=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,R={};function k(T,G,ee){this.props=T,this.context=G,this.refs=R,this.updater=ee||A}k.prototype.isReactComponent={},k.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,G,"setState")},k.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function D(){}D.prototype=k.prototype;function I(T,G,ee){this.props=T,this.context=G,this.refs=R,this.updater=ee||A}var B=I.prototype=new D;B.constructor=I,w(B,k.prototype),B.isPureReactComponent=!0;var Y=Array.isArray,j={H:null,A:null,T:null,S:null,V:null},F=Object.prototype.hasOwnProperty;function Z(T,G,ee,ne,ge,fe){return ee=fe.ref,{$$typeof:t,type:T,key:G,ref:ee!==void 0?ee:null,props:fe}}function E(T,G){return Z(T.type,G,void 0,void 0,void 0,T.props)}function x(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function O(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ee){return G[ee]})}var z=/\/+/g;function _(T,G){return typeof T=="object"&&T!==null&&T.key!=null?O(""+T.key):G.toString(36)}function q(){}function V(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(q,q):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function U(T,G,ee,ne,ge){var fe=typeof T;(fe==="undefined"||fe==="boolean")&&(T=null);var me=!1;if(T===null)me=!0;else switch(fe){case"bigint":case"string":case"number":me=!0;break;case"object":switch(T.$$typeof){case t:case e:me=!0;break;case v:return me=T._init,U(me(T._payload),G,ee,ne,ge)}}if(me)return ge=ge(T),me=ne===""?"."+_(T,0):ne,Y(ge)?(ee="",me!=null&&(ee=me.replace(z,"$&/")+"/"),U(ge,G,ee,"",function(tt){return tt})):ge!=null&&(x(ge)&&(ge=E(ge,ee+(ge.key==null||T&&T.key===ge.key?"":(""+ge.key).replace(z,"$&/")+"/")+me)),G.push(ge)),1;me=0;var Pe=ne===""?".":ne+":";if(Y(T))for(var Le=0;Le<T.length;Le++)ne=T[Le],fe=Pe+_(ne,Le),me+=U(ne,G,ee,fe,ge);else if(Le=S(T),typeof Le=="function")for(T=Le.call(T),Le=0;!(ne=T.next()).done;)ne=ne.value,fe=Pe+_(ne,Le++),me+=U(ne,G,ee,fe,ge);else if(fe==="object"){if(typeof T.then=="function")return U(V(T),G,ee,ne,ge);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return me}function M(T,G,ee){if(T==null)return T;var ne=[],ge=0;return U(T,ne,"","",function(fe){return G.call(ee,fe,ge++)}),ne}function P(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(ee){(T._status===0||T._status===-1)&&(T._status=1,T._result=ee)},function(ee){(T._status===0||T._status===-1)&&(T._status=2,T._result=ee)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var H=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function $(){}return lt.Children={map:M,forEach:function(T,G,ee){M(T,function(){G.apply(this,arguments)},ee)},count:function(T){var G=0;return M(T,function(){G++}),G},toArray:function(T){return M(T,function(G){return G})||[]},only:function(T){if(!x(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},lt.Component=k,lt.Fragment=a,lt.Profiler=l,lt.PureComponent=I,lt.StrictMode=i,lt.Suspense=f,lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,lt.__COMPILER_RUNTIME={__proto__:null,c:function(T){return j.H.useMemoCache(T)}},lt.cache=function(T){return function(){return T.apply(null,arguments)}},lt.cloneElement=function(T,G,ee){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ne=w({},T.props),ge=T.key,fe=void 0;if(G!=null)for(me in G.ref!==void 0&&(fe=void 0),G.key!==void 0&&(ge=""+G.key),G)!F.call(G,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&G.ref===void 0||(ne[me]=G[me]);var me=arguments.length-2;if(me===1)ne.children=ee;else if(1<me){for(var Pe=Array(me),Le=0;Le<me;Le++)Pe[Le]=arguments[Le+2];ne.children=Pe}return Z(T.type,ge,void 0,void 0,fe,ne)},lt.createContext=function(T){return T={$$typeof:c,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:o,_context:T},T},lt.createElement=function(T,G,ee){var ne,ge={},fe=null;if(G!=null)for(ne in G.key!==void 0&&(fe=""+G.key),G)F.call(G,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(ge[ne]=G[ne]);var me=arguments.length-2;if(me===1)ge.children=ee;else if(1<me){for(var Pe=Array(me),Le=0;Le<me;Le++)Pe[Le]=arguments[Le+2];ge.children=Pe}if(T&&T.defaultProps)for(ne in me=T.defaultProps,me)ge[ne]===void 0&&(ge[ne]=me[ne]);return Z(T,fe,void 0,void 0,null,ge)},lt.createRef=function(){return{current:null}},lt.forwardRef=function(T){return{$$typeof:h,render:T}},lt.isValidElement=x,lt.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:P}},lt.memo=function(T,G){return{$$typeof:m,type:T,compare:G===void 0?null:G}},lt.startTransition=function(T){var G=j.T,ee={};j.T=ee;try{var ne=T(),ge=j.S;ge!==null&&ge(ee,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then($,H)}catch(fe){H(fe)}finally{j.T=G}},lt.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},lt.use=function(T){return j.H.use(T)},lt.useActionState=function(T,G,ee){return j.H.useActionState(T,G,ee)},lt.useCallback=function(T,G){return j.H.useCallback(T,G)},lt.useContext=function(T){return j.H.useContext(T)},lt.useDebugValue=function(){},lt.useDeferredValue=function(T,G){return j.H.useDeferredValue(T,G)},lt.useEffect=function(T,G,ee){var ne=j.H;if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ne.useEffect(T,G)},lt.useId=function(){return j.H.useId()},lt.useImperativeHandle=function(T,G,ee){return j.H.useImperativeHandle(T,G,ee)},lt.useInsertionEffect=function(T,G){return j.H.useInsertionEffect(T,G)},lt.useLayoutEffect=function(T,G){return j.H.useLayoutEffect(T,G)},lt.useMemo=function(T,G){return j.H.useMemo(T,G)},lt.useOptimistic=function(T,G){return j.H.useOptimistic(T,G)},lt.useReducer=function(T,G,ee){return j.H.useReducer(T,G,ee)},lt.useRef=function(T){return j.H.useRef(T)},lt.useState=function(T){return j.H.useState(T)},lt.useSyncExternalStore=function(T,G,ee){return j.H.useSyncExternalStore(T,G,ee)},lt.useTransition=function(){return j.H.useTransition()},lt.version="19.1.0",lt}var iv;function Wf(){return iv||(iv=1,m0.exports=Fx()),m0.exports}var p0={exports:{}},nr={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var lv;function Vx(){if(lv)return nr;lv=1;var t=Wf();function e(f){var m="https://react.dev/errors/"+f;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+f+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(e(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function o(f,m,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:b==null?null:""+b,children:f,containerInfo:m,implementation:v}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(f,m){if(f==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return nr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,nr.createPortal=function(f,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(e(299));return o(f,m,null,v)},nr.flushSync=function(f){var m=c.T,v=i.p;try{if(c.T=null,i.p=2,f)return f()}finally{c.T=m,i.p=v,i.d.f()}},nr.preconnect=function(f,m){typeof f=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(f,m))},nr.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},nr.preinit=function(f,m){if(typeof f=="string"&&m&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,A=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?i.d.S(f,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:A}):v==="script"&&i.d.X(f,{crossOrigin:b,integrity:S,fetchPriority:A,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},nr.preinitModule=function(f,m){if(typeof f=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=h(m.as,m.crossOrigin);i.d.M(f,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(f)},nr.preload=function(f,m){if(typeof f=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin);i.d.L(f,v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},nr.preloadModule=function(f,m){if(typeof f=="string")if(m){var v=h(m.as,m.crossOrigin);i.d.m(f,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(f)},nr.requestFormReset=function(f){i.d.r(f)},nr.unstable_batchedUpdates=function(f,m){return f(m)},nr.useFormState=function(f,m,v){return c.H.useFormState(f,m,v)},nr.useFormStatus=function(){return c.H.useHostTransitionStatus()},nr.version="19.1.0",nr}var sv;function TS(){if(sv)return p0.exports;sv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),p0.exports=Vx(),p0.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ov;function Gx(){if(ov)return Jo;ov=1;var t=Bx(),e=Wf(),a=TS();function i(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var r=n,s=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(s=r.return),n=r.return;while(n)}return r.tag===3?s:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function h(n){if(o(n)!==n)throw Error(i(188))}function f(n){var r=n.alternate;if(!r){if(r=o(n),r===null)throw Error(i(188));return r!==n?null:n}for(var s=n,u=r;;){var d=s.return;if(d===null)break;var p=d.alternate;if(p===null){if(u=d.return,u!==null){s=u;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===s)return h(d),n;if(p===u)return h(d),r;p=p.sibling}throw Error(i(188))}if(s.return!==u.return)s=d,u=p;else{for(var C=!1,N=d.child;N;){if(N===s){C=!0,s=d,u=p;break}if(N===u){C=!0,u=d,s=p;break}N=N.sibling}if(!C){for(N=p.child;N;){if(N===s){C=!0,s=p,u=d;break}if(N===u){C=!0,u=p,s=d;break}N=N.sibling}if(!C)throw Error(i(189))}}if(s.alternate!==u)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?n:r}function m(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=m(n),r!==null)return r;n=n.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),I=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function _(n){return n===null||typeof n!="object"?null:(n=z&&n[z]||n["@@iterator"],typeof n=="function"?n:null)}var q=Symbol.for("react.client.reference");function V(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===q?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case w:return"Fragment";case k:return"Profiler";case R:return"StrictMode";case j:return"Suspense";case F:return"SuspenseList";case x:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case A:return"Portal";case B:return(n.displayName||"Context")+".Provider";case I:return(n._context.displayName||"Context")+".Consumer";case Y:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Z:return r=n.displayName||null,r!==null?r:V(n.type)||"Memo";case E:r=n._payload,n=n._init;try{return V(n(r))}catch{}}return null}var U=Array.isArray,M=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},$=[],T=-1;function G(n){return{current:n}}function ee(n){0>T||(n.current=$[T],$[T]=null,T--)}function ne(n,r){T++,$[T]=n.current,n.current=r}var ge=G(null),fe=G(null),me=G(null),Pe=G(null);function Le(n,r){switch(ne(me,r),ne(fe,n),ne(ge,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Rg(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Rg(r),n=Ig(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ee(ge),ne(ge,n)}function tt(){ee(ge),ee(fe),ee(me)}function Vt(n){n.memoizedState!==null&&ne(Pe,n);var r=ge.current,s=Ig(r,n.type);r!==s&&(ne(fe,n),ne(ge,s))}function ot(n){fe.current===n&&(ee(ge),ee(fe)),Pe.current===n&&(ee(Pe),Go._currentValue=H)}var Et=Object.prototype.hasOwnProperty,ct=t.unstable_scheduleCallback,Ze=t.unstable_cancelCallback,Je=t.unstable_shouldYield,_t=t.unstable_requestPaint,De=t.unstable_now,at=t.unstable_getCurrentPriorityLevel,Tt=t.unstable_ImmediatePriority,_e=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,Ue=t.unstable_LowPriority,Ee=t.unstable_IdlePriority,We=t.log,Be=t.unstable_setDisableYieldValue,ft=null,ht=null;function Kt(n){if(typeof We=="function"&&Be(n),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(ft,n)}catch{}}var Ut=Math.clz32?Math.clz32:Gn,Nn=Math.log,er=Math.LN2;function Gn(n){return n>>>=0,n===0?32:31-(Nn(n)/er|0)|0}var un=256,Mt=4194304;function it(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function vn(n,r,s){var u=n.pendingLanes;if(u===0)return 0;var d=0,p=n.suspendedLanes,C=n.pingedLanes;n=n.warmLanes;var N=u&134217727;return N!==0?(u=N&~p,u!==0?d=it(u):(C&=N,C!==0?d=it(C):s||(s=N&~n,s!==0&&(d=it(s))))):(N=u&~p,N!==0?d=it(N):C!==0?d=it(C):s||(s=u&~n,s!==0&&(d=it(s)))),d===0?0:r!==0&&r!==d&&(r&p)===0&&(p=d&-d,s=r&-r,p>=s||p===32&&(s&4194048)!==0)?r:d}function Ln(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function hr(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zn(){var n=un;return un<<=1,(un&4194048)===0&&(un=256),n}function En(){var n=Mt;return Mt<<=1,(Mt&62914560)===0&&(Mt=4194304),n}function kn(n){for(var r=[],s=0;31>s;s++)r.push(n);return r}function bt(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Wn(n,r,s,u,d,p){var C=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var N=n.entanglements,W=n.expirationTimes,re=n.hiddenUpdates;for(s=C&~s;0<s;){var ue=31-Ut(s),he=1<<ue;N[ue]=0,W[ue]=-1;var le=re[ue];if(le!==null)for(re[ue]=null,ue=0;ue<le.length;ue++){var se=le[ue];se!==null&&(se.lane&=-536870913)}s&=~he}u!==0&&lr(n,u,0),p!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=p&~(C&~r))}function lr(n,r,s){n.pendingLanes|=r,n.suspendedLanes&=~r;var u=31-Ut(r);n.entangledLanes|=r,n.entanglements[u]=n.entanglements[u]|1073741824|s&4194090}function Xe(n,r){var s=n.entangledLanes|=r;for(n=n.entanglements;s;){var u=31-Ut(s),d=1<<u;d&r|n[u]&r&&(n[u]|=r),s&=~d}}function Yt(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Ne(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function $e(){var n=P.p;return n!==0?n:(n=window.event,n===void 0?32:Yg(n.type))}function mt(n,r){var s=P.p;try{return P.p=n,r()}finally{P.p=s}}var $t=Math.random().toString(36).slice(2),ve="__reactFiber$"+$t,xe="__reactProps$"+$t,Re="__reactContainer$"+$t,At="__reactEvents$"+$t,en="__reactListeners$"+$t,An="__reactHandles$"+$t,ae="__reactResources$"+$t,ce="__reactMarker$"+$t;function oe(n){delete n[ve],delete n[xe],delete n[At],delete n[en],delete n[An]}function Se(n){var r=n[ve];if(r)return r;for(var s=n.parentNode;s;){if(r=s[Re]||s[ve]){if(s=r.alternate,r.child!==null||s!==null&&s.child!==null)for(n=Lg(n);n!==null;){if(s=n[ve])return s;n=Lg(n)}return r}n=s,s=n.parentNode}return null}function je(n){if(n=n[ve]||n[Re]){var r=n.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return n}return null}function St(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(i(33))}function et(n){var r=n[ae];return r||(r=n[ae]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function st(n){n[ce]=!0}var Ce=new Set,Q={};function pe(n,r){Ae(n,r),Ae(n+"Capture",r)}function Ae(n,r){for(Q[n]=r,n=0;n<r.length;n++)Ce.add(r[n])}var Me=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),He={},Ct={};function qt(n){return Et.call(Ct,n)?!0:Et.call(He,n)?!1:Me.test(n)?Ct[n]=!0:(He[n]=!0,!1)}function wn(n,r,s){if(qt(r))if(s===null)n.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+s)}}function qn(n,r,s){if(s===null)n.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+s)}}function Cn(n,r,s,u){if(u===null)n.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(r,s,""+u)}}var tn,Ra;function zr(n){if(tn===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);tn=r&&r[1]||"",Ra=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+tn+n+Ra}var ql=!1;function Xs(n,r){if(!n||ql)return"";ql=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(se){var le=se}Reflect.construct(n,[],he)}else{try{he.call()}catch(se){le=se}n.call(he.prototype)}}else{try{throw Error()}catch(se){le=se}(he=n())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(se){if(se&&le&&typeof se.stack=="string")return[se.stack,le.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),C=p[0],N=p[1];if(C&&N){var W=C.split(`
`),re=N.split(`
`);for(d=u=0;u<W.length&&!W[u].includes("DetermineComponentFrameRoot");)u++;for(;d<re.length&&!re[d].includes("DetermineComponentFrameRoot");)d++;if(u===W.length||d===re.length)for(u=W.length-1,d=re.length-1;1<=u&&0<=d&&W[u]!==re[d];)d--;for(;1<=u&&0<=d;u--,d--)if(W[u]!==re[d]){if(u!==1||d!==1)do if(u--,d--,0>d||W[u]!==re[d]){var ue=`
`+W[u].replace(" at new "," at ");return n.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",n.displayName)),ue}while(1<=u&&0<=d);break}}}finally{ql=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?zr(s):""}function $s(n){switch(n.tag){case 26:case 27:case 5:return zr(n.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 15:return Xs(n.type,!1);case 11:return Xs(n.type.render,!1);case 1:return Xs(n.type,!0);case 31:return zr("Activity");default:return""}}function bi(n){try{var r="";do r+=$s(n),n=n.return;while(n);return r}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}function jn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Qa(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Wu(n){var r=Qa(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,r),u=""+n[r];if(!n.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,p=s.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(C){u=""+C,p.call(this,C)}}),Object.defineProperty(n,r,{enumerable:s.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function tl(n){n._valueTracker||(n._valueTracker=Wu(n))}function eo(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var s=r.getValue(),u="";return n&&(u=Qa(n)?n.checked?"true":"false":n.value),n=u,n!==s?(r.setValue(n),!0):!1}function Si(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Yu=/[\n"\\]/g;function Yn(n){return n.replace(Yu,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ei(n,r,s,u,d,p,C,N){n.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?n.type=C:n.removeAttribute("type"),r!=null?C==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+jn(r)):n.value!==""+jn(r)&&(n.value=""+jn(r)):C!=="submit"&&C!=="reset"||n.removeAttribute("value"),r!=null?Ia(n,C,jn(r)):s!=null?Ia(n,C,jn(s)):u!=null&&n.removeAttribute("value"),d==null&&p!=null&&(n.defaultChecked=!!p),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?n.name=""+jn(N):n.removeAttribute("name")}function Pr(n,r,s,u,d,p,C,N){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),r!=null||s!=null){if(!(p!=="submit"&&p!=="reset"||r!=null))return;s=s!=null?""+jn(s):"",r=r!=null?""+jn(r):s,N||r===n.value||(n.value=r),n.defaultValue=r}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=N?n.checked:!!u,n.defaultChecked=!!u,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(n.name=C)}function Ia(n,r,s){r==="number"&&Si(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function Ma(n,r,s,u){if(n=n.options,r){r={};for(var d=0;d<s.length;d++)r["$"+s[d]]=!0;for(s=0;s<n.length;s++)d=r.hasOwnProperty("$"+n[s].value),n[s].selected!==d&&(n[s].selected=d),d&&u&&(n[s].defaultSelected=!0)}else{for(s=""+jn(s),r=null,d=0;d<n.length;d++){if(n[d].value===s){n[d].selected=!0,u&&(n[d].defaultSelected=!0);return}r!==null||n[d].disabled||(r=n[d])}r!==null&&(r.selected=!0)}}function zl(n,r,s){if(r!=null&&(r=""+jn(r),r!==n.value&&(n.value=r),s==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=s!=null?""+jn(s):""}function Qu(n,r,s,u){if(r==null){if(u!=null){if(s!=null)throw Error(i(92));if(U(u)){if(1<u.length)throw Error(i(93));u=u[0]}s=u}s==null&&(s=""),r=s}s=jn(r),n.defaultValue=s,u=n.textContent,u===s&&u!==""&&u!==null&&(n.value=u)}function ia(n,r){if(r){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=r;return}}n.textContent=r}var Pl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ku(n,r,s){var u=r.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?u?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":u?n.setProperty(r,s):typeof s!="number"||s===0||Pl.has(r)?r==="float"?n.cssFloat=s:n[r]=(""+s).trim():n[r]=s+"px"}function Ai(n,r,s){if(r!=null&&typeof r!="object")throw Error(i(62));if(n=n.style,s!=null){for(var u in s)!s.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var d in r)u=r[d],r.hasOwnProperty(d)&&s[d]!==u&&Ku(n,d,u)}else for(var p in r)r.hasOwnProperty(p)&&Ku(n,p,r[p])}function to(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var v1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),xn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function la(n){return xn.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var no=null;function Hl(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Da=null,Ka=null;function ro(n){var r=je(n);if(r&&(n=r.stateNode)){var s=n[xe]||null;e:switch(n=r.stateNode,r.type){case"input":if(Ei(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),r=s.name,s.type==="radio"&&r!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Yn(""+r)+'"][type="radio"]'),r=0;r<s.length;r++){var u=s[r];if(u!==n&&u.form===n.form){var d=u[xe]||null;if(!d)throw Error(i(90));Ei(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<s.length;r++)u=s[r],u.form===n.form&&eo(u)}break e;case"textarea":zl(n,s.value,s.defaultValue);break e;case"select":r=s.value,r!=null&&Ma(n,!!s.multiple,r,!1)}}}var ao=!1;function Cr(n,r,s){if(ao)return n(r,s);ao=!0;try{var u=n(r);return u}finally{if(ao=!1,(Da!==null||Ka!==null)&&(Nc(),Da&&(r=Da,n=Ka,Ka=Da=null,ro(r),n)))for(r=0;r<n.length;r++)ro(n[r])}}function Hr(n,r){var s=n.stateNode;if(s===null)return null;var u=s[xe]||null;if(u===null)return null;s=u[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(i(231,r,typeof s));return s}var Br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bl=!1;if(Br)try{var Ja={};Object.defineProperty(Ja,"passive",{get:function(){Bl=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Bl=!1}var sa=null,xr=null,nl=null;function io(){if(nl)return nl;var n,r=xr,s=r.length,u,d="value"in sa?sa.value:sa.textContent,p=d.length;for(n=0;n<s&&r[n]===d[n];n++);var C=s-n;for(u=1;u<=C&&r[s-u]===d[p-u];u++);return nl=d.slice(n,1<u?1-u:void 0)}function rl(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function al(){return!0}function Ju(){return!1}function Te(n){function r(s,u,d,p,C){this._reactName=s,this._targetInst=d,this.type=u,this.nativeEvent=p,this.target=C,this.currentTarget=null;for(var N in n)n.hasOwnProperty(N)&&(s=n[N],this[N]=s?s(p):p[N]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?al:Ju,this.isPropagationStopped=Ju,this}return v(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=al)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=al)},persist:function(){},isPersistent:al}),r}var K={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},be=Te(K),Oe=v({},K,{view:0,detail:0}),Jt=Te(Oe),Tn,ln,On,mr=v({},Oe,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:y1,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==On&&(On&&n.type==="mousemove"?(Tn=n.screenX-On.screenX,ln=n.screenY-On.screenY):ln=Tn=0,On=n),Tn)},movementY:function(n){return"movementY"in n?n.movementY:ln}}),wi=Te(mr),lo=v({},mr,{dataTransfer:0}),zn=Te(lo),Xu=v({},Oe,{relatedTarget:0}),Fl=Te(Xu),Bw=v({},K,{animationName:0,elapsedTime:0,pseudoElement:0}),Fw=Te(Bw),Vw=v({},K,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Gw=Te(Vw),Zw=v({},K,{data:0}),j4=Te(Zw),Ww={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kw(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=Qw[n])?!!r[n]:!1}function y1(){return Kw}var Jw=v({},Oe,{key:function(n){if(n.key){var r=Ww[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=rl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Yw[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:y1,charCode:function(n){return n.type==="keypress"?rl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?rl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Xw=Te(Jw),$w=v({},mr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_4=Te($w),eC=v({},Oe,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:y1}),tC=Te(eC),nC=v({},K,{propertyName:0,elapsedTime:0,pseudoElement:0}),rC=Te(nC),aC=v({},mr,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),iC=Te(aC),lC=v({},K,{newState:0,oldState:0}),sC=Te(lC),oC=[9,13,27,32],b1=Br&&"CompositionEvent"in window,so=null;Br&&"documentMode"in document&&(so=document.documentMode);var uC=Br&&"TextEvent"in window&&!so,U4=Br&&(!b1||so&&8<so&&11>=so),q4=" ",z4=!1;function P4(n,r){switch(n){case"keyup":return oC.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function H4(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Vl=!1;function cC(n,r){switch(n){case"compositionend":return H4(r);case"keypress":return r.which!==32?null:(z4=!0,q4);case"textInput":return n=r.data,n===q4&&z4?null:n;default:return null}}function fC(n,r){if(Vl)return n==="compositionend"||!b1&&P4(n,r)?(n=io(),nl=xr=sa=null,Vl=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return U4&&r.locale!=="ko"?null:r.data;default:return null}}var dC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function B4(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!dC[n.type]:r==="textarea"}function F4(n,r,s,u){Da?Ka?Ka.push(u):Ka=[u]:Da=u,r=qc(r,"onChange"),0<r.length&&(s=new be("onChange","change",null,s,u),n.push({event:s,listeners:r}))}var oo=null,uo=null;function hC(n){wg(n,0)}function $u(n){var r=St(n);if(eo(r))return n}function V4(n,r){if(n==="change")return r}var G4=!1;if(Br){var S1;if(Br){var E1="oninput"in document;if(!E1){var Z4=document.createElement("div");Z4.setAttribute("oninput","return;"),E1=typeof Z4.oninput=="function"}S1=E1}else S1=!1;G4=S1&&(!document.documentMode||9<document.documentMode)}function W4(){oo&&(oo.detachEvent("onpropertychange",Y4),uo=oo=null)}function Y4(n){if(n.propertyName==="value"&&$u(uo)){var r=[];F4(r,uo,n,Hl(n)),Cr(hC,r)}}function mC(n,r,s){n==="focusin"?(W4(),oo=r,uo=s,oo.attachEvent("onpropertychange",Y4)):n==="focusout"&&W4()}function pC(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $u(uo)}function gC(n,r){if(n==="click")return $u(r)}function vC(n,r){if(n==="input"||n==="change")return $u(r)}function yC(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Tr=typeof Object.is=="function"?Object.is:yC;function co(n,r){if(Tr(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var s=Object.keys(n),u=Object.keys(r);if(s.length!==u.length)return!1;for(u=0;u<s.length;u++){var d=s[u];if(!Et.call(r,d)||!Tr(n[d],r[d]))return!1}return!0}function Q4(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function K4(n,r){var s=Q4(n);n=0;for(var u;s;){if(s.nodeType===3){if(u=n+s.textContent.length,n<=r&&u>=r)return{node:s,offset:r-n};n=u}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Q4(s)}}function J4(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?J4(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function X4(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Si(n.document);r instanceof n.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)n=r.contentWindow;else break;r=Si(n.document)}return r}function A1(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var bC=Br&&"documentMode"in document&&11>=document.documentMode,Gl=null,w1=null,fo=null,C1=!1;function $4(n,r,s){var u=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;C1||Gl==null||Gl!==Si(u)||(u=Gl,"selectionStart"in u&&A1(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),fo&&co(fo,u)||(fo=u,u=qc(w1,"onSelect"),0<u.length&&(r=new be("onSelect","select",null,r,s),n.push({event:r,listeners:u}),r.target=Gl)))}function il(n,r){var s={};return s[n.toLowerCase()]=r.toLowerCase(),s["Webkit"+n]="webkit"+r,s["Moz"+n]="moz"+r,s}var Zl={animationend:il("Animation","AnimationEnd"),animationiteration:il("Animation","AnimationIteration"),animationstart:il("Animation","AnimationStart"),transitionrun:il("Transition","TransitionRun"),transitionstart:il("Transition","TransitionStart"),transitioncancel:il("Transition","TransitionCancel"),transitionend:il("Transition","TransitionEnd")},x1={},e5={};Br&&(e5=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function ll(n){if(x1[n])return x1[n];if(!Zl[n])return n;var r=Zl[n],s;for(s in r)if(r.hasOwnProperty(s)&&s in e5)return x1[n]=r[s];return n}var t5=ll("animationend"),n5=ll("animationiteration"),r5=ll("animationstart"),SC=ll("transitionrun"),EC=ll("transitionstart"),AC=ll("transitioncancel"),a5=ll("transitionend"),i5=new Map,T1="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");T1.push("scrollEnd");function oa(n,r){i5.set(n,r),pe(r,[n])}var l5=new WeakMap;function Fr(n,r){if(typeof n=="object"&&n!==null){var s=l5.get(n);return s!==void 0?s:(r={value:n,source:r,stack:bi(r)},l5.set(n,r),r)}return{value:n,source:r,stack:bi(r)}}var Vr=[],Wl=0,O1=0;function ec(){for(var n=Wl,r=O1=Wl=0;r<n;){var s=Vr[r];Vr[r++]=null;var u=Vr[r];Vr[r++]=null;var d=Vr[r];Vr[r++]=null;var p=Vr[r];if(Vr[r++]=null,u!==null&&d!==null){var C=u.pending;C===null?d.next=d:(d.next=C.next,C.next=d),u.pending=d}p!==0&&s5(s,d,p)}}function tc(n,r,s,u){Vr[Wl++]=n,Vr[Wl++]=r,Vr[Wl++]=s,Vr[Wl++]=u,O1|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function R1(n,r,s,u){return tc(n,r,s,u),nc(n)}function Yl(n,r){return tc(n,null,null,r),nc(n)}function s5(n,r,s){n.lanes|=s;var u=n.alternate;u!==null&&(u.lanes|=s);for(var d=!1,p=n.return;p!==null;)p.childLanes|=s,u=p.alternate,u!==null&&(u.childLanes|=s),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(d=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,d&&r!==null&&(d=31-Ut(s),n=p.hiddenUpdates,u=n[d],u===null?n[d]=[r]:u.push(r),r.lane=s|536870912),p):null}function nc(n){if(50<Uo)throw Uo=0,kd=null,Error(i(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var Ql={};function wC(n,r,s,u){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Or(n,r,s,u){return new wC(n,r,s,u)}function I1(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Xa(n,r){var s=n.alternate;return s===null?(s=Or(n.tag,r,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=r,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,r=n.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function o5(n,r){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,r=s.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function rc(n,r,s,u,d,p){var C=0;if(u=n,typeof n=="function")I1(n)&&(C=1);else if(typeof n=="string")C=xx(n,s,ge.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case x:return n=Or(31,s,r,d),n.elementType=x,n.lanes=p,n;case w:return sl(s.children,d,p,r);case R:C=8,d|=24;break;case k:return n=Or(12,s,r,d|2),n.elementType=k,n.lanes=p,n;case j:return n=Or(13,s,r,d),n.elementType=j,n.lanes=p,n;case F:return n=Or(19,s,r,d),n.elementType=F,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case D:case B:C=10;break e;case I:C=9;break e;case Y:C=11;break e;case Z:C=14;break e;case E:C=16,u=null;break e}C=29,s=Error(i(130,n===null?"null":typeof n,"")),u=null}return r=Or(C,s,r,d),r.elementType=n,r.type=u,r.lanes=p,r}function sl(n,r,s,u){return n=Or(7,n,u,r),n.lanes=s,n}function M1(n,r,s){return n=Or(6,n,null,r),n.lanes=s,n}function D1(n,r,s){return r=Or(4,n.children!==null?n.children:[],n.key,r),r.lanes=s,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var Kl=[],Jl=0,ac=null,ic=0,Gr=[],Zr=0,ol=null,$a=1,ei="";function ul(n,r){Kl[Jl++]=ic,Kl[Jl++]=ac,ac=n,ic=r}function u5(n,r,s){Gr[Zr++]=$a,Gr[Zr++]=ei,Gr[Zr++]=ol,ol=n;var u=$a;n=ei;var d=32-Ut(u)-1;u&=~(1<<d),s+=1;var p=32-Ut(r)+d;if(30<p){var C=d-d%5;p=(u&(1<<C)-1).toString(32),u>>=C,d-=C,$a=1<<32-Ut(r)+d|s<<d|u,ei=p+n}else $a=1<<p|s<<d|u,ei=n}function N1(n){n.return!==null&&(ul(n,1),u5(n,1,0))}function L1(n){for(;n===ac;)ac=Kl[--Jl],Kl[Jl]=null,ic=Kl[--Jl],Kl[Jl]=null;for(;n===ol;)ol=Gr[--Zr],Gr[Zr]=null,ei=Gr[--Zr],Gr[Zr]=null,$a=Gr[--Zr],Gr[Zr]=null}var sr=null,cn=null,Dt=!1,cl=null,Na=!1,k1=Error(i(519));function fl(n){var r=Error(i(418,""));throw po(Fr(r,n)),k1}function c5(n){var r=n.stateNode,s=n.type,u=n.memoizedProps;switch(r[ve]=n,r[xe]=u,s){case"dialog":gt("cancel",r),gt("close",r);break;case"iframe":case"object":case"embed":gt("load",r);break;case"video":case"audio":for(s=0;s<zo.length;s++)gt(zo[s],r);break;case"source":gt("error",r);break;case"img":case"image":case"link":gt("error",r),gt("load",r);break;case"details":gt("toggle",r);break;case"input":gt("invalid",r),Pr(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),tl(r);break;case"select":gt("invalid",r);break;case"textarea":gt("invalid",r),Qu(r,u.value,u.defaultValue,u.children),tl(r)}s=u.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||r.textContent===""+s||u.suppressHydrationWarning===!0||Og(r.textContent,s)?(u.popover!=null&&(gt("beforetoggle",r),gt("toggle",r)),u.onScroll!=null&&gt("scroll",r),u.onScrollEnd!=null&&gt("scrollend",r),u.onClick!=null&&(r.onclick=zc),r=!0):r=!1,r||fl(n)}function f5(n){for(sr=n.return;sr;)switch(sr.tag){case 5:case 13:Na=!1;return;case 27:case 3:Na=!0;return;default:sr=sr.return}}function ho(n){if(n!==sr)return!1;if(!Dt)return f5(n),Dt=!0,!1;var r=n.tag,s;if((s=r!==3&&r!==27)&&((s=r===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||Kd(n.type,n.memoizedProps)),s=!s),s&&cn&&fl(n),f5(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));e:{for(n=n.nextSibling,r=0;n;){if(n.nodeType===8)if(s=n.data,s==="/$"){if(r===0){cn=ca(n.nextSibling);break e}r--}else s!=="$"&&s!=="$!"&&s!=="$?"||r++;n=n.nextSibling}cn=null}}else r===27?(r=cn,zi(n.type)?(n=e0,e0=null,cn=n):cn=r):cn=sr?ca(n.stateNode.nextSibling):null;return!0}function mo(){cn=sr=null,Dt=!1}function d5(){var n=cl;return n!==null&&(vr===null?vr=n:vr.push.apply(vr,n),cl=null),n}function po(n){cl===null?cl=[n]:cl.push(n)}var j1=G(null),dl=null,ti=null;function Ci(n,r,s){ne(j1,r._currentValue),r._currentValue=s}function ni(n){n._currentValue=j1.current,ee(j1)}function _1(n,r,s){for(;n!==null;){var u=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),n===s)break;n=n.return}}function U1(n,r,s,u){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var p=d.dependencies;if(p!==null){var C=d.child;p=p.firstContext;e:for(;p!==null;){var N=p;p=d;for(var W=0;W<r.length;W++)if(N.context===r[W]){p.lanes|=s,N=p.alternate,N!==null&&(N.lanes|=s),_1(p.return,s,n),u||(C=null);break e}p=N.next}}else if(d.tag===18){if(C=d.return,C===null)throw Error(i(341));C.lanes|=s,p=C.alternate,p!==null&&(p.lanes|=s),_1(C,s,n),C=null}else C=d.child;if(C!==null)C.return=d;else for(C=d;C!==null;){if(C===n){C=null;break}if(d=C.sibling,d!==null){d.return=C.return,C=d;break}C=C.return}d=C}}function go(n,r,s,u){n=null;for(var d=r,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var C=d.alternate;if(C===null)throw Error(i(387));if(C=C.memoizedProps,C!==null){var N=d.type;Tr(d.pendingProps.value,C.value)||(n!==null?n.push(N):n=[N])}}else if(d===Pe.current){if(C=d.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(Go):n=[Go])}d=d.return}n!==null&&U1(r,n,s,u),r.flags|=262144}function lc(n){for(n=n.firstContext;n!==null;){if(!Tr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function hl(n){dl=n,ti=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function tr(n){return h5(dl,n)}function sc(n,r){return dl===null&&hl(n),h5(n,r)}function h5(n,r){var s=r._currentValue;if(r={context:r,memoizedValue:s,next:null},ti===null){if(n===null)throw Error(i(308));ti=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else ti=ti.next=r;return s}var CC=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(s,u){n.push(u)}};this.abort=function(){r.aborted=!0,n.forEach(function(s){return s()})}},xC=t.unstable_scheduleCallback,TC=t.unstable_NormalPriority,_n={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function q1(){return{controller:new CC,data:new Map,refCount:0}}function vo(n){n.refCount--,n.refCount===0&&xC(TC,function(){n.controller.abort()})}var yo=null,z1=0,Xl=0,$l=null;function OC(n,r){if(yo===null){var s=yo=[];z1=0,Xl=Hd(),$l={status:"pending",value:void 0,then:function(u){s.push(u)}}}return z1++,r.then(m5,m5),r}function m5(){if(--z1===0&&yo!==null){$l!==null&&($l.status="fulfilled");var n=yo;yo=null,Xl=0,$l=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function RC(n,r){var s=[],u={status:"pending",value:null,reason:null,then:function(d){s.push(d)}};return n.then(function(){u.status="fulfilled",u.value=r;for(var d=0;d<s.length;d++)(0,s[d])(r)},function(d){for(u.status="rejected",u.reason=d,d=0;d<s.length;d++)(0,s[d])(void 0)}),u}var p5=M.S;M.S=function(n,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&OC(n,r),p5!==null&&p5(n,r)};var ml=G(null);function P1(){var n=ml.current;return n!==null?n:Xt.pooledCache}function oc(n,r){r===null?ne(ml,ml.current):ne(ml,r.pool)}function g5(){var n=P1();return n===null?null:{parent:_n._currentValue,pool:n}}var bo=Error(i(460)),v5=Error(i(474)),uc=Error(i(542)),H1={then:function(){}};function y5(n){return n=n.status,n==="fulfilled"||n==="rejected"}function cc(){}function b5(n,r,s){switch(s=n[s],s===void 0?n.push(r):s!==r&&(r.then(cc,cc),r=s),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,E5(n),n;default:if(typeof r.status=="string")r.then(cc,cc);else{if(n=Xt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=r,n.status="pending",n.then(function(u){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=u}},function(u){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,E5(n),n}throw So=r,bo}}var So=null;function S5(){if(So===null)throw Error(i(459));var n=So;return So=null,n}function E5(n){if(n===bo||n===uc)throw Error(i(483))}var xi=!1;function B1(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function F1(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ti(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Oi(n,r,s){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(Ht&2)!==0){var d=u.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),u.pending=r,r=nc(n),s5(n,null,s),r}return tc(n,u,r,s),nc(n)}function Eo(n,r,s){if(r=r.updateQueue,r!==null&&(r=r.shared,(s&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,s|=u,r.lanes=s,Xe(n,s)}}function V1(n,r){var s=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,s===u)){var d=null,p=null;if(s=s.firstBaseUpdate,s!==null){do{var C={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};p===null?d=p=C:p=p.next=C,s=s.next}while(s!==null);p===null?d=p=r:p=p.next=r}else d=p=r;s={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=r:n.next=r,s.lastBaseUpdate=r}var G1=!1;function Ao(){if(G1){var n=$l;if(n!==null)throw n}}function wo(n,r,s,u){G1=!1;var d=n.updateQueue;xi=!1;var p=d.firstBaseUpdate,C=d.lastBaseUpdate,N=d.shared.pending;if(N!==null){d.shared.pending=null;var W=N,re=W.next;W.next=null,C===null?p=re:C.next=re,C=W;var ue=n.alternate;ue!==null&&(ue=ue.updateQueue,N=ue.lastBaseUpdate,N!==C&&(N===null?ue.firstBaseUpdate=re:N.next=re,ue.lastBaseUpdate=W))}if(p!==null){var he=d.baseState;C=0,ue=re=W=null,N=p;do{var le=N.lane&-536870913,se=le!==N.lane;if(se?(wt&le)===le:(u&le)===le){le!==0&&le===Xl&&(G1=!0),ue!==null&&(ue=ue.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Ye=n,Fe=N;le=r;var Wt=s;switch(Fe.tag){case 1:if(Ye=Fe.payload,typeof Ye=="function"){he=Ye.call(Wt,he,le);break e}he=Ye;break e;case 3:Ye.flags=Ye.flags&-65537|128;case 0:if(Ye=Fe.payload,le=typeof Ye=="function"?Ye.call(Wt,he,le):Ye,le==null)break e;he=v({},he,le);break e;case 2:xi=!0}}le=N.callback,le!==null&&(n.flags|=64,se&&(n.flags|=8192),se=d.callbacks,se===null?d.callbacks=[le]:se.push(le))}else se={lane:le,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ue===null?(re=ue=se,W=he):ue=ue.next=se,C|=le;if(N=N.next,N===null){if(N=d.shared.pending,N===null)break;se=N,N=se.next,se.next=null,d.lastBaseUpdate=se,d.shared.pending=null}}while(!0);ue===null&&(W=he),d.baseState=W,d.firstBaseUpdate=re,d.lastBaseUpdate=ue,p===null&&(d.shared.lanes=0),ji|=C,n.lanes=C,n.memoizedState=he}}function A5(n,r){if(typeof n!="function")throw Error(i(191,n));n.call(r)}function w5(n,r){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)A5(s[n],r)}var es=G(null),fc=G(0);function C5(n,r){n=ui,ne(fc,n),ne(es,r),ui=n|r.baseLanes}function Z1(){ne(fc,ui),ne(es,es.current)}function W1(){ui=fc.current,ee(es),ee(fc)}var Ri=0,ut=null,Gt=null,Rn=null,dc=!1,ts=!1,pl=!1,hc=0,Co=0,ns=null,IC=0;function yn(){throw Error(i(321))}function Y1(n,r){if(r===null)return!1;for(var s=0;s<r.length&&s<n.length;s++)if(!Tr(n[s],r[s]))return!1;return!0}function Q1(n,r,s,u,d,p){return Ri=p,ut=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,M.H=n===null||n.memoizedState===null?s6:o6,pl=!1,p=s(u,d),pl=!1,ts&&(p=T5(r,s,u,d)),x5(n),p}function x5(n){M.H=bc;var r=Gt!==null&&Gt.next!==null;if(Ri=0,Rn=Gt=ut=null,dc=!1,Co=0,ns=null,r)throw Error(i(300));n===null||Pn||(n=n.dependencies,n!==null&&lc(n)&&(Pn=!0))}function T5(n,r,s,u){ut=n;var d=0;do{if(ts&&(ns=null),Co=0,ts=!1,25<=d)throw Error(i(301));if(d+=1,Rn=Gt=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}M.H=_C,p=r(s,u)}while(ts);return p}function MC(){var n=M.H,r=n.useState()[0];return r=typeof r.then=="function"?xo(r):r,n=n.useState()[0],(Gt!==null?Gt.memoizedState:null)!==n&&(ut.flags|=1024),r}function K1(){var n=hc!==0;return hc=0,n}function J1(n,r,s){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~s}function X1(n){if(dc){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}dc=!1}Ri=0,Rn=Gt=ut=null,ts=!1,Co=hc=0,ns=null}function pr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rn===null?ut.memoizedState=Rn=n:Rn=Rn.next=n,Rn}function In(){if(Gt===null){var n=ut.alternate;n=n!==null?n.memoizedState:null}else n=Gt.next;var r=Rn===null?ut.memoizedState:Rn.next;if(r!==null)Rn=r,Gt=n;else{if(n===null)throw ut.alternate===null?Error(i(467)):Error(i(310));Gt=n,n={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},Rn===null?ut.memoizedState=Rn=n:Rn=Rn.next=n}return Rn}function $1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xo(n){var r=Co;return Co+=1,ns===null&&(ns=[]),n=b5(ns,n,r),r=ut,(Rn===null?r.memoizedState:Rn.next)===null&&(r=r.alternate,M.H=r===null||r.memoizedState===null?s6:o6),n}function mc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return xo(n);if(n.$$typeof===B)return tr(n)}throw Error(i(438,String(n)))}function ed(n){var r=null,s=ut.updateQueue;if(s!==null&&(r=s.memoCache),r==null){var u=ut.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),s===null&&(s=$1(),ut.updateQueue=s),s.memoCache=r,s=r.data[r.index],s===void 0)for(s=r.data[r.index]=Array(n),u=0;u<n;u++)s[u]=O;return r.index++,s}function ri(n,r){return typeof r=="function"?r(n):r}function pc(n){var r=In();return td(r,Gt,n)}function td(n,r,s){var u=n.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=s;var d=n.baseQueue,p=u.pending;if(p!==null){if(d!==null){var C=d.next;d.next=p.next,p.next=C}r.baseQueue=d=p,u.pending=null}if(p=n.baseState,d===null)n.memoizedState=p;else{r=d.next;var N=C=null,W=null,re=r,ue=!1;do{var he=re.lane&-536870913;if(he!==re.lane?(wt&he)===he:(Ri&he)===he){var le=re.revertLane;if(le===0)W!==null&&(W=W.next={lane:0,revertLane:0,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),he===Xl&&(ue=!0);else if((Ri&le)===le){re=re.next,le===Xl&&(ue=!0);continue}else he={lane:0,revertLane:re.revertLane,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(N=W=he,C=p):W=W.next=he,ut.lanes|=le,ji|=le;he=re.action,pl&&s(p,he),p=re.hasEagerState?re.eagerState:s(p,he)}else le={lane:he,revertLane:re.revertLane,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(N=W=le,C=p):W=W.next=le,ut.lanes|=he,ji|=he;re=re.next}while(re!==null&&re!==r);if(W===null?C=p:W.next=N,!Tr(p,n.memoizedState)&&(Pn=!0,ue&&(s=$l,s!==null)))throw s;n.memoizedState=p,n.baseState=C,n.baseQueue=W,u.lastRenderedState=p}return d===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function nd(n){var r=In(),s=r.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=n;var u=s.dispatch,d=s.pending,p=r.memoizedState;if(d!==null){s.pending=null;var C=d=d.next;do p=n(p,C.action),C=C.next;while(C!==d);Tr(p,r.memoizedState)||(Pn=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),s.lastRenderedState=p}return[p,u]}function O5(n,r,s){var u=ut,d=In(),p=Dt;if(p){if(s===void 0)throw Error(i(407));s=s()}else s=r();var C=!Tr((Gt||d).memoizedState,s);C&&(d.memoizedState=s,Pn=!0),d=d.queue;var N=M5.bind(null,u,d,n);if(To(2048,8,N,[n]),d.getSnapshot!==r||C||Rn!==null&&Rn.memoizedState.tag&1){if(u.flags|=2048,rs(9,gc(),I5.bind(null,u,d,s,r),null),Xt===null)throw Error(i(349));p||(Ri&124)!==0||R5(u,r,s)}return s}function R5(n,r,s){n.flags|=16384,n={getSnapshot:r,value:s},r=ut.updateQueue,r===null?(r=$1(),ut.updateQueue=r,r.stores=[n]):(s=r.stores,s===null?r.stores=[n]:s.push(n))}function I5(n,r,s,u){r.value=s,r.getSnapshot=u,D5(r)&&N5(n)}function M5(n,r,s){return s(function(){D5(r)&&N5(n)})}function D5(n){var r=n.getSnapshot;n=n.value;try{var s=r();return!Tr(n,s)}catch{return!0}}function N5(n){var r=Yl(n,2);r!==null&&Nr(r,n,2)}function rd(n){var r=pr();if(typeof n=="function"){var s=n;if(n=s(),pl){Kt(!0);try{s()}finally{Kt(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:n},r}function L5(n,r,s,u){return n.baseState=s,td(n,Gt,typeof u=="function"?u:ri)}function DC(n,r,s,u,d){if(yc(n))throw Error(i(485));if(n=r.action,n!==null){var p={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){p.listeners.push(C)}};M.T!==null?s(!0):p.isTransition=!1,u(p),s=r.pending,s===null?(p.next=r.pending=p,k5(r,p)):(p.next=s.next,r.pending=s.next=p)}}function k5(n,r){var s=r.action,u=r.payload,d=n.state;if(r.isTransition){var p=M.T,C={};M.T=C;try{var N=s(d,u),W=M.S;W!==null&&W(C,N),j5(n,r,N)}catch(re){ad(n,r,re)}finally{M.T=p}}else try{p=s(d,u),j5(n,r,p)}catch(re){ad(n,r,re)}}function j5(n,r,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(u){_5(n,r,u)},function(u){return ad(n,r,u)}):_5(n,r,s)}function _5(n,r,s){r.status="fulfilled",r.value=s,U5(r),n.state=s,r=n.pending,r!==null&&(s=r.next,s===r?n.pending=null:(s=s.next,r.next=s,k5(n,s)))}function ad(n,r,s){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=s,U5(r),r=r.next;while(r!==u)}n.action=null}function U5(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function q5(n,r){return r}function z5(n,r){if(Dt){var s=Xt.formState;if(s!==null){e:{var u=ut;if(Dt){if(cn){t:{for(var d=cn,p=Na;d.nodeType!==8;){if(!p){d=null;break t}if(d=ca(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){cn=ca(d.nextSibling),u=d.data==="F!";break e}}fl(u)}u=!1}u&&(r=s[0])}}return s=pr(),s.memoizedState=s.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:q5,lastRenderedState:r},s.queue=u,s=a6.bind(null,ut,u),u.dispatch=s,u=rd(!1),p=ud.bind(null,ut,!1,u.queue),u=pr(),d={state:r,dispatch:null,action:n,pending:null},u.queue=d,s=DC.bind(null,ut,d,p,s),d.dispatch=s,u.memoizedState=n,[r,s,!1]}function P5(n){var r=In();return H5(r,Gt,n)}function H5(n,r,s){if(r=td(n,r,q5)[0],n=pc(ri)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=xo(r)}catch(C){throw C===bo?uc:C}else u=r;r=In();var d=r.queue,p=d.dispatch;return s!==r.memoizedState&&(ut.flags|=2048,rs(9,gc(),NC.bind(null,d,s),null)),[u,p,n]}function NC(n,r){n.action=r}function B5(n){var r=In(),s=Gt;if(s!==null)return H5(r,s,n);In(),r=r.memoizedState,s=In();var u=s.queue.dispatch;return s.memoizedState=n,[r,u,!1]}function rs(n,r,s,u){return n={tag:n,create:s,deps:u,inst:r,next:null},r=ut.updateQueue,r===null&&(r=$1(),ut.updateQueue=r),s=r.lastEffect,s===null?r.lastEffect=n.next=n:(u=s.next,s.next=n,n.next=u,r.lastEffect=n),n}function gc(){return{destroy:void 0,resource:void 0}}function F5(){return In().memoizedState}function vc(n,r,s,u){var d=pr();u=u===void 0?null:u,ut.flags|=n,d.memoizedState=rs(1|r,gc(),s,u)}function To(n,r,s,u){var d=In();u=u===void 0?null:u;var p=d.memoizedState.inst;Gt!==null&&u!==null&&Y1(u,Gt.memoizedState.deps)?d.memoizedState=rs(r,p,s,u):(ut.flags|=n,d.memoizedState=rs(1|r,p,s,u))}function V5(n,r){vc(8390656,8,n,r)}function G5(n,r){To(2048,8,n,r)}function Z5(n,r){return To(4,2,n,r)}function W5(n,r){return To(4,4,n,r)}function Y5(n,r){if(typeof r=="function"){n=n();var s=r(n);return function(){typeof s=="function"?s():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function Q5(n,r,s){s=s!=null?s.concat([n]):null,To(4,4,Y5.bind(null,r,n),s)}function id(){}function K5(n,r){var s=In();r=r===void 0?null:r;var u=s.memoizedState;return r!==null&&Y1(r,u[1])?u[0]:(s.memoizedState=[n,r],n)}function J5(n,r){var s=In();r=r===void 0?null:r;var u=s.memoizedState;if(r!==null&&Y1(r,u[1]))return u[0];if(u=n(),pl){Kt(!0);try{n()}finally{Kt(!1)}}return s.memoizedState=[u,r],u}function ld(n,r,s){return s===void 0||(Ri&1073741824)!==0?n.memoizedState=r:(n.memoizedState=s,n=eg(),ut.lanes|=n,ji|=n,s)}function X5(n,r,s,u){return Tr(s,r)?s:es.current!==null?(n=ld(n,s,u),Tr(n,r)||(Pn=!0),n):(Ri&42)===0?(Pn=!0,n.memoizedState=s):(n=eg(),ut.lanes|=n,ji|=n,r)}function $5(n,r,s,u,d){var p=P.p;P.p=p!==0&&8>p?p:8;var C=M.T,N={};M.T=N,ud(n,!1,r,s);try{var W=d(),re=M.S;if(re!==null&&re(N,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var ue=RC(W,u);Oo(n,r,ue,Dr(n))}else Oo(n,r,u,Dr(n))}catch(he){Oo(n,r,{then:function(){},status:"rejected",reason:he},Dr())}finally{P.p=p,M.T=C}}function LC(){}function sd(n,r,s,u){if(n.tag!==5)throw Error(i(476));var d=e6(n).queue;$5(n,d,r,H,s===null?LC:function(){return t6(n),s(u)})}function e6(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:H},next:null};var s={};return r.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:s},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function t6(n){var r=e6(n).next.queue;Oo(n,r,{},Dr())}function od(){return tr(Go)}function n6(){return In().memoizedState}function r6(){return In().memoizedState}function kC(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var s=Dr();n=Ti(s);var u=Oi(r,n,s);u!==null&&(Nr(u,r,s),Eo(u,r,s)),r={cache:q1()},n.payload=r;return}r=r.return}}function jC(n,r,s){var u=Dr();s={lane:u,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},yc(n)?i6(r,s):(s=R1(n,r,s,u),s!==null&&(Nr(s,n,u),l6(s,r,u)))}function a6(n,r,s){var u=Dr();Oo(n,r,s,u)}function Oo(n,r,s,u){var d={lane:u,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(yc(n))i6(r,d);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var C=r.lastRenderedState,N=p(C,s);if(d.hasEagerState=!0,d.eagerState=N,Tr(N,C))return tc(n,r,d,0),Xt===null&&ec(),!1}catch{}finally{}if(s=R1(n,r,d,u),s!==null)return Nr(s,n,u),l6(s,r,u),!0}return!1}function ud(n,r,s,u){if(u={lane:2,revertLane:Hd(),action:u,hasEagerState:!1,eagerState:null,next:null},yc(n)){if(r)throw Error(i(479))}else r=R1(n,s,u,2),r!==null&&Nr(r,n,2)}function yc(n){var r=n.alternate;return n===ut||r!==null&&r===ut}function i6(n,r){ts=dc=!0;var s=n.pending;s===null?r.next=r:(r.next=s.next,s.next=r),n.pending=r}function l6(n,r,s){if((s&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,s|=u,r.lanes=s,Xe(n,s)}}var bc={readContext:tr,use:mc,useCallback:yn,useContext:yn,useEffect:yn,useImperativeHandle:yn,useLayoutEffect:yn,useInsertionEffect:yn,useMemo:yn,useReducer:yn,useRef:yn,useState:yn,useDebugValue:yn,useDeferredValue:yn,useTransition:yn,useSyncExternalStore:yn,useId:yn,useHostTransitionStatus:yn,useFormState:yn,useActionState:yn,useOptimistic:yn,useMemoCache:yn,useCacheRefresh:yn},s6={readContext:tr,use:mc,useCallback:function(n,r){return pr().memoizedState=[n,r===void 0?null:r],n},useContext:tr,useEffect:V5,useImperativeHandle:function(n,r,s){s=s!=null?s.concat([n]):null,vc(4194308,4,Y5.bind(null,r,n),s)},useLayoutEffect:function(n,r){return vc(4194308,4,n,r)},useInsertionEffect:function(n,r){vc(4,2,n,r)},useMemo:function(n,r){var s=pr();r=r===void 0?null:r;var u=n();if(pl){Kt(!0);try{n()}finally{Kt(!1)}}return s.memoizedState=[u,r],u},useReducer:function(n,r,s){var u=pr();if(s!==void 0){var d=s(r);if(pl){Kt(!0);try{s(r)}finally{Kt(!1)}}}else d=r;return u.memoizedState=u.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},u.queue=n,n=n.dispatch=jC.bind(null,ut,n),[u.memoizedState,n]},useRef:function(n){var r=pr();return n={current:n},r.memoizedState=n},useState:function(n){n=rd(n);var r=n.queue,s=a6.bind(null,ut,r);return r.dispatch=s,[n.memoizedState,s]},useDebugValue:id,useDeferredValue:function(n,r){var s=pr();return ld(s,n,r)},useTransition:function(){var n=rd(!1);return n=$5.bind(null,ut,n.queue,!0,!1),pr().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,s){var u=ut,d=pr();if(Dt){if(s===void 0)throw Error(i(407));s=s()}else{if(s=r(),Xt===null)throw Error(i(349));(wt&124)!==0||R5(u,r,s)}d.memoizedState=s;var p={value:s,getSnapshot:r};return d.queue=p,V5(M5.bind(null,u,p,n),[n]),u.flags|=2048,rs(9,gc(),I5.bind(null,u,p,s,r),null),s},useId:function(){var n=pr(),r=Xt.identifierPrefix;if(Dt){var s=ei,u=$a;s=(u&~(1<<32-Ut(u)-1)).toString(32)+s,r="«"+r+"R"+s,s=hc++,0<s&&(r+="H"+s.toString(32)),r+="»"}else s=IC++,r="«"+r+"r"+s.toString(32)+"»";return n.memoizedState=r},useHostTransitionStatus:od,useFormState:z5,useActionState:z5,useOptimistic:function(n){var r=pr();r.memoizedState=r.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=s,r=ud.bind(null,ut,!0,s),s.dispatch=r,[n,r]},useMemoCache:ed,useCacheRefresh:function(){return pr().memoizedState=kC.bind(null,ut)}},o6={readContext:tr,use:mc,useCallback:K5,useContext:tr,useEffect:G5,useImperativeHandle:Q5,useInsertionEffect:Z5,useLayoutEffect:W5,useMemo:J5,useReducer:pc,useRef:F5,useState:function(){return pc(ri)},useDebugValue:id,useDeferredValue:function(n,r){var s=In();return X5(s,Gt.memoizedState,n,r)},useTransition:function(){var n=pc(ri)[0],r=In().memoizedState;return[typeof n=="boolean"?n:xo(n),r]},useSyncExternalStore:O5,useId:n6,useHostTransitionStatus:od,useFormState:P5,useActionState:P5,useOptimistic:function(n,r){var s=In();return L5(s,Gt,n,r)},useMemoCache:ed,useCacheRefresh:r6},_C={readContext:tr,use:mc,useCallback:K5,useContext:tr,useEffect:G5,useImperativeHandle:Q5,useInsertionEffect:Z5,useLayoutEffect:W5,useMemo:J5,useReducer:nd,useRef:F5,useState:function(){return nd(ri)},useDebugValue:id,useDeferredValue:function(n,r){var s=In();return Gt===null?ld(s,n,r):X5(s,Gt.memoizedState,n,r)},useTransition:function(){var n=nd(ri)[0],r=In().memoizedState;return[typeof n=="boolean"?n:xo(n),r]},useSyncExternalStore:O5,useId:n6,useHostTransitionStatus:od,useFormState:B5,useActionState:B5,useOptimistic:function(n,r){var s=In();return Gt!==null?L5(s,Gt,n,r):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:ed,useCacheRefresh:r6},as=null,Ro=0;function Sc(n){var r=Ro;return Ro+=1,as===null&&(as=[]),b5(as,n,r)}function Io(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function Ec(n,r){throw r.$$typeof===b?Error(i(525)):(n=Object.prototype.toString.call(r),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function u6(n){var r=n._init;return r(n._payload)}function c6(n){function r(X,J){if(n){var te=X.deletions;te===null?(X.deletions=[J],X.flags|=16):te.push(J)}}function s(X,J){if(!n)return null;for(;J!==null;)r(X,J),J=J.sibling;return null}function u(X){for(var J=new Map;X!==null;)X.key!==null?J.set(X.key,X):J.set(X.index,X),X=X.sibling;return J}function d(X,J){return X=Xa(X,J),X.index=0,X.sibling=null,X}function p(X,J,te){return X.index=te,n?(te=X.alternate,te!==null?(te=te.index,te<J?(X.flags|=67108866,J):te):(X.flags|=67108866,J)):(X.flags|=1048576,J)}function C(X){return n&&X.alternate===null&&(X.flags|=67108866),X}function N(X,J,te,de){return J===null||J.tag!==6?(J=M1(te,X.mode,de),J.return=X,J):(J=d(J,te),J.return=X,J)}function W(X,J,te,de){var Ie=te.type;return Ie===w?ue(X,J,te.props.children,de,te.key):J!==null&&(J.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===E&&u6(Ie)===J.type)?(J=d(J,te.props),Io(J,te),J.return=X,J):(J=rc(te.type,te.key,te.props,null,X.mode,de),Io(J,te),J.return=X,J)}function re(X,J,te,de){return J===null||J.tag!==4||J.stateNode.containerInfo!==te.containerInfo||J.stateNode.implementation!==te.implementation?(J=D1(te,X.mode,de),J.return=X,J):(J=d(J,te.children||[]),J.return=X,J)}function ue(X,J,te,de,Ie){return J===null||J.tag!==7?(J=sl(te,X.mode,de,Ie),J.return=X,J):(J=d(J,te),J.return=X,J)}function he(X,J,te){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=M1(""+J,X.mode,te),J.return=X,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case S:return te=rc(J.type,J.key,J.props,null,X.mode,te),Io(te,J),te.return=X,te;case A:return J=D1(J,X.mode,te),J.return=X,J;case E:var de=J._init;return J=de(J._payload),he(X,J,te)}if(U(J)||_(J))return J=sl(J,X.mode,te,null),J.return=X,J;if(typeof J.then=="function")return he(X,Sc(J),te);if(J.$$typeof===B)return he(X,sc(X,J),te);Ec(X,J)}return null}function le(X,J,te,de){var Ie=J!==null?J.key:null;if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Ie!==null?null:N(X,J,""+te,de);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case S:return te.key===Ie?W(X,J,te,de):null;case A:return te.key===Ie?re(X,J,te,de):null;case E:return Ie=te._init,te=Ie(te._payload),le(X,J,te,de)}if(U(te)||_(te))return Ie!==null?null:ue(X,J,te,de,null);if(typeof te.then=="function")return le(X,J,Sc(te),de);if(te.$$typeof===B)return le(X,J,sc(X,te),de);Ec(X,te)}return null}function se(X,J,te,de,Ie){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return X=X.get(te)||null,N(J,X,""+de,Ie);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case S:return X=X.get(de.key===null?te:de.key)||null,W(J,X,de,Ie);case A:return X=X.get(de.key===null?te:de.key)||null,re(J,X,de,Ie);case E:var dt=de._init;return de=dt(de._payload),se(X,J,te,de,Ie)}if(U(de)||_(de))return X=X.get(te)||null,ue(J,X,de,Ie,null);if(typeof de.then=="function")return se(X,J,te,Sc(de),Ie);if(de.$$typeof===B)return se(X,J,te,sc(J,de),Ie);Ec(J,de)}return null}function Ye(X,J,te,de){for(var Ie=null,dt=null,ke=J,Ge=J=0,Bn=null;ke!==null&&Ge<te.length;Ge++){ke.index>Ge?(Bn=ke,ke=null):Bn=ke.sibling;var Ot=le(X,ke,te[Ge],de);if(Ot===null){ke===null&&(ke=Bn);break}n&&ke&&Ot.alternate===null&&r(X,ke),J=p(Ot,J,Ge),dt===null?Ie=Ot:dt.sibling=Ot,dt=Ot,ke=Bn}if(Ge===te.length)return s(X,ke),Dt&&ul(X,Ge),Ie;if(ke===null){for(;Ge<te.length;Ge++)ke=he(X,te[Ge],de),ke!==null&&(J=p(ke,J,Ge),dt===null?Ie=ke:dt.sibling=ke,dt=ke);return Dt&&ul(X,Ge),Ie}for(ke=u(ke);Ge<te.length;Ge++)Bn=se(ke,X,Ge,te[Ge],de),Bn!==null&&(n&&Bn.alternate!==null&&ke.delete(Bn.key===null?Ge:Bn.key),J=p(Bn,J,Ge),dt===null?Ie=Bn:dt.sibling=Bn,dt=Bn);return n&&ke.forEach(function(Vi){return r(X,Vi)}),Dt&&ul(X,Ge),Ie}function Fe(X,J,te,de){if(te==null)throw Error(i(151));for(var Ie=null,dt=null,ke=J,Ge=J=0,Bn=null,Ot=te.next();ke!==null&&!Ot.done;Ge++,Ot=te.next()){ke.index>Ge?(Bn=ke,ke=null):Bn=ke.sibling;var Vi=le(X,ke,Ot.value,de);if(Vi===null){ke===null&&(ke=Bn);break}n&&ke&&Vi.alternate===null&&r(X,ke),J=p(Vi,J,Ge),dt===null?Ie=Vi:dt.sibling=Vi,dt=Vi,ke=Bn}if(Ot.done)return s(X,ke),Dt&&ul(X,Ge),Ie;if(ke===null){for(;!Ot.done;Ge++,Ot=te.next())Ot=he(X,Ot.value,de),Ot!==null&&(J=p(Ot,J,Ge),dt===null?Ie=Ot:dt.sibling=Ot,dt=Ot);return Dt&&ul(X,Ge),Ie}for(ke=u(ke);!Ot.done;Ge++,Ot=te.next())Ot=se(ke,X,Ge,Ot.value,de),Ot!==null&&(n&&Ot.alternate!==null&&ke.delete(Ot.key===null?Ge:Ot.key),J=p(Ot,J,Ge),dt===null?Ie=Ot:dt.sibling=Ot,dt=Ot);return n&&ke.forEach(function(Ux){return r(X,Ux)}),Dt&&ul(X,Ge),Ie}function Wt(X,J,te,de){if(typeof te=="object"&&te!==null&&te.type===w&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case S:e:{for(var Ie=te.key;J!==null;){if(J.key===Ie){if(Ie=te.type,Ie===w){if(J.tag===7){s(X,J.sibling),de=d(J,te.props.children),de.return=X,X=de;break e}}else if(J.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===E&&u6(Ie)===J.type){s(X,J.sibling),de=d(J,te.props),Io(de,te),de.return=X,X=de;break e}s(X,J);break}else r(X,J);J=J.sibling}te.type===w?(de=sl(te.props.children,X.mode,de,te.key),de.return=X,X=de):(de=rc(te.type,te.key,te.props,null,X.mode,de),Io(de,te),de.return=X,X=de)}return C(X);case A:e:{for(Ie=te.key;J!==null;){if(J.key===Ie)if(J.tag===4&&J.stateNode.containerInfo===te.containerInfo&&J.stateNode.implementation===te.implementation){s(X,J.sibling),de=d(J,te.children||[]),de.return=X,X=de;break e}else{s(X,J);break}else r(X,J);J=J.sibling}de=D1(te,X.mode,de),de.return=X,X=de}return C(X);case E:return Ie=te._init,te=Ie(te._payload),Wt(X,J,te,de)}if(U(te))return Ye(X,J,te,de);if(_(te)){if(Ie=_(te),typeof Ie!="function")throw Error(i(150));return te=Ie.call(te),Fe(X,J,te,de)}if(typeof te.then=="function")return Wt(X,J,Sc(te),de);if(te.$$typeof===B)return Wt(X,J,sc(X,te),de);Ec(X,te)}return typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint"?(te=""+te,J!==null&&J.tag===6?(s(X,J.sibling),de=d(J,te),de.return=X,X=de):(s(X,J),de=M1(te,X.mode,de),de.return=X,X=de),C(X)):s(X,J)}return function(X,J,te,de){try{Ro=0;var Ie=Wt(X,J,te,de);return as=null,Ie}catch(ke){if(ke===bo||ke===uc)throw ke;var dt=Or(29,ke,null,X.mode);return dt.lanes=de,dt.return=X,dt}finally{}}}var is=c6(!0),f6=c6(!1),Wr=G(null),La=null;function Ii(n){var r=n.alternate;ne(Un,Un.current&1),ne(Wr,n),La===null&&(r===null||es.current!==null||r.memoizedState!==null)&&(La=n)}function d6(n){if(n.tag===22){if(ne(Un,Un.current),ne(Wr,n),La===null){var r=n.alternate;r!==null&&r.memoizedState!==null&&(La=n)}}else Mi()}function Mi(){ne(Un,Un.current),ne(Wr,Wr.current)}function ai(n){ee(Wr),La===n&&(La=null),ee(Un)}var Un=G(0);function Ac(n){for(var r=n;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||$d(s)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function cd(n,r,s,u){r=n.memoizedState,s=s(u,r),s=s==null?r:v({},r,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var fd={enqueueSetState:function(n,r,s){n=n._reactInternals;var u=Dr(),d=Ti(u);d.payload=r,s!=null&&(d.callback=s),r=Oi(n,d,u),r!==null&&(Nr(r,n,u),Eo(r,n,u))},enqueueReplaceState:function(n,r,s){n=n._reactInternals;var u=Dr(),d=Ti(u);d.tag=1,d.payload=r,s!=null&&(d.callback=s),r=Oi(n,d,u),r!==null&&(Nr(r,n,u),Eo(r,n,u))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var s=Dr(),u=Ti(s);u.tag=2,r!=null&&(u.callback=r),r=Oi(n,u,s),r!==null&&(Nr(r,n,s),Eo(r,n,s))}};function h6(n,r,s,u,d,p,C){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,p,C):r.prototype&&r.prototype.isPureReactComponent?!co(s,u)||!co(d,p):!0}function m6(n,r,s,u){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,u),r.state!==n&&fd.enqueueReplaceState(r,r.state,null)}function gl(n,r){var s=r;if("ref"in r){s={};for(var u in r)u!=="ref"&&(s[u]=r[u])}if(n=n.defaultProps){s===r&&(s=v({},s));for(var d in n)s[d]===void 0&&(s[d]=n[d])}return s}var wc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function p6(n){wc(n)}function g6(n){console.error(n)}function v6(n){wc(n)}function Cc(n,r){try{var s=n.onUncaughtError;s(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function y6(n,r,s){try{var u=n.onCaughtError;u(s.value,{componentStack:s.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function dd(n,r,s){return s=Ti(s),s.tag=3,s.payload={element:null},s.callback=function(){Cc(n,r)},s}function b6(n){return n=Ti(n),n.tag=3,n}function S6(n,r,s,u){var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var p=u.value;n.payload=function(){return d(p)},n.callback=function(){y6(r,s,u)}}var C=s.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(n.callback=function(){y6(r,s,u),typeof d!="function"&&(_i===null?_i=new Set([this]):_i.add(this));var N=u.stack;this.componentDidCatch(u.value,{componentStack:N!==null?N:""})})}function UC(n,r,s,u,d){if(s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=s.alternate,r!==null&&go(r,s,d,!0),s=Wr.current,s!==null){switch(s.tag){case 13:return La===null?_d():s.alternate===null&&fn===0&&(fn=3),s.flags&=-257,s.flags|=65536,s.lanes=d,u===H1?s.flags|=16384:(r=s.updateQueue,r===null?s.updateQueue=new Set([u]):r.add(u),qd(n,u,d)),!1;case 22:return s.flags|=65536,u===H1?s.flags|=16384:(r=s.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},s.updateQueue=r):(s=r.retryQueue,s===null?r.retryQueue=new Set([u]):s.add(u)),qd(n,u,d)),!1}throw Error(i(435,s.tag))}return qd(n,u,d),_d(),!1}if(Dt)return r=Wr.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,u!==k1&&(n=Error(i(422),{cause:u}),po(Fr(n,s)))):(u!==k1&&(r=Error(i(423),{cause:u}),po(Fr(r,s))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,u=Fr(u,s),d=dd(n.stateNode,u,d),V1(n,d),fn!==4&&(fn=2)),!1;var p=Error(i(520),{cause:u});if(p=Fr(p,s),_o===null?_o=[p]:_o.push(p),fn!==4&&(fn=2),r===null)return!0;u=Fr(u,s),s=r;do{switch(s.tag){case 3:return s.flags|=65536,n=d&-d,s.lanes|=n,n=dd(s.stateNode,u,n),V1(s,n),!1;case 1:if(r=s.type,p=s.stateNode,(s.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(_i===null||!_i.has(p))))return s.flags|=65536,d&=-d,s.lanes|=d,d=b6(d),S6(d,n,s,u),V1(s,d),!1}s=s.return}while(s!==null);return!1}var E6=Error(i(461)),Pn=!1;function Qn(n,r,s,u){r.child=n===null?f6(r,null,s,u):is(r,n.child,s,u)}function A6(n,r,s,u,d){s=s.render;var p=r.ref;if("ref"in u){var C={};for(var N in u)N!=="ref"&&(C[N]=u[N])}else C=u;return hl(r),u=Q1(n,r,s,C,p,d),N=K1(),n!==null&&!Pn?(J1(n,r,d),ii(n,r,d)):(Dt&&N&&N1(r),r.flags|=1,Qn(n,r,u,d),r.child)}function w6(n,r,s,u,d){if(n===null){var p=s.type;return typeof p=="function"&&!I1(p)&&p.defaultProps===void 0&&s.compare===null?(r.tag=15,r.type=p,C6(n,r,p,u,d)):(n=rc(s.type,null,u,r,r.mode,d),n.ref=r.ref,n.return=r,r.child=n)}if(p=n.child,!Sd(n,d)){var C=p.memoizedProps;if(s=s.compare,s=s!==null?s:co,s(C,u)&&n.ref===r.ref)return ii(n,r,d)}return r.flags|=1,n=Xa(p,u),n.ref=r.ref,n.return=r,r.child=n}function C6(n,r,s,u,d){if(n!==null){var p=n.memoizedProps;if(co(p,u)&&n.ref===r.ref)if(Pn=!1,r.pendingProps=u=p,Sd(n,d))(n.flags&131072)!==0&&(Pn=!0);else return r.lanes=n.lanes,ii(n,r,d)}return hd(n,r,s,u,d)}function x6(n,r,s){var u=r.pendingProps,d=u.children,p=n!==null?n.memoizedState:null;if(u.mode==="hidden"){if((r.flags&128)!==0){if(u=p!==null?p.baseLanes|s:s,n!==null){for(d=r.child=n.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;r.childLanes=p&~u}else r.childLanes=0,r.child=null;return T6(n,r,u,s)}if((s&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&oc(r,p!==null?p.cachePool:null),p!==null?C5(r,p):Z1(),d6(r);else return r.lanes=r.childLanes=536870912,T6(n,r,p!==null?p.baseLanes|s:s,s)}else p!==null?(oc(r,p.cachePool),C5(r,p),Mi(),r.memoizedState=null):(n!==null&&oc(r,null),Z1(),Mi());return Qn(n,r,d,s),r.child}function T6(n,r,s,u){var d=P1();return d=d===null?null:{parent:_n._currentValue,pool:d},r.memoizedState={baseLanes:s,cachePool:d},n!==null&&oc(r,null),Z1(),d6(r),n!==null&&go(n,r,u,!0),null}function xc(n,r){var s=r.ref;if(s===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(n===null||n.ref!==s)&&(r.flags|=4194816)}}function hd(n,r,s,u,d){return hl(r),s=Q1(n,r,s,u,void 0,d),u=K1(),n!==null&&!Pn?(J1(n,r,d),ii(n,r,d)):(Dt&&u&&N1(r),r.flags|=1,Qn(n,r,s,d),r.child)}function O6(n,r,s,u,d,p){return hl(r),r.updateQueue=null,s=T5(r,u,s,d),x5(n),u=K1(),n!==null&&!Pn?(J1(n,r,p),ii(n,r,p)):(Dt&&u&&N1(r),r.flags|=1,Qn(n,r,s,p),r.child)}function R6(n,r,s,u,d){if(hl(r),r.stateNode===null){var p=Ql,C=s.contextType;typeof C=="object"&&C!==null&&(p=tr(C)),p=new s(u,p),r.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=fd,r.stateNode=p,p._reactInternals=r,p=r.stateNode,p.props=u,p.state=r.memoizedState,p.refs={},B1(r),C=s.contextType,p.context=typeof C=="object"&&C!==null?tr(C):Ql,p.state=r.memoizedState,C=s.getDerivedStateFromProps,typeof C=="function"&&(cd(r,s,C,u),p.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(C=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),C!==p.state&&fd.enqueueReplaceState(p,p.state,null),wo(r,u,p,d),Ao(),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(n===null){p=r.stateNode;var N=r.memoizedProps,W=gl(s,N);p.props=W;var re=p.context,ue=s.contextType;C=Ql,typeof ue=="object"&&ue!==null&&(C=tr(ue));var he=s.getDerivedStateFromProps;ue=typeof he=="function"||typeof p.getSnapshotBeforeUpdate=="function",N=r.pendingProps!==N,ue||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(N||re!==C)&&m6(r,p,u,C),xi=!1;var le=r.memoizedState;p.state=le,wo(r,u,p,d),Ao(),re=r.memoizedState,N||le!==re||xi?(typeof he=="function"&&(cd(r,s,he,u),re=r.memoizedState),(W=xi||h6(r,s,W,u,le,re,C))?(ue||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(r.flags|=4194308)):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=re),p.props=u,p.state=re,p.context=C,u=W):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{p=r.stateNode,F1(n,r),C=r.memoizedProps,ue=gl(s,C),p.props=ue,he=r.pendingProps,le=p.context,re=s.contextType,W=Ql,typeof re=="object"&&re!==null&&(W=tr(re)),N=s.getDerivedStateFromProps,(re=typeof N=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(C!==he||le!==W)&&m6(r,p,u,W),xi=!1,le=r.memoizedState,p.state=le,wo(r,u,p,d),Ao();var se=r.memoizedState;C!==he||le!==se||xi||n!==null&&n.dependencies!==null&&lc(n.dependencies)?(typeof N=="function"&&(cd(r,s,N,u),se=r.memoizedState),(ue=xi||h6(r,s,ue,u,le,se,W)||n!==null&&n.dependencies!==null&&lc(n.dependencies))?(re||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,se,W),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,se,W)),typeof p.componentDidUpdate=="function"&&(r.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof p.componentDidUpdate!="function"||C===n.memoizedProps&&le===n.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&le===n.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=se),p.props=u,p.state=se,p.context=W,u=ue):(typeof p.componentDidUpdate!="function"||C===n.memoizedProps&&le===n.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&le===n.memoizedState||(r.flags|=1024),u=!1)}return p=u,xc(n,r),u=(r.flags&128)!==0,p||u?(p=r.stateNode,s=u&&typeof s.getDerivedStateFromError!="function"?null:p.render(),r.flags|=1,n!==null&&u?(r.child=is(r,n.child,null,d),r.child=is(r,null,s,d)):Qn(n,r,s,d),r.memoizedState=p.state,n=r.child):n=ii(n,r,d),n}function I6(n,r,s,u){return mo(),r.flags|=256,Qn(n,r,s,u),r.child}var md={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pd(n){return{baseLanes:n,cachePool:g5()}}function gd(n,r,s){return n=n!==null?n.childLanes&~s:0,r&&(n|=Yr),n}function M6(n,r,s){var u=r.pendingProps,d=!1,p=(r.flags&128)!==0,C;if((C=p)||(C=n!==null&&n.memoizedState===null?!1:(Un.current&2)!==0),C&&(d=!0,r.flags&=-129),C=(r.flags&32)!==0,r.flags&=-33,n===null){if(Dt){if(d?Ii(r):Mi(),Dt){var N=cn,W;if(W=N){e:{for(W=N,N=Na;W.nodeType!==8;){if(!N){N=null;break e}if(W=ca(W.nextSibling),W===null){N=null;break e}}N=W}N!==null?(r.memoizedState={dehydrated:N,treeContext:ol!==null?{id:$a,overflow:ei}:null,retryLane:536870912,hydrationErrors:null},W=Or(18,null,null,0),W.stateNode=N,W.return=r,r.child=W,sr=r,cn=null,W=!0):W=!1}W||fl(r)}if(N=r.memoizedState,N!==null&&(N=N.dehydrated,N!==null))return $d(N)?r.lanes=32:r.lanes=536870912,null;ai(r)}return N=u.children,u=u.fallback,d?(Mi(),d=r.mode,N=Tc({mode:"hidden",children:N},d),u=sl(u,d,s,null),N.return=r,u.return=r,N.sibling=u,r.child=N,d=r.child,d.memoizedState=pd(s),d.childLanes=gd(n,C,s),r.memoizedState=md,u):(Ii(r),vd(r,N))}if(W=n.memoizedState,W!==null&&(N=W.dehydrated,N!==null)){if(p)r.flags&256?(Ii(r),r.flags&=-257,r=yd(n,r,s)):r.memoizedState!==null?(Mi(),r.child=n.child,r.flags|=128,r=null):(Mi(),d=u.fallback,N=r.mode,u=Tc({mode:"visible",children:u.children},N),d=sl(d,N,s,null),d.flags|=2,u.return=r,d.return=r,u.sibling=d,r.child=u,is(r,n.child,null,s),u=r.child,u.memoizedState=pd(s),u.childLanes=gd(n,C,s),r.memoizedState=md,r=d);else if(Ii(r),$d(N)){if(C=N.nextSibling&&N.nextSibling.dataset,C)var re=C.dgst;C=re,u=Error(i(419)),u.stack="",u.digest=C,po({value:u,source:null,stack:null}),r=yd(n,r,s)}else if(Pn||go(n,r,s,!1),C=(s&n.childLanes)!==0,Pn||C){if(C=Xt,C!==null&&(u=s&-s,u=(u&42)!==0?1:Yt(u),u=(u&(C.suspendedLanes|s))!==0?0:u,u!==0&&u!==W.retryLane))throw W.retryLane=u,Yl(n,u),Nr(C,n,u),E6;N.data==="$?"||_d(),r=yd(n,r,s)}else N.data==="$?"?(r.flags|=192,r.child=n.child,r=null):(n=W.treeContext,cn=ca(N.nextSibling),sr=r,Dt=!0,cl=null,Na=!1,n!==null&&(Gr[Zr++]=$a,Gr[Zr++]=ei,Gr[Zr++]=ol,$a=n.id,ei=n.overflow,ol=r),r=vd(r,u.children),r.flags|=4096);return r}return d?(Mi(),d=u.fallback,N=r.mode,W=n.child,re=W.sibling,u=Xa(W,{mode:"hidden",children:u.children}),u.subtreeFlags=W.subtreeFlags&65011712,re!==null?d=Xa(re,d):(d=sl(d,N,s,null),d.flags|=2),d.return=r,u.return=r,u.sibling=d,r.child=u,u=d,d=r.child,N=n.child.memoizedState,N===null?N=pd(s):(W=N.cachePool,W!==null?(re=_n._currentValue,W=W.parent!==re?{parent:re,pool:re}:W):W=g5(),N={baseLanes:N.baseLanes|s,cachePool:W}),d.memoizedState=N,d.childLanes=gd(n,C,s),r.memoizedState=md,u):(Ii(r),s=n.child,n=s.sibling,s=Xa(s,{mode:"visible",children:u.children}),s.return=r,s.sibling=null,n!==null&&(C=r.deletions,C===null?(r.deletions=[n],r.flags|=16):C.push(n)),r.child=s,r.memoizedState=null,s)}function vd(n,r){return r=Tc({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Tc(n,r){return n=Or(22,n,null,r),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function yd(n,r,s){return is(r,n.child,null,s),n=vd(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function D6(n,r,s){n.lanes|=r;var u=n.alternate;u!==null&&(u.lanes|=r),_1(n.return,r,s)}function bd(n,r,s,u,d){var p=n.memoizedState;p===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:s,tailMode:d}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=u,p.tail=s,p.tailMode=d)}function N6(n,r,s){var u=r.pendingProps,d=u.revealOrder,p=u.tail;if(Qn(n,r,u.children,s),u=Un.current,(u&2)!==0)u=u&1|2,r.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&D6(n,s,r);else if(n.tag===19)D6(n,s,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}switch(ne(Un,u),d){case"forwards":for(s=r.child,d=null;s!==null;)n=s.alternate,n!==null&&Ac(n)===null&&(d=s),s=s.sibling;s=d,s===null?(d=r.child,r.child=null):(d=s.sibling,s.sibling=null),bd(r,!1,d,s,p);break;case"backwards":for(s=null,d=r.child,r.child=null;d!==null;){if(n=d.alternate,n!==null&&Ac(n)===null){r.child=d;break}n=d.sibling,d.sibling=s,s=d,d=n}bd(r,!0,s,null,p);break;case"together":bd(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function ii(n,r,s){if(n!==null&&(r.dependencies=n.dependencies),ji|=r.lanes,(s&r.childLanes)===0)if(n!==null){if(go(n,r,s,!1),(s&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(i(153));if(r.child!==null){for(n=r.child,s=Xa(n,n.pendingProps),r.child=s,s.return=r;n.sibling!==null;)n=n.sibling,s=s.sibling=Xa(n,n.pendingProps),s.return=r;s.sibling=null}return r.child}function Sd(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&lc(n)))}function qC(n,r,s){switch(r.tag){case 3:Le(r,r.stateNode.containerInfo),Ci(r,_n,n.memoizedState.cache),mo();break;case 27:case 5:Vt(r);break;case 4:Le(r,r.stateNode.containerInfo);break;case 10:Ci(r,r.type,r.memoizedProps.value);break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(Ii(r),r.flags|=128,null):(s&r.child.childLanes)!==0?M6(n,r,s):(Ii(r),n=ii(n,r,s),n!==null?n.sibling:null);Ii(r);break;case 19:var d=(n.flags&128)!==0;if(u=(s&r.childLanes)!==0,u||(go(n,r,s,!1),u=(s&r.childLanes)!==0),d){if(u)return N6(n,r,s);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ne(Un,Un.current),u)break;return null;case 22:case 23:return r.lanes=0,x6(n,r,s);case 24:Ci(r,_n,n.memoizedState.cache)}return ii(n,r,s)}function L6(n,r,s){if(n!==null)if(n.memoizedProps!==r.pendingProps)Pn=!0;else{if(!Sd(n,s)&&(r.flags&128)===0)return Pn=!1,qC(n,r,s);Pn=(n.flags&131072)!==0}else Pn=!1,Dt&&(r.flags&1048576)!==0&&u5(r,ic,r.index);switch(r.lanes=0,r.tag){case 16:e:{n=r.pendingProps;var u=r.elementType,d=u._init;if(u=d(u._payload),r.type=u,typeof u=="function")I1(u)?(n=gl(u,n),r.tag=1,r=R6(null,r,u,n,s)):(r.tag=0,r=hd(null,r,u,n,s));else{if(u!=null){if(d=u.$$typeof,d===Y){r.tag=11,r=A6(null,r,u,n,s);break e}else if(d===Z){r.tag=14,r=w6(null,r,u,n,s);break e}}throw r=V(u)||u,Error(i(306,r,""))}}return r;case 0:return hd(n,r,r.type,r.pendingProps,s);case 1:return u=r.type,d=gl(u,r.pendingProps),R6(n,r,u,d,s);case 3:e:{if(Le(r,r.stateNode.containerInfo),n===null)throw Error(i(387));u=r.pendingProps;var p=r.memoizedState;d=p.element,F1(n,r),wo(r,u,null,s);var C=r.memoizedState;if(u=C.cache,Ci(r,_n,u),u!==p.cache&&U1(r,[_n],s,!0),Ao(),u=C.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:C.cache},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){r=I6(n,r,u,s);break e}else if(u!==d){d=Fr(Error(i(424)),r),po(d),r=I6(n,r,u,s);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(cn=ca(n.firstChild),sr=r,Dt=!0,cl=null,Na=!0,s=f6(r,null,u,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(mo(),u===d){r=ii(n,r,s);break e}Qn(n,r,u,s)}r=r.child}return r;case 26:return xc(n,r),n===null?(s=Ug(r.type,null,r.pendingProps,null))?r.memoizedState=s:Dt||(s=r.type,n=r.pendingProps,u=Pc(me.current).createElement(s),u[ve]=r,u[xe]=n,Jn(u,s,n),st(u),r.stateNode=u):r.memoizedState=Ug(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return Vt(r),n===null&&Dt&&(u=r.stateNode=kg(r.type,r.pendingProps,me.current),sr=r,Na=!0,d=cn,zi(r.type)?(e0=d,cn=ca(u.firstChild)):cn=d),Qn(n,r,r.pendingProps.children,s),xc(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&Dt&&((d=u=cn)&&(u=dx(u,r.type,r.pendingProps,Na),u!==null?(r.stateNode=u,sr=r,cn=ca(u.firstChild),Na=!1,d=!0):d=!1),d||fl(r)),Vt(r),d=r.type,p=r.pendingProps,C=n!==null?n.memoizedProps:null,u=p.children,Kd(d,p)?u=null:C!==null&&Kd(d,C)&&(r.flags|=32),r.memoizedState!==null&&(d=Q1(n,r,MC,null,null,s),Go._currentValue=d),xc(n,r),Qn(n,r,u,s),r.child;case 6:return n===null&&Dt&&((n=s=cn)&&(s=hx(s,r.pendingProps,Na),s!==null?(r.stateNode=s,sr=r,cn=null,n=!0):n=!1),n||fl(r)),null;case 13:return M6(n,r,s);case 4:return Le(r,r.stateNode.containerInfo),u=r.pendingProps,n===null?r.child=is(r,null,u,s):Qn(n,r,u,s),r.child;case 11:return A6(n,r,r.type,r.pendingProps,s);case 7:return Qn(n,r,r.pendingProps,s),r.child;case 8:return Qn(n,r,r.pendingProps.children,s),r.child;case 12:return Qn(n,r,r.pendingProps.children,s),r.child;case 10:return u=r.pendingProps,Ci(r,r.type,u.value),Qn(n,r,u.children,s),r.child;case 9:return d=r.type._context,u=r.pendingProps.children,hl(r),d=tr(d),u=u(d),r.flags|=1,Qn(n,r,u,s),r.child;case 14:return w6(n,r,r.type,r.pendingProps,s);case 15:return C6(n,r,r.type,r.pendingProps,s);case 19:return N6(n,r,s);case 31:return u=r.pendingProps,s=r.mode,u={mode:u.mode,children:u.children},n===null?(s=Tc(u,s),s.ref=r.ref,r.child=s,s.return=r,r=s):(s=Xa(n.child,u),s.ref=r.ref,r.child=s,s.return=r,r=s),r;case 22:return x6(n,r,s);case 24:return hl(r),u=tr(_n),n===null?(d=P1(),d===null&&(d=Xt,p=q1(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=s),d=p),r.memoizedState={parent:u,cache:d},B1(r),Ci(r,_n,d)):((n.lanes&s)!==0&&(F1(n,r),wo(r,null,null,s),Ao()),d=n.memoizedState,p=r.memoizedState,d.parent!==u?(d={parent:u,cache:u},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),Ci(r,_n,u)):(u=p.cache,Ci(r,_n,u),u!==d.cache&&U1(r,[_n],s,!0))),Qn(n,r,r.pendingProps.children,s),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function li(n){n.flags|=4}function k6(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Bg(r)){if(r=Wr.current,r!==null&&((wt&4194048)===wt?La!==null:(wt&62914560)!==wt&&(wt&536870912)===0||r!==La))throw So=H1,v5;n.flags|=8192}}function Oc(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?En():536870912,n.lanes|=r,us|=r)}function Mo(n,r){if(!Dt)switch(n.tailMode){case"hidden":r=n.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function sn(n){var r=n.alternate!==null&&n.alternate.child===n.child,s=0,u=0;if(r)for(var d=n.child;d!==null;)s|=d.lanes|d.childLanes,u|=d.subtreeFlags&65011712,u|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)s|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=u,n.childLanes=s,r}function zC(n,r,s){var u=r.pendingProps;switch(L1(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sn(r),null;case 1:return sn(r),null;case 3:return s=r.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),ni(_n),tt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(ho(r)?li(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,d5())),sn(r),null;case 26:return s=r.memoizedState,n===null?(li(r),s!==null?(sn(r),k6(r,s)):(sn(r),r.flags&=-16777217)):s?s!==n.memoizedState?(li(r),sn(r),k6(r,s)):(sn(r),r.flags&=-16777217):(n.memoizedProps!==u&&li(r),sn(r),r.flags&=-16777217),null;case 27:ot(r),s=me.current;var d=r.type;if(n!==null&&r.stateNode!=null)n.memoizedProps!==u&&li(r);else{if(!u){if(r.stateNode===null)throw Error(i(166));return sn(r),null}n=ge.current,ho(r)?c5(r):(n=kg(d,u,s),r.stateNode=n,li(r))}return sn(r),null;case 5:if(ot(r),s=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&li(r);else{if(!u){if(r.stateNode===null)throw Error(i(166));return sn(r),null}if(n=ge.current,ho(r))c5(r);else{switch(d=Pc(me.current),n){case 1:n=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:n=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":n=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":n=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":n=d.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof u.is=="string"?d.createElement("select",{is:u.is}):d.createElement("select"),u.multiple?n.multiple=!0:u.size&&(n.size=u.size);break;default:n=typeof u.is=="string"?d.createElement(s,{is:u.is}):d.createElement(s)}}n[ve]=r,n[xe]=u;e:for(d=r.child;d!==null;){if(d.tag===5||d.tag===6)n.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)break e;for(;d.sibling===null;){if(d.return===null||d.return===r)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}r.stateNode=n;e:switch(Jn(n,s,u),s){case"button":case"input":case"select":case"textarea":n=!!u.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&li(r)}}return sn(r),r.flags&=-16777217,null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==u&&li(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(i(166));if(n=me.current,ho(r)){if(n=r.stateNode,s=r.memoizedProps,u=null,d=sr,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}n[ve]=r,n=!!(n.nodeValue===s||u!==null&&u.suppressHydrationWarning===!0||Og(n.nodeValue,s)),n||fl(r)}else n=Pc(n).createTextNode(u),n[ve]=r,r.stateNode=n}return sn(r),null;case 13:if(u=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=ho(r),u!==null&&u.dehydrated!==null){if(n===null){if(!d)throw Error(i(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[ve]=r}else mo(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;sn(r),d=!1}else d=d5(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(ai(r),r):(ai(r),null)}if(ai(r),(r.flags&128)!==0)return r.lanes=s,r;if(s=u!==null,n=n!==null&&n.memoizedState!==null,s){u=r.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool);var p=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==d&&(u.flags|=2048)}return s!==n&&s&&(r.child.flags|=8192),Oc(r,r.updateQueue),sn(r),null;case 4:return tt(),n===null&&Gd(r.stateNode.containerInfo),sn(r),null;case 10:return ni(r.type),sn(r),null;case 19:if(ee(Un),d=r.memoizedState,d===null)return sn(r),null;if(u=(r.flags&128)!==0,p=d.rendering,p===null)if(u)Mo(d,!1);else{if(fn!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(p=Ac(n),p!==null){for(r.flags|=128,Mo(d,!1),n=p.updateQueue,r.updateQueue=n,Oc(r,n),r.subtreeFlags=0,n=s,s=r.child;s!==null;)o5(s,n),s=s.sibling;return ne(Un,Un.current&1|2),r.child}n=n.sibling}d.tail!==null&&De()>Mc&&(r.flags|=128,u=!0,Mo(d,!1),r.lanes=4194304)}else{if(!u)if(n=Ac(p),n!==null){if(r.flags|=128,u=!0,n=n.updateQueue,r.updateQueue=n,Oc(r,n),Mo(d,!0),d.tail===null&&d.tailMode==="hidden"&&!p.alternate&&!Dt)return sn(r),null}else 2*De()-d.renderingStartTime>Mc&&s!==536870912&&(r.flags|=128,u=!0,Mo(d,!1),r.lanes=4194304);d.isBackwards?(p.sibling=r.child,r.child=p):(n=d.last,n!==null?n.sibling=p:r.child=p,d.last=p)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=De(),r.sibling=null,n=Un.current,ne(Un,u?n&1|2:n&1),r):(sn(r),null);case 22:case 23:return ai(r),W1(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(s&536870912)!==0&&(r.flags&128)===0&&(sn(r),r.subtreeFlags&6&&(r.flags|=8192)):sn(r),s=r.updateQueue,s!==null&&Oc(r,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==s&&(r.flags|=2048),n!==null&&ee(ml),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),ni(_n),sn(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function PC(n,r){switch(L1(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return ni(_n),tt(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return ot(r),null;case 13:if(ai(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(i(340));mo()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return ee(Un),null;case 4:return tt(),null;case 10:return ni(r.type),null;case 22:case 23:return ai(r),W1(),n!==null&&ee(ml),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return ni(_n),null;case 25:return null;default:return null}}function j6(n,r){switch(L1(r),r.tag){case 3:ni(_n),tt();break;case 26:case 27:case 5:ot(r);break;case 4:tt();break;case 13:ai(r);break;case 19:ee(Un);break;case 10:ni(r.type);break;case 22:case 23:ai(r),W1(),n!==null&&ee(ml);break;case 24:ni(_n)}}function Do(n,r){try{var s=r.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var d=u.next;s=d;do{if((s.tag&n)===n){u=void 0;var p=s.create,C=s.inst;u=p(),C.destroy=u}s=s.next}while(s!==d)}}catch(N){Qt(r,r.return,N)}}function Di(n,r,s){try{var u=r.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var p=d.next;u=p;do{if((u.tag&n)===n){var C=u.inst,N=C.destroy;if(N!==void 0){C.destroy=void 0,d=r;var W=s,re=N;try{re()}catch(ue){Qt(d,W,ue)}}}u=u.next}while(u!==p)}}catch(ue){Qt(r,r.return,ue)}}function _6(n){var r=n.updateQueue;if(r!==null){var s=n.stateNode;try{w5(r,s)}catch(u){Qt(n,n.return,u)}}}function U6(n,r,s){s.props=gl(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(u){Qt(n,r,u)}}function No(n,r){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof s=="function"?n.refCleanup=s(u):s.current=u}}catch(d){Qt(n,r,d)}}function ka(n,r){var s=n.ref,u=n.refCleanup;if(s!==null)if(typeof u=="function")try{u()}catch(d){Qt(n,r,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(d){Qt(n,r,d)}else s.current=null}function q6(n){var r=n.type,s=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":s.autoFocus&&u.focus();break e;case"img":s.src?u.src=s.src:s.srcSet&&(u.srcset=s.srcSet)}}catch(d){Qt(n,n.return,d)}}function Ed(n,r,s){try{var u=n.stateNode;sx(u,n.type,s,r),u[xe]=r}catch(d){Qt(n,n.return,d)}}function z6(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&zi(n.type)||n.tag===4}function Ad(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||z6(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&zi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function wd(n,r,s){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,r):(r=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,r.appendChild(n),s=s._reactRootContainer,s!=null||r.onclick!==null||(r.onclick=zc));else if(u!==4&&(u===27&&zi(n.type)&&(s=n.stateNode,r=null),n=n.child,n!==null))for(wd(n,r,s),n=n.sibling;n!==null;)wd(n,r,s),n=n.sibling}function Rc(n,r,s){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?s.insertBefore(n,r):s.appendChild(n);else if(u!==4&&(u===27&&zi(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Rc(n,r,s),n=n.sibling;n!==null;)Rc(n,r,s),n=n.sibling}function P6(n){var r=n.stateNode,s=n.memoizedProps;try{for(var u=n.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);Jn(r,u,s),r[ve]=n,r[xe]=s}catch(p){Qt(n,n.return,p)}}var si=!1,bn=!1,Cd=!1,H6=typeof WeakSet=="function"?WeakSet:Set,Hn=null;function HC(n,r){if(n=n.containerInfo,Yd=Zc,n=X4(n),A1(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var u=s.getSelection&&s.getSelection();if(u&&u.rangeCount!==0){s=u.anchorNode;var d=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{s.nodeType,p.nodeType}catch{s=null;break e}var C=0,N=-1,W=-1,re=0,ue=0,he=n,le=null;t:for(;;){for(var se;he!==s||d!==0&&he.nodeType!==3||(N=C+d),he!==p||u!==0&&he.nodeType!==3||(W=C+u),he.nodeType===3&&(C+=he.nodeValue.length),(se=he.firstChild)!==null;)le=he,he=se;for(;;){if(he===n)break t;if(le===s&&++re===d&&(N=C),le===p&&++ue===u&&(W=C),(se=he.nextSibling)!==null)break;he=le,le=he.parentNode}he=se}s=N===-1||W===-1?null:{start:N,end:W}}else s=null}s=s||{start:0,end:0}}else s=null;for(Qd={focusedElem:n,selectionRange:s},Zc=!1,Hn=r;Hn!==null;)if(r=Hn,n=r.child,(r.subtreeFlags&1024)!==0&&n!==null)n.return=r,Hn=n;else for(;Hn!==null;){switch(r=Hn,p=r.alternate,n=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,s=r,d=p.memoizedProps,p=p.memoizedState,u=s.stateNode;try{var Ye=gl(s.type,d,s.elementType===s.type);n=u.getSnapshotBeforeUpdate(Ye,p),u.__reactInternalSnapshotBeforeUpdate=n}catch(Fe){Qt(s,s.return,Fe)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,s=n.nodeType,s===9)Xd(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Xd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=r.sibling,n!==null){n.return=r.return,Hn=n;break}Hn=r.return}}function B6(n,r,s){var u=s.flags;switch(s.tag){case 0:case 11:case 15:Ni(n,s),u&4&&Do(5,s);break;case 1:if(Ni(n,s),u&4)if(n=s.stateNode,r===null)try{n.componentDidMount()}catch(C){Qt(s,s.return,C)}else{var d=gl(s.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(d,r,n.__reactInternalSnapshotBeforeUpdate)}catch(C){Qt(s,s.return,C)}}u&64&&_6(s),u&512&&No(s,s.return);break;case 3:if(Ni(n,s),u&64&&(n=s.updateQueue,n!==null)){if(r=null,s.child!==null)switch(s.child.tag){case 27:case 5:r=s.child.stateNode;break;case 1:r=s.child.stateNode}try{w5(n,r)}catch(C){Qt(s,s.return,C)}}break;case 27:r===null&&u&4&&P6(s);case 26:case 5:Ni(n,s),r===null&&u&4&&q6(s),u&512&&No(s,s.return);break;case 12:Ni(n,s);break;case 13:Ni(n,s),u&4&&G6(n,s),u&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=KC.bind(null,s),mx(n,s))));break;case 22:if(u=s.memoizedState!==null||si,!u){r=r!==null&&r.memoizedState!==null||bn,d=si;var p=bn;si=u,(bn=r)&&!p?Li(n,s,(s.subtreeFlags&8772)!==0):Ni(n,s),si=d,bn=p}break;case 30:break;default:Ni(n,s)}}function F6(n){var r=n.alternate;r!==null&&(n.alternate=null,F6(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&oe(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var nn=null,gr=!1;function oi(n,r,s){for(s=s.child;s!==null;)V6(n,r,s),s=s.sibling}function V6(n,r,s){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(ft,s)}catch{}switch(s.tag){case 26:bn||ka(s,r),oi(n,r,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:bn||ka(s,r);var u=nn,d=gr;zi(s.type)&&(nn=s.stateNode,gr=!1),oi(n,r,s),Ho(s.stateNode),nn=u,gr=d;break;case 5:bn||ka(s,r);case 6:if(u=nn,d=gr,nn=null,oi(n,r,s),nn=u,gr=d,nn!==null)if(gr)try{(nn.nodeType===9?nn.body:nn.nodeName==="HTML"?nn.ownerDocument.body:nn).removeChild(s.stateNode)}catch(p){Qt(s,r,p)}else try{nn.removeChild(s.stateNode)}catch(p){Qt(s,r,p)}break;case 18:nn!==null&&(gr?(n=nn,Ng(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Qo(n)):Ng(nn,s.stateNode));break;case 4:u=nn,d=gr,nn=s.stateNode.containerInfo,gr=!0,oi(n,r,s),nn=u,gr=d;break;case 0:case 11:case 14:case 15:bn||Di(2,s,r),bn||Di(4,s,r),oi(n,r,s);break;case 1:bn||(ka(s,r),u=s.stateNode,typeof u.componentWillUnmount=="function"&&U6(s,r,u)),oi(n,r,s);break;case 21:oi(n,r,s);break;case 22:bn=(u=bn)||s.memoizedState!==null,oi(n,r,s),bn=u;break;default:oi(n,r,s)}}function G6(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Qo(n)}catch(s){Qt(r,r.return,s)}}function BC(n){switch(n.tag){case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new H6),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new H6),r;default:throw Error(i(435,n.tag))}}function xd(n,r){var s=BC(n);r.forEach(function(u){var d=JC.bind(null,n,u);s.has(u)||(s.add(u),u.then(d,d))})}function Rr(n,r){var s=r.deletions;if(s!==null)for(var u=0;u<s.length;u++){var d=s[u],p=n,C=r,N=C;e:for(;N!==null;){switch(N.tag){case 27:if(zi(N.type)){nn=N.stateNode,gr=!1;break e}break;case 5:nn=N.stateNode,gr=!1;break e;case 3:case 4:nn=N.stateNode.containerInfo,gr=!0;break e}N=N.return}if(nn===null)throw Error(i(160));V6(p,C,d),nn=null,gr=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)Z6(r,n),r=r.sibling}var ua=null;function Z6(n,r){var s=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Rr(r,n),Ir(n),u&4&&(Di(3,n,n.return),Do(3,n),Di(5,n,n.return));break;case 1:Rr(r,n),Ir(n),u&512&&(bn||s===null||ka(s,s.return)),u&64&&si&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?u:s.concat(u))));break;case 26:var d=ua;if(Rr(r,n),Ir(n),u&512&&(bn||s===null||ka(s,s.return)),u&4){var p=s!==null?s.memoizedState:null;if(u=n.memoizedState,s===null)if(u===null)if(n.stateNode===null){e:{u=n.type,s=n.memoizedProps,d=d.ownerDocument||d;t:switch(u){case"title":p=d.getElementsByTagName("title")[0],(!p||p[ce]||p[ve]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(u),d.head.insertBefore(p,d.querySelector("head > title"))),Jn(p,u,s),p[ve]=n,st(p),u=p;break e;case"link":var C=Pg("link","href",d).get(u+(s.href||""));if(C){for(var N=0;N<C.length;N++)if(p=C[N],p.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&p.getAttribute("rel")===(s.rel==null?null:s.rel)&&p.getAttribute("title")===(s.title==null?null:s.title)&&p.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){C.splice(N,1);break t}}p=d.createElement(u),Jn(p,u,s),d.head.appendChild(p);break;case"meta":if(C=Pg("meta","content",d).get(u+(s.content||""))){for(N=0;N<C.length;N++)if(p=C[N],p.getAttribute("content")===(s.content==null?null:""+s.content)&&p.getAttribute("name")===(s.name==null?null:s.name)&&p.getAttribute("property")===(s.property==null?null:s.property)&&p.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&p.getAttribute("charset")===(s.charSet==null?null:s.charSet)){C.splice(N,1);break t}}p=d.createElement(u),Jn(p,u,s),d.head.appendChild(p);break;default:throw Error(i(468,u))}p[ve]=n,st(p),u=p}n.stateNode=u}else Hg(d,n.type,n.stateNode);else n.stateNode=zg(d,u,n.memoizedProps);else p!==u?(p===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):p.count--,u===null?Hg(d,n.type,n.stateNode):zg(d,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Ed(n,n.memoizedProps,s.memoizedProps)}break;case 27:Rr(r,n),Ir(n),u&512&&(bn||s===null||ka(s,s.return)),s!==null&&u&4&&Ed(n,n.memoizedProps,s.memoizedProps);break;case 5:if(Rr(r,n),Ir(n),u&512&&(bn||s===null||ka(s,s.return)),n.flags&32){d=n.stateNode;try{ia(d,"")}catch(se){Qt(n,n.return,se)}}u&4&&n.stateNode!=null&&(d=n.memoizedProps,Ed(n,d,s!==null?s.memoizedProps:d)),u&1024&&(Cd=!0);break;case 6:if(Rr(r,n),Ir(n),u&4){if(n.stateNode===null)throw Error(i(162));u=n.memoizedProps,s=n.stateNode;try{s.nodeValue=u}catch(se){Qt(n,n.return,se)}}break;case 3:if(Fc=null,d=ua,ua=Hc(r.containerInfo),Rr(r,n),ua=d,Ir(n),u&4&&s!==null&&s.memoizedState.isDehydrated)try{Qo(r.containerInfo)}catch(se){Qt(n,n.return,se)}Cd&&(Cd=!1,W6(n));break;case 4:u=ua,ua=Hc(n.stateNode.containerInfo),Rr(r,n),Ir(n),ua=u;break;case 12:Rr(r,n),Ir(n);break;case 13:Rr(r,n),Ir(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Dd=De()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,xd(n,u)));break;case 22:d=n.memoizedState!==null;var W=s!==null&&s.memoizedState!==null,re=si,ue=bn;if(si=re||d,bn=ue||W,Rr(r,n),bn=ue,si=re,Ir(n),u&8192)e:for(r=n.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(s===null||W||si||bn||vl(n)),s=null,r=n;;){if(r.tag===5||r.tag===26){if(s===null){W=s=r;try{if(p=W.stateNode,d)C=p.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{N=W.stateNode;var he=W.memoizedProps.style,le=he!=null&&he.hasOwnProperty("display")?he.display:null;N.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(se){Qt(W,W.return,se)}}}else if(r.tag===6){if(s===null){W=r;try{W.stateNode.nodeValue=d?"":W.memoizedProps}catch(se){Qt(W,W.return,se)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;s===r&&(s=null),r=r.return}s===r&&(s=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=n.updateQueue,u!==null&&(s=u.retryQueue,s!==null&&(u.retryQueue=null,xd(n,s))));break;case 19:Rr(r,n),Ir(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,xd(n,u)));break;case 30:break;case 21:break;default:Rr(r,n),Ir(n)}}function Ir(n){var r=n.flags;if(r&2){try{for(var s,u=n.return;u!==null;){if(z6(u)){s=u;break}u=u.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var d=s.stateNode,p=Ad(n);Rc(n,p,d);break;case 5:var C=s.stateNode;s.flags&32&&(ia(C,""),s.flags&=-33);var N=Ad(n);Rc(n,N,C);break;case 3:case 4:var W=s.stateNode.containerInfo,re=Ad(n);wd(n,re,W);break;default:throw Error(i(161))}}catch(ue){Qt(n,n.return,ue)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function W6(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;W6(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function Ni(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)B6(n,r.alternate,r),r=r.sibling}function vl(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:Di(4,r,r.return),vl(r);break;case 1:ka(r,r.return);var s=r.stateNode;typeof s.componentWillUnmount=="function"&&U6(r,r.return,s),vl(r);break;case 27:Ho(r.stateNode);case 26:case 5:ka(r,r.return),vl(r);break;case 22:r.memoizedState===null&&vl(r);break;case 30:vl(r);break;default:vl(r)}n=n.sibling}}function Li(n,r,s){for(s=s&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,d=n,p=r,C=p.flags;switch(p.tag){case 0:case 11:case 15:Li(d,p,s),Do(4,p);break;case 1:if(Li(d,p,s),u=p,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(re){Qt(u,u.return,re)}if(u=p,d=u.updateQueue,d!==null){var N=u.stateNode;try{var W=d.shared.hiddenCallbacks;if(W!==null)for(d.shared.hiddenCallbacks=null,d=0;d<W.length;d++)A5(W[d],N)}catch(re){Qt(u,u.return,re)}}s&&C&64&&_6(p),No(p,p.return);break;case 27:P6(p);case 26:case 5:Li(d,p,s),s&&u===null&&C&4&&q6(p),No(p,p.return);break;case 12:Li(d,p,s);break;case 13:Li(d,p,s),s&&C&4&&G6(d,p);break;case 22:p.memoizedState===null&&Li(d,p,s),No(p,p.return);break;case 30:break;default:Li(d,p,s)}r=r.sibling}}function Td(n,r){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&vo(s))}function Od(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&vo(n))}function ja(n,r,s,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Y6(n,r,s,u),r=r.sibling}function Y6(n,r,s,u){var d=r.flags;switch(r.tag){case 0:case 11:case 15:ja(n,r,s,u),d&2048&&Do(9,r);break;case 1:ja(n,r,s,u);break;case 3:ja(n,r,s,u),d&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&vo(n)));break;case 12:if(d&2048){ja(n,r,s,u),n=r.stateNode;try{var p=r.memoizedProps,C=p.id,N=p.onPostCommit;typeof N=="function"&&N(C,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(W){Qt(r,r.return,W)}}else ja(n,r,s,u);break;case 13:ja(n,r,s,u);break;case 23:break;case 22:p=r.stateNode,C=r.alternate,r.memoizedState!==null?p._visibility&2?ja(n,r,s,u):Lo(n,r):p._visibility&2?ja(n,r,s,u):(p._visibility|=2,ls(n,r,s,u,(r.subtreeFlags&10256)!==0)),d&2048&&Td(C,r);break;case 24:ja(n,r,s,u),d&2048&&Od(r.alternate,r);break;default:ja(n,r,s,u)}}function ls(n,r,s,u,d){for(d=d&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var p=n,C=r,N=s,W=u,re=C.flags;switch(C.tag){case 0:case 11:case 15:ls(p,C,N,W,d),Do(8,C);break;case 23:break;case 22:var ue=C.stateNode;C.memoizedState!==null?ue._visibility&2?ls(p,C,N,W,d):Lo(p,C):(ue._visibility|=2,ls(p,C,N,W,d)),d&&re&2048&&Td(C.alternate,C);break;case 24:ls(p,C,N,W,d),d&&re&2048&&Od(C.alternate,C);break;default:ls(p,C,N,W,d)}r=r.sibling}}function Lo(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var s=n,u=r,d=u.flags;switch(u.tag){case 22:Lo(s,u),d&2048&&Td(u.alternate,u);break;case 24:Lo(s,u),d&2048&&Od(u.alternate,u);break;default:Lo(s,u)}r=r.sibling}}var ko=8192;function ss(n){if(n.subtreeFlags&ko)for(n=n.child;n!==null;)Q6(n),n=n.sibling}function Q6(n){switch(n.tag){case 26:ss(n),n.flags&ko&&n.memoizedState!==null&&Ox(ua,n.memoizedState,n.memoizedProps);break;case 5:ss(n);break;case 3:case 4:var r=ua;ua=Hc(n.stateNode.containerInfo),ss(n),ua=r;break;case 22:n.memoizedState===null&&(r=n.alternate,r!==null&&r.memoizedState!==null?(r=ko,ko=16777216,ss(n),ko=r):ss(n));break;default:ss(n)}}function K6(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function jo(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var u=r[s];Hn=u,X6(u,n)}K6(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)J6(n),n=n.sibling}function J6(n){switch(n.tag){case 0:case 11:case 15:jo(n),n.flags&2048&&Di(9,n,n.return);break;case 3:jo(n);break;case 12:jo(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Ic(n)):jo(n);break;default:jo(n)}}function Ic(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var u=r[s];Hn=u,X6(u,n)}K6(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:Di(8,r,r.return),Ic(r);break;case 22:s=r.stateNode,s._visibility&2&&(s._visibility&=-3,Ic(r));break;default:Ic(r)}n=n.sibling}}function X6(n,r){for(;Hn!==null;){var s=Hn;switch(s.tag){case 0:case 11:case 15:Di(8,s,r);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var u=s.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:vo(s.memoizedState.cache)}if(u=s.child,u!==null)u.return=s,Hn=u;else e:for(s=n;Hn!==null;){u=Hn;var d=u.sibling,p=u.return;if(F6(u),u===s){Hn=null;break e}if(d!==null){d.return=p,Hn=d;break e}Hn=p}}}var FC={getCacheForType:function(n){var r=tr(_n),s=r.data.get(n);return s===void 0&&(s=n(),r.data.set(n,s)),s}},VC=typeof WeakMap=="function"?WeakMap:Map,Ht=0,Xt=null,pt=null,wt=0,Bt=0,Mr=null,ki=!1,os=!1,Rd=!1,ui=0,fn=0,ji=0,yl=0,Id=0,Yr=0,us=0,_o=null,vr=null,Md=!1,Dd=0,Mc=1/0,Dc=null,_i=null,Kn=0,Ui=null,cs=null,fs=0,Nd=0,Ld=null,$6=null,Uo=0,kd=null;function Dr(){if((Ht&2)!==0&&wt!==0)return wt&-wt;if(M.T!==null){var n=Xl;return n!==0?n:Hd()}return $e()}function eg(){Yr===0&&(Yr=(wt&536870912)===0||Dt?Zn():536870912);var n=Wr.current;return n!==null&&(n.flags|=32),Yr}function Nr(n,r,s){(n===Xt&&(Bt===2||Bt===9)||n.cancelPendingCommit!==null)&&(ds(n,0),qi(n,wt,Yr,!1)),bt(n,s),((Ht&2)===0||n!==Xt)&&(n===Xt&&((Ht&2)===0&&(yl|=s),fn===4&&qi(n,wt,Yr,!1)),_a(n))}function tg(n,r,s){if((Ht&6)!==0)throw Error(i(327));var u=!s&&(r&124)===0&&(r&n.expiredLanes)===0||Ln(n,r),d=u?WC(n,r):Ud(n,r,!0),p=u;do{if(d===0){os&&!u&&qi(n,r,0,!1);break}else{if(s=n.current.alternate,p&&!GC(s)){d=Ud(n,r,!1),p=!1;continue}if(d===2){if(p=r,n.errorRecoveryDisabledLanes&p)var C=0;else C=n.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){r=C;e:{var N=n;d=_o;var W=N.current.memoizedState.isDehydrated;if(W&&(ds(N,C).flags|=256),C=Ud(N,C,!1),C!==2){if(Rd&&!W){N.errorRecoveryDisabledLanes|=p,yl|=p,d=4;break e}p=vr,vr=d,p!==null&&(vr===null?vr=p:vr.push.apply(vr,p))}d=C}if(p=!1,d!==2)continue}}if(d===1){ds(n,0),qi(n,r,0,!0);break}e:{switch(u=n,p=d,p){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:qi(u,r,Yr,!ki);break e;case 2:vr=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(d=Dd+300-De(),10<d)){if(qi(u,r,Yr,!ki),vn(u,0,!0)!==0)break e;u.timeoutHandle=Mg(ng.bind(null,u,s,vr,Dc,Md,r,Yr,yl,us,ki,p,2,-0,0),d);break e}ng(u,s,vr,Dc,Md,r,Yr,yl,us,ki,p,0,-0,0)}}break}while(!0);_a(n)}function ng(n,r,s,u,d,p,C,N,W,re,ue,he,le,se){if(n.timeoutHandle=-1,he=r.subtreeFlags,(he&8192||(he&16785408)===16785408)&&(Vo={stylesheets:null,count:0,unsuspend:Tx},Q6(r),he=Rx(),he!==null)){n.cancelPendingCommit=he(ug.bind(null,n,r,p,s,u,d,C,N,W,ue,1,le,se)),qi(n,p,C,!re);return}ug(n,r,p,s,u,d,C,N,W)}function GC(n){for(var r=n;;){var s=r.tag;if((s===0||s===11||s===15)&&r.flags&16384&&(s=r.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var u=0;u<s.length;u++){var d=s[u],p=d.getSnapshot;d=d.value;try{if(!Tr(p(),d))return!1}catch{return!1}}if(s=r.child,r.subtreeFlags&16384&&s!==null)s.return=r,r=s;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function qi(n,r,s,u){r&=~Id,r&=~yl,n.suspendedLanes|=r,n.pingedLanes&=~r,u&&(n.warmLanes|=r),u=n.expirationTimes;for(var d=r;0<d;){var p=31-Ut(d),C=1<<p;u[p]=-1,d&=~C}s!==0&&lr(n,s,r)}function Nc(){return(Ht&6)===0?(qo(0),!1):!0}function jd(){if(pt!==null){if(Bt===0)var n=pt.return;else n=pt,ti=dl=null,X1(n),as=null,Ro=0,n=pt;for(;n!==null;)j6(n.alternate,n),n=n.return;pt=null}}function ds(n,r){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,ux(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),jd(),Xt=n,pt=s=Xa(n.current,null),wt=r,Bt=0,Mr=null,ki=!1,os=Ln(n,r),Rd=!1,us=Yr=Id=yl=ji=fn=0,vr=_o=null,Md=!1,(r&8)!==0&&(r|=r&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=r;0<u;){var d=31-Ut(u),p=1<<d;r|=n[d],u&=~p}return ui=r,ec(),s}function rg(n,r){ut=null,M.H=bc,r===bo||r===uc?(r=S5(),Bt=3):r===v5?(r=S5(),Bt=4):Bt=r===E6?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Mr=r,pt===null&&(fn=1,Cc(n,Fr(r,n.current)))}function ag(){var n=M.H;return M.H=bc,n===null?bc:n}function ig(){var n=M.A;return M.A=FC,n}function _d(){fn=4,ki||(wt&4194048)!==wt&&Wr.current!==null||(os=!0),(ji&134217727)===0&&(yl&134217727)===0||Xt===null||qi(Xt,wt,Yr,!1)}function Ud(n,r,s){var u=Ht;Ht|=2;var d=ag(),p=ig();(Xt!==n||wt!==r)&&(Dc=null,ds(n,r)),r=!1;var C=fn;e:do try{if(Bt!==0&&pt!==null){var N=pt,W=Mr;switch(Bt){case 8:jd(),C=6;break e;case 3:case 2:case 9:case 6:Wr.current===null&&(r=!0);var re=Bt;if(Bt=0,Mr=null,hs(n,N,W,re),s&&os){C=0;break e}break;default:re=Bt,Bt=0,Mr=null,hs(n,N,W,re)}}ZC(),C=fn;break}catch(ue){rg(n,ue)}while(!0);return r&&n.shellSuspendCounter++,ti=dl=null,Ht=u,M.H=d,M.A=p,pt===null&&(Xt=null,wt=0,ec()),C}function ZC(){for(;pt!==null;)lg(pt)}function WC(n,r){var s=Ht;Ht|=2;var u=ag(),d=ig();Xt!==n||wt!==r?(Dc=null,Mc=De()+500,ds(n,r)):os=Ln(n,r);e:do try{if(Bt!==0&&pt!==null){r=pt;var p=Mr;t:switch(Bt){case 1:Bt=0,Mr=null,hs(n,r,p,1);break;case 2:case 9:if(y5(p)){Bt=0,Mr=null,sg(r);break}r=function(){Bt!==2&&Bt!==9||Xt!==n||(Bt=7),_a(n)},p.then(r,r);break e;case 3:Bt=7;break e;case 4:Bt=5;break e;case 7:y5(p)?(Bt=0,Mr=null,sg(r)):(Bt=0,Mr=null,hs(n,r,p,7));break;case 5:var C=null;switch(pt.tag){case 26:C=pt.memoizedState;case 5:case 27:var N=pt;if(!C||Bg(C)){Bt=0,Mr=null;var W=N.sibling;if(W!==null)pt=W;else{var re=N.return;re!==null?(pt=re,Lc(re)):pt=null}break t}}Bt=0,Mr=null,hs(n,r,p,5);break;case 6:Bt=0,Mr=null,hs(n,r,p,6);break;case 8:jd(),fn=6;break e;default:throw Error(i(462))}}YC();break}catch(ue){rg(n,ue)}while(!0);return ti=dl=null,M.H=u,M.A=d,Ht=s,pt!==null?0:(Xt=null,wt=0,ec(),fn)}function YC(){for(;pt!==null&&!Je();)lg(pt)}function lg(n){var r=L6(n.alternate,n,ui);n.memoizedProps=n.pendingProps,r===null?Lc(n):pt=r}function sg(n){var r=n,s=r.alternate;switch(r.tag){case 15:case 0:r=O6(s,r,r.pendingProps,r.type,void 0,wt);break;case 11:r=O6(s,r,r.pendingProps,r.type.render,r.ref,wt);break;case 5:X1(r);default:j6(s,r),r=pt=o5(r,ui),r=L6(s,r,ui)}n.memoizedProps=n.pendingProps,r===null?Lc(n):pt=r}function hs(n,r,s,u){ti=dl=null,X1(r),as=null,Ro=0;var d=r.return;try{if(UC(n,d,r,s,wt)){fn=1,Cc(n,Fr(s,n.current)),pt=null;return}}catch(p){if(d!==null)throw pt=d,p;fn=1,Cc(n,Fr(s,n.current)),pt=null;return}r.flags&32768?(Dt||u===1?n=!0:os||(wt&536870912)!==0?n=!1:(ki=n=!0,(u===2||u===9||u===3||u===6)&&(u=Wr.current,u!==null&&u.tag===13&&(u.flags|=16384))),og(r,n)):Lc(r)}function Lc(n){var r=n;do{if((r.flags&32768)!==0){og(r,ki);return}n=r.return;var s=zC(r.alternate,r,ui);if(s!==null){pt=s;return}if(r=r.sibling,r!==null){pt=r;return}pt=r=n}while(r!==null);fn===0&&(fn=5)}function og(n,r){do{var s=PC(n.alternate,n);if(s!==null){s.flags&=32767,pt=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!r&&(n=n.sibling,n!==null)){pt=n;return}pt=n=s}while(n!==null);fn=6,pt=null}function ug(n,r,s,u,d,p,C,N,W){n.cancelPendingCommit=null;do kc();while(Kn!==0);if((Ht&6)!==0)throw Error(i(327));if(r!==null){if(r===n.current)throw Error(i(177));if(p=r.lanes|r.childLanes,p|=O1,Wn(n,s,p,C,N,W),n===Xt&&(pt=Xt=null,wt=0),cs=r,Ui=n,fs=s,Nd=p,Ld=d,$6=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,XC(nt,function(){return mg(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=M.T,M.T=null,d=P.p,P.p=2,C=Ht,Ht|=4;try{HC(n,r,s)}finally{Ht=C,P.p=d,M.T=u}}Kn=1,cg(),fg(),dg()}}function cg(){if(Kn===1){Kn=0;var n=Ui,r=cs,s=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||s){s=M.T,M.T=null;var u=P.p;P.p=2;var d=Ht;Ht|=4;try{Z6(r,n);var p=Qd,C=X4(n.containerInfo),N=p.focusedElem,W=p.selectionRange;if(C!==N&&N&&N.ownerDocument&&J4(N.ownerDocument.documentElement,N)){if(W!==null&&A1(N)){var re=W.start,ue=W.end;if(ue===void 0&&(ue=re),"selectionStart"in N)N.selectionStart=re,N.selectionEnd=Math.min(ue,N.value.length);else{var he=N.ownerDocument||document,le=he&&he.defaultView||window;if(le.getSelection){var se=le.getSelection(),Ye=N.textContent.length,Fe=Math.min(W.start,Ye),Wt=W.end===void 0?Fe:Math.min(W.end,Ye);!se.extend&&Fe>Wt&&(C=Wt,Wt=Fe,Fe=C);var X=K4(N,Fe),J=K4(N,Wt);if(X&&J&&(se.rangeCount!==1||se.anchorNode!==X.node||se.anchorOffset!==X.offset||se.focusNode!==J.node||se.focusOffset!==J.offset)){var te=he.createRange();te.setStart(X.node,X.offset),se.removeAllRanges(),Fe>Wt?(se.addRange(te),se.extend(J.node,J.offset)):(te.setEnd(J.node,J.offset),se.addRange(te))}}}}for(he=[],se=N;se=se.parentNode;)se.nodeType===1&&he.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<he.length;N++){var de=he[N];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}Zc=!!Yd,Qd=Yd=null}finally{Ht=d,P.p=u,M.T=s}}n.current=r,Kn=2}}function fg(){if(Kn===2){Kn=0;var n=Ui,r=cs,s=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||s){s=M.T,M.T=null;var u=P.p;P.p=2;var d=Ht;Ht|=4;try{B6(n,r.alternate,r)}finally{Ht=d,P.p=u,M.T=s}}Kn=3}}function dg(){if(Kn===4||Kn===3){Kn=0,_t();var n=Ui,r=cs,s=fs,u=$6;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Kn=5:(Kn=0,cs=Ui=null,hg(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(_i=null),Ne(s),r=r.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(ft,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=M.T,d=P.p,P.p=2,M.T=null;try{for(var p=n.onRecoverableError,C=0;C<u.length;C++){var N=u[C];p(N.value,{componentStack:N.stack})}}finally{M.T=r,P.p=d}}(fs&3)!==0&&kc(),_a(n),d=n.pendingLanes,(s&4194090)!==0&&(d&42)!==0?n===kd?Uo++:(Uo=0,kd=n):Uo=0,qo(0)}}function hg(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,vo(r)))}function kc(n){return cg(),fg(),dg(),mg()}function mg(){if(Kn!==5)return!1;var n=Ui,r=Nd;Nd=0;var s=Ne(fs),u=M.T,d=P.p;try{P.p=32>s?32:s,M.T=null,s=Ld,Ld=null;var p=Ui,C=fs;if(Kn=0,cs=Ui=null,fs=0,(Ht&6)!==0)throw Error(i(331));var N=Ht;if(Ht|=4,J6(p.current),Y6(p,p.current,C,s),Ht=N,qo(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(ft,p)}catch{}return!0}finally{P.p=d,M.T=u,hg(n,r)}}function pg(n,r,s){r=Fr(s,r),r=dd(n.stateNode,r,2),n=Oi(n,r,2),n!==null&&(bt(n,2),_a(n))}function Qt(n,r,s){if(n.tag===3)pg(n,n,s);else for(;r!==null;){if(r.tag===3){pg(r,n,s);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(_i===null||!_i.has(u))){n=Fr(s,n),s=b6(2),u=Oi(r,s,2),u!==null&&(S6(s,u,r,n),bt(u,2),_a(u));break}}r=r.return}}function qd(n,r,s){var u=n.pingCache;if(u===null){u=n.pingCache=new VC;var d=new Set;u.set(r,d)}else d=u.get(r),d===void 0&&(d=new Set,u.set(r,d));d.has(s)||(Rd=!0,d.add(s),n=QC.bind(null,n,r,s),r.then(n,n))}function QC(n,r,s){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,Xt===n&&(wt&s)===s&&(fn===4||fn===3&&(wt&62914560)===wt&&300>De()-Dd?(Ht&2)===0&&ds(n,0):Id|=s,us===wt&&(us=0)),_a(n)}function gg(n,r){r===0&&(r=En()),n=Yl(n,r),n!==null&&(bt(n,r),_a(n))}function KC(n){var r=n.memoizedState,s=0;r!==null&&(s=r.retryLane),gg(n,s)}function JC(n,r){var s=0;switch(n.tag){case 13:var u=n.stateNode,d=n.memoizedState;d!==null&&(s=d.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(r),gg(n,s)}function XC(n,r){return ct(n,r)}var jc=null,ms=null,zd=!1,_c=!1,Pd=!1,bl=0;function _a(n){n!==ms&&n.next===null&&(ms===null?jc=ms=n:ms=ms.next=n),_c=!0,zd||(zd=!0,ex())}function qo(n,r){if(!Pd&&_c){Pd=!0;do for(var s=!1,u=jc;u!==null;){if(n!==0){var d=u.pendingLanes;if(d===0)var p=0;else{var C=u.suspendedLanes,N=u.pingedLanes;p=(1<<31-Ut(42|n)+1)-1,p&=d&~(C&~N),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(s=!0,Sg(u,p))}else p=wt,p=vn(u,u===Xt?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||Ln(u,p)||(s=!0,Sg(u,p));u=u.next}while(s);Pd=!1}}function $C(){vg()}function vg(){_c=zd=!1;var n=0;bl!==0&&(ox()&&(n=bl),bl=0);for(var r=De(),s=null,u=jc;u!==null;){var d=u.next,p=yg(u,r);p===0?(u.next=null,s===null?jc=d:s.next=d,d===null&&(ms=s)):(s=u,(n!==0||(p&3)!==0)&&(_c=!0)),u=d}qo(n)}function yg(n,r){for(var s=n.suspendedLanes,u=n.pingedLanes,d=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var C=31-Ut(p),N=1<<C,W=d[C];W===-1?((N&s)===0||(N&u)!==0)&&(d[C]=hr(N,r)):W<=r&&(n.expiredLanes|=N),p&=~N}if(r=Xt,s=wt,s=vn(n,n===r?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,s===0||n===r&&(Bt===2||Bt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Ze(u),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||Ln(n,s)){if(r=s&-s,r===n.callbackPriority)return r;switch(u!==null&&Ze(u),Ne(s)){case 2:case 8:s=_e;break;case 32:s=nt;break;case 268435456:s=Ee;break;default:s=nt}return u=bg.bind(null,n),s=ct(s,u),n.callbackPriority=r,n.callbackNode=s,r}return u!==null&&u!==null&&Ze(u),n.callbackPriority=2,n.callbackNode=null,2}function bg(n,r){if(Kn!==0&&Kn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(kc()&&n.callbackNode!==s)return null;var u=wt;return u=vn(n,n===Xt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(tg(n,u,r),yg(n,De()),n.callbackNode!=null&&n.callbackNode===s?bg.bind(null,n):null)}function Sg(n,r){if(kc())return null;tg(n,r,!0)}function ex(){cx(function(){(Ht&6)!==0?ct(Tt,$C):vg()})}function Hd(){return bl===0&&(bl=Zn()),bl}function Eg(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:la(""+n)}function Ag(n,r){var s=r.ownerDocument.createElement("input");return s.name=r.name,s.value=r.value,n.id&&s.setAttribute("form",n.id),r.parentNode.insertBefore(s,r),n=new FormData(n),s.parentNode.removeChild(s),n}function tx(n,r,s,u,d){if(r==="submit"&&s&&s.stateNode===d){var p=Eg((d[xe]||null).action),C=u.submitter;C&&(r=(r=C[xe]||null)?Eg(r.formAction):C.getAttribute("formAction"),r!==null&&(p=r,C=null));var N=new be("action","action",null,u,d);n.push({event:N,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(bl!==0){var W=C?Ag(d,C):new FormData(d);sd(s,{pending:!0,data:W,method:d.method,action:p},null,W)}}else typeof p=="function"&&(N.preventDefault(),W=C?Ag(d,C):new FormData(d),sd(s,{pending:!0,data:W,method:d.method,action:p},p,W))},currentTarget:d}]})}}for(var Bd=0;Bd<T1.length;Bd++){var Fd=T1[Bd],nx=Fd.toLowerCase(),rx=Fd[0].toUpperCase()+Fd.slice(1);oa(nx,"on"+rx)}oa(t5,"onAnimationEnd"),oa(n5,"onAnimationIteration"),oa(r5,"onAnimationStart"),oa("dblclick","onDoubleClick"),oa("focusin","onFocus"),oa("focusout","onBlur"),oa(SC,"onTransitionRun"),oa(EC,"onTransitionStart"),oa(AC,"onTransitionCancel"),oa(a5,"onTransitionEnd"),Ae("onMouseEnter",["mouseout","mouseover"]),Ae("onMouseLeave",["mouseout","mouseover"]),Ae("onPointerEnter",["pointerout","pointerover"]),Ae("onPointerLeave",["pointerout","pointerover"]),pe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pe("onBeforeInput",["compositionend","keypress","textInput","paste"]),pe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ax=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zo));function wg(n,r){r=(r&4)!==0;for(var s=0;s<n.length;s++){var u=n[s],d=u.event;u=u.listeners;e:{var p=void 0;if(r)for(var C=u.length-1;0<=C;C--){var N=u[C],W=N.instance,re=N.currentTarget;if(N=N.listener,W!==p&&d.isPropagationStopped())break e;p=N,d.currentTarget=re;try{p(d)}catch(ue){wc(ue)}d.currentTarget=null,p=W}else for(C=0;C<u.length;C++){if(N=u[C],W=N.instance,re=N.currentTarget,N=N.listener,W!==p&&d.isPropagationStopped())break e;p=N,d.currentTarget=re;try{p(d)}catch(ue){wc(ue)}d.currentTarget=null,p=W}}}}function gt(n,r){var s=r[At];s===void 0&&(s=r[At]=new Set);var u=n+"__bubble";s.has(u)||(Cg(r,n,2,!1),s.add(u))}function Vd(n,r,s){var u=0;r&&(u|=4),Cg(s,n,u,r)}var Uc="_reactListening"+Math.random().toString(36).slice(2);function Gd(n){if(!n[Uc]){n[Uc]=!0,Ce.forEach(function(s){s!=="selectionchange"&&(ax.has(s)||Vd(s,!1,n),Vd(s,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[Uc]||(r[Uc]=!0,Vd("selectionchange",!1,r))}}function Cg(n,r,s,u){switch(Yg(r)){case 2:var d=Dx;break;case 8:d=Nx;break;default:d=i0}s=d.bind(null,r,s,n),d=void 0,!Bl||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),u?d!==void 0?n.addEventListener(r,s,{capture:!0,passive:d}):n.addEventListener(r,s,!0):d!==void 0?n.addEventListener(r,s,{passive:d}):n.addEventListener(r,s,!1)}function Zd(n,r,s,u,d){var p=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var N=u.stateNode.containerInfo;if(N===d)break;if(C===4)for(C=u.return;C!==null;){var W=C.tag;if((W===3||W===4)&&C.stateNode.containerInfo===d)return;C=C.return}for(;N!==null;){if(C=Se(N),C===null)return;if(W=C.tag,W===5||W===6||W===26||W===27){u=p=C;continue e}N=N.parentNode}}u=u.return}Cr(function(){var re=p,ue=Hl(s),he=[];e:{var le=i5.get(n);if(le!==void 0){var se=be,Ye=n;switch(n){case"keypress":if(rl(s)===0)break e;case"keydown":case"keyup":se=Xw;break;case"focusin":Ye="focus",se=Fl;break;case"focusout":Ye="blur",se=Fl;break;case"beforeblur":case"afterblur":se=Fl;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=wi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=zn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=tC;break;case t5:case n5:case r5:se=Fw;break;case a5:se=rC;break;case"scroll":case"scrollend":se=Jt;break;case"wheel":se=iC;break;case"copy":case"cut":case"paste":se=Gw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=_4;break;case"toggle":case"beforetoggle":se=sC}var Fe=(r&4)!==0,Wt=!Fe&&(n==="scroll"||n==="scrollend"),X=Fe?le!==null?le+"Capture":null:le;Fe=[];for(var J=re,te;J!==null;){var de=J;if(te=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||te===null||X===null||(de=Hr(J,X),de!=null&&Fe.push(Po(J,de,te))),Wt)break;J=J.return}0<Fe.length&&(le=new se(le,Ye,null,s,ue),he.push({event:le,listeners:Fe}))}}if((r&7)===0){e:{if(le=n==="mouseover"||n==="pointerover",se=n==="mouseout"||n==="pointerout",le&&s!==no&&(Ye=s.relatedTarget||s.fromElement)&&(Se(Ye)||Ye[Re]))break e;if((se||le)&&(le=ue.window===ue?ue:(le=ue.ownerDocument)?le.defaultView||le.parentWindow:window,se?(Ye=s.relatedTarget||s.toElement,se=re,Ye=Ye?Se(Ye):null,Ye!==null&&(Wt=o(Ye),Fe=Ye.tag,Ye!==Wt||Fe!==5&&Fe!==27&&Fe!==6)&&(Ye=null)):(se=null,Ye=re),se!==Ye)){if(Fe=wi,de="onMouseLeave",X="onMouseEnter",J="mouse",(n==="pointerout"||n==="pointerover")&&(Fe=_4,de="onPointerLeave",X="onPointerEnter",J="pointer"),Wt=se==null?le:St(se),te=Ye==null?le:St(Ye),le=new Fe(de,J+"leave",se,s,ue),le.target=Wt,le.relatedTarget=te,de=null,Se(ue)===re&&(Fe=new Fe(X,J+"enter",Ye,s,ue),Fe.target=te,Fe.relatedTarget=Wt,de=Fe),Wt=de,se&&Ye)t:{for(Fe=se,X=Ye,J=0,te=Fe;te;te=ps(te))J++;for(te=0,de=X;de;de=ps(de))te++;for(;0<J-te;)Fe=ps(Fe),J--;for(;0<te-J;)X=ps(X),te--;for(;J--;){if(Fe===X||X!==null&&Fe===X.alternate)break t;Fe=ps(Fe),X=ps(X)}Fe=null}else Fe=null;se!==null&&xg(he,le,se,Fe,!1),Ye!==null&&Wt!==null&&xg(he,Wt,Ye,Fe,!0)}}e:{if(le=re?St(re):window,se=le.nodeName&&le.nodeName.toLowerCase(),se==="select"||se==="input"&&le.type==="file")var Ie=V4;else if(B4(le))if(G4)Ie=vC;else{Ie=pC;var dt=mC}else se=le.nodeName,!se||se.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?re&&to(re.elementType)&&(Ie=V4):Ie=gC;if(Ie&&(Ie=Ie(n,re))){F4(he,Ie,s,ue);break e}dt&&dt(n,le,re),n==="focusout"&&re&&le.type==="number"&&re.memoizedProps.value!=null&&Ia(le,"number",le.value)}switch(dt=re?St(re):window,n){case"focusin":(B4(dt)||dt.contentEditable==="true")&&(Gl=dt,w1=re,fo=null);break;case"focusout":fo=w1=Gl=null;break;case"mousedown":C1=!0;break;case"contextmenu":case"mouseup":case"dragend":C1=!1,$4(he,s,ue);break;case"selectionchange":if(bC)break;case"keydown":case"keyup":$4(he,s,ue)}var ke;if(b1)e:{switch(n){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Vl?P4(n,s)&&(Ge="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Ge="onCompositionStart");Ge&&(U4&&s.locale!=="ko"&&(Vl||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Vl&&(ke=io()):(sa=ue,xr="value"in sa?sa.value:sa.textContent,Vl=!0)),dt=qc(re,Ge),0<dt.length&&(Ge=new j4(Ge,n,null,s,ue),he.push({event:Ge,listeners:dt}),ke?Ge.data=ke:(ke=H4(s),ke!==null&&(Ge.data=ke)))),(ke=uC?cC(n,s):fC(n,s))&&(Ge=qc(re,"onBeforeInput"),0<Ge.length&&(dt=new j4("onBeforeInput","beforeinput",null,s,ue),he.push({event:dt,listeners:Ge}),dt.data=ke)),tx(he,n,re,s,ue)}wg(he,r)})}function Po(n,r,s){return{instance:n,listener:r,currentTarget:s}}function qc(n,r){for(var s=r+"Capture",u=[];n!==null;){var d=n,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=Hr(n,s),d!=null&&u.unshift(Po(n,d,p)),d=Hr(n,r),d!=null&&u.push(Po(n,d,p))),n.tag===3)return u;n=n.return}return[]}function ps(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function xg(n,r,s,u,d){for(var p=r._reactName,C=[];s!==null&&s!==u;){var N=s,W=N.alternate,re=N.stateNode;if(N=N.tag,W!==null&&W===u)break;N!==5&&N!==26&&N!==27||re===null||(W=re,d?(re=Hr(s,p),re!=null&&C.unshift(Po(s,re,W))):d||(re=Hr(s,p),re!=null&&C.push(Po(s,re,W)))),s=s.return}C.length!==0&&n.push({event:r,listeners:C})}var ix=/\r\n?/g,lx=/\u0000|\uFFFD/g;function Tg(n){return(typeof n=="string"?n:""+n).replace(ix,`
`).replace(lx,"")}function Og(n,r){return r=Tg(r),Tg(n)===r}function zc(){}function Zt(n,r,s,u,d,p){switch(s){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||ia(n,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&ia(n,""+u);break;case"className":qn(n,"class",u);break;case"tabIndex":qn(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":qn(n,s,u);break;case"style":Ai(n,u,p);break;case"data":if(r!=="object"){qn(n,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||s!=="href")){n.removeAttribute(s);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(s);break}u=la(""+u),n.setAttribute(s,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(s==="formAction"?(r!=="input"&&Zt(n,r,"name",d.name,d,null),Zt(n,r,"formEncType",d.formEncType,d,null),Zt(n,r,"formMethod",d.formMethod,d,null),Zt(n,r,"formTarget",d.formTarget,d,null)):(Zt(n,r,"encType",d.encType,d,null),Zt(n,r,"method",d.method,d,null),Zt(n,r,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(s);break}u=la(""+u),n.setAttribute(s,u);break;case"onClick":u!=null&&(n.onclick=zc);break;case"onScroll":u!=null&&gt("scroll",n);break;case"onScrollEnd":u!=null&&gt("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(s=u.__html,s!=null){if(d.children!=null)throw Error(i(60));n.innerHTML=s}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}s=la(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(s,""+u):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":u===!0?n.setAttribute(s,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(s,u):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(s,u):n.removeAttribute(s);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(s):n.setAttribute(s,u);break;case"popover":gt("beforetoggle",n),gt("toggle",n),wn(n,"popover",u);break;case"xlinkActuate":Cn(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Cn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Cn(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Cn(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Cn(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Cn(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Cn(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Cn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Cn(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":wn(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=v1.get(s)||s,wn(n,s,u))}}function Wd(n,r,s,u,d,p){switch(s){case"style":Ai(n,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(s=u.__html,s!=null){if(d.children!=null)throw Error(i(60));n.innerHTML=s}}break;case"children":typeof u=="string"?ia(n,u):(typeof u=="number"||typeof u=="bigint")&&ia(n,""+u);break;case"onScroll":u!=null&&gt("scroll",n);break;case"onScrollEnd":u!=null&&gt("scrollend",n);break;case"onClick":u!=null&&(n.onclick=zc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Q.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(d=s.endsWith("Capture"),r=s.slice(2,d?s.length-7:void 0),p=n[xe]||null,p=p!=null?p[s]:null,typeof p=="function"&&n.removeEventListener(r,p,d),typeof u=="function")){typeof p!="function"&&p!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(r,u,d);break e}s in n?n[s]=u:u===!0?n.setAttribute(s,""):wn(n,s,u)}}}function Jn(n,r,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gt("error",n),gt("load",n);var u=!1,d=!1,p;for(p in s)if(s.hasOwnProperty(p)){var C=s[p];if(C!=null)switch(p){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Zt(n,r,p,C,s,null)}}d&&Zt(n,r,"srcSet",s.srcSet,s,null),u&&Zt(n,r,"src",s.src,s,null);return;case"input":gt("invalid",n);var N=p=C=d=null,W=null,re=null;for(u in s)if(s.hasOwnProperty(u)){var ue=s[u];if(ue!=null)switch(u){case"name":d=ue;break;case"type":C=ue;break;case"checked":W=ue;break;case"defaultChecked":re=ue;break;case"value":p=ue;break;case"defaultValue":N=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,r));break;default:Zt(n,r,u,ue,s,null)}}Pr(n,p,N,W,re,C,d,!1),tl(n);return;case"select":gt("invalid",n),u=C=p=null;for(d in s)if(s.hasOwnProperty(d)&&(N=s[d],N!=null))switch(d){case"value":p=N;break;case"defaultValue":C=N;break;case"multiple":u=N;default:Zt(n,r,d,N,s,null)}r=p,s=C,n.multiple=!!u,r!=null?Ma(n,!!u,r,!1):s!=null&&Ma(n,!!u,s,!0);return;case"textarea":gt("invalid",n),p=d=u=null;for(C in s)if(s.hasOwnProperty(C)&&(N=s[C],N!=null))switch(C){case"value":u=N;break;case"defaultValue":d=N;break;case"children":p=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Zt(n,r,C,N,s,null)}Qu(n,u,d,p),tl(n);return;case"option":for(W in s)if(s.hasOwnProperty(W)&&(u=s[W],u!=null))switch(W){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Zt(n,r,W,u,s,null)}return;case"dialog":gt("beforetoggle",n),gt("toggle",n),gt("cancel",n),gt("close",n);break;case"iframe":case"object":gt("load",n);break;case"video":case"audio":for(u=0;u<zo.length;u++)gt(zo[u],n);break;case"image":gt("error",n),gt("load",n);break;case"details":gt("toggle",n);break;case"embed":case"source":case"link":gt("error",n),gt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in s)if(s.hasOwnProperty(re)&&(u=s[re],u!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Zt(n,r,re,u,s,null)}return;default:if(to(r)){for(ue in s)s.hasOwnProperty(ue)&&(u=s[ue],u!==void 0&&Wd(n,r,ue,u,s,void 0));return}}for(N in s)s.hasOwnProperty(N)&&(u=s[N],u!=null&&Zt(n,r,N,u,s,null))}function sx(n,r,s,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,C=null,N=null,W=null,re=null,ue=null;for(se in s){var he=s[se];if(s.hasOwnProperty(se)&&he!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":W=he;default:u.hasOwnProperty(se)||Zt(n,r,se,null,u,he)}}for(var le in u){var se=u[le];if(he=s[le],u.hasOwnProperty(le)&&(se!=null||he!=null))switch(le){case"type":p=se;break;case"name":d=se;break;case"checked":re=se;break;case"defaultChecked":ue=se;break;case"value":C=se;break;case"defaultValue":N=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,r));break;default:se!==he&&Zt(n,r,le,se,u,he)}}Ei(n,C,N,W,re,ue,p,d);return;case"select":se=C=N=le=null;for(p in s)if(W=s[p],s.hasOwnProperty(p)&&W!=null)switch(p){case"value":break;case"multiple":se=W;default:u.hasOwnProperty(p)||Zt(n,r,p,null,u,W)}for(d in u)if(p=u[d],W=s[d],u.hasOwnProperty(d)&&(p!=null||W!=null))switch(d){case"value":le=p;break;case"defaultValue":N=p;break;case"multiple":C=p;default:p!==W&&Zt(n,r,d,p,u,W)}r=N,s=C,u=se,le!=null?Ma(n,!!s,le,!1):!!u!=!!s&&(r!=null?Ma(n,!!s,r,!0):Ma(n,!!s,s?[]:"",!1));return;case"textarea":se=le=null;for(N in s)if(d=s[N],s.hasOwnProperty(N)&&d!=null&&!u.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Zt(n,r,N,null,u,d)}for(C in u)if(d=u[C],p=s[C],u.hasOwnProperty(C)&&(d!=null||p!=null))switch(C){case"value":le=d;break;case"defaultValue":se=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==p&&Zt(n,r,C,d,u,p)}zl(n,le,se);return;case"option":for(var Ye in s)if(le=s[Ye],s.hasOwnProperty(Ye)&&le!=null&&!u.hasOwnProperty(Ye))switch(Ye){case"selected":n.selected=!1;break;default:Zt(n,r,Ye,null,u,le)}for(W in u)if(le=u[W],se=s[W],u.hasOwnProperty(W)&&le!==se&&(le!=null||se!=null))switch(W){case"selected":n.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:Zt(n,r,W,le,u,se)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Fe in s)le=s[Fe],s.hasOwnProperty(Fe)&&le!=null&&!u.hasOwnProperty(Fe)&&Zt(n,r,Fe,null,u,le);for(re in u)if(le=u[re],se=s[re],u.hasOwnProperty(re)&&le!==se&&(le!=null||se!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,r));break;default:Zt(n,r,re,le,u,se)}return;default:if(to(r)){for(var Wt in s)le=s[Wt],s.hasOwnProperty(Wt)&&le!==void 0&&!u.hasOwnProperty(Wt)&&Wd(n,r,Wt,void 0,u,le);for(ue in u)le=u[ue],se=s[ue],!u.hasOwnProperty(ue)||le===se||le===void 0&&se===void 0||Wd(n,r,ue,le,u,se);return}}for(var X in s)le=s[X],s.hasOwnProperty(X)&&le!=null&&!u.hasOwnProperty(X)&&Zt(n,r,X,null,u,le);for(he in u)le=u[he],se=s[he],!u.hasOwnProperty(he)||le===se||le==null&&se==null||Zt(n,r,he,le,u,se)}var Yd=null,Qd=null;function Pc(n){return n.nodeType===9?n:n.ownerDocument}function Rg(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ig(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function Kd(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Jd=null;function ox(){var n=window.event;return n&&n.type==="popstate"?n===Jd?!1:(Jd=n,!0):(Jd=null,!1)}var Mg=typeof setTimeout=="function"?setTimeout:void 0,ux=typeof clearTimeout=="function"?clearTimeout:void 0,Dg=typeof Promise=="function"?Promise:void 0,cx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dg<"u"?function(n){return Dg.resolve(null).then(n).catch(fx)}:Mg;function fx(n){setTimeout(function(){throw n})}function zi(n){return n==="head"}function Ng(n,r){var s=r,u=0,d=0;do{var p=s.nextSibling;if(n.removeChild(s),p&&p.nodeType===8)if(s=p.data,s==="/$"){if(0<u&&8>u){s=u;var C=n.ownerDocument;if(s&1&&Ho(C.documentElement),s&2&&Ho(C.body),s&4)for(s=C.head,Ho(s),C=s.firstChild;C;){var N=C.nextSibling,W=C.nodeName;C[ce]||W==="SCRIPT"||W==="STYLE"||W==="LINK"&&C.rel.toLowerCase()==="stylesheet"||s.removeChild(C),C=N}}if(d===0){n.removeChild(p),Qo(r);return}d--}else s==="$"||s==="$?"||s==="$!"?d++:u=s.charCodeAt(0)-48;else u=0;s=p}while(s);Qo(r)}function Xd(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var s=r;switch(r=r.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Xd(s),oe(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function dx(n,r,s,u){for(;n.nodeType===1;){var d=s;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[ce])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=ca(n.nextSibling),n===null)break}return null}function hx(n,r,s){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=ca(n.nextSibling),n===null))return null;return n}function $d(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function mx(n,r){var s=n.ownerDocument;if(n.data!=="$?"||s.readyState==="complete")r();else{var u=function(){r(),s.removeEventListener("DOMContentLoaded",u)};s.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function ca(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return n}var e0=null;function Lg(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(r===0)return n;r--}else s==="/$"&&r++}n=n.previousSibling}return null}function kg(n,r,s){switch(r=Pc(s),n){case"html":if(n=r.documentElement,!n)throw Error(i(452));return n;case"head":if(n=r.head,!n)throw Error(i(453));return n;case"body":if(n=r.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function Ho(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);oe(n)}var Qr=new Map,jg=new Set;function Hc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ci=P.d;P.d={f:px,r:gx,D:vx,C:yx,L:bx,m:Sx,X:Ax,S:Ex,M:wx};function px(){var n=ci.f(),r=Nc();return n||r}function gx(n){var r=je(n);r!==null&&r.tag===5&&r.type==="form"?t6(r):ci.r(n)}var gs=typeof document>"u"?null:document;function _g(n,r,s){var u=gs;if(u&&typeof r=="string"&&r){var d=Yn(r);d='link[rel="'+n+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),jg.has(d)||(jg.add(d),n={rel:n,crossOrigin:s,href:r},u.querySelector(d)===null&&(r=u.createElement("link"),Jn(r,"link",n),st(r),u.head.appendChild(r)))}}function vx(n){ci.D(n),_g("dns-prefetch",n,null)}function yx(n,r){ci.C(n,r),_g("preconnect",n,r)}function bx(n,r,s){ci.L(n,r,s);var u=gs;if(u&&n&&r){var d='link[rel="preload"][as="'+Yn(r)+'"]';r==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+Yn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+Yn(s.imageSizes)+'"]')):d+='[href="'+Yn(n)+'"]';var p=d;switch(r){case"style":p=vs(n);break;case"script":p=ys(n)}Qr.has(p)||(n=v({rel:"preload",href:r==="image"&&s&&s.imageSrcSet?void 0:n,as:r},s),Qr.set(p,n),u.querySelector(d)!==null||r==="style"&&u.querySelector(Bo(p))||r==="script"&&u.querySelector(Fo(p))||(r=u.createElement("link"),Jn(r,"link",n),st(r),u.head.appendChild(r)))}}function Sx(n,r){ci.m(n,r);var s=gs;if(s&&n){var u=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+Yn(u)+'"][href="'+Yn(n)+'"]',p=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=ys(n)}if(!Qr.has(p)&&(n=v({rel:"modulepreload",href:n},r),Qr.set(p,n),s.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Fo(p)))return}u=s.createElement("link"),Jn(u,"link",n),st(u),s.head.appendChild(u)}}}function Ex(n,r,s){ci.S(n,r,s);var u=gs;if(u&&n){var d=et(u).hoistableStyles,p=vs(n);r=r||"default";var C=d.get(p);if(!C){var N={loading:0,preload:null};if(C=u.querySelector(Bo(p)))N.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":r},s),(s=Qr.get(p))&&t0(n,s);var W=C=u.createElement("link");st(W),Jn(W,"link",n),W._p=new Promise(function(re,ue){W.onload=re,W.onerror=ue}),W.addEventListener("load",function(){N.loading|=1}),W.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Bc(C,r,u)}C={type:"stylesheet",instance:C,count:1,state:N},d.set(p,C)}}}function Ax(n,r){ci.X(n,r);var s=gs;if(s&&n){var u=et(s).hoistableScripts,d=ys(n),p=u.get(d);p||(p=s.querySelector(Fo(d)),p||(n=v({src:n,async:!0},r),(r=Qr.get(d))&&n0(n,r),p=s.createElement("script"),st(p),Jn(p,"link",n),s.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(d,p))}}function wx(n,r){ci.M(n,r);var s=gs;if(s&&n){var u=et(s).hoistableScripts,d=ys(n),p=u.get(d);p||(p=s.querySelector(Fo(d)),p||(n=v({src:n,async:!0,type:"module"},r),(r=Qr.get(d))&&n0(n,r),p=s.createElement("script"),st(p),Jn(p,"link",n),s.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(d,p))}}function Ug(n,r,s,u){var d=(d=me.current)?Hc(d):null;if(!d)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(r=vs(s.href),s=et(d).hoistableStyles,u=s.get(r),u||(u={type:"style",instance:null,count:0,state:null},s.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=vs(s.href);var p=et(d).hoistableStyles,C=p.get(n);if(C||(d=d.ownerDocument||d,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,C),(p=d.querySelector(Bo(n)))&&!p._p&&(C.instance=p,C.state.loading=5),Qr.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Qr.set(n,s),p||Cx(d,n,s,C.state))),r&&u===null)throw Error(i(528,""));return C}if(r&&u!==null)throw Error(i(529,""));return null;case"script":return r=s.async,s=s.src,typeof s=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=ys(s),s=et(d).hoistableScripts,u=s.get(r),u||(u={type:"script",instance:null,count:0,state:null},s.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function vs(n){return'href="'+Yn(n)+'"'}function Bo(n){return'link[rel="stylesheet"]['+n+"]"}function qg(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function Cx(n,r,s,u){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=n.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),Jn(r,"link",s),st(r),n.head.appendChild(r))}function ys(n){return'[src="'+Yn(n)+'"]'}function Fo(n){return"script[async]"+n}function zg(n,r,s){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+Yn(s.href)+'"]');if(u)return r.instance=u,st(u),u;var d=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),st(u),Jn(u,"style",d),Bc(u,s.precedence,n),r.instance=u;case"stylesheet":d=vs(s.href);var p=n.querySelector(Bo(d));if(p)return r.state.loading|=4,r.instance=p,st(p),p;u=qg(s),(d=Qr.get(d))&&t0(u,d),p=(n.ownerDocument||n).createElement("link"),st(p);var C=p;return C._p=new Promise(function(N,W){C.onload=N,C.onerror=W}),Jn(p,"link",u),r.state.loading|=4,Bc(p,s.precedence,n),r.instance=p;case"script":return p=ys(s.src),(d=n.querySelector(Fo(p)))?(r.instance=d,st(d),d):(u=s,(d=Qr.get(p))&&(u=v({},s),n0(u,d)),n=n.ownerDocument||n,d=n.createElement("script"),st(d),Jn(d,"link",u),n.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,Bc(u,s.precedence,n));return r.instance}function Bc(n,r,s){for(var u=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,p=d,C=0;C<u.length;C++){var N=u[C];if(N.dataset.precedence===r)p=N;else if(p!==d)break}p?p.parentNode.insertBefore(n,p.nextSibling):(r=s.nodeType===9?s.head:s,r.insertBefore(n,r.firstChild))}function t0(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function n0(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Fc=null;function Pg(n,r,s){if(Fc===null){var u=new Map,d=Fc=new Map;d.set(s,u)}else d=Fc,u=d.get(s),u||(u=new Map,d.set(s,u));if(u.has(n))return u;for(u.set(n,null),s=s.getElementsByTagName(n),d=0;d<s.length;d++){var p=s[d];if(!(p[ce]||p[ve]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var C=p.getAttribute(r)||"";C=n+C;var N=u.get(C);N?N.push(p):u.set(C,[p])}}return u}function Hg(n,r,s){n=n.ownerDocument||n,n.head.insertBefore(s,r==="title"?n.querySelector("head > title"):null)}function xx(n,r,s){if(s===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Bg(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Vo=null;function Tx(){}function Ox(n,r,s){if(Vo===null)throw Error(i(475));var u=Vo;if(r.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var d=vs(s.href),p=n.querySelector(Bo(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(u.count++,u=Vc.bind(u),n.then(u,u)),r.state.loading|=4,r.instance=p,st(p);return}p=n.ownerDocument||n,s=qg(s),(d=Qr.get(d))&&t0(s,d),p=p.createElement("link"),st(p);var C=p;C._p=new Promise(function(N,W){C.onload=N,C.onerror=W}),Jn(p,"link",s),r.instance=p}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(u.count++,r=Vc.bind(u),n.addEventListener("load",r),n.addEventListener("error",r))}}function Rx(){if(Vo===null)throw Error(i(475));var n=Vo;return n.stylesheets&&n.count===0&&r0(n,n.stylesheets),0<n.count?function(r){var s=setTimeout(function(){if(n.stylesheets&&r0(n,n.stylesheets),n.unsuspend){var u=n.unsuspend;n.unsuspend=null,u()}},6e4);return n.unsuspend=r,function(){n.unsuspend=null,clearTimeout(s)}}:null}function Vc(){if(this.count--,this.count===0){if(this.stylesheets)r0(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Gc=null;function r0(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Gc=new Map,r.forEach(Ix,n),Gc=null,Vc.call(n))}function Ix(n,r){if(!(r.state.loading&4)){var s=Gc.get(n);if(s)var u=s.get(null);else{s=new Map,Gc.set(n,s);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var C=d[p];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(s.set(C.dataset.precedence,C),u=C)}u&&s.set(null,u)}d=r.instance,C=d.getAttribute("data-precedence"),p=s.get(C)||u,p===u&&s.set(null,d),s.set(C,d),this.count++,u=Vc.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),p?p.parentNode.insertBefore(d,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),r.state.loading|=4}}var Go={$$typeof:B,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function Mx(n,r,s,u,d,p,C,N){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kn(0),this.hiddenUpdates=kn(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Fg(n,r,s,u,d,p,C,N,W,re,ue,he){return n=new Mx(n,r,s,C,N,W,re,he),r=1,p===!0&&(r|=24),p=Or(3,null,null,r),n.current=p,p.stateNode=n,r=q1(),r.refCount++,n.pooledCache=r,r.refCount++,p.memoizedState={element:u,isDehydrated:s,cache:r},B1(p),n}function Vg(n){return n?(n=Ql,n):Ql}function Gg(n,r,s,u,d,p){d=Vg(d),u.context===null?u.context=d:u.pendingContext=d,u=Ti(r),u.payload={element:s},p=p===void 0?null:p,p!==null&&(u.callback=p),s=Oi(n,u,r),s!==null&&(Nr(s,n,r),Eo(s,n,r))}function Zg(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<r?s:r}}function a0(n,r){Zg(n,r),(n=n.alternate)&&Zg(n,r)}function Wg(n){if(n.tag===13){var r=Yl(n,67108864);r!==null&&Nr(r,n,67108864),a0(n,67108864)}}var Zc=!0;function Dx(n,r,s,u){var d=M.T;M.T=null;var p=P.p;try{P.p=2,i0(n,r,s,u)}finally{P.p=p,M.T=d}}function Nx(n,r,s,u){var d=M.T;M.T=null;var p=P.p;try{P.p=8,i0(n,r,s,u)}finally{P.p=p,M.T=d}}function i0(n,r,s,u){if(Zc){var d=l0(u);if(d===null)Zd(n,r,u,Wc,s),Qg(n,u);else if(kx(d,n,r,s,u))u.stopPropagation();else if(Qg(n,u),r&4&&-1<Lx.indexOf(n)){for(;d!==null;){var p=je(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var C=it(p.pendingLanes);if(C!==0){var N=p;for(N.pendingLanes|=2,N.entangledLanes|=2;C;){var W=1<<31-Ut(C);N.entanglements[1]|=W,C&=~W}_a(p),(Ht&6)===0&&(Mc=De()+500,qo(0))}}break;case 13:N=Yl(p,2),N!==null&&Nr(N,p,2),Nc(),a0(p,2)}if(p=l0(u),p===null&&Zd(n,r,u,Wc,s),p===d)break;d=p}d!==null&&u.stopPropagation()}else Zd(n,r,u,null,s)}}function l0(n){return n=Hl(n),s0(n)}var Wc=null;function s0(n){if(Wc=null,n=Se(n),n!==null){var r=o(n);if(r===null)n=null;else{var s=r.tag;if(s===13){if(n=c(r),n!==null)return n;n=null}else if(s===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Wc=n,null}function Yg(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(at()){case Tt:return 2;case _e:return 8;case nt:case Ue:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var o0=!1,Pi=null,Hi=null,Bi=null,Zo=new Map,Wo=new Map,Fi=[],Lx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Qg(n,r){switch(n){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Hi=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":Zo.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wo.delete(r.pointerId)}}function Yo(n,r,s,u,d,p){return n===null||n.nativeEvent!==p?(n={blockedOn:r,domEventName:s,eventSystemFlags:u,nativeEvent:p,targetContainers:[d]},r!==null&&(r=je(r),r!==null&&Wg(r)),n):(n.eventSystemFlags|=u,r=n.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),n)}function kx(n,r,s,u,d){switch(r){case"focusin":return Pi=Yo(Pi,n,r,s,u,d),!0;case"dragenter":return Hi=Yo(Hi,n,r,s,u,d),!0;case"mouseover":return Bi=Yo(Bi,n,r,s,u,d),!0;case"pointerover":var p=d.pointerId;return Zo.set(p,Yo(Zo.get(p)||null,n,r,s,u,d)),!0;case"gotpointercapture":return p=d.pointerId,Wo.set(p,Yo(Wo.get(p)||null,n,r,s,u,d)),!0}return!1}function Kg(n){var r=Se(n.target);if(r!==null){var s=o(r);if(s!==null){if(r=s.tag,r===13){if(r=c(s),r!==null){n.blockedOn=r,mt(n.priority,function(){if(s.tag===13){var u=Dr();u=Yt(u);var d=Yl(s,u);d!==null&&Nr(d,s,u),a0(s,u)}});return}}else if(r===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Yc(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var s=l0(n.nativeEvent);if(s===null){s=n.nativeEvent;var u=new s.constructor(s.type,s);no=u,s.target.dispatchEvent(u),no=null}else return r=je(s),r!==null&&Wg(r),n.blockedOn=s,!1;r.shift()}return!0}function Jg(n,r,s){Yc(n)&&s.delete(r)}function jx(){o0=!1,Pi!==null&&Yc(Pi)&&(Pi=null),Hi!==null&&Yc(Hi)&&(Hi=null),Bi!==null&&Yc(Bi)&&(Bi=null),Zo.forEach(Jg),Wo.forEach(Jg)}function Qc(n,r){n.blockedOn===r&&(n.blockedOn=null,o0||(o0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jx)))}var Kc=null;function Xg(n){Kc!==n&&(Kc=n,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Kc===n&&(Kc=null);for(var r=0;r<n.length;r+=3){var s=n[r],u=n[r+1],d=n[r+2];if(typeof u!="function"){if(s0(u||s)===null)continue;break}var p=je(s);p!==null&&(n.splice(r,3),r-=3,sd(p,{pending:!0,data:d,method:s.method,action:u},u,d))}}))}function Qo(n){function r(W){return Qc(W,n)}Pi!==null&&Qc(Pi,n),Hi!==null&&Qc(Hi,n),Bi!==null&&Qc(Bi,n),Zo.forEach(r),Wo.forEach(r);for(var s=0;s<Fi.length;s++){var u=Fi[s];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Fi.length&&(s=Fi[0],s.blockedOn===null);)Kg(s),s.blockedOn===null&&Fi.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(u=0;u<s.length;u+=3){var d=s[u],p=s[u+1],C=d[xe]||null;if(typeof p=="function")C||Xg(s);else if(C){var N=null;if(p&&p.hasAttribute("formAction")){if(d=p,C=p[xe]||null)N=C.formAction;else if(s0(d)!==null)continue}else N=C.action;typeof N=="function"?s[u+1]=N:(s.splice(u,3),u-=3),Xg(s)}}}function u0(n){this._internalRoot=n}Jc.prototype.render=u0.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(i(409));var s=r.current,u=Dr();Gg(s,u,n,r,null,null)},Jc.prototype.unmount=u0.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Gg(n.current,2,null,n,null,null),Nc(),r[Re]=null}};function Jc(n){this._internalRoot=n}Jc.prototype.unstable_scheduleHydration=function(n){if(n){var r=$e();n={blockedOn:null,target:n,priority:r};for(var s=0;s<Fi.length&&r!==0&&r<Fi[s].priority;s++);Fi.splice(s,0,n),s===0&&Kg(n)}};var $g=e.version;if($g!=="19.1.0")throw Error(i(527,$g,"19.1.0"));P.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=f(r),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var _x={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xc.isDisabled&&Xc.supportsFiber)try{ft=Xc.inject(_x),ht=Xc}catch{}}return Jo.createRoot=function(n,r){if(!l(n))throw Error(i(299));var s=!1,u="",d=p6,p=g6,C=v6,N=null;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(C=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(N=r.unstable_transitionCallbacks)),r=Fg(n,1,!1,null,null,s,u,d,p,C,N,null),n[Re]=r.current,Gd(n),new u0(r)},Jo.hydrateRoot=function(n,r,s){if(!l(n))throw Error(i(299));var u=!1,d="",p=p6,C=g6,N=v6,W=null,re=null;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(C=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(W=s.unstable_transitionCallbacks),s.formState!==void 0&&(re=s.formState)),r=Fg(n,1,!0,r,s??null,u,d,p,C,N,W,re),r.context=Vg(null),s=r.current,u=Dr(),u=Yt(u),d=Ti(u),d.callback=null,Oi(s,d,u),s=u,r.current.lanes=s,bt(r,s),_a(r),n[Re]=r.current,Gd(n),new Jc(r)},Jo.version="19.1.0",Jo}var uv;function Zx(){if(uv)return f0.exports;uv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),f0.exports=Gx(),f0.exports}var Wx=Zx(),g=Wf();const ie=aa(g),cv=qx({__proto__:null,default:ie},[g]);/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */var g0,fv;function dv(){if(fv)return g0;fv=1;const{entries:t,setPrototypeOf:e,isFrozen:a,getPrototypeOf:i,getOwnPropertyDescriptor:l}=Object;let{freeze:o,seal:c,create:h}=Object,{apply:f,construct:m}=typeof Reflect<"u"&&Reflect;o||(o=function(Ee){return Ee}),c||(c=function(Ee){return Ee}),f||(f=function(Ee,We,Be){return Ee.apply(We,Be)}),m||(m=function(Ee,We){return new Ee(...We)});const v=E(Array.prototype.forEach),b=E(Array.prototype.lastIndexOf),S=E(Array.prototype.pop),A=E(Array.prototype.push),w=E(Array.prototype.splice),R=E(String.prototype.toLowerCase),k=E(String.prototype.toString),D=E(String.prototype.match),I=E(String.prototype.replace),B=E(String.prototype.indexOf),Y=E(String.prototype.trim),j=E(Object.prototype.hasOwnProperty),F=E(RegExp.prototype.test),Z=x(TypeError);function E(Ue){return function(Ee){Ee instanceof RegExp&&(Ee.lastIndex=0);for(var We=arguments.length,Be=new Array(We>1?We-1:0),ft=1;ft<We;ft++)Be[ft-1]=arguments[ft];return f(Ue,Ee,Be)}}function x(Ue){return function(){for(var Ee=arguments.length,We=new Array(Ee),Be=0;Be<Ee;Be++)We[Be]=arguments[Be];return m(Ue,We)}}function O(Ue,Ee){let We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R;e&&e(Ue,null);let Be=Ee.length;for(;Be--;){let ft=Ee[Be];if(typeof ft=="string"){const ht=We(ft);ht!==ft&&(a(Ee)||(Ee[Be]=ht),ft=ht)}Ue[ft]=!0}return Ue}function z(Ue){for(let Ee=0;Ee<Ue.length;Ee++)j(Ue,Ee)||(Ue[Ee]=null);return Ue}function _(Ue){const Ee=h(null);for(const[We,Be]of t(Ue))j(Ue,We)&&(Array.isArray(Be)?Ee[We]=z(Be):Be&&typeof Be=="object"&&Be.constructor===Object?Ee[We]=_(Be):Ee[We]=Be);return Ee}function q(Ue,Ee){for(;Ue!==null;){const Be=l(Ue,Ee);if(Be){if(Be.get)return E(Be.get);if(typeof Be.value=="function")return E(Be.value)}Ue=i(Ue)}function We(){return null}return We}const V=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),T=o(["#text"]),G=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ee=o(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ne=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ge=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fe=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),me=c(/<%[\w\W]*|[\w\W]*%>/gm),Pe=c(/\$\{[\w\W]*/gm),Le=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),tt=c(/^aria-[\-\w]+$/),Vt=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ot=c(/^(?:\w+script|data):/i),Et=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ct=c(/^html$/i),Ze=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var Je=Object.freeze({__proto__:null,ARIA_ATTR:tt,ATTR_WHITESPACE:Et,CUSTOM_ELEMENT:Ze,DATA_ATTR:Le,DOCTYPE_NAME:ct,ERB_EXPR:me,IS_ALLOWED_URI:Vt,IS_SCRIPT_OR_DATA:ot,MUSTACHE_EXPR:fe,TMPLIT_EXPR:Pe});const _t={element:1,text:3,progressingInstruction:7,comment:8,document:9},De=function(){return typeof window>"u"?null:window},at=function(Ee,We){if(typeof Ee!="object"||typeof Ee.createPolicy!="function")return null;let Be=null;const ft="data-tt-policy-suffix";We&&We.hasAttribute(ft)&&(Be=We.getAttribute(ft));const ht="dompurify"+(Be?"#"+Be:"");try{return Ee.createPolicy(ht,{createHTML(Kt){return Kt},createScriptURL(Kt){return Kt}})}catch{return console.warn("TrustedTypes policy "+ht+" could not be created."),null}},Tt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _e(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:De();const Ee=Te=>_e(Te);if(Ee.version="3.2.6",Ee.removed=[],!Ue||!Ue.document||Ue.document.nodeType!==_t.document||!Ue.Element)return Ee.isSupported=!1,Ee;let{document:We}=Ue;const Be=We,ft=Be.currentScript,{DocumentFragment:ht,HTMLTemplateElement:Kt,Node:Ut,Element:Nn,NodeFilter:er,NamedNodeMap:Gn=Ue.NamedNodeMap||Ue.MozNamedAttrMap,HTMLFormElement:un,DOMParser:Mt,trustedTypes:it}=Ue,vn=Nn.prototype,Ln=q(vn,"cloneNode"),hr=q(vn,"remove"),Zn=q(vn,"nextSibling"),En=q(vn,"childNodes"),kn=q(vn,"parentNode");if(typeof Kt=="function"){const Te=We.createElement("template");Te.content&&Te.content.ownerDocument&&(We=Te.content.ownerDocument)}let bt,Wn="";const{implementation:lr,createNodeIterator:Xe,createDocumentFragment:Yt,getElementsByTagName:Ne}=We,{importNode:$e}=Be;let mt=Tt();Ee.isSupported=typeof t=="function"&&typeof kn=="function"&&lr&&lr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$t,ERB_EXPR:ve,TMPLIT_EXPR:xe,DATA_ATTR:Re,ARIA_ATTR:At,IS_SCRIPT_OR_DATA:en,ATTR_WHITESPACE:An,CUSTOM_ELEMENT:ae}=Je;let{IS_ALLOWED_URI:ce}=Je,oe=null;const Se=O({},[...V,...U,...M,...H,...T]);let je=null;const St=O({},[...G,...ee,...ne,...ge]);let et=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),st=null,Ce=null,Q=!0,pe=!0,Ae=!1,Me=!0,He=!1,Ct=!0,qt=!1,wn=!1,qn=!1,Cn=!1,tn=!1,Ra=!1,zr=!0,ql=!1;const Xs="user-content-";let $s=!0,bi=!1,jn={},Qa=null;const Wu=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let tl=null;const eo=O({},["audio","video","img","source","image","track"]);let Si=null;const Yu=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yn="http://www.w3.org/1998/Math/MathML",Ei="http://www.w3.org/2000/svg",Pr="http://www.w3.org/1999/xhtml";let Ia=Pr,Ma=!1,zl=null;const Qu=O({},[Yn,Ei,Pr],k);let ia=O({},["mi","mo","mn","ms","mtext"]),Pl=O({},["annotation-xml"]);const Ku=O({},["title","style","font","a","script"]);let Ai=null;const to=["application/xhtml+xml","text/html"],v1="text/html";let xn=null,la=null;const no=We.createElement("form"),Hl=function(K){return K instanceof RegExp||K instanceof Function},Da=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(la&&la===K)){if((!K||typeof K!="object")&&(K={}),K=_(K),Ai=to.indexOf(K.PARSER_MEDIA_TYPE)===-1?v1:K.PARSER_MEDIA_TYPE,xn=Ai==="application/xhtml+xml"?k:R,oe=j(K,"ALLOWED_TAGS")?O({},K.ALLOWED_TAGS,xn):Se,je=j(K,"ALLOWED_ATTR")?O({},K.ALLOWED_ATTR,xn):St,zl=j(K,"ALLOWED_NAMESPACES")?O({},K.ALLOWED_NAMESPACES,k):Qu,Si=j(K,"ADD_URI_SAFE_ATTR")?O(_(Yu),K.ADD_URI_SAFE_ATTR,xn):Yu,tl=j(K,"ADD_DATA_URI_TAGS")?O(_(eo),K.ADD_DATA_URI_TAGS,xn):eo,Qa=j(K,"FORBID_CONTENTS")?O({},K.FORBID_CONTENTS,xn):Wu,st=j(K,"FORBID_TAGS")?O({},K.FORBID_TAGS,xn):_({}),Ce=j(K,"FORBID_ATTR")?O({},K.FORBID_ATTR,xn):_({}),jn=j(K,"USE_PROFILES")?K.USE_PROFILES:!1,Q=K.ALLOW_ARIA_ATTR!==!1,pe=K.ALLOW_DATA_ATTR!==!1,Ae=K.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=K.SAFE_FOR_TEMPLATES||!1,Ct=K.SAFE_FOR_XML!==!1,qt=K.WHOLE_DOCUMENT||!1,Cn=K.RETURN_DOM||!1,tn=K.RETURN_DOM_FRAGMENT||!1,Ra=K.RETURN_TRUSTED_TYPE||!1,qn=K.FORCE_BODY||!1,zr=K.SANITIZE_DOM!==!1,ql=K.SANITIZE_NAMED_PROPS||!1,$s=K.KEEP_CONTENT!==!1,bi=K.IN_PLACE||!1,ce=K.ALLOWED_URI_REGEXP||Vt,Ia=K.NAMESPACE||Pr,ia=K.MATHML_TEXT_INTEGRATION_POINTS||ia,Pl=K.HTML_INTEGRATION_POINTS||Pl,et=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&Hl(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(et.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&Hl(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(et.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(et.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),He&&(pe=!1),tn&&(Cn=!0),jn&&(oe=O({},T),je=[],jn.html===!0&&(O(oe,V),O(je,G)),jn.svg===!0&&(O(oe,U),O(je,ee),O(je,ge)),jn.svgFilters===!0&&(O(oe,M),O(je,ee),O(je,ge)),jn.mathMl===!0&&(O(oe,H),O(je,ne),O(je,ge))),K.ADD_TAGS&&(oe===Se&&(oe=_(oe)),O(oe,K.ADD_TAGS,xn)),K.ADD_ATTR&&(je===St&&(je=_(je)),O(je,K.ADD_ATTR,xn)),K.ADD_URI_SAFE_ATTR&&O(Si,K.ADD_URI_SAFE_ATTR,xn),K.FORBID_CONTENTS&&(Qa===Wu&&(Qa=_(Qa)),O(Qa,K.FORBID_CONTENTS,xn)),$s&&(oe["#text"]=!0),qt&&O(oe,["html","head","body"]),oe.table&&(O(oe,["tbody"]),delete st.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');bt=K.TRUSTED_TYPES_POLICY,Wn=bt.createHTML("")}else bt===void 0&&(bt=at(it,ft)),bt!==null&&typeof Wn=="string"&&(Wn=bt.createHTML(""));o&&o(K),la=K}},Ka=O({},[...U,...M,...P]),ro=O({},[...H,...$]),ao=function(K){let be=kn(K);(!be||!be.tagName)&&(be={namespaceURI:Ia,tagName:"template"});const Oe=R(K.tagName),Jt=R(be.tagName);return zl[K.namespaceURI]?K.namespaceURI===Ei?be.namespaceURI===Pr?Oe==="svg":be.namespaceURI===Yn?Oe==="svg"&&(Jt==="annotation-xml"||ia[Jt]):!!Ka[Oe]:K.namespaceURI===Yn?be.namespaceURI===Pr?Oe==="math":be.namespaceURI===Ei?Oe==="math"&&Pl[Jt]:!!ro[Oe]:K.namespaceURI===Pr?be.namespaceURI===Ei&&!Pl[Jt]||be.namespaceURI===Yn&&!ia[Jt]?!1:!ro[Oe]&&(Ku[Oe]||!Ka[Oe]):!!(Ai==="application/xhtml+xml"&&zl[K.namespaceURI]):!1},Cr=function(K){A(Ee.removed,{element:K});try{kn(K).removeChild(K)}catch{hr(K)}},Hr=function(K,be){try{A(Ee.removed,{attribute:be.getAttributeNode(K),from:be})}catch{A(Ee.removed,{attribute:null,from:be})}if(be.removeAttribute(K),K==="is")if(Cn||tn)try{Cr(be)}catch{}else try{be.setAttribute(K,"")}catch{}},Br=function(K){let be=null,Oe=null;if(qn)K="<remove></remove>"+K;else{const ln=D(K,/^[\r\n\t ]+/);Oe=ln&&ln[0]}Ai==="application/xhtml+xml"&&Ia===Pr&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");const Jt=bt?bt.createHTML(K):K;if(Ia===Pr)try{be=new Mt().parseFromString(Jt,Ai)}catch{}if(!be||!be.documentElement){be=lr.createDocument(Ia,"template",null);try{be.documentElement.innerHTML=Ma?Wn:Jt}catch{}}const Tn=be.body||be.documentElement;return K&&Oe&&Tn.insertBefore(We.createTextNode(Oe),Tn.childNodes[0]||null),Ia===Pr?Ne.call(be,qt?"html":"body")[0]:qt?be.documentElement:Tn},Bl=function(K){return Xe.call(K.ownerDocument||K,K,er.SHOW_ELEMENT|er.SHOW_COMMENT|er.SHOW_TEXT|er.SHOW_PROCESSING_INSTRUCTION|er.SHOW_CDATA_SECTION,null)},Ja=function(K){return K instanceof un&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof Gn)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},sa=function(K){return typeof Ut=="function"&&K instanceof Ut};function xr(Te,K,be){v(Te,Oe=>{Oe.call(Ee,K,be,la)})}const nl=function(K){let be=null;if(xr(mt.beforeSanitizeElements,K,null),Ja(K))return Cr(K),!0;const Oe=xn(K.nodeName);if(xr(mt.uponSanitizeElement,K,{tagName:Oe,allowedTags:oe}),Ct&&K.hasChildNodes()&&!sa(K.firstElementChild)&&F(/<[/\w!]/g,K.innerHTML)&&F(/<[/\w!]/g,K.textContent)||K.nodeType===_t.progressingInstruction||Ct&&K.nodeType===_t.comment&&F(/<[/\w]/g,K.data))return Cr(K),!0;if(!oe[Oe]||st[Oe]){if(!st[Oe]&&rl(Oe)&&(et.tagNameCheck instanceof RegExp&&F(et.tagNameCheck,Oe)||et.tagNameCheck instanceof Function&&et.tagNameCheck(Oe)))return!1;if($s&&!Qa[Oe]){const Jt=kn(K)||K.parentNode,Tn=En(K)||K.childNodes;if(Tn&&Jt){const ln=Tn.length;for(let On=ln-1;On>=0;--On){const mr=Ln(Tn[On],!0);mr.__removalCount=(K.__removalCount||0)+1,Jt.insertBefore(mr,Zn(K))}}}return Cr(K),!0}return K instanceof Nn&&!ao(K)||(Oe==="noscript"||Oe==="noembed"||Oe==="noframes")&&F(/<\/no(script|embed|frames)/i,K.innerHTML)?(Cr(K),!0):(He&&K.nodeType===_t.text&&(be=K.textContent,v([$t,ve,xe],Jt=>{be=I(be,Jt," ")}),K.textContent!==be&&(A(Ee.removed,{element:K.cloneNode()}),K.textContent=be)),xr(mt.afterSanitizeElements,K,null),!1)},io=function(K,be,Oe){if(zr&&(be==="id"||be==="name")&&(Oe in We||Oe in no))return!1;if(!(pe&&!Ce[be]&&F(Re,be))){if(!(Q&&F(At,be))){if(!je[be]||Ce[be]){if(!(rl(K)&&(et.tagNameCheck instanceof RegExp&&F(et.tagNameCheck,K)||et.tagNameCheck instanceof Function&&et.tagNameCheck(K))&&(et.attributeNameCheck instanceof RegExp&&F(et.attributeNameCheck,be)||et.attributeNameCheck instanceof Function&&et.attributeNameCheck(be))||be==="is"&&et.allowCustomizedBuiltInElements&&(et.tagNameCheck instanceof RegExp&&F(et.tagNameCheck,Oe)||et.tagNameCheck instanceof Function&&et.tagNameCheck(Oe))))return!1}else if(!Si[be]){if(!F(ce,I(Oe,An,""))){if(!((be==="src"||be==="xlink:href"||be==="href")&&K!=="script"&&B(Oe,"data:")===0&&tl[K])){if(!(Ae&&!F(en,I(Oe,An,"")))){if(Oe)return!1}}}}}}return!0},rl=function(K){return K!=="annotation-xml"&&D(K,ae)},al=function(K){xr(mt.beforeSanitizeAttributes,K,null);const{attributes:be}=K;if(!be||Ja(K))return;const Oe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je,forceKeepAttr:void 0};let Jt=be.length;for(;Jt--;){const Tn=be[Jt],{name:ln,namespaceURI:On,value:mr}=Tn,wi=xn(ln),lo=mr;let zn=ln==="value"?lo:Y(lo);if(Oe.attrName=wi,Oe.attrValue=zn,Oe.keepAttr=!0,Oe.forceKeepAttr=void 0,xr(mt.uponSanitizeAttribute,K,Oe),zn=Oe.attrValue,ql&&(wi==="id"||wi==="name")&&(Hr(ln,K),zn=Xs+zn),Ct&&F(/((--!?|])>)|<\/(style|title)/i,zn)){Hr(ln,K);continue}if(Oe.forceKeepAttr)continue;if(!Oe.keepAttr){Hr(ln,K);continue}if(!Me&&F(/\/>/i,zn)){Hr(ln,K);continue}He&&v([$t,ve,xe],Fl=>{zn=I(zn,Fl," ")});const Xu=xn(K.nodeName);if(!io(Xu,wi,zn)){Hr(ln,K);continue}if(bt&&typeof it=="object"&&typeof it.getAttributeType=="function"&&!On)switch(it.getAttributeType(Xu,wi)){case"TrustedHTML":{zn=bt.createHTML(zn);break}case"TrustedScriptURL":{zn=bt.createScriptURL(zn);break}}if(zn!==lo)try{On?K.setAttributeNS(On,ln,zn):K.setAttribute(ln,zn),Ja(K)?Cr(K):S(Ee.removed)}catch{Hr(ln,K)}}xr(mt.afterSanitizeAttributes,K,null)},Ju=function Te(K){let be=null;const Oe=Bl(K);for(xr(mt.beforeSanitizeShadowDOM,K,null);be=Oe.nextNode();)xr(mt.uponSanitizeShadowNode,be,null),nl(be),al(be),be.content instanceof ht&&Te(be.content);xr(mt.afterSanitizeShadowDOM,K,null)};return Ee.sanitize=function(Te){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=null,Oe=null,Jt=null,Tn=null;if(Ma=!Te,Ma&&(Te="<!-->"),typeof Te!="string"&&!sa(Te))if(typeof Te.toString=="function"){if(Te=Te.toString(),typeof Te!="string")throw Z("dirty is not a string, aborting")}else throw Z("toString is not a function");if(!Ee.isSupported)return Te;if(wn||Da(K),Ee.removed=[],typeof Te=="string"&&(bi=!1),bi){if(Te.nodeName){const mr=xn(Te.nodeName);if(!oe[mr]||st[mr])throw Z("root node is forbidden and cannot be sanitized in-place")}}else if(Te instanceof Ut)be=Br("<!---->"),Oe=be.ownerDocument.importNode(Te,!0),Oe.nodeType===_t.element&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?be=Oe:be.appendChild(Oe);else{if(!Cn&&!He&&!qt&&Te.indexOf("<")===-1)return bt&&Ra?bt.createHTML(Te):Te;if(be=Br(Te),!be)return Cn?null:Ra?Wn:""}be&&qn&&Cr(be.firstChild);const ln=Bl(bi?Te:be);for(;Jt=ln.nextNode();)nl(Jt),al(Jt),Jt.content instanceof ht&&Ju(Jt.content);if(bi)return Te;if(Cn){if(tn)for(Tn=Yt.call(be.ownerDocument);be.firstChild;)Tn.appendChild(be.firstChild);else Tn=be;return(je.shadowroot||je.shadowrootmode)&&(Tn=$e.call(Be,Tn,!0)),Tn}let On=qt?be.outerHTML:be.innerHTML;return qt&&oe["!doctype"]&&be.ownerDocument&&be.ownerDocument.doctype&&be.ownerDocument.doctype.name&&F(ct,be.ownerDocument.doctype.name)&&(On="<!DOCTYPE "+be.ownerDocument.doctype.name+`>
`+On),He&&v([$t,ve,xe],mr=>{On=I(On,mr," ")}),bt&&Ra?bt.createHTML(On):On},Ee.setConfig=function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Da(Te),wn=!0},Ee.clearConfig=function(){la=null,wn=!1},Ee.isValidAttribute=function(Te,K,be){la||Da({});const Oe=xn(Te),Jt=xn(K);return io(Oe,Jt,be)},Ee.addHook=function(Te,K){typeof K=="function"&&A(mt[Te],K)},Ee.removeHook=function(Te,K){if(K!==void 0){const be=b(mt[Te],K);return be===-1?void 0:w(mt[Te],be,1)[0]}return S(mt[Te])},Ee.removeHooks=function(Te){mt[Te]=[]},Ee.removeAllHooks=function(){mt=Tt()},Ee}var nt=_e();return g0=nt,g0}var v0,hv;function Yx(){return hv||(hv=1,v0=window.DOMPurify||(window.DOMPurify=dv().default||dv())),v0}var Qx=Yx();const Kx=aa(Qx),ks=Math.min,Ol=Math.max,Of=Math.round,ef=Math.floor,Ha=t=>({x:t,y:t}),Jx={left:"right",right:"left",bottom:"top",top:"bottom"},Xx={start:"end",end:"start"};function U3(t,e,a){return Ol(t,ks(e,a))}function ku(t,e){return typeof t=="function"?t(e):t}function Il(t){return t.split("-")[0]}function ju(t){return t.split("-")[1]}function OS(t){return t==="x"?"y":"x"}function zp(t){return t==="y"?"height":"width"}function Rl(t){return["top","bottom"].includes(Il(t))?"y":"x"}function Pp(t){return OS(Rl(t))}function $x(t,e,a){a===void 0&&(a=!1);const i=ju(t),l=Pp(t),o=zp(l);let c=l==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(c=Rf(c)),[c,Rf(c)]}function eT(t){const e=Rf(t);return[q3(t),e,q3(e)]}function q3(t){return t.replace(/start|end/g,e=>Xx[e])}function tT(t,e,a){const i=["left","right"],l=["right","left"],o=["top","bottom"],c=["bottom","top"];switch(t){case"top":case"bottom":return a?e?l:i:e?i:l;case"left":case"right":return e?o:c;default:return[]}}function nT(t,e,a,i){const l=ju(t);let o=tT(Il(t),a==="start",i);return l&&(o=o.map(c=>c+"-"+l),e&&(o=o.concat(o.map(q3)))),o}function Rf(t){return t.replace(/left|right|bottom|top/g,e=>Jx[e])}function rT(t){return{top:0,right:0,bottom:0,left:0,...t}}function RS(t){return typeof t!="number"?rT(t):{top:t,right:t,bottom:t,left:t}}function If(t){const{x:e,y:a,width:i,height:l}=t;return{width:i,height:l,top:a,left:e,right:e+i,bottom:a+l,x:e,y:a}}function mv(t,e,a){let{reference:i,floating:l}=t;const o=Rl(e),c=Pp(e),h=zp(c),f=Il(e),m=o==="y",v=i.x+i.width/2-l.width/2,b=i.y+i.height/2-l.height/2,S=i[h]/2-l[h]/2;let A;switch(f){case"top":A={x:v,y:i.y-l.height};break;case"bottom":A={x:v,y:i.y+i.height};break;case"right":A={x:i.x+i.width,y:b};break;case"left":A={x:i.x-l.width,y:b};break;default:A={x:i.x,y:i.y}}switch(ju(e)){case"start":A[c]-=S*(a&&m?-1:1);break;case"end":A[c]+=S*(a&&m?-1:1);break}return A}const aT=async(t,e,a)=>{const{placement:i="bottom",strategy:l="absolute",middleware:o=[],platform:c}=a,h=o.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(e));let m=await c.getElementRects({reference:t,floating:e,strategy:l}),{x:v,y:b}=mv(m,i,f),S=i,A={},w=0;for(let R=0;R<h.length;R++){const{name:k,fn:D}=h[R],{x:I,y:B,data:Y,reset:j}=await D({x:v,y:b,initialPlacement:i,placement:S,strategy:l,middlewareData:A,rects:m,platform:c,elements:{reference:t,floating:e}});v=I??v,b=B??b,A={...A,[k]:{...A[k],...Y}},j&&w<=50&&(w++,typeof j=="object"&&(j.placement&&(S=j.placement),j.rects&&(m=j.rects===!0?await c.getElementRects({reference:t,floating:e,strategy:l}):j.rects),{x:v,y:b}=mv(m,S,f)),R=-1)}return{x:v,y:b,placement:S,strategy:l,middlewareData:A}};async function IS(t,e){var a;e===void 0&&(e={});const{x:i,y:l,platform:o,rects:c,elements:h,strategy:f}=t,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:b="floating",altBoundary:S=!1,padding:A=0}=ku(e,t),w=RS(A),k=h[S?b==="floating"?"reference":"floating":b],D=If(await o.getClippingRect({element:(a=await(o.isElement==null?void 0:o.isElement(k)))==null||a?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(h.floating)),boundary:m,rootBoundary:v,strategy:f})),I=b==="floating"?{x:i,y:l,width:c.floating.width,height:c.floating.height}:c.reference,B=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h.floating)),Y=await(o.isElement==null?void 0:o.isElement(B))?await(o.getScale==null?void 0:o.getScale(B))||{x:1,y:1}:{x:1,y:1},j=If(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:I,offsetParent:B,strategy:f}):I);return{top:(D.top-j.top+w.top)/Y.y,bottom:(j.bottom-D.bottom+w.bottom)/Y.y,left:(D.left-j.left+w.left)/Y.x,right:(j.right-D.right+w.right)/Y.x}}const iT=t=>({name:"arrow",options:t,async fn(e){const{x:a,y:i,placement:l,rects:o,platform:c,elements:h,middlewareData:f}=e,{element:m,padding:v=0}=ku(t,e)||{};if(m==null)return{};const b=RS(v),S={x:a,y:i},A=Pp(l),w=zp(A),R=await c.getDimensions(m),k=A==="y",D=k?"top":"left",I=k?"bottom":"right",B=k?"clientHeight":"clientWidth",Y=o.reference[w]+o.reference[A]-S[A]-o.floating[w],j=S[A]-o.reference[A],F=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let Z=F?F[B]:0;(!Z||!await(c.isElement==null?void 0:c.isElement(F)))&&(Z=h.floating[B]||o.floating[w]);const E=Y/2-j/2,x=Z/2-R[w]/2-1,O=ks(b[D],x),z=ks(b[I],x),_=O,q=Z-R[w]-z,V=Z/2-R[w]/2+E,U=U3(_,V,q),M=!f.arrow&&ju(l)!=null&&V!==U&&o.reference[w]/2-(V<_?O:z)-R[w]/2<0,P=M?V<_?V-_:V-q:0;return{[A]:S[A]+P,data:{[A]:U,centerOffset:V-U-P,...M&&{alignmentOffset:P}},reset:M}}}),lT=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var a,i;const{placement:l,middlewareData:o,rects:c,initialPlacement:h,platform:f,elements:m}=e,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:R=!0,...k}=ku(t,e);if((a=o.arrow)!=null&&a.alignmentOffset)return{};const D=Il(l),I=Rl(h),B=Il(h)===h,Y=await(f.isRTL==null?void 0:f.isRTL(m.floating)),j=S||(B||!R?[Rf(h)]:eT(h)),F=w!=="none";!S&&F&&j.push(...nT(h,R,w,Y));const Z=[h,...j],E=await IS(e,k),x=[];let O=((i=o.flip)==null?void 0:i.overflows)||[];if(v&&x.push(E[D]),b){const U=$x(l,c,Y);x.push(E[U[0]],E[U[1]])}if(O=[...O,{placement:l,overflows:x}],!x.every(U=>U<=0)){var z,_;const U=(((z=o.flip)==null?void 0:z.index)||0)+1,M=Z[U];if(M){var q;const H=b==="alignment"?I!==Rl(M):!1,$=((q=O[0])==null?void 0:q.overflows[0])>0;if(!H||$)return{data:{index:U,overflows:O},reset:{placement:M}}}let P=(_=O.filter(H=>H.overflows[0]<=0).sort((H,$)=>H.overflows[1]-$.overflows[1])[0])==null?void 0:_.placement;if(!P)switch(A){case"bestFit":{var V;const H=(V=O.filter($=>{if(F){const T=Rl($.placement);return T===I||T==="y"}return!0}).map($=>[$.placement,$.overflows.filter(T=>T>0).reduce((T,G)=>T+G,0)]).sort(($,T)=>$[1]-T[1])[0])==null?void 0:V[0];H&&(P=H);break}case"initialPlacement":P=h;break}if(l!==P)return{reset:{placement:P}}}return{}}}};async function sT(t,e){const{placement:a,platform:i,elements:l}=t,o=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=Il(a),h=ju(a),f=Rl(a)==="y",m=["left","top"].includes(c)?-1:1,v=o&&f?-1:1,b=ku(e,t);let{mainAxis:S,crossAxis:A,alignmentAxis:w}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof w=="number"&&(A=h==="end"?w*-1:w),f?{x:A*v,y:S*m}:{x:S*m,y:A*v}}const oT=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var a,i;const{x:l,y:o,placement:c,middlewareData:h}=e,f=await sT(e,t);return c===((a=h.offset)==null?void 0:a.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:l+f.x,y:o+f.y,data:{...f,placement:c}}}}},uT=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:a,y:i,placement:l}=e,{mainAxis:o=!0,crossAxis:c=!1,limiter:h={fn:k=>{let{x:D,y:I}=k;return{x:D,y:I}}},...f}=ku(t,e),m={x:a,y:i},v=await IS(e,f),b=Rl(Il(l)),S=OS(b);let A=m[S],w=m[b];if(o){const k=S==="y"?"top":"left",D=S==="y"?"bottom":"right",I=A+v[k],B=A-v[D];A=U3(I,A,B)}if(c){const k=b==="y"?"top":"left",D=b==="y"?"bottom":"right",I=w+v[k],B=w-v[D];w=U3(I,w,B)}const R=h.fn({...e,[S]:A,[b]:w});return{...R,data:{x:R.x-a,y:R.y-i,enabled:{[S]:o,[b]:c}}}}}};function Yf(){return typeof window<"u"}function Ps(t){return MS(t)?(t.nodeName||"").toLowerCase():"#document"}function jr(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Va(t){var e;return(e=(MS(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function MS(t){return Yf()?t instanceof Node||t instanceof jr(t).Node:!1}function Ea(t){return Yf()?t instanceof Element||t instanceof jr(t).Element:!1}function Fa(t){return Yf()?t instanceof HTMLElement||t instanceof jr(t).HTMLElement:!1}function pv(t){return!Yf()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof jr(t).ShadowRoot}function _u(t){const{overflow:e,overflowX:a,overflowY:i,display:l}=Aa(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+a)&&!["inline","contents"].includes(l)}function cT(t){return["table","td","th"].includes(Ps(t))}function Qf(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Hp(t){const e=Bp(),a=Ea(t)?Aa(t):t;return["transform","translate","scale","rotate","perspective"].some(i=>a[i]?a[i]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!e&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!e&&(a.filter?a.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function fT(t){let e=el(t);for(;Fa(e)&&!js(e);){if(Hp(e))return e;if(Qf(e))return null;e=el(e)}return null}function Bp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function js(t){return["html","body","#document"].includes(Ps(t))}function Aa(t){return jr(t).getComputedStyle(t)}function Kf(t){return Ea(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function el(t){if(Ps(t)==="html")return t;const e=t.assignedSlot||t.parentNode||pv(t)&&t.host||Va(t);return pv(e)?e.host:e}function DS(t){const e=el(t);return js(e)?t.ownerDocument?t.ownerDocument.body:t.body:Fa(e)&&_u(e)?e:DS(e)}function xu(t,e,a){var i;e===void 0&&(e=[]),a===void 0&&(a=!0);const l=DS(t),o=l===((i=t.ownerDocument)==null?void 0:i.body),c=jr(l);if(o){const h=z3(c);return e.concat(c,c.visualViewport||[],_u(l)?l:[],h&&a?xu(h):[])}return e.concat(l,xu(l,[],a))}function z3(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function NS(t){const e=Aa(t);let a=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const l=Fa(t),o=l?t.offsetWidth:a,c=l?t.offsetHeight:i,h=Of(a)!==o||Of(i)!==c;return h&&(a=o,i=c),{width:a,height:i,$:h}}function Fp(t){return Ea(t)?t:t.contextElement}function Is(t){const e=Fp(t);if(!Fa(e))return Ha(1);const a=e.getBoundingClientRect(),{width:i,height:l,$:o}=NS(e);let c=(o?Of(a.width):a.width)/i,h=(o?Of(a.height):a.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!h||!Number.isFinite(h))&&(h=1),{x:c,y:h}}const dT=Ha(0);function LS(t){const e=jr(t);return!Bp()||!e.visualViewport?dT:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hT(t,e,a){return e===void 0&&(e=!1),!a||e&&a!==jr(t)?!1:e}function Ml(t,e,a,i){e===void 0&&(e=!1),a===void 0&&(a=!1);const l=t.getBoundingClientRect(),o=Fp(t);let c=Ha(1);e&&(i?Ea(i)&&(c=Is(i)):c=Is(t));const h=hT(o,a,i)?LS(o):Ha(0);let f=(l.left+h.x)/c.x,m=(l.top+h.y)/c.y,v=l.width/c.x,b=l.height/c.y;if(o){const S=jr(o),A=i&&Ea(i)?jr(i):i;let w=S,R=z3(w);for(;R&&i&&A!==w;){const k=Is(R),D=R.getBoundingClientRect(),I=Aa(R),B=D.left+(R.clientLeft+parseFloat(I.paddingLeft))*k.x,Y=D.top+(R.clientTop+parseFloat(I.paddingTop))*k.y;f*=k.x,m*=k.y,v*=k.x,b*=k.y,f+=B,m+=Y,w=jr(R),R=z3(w)}}return If({width:v,height:b,x:f,y:m})}function Vp(t,e){const a=Kf(t).scrollLeft;return e?e.left+a:Ml(Va(t)).left+a}function kS(t,e,a){a===void 0&&(a=!1);const i=t.getBoundingClientRect(),l=i.left+e.scrollLeft-(a?0:Vp(t,i)),o=i.top+e.scrollTop;return{x:l,y:o}}function mT(t){let{elements:e,rect:a,offsetParent:i,strategy:l}=t;const o=l==="fixed",c=Va(i),h=e?Qf(e.floating):!1;if(i===c||h&&o)return a;let f={scrollLeft:0,scrollTop:0},m=Ha(1);const v=Ha(0),b=Fa(i);if((b||!b&&!o)&&((Ps(i)!=="body"||_u(c))&&(f=Kf(i)),Fa(i))){const A=Ml(i);m=Is(i),v.x=A.x+i.clientLeft,v.y=A.y+i.clientTop}const S=c&&!b&&!o?kS(c,f,!0):Ha(0);return{width:a.width*m.x,height:a.height*m.y,x:a.x*m.x-f.scrollLeft*m.x+v.x+S.x,y:a.y*m.y-f.scrollTop*m.y+v.y+S.y}}function pT(t){return Array.from(t.getClientRects())}function gT(t){const e=Va(t),a=Kf(t),i=t.ownerDocument.body,l=Ol(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=Ol(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let c=-a.scrollLeft+Vp(t);const h=-a.scrollTop;return Aa(i).direction==="rtl"&&(c+=Ol(e.clientWidth,i.clientWidth)-l),{width:l,height:o,x:c,y:h}}function vT(t,e){const a=jr(t),i=Va(t),l=a.visualViewport;let o=i.clientWidth,c=i.clientHeight,h=0,f=0;if(l){o=l.width,c=l.height;const m=Bp();(!m||m&&e==="fixed")&&(h=l.offsetLeft,f=l.offsetTop)}return{width:o,height:c,x:h,y:f}}function yT(t,e){const a=Ml(t,!0,e==="fixed"),i=a.top+t.clientTop,l=a.left+t.clientLeft,o=Fa(t)?Is(t):Ha(1),c=t.clientWidth*o.x,h=t.clientHeight*o.y,f=l*o.x,m=i*o.y;return{width:c,height:h,x:f,y:m}}function gv(t,e,a){let i;if(e==="viewport")i=vT(t,a);else if(e==="document")i=gT(Va(t));else if(Ea(e))i=yT(e,a);else{const l=LS(t);i={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return If(i)}function jS(t,e){const a=el(t);return a===e||!Ea(a)||js(a)?!1:Aa(a).position==="fixed"||jS(a,e)}function bT(t,e){const a=e.get(t);if(a)return a;let i=xu(t,[],!1).filter(h=>Ea(h)&&Ps(h)!=="body"),l=null;const o=Aa(t).position==="fixed";let c=o?el(t):t;for(;Ea(c)&&!js(c);){const h=Aa(c),f=Hp(c);!f&&h.position==="fixed"&&(l=null),(o?!f&&!l:!f&&h.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||_u(c)&&!f&&jS(t,c))?i=i.filter(v=>v!==c):l=h,c=el(c)}return e.set(t,i),i}function ST(t){let{element:e,boundary:a,rootBoundary:i,strategy:l}=t;const c=[...a==="clippingAncestors"?Qf(e)?[]:bT(e,this._c):[].concat(a),i],h=c[0],f=c.reduce((m,v)=>{const b=gv(e,v,l);return m.top=Ol(b.top,m.top),m.right=ks(b.right,m.right),m.bottom=ks(b.bottom,m.bottom),m.left=Ol(b.left,m.left),m},gv(e,h,l));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function ET(t){const{width:e,height:a}=NS(t);return{width:e,height:a}}function AT(t,e,a){const i=Fa(e),l=Va(e),o=a==="fixed",c=Ml(t,!0,o,e);let h={scrollLeft:0,scrollTop:0};const f=Ha(0);function m(){f.x=Vp(l)}if(i||!i&&!o)if((Ps(e)!=="body"||_u(l))&&(h=Kf(e)),i){const A=Ml(e,!0,o,e);f.x=A.x+e.clientLeft,f.y=A.y+e.clientTop}else l&&m();o&&!i&&l&&m();const v=l&&!i&&!o?kS(l,h):Ha(0),b=c.left+h.scrollLeft-f.x-v.x,S=c.top+h.scrollTop-f.y-v.y;return{x:b,y:S,width:c.width,height:c.height}}function y0(t){return Aa(t).position==="static"}function vv(t,e){if(!Fa(t)||Aa(t).position==="fixed")return null;if(e)return e(t);let a=t.offsetParent;return Va(t)===a&&(a=a.ownerDocument.body),a}function _S(t,e){const a=jr(t);if(Qf(t))return a;if(!Fa(t)){let l=el(t);for(;l&&!js(l);){if(Ea(l)&&!y0(l))return l;l=el(l)}return a}let i=vv(t,e);for(;i&&cT(i)&&y0(i);)i=vv(i,e);return i&&js(i)&&y0(i)&&!Hp(i)?a:i||fT(t)||a}const wT=async function(t){const e=this.getOffsetParent||_S,a=this.getDimensions,i=await a(t.floating);return{reference:AT(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function CT(t){return Aa(t).direction==="rtl"}const xT={convertOffsetParentRelativeRectToViewportRelativeRect:mT,getDocumentElement:Va,getClippingRect:ST,getOffsetParent:_S,getElementRects:wT,getClientRects:pT,getDimensions:ET,getScale:Is,isElement:Ea,isRTL:CT};function US(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function TT(t,e){let a=null,i;const l=Va(t);function o(){var h;clearTimeout(i),(h=a)==null||h.disconnect(),a=null}function c(h,f){h===void 0&&(h=!1),f===void 0&&(f=1),o();const m=t.getBoundingClientRect(),{left:v,top:b,width:S,height:A}=m;if(h||e(),!S||!A)return;const w=ef(b),R=ef(l.clientWidth-(v+S)),k=ef(l.clientHeight-(b+A)),D=ef(v),B={rootMargin:-w+"px "+-R+"px "+-k+"px "+-D+"px",threshold:Ol(0,ks(1,f))||1};let Y=!0;function j(F){const Z=F[0].intersectionRatio;if(Z!==f){if(!Y)return c();Z?c(!1,Z):i=setTimeout(()=>{c(!1,1e-7)},1e3)}Z===1&&!US(m,t.getBoundingClientRect())&&c(),Y=!1}try{a=new IntersectionObserver(j,{...B,root:l.ownerDocument})}catch{a=new IntersectionObserver(j,B)}a.observe(t)}return c(!0),o}function qS(t,e,a,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,m=Fp(t),v=l||o?[...m?xu(m):[],...xu(e)]:[];v.forEach(D=>{l&&D.addEventListener("scroll",a,{passive:!0}),o&&D.addEventListener("resize",a)});const b=m&&h?TT(m,a):null;let S=-1,A=null;c&&(A=new ResizeObserver(D=>{let[I]=D;I&&I.target===m&&A&&(A.unobserve(e),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var B;(B=A)==null||B.observe(e)})),a()}),m&&!f&&A.observe(m),A.observe(e));let w,R=f?Ml(t):null;f&&k();function k(){const D=Ml(t);R&&!US(R,D)&&a(),R=D,w=requestAnimationFrame(k)}return a(),()=>{var D;v.forEach(I=>{l&&I.removeEventListener("scroll",a),o&&I.removeEventListener("resize",a)}),b==null||b(),(D=A)==null||D.disconnect(),A=null,f&&cancelAnimationFrame(w)}}const OT=oT,RT=uT,IT=lT,MT=iT,yv=(t,e,a)=>{const i=new Map,l={platform:xT,...a},o={...l.platform,_c:i};return aT(t,e,{...l,platform:o})};var b0={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var bv;function DT(){return bv||(bv=1,function(t){(function(){var e={}.hasOwnProperty;function a(){for(var o="",c=0;c<arguments.length;c++){var h=arguments[c];h&&(o=l(o,i(h)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return a.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var h in o)e.call(o,h)&&o[h]&&(c=l(c,h));return c}function l(o,c){return c?o?o+" "+c:o+c:o}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(b0)),b0.exports}var NT=DT();const P3=aa(NT);var Sv={};const LT="react-tooltip-core-styles",kT="react-tooltip-base-styles",Ev={core:!1,base:!1};function Av({css:t,id:e=kT,type:a="base",ref:i}){var l,o;if(!t||typeof document>"u"||Ev[a]||a==="core"&&typeof process<"u"&&(!((l=process==null?void 0:Sv)===null||l===void 0)&&l.REACT_TOOLTIP_DISABLE_CORE_STYLES)||a!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:Sv)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;a==="core"&&(e=LT),i||(i={});const{insertAt:c}=i;if(document.getElementById(e))return;const h=document.head||document.getElementsByTagName("head")[0],f=document.createElement("style");f.id=e,f.type="text/css",c==="top"&&h.firstChild?h.insertBefore(f,h.firstChild):h.appendChild(f),f.styleSheet?f.styleSheet.cssText=t:f.appendChild(document.createTextNode(t)),Ev[a]=!0}const wv=async({elementReference:t=null,tooltipReference:e=null,tooltipArrowReference:a=null,place:i="top",offset:l=10,strategy:o="absolute",middlewares:c=[OT(Number(l)),IT({fallbackAxisSideDirection:"start"}),RT({padding:5})],border:h,arrowSize:f=8})=>{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};if(e===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};const m=c;return a?(m.push(MT({element:a,padding:5})),yv(t,e,{placement:i,strategy:o,middleware:m}).then(({x:v,y:b,placement:S,middlewareData:A})=>{var w,R;const k={left:`${v}px`,top:`${b}px`,border:h},{x:D,y:I}=(w=A.arrow)!==null&&w!==void 0?w:{x:0,y:0},B=(R={top:"bottom",right:"left",bottom:"top",left:"right"}[S.split("-")[0]])!==null&&R!==void 0?R:"bottom",Y=h&&{borderBottom:h,borderRight:h};let j=0;if(h){const F=`${h}`.match(/(\d+)px/);j=F!=null&&F[1]?Number(F[1]):1}return{tooltipStyles:k,tooltipArrowStyles:{left:D!=null?`${D}px`:"",top:I!=null?`${I}px`:"",right:"",bottom:"",...Y,[B]:`-${f/2+j}px`},place:S}})):yv(t,e,{placement:"bottom",strategy:o,middleware:m}).then(({x:v,y:b,placement:S})=>({tooltipStyles:{left:`${v}px`,top:`${b}px`},tooltipArrowStyles:{},place:S}))},Cv=(t,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,e),xv=(t,e,a)=>{let i=null;const l=function(...o){const c=()=>{i=null};!i&&(t.apply(this,o),i=setTimeout(c,e))};return l.cancel=()=>{i&&(clearTimeout(i),i=null)},l},Tv=t=>t!==null&&!Array.isArray(t)&&typeof t=="object",H3=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every((l,o)=>H3(l,e[o]));if(Array.isArray(t)!==Array.isArray(e))return!1;if(!Tv(t)||!Tv(e))return t===e;const a=Object.keys(t),i=Object.keys(e);return a.length===i.length&&a.every(l=>H3(t[l],e[l]))},jT=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some(a=>{const i=e.getPropertyValue(a);return i==="auto"||i==="scroll"})},Ov=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(jT(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},_T=typeof window<"u"?g.useLayoutEffect:g.useEffect,Kr=t=>{t.current&&(clearTimeout(t.current),t.current=null)},UT="DEFAULT_TOOLTIP_ID",qT={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},zT=g.createContext({getTooltipData:()=>qT});function zS(t=UT){return g.useContext(zT).getTooltipData(t)}var bs={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},S0={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const PT=({forwardRef:t,id:e,className:a,classNameArrow:i,variant:l="dark",anchorId:o,anchorSelect:c,place:h="top",offset:f=10,events:m=["hover"],openOnClick:v=!1,positionStrategy:b="absolute",middlewares:S,wrapper:A,delayShow:w=0,delayHide:R=0,float:k=!1,hidden:D=!1,noArrow:I=!1,clickable:B=!1,closeOnEsc:Y=!1,closeOnScroll:j=!1,closeOnResize:F=!1,openEvents:Z,closeEvents:E,globalCloseEvents:x,imperativeModeOnly:O,style:z,position:_,afterShow:q,afterHide:V,disableTooltip:U,content:M,contentWrapperRef:P,isOpen:H,defaultIsOpen:$=!1,setIsOpen:T,activeAnchor:G,setActiveAnchor:ee,border:ne,opacity:ge,arrowColor:fe,arrowSize:me=8,role:Pe="tooltip"})=>{var Le;const tt=g.useRef(null),Vt=g.useRef(null),ot=g.useRef(null),Et=g.useRef(null),ct=g.useRef(null),[Ze,Je]=g.useState({tooltipStyles:{},tooltipArrowStyles:{},place:h}),[_t,De]=g.useState(!1),[at,Tt]=g.useState(!1),[_e,nt]=g.useState(null),Ue=g.useRef(!1),Ee=g.useRef(null),{anchorRefs:We,setActiveAnchor:Be}=zS(e),ft=g.useRef(!1),[ht,Kt]=g.useState([]),Ut=g.useRef(!1),Nn=v||m.includes("click"),er=Nn||(Z==null?void 0:Z.click)||(Z==null?void 0:Z.dblclick)||(Z==null?void 0:Z.mousedown),Gn=Z?{...Z}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!Z&&Nn&&Object.assign(Gn,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const un=E?{...E}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!E&&Nn&&Object.assign(un,{mouseleave:!1,blur:!1,mouseout:!1});const Mt=x?{...x}:{escape:Y||!1,scroll:j||!1,resize:F||!1,clickOutsideAnchor:er||!1};O&&(Object.assign(Gn,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(un,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Mt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),_T(()=>(Ut.current=!0,()=>{Ut.current=!1}),[]);const it=ve=>{Ut.current&&(ve&&Tt(!0),setTimeout(()=>{Ut.current&&(T==null||T(ve),H===void 0&&De(ve))},10))};g.useEffect(()=>{if(H===void 0)return()=>null;H&&Tt(!0);const ve=setTimeout(()=>{De(H)},10);return()=>{clearTimeout(ve)}},[H]),g.useEffect(()=>{if(_t!==Ue.current)if(Kr(ct),Ue.current=_t,_t)q==null||q();else{const ve=(xe=>{const Re=xe.match(/^([\d.]+)(ms|s)$/);if(!Re)return 0;const[,At,en]=Re;return Number(At)*(en==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ct.current=setTimeout(()=>{Tt(!1),nt(null),V==null||V()},ve+25)}},[_t]);const vn=ve=>{Je(xe=>H3(xe,ve)?xe:ve)},Ln=(ve=w)=>{Kr(ot),at?it(!0):ot.current=setTimeout(()=>{it(!0)},ve)},hr=(ve=R)=>{Kr(Et),Et.current=setTimeout(()=>{ft.current||it(!1)},ve)},Zn=ve=>{var xe;if(!ve)return;const Re=(xe=ve.currentTarget)!==null&&xe!==void 0?xe:ve.target;if(!(Re!=null&&Re.isConnected))return ee(null),void Be({current:null});w?Ln():it(!0),ee(Re),Be({current:Re}),Kr(Et)},En=()=>{B?hr(R||100):R?hr():it(!1),Kr(ot)},kn=({x:ve,y:xe})=>{var Re;const At={getBoundingClientRect:()=>({x:ve,y:xe,width:0,height:0,top:xe,left:ve,right:ve,bottom:xe})};wv({place:(Re=_e==null?void 0:_e.place)!==null&&Re!==void 0?Re:h,offset:f,elementReference:At,tooltipReference:tt.current,tooltipArrowReference:Vt.current,strategy:b,middlewares:S,border:ne,arrowSize:me}).then(en=>{vn(en)})},bt=ve=>{if(!ve)return;const xe=ve,Re={x:xe.clientX,y:xe.clientY};kn(Re),Ee.current=Re},Wn=ve=>{var xe;if(!_t)return;const Re=ve.target;Re.isConnected&&(!((xe=tt.current)===null||xe===void 0)&&xe.contains(Re)||[document.querySelector(`[id='${o}']`),...ht].some(At=>At==null?void 0:At.contains(Re))||(it(!1),Kr(ot)))},lr=xv(Zn,50),Xe=xv(En,50),Yt=ve=>{Xe.cancel(),lr(ve)},Ne=()=>{lr.cancel(),Xe()},$e=g.useCallback(()=>{var ve,xe;const Re=(ve=_e==null?void 0:_e.position)!==null&&ve!==void 0?ve:_;Re?kn(Re):k?Ee.current&&kn(Ee.current):G!=null&&G.isConnected&&wv({place:(xe=_e==null?void 0:_e.place)!==null&&xe!==void 0?xe:h,offset:f,elementReference:G,tooltipReference:tt.current,tooltipArrowReference:Vt.current,strategy:b,middlewares:S,border:ne,arrowSize:me}).then(At=>{Ut.current&&vn(At)})},[_t,G,M,z,h,_e==null?void 0:_e.place,f,b,_,_e==null?void 0:_e.position,k,me]);g.useEffect(()=>{var ve,xe;const Re=new Set(We);ht.forEach(Me=>{U!=null&&U(Me)||Re.add({current:Me})});const At=document.querySelector(`[id='${o}']`);At&&!(U!=null&&U(At))&&Re.add({current:At});const en=()=>{it(!1)},An=Ov(G),ae=Ov(tt.current);Mt.scroll&&(window.addEventListener("scroll",en),An==null||An.addEventListener("scroll",en),ae==null||ae.addEventListener("scroll",en));let ce=null;Mt.resize?window.addEventListener("resize",en):G&&tt.current&&(ce=qS(G,tt.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const oe=Me=>{Me.key==="Escape"&&it(!1)};Mt.escape&&window.addEventListener("keydown",oe),Mt.clickOutsideAnchor&&window.addEventListener("click",Wn);const Se=[],je=Me=>!!(Me!=null&&Me.target&&(G!=null&&G.contains(Me.target))),St=Me=>{_t&&je(Me)||Zn(Me)},et=Me=>{_t&&je(Me)&&En()},st=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Ce=["click","dblclick","mousedown","mouseup"];Object.entries(Gn).forEach(([Me,He])=>{He&&(st.includes(Me)?Se.push({event:Me,listener:Yt}):Ce.includes(Me)&&Se.push({event:Me,listener:St}))}),Object.entries(un).forEach(([Me,He])=>{He&&(st.includes(Me)?Se.push({event:Me,listener:Ne}):Ce.includes(Me)&&Se.push({event:Me,listener:et}))}),k&&Se.push({event:"pointermove",listener:bt});const Q=()=>{ft.current=!0},pe=()=>{ft.current=!1,En()},Ae=B&&(un.mouseout||un.mouseleave);return Ae&&((ve=tt.current)===null||ve===void 0||ve.addEventListener("mouseover",Q),(xe=tt.current)===null||xe===void 0||xe.addEventListener("mouseout",pe)),Se.forEach(({event:Me,listener:He})=>{Re.forEach(Ct=>{var qt;(qt=Ct.current)===null||qt===void 0||qt.addEventListener(Me,He)})}),()=>{var Me,He;Mt.scroll&&(window.removeEventListener("scroll",en),An==null||An.removeEventListener("scroll",en),ae==null||ae.removeEventListener("scroll",en)),Mt.resize?window.removeEventListener("resize",en):ce==null||ce(),Mt.clickOutsideAnchor&&window.removeEventListener("click",Wn),Mt.escape&&window.removeEventListener("keydown",oe),Ae&&((Me=tt.current)===null||Me===void 0||Me.removeEventListener("mouseover",Q),(He=tt.current)===null||He===void 0||He.removeEventListener("mouseout",pe)),Se.forEach(({event:Ct,listener:qt})=>{Re.forEach(wn=>{var qn;(qn=wn.current)===null||qn===void 0||qn.removeEventListener(Ct,qt)})})}},[G,$e,at,We,ht,Z,E,x,Nn,w,R]),g.useEffect(()=>{var ve,xe;let Re=(xe=(ve=_e==null?void 0:_e.anchorSelect)!==null&&ve!==void 0?ve:c)!==null&&xe!==void 0?xe:"";!Re&&e&&(Re=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`);const At=new MutationObserver(en=>{const An=[],ae=[];en.forEach(ce=>{if(ce.type==="attributes"&&ce.attributeName==="data-tooltip-id"&&(ce.target.getAttribute("data-tooltip-id")===e?An.push(ce.target):ce.oldValue===e&&ae.push(ce.target)),ce.type==="childList"){if(G){const oe=[...ce.removedNodes].filter(Se=>Se.nodeType===1);if(Re)try{ae.push(...oe.filter(Se=>Se.matches(Re))),ae.push(...oe.flatMap(Se=>[...Se.querySelectorAll(Re)]))}catch{}oe.some(Se=>{var je;return!!(!((je=Se==null?void 0:Se.contains)===null||je===void 0)&&je.call(Se,G))&&(Tt(!1),it(!1),ee(null),Kr(ot),Kr(Et),!0)})}if(Re)try{const oe=[...ce.addedNodes].filter(Se=>Se.nodeType===1);An.push(...oe.filter(Se=>Se.matches(Re))),An.push(...oe.flatMap(Se=>[...Se.querySelectorAll(Re)]))}catch{}}}),(An.length||ae.length)&&Kt(ce=>[...ce.filter(oe=>!ae.includes(oe)),...An])});return At.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{At.disconnect()}},[e,c,_e==null?void 0:_e.anchorSelect,G]),g.useEffect(()=>{$e()},[$e]),g.useEffect(()=>{if(!(P!=null&&P.current))return()=>null;const ve=new ResizeObserver(()=>{setTimeout(()=>$e())});return ve.observe(P.current),()=>{ve.disconnect()}},[M,P==null?void 0:P.current]),g.useEffect(()=>{var ve;const xe=document.querySelector(`[id='${o}']`),Re=[...ht,xe];G&&Re.includes(G)||ee((ve=ht[0])!==null&&ve!==void 0?ve:xe)},[o,ht,G]),g.useEffect(()=>($&&it(!0),()=>{Kr(ot),Kr(Et)}),[]),g.useEffect(()=>{var ve;let xe=(ve=_e==null?void 0:_e.anchorSelect)!==null&&ve!==void 0?ve:c;if(!xe&&e&&(xe=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),xe)try{const Re=Array.from(document.querySelectorAll(xe));Kt(Re)}catch{Kt([])}},[e,c,_e==null?void 0:_e.anchorSelect]),g.useEffect(()=>{ot.current&&(Kr(ot),Ln(w))},[w]);const mt=(Le=_e==null?void 0:_e.content)!==null&&Le!==void 0?Le:M,$t=_t&&Object.keys(Ze.tooltipStyles).length>0;return g.useImperativeHandle(t,()=>({open:ve=>{if(ve!=null&&ve.anchorSelect)try{document.querySelector(ve.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${ve.anchorSelect}" is not a valid CSS selector`)}nt(ve??null),ve!=null&&ve.delay?Ln(ve.delay):it(!0)},close:ve=>{ve!=null&&ve.delay?hr(ve.delay):it(!1)},activeAnchor:G,place:Ze.place,isOpen:!!(at&&!D&&mt&&$t)})),at&&!D&&mt?ie.createElement(A,{id:e,role:Pe,className:P3("react-tooltip",bs.tooltip,S0.tooltip,S0[l],a,`react-tooltip__place-${Ze.place}`,bs[$t?"show":"closing"],$t?"react-tooltip__show":"react-tooltip__closing",b==="fixed"&&bs.fixed,B&&bs.clickable),onTransitionEnd:ve=>{Kr(ct),_t||ve.propertyName!=="opacity"||(Tt(!1),nt(null),V==null||V())},style:{...z,...Ze.tooltipStyles,opacity:ge!==void 0&&$t?ge:void 0},ref:tt},mt,ie.createElement(A,{className:P3("react-tooltip-arrow",bs.arrow,S0.arrow,i,I&&bs.noArrow),style:{...Ze.tooltipArrowStyles,background:fe?`linear-gradient(to right bottom, transparent 50%, ${fe} 50%)`:void 0,"--rt-arrow-size":`${me}px`},ref:Vt})):null},HT=({content:t})=>ie.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),BT=ie.forwardRef(({id:t,anchorId:e,anchorSelect:a,content:i,html:l,render:o,className:c,classNameArrow:h,variant:f="dark",place:m="top",offset:v=10,wrapper:b="div",children:S=null,events:A=["hover"],openOnClick:w=!1,positionStrategy:R="absolute",middlewares:k,delayShow:D=0,delayHide:I=0,float:B=!1,hidden:Y=!1,noArrow:j=!1,clickable:F=!1,closeOnEsc:Z=!1,closeOnScroll:E=!1,closeOnResize:x=!1,openEvents:O,closeEvents:z,globalCloseEvents:_,imperativeModeOnly:q=!1,style:V,position:U,isOpen:M,defaultIsOpen:P=!1,disableStyleInjection:H=!1,border:$,opacity:T,arrowColor:G,arrowSize:ee,setIsOpen:ne,afterShow:ge,afterHide:fe,disableTooltip:me,role:Pe="tooltip"},Le)=>{const[tt,Vt]=g.useState(i),[ot,Et]=g.useState(l),[ct,Ze]=g.useState(m),[Je,_t]=g.useState(f),[De,at]=g.useState(v),[Tt,_e]=g.useState(D),[nt,Ue]=g.useState(I),[Ee,We]=g.useState(B),[Be,ft]=g.useState(Y),[ht,Kt]=g.useState(b),[Ut,Nn]=g.useState(A),[er,Gn]=g.useState(R),[un,Mt]=g.useState(null),[it,vn]=g.useState(null),Ln=g.useRef(H),{anchorRefs:hr,activeAnchor:Zn}=zS(t),En=Xe=>Xe==null?void 0:Xe.getAttributeNames().reduce((Yt,Ne)=>{var $e;return Ne.startsWith("data-tooltip-")&&(Yt[Ne.replace(/^data-tooltip-/,"")]=($e=Xe==null?void 0:Xe.getAttribute(Ne))!==null&&$e!==void 0?$e:null),Yt},{}),kn=Xe=>{const Yt={place:Ne=>{var $e;Ze(($e=Ne)!==null&&$e!==void 0?$e:m)},content:Ne=>{Vt(Ne??i)},html:Ne=>{Et(Ne??l)},variant:Ne=>{var $e;_t(($e=Ne)!==null&&$e!==void 0?$e:f)},offset:Ne=>{at(Ne===null?v:Number(Ne))},wrapper:Ne=>{var $e;Kt(($e=Ne)!==null&&$e!==void 0?$e:b)},events:Ne=>{const $e=Ne==null?void 0:Ne.split(" ");Nn($e??A)},"position-strategy":Ne=>{var $e;Gn(($e=Ne)!==null&&$e!==void 0?$e:R)},"delay-show":Ne=>{_e(Ne===null?D:Number(Ne))},"delay-hide":Ne=>{Ue(Ne===null?I:Number(Ne))},float:Ne=>{We(Ne===null?B:Ne==="true")},hidden:Ne=>{ft(Ne===null?Y:Ne==="true")},"class-name":Ne=>{Mt(Ne)}};Object.values(Yt).forEach(Ne=>Ne(null)),Object.entries(Xe).forEach(([Ne,$e])=>{var mt;(mt=Yt[Ne])===null||mt===void 0||mt.call(Yt,$e)})};g.useEffect(()=>{Vt(i)},[i]),g.useEffect(()=>{Et(l)},[l]),g.useEffect(()=>{Ze(m)},[m]),g.useEffect(()=>{_t(f)},[f]),g.useEffect(()=>{at(v)},[v]),g.useEffect(()=>{_e(D)},[D]),g.useEffect(()=>{Ue(I)},[I]),g.useEffect(()=>{We(B)},[B]),g.useEffect(()=>{ft(Y)},[Y]),g.useEffect(()=>{Gn(R)},[R]),g.useEffect(()=>{Ln.current!==H&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[H]),g.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:H==="core",disableBase:H}}))},[]),g.useEffect(()=>{var Xe;const Yt=new Set(hr);let Ne=a;if(!Ne&&t&&(Ne=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Ne)try{document.querySelectorAll(Ne).forEach(xe=>{Yt.add({current:xe})})}catch{console.warn(`[react-tooltip] "${Ne}" is not a valid CSS selector`)}const $e=document.querySelector(`[id='${e}']`);if($e&&Yt.add({current:$e}),!Yt.size)return()=>null;const mt=(Xe=it??$e)!==null&&Xe!==void 0?Xe:Zn.current,$t=new MutationObserver(xe=>{xe.forEach(Re=>{var At;if(!mt||Re.type!=="attributes"||!(!((At=Re.attributeName)===null||At===void 0)&&At.startsWith("data-tooltip-")))return;const en=En(mt);kn(en)})}),ve={attributes:!0,childList:!1,subtree:!1};if(mt){const xe=En(mt);kn(xe),$t.observe(mt,ve)}return()=>{$t.disconnect()}},[hr,Zn,it,e,a]),g.useEffect(()=>{V!=null&&V.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),$&&!Cv("border",`${$}`)&&console.warn(`[react-tooltip] "${$}" is not a valid \`border\`.`),V!=null&&V.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),T&&!Cv("opacity",`${T}`)&&console.warn(`[react-tooltip] "${T}" is not a valid \`opacity\`.`)},[]);let bt=S;const Wn=g.useRef(null);if(o){const Xe=o({content:(it==null?void 0:it.getAttribute("data-tooltip-content"))||tt||null,activeAnchor:it});bt=Xe?ie.createElement("div",{ref:Wn,className:"react-tooltip-content-wrapper"},Xe):null}else tt&&(bt=tt);ot&&(bt=ie.createElement(HT,{content:ot}));const lr={forwardRef:Le,id:t,anchorId:e,anchorSelect:a,className:P3(c,un),classNameArrow:h,content:bt,contentWrapperRef:Wn,place:ct,variant:Je,offset:De,wrapper:ht,events:Ut,openOnClick:w,positionStrategy:er,middlewares:k,delayShow:Tt,delayHide:nt,float:Ee,hidden:Be,noArrow:j,clickable:F,closeOnEsc:Z,closeOnScroll:E,closeOnResize:x,openEvents:O,closeEvents:z,globalCloseEvents:_,imperativeModeOnly:q,style:V,position:U,isOpen:M,defaultIsOpen:P,border:$,opacity:T,arrowColor:G,arrowSize:ee,setIsOpen:ne,afterShow:ge,afterHide:fe,disableTooltip:me,activeAnchor:it,setActiveAnchor:Xe=>vn(Xe),role:Pe};return ie.createElement(PT,{...lr})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",t=>{t.detail.disableCore||Av({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||Av({css:`
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});var Rv;function B3(){return B3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},B3.apply(null,arguments)}var FT=function(e){return g.createElement("svg",B3({xmlns:"http://www.w3.org/2000/svg",width:24,height:12.4,viewBox:"0 0 24 12.4"},e),Rv||(Rv=g.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M23.2.8 12.5 11.5c-.1.1-.2.1-.2.2-.1 0-.2.1-.3.1s-.2 0-.3-.1c-.1 0-.2-.1-.2-.2L.8.8"})))},Iv,Mv;function F3(){return F3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},F3.apply(null,arguments)}var Gp=function(e){return g.createElement("svg",F3({xmlns:"http://www.w3.org/2000/svg",width:22.5,height:22.5,className:"info-svg",viewBox:"0 0 22.5 22.5"},e),Iv||(Iv=g.createElement("circle",{cx:11.2,cy:11.2,r:11.2,fill:"none",className:"bg"})),Mv||(Mv=g.createElement("g",{fill:"none"},g.createElement("path",{d:"M21.8 11.2c0 5.8-4.7 10.5-10.5 10.5C5.5 21.8.8 17 .8 11.2S5.5.7 11.3.7c5.7.1 10.5 4.8 10.5 10.5"}),g.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21.8 11.2c0 5.8-4.7 10.5-10.5 10.5C5.5 21.8.8 17 .8 11.2S5.5.7 11.3.7c5.7.1 10.5 4.8 10.5 10.5"}),g.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M13.5 15.8h-.8c-.4 0-.8-.2-1.1-.4-.3-.3-.4-.7-.4-1.1v-3.8c0-.2-.1-.4-.2-.5s-.3-.2-.5-.2h-.7M10.9 6c-.1 0-.1 0-.2.1-.1 0-.1.1-.1.2v.2c0 .1.1.1.1.2.1.1.1.1.2.1h.2c.1 0 .1-.1.2-.1 0-.1.1-.1.1-.2s0-.2-.1-.3c-.2-.2-.3-.2-.4-.2"}))))},Dv,Nv;function V3(){return V3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},V3.apply(null,arguments)}var PS=function(e){return g.createElement("svg",V3({xmlns:"http://www.w3.org/2000/svg",width:22.5,height:22.5,viewBox:"0 0 22.5 22.5"},e),Dv||(Dv=g.createElement("circle",{cx:11.2,cy:11.2,r:11.2,fill:"none",className:"bg"})),Nv||(Nv=g.createElement("g",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5},g.createElement("path",{d:"M11.2 21.8c5.8 0 10.5-4.7 10.5-10.6C21.7 5.4 17 .7 11.2.7S.7 5.5.7 11.3s4.7 10.5 10.5 10.5"}),g.createElement("path",{d:"m5.6 12.4 2.2 3.3c.2.1.4.3.4.3.1.1.3.1.5.1s.3 0 .5-.1.3-.2.4-.3l7.3-9.3"}))))},Lv,kv,jv,_v;function G3(){return G3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},G3.apply(null,arguments)}var HS=function(e){return g.createElement("svg",G3({xmlns:"http://www.w3.org/2000/svg",width:22.6,height:22.6,viewBox:"0 0 22.6 22.6"},e),Lv||(Lv=g.createElement("path",{fill:"none",d:"M12.8 1.8c-.1-.3-.4-.6-.6-.7q-.45-.3-.9-.3-.6 0-.9.3c-.3.3-.5.3-.7.6L.9 19.9c-.1.2-.2.5-.2.7 0 .3.1.5.2.7s.3.4.6.5c.2.1.5.2.7.2h18.3c.3 0 .5-.1.7-.2s.4-.3.6-.5c.1-.2.2-.5.2-.7 0-.3 0-.5-.2-.7z",className:"bg"})),kv||(kv=g.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12.8 1.8c-.1-.3-.4-.6-.6-.7q-.45-.3-.9-.3-.6 0-.9.3c-.3.3-.5.3-.7.6L.9 19.9c-.1.2-.2.5-.2.7 0 .3.1.5.2.7s.3.4.6.5c.2.1.5.2.7.2h18.3c.3 0 .5-.1.7-.2s.4-.3.6-.5c.1-.2.2-.5.2-.7 0-.3 0-.5-.2-.7z"})),jv||(jv=g.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M11.3 17.7c-.1 0-.1 0-.2.1-.1 0-.1.1-.1.2v.2c0 .1.1.1.1.2.1.1.1.1.2.1h.2c.1 0 .1-.1.2-.1 0-.1.1-.1.1-.2s0-.2-.1-.3c-.2-.2-.3-.2-.4-.2"})),_v||(_v=g.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M11.3 14.9V7.8"})))},Uv;function Z3(){return Z3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},Z3.apply(null,arguments)}var Zp=function(e){return g.createElement("svg",Z3({xmlns:"http://www.w3.org/2000/svg",width:13.5,height:13.5,viewBox:"0 0 13.5 13.5"},e),Uv||(Uv=g.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m.8 12.8 12-12m0 12L.8.8"})))},W3;(function(t){t.Default="sds--alert--status-default",t.Success="sds--alert--status-success",t.Warning="sds--alert--status-warning",t.Error="sds--alert--status-error",t.Info="sds--alert--status-info"})(W3||(W3={}));var Fn=W3;function Wp(t){return t!=null?(t.preventDefault(),t.stopPropagation(),!1):!0}function qv(t){return t==null?!0:Array.isArray(t)?t.length===0:typeof t=="string"?t.trim().length===0:t&&t.getTime&&typeof t.getTime=="function"?t.getTime()!==t.getTime():typeof t=="object"?Object.keys(t).length===0:!1}function kl(t){return Kx.sanitize(t,{ADD_ATTR:["target"]})}function VT(){return crypto.randomUUID&&typeof crypto.randomUUID=="function"&&crypto.randomUUID()||Math.round(new Date().getTime()*Math.random()*1e3).toString()}var va=function(t){var e=t.alertType||Fn.Success,a=t.action?"sds--alert--has-action":"",i="sds--alert ".concat(e.toLowerCase()," ").concat(a," ").concat(t.hide?"hide":"");return ie.createElement("div",{className:i},ie.createElement("div",{className:"sds--alert--inner ".concat(t.asChild?"":"sds--page-container")},ie.createElement("div",{className:"sds--alert--visual"},[Fn.Error,Fn.Warning].includes(e)&&ie.createElement(HS,null),[Fn.Default,Fn.Info].includes(e)&&ie.createElement(Gp,null),[Fn.Success].includes(e)&&ie.createElement(PS,null)),ie.createElement("div",{className:"sds--alert--textual"},ie.createElement("p",{dangerouslySetInnerHTML:{__html:kl(t.message)}}),t.action&&ie.createElement("button",{type:"button",onClick:t.action,className:"sds--btn sds--btn--ghost--dark sds--btn--small"},t.actionLabel)),t.close&&ie.createElement("button",{className:"sds--alert--actions",onClick:t.close},ie.createElement("span",{className:"text sds--visually-hidden"},"Close alert"),ie.createElement(Zp,null))))},zv;(function(t){t.Horizontal="",t.Vertical="sds--block-switch--vertical"})(zv||(zv={}));var Pv;function Y3(){return Y3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},Y3.apply(null,arguments)}var GT=function(e){return g.createElement("svg",Y3({xmlns:"http://www.w3.org/2000/svg",width:12.4,height:24,viewBox:"0 0 12.4 24"},e),Pv||(Pv=g.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m.8.8 10.7 10.7c.1.1.1.2.2.2 0 .1.1.2.1.3s0 .2-.1.3c0 .1-.1.2-.2.2L.8 23.2"})))},Hv;function Q3(){return Q3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},Q3.apply(null,arguments)}var ZT=function(e){return g.createElement("svg",Q3({xmlns:"http://www.w3.org/2000/svg",width:22.5,height:22.5,className:"bin-svg",viewBox:"0 0 22.5 22.5"},e),Hv||(Hv=g.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M.8 3.8h21m-8.3-3H9c-.4 0-.8.2-1.1.4-.2.3-.4.7-.4 1v1.5H15V2.2c0-.4-.2-.8-.4-1.1-.3-.2-.7-.3-1.1-.3M9 16.5V9m4.5 7.5V9m4.6 11.4c0 .4-.2.7-.5 1s-.6.4-1 .4H5.9c-.4 0-.7-.1-1-.4s-.4-.6-.5-1L3 3.8h16.5z"})))},K3;(function(t){t.Primary="sds--btn--primary",t.Secondary="sds--btn--secondary",t.Tertiary="sds--btn--tertiary",t.GhostDark="sds--btn--ghost--dark",t.GhostLight="sds--btn--ghost--light",t.Delete="sds--btn--delete",t.DeleteSecondary="sds--btn--delete--secondary",t.Chevron="sds--btn--chevron",t.DestructivePrimary="sds--btn sds--btn-destructive--primary",t.DestructiveSecondary="sds--btn sds--btn-destructive--secondary",t.DestructiveTertiary="sds--btn sds--btn-destructive--tertiary"})(K3||(K3={}));var Rt=K3,J3;(function(t){t.Default="",t.Small="sds--btn--small",t.Full="sds--btn--full"})(J3||(J3={}));var BS=J3;Rt.Primary,BS.Default;var yt=function(t){var e="".concat((t.type||Rt.Primary).toLowerCase()," ")+"".concat(t.type&&t.type===Rt.DeleteSecondary?Rt.Secondary.toLowerCase():""),a="".concat((t.size||BS.Default).toLowerCase()),i=t.children?"sds--btn-chevron":"",l=t.icon?"sds--btn-icon":"",o=t.active||!1,c="sds--btn ".concat(e," ").concat(a," ").concat(i," ").concat(l," ").concat(o?"active":""),h=function(f){Wp(f),!t.disabled&&t.onClick&&t.onClick(f)};return ie.createElement("button",{type:"button",className:c,onClick:h,disabled:t.disabled},t.children,t.txt&&ie.createElement("span",{className:"textual",dangerouslySetInnerHTML:{__html:kl(t.txt||"")}}),t.type===Rt.Delete?ie.createElement(ZT,null):t.icon)},Bv;function X3(){return X3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},X3.apply(null,arguments)}var WT=function(e){return g.createElement("svg",X3({xmlns:"http://www.w3.org/2000/svg",width:13.6,height:11.9,viewBox:"0 0 13.6 11.9"},e),Bv||(Bv=g.createElement("path",{d:"m11.9.4-7 9.6-3.3-3.2c-.4-.4-1-.4-1.3 0-.4.4-.4 1 0 1.3l3.2 3.2q.6.6 1.5.6c.9 0 1.1-.3 1.4-.8l7.1-9.6c.3-.4.2-1-.2-1.3-.5-.3-1.1-.2-1.4.2"})))},ba=function(t){var e="A"+VT();return ie.createElement("div",{"data-tooltip-id":e,className:"sds--tooltip-container ".concat(t.standalone?"":"sibbling"),"data-tooltip-html":kl(t.tip)},t.children?ie.Children.map(t.children,function(a){return a}):ie.createElement(Gp,null),ie.createElement(BT,{id:e,place:t.place,clickable:t.clickable||!1,disableStyleInjection:"core"}))},FS=function(t){var e=function(i){i.cancelBubble=!0,i.stopPropagation();var l=t.onChange;return l&&l(i),!1},a="sds--checkbox-container sds--tooltip-parent ".concat(t.className||""," ").concat(t.hide?"hide":"");return ie.createElement("div",{className:a},ie.createElement("input",{id:t.name,type:"checkbox",checked:t.value,disabled:t.readOnly,onChange:e}),ie.createElement("label",{htmlFor:t.name},ie.createElement("span",{className:"sds--checkbox--visual"},ie.createElement(WT,null)),t.info&&ie.createElement("span",{className:"checkbox--text",dangerouslySetInnerHTML:{__html:kl(t.info)}})),t.tooltip&&ie.createElement(ba,{tip:t.tooltip}))},Fv;(function(t){t.Default="sds--card",t.Big="sds--card sds--card--big"})(Fv||(Fv={}));var $3;(function(t){t.Main_100="main-100",t.Main_200="main-200",t.Main_300="main-300",t.Main_400="main-400",t.Main_500="main-500",t.Support_100="support-100",t.Support_400="support-400",t.Support_500="support-500",t.Status_default="status-default",t.Status_success="status-success",t.Status_warning="status-warning",t.Status_error="status-error",t.Status_info="status-info"})($3||($3={}));var ep=$3,YT=function(t){var e=t.type?t.type:ep.Main_100;return ie.createElement("button",{className:"sds--chips ".concat(e)},t.children&&ie.createElement("span",{className:"sds--chips--visual"},t.children),ie.createElement("span",{className:"sds--chips--textual sds--text--body--small"},t.label))},Vv;(function(t){t.Default="sds--error-indicator--status-default",t.Success="sds--error-indicator--status-success",t.Warning="sds--error-indicator--status-warning",t.Error="sds--error-indicator--status-error",t.Info="sds--error-indicator--status-info"})(Vv||(Vv={}));var Ar=function(t){var e="sds--loading-container ".concat(t.className||"");return ie.createElement("div",{className:e},ie.createElement("div",{className:"sds--loading"},ie.createElement("span",{className:"sds--loading--dot"}),ie.createElement("span",{className:"sds--loading--dot"}),ie.createElement("span",{className:"sds--loading--dot"})),t.children&&t.children)},Gv,Zv;function tp(){return tp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},tp.apply(null,arguments)}var QT=function(e){return g.createElement("svg",tp({xmlns:"http://www.w3.org/2000/svg",width:70.9,height:36,className:"logo-surf",viewBox:"0 0 70.9 36"},e),Gv||(Gv=g.createElement("path",{fillRule:"evenodd",d:"M65.5 21.8c3 0 5.4 2.4 5.4 5.4v3.4c0 3-2.4 5.4-5.4 5.4h-8.1c-3 0-5.4-2.4-5.4-5.4v-2.1c0-3.7-3-6.7-6.7-6.7H6.7C3 21.8 0 18.7 0 15V6.7C0 3 3 0 6.7 0h38.5C49 0 52 3 52 6.7V15c0 3.7 3 6.7 6.7 6.7h6.8z",className:"shape",clipRule:"evenodd"})),Zv||(Zv=g.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M43.4 12.5c.7 0 1.1-.4 1.1-1.1s-.3-1.1-1.1-1.1h-2.7v-2H45c.7 0 1.1-.4 1.1-1.1s-.4-1.1-1.1-1.1h-5.4c-.7 0-1.1.4-1.1 1.1v7.6c0 .7.4 1.1 1.1 1.1s1.1-.4 1.1-1.1v-2.4h2.7zM32.2 8.3c.9 0 1.5.4 1.5 1.3s-.7 1.3-1.5 1.3h-1.9V8.3zm1.3 7c.2.5.5.7.9.7.6 0 1.3-.4 1.3-1.1 0-.2 0-.4-.1-.6l-1-2.1q1.5-.75 1.5-2.7c0-2-1.5-3.4-3.6-3.4h-3.2c-.7 0-1.1.4-1.1 1.1v7.6c0 .7.4 1.1 1.1 1.1s1.1-.4 1.1-1.1v-2h2.1zm-10.3-3.9c0 1.5-.9 2.4-2.2 2.4s-2.2-.9-2.2-2.4V7.2c0-.7-.4-1.1-1.1-1.1s-1.1.4-1.1 1.1v4.3c0 2.8 1.9 4.6 4.4 4.6 2.6 0 4.5-1.8 4.5-4.6V7.2c0-.7-.4-1.1-1.1-1.1s-1.1.4-1.1 1.1v4.2zM10.5 14c-.9 0-1.5-.2-1.9-.4-.4-.1-.7-.2-1-.2-.6 0-1 .4-1 1 0 1 2.1 1.6 4 1.6 2.2 0 3.9-1.2 3.9-3 0-1.7-1.1-2.4-2.4-2.8l-1.8-.6C9.4 9.5 9 9.3 9 8.8s.8-.7 1.4-.7c.8 0 1.3.2 1.8.4.3.1.6.2.9.2.6 0 .9-.4.9-1 0-1-1.9-1.6-3.6-1.6C8.3 6 6.7 7.2 6.7 8.9c0 1.4 1 2.3 2.2 2.6l1.6.5c.8.2 1.5.5 1.5 1 .1.6-.8 1-1.5 1",className:"text",clipRule:"evenodd"})))},np;(function(t){t.White="White",t.Black="Black"})(np||(np={}));var rp=np,VS=function(t){var e=(t.color||rp.Black)===rp.White?"sds--branding--negative":"",a="sds--logo sds--branding sds--branding--name-".concat(t.position.toLowerCase()," ").concat(e);return ie.createElement("div",{className:a},ie.createElement("span",{className:"sds--branding--visual"},t.CustomLogo?ie.createElement(t.CustomLogo,null):ie.createElement(QT,null)),ie.createElement("span",{className:"sds--branding--textual"},t.label))},ap;(function(t){t.Bottom="Bottom",t.Up="Up"})(ap||(ap={}));var GS=ap,ZS=function(t){var e=t.alertType||Fn.Info,a=t.full?"full":"",i=t.className||"",l="sds--modal--title ".concat(t.isError?"error":"");return g.useEffect(function(){return document.body.classList.add("modal-open"),function(){document.body.classList.remove("modal-open")}},[]),ie.createElement("div",{className:"sds--modal sds--backdrop"},ie.createElement("div",{className:"sds--modal--container ".concat(a," ").concat(i)},t.title&&ie.createElement("div",{className:l},ie.createElement("p",{className:"sds--text--h4"},t.title),t.cancel&&ie.createElement("span",{className:"sds--modal--close",onClick:t.cancel},ie.createElement(Zp,null))),t.alertType&&ie.createElement(va,{alertType:e,message:t.subTitle||"",asChild:!0}),ie.createElement("div",{className:"sds--modal--content"},ie.createElement("div",{className:"sds--text--rich"},t.question&&ie.createElement("p",{dangerouslySetInnerHTML:{__html:kl(t.question)}}),t.children),ie.createElement("div",{className:"sds--modal--actions sds--actions--outer sds--space--top--5"},t.cancel&&ie.createElement(yt,{onClick:t.cancel,type:Rt.Secondary,txt:t.cancelButtonLabel}),t.confirm&&ie.createElement(yt,{onClick:t.confirm,type:Rt.Primary,disabled:t.confirmDisabled,txt:t.confirmationButtonLabel})))))},WS=function(t){var e=t.cutoffNumber||190,a=g.useState(!qv(t.txt)&&t.txt.length>e&&t.txt.substring(e).indexOf(" ")>-1),i=a[0],l=a[1],o=g.useState(!1),c=o[0],h=o[1],f=function(v){Wp(v);var b=i;l(!b),h(b)},m=qv(t.txt)?t.txt:t.txt.substring(0,e+t.txt.substring(e).indexOf(" "));return ie.createElement("span",{className:"sds--more-less-toggle"},i?m:t.txt,i&&ie.createElement("a",{className:"show-more",href:"/more",onClick:f},t.moreLabel||"More"),c&&ie.createElement("a",{className:"show-more",href:"/less",onClick:f},t.lessLabel||"Less"))},Wv,Yv,Qv,Kv;function ip(){return ip=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},ip.apply(null,arguments)}var KT=function(e){return g.createElement("svg",ip({xmlns:"http://www.w3.org/2000/svg",width:20,height:21,fill:"none",viewBox:"0 0 20 21"},e),Wv||(Wv=g.createElement("rect",{width:19.167,height:19.167,x:.417,y:.854,fill:"#404A56",rx:2.083})),Yv||(Yv=g.createElement("rect",{width:19.167,height:19.167,x:.417,y:.854,stroke:"#fff",strokeWidth:.833,rx:2.083})),Qv||(Qv=g.createElement("path",{stroke:"#fff",strokeWidth:.833,d:"M5.417.437v20"})),Kv||(Kv=g.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"m15 15.125-4.467-4.467a.31.31 0 0 1 0-.442L15 5.75"})))},Jv,Xv,$v,e7;function lp(){return lp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},lp.apply(null,arguments)}var JT=function(e){return g.createElement("svg",lp({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17"},e),Jv||(Jv=g.createElement("mask",{id:"a",fill:"#fff"},g.createElement("path",{d:"M7.998 16.876a1.56 1.56 0 0 1-1.234-.593L5.756 15.03a.59.59 0 0 0-.522-.216l-1.599.174q-.09.01-.179.01c-.36 0-.701-.12-.985-.346a1.57 1.57 0 0 1-.587-1.417l.174-1.598a.59.59 0 0 0-.216-.52L.59 10.108a1.58 1.58 0 0 1-.583-1.064 1.58 1.58 0 0 1 .583-1.409l1.253-1.008a.58.58 0 0 0 .216-.52l-.174-1.6c-.047-.42.073-.834.338-1.165a1.58 1.58 0 0 1 1.415-.587l1.598.174.063.004c.179 0 .346-.08.458-.22l1.008-1.246a1.589 1.589 0 0 1 2.472.001l1.008 1.254a.58.58 0 0 0 .52.217l1.6-.174a1.57 1.57 0 0 1 1.165.338 1.58 1.58 0 0 1 .586 1.415l-.173 1.598c-.022.2.059.394.216.52l1.254 1.009c.33.265.537.644.583 1.065a1.57 1.57 0 0 1-.583 1.407l-1.26 1.005a.58.58 0 0 0-.214.52l.174 1.6c.046.42-.073.833-.338 1.165a1.58 1.58 0 0 1-1.414.587l-1.6-.174-.066-.004a.58.58 0 0 0-.454.22l-1.004 1.25a1.57 1.57 0 0 1-1.238.59M5.3 13.81c.483 0 .933.216 1.236.594l1.007 1.253a.58.58 0 0 0 .52.215.58.58 0 0 0 .393-.215l1.005-1.25a1.57 1.57 0 0 1 1.408-.583l1.6.174a.6.6 0 0 0 .13 0 .58.58 0 0 0 .394-.217.58.58 0 0 0 .125-.43l-.174-1.603a1.58 1.58 0 0 1 .584-1.408l1.259-1.004a.582.582 0 0 0 .214-.519.58.58 0 0 0-.215-.394l-1.254-1.008a1.58 1.58 0 0 1-.584-1.407l.174-1.6a.586.586 0 0 0-.647-.65l-1.602.174q-.086.01-.173.01c-.482 0-.932-.216-1.235-.594L8.458 2.095a.578.578 0 0 0-.456-.219c-.18 0-.346.08-.458.219L6.536 3.342a1.58 1.58 0 0 1-1.408.583l-1.6-.174a.6.6 0 0 0-.133 0 .584.584 0 0 0-.517.647l.174 1.601a1.58 1.58 0 0 1-.584 1.408L1.216 8.414a.586.586 0 0 0 0 .914l1.253 1.008c.424.34.643.867.584 1.408l-.174 1.6a.581.581 0 0 0 .647.649l1.602-.175a2 2 0 0 1 .172-.008"}),g.createElement("path",{d:"M5.3 13.81c.483 0 .933.216 1.236.594l1.007 1.253a.58.58 0 0 0 .52.215.58.58 0 0 0 .393-.215l1.005-1.25a1.57 1.57 0 0 1 1.408-.583l1.6.174a.6.6 0 0 0 .13 0 .58.58 0 0 0 .394-.217.58.58 0 0 0 .125-.43l-.174-1.603a1.58 1.58 0 0 1 .584-1.408l1.259-1.004a.582.582 0 0 0 .214-.519.58.58 0 0 0-.215-.394l-1.254-1.008a1.58 1.58 0 0 1-.584-1.407l.174-1.6a.586.586 0 0 0-.647-.65l-1.602.174q-.086.01-.173.01c-.482 0-.932-.216-1.235-.594L8.458 2.095a.578.578 0 0 0-.456-.219c-.18 0-.346.08-.458.219L6.536 3.342a1.58 1.58 0 0 1-1.408.583l-1.6-.174a.6.6 0 0 0-.133 0 .584.584 0 0 0-.517.647l.174 1.601a1.58 1.58 0 0 1-.584 1.408L1.216 8.414a.586.586 0 0 0 0 .914l1.253 1.008c.424.34.643.867.584 1.408l-.174 1.6a.581.581 0 0 0 .647.649l1.602-.175a2 2 0 0 1 .172-.008"}))),Xv||(Xv=g.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M7.998 16.876a1.56 1.56 0 0 1-1.234-.593L5.756 15.03a.59.59 0 0 0-.522-.216l-1.599.174q-.09.01-.179.01c-.36 0-.701-.12-.985-.346a1.57 1.57 0 0 1-.587-1.417l.174-1.598a.59.59 0 0 0-.216-.52L.59 10.108a1.58 1.58 0 0 1-.583-1.064 1.58 1.58 0 0 1 .583-1.409l1.253-1.008a.58.58 0 0 0 .216-.52l-.174-1.6c-.047-.42.073-.834.338-1.165a1.58 1.58 0 0 1 1.415-.587l1.598.174.063.004c.179 0 .346-.08.458-.22l1.008-1.246a1.589 1.589 0 0 1 2.472.001l1.008 1.254a.58.58 0 0 0 .52.217l1.6-.174a1.57 1.57 0 0 1 1.165.338 1.58 1.58 0 0 1 .586 1.415l-.173 1.598c-.022.2.059.394.216.52l1.254 1.009c.33.265.537.644.583 1.065a1.57 1.57 0 0 1-.583 1.407l-1.26 1.005a.58.58 0 0 0-.214.52l.174 1.6c.046.42-.073.833-.338 1.165a1.58 1.58 0 0 1-1.414.587l-1.6-.174-.066-.004a.58.58 0 0 0-.454.22l-1.004 1.25a1.57 1.57 0 0 1-1.238.59ZM5.3 13.81c.483 0 .933.216 1.236.594l1.007 1.253a.58.58 0 0 0 .52.215.58.58 0 0 0 .393-.215l1.005-1.25a1.57 1.57 0 0 1 1.408-.583l1.6.174a.6.6 0 0 0 .13 0 .58.58 0 0 0 .394-.217.58.58 0 0 0 .125-.43l-.174-1.603a1.58 1.58 0 0 1 .584-1.408l1.259-1.004a.582.582 0 0 0 .214-.519.58.58 0 0 0-.215-.394l-1.254-1.008a1.58 1.58 0 0 1-.584-1.407l.174-1.6a.586.586 0 0 0-.647-.65l-1.602.174q-.086.01-.173.01c-.482 0-.932-.216-1.235-.594L8.458 2.095a.578.578 0 0 0-.456-.219c-.18 0-.346.08-.458.219L6.536 3.342a1.58 1.58 0 0 1-1.408.583l-1.6-.174a.6.6 0 0 0-.133 0 .584.584 0 0 0-.517.647l.174 1.601a1.58 1.58 0 0 1-.584 1.408L1.216 8.414a.586.586 0 0 0 0 .914l1.253 1.008c.424.34.643.867.584 1.408l-.174 1.6a.581.581 0 0 0 .647.649l1.602-.175a2 2 0 0 1 .172-.008Z",mask:"url(#a)"})),$v||($v=g.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M5.3 13.81c.483 0 .933.216 1.236.594l1.007 1.253a.58.58 0 0 0 .52.215.58.58 0 0 0 .393-.215l1.005-1.25a1.57 1.57 0 0 1 1.408-.583l1.6.174a.6.6 0 0 0 .13 0 .58.58 0 0 0 .394-.217.58.58 0 0 0 .125-.43l-.174-1.603a1.58 1.58 0 0 1 .584-1.408l1.259-1.004a.582.582 0 0 0 .214-.519.58.58 0 0 0-.215-.394l-1.254-1.008a1.58 1.58 0 0 1-.584-1.407l.174-1.6a.586.586 0 0 0-.647-.65l-1.602.174q-.086.01-.173.01c-.482 0-.932-.216-1.235-.594L8.458 2.095a.578.578 0 0 0-.456-.219c-.18 0-.346.08-.458.219L6.536 3.342a1.58 1.58 0 0 1-1.408.583l-1.6-.174a.6.6 0 0 0-.133 0 .584.584 0 0 0-.517.647l.174 1.601a1.58 1.58 0 0 1-.584 1.408L1.216 8.414a.586.586 0 0 0 0 .914l1.253 1.008c.424.34.643.867.584 1.408l-.174 1.6a.581.581 0 0 0 .647.649l1.602-.175a2 2 0 0 1 .172-.008Z",mask:"url(#a)"})),e7||(e7=g.createElement("path",{fill:"#fff",d:"M8 10.5a.375.375 0 0 1-.375-.376v-.128c0-.476.301-.902.75-1.06a1.127 1.127 0 0 0 .42-1.856A1.12 1.12 0 0 0 8 6.75c-.3 0-.583.117-.795.33-.213.212-.33.494-.33.795a.375.375 0 0 1-.75 0A1.877 1.877 0 0 1 9.326 6.55c.354.354.549.825.549 1.325 0 .793-.502 1.503-1.25 1.768a.38.38 0 0 0-.25.353v.128A.375.375 0 0 1 8 10.5M8 12.375a.562.562 0 1 0 0-1.125.562.562 0 0 0 0 1.125"})))},XT=function(t){var e,a=g.useState(t.active||((e=t.items[0])===null||e===void 0?void 0:e.label)),i=a[0],l=a[1],o=g.useState(!1),c=o[0],h=o[1],f=function(m,v,b){Wp(m),t.navigate(v),l(b)};return ie.createElement("div",{className:"sds--navigation-menu ".concat(c&&"collapsed")},ie.createElement("div",{className:"sds--navigation-menu-header"},!c&&ie.createElement(VS,{label:t.logoLabel,position:GS.Bottom,color:rp.White}),ie.createElement("div",{className:"close-container ".concat(c&&"collapsed"),onClick:function(){return h(!c)}},ie.createElement(KT,null))),!c&&ie.createElement("div",{className:"sds--navigation-menu-inner"},t.title&&ie.createElement("div",{className:"sds--navigation-menu-title"},ie.createElement("h2",null,t.title),t.settingToolTip&&ie.createElement(ba,{tip:t.settingToolTip||"",place:"bottom-start",children:ie.createElement(JT,null)})),ie.createElement("div",{className:"sds--navigation-menu-items"},t.items.map(function(m,v){return ie.createElement("div",{key:v,className:"sds--navigation-menu-item ".concat(i===m.label?"active":"")},ie.createElement(m.Logo,null),ie.createElement("a",{key:v,href:"".concat(m.href),onClick:function(b){return f(b,m.href,m.label)}},m.label))}))),ie.createElement("div",{className:"sds--navigation-menu-children ".concat(c&&"collapsed")},t.children&&t.children))},$T=function(t,e){for(var a=2,i=t-a,l=t+a+1,o=[],c=[],h,f=1;f<=e;f++)(f===1||f===e||f>=i&&f<l)&&o.push(f);for(var m=0,v=o;m<v.length;m++){var f=v[m];h&&(f-h===2?c.push(h+1):f-h!==1&&c.push("...")),c.push(f),h=f}return c},t7;function sp(){return sp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},sp.apply(null,arguments)}var eO=function(e){return g.createElement("svg",sp({xmlns:"http://www.w3.org/2000/svg",width:12.4,height:24,viewBox:"0 0 12.4 24"},e),t7||(t7=g.createElement("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M11.7 23.2 1 12.5c-.1-.1-.1-.2-.2-.2 0-.1-.1-.2-.1-.3s0-.2.1-.3c0-.1.1-.2.2-.2L11.7.8"})))},tO=function(t){var e=Math.ceil(t.total/t.pageCount),a=$T(t.currentPage,e);if(t.total<=t.pageCount)return null;var i=function(l,o){var c="".concat(l,"_").concat(o,"}}");return typeof l=="string"||l instanceof String?ie.createElement("li",{key:c},ie.createElement("span",{className:"link-placeholder"},"...")):l===t.currentPage?ie.createElement("li",{key:c},ie.createElement("a",{href:"#",className:"is-active","aria-current":"page"},l)):ie.createElement("li",{key:c},ie.createElement("a",{href:"#",onClick:function(){return t.onChange(l)},"aria-current":"page"},l))};return ie.createElement("div",{className:"sds--pagination"},ie.createElement("nav",{className:"sds--pagination--nav sds--text--body--large","aria-label":"pagination"},ie.createElement("ul",null,e>1&&t.currentPage!==1&&ie.createElement("li",{onClick:function(){return t.onChange(t.currentPage-1)}},ie.createElement("a",{href:"#"},ie.createElement(eO,null))),a.map(function(l,o){return i(l,o)}),e>1&&t.currentPage!==e&&ie.createElement("li",{onClick:function(){return t.onChange(t.currentPage+1)}},ie.createElement("a",{href:"#"},ie.createElement(GT,null))))),t.children&&t.children)},op;(function(t){t.row="row",t.column="column"})(op||(op={}));var Mf=op,Df=function(t){var e=function(h){return t.value===null?!1:t.isMultiple?h===t.value:h===t.trueLabel?t.value===!0:!t.value},a=t.isMultiple||!1,i=t.orientation||Mf.row,l=t.reverse||!1,o=a?t.labels&&t.labels:l?[t.trueLabel,t.falseLabel]:[t.falseLabel,t.trueLabel],c=t.required||!1;return ie.createElement("div",{className:"sds--radio-options"},t.label&&ie.createElement("label",{htmlFor:"".concat(t.name),className:"sds--tooltip-parent sds--radio-options-label"},ie.createElement("span",null,t.label,c&&ie.createElement("sup",{className:"required"},"*")),t.tooltip&&ie.createElement(ba,{tip:t.tooltip})),ie.createElement("div",{className:"sds--text-field-container ".concat(i)},(o||[]).map(function(h,f){var m="".concat(t.name,"_").concat(h);return ie.createElement("div",{key:m,className:"option-".concat(f)},ie.createElement("input",{id:m,type:"radio",name:t.name,checked:e(h),disabled:t.disabled,onChange:t.onChange}),ie.createElement("label",{htmlFor:m,className:"sds--radio-options-label"},ie.createElement("span",{className:"sds--radio--visual"}),ie.createElement("span",{className:"sds--radio--text",dangerouslySetInnerHTML:{__html:kl(t.labelResolver?t.labelResolver(h):h)}})))})))},E0=function(t){var e="sds--switch ".concat(t.value?"sds--switch--active":""," ").concat(t.disabled?"sds--switch--disabled":"");return ie.createElement("div",{className:"sds--tooltip-parent",onClick:function(){return!t.disabled&&t.onChange(!t.value)}},ie.createElement("span",{className:e,role:"switch","aria-checked":t.value}),t.tooltip&&ie.createElement(ba,{tip:t.tooltip}))},up;(function(t){t.Default="sds--toaster--status-default",t.Success="sds--toaster--status-success",t.Warning="sds--toaster--status-warning",t.Error="sds--toaster--status-error",t.Info="sds--toaster--status-info"})(up||(up={}));var Ts=up,nO=function(t){var e="".concat(t.toasterType.toLowerCase()),a=t.large?"sds--toaster--full-width":"",i=t.action?"sds--toaster--has-action":"",l="sds--toaster ".concat(e," ").concat(i," ").concat(a);return ie.createElement("div",{className:l},ie.createElement("div",{className:"sds--toaster--visual"},[Ts.Error,Ts.Warning].includes(t.toasterType)&&ie.createElement(HS,null),[Ts.Default,Ts.Info].includes(t.toasterType)&&ie.createElement(Gp,null),[Ts.Success].includes(t.toasterType)&&ie.createElement(PS,null)),ie.createElement("div",{className:"sds--toaster--textual"},t.message&&ie.createElement("p",{dangerouslySetInnerHTML:{__html:kl(t.message)}}),t.children&&t.children,t.action&&ie.createElement("button",{type:"button",onClick:t.action,className:"sds--btn sds--btn--ghost--dark sds--btn--small"},t.actionLabel)),t.close&&ie.createElement("button",{className:"sds--alert--actions",onClick:t.close},ie.createElement("span",{className:"text sds--visually-hidden"},"Close alert"),ie.createElement(Zp,null)))},rO=function(t){return ie.createElement("div",{className:"sds--toaster-container"},t.children)},aO=function(t){return ie.createElement("nav",{className:"sds--user-info ".concat(t.isOpen?"is-open":"")},ie.createElement("div",{className:"sds--user-info--textual"},ie.createElement("p",{className:"name"},t.userName),ie.createElement("p",{className:"role sds--text--body--small"},t.organisationName)),ie.createElement("button",{type:"button",className:"sds--user-info--button",onClick:t.toggle},ie.createElement(FT,null)),ie.createElement("div",{className:"sds--user-info--dropdown"},t.children&&t.children))},Xo={},n7;function iO(){if(n7)return Xo;n7=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.parse=c,Xo.serialize=m;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,l=Object.prototype.toString,o=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function c(S,A){const w=new o,R=S.length;if(R<2)return w;const k=(A==null?void 0:A.decode)||v;let D=0;do{const I=S.indexOf("=",D);if(I===-1)break;const B=S.indexOf(";",D),Y=B===-1?R:B;if(I>Y){D=S.lastIndexOf(";",I-1)+1;continue}const j=h(S,D,I),F=f(S,I,j),Z=S.slice(j,F);if(w[Z]===void 0){let E=h(S,I+1,Y),x=f(S,Y,E);const O=k(S.slice(E,x));w[Z]=O}D=Y+1}while(D<R);return w}function h(S,A,w){do{const R=S.charCodeAt(A);if(R!==32&&R!==9)return A}while(++A<w);return w}function f(S,A,w){for(;A>w;){const R=S.charCodeAt(--A);if(R!==32&&R!==9)return A+1}return w}function m(S,A,w){const R=(w==null?void 0:w.encode)||encodeURIComponent;if(!t.test(S))throw new TypeError(`argument name is invalid: ${S}`);const k=R(A);if(!e.test(k))throw new TypeError(`argument val is invalid: ${A}`);let D=S+"="+k;if(!w)return D;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);D+="; Max-Age="+w.maxAge}if(w.domain){if(!a.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);D+="; Domain="+w.domain}if(w.path){if(!i.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);D+="; Path="+w.path}if(w.expires){if(!b(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);D+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(D+="; HttpOnly"),w.secure&&(D+="; Secure"),w.partitioned&&(D+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":D+="; Priority=Low";break;case"medium":D+="; Priority=Medium";break;case"high":D+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":D+="; SameSite=Strict";break;case"lax":D+="; SameSite=Lax";break;case"none":D+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return D}function v(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function b(S){return l.call(S)==="[object Date]"}return Xo}iO();var r7="popstate";function lO(t={}){function e(i,l){let{pathname:o,search:c,hash:h}=i.location;return cp("",{pathname:o,search:c,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function a(i,l){return typeof l=="string"?l:Tu(l)}return oO(e,a,null,t)}function an(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function wa(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function sO(){return Math.random().toString(36).substring(2,10)}function a7(t,e){return{usr:t.state,key:t.key,idx:e}}function cp(t,e,a=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Hs(e):e,state:a,key:e&&e.key||i||sO()}}function Tu({pathname:t="/",search:e="",hash:a=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function Hs(t){let e={};if(t){let a=t.indexOf("#");a>=0&&(e.hash=t.substring(a),t=t.substring(0,a));let i=t.indexOf("?");i>=0&&(e.search=t.substring(i),t=t.substring(0,i)),t&&(e.pathname=t)}return e}function oO(t,e,a,i={}){let{window:l=document.defaultView,v5Compat:o=!1}=i,c=l.history,h="POP",f=null,m=v();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function v(){return(c.state||{idx:null}).idx}function b(){h="POP";let k=v(),D=k==null?null:k-m;m=k,f&&f({action:h,location:R.location,delta:D})}function S(k,D){h="PUSH";let I=cp(R.location,k,D);m=v()+1;let B=a7(I,m),Y=R.createHref(I);try{c.pushState(B,"",Y)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;l.location.assign(Y)}o&&f&&f({action:h,location:R.location,delta:1})}function A(k,D){h="REPLACE";let I=cp(R.location,k,D);m=v();let B=a7(I,m),Y=R.createHref(I);c.replaceState(B,"",Y),o&&f&&f({action:h,location:R.location,delta:0})}function w(k){return uO(k)}let R={get action(){return h},get location(){return t(l,c)},listen(k){if(f)throw new Error("A history only accepts one active listener");return l.addEventListener(r7,b),f=k,()=>{l.removeEventListener(r7,b),f=null}},createHref(k){return e(l,k)},createURL:w,encodeLocation(k){let D=w(k);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:S,replace:A,go(k){return c.go(k)}};return R}function uO(t,e=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),an(a,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:Tu(t);return i=i.replace(/ $/,"%20"),!e&&i.startsWith("//")&&(i=a+i),new URL(i,a)}function YS(t,e,a="/"){return cO(t,e,a,!1)}function cO(t,e,a,i){let l=typeof e=="string"?Hs(e):e,o=gi(l.pathname||"/",a);if(o==null)return null;let c=QS(t);fO(c);let h=null;for(let f=0;h==null&&f<c.length;++f){let m=AO(o);h=SO(c[f],m,i)}return h}function QS(t,e=[],a=[],i=""){let l=(o,c,h)=>{let f={relativePath:h===void 0?o.path||"":h,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};f.relativePath.startsWith("/")&&(an(f.relativePath.startsWith(i),`Absolute route path "${f.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(i.length));let m=hi([i,f.relativePath]),v=a.concat(f);o.children&&o.children.length>0&&(an(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),QS(o.children,e,v,m)),!(o.path==null&&!o.index)&&e.push({path:m,score:yO(m,o.index),routesMeta:v})};return t.forEach((o,c)=>{var h;if(o.path===""||!((h=o.path)!=null&&h.includes("?")))l(o,c);else for(let f of KS(o.path))l(o,c,f)}),e}function KS(t){let e=t.split("/");if(e.length===0)return[];let[a,...i]=e,l=a.endsWith("?"),o=a.replace(/\?$/,"");if(i.length===0)return l?[o,""]:[o];let c=KS(i.join("/")),h=[];return h.push(...c.map(f=>f===""?o:[o,f].join("/"))),l&&h.push(...c),h.map(f=>t.startsWith("/")&&f===""?"/":f)}function fO(t){t.sort((e,a)=>e.score!==a.score?a.score-e.score:bO(e.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var dO=/^:[\w-]+$/,hO=3,mO=2,pO=1,gO=10,vO=-2,i7=t=>t==="*";function yO(t,e){let a=t.split("/"),i=a.length;return a.some(i7)&&(i+=vO),e&&(i+=mO),a.filter(l=>!i7(l)).reduce((l,o)=>l+(dO.test(o)?hO:o===""?pO:gO),i)}function bO(t,e){return t.length===e.length&&t.slice(0,-1).every((i,l)=>i===e[l])?t[t.length-1]-e[e.length-1]:0}function SO(t,e,a=!1){let{routesMeta:i}=t,l={},o="/",c=[];for(let h=0;h<i.length;++h){let f=i[h],m=h===i.length-1,v=o==="/"?e:e.slice(o.length)||"/",b=Nf({path:f.relativePath,caseSensitive:f.caseSensitive,end:m},v),S=f.route;if(!b&&m&&a&&!i[i.length-1].route.index&&(b=Nf({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},v)),!b)return null;Object.assign(l,b.params),c.push({params:l,pathname:hi([o,b.pathname]),pathnameBase:TO(hi([o,b.pathnameBase])),route:S}),b.pathnameBase!=="/"&&(o=hi([o,b.pathnameBase]))}return c}function Nf(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[a,i]=EO(t.path,t.caseSensitive,t.end),l=e.match(a);if(!l)return null;let o=l[0],c=o.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:i.reduce((m,{paramName:v,isOptional:b},S)=>{if(v==="*"){let w=h[S]||"";c=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const A=h[S];return b&&!A?m[v]=void 0:m[v]=(A||"").replace(/%2F/g,"/"),m},{}),pathname:o,pathnameBase:c,pattern:t}}function EO(t,e=!1,a=!0){wa(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],l="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,f)=>(i.push({paramName:h,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),l+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":t!==""&&t!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,e?void 0:"i"),i]}function AO(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return wa(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function gi(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let a=e.endsWith("/")?e.length-1:e.length,i=t.charAt(a);return i&&i!=="/"?null:t.slice(a)||"/"}function wO(t,e="/"){let{pathname:a,search:i="",hash:l=""}=typeof t=="string"?Hs(t):t;return{pathname:a?a.startsWith("/")?a:CO(a,e):e,search:OO(i),hash:RO(l)}}function CO(t,e){let a=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function A0(t,e,a,i){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function xO(t){return t.filter((e,a)=>a===0||e.route.path&&e.route.path.length>0)}function Yp(t){let e=xO(t);return e.map((a,i)=>i===e.length-1?a.pathname:a.pathnameBase)}function Qp(t,e,a,i=!1){let l;typeof t=="string"?l=Hs(t):(l={...t},an(!l.pathname||!l.pathname.includes("?"),A0("?","pathname","search",l)),an(!l.pathname||!l.pathname.includes("#"),A0("#","pathname","hash",l)),an(!l.search||!l.search.includes("#"),A0("#","search","hash",l)));let o=t===""||l.pathname==="",c=o?"/":l.pathname,h;if(c==null)h=a;else{let b=e.length-1;if(!i&&c.startsWith("..")){let S=c.split("/");for(;S[0]==="..";)S.shift(),b-=1;l.pathname=S.join("/")}h=b>=0?e[b]:"/"}let f=wO(l,h),m=c&&c!=="/"&&c.endsWith("/"),v=(o||c===".")&&a.endsWith("/");return!f.pathname.endsWith("/")&&(m||v)&&(f.pathname+="/"),f}var hi=t=>t.join("/").replace(/\/\/+/g,"/"),TO=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),OO=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,RO=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function IO(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var JS=["POST","PUT","PATCH","DELETE"];new Set(JS);var MO=["GET",...JS];new Set(MO);var Bs=g.createContext(null);Bs.displayName="DataRouter";var Jf=g.createContext(null);Jf.displayName="DataRouterState";var XS=g.createContext({isTransitioning:!1});XS.displayName="ViewTransition";var DO=g.createContext(new Map);DO.displayName="Fetchers";var NO=g.createContext(null);NO.displayName="Await";var xa=g.createContext(null);xa.displayName="Navigation";var Uu=g.createContext(null);Uu.displayName="Location";var Ta=g.createContext({outlet:null,matches:[],isDataRoute:!1});Ta.displayName="Route";var Kp=g.createContext(null);Kp.displayName="RouteError";function LO(t,{relative:e}={}){an(Fs(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=g.useContext(xa),{hash:l,pathname:o,search:c}=qu(t,{relative:e}),h=o;return a!=="/"&&(h=o==="/"?a:hi([a,o])),i.createHref({pathname:h,search:c,hash:l})}function Fs(){return g.useContext(Uu)!=null}function Ga(){return an(Fs(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Uu).location}var $S="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eE(t){g.useContext(xa).static||g.useLayoutEffect(t)}function Vn(){let{isDataRoute:t}=g.useContext(Ta);return t?ZO():kO()}function kO(){an(Fs(),"useNavigate() may be used only in the context of a <Router> component.");let t=g.useContext(Bs),{basename:e,navigator:a}=g.useContext(xa),{matches:i}=g.useContext(Ta),{pathname:l}=Ga(),o=JSON.stringify(Yp(i)),c=g.useRef(!1);return eE(()=>{c.current=!0}),g.useCallback((f,m={})=>{if(wa(c.current,$S),!c.current)return;if(typeof f=="number"){a.go(f);return}let v=Qp(f,JSON.parse(o),l,m.relative==="path");t==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:hi([e,v.pathname])),(m.replace?a.replace:a.push)(v,m.state,m)},[e,a,o,l,t])}g.createContext(null);function _s(){let{matches:t}=g.useContext(Ta),e=t[t.length-1];return e?e.params:{}}function qu(t,{relative:e}={}){let{matches:a}=g.useContext(Ta),{pathname:i}=Ga(),l=JSON.stringify(Yp(a));return g.useMemo(()=>Qp(t,JSON.parse(l),i,e==="path"),[t,l,i,e])}function jO(t,e){return tE(t,e)}function tE(t,e,a,i){var D;an(Fs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=g.useContext(xa),{matches:o}=g.useContext(Ta),c=o[o.length-1],h=c?c.params:{},f=c?c.pathname:"/",m=c?c.pathnameBase:"/",v=c&&c.route;{let I=v&&v.path||"";nE(f,!v||I.endsWith("*")||I.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${I}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${I}"> to <Route path="${I==="/"?"*":`${I}/*`}">.`)}let b=Ga(),S;if(e){let I=typeof e=="string"?Hs(e):e;an(m==="/"||((D=I.pathname)==null?void 0:D.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${I.pathname}" was given in the \`location\` prop.`),S=I}else S=b;let A=S.pathname||"/",w=A;if(m!=="/"){let I=m.replace(/^\//,"").split("/");w="/"+A.replace(/^\//,"").split("/").slice(I.length).join("/")}let R=YS(t,{pathname:w});wa(v||R!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),wa(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=PO(R&&R.map(I=>Object.assign({},I,{params:Object.assign({},h,I.params),pathname:hi([m,l.encodeLocation?l.encodeLocation(I.pathname).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?m:hi([m,l.encodeLocation?l.encodeLocation(I.pathnameBase).pathname:I.pathnameBase])})),o,a,i);return e&&k?g.createElement(Uu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},k):k}function _O(){let t=GO(),e=IO(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",t),c=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},e),a?g.createElement("pre",{style:l},a):null,c)}var UO=g.createElement(_O,null),qO=class extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?g.createElement(Ta.Provider,{value:this.props.routeContext},g.createElement(Kp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zO({routeContext:t,match:e,children:a}){let i=g.useContext(Bs);return i&&i.static&&i.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=e.route.id),g.createElement(Ta.Provider,{value:t},a)}function PO(t,e=[],a=null,i=null){if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(e.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let l=t,o=a==null?void 0:a.errors;if(o!=null){let f=l.findIndex(m=>m.route.id&&(o==null?void 0:o[m.route.id])!==void 0);an(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,f+1))}let c=!1,h=-1;if(a)for(let f=0;f<l.length;f++){let m=l[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=f),m.route.id){let{loaderData:v,errors:b}=a,S=m.route.loader&&!v.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||S){c=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((f,m,v)=>{let b,S=!1,A=null,w=null;a&&(b=o&&m.route.id?o[m.route.id]:void 0,A=m.route.errorElement||UO,c&&(h<0&&v===0?(nE("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):h===v&&(S=!0,w=m.route.hydrateFallbackElement||null)));let R=e.concat(l.slice(0,v+1)),k=()=>{let D;return b?D=A:S?D=w:m.route.Component?D=g.createElement(m.route.Component,null):m.route.element?D=m.route.element:D=f,g.createElement(zO,{match:m,routeContext:{outlet:f,matches:R,isDataRoute:a!=null},children:D})};return a&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?g.createElement(qO,{location:a.location,revalidation:a.revalidation,component:A,error:b,children:k(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):k()},null)}function Jp(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function HO(t){let e=g.useContext(Bs);return an(e,Jp(t)),e}function BO(t){let e=g.useContext(Jf);return an(e,Jp(t)),e}function FO(t){let e=g.useContext(Ta);return an(e,Jp(t)),e}function Xp(t){let e=FO(t),a=e.matches[e.matches.length-1];return an(a.route.id,`${t} can only be used on routes that contain a unique "id"`),a.route.id}function VO(){return Xp("useRouteId")}function GO(){var i;let t=g.useContext(Kp),e=BO("useRouteError"),a=Xp("useRouteError");return t!==void 0?t:(i=e.errors)==null?void 0:i[a]}function ZO(){let{router:t}=HO("useNavigate"),e=Xp("useNavigate"),a=g.useRef(!1);return eE(()=>{a.current=!0}),g.useCallback(async(l,o={})=>{wa(a.current,$S),a.current&&(typeof l=="number"?t.navigate(l):await t.navigate(l,{fromRouteId:e,...o}))},[t,e])}var l7={};function nE(t,e,a){!e&&!l7[t]&&(l7[t]=!0,wa(!1,a))}g.memo(WO);function WO({routes:t,future:e,state:a}){return tE(t,void 0,a,e)}function s7({to:t,replace:e,state:a,relative:i}){an(Fs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=g.useContext(xa);wa(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=g.useContext(Ta),{pathname:c}=Ga(),h=Vn(),f=Qp(t,Yp(o),c,i==="path"),m=JSON.stringify(f);return g.useEffect(()=>{h(JSON.parse(m),{replace:e,state:a,relative:i})},[h,m,i,e,a]),null}function Xn(t){an(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function YO({basename:t="/",children:e=null,location:a,navigationType:i="POP",navigator:l,static:o=!1}){an(!Fs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=t.replace(/^\/*/,"/"),h=g.useMemo(()=>({basename:c,navigator:l,static:o,future:{}}),[c,l,o]);typeof a=="string"&&(a=Hs(a));let{pathname:f="/",search:m="",hash:v="",state:b=null,key:S="default"}=a,A=g.useMemo(()=>{let w=gi(f,c);return w==null?null:{location:{pathname:w,search:m,hash:v,state:b,key:S},navigationType:i}},[c,f,m,v,b,S,i]);return wa(A!=null,`<Router basename="${c}"> is not able to match the URL "${f}${m}${v}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:g.createElement(xa.Provider,{value:h},g.createElement(Uu.Provider,{children:e,value:A}))}function fp({children:t,location:e}){return jO(dp(t),e)}function dp(t,e=[]){let a=[];return g.Children.forEach(t,(i,l)=>{if(!g.isValidElement(i))return;let o=[...e,l];if(i.type===g.Fragment){a.push.apply(a,dp(i.props.children,o));return}an(i.type===Xn,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),an(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=dp(i.props.children,o)),a.push(c)}),a}var yf="get",bf="application/x-www-form-urlencoded";function Xf(t){return t!=null&&typeof t.tagName=="string"}function QO(t){return Xf(t)&&t.tagName.toLowerCase()==="button"}function KO(t){return Xf(t)&&t.tagName.toLowerCase()==="form"}function JO(t){return Xf(t)&&t.tagName.toLowerCase()==="input"}function XO(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function $O(t,e){return t.button===0&&(!e||e==="_self")&&!XO(t)}var tf=null;function eR(){if(tf===null)try{new FormData(document.createElement("form"),0),tf=!1}catch{tf=!0}return tf}var tR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function w0(t){return t!=null&&!tR.has(t)?(wa(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bf}"`),null):t}function nR(t,e){let a,i,l,o,c;if(KO(t)){let h=t.getAttribute("action");i=h?gi(h,e):null,a=t.getAttribute("method")||yf,l=w0(t.getAttribute("enctype"))||bf,o=new FormData(t)}else if(QO(t)||JO(t)&&(t.type==="submit"||t.type==="image")){let h=t.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=t.getAttribute("formaction")||h.getAttribute("action");if(i=f?gi(f,e):null,a=t.getAttribute("formmethod")||h.getAttribute("method")||yf,l=w0(t.getAttribute("formenctype"))||w0(h.getAttribute("enctype"))||bf,o=new FormData(h,t),!eR()){let{name:m,type:v,value:b}=t;if(v==="image"){let S=m?`${m}.`:"";o.append(`${S}x`,"0"),o.append(`${S}y`,"0")}else m&&o.append(m,b)}}else{if(Xf(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=yf,i=null,l=bf,c=t}return o&&l==="text/plain"&&(c=o,o=void 0),{action:i,method:a.toLowerCase(),encType:l,formData:o,body:c}}function $p(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}async function rR(t,e){if(t.id in e)return e[t.id];try{let a=await import(t.module);return e[t.id]=a,a}catch(a){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function aR(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function iR(t,e,a){let i=await Promise.all(t.map(async l=>{let o=e.routes[l.route.id];if(o){let c=await rR(o,a);return c.links?c.links():[]}return[]}));return uR(i.flat(1).filter(aR).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function o7(t,e,a,i,l,o){let c=(f,m)=>a[m]?f.route.id!==a[m].route.id:!0,h=(f,m)=>{var v;return a[m].pathname!==f.pathname||((v=a[m].route.path)==null?void 0:v.endsWith("*"))&&a[m].params["*"]!==f.params["*"]};return o==="assets"?e.filter((f,m)=>c(f,m)||h(f,m)):o==="data"?e.filter((f,m)=>{var b;let v=i.routes[f.route.id];if(!v||!v.hasLoader)return!1;if(c(f,m)||h(f,m))return!0;if(f.route.shouldRevalidate){let S=f.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((b=a[0])==null?void 0:b.params)||{},nextUrl:new URL(t,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function lR(t,e,{includeHydrateFallback:a}={}){return sR(t.map(i=>{let l=e.routes[i.route.id];if(!l)return[];let o=[l.module];return l.clientActionModule&&(o=o.concat(l.clientActionModule)),l.clientLoaderModule&&(o=o.concat(l.clientLoaderModule)),a&&l.hydrateFallbackModule&&(o=o.concat(l.hydrateFallbackModule)),l.imports&&(o=o.concat(l.imports)),o}).flat(1))}function sR(t){return[...new Set(t)]}function oR(t){let e={},a=Object.keys(t).sort();for(let i of a)e[i]=t[i];return e}function uR(t,e){let a=new Set;return new Set(e),t.reduce((i,l)=>{let o=JSON.stringify(oR(l));return a.has(o)||(a.add(o),i.push({key:o,link:l})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var cR=new Set([100,101,204,205]);function fR(t,e){let a=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return a.pathname==="/"?a.pathname="_root.data":e&&gi(a.pathname,e)==="/"?a.pathname=`${e.replace(/\/$/,"")}/_root.data`:a.pathname=`${a.pathname.replace(/\/$/,"")}.data`,a}function rE(){let t=g.useContext(Bs);return $p(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function dR(){let t=g.useContext(Jf);return $p(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var e4=g.createContext(void 0);e4.displayName="FrameworkContext";function aE(){let t=g.useContext(e4);return $p(t,"You must render this element inside a <HydratedRouter> element"),t}function hR(t,e){let a=g.useContext(e4),[i,l]=g.useState(!1),[o,c]=g.useState(!1),{onFocus:h,onBlur:f,onMouseEnter:m,onMouseLeave:v,onTouchStart:b}=e,S=g.useRef(null);g.useEffect(()=>{if(t==="render"&&c(!0),t==="viewport"){let R=D=>{D.forEach(I=>{c(I.isIntersecting)})},k=new IntersectionObserver(R,{threshold:.5});return S.current&&k.observe(S.current),()=>{k.disconnect()}}},[t]),g.useEffect(()=>{if(i){let R=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(R)}}},[i]);let A=()=>{l(!0)},w=()=>{l(!1),c(!1)};return a?t!=="intent"?[o,S,{}]:[o,S,{onFocus:$o(h,A),onBlur:$o(f,w),onMouseEnter:$o(m,A),onMouseLeave:$o(v,w),onTouchStart:$o(b,A)}]:[!1,S,{}]}function $o(t,e){return a=>{t&&t(a),a.defaultPrevented||e(a)}}function mR({page:t,...e}){let{router:a}=rE(),i=g.useMemo(()=>YS(a.routes,t,a.basename),[a.routes,t,a.basename]);return i?g.createElement(gR,{page:t,matches:i,...e}):null}function pR(t){let{manifest:e,routeModules:a}=aE(),[i,l]=g.useState([]);return g.useEffect(()=>{let o=!1;return iR(t,e,a).then(c=>{o||l(c)}),()=>{o=!0}},[t,e,a]),i}function gR({page:t,matches:e,...a}){let i=Ga(),{manifest:l,routeModules:o}=aE(),{basename:c}=rE(),{loaderData:h,matches:f}=dR(),m=g.useMemo(()=>o7(t,e,f,l,i,"data"),[t,e,f,l,i]),v=g.useMemo(()=>o7(t,e,f,l,i,"assets"),[t,e,f,l,i]),b=g.useMemo(()=>{if(t===i.pathname+i.search+i.hash)return[];let w=new Set,R=!1;if(e.forEach(D=>{var B;let I=l.routes[D.route.id];!I||!I.hasLoader||(!m.some(Y=>Y.route.id===D.route.id)&&D.route.id in h&&((B=o[D.route.id])!=null&&B.shouldRevalidate)||I.hasClientLoader?R=!0:w.add(D.route.id))}),w.size===0)return[];let k=fR(t,c);return R&&w.size>0&&k.searchParams.set("_routes",e.filter(D=>w.has(D.route.id)).map(D=>D.route.id).join(",")),[k.pathname+k.search]},[c,h,i,l,m,e,t,o]),S=g.useMemo(()=>lR(v,l),[v,l]),A=pR(v);return g.createElement(g.Fragment,null,b.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...a})),S.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...a})),A.map(({key:w,link:R})=>g.createElement("link",{key:w,...R})))}function vR(...t){return e=>{t.forEach(a=>{typeof a=="function"?a(e):a!=null&&(a.current=e)})}}var iE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{iE&&(window.__reactRouterVersion="7.6.2")}catch{}function yR({basename:t,children:e,window:a}){let i=g.useRef();i.current==null&&(i.current=lO({window:a,v5Compat:!0}));let l=i.current,[o,c]=g.useState({action:l.action,location:l.location}),h=g.useCallback(f=>{g.startTransition(()=>c(f))},[c]);return g.useLayoutEffect(()=>l.listen(h),[l,h]),g.createElement(YO,{basename:t,children:e,location:o.location,navigationType:o.action,navigator:l})}var lE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dl=g.forwardRef(function({onClick:e,discover:a="render",prefetch:i="none",relative:l,reloadDocument:o,replace:c,state:h,target:f,to:m,preventScrollReset:v,viewTransition:b,...S},A){let{basename:w}=g.useContext(xa),R=typeof m=="string"&&lE.test(m),k,D=!1;if(typeof m=="string"&&R&&(k=m,iE))try{let x=new URL(window.location.href),O=m.startsWith("//")?new URL(x.protocol+m):new URL(m),z=gi(O.pathname,w);O.origin===x.origin&&z!=null?m=z+O.search+O.hash:D=!0}catch{wa(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let I=LO(m,{relative:l}),[B,Y,j]=hR(i,S),F=AR(m,{replace:c,state:h,target:f,preventScrollReset:v,relative:l,viewTransition:b});function Z(x){e&&e(x),x.defaultPrevented||F(x)}let E=g.createElement("a",{...S,...j,href:k||I,onClick:D||o?e:Z,ref:vR(A,Y),target:f,"data-discover":!R&&a==="render"?"true":void 0});return B&&!R?g.createElement(g.Fragment,null,E,g.createElement(mR,{page:I})):E});Dl.displayName="Link";var bR=g.forwardRef(function({"aria-current":e="page",caseSensitive:a=!1,className:i="",end:l=!1,style:o,to:c,viewTransition:h,children:f,...m},v){let b=qu(c,{relative:m.relative}),S=Ga(),A=g.useContext(Jf),{navigator:w,basename:R}=g.useContext(xa),k=A!=null&&OR(b)&&h===!0,D=w.encodeLocation?w.encodeLocation(b).pathname:b.pathname,I=S.pathname,B=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;a||(I=I.toLowerCase(),B=B?B.toLowerCase():null,D=D.toLowerCase()),B&&R&&(B=gi(B,R)||B);const Y=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let j=I===D||!l&&I.startsWith(D)&&I.charAt(Y)==="/",F=B!=null&&(B===D||!l&&B.startsWith(D)&&B.charAt(D.length)==="/"),Z={isActive:j,isPending:F,isTransitioning:k},E=j?e:void 0,x;typeof i=="function"?x=i(Z):x=[i,j?"active":null,F?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let O=typeof o=="function"?o(Z):o;return g.createElement(Dl,{...m,"aria-current":E,className:x,ref:v,style:O,to:c,viewTransition:h},typeof f=="function"?f(Z):f)});bR.displayName="NavLink";var SR=g.forwardRef(({discover:t="render",fetcherKey:e,navigate:a,reloadDocument:i,replace:l,state:o,method:c=yf,action:h,onSubmit:f,relative:m,preventScrollReset:v,viewTransition:b,...S},A)=>{let w=xR(),R=TR(h,{relative:m}),k=c.toLowerCase()==="get"?"get":"post",D=typeof h=="string"&&lE.test(h),I=B=>{if(f&&f(B),B.defaultPrevented)return;B.preventDefault();let Y=B.nativeEvent.submitter,j=(Y==null?void 0:Y.getAttribute("formmethod"))||c;w(Y||B.currentTarget,{fetcherKey:e,method:j,navigate:a,replace:l,state:o,relative:m,preventScrollReset:v,viewTransition:b})};return g.createElement("form",{ref:A,method:k,action:R,onSubmit:i?f:I,...S,"data-discover":!D&&t==="render"?"true":void 0})});SR.displayName="Form";function ER(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function sE(t){let e=g.useContext(Bs);return an(e,ER(t)),e}function AR(t,{target:e,replace:a,state:i,preventScrollReset:l,relative:o,viewTransition:c}={}){let h=Vn(),f=Ga(),m=qu(t,{relative:o});return g.useCallback(v=>{if($O(v,e)){v.preventDefault();let b=a!==void 0?a:Tu(f)===Tu(m);h(t,{replace:b,state:i,preventScrollReset:l,relative:o,viewTransition:c})}},[f,h,m,a,i,e,t,l,o,c])}var wR=0,CR=()=>`__${String(++wR)}__`;function xR(){let{router:t}=sE("useSubmit"),{basename:e}=g.useContext(xa),a=VO();return g.useCallback(async(i,l={})=>{let{action:o,method:c,encType:h,formData:f,body:m}=nR(i,e);if(l.navigate===!1){let v=l.fetcherKey||CR();await t.fetch(v,a,l.action||o,{preventScrollReset:l.preventScrollReset,formData:f,body:m,formMethod:l.method||c,formEncType:l.encType||h,flushSync:l.flushSync})}else await t.navigate(l.action||o,{preventScrollReset:l.preventScrollReset,formData:f,body:m,formMethod:l.method||c,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:a,flushSync:l.flushSync,viewTransition:l.viewTransition})},[t,e,a])}function TR(t,{relative:e}={}){let{basename:a}=g.useContext(xa),i=g.useContext(Ta);an(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),o={...qu(t||".",{relative:e})},c=Ga();if(t==null){o.search=c.search;let h=new URLSearchParams(o.search),f=h.getAll("index");if(f.some(v=>v==="")){h.delete("index"),f.filter(b=>b).forEach(b=>h.append("index",b));let v=h.toString();o.search=v?`?${v}`:""}}return(!t||t===".")&&l.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(o.pathname=o.pathname==="/"?a:hi([a,o.pathname])),Tu(o)}function OR(t,e={}){let a=g.useContext(XS);an(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=sE("useViewTransitionState"),l=qu(t,{relative:e.relative});if(!a.isTransitioning)return!1;let o=gi(a.currentLocation.pathname,i)||a.currentLocation.pathname,c=gi(a.nextLocation.pathname,i)||a.nextLocation.pathname;return Nf(l.pathname,c)!=null||Nf(l.pathname,o)!=null}[...cR];var RR=TS();const IR={code:"EN",name:"English",languages:{language:"Language",en:"English",nl:"Dutch"},landing:{header:{title:"SURF Access",subTitle:"Enabling users in secondary vocational-, higher education and research <strong>to access multiple services with one account</strong>.",login:"Come on in",sup:"EduID ServiceDesk is by invitation only.",logout:"Logout"},tabs:{home:"Home",connect:"How to connect",institutions:"All institutions",applications:"All applications"},applicationProviders:{title:"For application providers",info:["Has an educational or research institution asked you to join SURF Access?","SURF Access centrally manages authentication, authorization, group management, and privacy/security agreements.","Connecting to our SURF Access is free and you wil start in a sandbox."],connect:"How to connect"},institutions:{title:"For institutions",info:["Do you want your students, staff and researchers to easily access multiple cloud services?","SURF Access offers 'Single Sign On'-access to a large and increasing number of them.","It simplifies your work with a single integration instead of separate connections for each service."],contact:"Contact us",contactMail:"mailto:info@surfconext.nl"},joining:{title:"Joining many to many",info:["SURF Access securily connects 1M+ users to over 3000 (web)applications. SURF Access is a service from <a target='_blank' href='https://surfnet.nl'>SURF</a>.","Interested which institutions and applications are connected?"],links:{prefix:"Browse ",institutions:"all {{nbr}} institutions",or:" or ",applications:"all {{nbr}} applications."}}},navigation:{home:"Home",applications:"Applications",teams:"Teams"},breadCrumb:{access:"SURF Access",landing:"Search for your organization",applications:"Application maintenance",home:"Home"},welcome:{greeting:"Welcome {{name}}",info:"Kies hieronder of jouw organisatie al bestaat of voeg een nieuwe organisatie toe. Dit helpt ons om je aan de juiste omgeving te koppelen.",searchPlaceholder:"Search for organizations...",organizationMembers:"{{memberCount}} {{user}} and {{applicationCount}} {{application}}. Request access.",user:"user",users:"users",application:"application",applications:"applications",zeroState:"No organizations found",register:"‘<strong>{{name}}</strong>’ registreren en doorgaan",flash:"Created organization {{name}}."},userHome:{greeting:"{{name}}",nudgeLanding:"You are not a member of any organization.",nudgeLandingLink:" You can request to join one.",infoJoinRequest:"Just relax, your request to join the organization <strong>{{name}}</strong> is pending."},joinRequest:{info:"Je hebt geen toegang tot de omgeving van <strong>{{name}}</strong>. Je kunt toegang vragen aan de beheerder.",requestAccess:"Request access",duplicate:"There is already an outstanding request for you to join <strong>{{name}}</strong>.",flash:"Your join request is sent to the admins of <strong>{{name}}</strong>.",modal:{title:"Join request is created",success:"Your join request is sent to the admins of <strong>{{name}}</strong>. You will receive an email if the join request is accepted",proceed:"Proceed"}},organizations:{tooltip:"SURF beoordeelt je organisastie registratie. Je kunt apps registreren op onze testomgeving, voor toegang naar productie moet je ‘bevestigd’ zijn."},userMenu:{switchOrganization:"Switch organization"},application:{new:"New Application",edit:"Edit {{name}}",name:"Name",nameInfo:"Gebruik een naam die herkenbaar zal zijn voor instellingen",type:"Type",app:"Een Applicatie (tools, clouddiensten, utitilities etc...)",content:"Content dienst (streaming media, educatieve content, e-books)",contentInfoPre:"Content diensten ontvangen de ",contentInfoLink:"minimale set",contentInfoPost:" aan attributen.",contentInfoTip:"Attributenset voor content providers:<ul><li>Persistent or Transient NameID</li><li>schacHomeOrganization</li><li>eduPersonAffiliation</li><li>eduPersonScopedAffiliation</li></ul>",targetGroup:"Target group",targetSURF:"Verschillende gebruikers die beheerd worden in een (onderzoeks)groep",targetSURFInfo:"De gebruikers worden individueel uitgenodigd bij de groep.",targetSRAM:"Studenten, medewerkers en externen uit één instellings IdP",targetSRAMInfo:"Zij krijgen toegang omdat ze een kenmerk of rol hebben.",terms:"Fair Use terms",checks:{personal:"Mijn applicatie slaat persoonsgegevens veilig op",duration:"Ik bewaar de persoonsgegevens niet langer dan nodig",privacy:"Ik verstrek de persoonsgegevens niet aan derden",safe:"Ik houd mijn applicatie veilig en beschikbaar",support:"Ik ben bereikbaar bij vragen en problemen"},checksInfo:{personal:"De persoonsgegevens worden op een beveiligde manier opgeslagen.",duration:"De persoonsgegevens worden echt niet langer dan nodig opgeslagen",privacy:"De persoonsgegevens worden niet aan derden verstrekt",safe:"De applicatie is uitermate veilig en bijna altijd beschikbaar",support:"Als er vragen of problemen zijn, dan zoek je het maar uit"},flash:"Application {{name}} saved.",deleteConfirmation:"Are you sure you want to delete the Application {{name}}?"},organization:{alertInfo:"Welkom op SURF Access. Via deze Self Service Portal kun je jouw Applicatie beschikbaar maken voor instellingen binnen het hoger onderwijs in Nederland.",addFirstApplication:"Voeg je eerste Applicatie toe",addApplication:"Nieuwe Applicatie toevoegen",deleteConfirmation:"Are you sure you want to delete the Organization {{name}}?",catalog:{terms:"Voorwaarden voor apps in de SURF catalogus",fairUse:"Is je app voor een specifieke groep gebruikers (zoals één onderzoeksgroep)? Dan valt deze onder de <a href='https://surf.nl/fair-use' target='_blank'>Fair use gebruiksvoorwaarden</a>.",agreement:"Is je app bedoeld voor gebruik door hele onderwijsinstellingen? Dan teken je een <a href='https://surf.nl/fair-use' target='_blank'>SURF-aansluitovereenkomst</a>.",disclaimer:"<strong>Let op</strong>: Deze voorwaarden gelden alleen voor de productieomgeving, je kunt direct met de testomgeving koppelen."},applications:"Applications",team:"My Team",joins:"Join Requests"},connection:{overview:"Overview",testing:"Testing",prod:"Production",application:"App information",contract:"Contract",welcome:"Welkom {{user}}. {{name}} is nog niet gekoppeld met SURF Access. Begin met een koppeling aan onze testomgeving.",testSection:"Test",teamSection:"Team",duplicatedName:"A connection with name {{name}} already exists for this Application.",duplicateEntityID:"A connection with entityID {{entityID}} already exists",test:{name:"Test",connections:"Koppelingen met onze testomgeving",info:"Test of federatief inloggen werkt via onze testomgeving."},team:{name:"Teams",info:"Geef teamleden of externen toegang tot deze applicatie space.",members:"Teamleden voor beheer van deze applicatie"},production:{name:"Production",connections:"Koppelingen met onze productieomgeving",catalogue:"App informatie voor de SURF App catalogus",access:"Toegang en zichtbaarheid",contract:"Contract",disclaimer:"Een koppeling aan de productieomgeving van SURF Access heeft goedkeuring nodig van team SURF Access. Alle boventaande informatie is verplicht."},productionConnectionHint:"Maak een productiekoppeling aan. Om de applicatie te kunnen activeren, moet ook alle informatie over de dienst worden toegevoegd.",applicationInformationHint:"Voordat een productiekoppeling geactiveerd kan worden, moet alle informatie over de dienst zijn toegevoegd én het contract getekend.",productionActivationHint:"Vraag activatie van de propductiekoppeling aan.",productionActivationAction:"Doe het direct",productActivationPending:"De aanvraag voor activatie van uw productiekoppeling is ontvangen. SURF neemt binnen drie werkdagen contact met u op.",newConnection:"Nieuwe koppeling met de testomgeving",existingConnection:"Testkoppeling bewerken",newConnectionProd:"Nieuwe koppeling met de productieomgeving",existingConnectionProd:"Productiekoppeling bewerken",copyConnection:"Kopieer info van andere koppeling",technical:"Technische gegevens",informationProfile:"Informatieprofiel",testIdP:"Test-IdP's",visibility:"Visibility",help:"Hulp nodig?",callSurf:"Plan een call met SURF",mailToSurf:"mailto:surf@info.nl",connectionName:"Naam koppeling",connectionPlaceholder:"e.g. {{application}}-{{environment}}",protocol:"Protocol",clientID:"Client ID",clientIDPlaceHolder:"",oidc10_rp:"OpenID Connect",saml20_sp:"SAML 2.0",grantType:"OAuth Grant type",grantTypes:"OAuth Grant types",authorization_code:"Authorization Code",refresh_token:"Refresh tokens",device_code:"Device Code",pkce:"PKCE",pkceTooltip:"PKCE (Proof Key for Code Exchange) enhances the security of the authorization code flow by preventing authorization code interception. It’s especially important for public clients like mobile or single-page apps",optional:"Optional",required:"Required (public client)",redirectUrl:"Redirect URL",redirectUrls:"Redirect URLs",addRedirectUrl:"+ Redirect URL",sslGrade:"SSL Grade (min. B)",sslGradeTooltip:"Ensure the SSL/TLS certificate meets or exceeds grade B",configuration:"Congifuratiegegevens",import:"Metadata importeren",entityID:"Entity ID",entityIDPlaceHolder:"https://entityID.com",acsLocation:"ACS location",acsLocations:"ACS location(s)",addACSLocation:"+ Add ASC location",save:"Opslaan",saveAndNext:"Opslaan en volgende",deleteConfirmation:"Are you sure you want to delete this connection?",metadata:{how:"Hoe wil je de metadata importeren?",url:"De URL van een metadata-bestand opgeven",file:"Een metadata-bestand uploaden",paste:"De metadata in een tekstveld plakken",urlMetaData:"URL metadata bestand",import:"Metadata importeren",chooseFile:"Choose file",doPaste:"Plak hier de metadata",parsed:"The metadata has successfully been imported",errorParsed:"Error in parsing the metadata"},flash:{created:"Created connection {{name}}",updated:"Updated connection {{name}}",deleted:"Deleted connection {{name}}",copied:"Copied connection data from {{name}}"},connections:{titleProd:"Koppelingen met de productieomgeving",titleTest:"Koppelingen met de testomgeving",name:"Name",created:"Added at",status:"Status",open:"Open",complete:"Completed",protocol:"Protocol",details:"Details",requestProductionStatus:"Vraag productiestatus aan"},informational:{disclaimer:"Verwerk alleen informatie die <strong>strikt noodzakelijk</strong> is voor het functioneren van je applicatie.",contentAppAlert:"Een content application ontvangt de volgend informatie",profiles:{anonymous:{name:"Anoniem",title:"Het meest privacyvriendelijk",info:"Deze bundel is speciaal bedoeld voor als je zeer privacy bewust wilt werken. Je ontvangt een transient NameID, dit betekent dat de gebruiker elke keer als hij bij de dienst inlogt een nieuw etcetera."},pseudonymized:{name:"Pseudonymized",title:"Privacy vriendelijk inclusief betrouwbaarheid",info:"Deze bundel is speciaal bedoeld voor toelichting. Je ontvangt een persistent NameID, dit betekent dat de toelichting gebruiker elke keer als hij bij de dienst inlogt etcetera."},personalized:{name:"Gepersonaliseerd",title:"Persoonlijke gegevens ter identificatie",info:""},uidOnly:{name:"UID only",title:"Voor instellingen die intern alle persoonsinformatie aanvullen",info:""}},attributes:"<strong>Je ontvangt de volgende attributen</strong> (we tonen voorbeeldwaarden)",additionalAttributes:"Ik heb additionele attributen nodig",availableAttributes:"De volgende attributen zijn mogelijk bij deze bundel",profileMotivation:"Motivatie voor de noodzaak van dit profiel",profileMotivationPlaceholder:"Beschrijf waarom je dit informatieprofiel nodig hebt",profileMotivationDisclaimer:"Deze tekst wordt getoond aan eindgebruikers die willen aansluiten bij je dienst",motivation:"Motivation",motivationPlaceholder:"Attribute is used to ..."},testIdPs:{info:"Kies met welke IdP’s je wilt testen of het federatief inloggen werkt.",subTitle:"Test-IdP’s van SURF",identityProviders:[{name:"SXS IdP",entityid:"http://mock-idp",description:"Een test-IdP met <a href='https://idp.diy.surfconext.nl/showusers.php' target='_blank'>fictieve gebruikersaccounts</a>. De metadata vind je <a href='https://idp.diy.surfconext.nl/saml2/idp/metadata.php' target='_blank'>hier</a>"},{name:"SXS Dummy",entityid:"https://idp.diy.surfconext.nl/saml2/idp/metadata.php",description:"Een test-IdP waarmee je zelf attributen-sets kunt simuleren. De metadata vind je <a href='https://mujina-idp.test.surfconext.nl/metadata' target='_blank'>hier</a>"}],institutionIdPs:"Test-IdP’s van instellingen",institutionIdPsInfo:"Je kunt ook testen met accounts en data van instellingen. <strong>Let wel op<strong/>: Je moet zelf contact opnemen voor de test-inloggegevens voor hun test-IdP’s.",placeholder:"Selecteer één of meerdere instellingen",institution:"test IdP or institution IdP"},visibilities:{info:"Kies hoe je wilt dat deze koppeling zichtbaar is in de SURF App catalogus",disclaimer:"<strong>Let op</strong>: je kan de zichtbaarheid altijd later nog aanpassen",options:{visible_to_all:"Visible for all users and institutions",visible_to_idp_only:"Only visible for users from institutions that are granted access to this connection",visible_to_none:"Not visible for any users or institutions (e.g. hidden in the catalogus)"},placeholder:"Selecteer één of meerdere instellingen",institution:"Institution IdP"},connectionOverview:{copy:"Kopieer de inloggegevens",disclaimer:"Het client secret wordt hieronder éénmaal weergegeven. Zorg ervoor dat je het nu kopieert, anders moet er een nieuw seceret aangevraagd worden.",test:"Gebruik de volgende inloggegevens om verbinding te maken met de productieomgeving. Volg de <a href='https://servicedesk.surf.nl/wiki/spaces/IAM/pages/128909810/SURFconext+for+Service+Providers' target='_blank'>testinstructies</a> om te kijken of alles werkt.",discovery:"OpenID Connect Discovery",clientID:"Client ID",secret:"Client secret",authentication:"Authenticatie",secretReset:"For security reasons your current secret can not be displayed.",secretResetLink:"Reset your secret when needed.",secretResetDisclaimer:"Let op. Regenerating the secret will break your current connection.",secretResetTitle:"Reset your secret",secretResetNew:"New secret",reset:"Reset my secret",resetContinue:"I’ve copied the secret. Continue"},appInfo:{title:"App informatie voor de SURF App catalogus",label:"App informatie",sections:{logo:"Logo en beschrijving",contact:"Contactgegevens",privacy:"Privacy & Security ",overview:"Overview"},logoUrl:"Logo",descriptionEn:"Beschrijving in het Engels",descriptionNl:"Beschrijving in het Nederlands",webSite:"Website",tags:"Tag je applicatie",tagPlaceholder:"Maximaal 3 tags",tagInfo:"In de appstore kunnen instellingen hierop filteren",tagsAvailable:{education:"Education service",business:"Business service",commerce:"Commercial service"},targetGroup:"Ga door naar de doelgroep"},logo:{name:"logo",add:"Add a logo",edit:"Change logo",imageToLarge:"Image is larger then 2MB.",confirm:"Set new logo image",header:"Crop your new logo image",disclaimers:["png, jpg, svg or gif","min 100 * 100 pixels","max 2MB."]},contacts:{label:"Contactgegevens",info:"Gebruik zoveel mogelijk functionele adressen in plaats van persoonlijke.",name:"name",administrative:"Administratief contact",administrativeTooltip:"Administratief contact Tooltip",administrativePlaceholder:"e.g. admin@{{name}}",emailOrWebsite:"Email-adres of website",technical:"Technisch contact (anders dan administratief)",technicalTooltip:"Technical contact Tooltip",technicalPlaceholder:"e.g. technical@{{name}}",support:"Support contact (eindgebruikers zien dit)",supportTooltip:"Support contact Tooltip",supportPlaceholder:"e.g. support@{{name}}"},privacy:{label:"Privacy & Security",info:"Please fill out the questions below. We will share the answers with institutions connected to SURFconext. This way the institutions interested in your service quickly have an idea of your efforts regarding privacy and security.",answerIsRequired:"Answer to this privacy question is required"},appOverview:{label:"De App informatie zijn compleet.",info:"Zo verschijnt je app in de SURF App catalogus."},contractSection:{title:"Contract",info:"Voor apps op SURF Access moet je een SURF-aansluitovereenkomst tekenen.",notSigned:"Er is nog geen overeenkomst getekend.",signed:"Er is een overeenkomst getekend.",sign:"Teken de overeenkomst"}},testing:{newConnection:"New connection",added:"Added at",status:"Status",protocol:"Protocol",details:"Details",zeroState:"Application <strong>{{name}}</strong> has no {{type}} connections yet.",production:"production",test:"test"},confirmationDialog:{title:"Confirm",error:"Error",subTitle:"This action requires a confirmation",subTitleError:"An error has occurred",confirm:"Confirm",ok:"Ok",cancel:"Cancel"},forms:{cancel:"Cancel",submit:"Submit",edit:"Edit",delete:"Delete",back:"Back",required:"{{name}} is required",requiredOne:"At least one {{name}} is required",error:"An unexpected error occurred",backToConnections:"Back to connections",backToOverview:"Back to overview",overview:"Naar overzicht",invalidURL:"{{name}} is not a valid URL",invalidEmailURL:"{{name}} is not a valid URL or valid email",moreLabel:"Show me more",lessLabel:"Show me less"},footer:{terms:"Terms of Use",termsLink:"https://support.surfconext.nl/terms-en",privacy:"Privacy policy",privacyLink:"https://support.surfconext.nl/privacy-en",surfLink:"https://surf.nl",select_locale:"Select your preferred language"}},MR={code:"NL",name:"Nederlands",languages:{language:"Language",en:"English",nl:"Dutch"},landing:{header:{title:"SURF Access",subTitle:"Enabling users in secondary vocational-, higher education and research <strong>to access multiple services with one account</strong>.",login:"Come on in",sup:"EduID ServiceDesk is by invitation only.",logout:"Logout"},tabs:{home:"Home",connect:"How to connect",institutions:"All institutions",applications:"All applications"},applicationProviders:{title:"For application providers",info:["Has an educational or research institution asked you to join SURF Access?","SURF Access centrally manages authentication, authorization, group management, and privacy/security agreements.","Connecting to our SURF Access is free and you wil start in a sandbox."],connect:"How to connect"},institutions:{title:"For institutions",info:["Do you want your students, staff and researchers to easily access multiple cloud services?","SURF Access offers 'Single Sign On'-access to a large and increasing number of them.","It simplifies your work with a single integration instead of separate connections for each service."],contact:"Contact us",contactMail:"mailto:info@surfconext.nl"},joining:{title:"Joining many to many",info:["SURF Access securily connects 1M+ users to over 3000 (web)applications. SURF Access is a service from <a target='_blank' href='https://surfnet.nl'>SURF</a>.","Interested which institutions and applications are connected?"],links:{prefix:"Browse ",institutions:"all {{nbr}} institutions",or:" or ",applications:"all {{nbr}} applications."}}},navigation:{home:"Home",applications:"Applications",teams:"Teams"},breadCrumb:{access:"SURF Access",landing:"Search for your organization",applications:"Application maintenance",home:"Home"},welcome:{greeting:"Welcome {{name}}",info:"Kies hieronder of jouw organisatie al bestaat of voeg een nieuwe organisatie toe. Dit helpt ons om je aan de juiste omgeving te koppelen.",searchPlaceholder:"Search for organizations...",organizationMembers:"{{memberCount}} {{user}} and {{applicationCount}} {{application}}. Request access.",user:"user",users:"users",application:"application",applications:"applications",zeroState:"No organizations found",register:"‘<strong>{{name}}</strong>’ registreren en doorgaan",flash:"Created organization {{name}}."},userHome:{greeting:"{{name}}",nudgeLanding:"You are not a member of any organization.",nudgeLandingLink:" You can request to join one.",infoJoinRequest:"Just relax, your request to join the organization <strong>{{name}}</strong> is pending."},joinRequest:{info:"Je hebt geen toegang tot de omgeving van <strong>{{name}}</strong>. Je kunt toegang vragen aan de beheerder.",requestAccess:"Request access",duplicate:"There is already an outstanding request for you to join <strong>{{name}}</strong>.",flash:"Your join request is sent to the admins of <strong>{{name}}</strong>.",modal:{title:"Join request is created",success:"Your join request is sent to the admins of <strong>{{name}}</strong>. You will receive an email if the join request is accepted",proceed:"Proceed"}},organizations:{tooltip:"SURF beoordeelt je organisastie registratie. Je kunt apps registreren op onze testomgeving, voor toegang naar productie moet je ‘bevestigd’ zijn."},userMenu:{switchOrganization:"Switch organization"},application:{new:"New Application",edit:"Edit {{name}}",name:"Name",nameInfo:"Gebruik een naam die herkenbaar zal zijn voor instellingen",type:"Type",app:"Een Applicatie (tools, clouddiensten, utitilities etc...)",content:"Content dienst (streaming media, educatieve content, e-books)",contentInfoPre:"Content diensten ontvangen de ",contentInfoLink:"minimale set",contentInfoPost:" aan attributen.",contentInfoTip:"Attributenset voor content providers:<ul><li>Persistent or Transient NameID</li><li>schacHomeOrganization</li><li>eduPersonAffiliation</li><li>eduPersonScopedAffiliation</li></ul>",targetGroup:"Target group",targetSURF:"Verschillende gebruikers die beheerd worden in een (onderzoeks)groep",targetSURFInfo:"De gebruikers worden individueel uitgenodigd bij de groep.",targetSRAM:"Studenten, medewerkers en externen uit één instellings IdP",targetSRAMInfo:"Zij krijgen toegang omdat ze een kenmerk of rol hebben.",terms:"Fair Use terms",checks:{personal:"Mijn applicatie slaat persoonsgegevens veilig op",duration:"Ik bewaar de persoonsgegevens niet langer dan nodig",privacy:"Ik verstrek de persoonsgegevens niet aan derden",safe:"Ik houd mijn applicatie veilig en beschikbaar",support:"Ik ben bereikbaar bij vragen en problemen"},checksInfo:{personal:"De persoonsgegevens worden op een beveiligde manier opgeslagen.",duration:"De persoonsgegevens worden echt niet langer dan nodig opgeslagen",privacy:"De persoonsgegevens worden niet aan derden verstrekt",safe:"De applicatie is uitermate veilig en bijna altijd beschikbaar",support:"Als er vragen of problemen zijn, dan zoek je het maar uit"},flash:"Application {{name}} saved.",deleteConfirmation:"Are you sure you want to delete the Application {{name}}?"},organization:{alertInfo:"Welkom op SURF Access. Via deze Self Service Portal kun je jouw Applicatie beschikbaar maken voor instellingen binnen het hoger onderwijs in Nederland.",addFirstApplication:"Voeg je eerste Applicatie toe",addApplication:"Nieuwe Applicatie toevoegen",deleteConfirmation:"Are you sure you want to delete the Organization {{name}}?",catalog:{terms:"Voorwaarden voor apps in de SURF catalogus",fairUse:"Is je app voor een specifieke groep gebruikers (zoals één onderzoeksgroep)? Dan valt deze onder de <a href='https://surf.nl/fair-use' target='_blank'>Fair use gebruiksvoorwaarden</a>.",agreement:"Is je app bedoeld voor gebruik door hele onderwijsinstellingen? Dan teken je een <a href='https://surf.nl/fair-use' target='_blank'>SURF-aansluitovereenkomst</a>.",disclaimer:"<strong>Let op</strong>: Deze voorwaarden gelden alleen voor de productieomgeving, je kunt direct met de testomgeving koppelen."},applications:"Applications",team:"My Team",joins:"Join Requests"},connection:{overview:"Overview",testing:"Testing",prod:"Production",application:"App information",contract:"Contract",welcome:"Welkom {{user}}. {{name}} is nog niet gekoppeld met SURF Access. Begin met een koppeling aan onze testomgeving.",testSection:"Test",teamSection:"Team",duplicatedName:"A connection with name {{name}} already exists for this Application.",duplicateEntityID:"A connection with entityID {{entityID}} already exists",test:{name:"Test",connections:"Koppelingen met onze testomgeving",info:"Test of federatief inloggen werkt via onze testomgeving."},team:{name:"Teams",info:"Geef teamleden of externen toegang tot deze applicatie space.",members:"Teamleden voor beheer van deze applicatie"},production:{name:"Production",connections:"Koppelingen met onze productieomgeving",catalogue:"App informatie voor de SURF App catalogus",access:"Toegang en zichtbaarheid",contract:"Contract",disclaimer:"Een koppeling aan de productieomgeving van SURF Access heeft goedkeuring nodig van team SURF Access. Alle boventaande informatie is verplicht."},productionConnectionHint:"Maak een productiekoppeling aan. Om de applicatie te kunnen activeren, moet ook alle informatie over de dienst worden toegevoegd.",applicationInformationHint:"Voordat een productiekoppeling geactiveerd kan worden, moet alle informatie over de dienst zijn toegevoegd én het contract getekend.",productionActivationHint:"Vraag activatie van de propductiekoppeling aan.",productionActivationAction:"Doe het direct",productActivationPending:"De aanvraag voor activatie van uw productiekoppeling is ontvangen. SURF neemt binnen drie werkdagen contact met u op.",newConnection:"Nieuwe koppeling met de testomgeving",existingConnection:"Testkoppeling bewerken",newConnectionProd:"Nieuwe koppeling met de productieomgeving",existingConnectionProd:"Productiekoppeling bewerken",copyConnection:"Kopieer info van andere koppeling",technical:"Technische gegevens",informationProfile:"Informatieprofiel",testIdP:"Test-IdP's",visibility:"Visibility",help:"Hulp nodig?",callSurf:"Plan een call met SURF",mailToSurf:"mailto:surf@info.nl",connectionName:"Naam koppeling",connectionPlaceholder:"e.g. {{application}}-{{environment}}",protocol:"Protocol",clientID:"Client ID",clientIDPlaceHolder:"",oidc10_rp:"OpenID Connect",saml20_sp:"SAML 2.0",grantType:"OAuth Grant type",grantTypes:"OAuth Grant types",authorization_code:"Authorization Code",refresh_token:"Refresh tokens",device_code:"Device Code",pkce:"PKCE",pkceTooltip:"PKCE (Proof Key for Code Exchange) enhances the security of the authorization code flow by preventing authorization code interception. It’s especially important for public clients like mobile or single-page apps",optional:"Optional",required:"Required (public client)",redirectUrl:"Redirect URL",redirectUrls:"Redirect URLs",addRedirectUrl:"+ Redirect URL",sslGrade:"SSL Grade (min. B)",sslGradeTooltip:"Ensure the SSL/TLS certificate meets or exceeds grade B",configuration:"Congifuratiegegevens",import:"Metadata importeren",entityID:"Entity ID",entityIDPlaceHolder:"https://entityID.com",acsLocation:"ACS location",acsLocations:"ACS location(s)",addACSLocation:"+ Add ASC location",save:"Opslaan",saveAndNext:"Opslaan en volgende",deleteConfirmation:"Are you sure you want to delete this connection?",metadata:{how:"Hoe wil je de metadata importeren?",url:"De URL van een metadata-bestand opgeven",file:"Een metadata-bestand uploaden",paste:"De metadata in een tekstveld plakken",urlMetaData:"URL metadata bestand",import:"Metadata importeren",chooseFile:"Choose file",doPaste:"Plak hier de metadata",parsed:"The metadata has successfully been imported",errorParsed:"Error in parsing the metadata"},flash:{created:"Created connection {{name}}",updated:"Updated connection {{name}}",deleted:"Deleted connection {{name}}",copied:"Copied connection data from {{name}}"},connections:{titleProd:"Koppelingen met de productieomgeving",titleTest:"Koppelingen met de testomgeving",name:"Name",created:"Added at",status:"Status",open:"Open",complete:"Completed",protocol:"Protocol",details:"Details",requestProductionStatus:"Vraag productiestatus aan"},informational:{disclaimer:"Verwerk alleen informatie die <strong>strikt noodzakelijk</strong> is voor het functioneren van je applicatie.",contentAppAlert:"Een content application ontvangt de volgend informatie",profiles:{anonymous:{name:"Anoniem",title:"Het meest privacyvriendelijk",info:"Deze bundel is speciaal bedoeld voor als je zeer privacy bewust wilt werken. Je ontvangt een transient NameID, dit betekent dat de gebruiker elke keer als hij bij de dienst inlogt een nieuw etcetera."},pseudonymized:{name:"Pseudonymized",title:"Privacy vriendelijk inclusief betrouwbaarheid",info:"Deze bundel is speciaal bedoeld voor toelichting. Je ontvangt een persistent NameID, dit betekent dat de toelichting gebruiker elke keer als hij bij de dienst inlogt etcetera."},personalized:{name:"Gepersonaliseerd",title:"Persoonlijke gegevens ter identificatie",info:""},uidOnly:{name:"UID only",title:"Voor instellingen die intern alle persoonsinformatie aanvullen",info:""}},attributes:"<strong>Je ontvangt de volgende attributen</strong> (we tonen voorbeeldwaarden)",additionalAttributes:"Ik heb additionele attributen nodig",availableAttributes:"De volgende attributen zijn mogelijk bij deze bundel",profileMotivation:"Motivatie voor de noodzaak van dit profiel",profileMotivationPlaceholder:"Beschrijf waarom je dit informatieprofiel nodig hebt",profileMotivationDisclaimer:"Deze tekst wordt getoond aan eindgebruikers die willen aansluiten bij je dienst",motivation:"Motivation",motivationPlaceholder:"Attribute is used to ..."},testIdPs:{info:"Kies met welke IdP’s je wilt testen of het federatief inloggen werkt.",subTitle:"Test-IdP’s van SURF",identityProviders:[{name:"SXS IdP",entityid:"http://mock-idp",description:"Een test-IdP met <a href='https://idp.diy.surfconext.nl/showusers.php' target='_blank'>fictieve gebruikersaccounts</a>. De metadata vind je <a href='https://idp.diy.surfconext.nl/saml2/idp/metadata.php' target='_blank'>hier</a>"},{name:"SXS Dummy",entityid:"https://idp.diy.surfconext.nl/saml2/idp/metadata.php",description:"Een test-IdP waarmee je zelf attributen-sets kunt simuleren. De metadata vind je <a href='https://mujina-idp.test.surfconext.nl/metadata' target='_blank'>hier</a>"}],institutionIdPs:"Test-IdP’s van instellingen",institutionIdPsInfo:"Je kunt ook testen met accounts en data van instellingen. <strong>Let wel op<strong/>: Je moet zelf contact opnemen voor de test-inloggegevens voor hun test-IdP’s.",placeholder:"Selecteer één of meerdere instellingen",institution:"test IdP or institution IdP"},visibilities:{info:"Kies hoe je wilt dat deze koppeling zichtbaar is in de SURF App catalogus",disclaimer:"<strong>Let op</strong>: je kan de zichtbaarheid altijd later nog aanpassen",options:{visible_to_all:"Visible for all users and institutions",visible_to_idp_only:"Only visible for users from institutions that are granted access to this connection",visible_to_none:"Not visible for any users or institutions (e.g. hidden in the catalogus)"},placeholder:"Selecteer één of meerdere instellingen",institution:"Institution IdP"},connectionOverview:{copy:"Kopieer de inloggegevens",disclaimer:"Het client secret wordt hieronder éénmaal weergegeven. Zorg ervoor dat je het nu kopieert, anders moet er een nieuw seceret aangevraagd worden.",test:"Gebruik de volgende inloggegevens om verbinding te maken met de productieomgeving. Volg de <a href='https://servicedesk.surf.nl/wiki/spaces/IAM/pages/128909810/SURFconext+for+Service+Providers' target='_blank'>testinstructies</a> om te kijken of alles werkt.",discovery:"OpenID Connect Discovery",clientID:"Client ID",secret:"Client secret",authentication:"Authenticatie",secretReset:"For security reasons your current secret can not be displayed.",secretResetLink:"Reset your secret when needed.",secretResetDisclaimer:"Let op. Regenerating the secret will break your current connection.",secretResetTitle:"Reset your secret",secretResetNew:"New secret",reset:"Reset my secret",resetContinue:"I’ve copied the secret. Continue"},appInfo:{title:"App informatie voor de SURF App catalogus",label:"App informatie",sections:{logo:"Logo en beschrijving",contact:"Contactgegevens",privacy:"Privacy & Security ",overview:"Overview"},logoUrl:"Logo",descriptionEn:"Beschrijving in het Engels",descriptionNl:"Beschrijving in het Nederlands",webSite:"Website",tags:"Tag je applicatie",tagPlaceholder:"Maximaal 3 tags",tagInfo:"In de appstore kunnen instellingen hierop filteren",tagsAvailable:{education:"Education service",business:"Business service",commerce:"Commercial service"},targetGroup:"Ga door naar de doelgroep"},logo:{name:"logo",add:"Add a logo",edit:"Change logo",imageToLarge:"Image is larger then 2MB.",confirm:"Set new logo image",header:"Crop your new logo image",disclaimers:["png, jpg, svg or gif","min 100 * 100 pixels","max 2MB."]},contacts:{label:"Contactgegevens",info:"Gebruik zoveel mogelijk functionele adressen in plaats van persoonlijke.",name:"name",administrative:"Administratief contact",administrativeTooltip:"Administratief contact Tooltip",administrativePlaceholder:"e.g. admin@{{name}}",emailOrWebsite:"Email-adres of website",technical:"Technisch contact (anders dan administratief)",technicalTooltip:"Technical contact Tooltip",technicalPlaceholder:"e.g. technical@{{name}}",support:"Support contact (eindgebruikers zien dit)",supportTooltip:"Support contact Tooltip",supportPlaceholder:"e.g. support@{{name}}"},privacy:{label:"Privacy & Security",info:"Please fill out the questions below. We will share the answers with institutions connected to SURFconext. This way the institutions interested in your service quickly have an idea of your efforts regarding privacy and security.",answerIsRequired:"Answer to this privacy question is required"},appOverview:{label:"De App informatie zijn compleet.",info:"Zo verschijnt je app in de SURF App catalogus."},contractSection:{title:"Contract",info:"Voor apps op SURF Access moet je een SURF-aansluitovereenkomst tekenen.",notSigned:"Er is nog geen overeenkomst getekend.",signed:"Er is een overeenkomst getekend.",sign:"Teken de overeenkomst"}},testing:{newConnection:"New connection",added:"Added at",status:"Status",protocol:"Protocol",details:"Details",zeroState:"Application <strong>{{name}}</strong> has no {{type}} connections yet.",production:"production",test:"test"},confirmationDialog:{title:"Confirm",error:"Error",subTitle:"This action requires a confirmation",subTitleError:"An error has occurred",confirm:"Confirm",ok:"Ok",cancel:"Cancel"},forms:{cancel:"Cancel",submit:"Submit",edit:"Edit",delete:"Delete",back:"Back",required:"{{name}} is required",requiredOne:"At least one {{name}} is required",error:"An unexpected error occurred",backToConnections:"Back to connections",backToOverview:"Back to overview",overview:"Naar overzicht",invalidURL:"{{name}} is not a valid URL",invalidEmailURL:"{{name}} is not a valid URL or valid email",moreLabel:"Show me more",lessLabel:"Show me less"},footer:{terms:"Terms of Use",termsLink:"https://support.surfconext.nl/terms-en",privacy:"Privacy policy",privacyLink:"https://support.surfconext.nl/privacy-en",surfLink:"https://surf.nl",select_locale:"Select your preferred language"}};var C0,u7;function Oa(){if(u7)return C0;u7=1;var t=Array.isArray;return C0=t,C0}var x0,c7;function oE(){if(c7)return x0;c7=1;var t=typeof $c=="object"&&$c&&$c.Object===Object&&$c;return x0=t,x0}var T0,f7;function Za(){if(f7)return T0;f7=1;var t=oE(),e=typeof self=="object"&&self&&self.Object===Object&&self,a=t||e||Function("return this")();return T0=a,T0}var O0,d7;function zu(){if(d7)return O0;d7=1;var t=Za(),e=t.Symbol;return O0=e,O0}var R0,h7;function DR(){if(h7)return R0;h7=1;var t=zu(),e=Object.prototype,a=e.hasOwnProperty,i=e.toString,l=t?t.toStringTag:void 0;function o(c){var h=a.call(c,l),f=c[l];try{c[l]=void 0;var m=!0}catch{}var v=i.call(c);return m&&(h?c[l]=f:delete c[l]),v}return R0=o,R0}var I0,m7;function NR(){if(m7)return I0;m7=1;var t=Object.prototype,e=t.toString;function a(i){return e.call(i)}return I0=a,I0}var M0,p7;function Vs(){if(p7)return M0;p7=1;var t=zu(),e=DR(),a=NR(),i="[object Null]",l="[object Undefined]",o=t?t.toStringTag:void 0;function c(h){return h==null?h===void 0?l:i:o&&o in Object(h)?e(h):a(h)}return M0=c,M0}var D0,g7;function jl(){if(g7)return D0;g7=1;function t(e){return e!=null&&typeof e=="object"}return D0=t,D0}var N0,v7;function Pu(){if(v7)return N0;v7=1;var t=Vs(),e=jl(),a="[object Symbol]";function i(l){return typeof l=="symbol"||e(l)&&t(l)==a}return N0=i,N0}var L0,y7;function t4(){if(y7)return L0;y7=1;var t=Oa(),e=Pu(),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function l(o,c){if(t(o))return!1;var h=typeof o;return h=="number"||h=="symbol"||h=="boolean"||o==null||e(o)?!0:i.test(o)||!a.test(o)||c!=null&&o in Object(c)}return L0=l,L0}var k0,b7;function yi(){if(b7)return k0;b7=1;function t(e){var a=typeof e;return e!=null&&(a=="object"||a=="function")}return k0=t,k0}var j0,S7;function n4(){if(S7)return j0;S7=1;var t=Vs(),e=yi(),a="[object AsyncFunction]",i="[object Function]",l="[object GeneratorFunction]",o="[object Proxy]";function c(h){if(!e(h))return!1;var f=t(h);return f==i||f==l||f==a||f==o}return j0=c,j0}var _0,E7;function LR(){if(E7)return _0;E7=1;var t=Za(),e=t["__core-js_shared__"];return _0=e,_0}var U0,A7;function kR(){if(A7)return U0;A7=1;var t=LR(),e=function(){var i=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function a(i){return!!e&&e in i}return U0=a,U0}var q0,w7;function uE(){if(w7)return q0;w7=1;var t=Function.prototype,e=t.toString;function a(i){if(i!=null){try{return e.call(i)}catch{}try{return i+""}catch{}}return""}return q0=a,q0}var z0,C7;function jR(){if(C7)return z0;C7=1;var t=n4(),e=kR(),a=yi(),i=uE(),l=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,c=Function.prototype,h=Object.prototype,f=c.toString,m=h.hasOwnProperty,v=RegExp("^"+f.call(m).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(S){if(!a(S)||e(S))return!1;var A=t(S)?v:o;return A.test(i(S))}return z0=b,z0}var P0,x7;function _R(){if(x7)return P0;x7=1;function t(e,a){return e==null?void 0:e[a]}return P0=t,P0}var H0,T7;function _l(){if(T7)return H0;T7=1;var t=jR(),e=_R();function a(i,l){var o=e(i,l);return t(o)?o:void 0}return H0=a,H0}var B0,O7;function $f(){if(O7)return B0;O7=1;var t=_l(),e=t(Object,"create");return B0=e,B0}var F0,R7;function UR(){if(R7)return F0;R7=1;var t=$f();function e(){this.__data__=t?t(null):{},this.size=0}return F0=e,F0}var V0,I7;function qR(){if(I7)return V0;I7=1;function t(e){var a=this.has(e)&&delete this.__data__[e];return this.size-=a?1:0,a}return V0=t,V0}var G0,M7;function zR(){if(M7)return G0;M7=1;var t=$f(),e="__lodash_hash_undefined__",a=Object.prototype,i=a.hasOwnProperty;function l(o){var c=this.__data__;if(t){var h=c[o];return h===e?void 0:h}return i.call(c,o)?c[o]:void 0}return G0=l,G0}var Z0,D7;function PR(){if(D7)return Z0;D7=1;var t=$f(),e=Object.prototype,a=e.hasOwnProperty;function i(l){var o=this.__data__;return t?o[l]!==void 0:a.call(o,l)}return Z0=i,Z0}var W0,N7;function HR(){if(N7)return W0;N7=1;var t=$f(),e="__lodash_hash_undefined__";function a(i,l){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=t&&l===void 0?e:l,this}return W0=a,W0}var Y0,L7;function BR(){if(L7)return Y0;L7=1;var t=UR(),e=qR(),a=zR(),i=PR(),l=HR();function o(c){var h=-1,f=c==null?0:c.length;for(this.clear();++h<f;){var m=c[h];this.set(m[0],m[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=a,o.prototype.has=i,o.prototype.set=l,Y0=o,Y0}var Q0,k7;function FR(){if(k7)return Q0;k7=1;function t(){this.__data__=[],this.size=0}return Q0=t,Q0}var K0,j7;function Hu(){if(j7)return K0;j7=1;function t(e,a){return e===a||e!==e&&a!==a}return K0=t,K0}var J0,_7;function e1(){if(_7)return J0;_7=1;var t=Hu();function e(a,i){for(var l=a.length;l--;)if(t(a[l][0],i))return l;return-1}return J0=e,J0}var X0,U7;function VR(){if(U7)return X0;U7=1;var t=e1(),e=Array.prototype,a=e.splice;function i(l){var o=this.__data__,c=t(o,l);if(c<0)return!1;var h=o.length-1;return c==h?o.pop():a.call(o,c,1),--this.size,!0}return X0=i,X0}var $0,q7;function GR(){if(q7)return $0;q7=1;var t=e1();function e(a){var i=this.__data__,l=t(i,a);return l<0?void 0:i[l][1]}return $0=e,$0}var e2,z7;function ZR(){if(z7)return e2;z7=1;var t=e1();function e(a){return t(this.__data__,a)>-1}return e2=e,e2}var t2,P7;function WR(){if(P7)return t2;P7=1;var t=e1();function e(a,i){var l=this.__data__,o=t(l,a);return o<0?(++this.size,l.push([a,i])):l[o][1]=i,this}return t2=e,t2}var n2,H7;function t1(){if(H7)return n2;H7=1;var t=FR(),e=VR(),a=GR(),i=ZR(),l=WR();function o(c){var h=-1,f=c==null?0:c.length;for(this.clear();++h<f;){var m=c[h];this.set(m[0],m[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=a,o.prototype.has=i,o.prototype.set=l,n2=o,n2}var r2,B7;function r4(){if(B7)return r2;B7=1;var t=_l(),e=Za(),a=t(e,"Map");return r2=a,r2}var a2,F7;function YR(){if(F7)return a2;F7=1;var t=BR(),e=t1(),a=r4();function i(){this.size=0,this.__data__={hash:new t,map:new(a||e),string:new t}}return a2=i,a2}var i2,V7;function QR(){if(V7)return i2;V7=1;function t(e){var a=typeof e;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?e!=="__proto__":e===null}return i2=t,i2}var l2,G7;function n1(){if(G7)return l2;G7=1;var t=QR();function e(a,i){var l=a.__data__;return t(i)?l[typeof i=="string"?"string":"hash"]:l.map}return l2=e,l2}var s2,Z7;function KR(){if(Z7)return s2;Z7=1;var t=n1();function e(a){var i=t(this,a).delete(a);return this.size-=i?1:0,i}return s2=e,s2}var o2,W7;function JR(){if(W7)return o2;W7=1;var t=n1();function e(a){return t(this,a).get(a)}return o2=e,o2}var u2,Y7;function XR(){if(Y7)return u2;Y7=1;var t=n1();function e(a){return t(this,a).has(a)}return u2=e,u2}var c2,Q7;function $R(){if(Q7)return c2;Q7=1;var t=n1();function e(a,i){var l=t(this,a),o=l.size;return l.set(a,i),this.size+=l.size==o?0:1,this}return c2=e,c2}var f2,K7;function a4(){if(K7)return f2;K7=1;var t=YR(),e=KR(),a=JR(),i=XR(),l=$R();function o(c){var h=-1,f=c==null?0:c.length;for(this.clear();++h<f;){var m=c[h];this.set(m[0],m[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=a,o.prototype.has=i,o.prototype.set=l,f2=o,f2}var d2,J7;function eI(){if(J7)return d2;J7=1;var t=a4(),e="Expected a function";function a(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new TypeError(e);var o=function(){var c=arguments,h=l?l.apply(this,c):c[0],f=o.cache;if(f.has(h))return f.get(h);var m=i.apply(this,c);return o.cache=f.set(h,m)||f,m};return o.cache=new(a.Cache||t),o}return a.Cache=t,d2=a,d2}var h2,X7;function tI(){if(X7)return h2;X7=1;var t=eI(),e=500;function a(i){var l=t(i,function(c){return o.size===e&&o.clear(),c}),o=l.cache;return l}return h2=a,h2}var m2,$7;function nI(){if($7)return m2;$7=1;var t=tI(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=t(function(l){var o=[];return l.charCodeAt(0)===46&&o.push(""),l.replace(e,function(c,h,f,m){o.push(f?m.replace(a,"$1"):h||c)}),o});return m2=i,m2}var p2,e9;function cE(){if(e9)return p2;e9=1;function t(e,a){for(var i=-1,l=e==null?0:e.length,o=Array(l);++i<l;)o[i]=a(e[i],i,e);return o}return p2=t,p2}var g2,t9;function rI(){if(t9)return g2;t9=1;var t=zu(),e=cE(),a=Oa(),i=Pu(),l=t?t.prototype:void 0,o=l?l.toString:void 0;function c(h){if(typeof h=="string")return h;if(a(h))return e(h,c)+"";if(i(h))return o?o.call(h):"";var f=h+"";return f=="0"&&1/h==-1/0?"-0":f}return g2=c,g2}var v2,n9;function Gs(){if(n9)return v2;n9=1;var t=rI();function e(a){return a==null?"":t(a)}return v2=e,v2}var y2,r9;function fE(){if(r9)return y2;r9=1;var t=Oa(),e=t4(),a=nI(),i=Gs();function l(o,c){return t(o)?o:e(o,c)?[o]:a(i(o))}return y2=l,y2}var b2,a9;function r1(){if(a9)return b2;a9=1;var t=Pu();function e(a){if(typeof a=="string"||t(a))return a;var i=a+"";return i=="0"&&1/a==-1/0?"-0":i}return b2=e,b2}var S2,i9;function i4(){if(i9)return S2;i9=1;var t=fE(),e=r1();function a(i,l){l=t(l,i);for(var o=0,c=l.length;i!=null&&o<c;)i=i[e(l[o++])];return o&&o==c?i:void 0}return S2=a,S2}var E2,l9;function dE(){if(l9)return E2;l9=1;var t=i4();function e(a,i,l){var o=a==null?void 0:t(a,i);return o===void 0?l:o}return E2=e,E2}var aI=dE();const iI=aa(aI);var A2,s9;function lI(){if(s9)return A2;s9=1;var t=Object.prototype,e=t.hasOwnProperty;function a(i,l){return i!=null&&e.call(i,l)}return A2=a,A2}var w2,o9;function sI(){if(o9)return w2;o9=1;var t=Vs(),e=jl(),a="[object Arguments]";function i(l){return e(l)&&t(l)==a}return w2=i,w2}var C2,u9;function a1(){if(u9)return C2;u9=1;var t=sI(),e=jl(),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(c){return e(c)&&i.call(c,"callee")&&!l.call(c,"callee")};return C2=o,C2}var x2,c9;function l4(){if(c9)return x2;c9=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function a(i,l){var o=typeof i;return l=l??t,!!l&&(o=="number"||o!="symbol"&&e.test(i))&&i>-1&&i%1==0&&i<l}return x2=a,x2}var T2,f9;function s4(){if(f9)return T2;f9=1;var t=9007199254740991;function e(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=t}return T2=e,T2}var O2,d9;function hE(){if(d9)return O2;d9=1;var t=fE(),e=a1(),a=Oa(),i=l4(),l=s4(),o=r1();function c(h,f,m){f=t(f,h);for(var v=-1,b=f.length,S=!1;++v<b;){var A=o(f[v]);if(!(S=h!=null&&m(h,A)))break;h=h[A]}return S||++v!=b?S:(b=h==null?0:h.length,!!b&&l(b)&&i(A,b)&&(a(h)||e(h)))}return O2=c,O2}var R2,h9;function oI(){if(h9)return R2;h9=1;var t=lI(),e=hE();function a(i,l){return i!=null&&e(i,l,t)}return R2=a,R2}var uI=oI();const cI=aa(uI);var I2,m9;function fI(){if(m9)return I2;m9=1;var t=t1();function e(){this.__data__=new t,this.size=0}return I2=e,I2}var M2,p9;function dI(){if(p9)return M2;p9=1;function t(e){var a=this.__data__,i=a.delete(e);return this.size=a.size,i}return M2=t,M2}var D2,g9;function hI(){if(g9)return D2;g9=1;function t(e){return this.__data__.get(e)}return D2=t,D2}var N2,v9;function mI(){if(v9)return N2;v9=1;function t(e){return this.__data__.has(e)}return N2=t,N2}var L2,y9;function pI(){if(y9)return L2;y9=1;var t=t1(),e=r4(),a=a4(),i=200;function l(o,c){var h=this.__data__;if(h instanceof t){var f=h.__data__;if(!e||f.length<i-1)return f.push([o,c]),this.size=++h.size,this;h=this.__data__=new a(f)}return h.set(o,c),this.size=h.size,this}return L2=l,L2}var k2,b9;function o4(){if(b9)return k2;b9=1;var t=t1(),e=fI(),a=dI(),i=hI(),l=mI(),o=pI();function c(h){var f=this.__data__=new t(h);this.size=f.size}return c.prototype.clear=e,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=l,c.prototype.set=o,k2=c,k2}var j2,S9;function mE(){if(S9)return j2;S9=1;var t=_l(),e=function(){try{var a=t(Object,"defineProperty");return a({},"",{}),a}catch{}}();return j2=e,j2}var _2,E9;function u4(){if(E9)return _2;E9=1;var t=mE();function e(a,i,l){i=="__proto__"&&t?t(a,i,{configurable:!0,enumerable:!0,value:l,writable:!0}):a[i]=l}return _2=e,_2}var U2,A9;function pE(){if(A9)return U2;A9=1;var t=u4(),e=Hu();function a(i,l,o){(o!==void 0&&!e(i[l],o)||o===void 0&&!(l in i))&&t(i,l,o)}return U2=a,U2}var q2,w9;function gI(){if(w9)return q2;w9=1;function t(e){return function(a,i,l){for(var o=-1,c=Object(a),h=l(a),f=h.length;f--;){var m=h[e?f:++o];if(i(c[m],m,c)===!1)break}return a}}return q2=t,q2}var z2,C9;function gE(){if(C9)return z2;C9=1;var t=gI(),e=t();return z2=e,z2}var du={exports:{}};du.exports;var x9;function vI(){return x9||(x9=1,function(t,e){var a=Za(),i=e&&!e.nodeType&&e,l=i&&!0&&t&&!t.nodeType&&t,o=l&&l.exports===i,c=o?a.Buffer:void 0,h=c?c.allocUnsafe:void 0;function f(m,v){if(v)return m.slice();var b=m.length,S=h?h(b):new m.constructor(b);return m.copy(S),S}t.exports=f}(du,du.exports)),du.exports}var P2,T9;function vE(){if(T9)return P2;T9=1;var t=Za(),e=t.Uint8Array;return P2=e,P2}var H2,O9;function yI(){if(O9)return H2;O9=1;var t=vE();function e(a){var i=new a.constructor(a.byteLength);return new t(i).set(new t(a)),i}return H2=e,H2}var B2,R9;function bI(){if(R9)return B2;R9=1;var t=yI();function e(a,i){var l=i?t(a.buffer):a.buffer;return new a.constructor(l,a.byteOffset,a.length)}return B2=e,B2}var F2,I9;function SI(){if(I9)return F2;I9=1;function t(e,a){var i=-1,l=e.length;for(a||(a=Array(l));++i<l;)a[i]=e[i];return a}return F2=t,F2}var V2,M9;function EI(){if(M9)return V2;M9=1;var t=yi(),e=Object.create,a=function(){function i(){}return function(l){if(!t(l))return{};if(e)return e(l);i.prototype=l;var o=new i;return i.prototype=void 0,o}}();return V2=a,V2}var G2,D9;function yE(){if(D9)return G2;D9=1;function t(e,a){return function(i){return e(a(i))}}return G2=t,G2}var Z2,N9;function bE(){if(N9)return Z2;N9=1;var t=yE(),e=t(Object.getPrototypeOf,Object);return Z2=e,Z2}var W2,L9;function c4(){if(L9)return W2;L9=1;var t=Object.prototype;function e(a){var i=a&&a.constructor,l=typeof i=="function"&&i.prototype||t;return a===l}return W2=e,W2}var Y2,k9;function AI(){if(k9)return Y2;k9=1;var t=EI(),e=bE(),a=c4();function i(l){return typeof l.constructor=="function"&&!a(l)?t(e(l)):{}}return Y2=i,Y2}var Q2,j9;function Zs(){if(j9)return Q2;j9=1;var t=n4(),e=s4();function a(i){return i!=null&&e(i.length)&&!t(i)}return Q2=a,Q2}var K2,_9;function wI(){if(_9)return K2;_9=1;var t=Zs(),e=jl();function a(i){return e(i)&&t(i)}return K2=a,K2}var hu={exports:{}},J2,U9;function CI(){if(U9)return J2;U9=1;function t(){return!1}return J2=t,J2}hu.exports;var q9;function f4(){return q9||(q9=1,function(t,e){var a=Za(),i=CI(),l=e&&!e.nodeType&&e,o=l&&!0&&t&&!t.nodeType&&t,c=o&&o.exports===l,h=c?a.Buffer:void 0,f=h?h.isBuffer:void 0,m=f||i;t.exports=m}(hu,hu.exports)),hu.exports}var X2,z9;function xI(){if(z9)return X2;z9=1;var t=Vs(),e=bE(),a=jl(),i="[object Object]",l=Function.prototype,o=Object.prototype,c=l.toString,h=o.hasOwnProperty,f=c.call(Object);function m(v){if(!a(v)||t(v)!=i)return!1;var b=e(v);if(b===null)return!0;var S=h.call(b,"constructor")&&b.constructor;return typeof S=="function"&&S instanceof S&&c.call(S)==f}return X2=m,X2}var $2,P9;function TI(){if(P9)return $2;P9=1;var t=Vs(),e=s4(),a=jl(),i="[object Arguments]",l="[object Array]",o="[object Boolean]",c="[object Date]",h="[object Error]",f="[object Function]",m="[object Map]",v="[object Number]",b="[object Object]",S="[object RegExp]",A="[object Set]",w="[object String]",R="[object WeakMap]",k="[object ArrayBuffer]",D="[object DataView]",I="[object Float32Array]",B="[object Float64Array]",Y="[object Int8Array]",j="[object Int16Array]",F="[object Int32Array]",Z="[object Uint8Array]",E="[object Uint8ClampedArray]",x="[object Uint16Array]",O="[object Uint32Array]",z={};z[I]=z[B]=z[Y]=z[j]=z[F]=z[Z]=z[E]=z[x]=z[O]=!0,z[i]=z[l]=z[k]=z[o]=z[D]=z[c]=z[h]=z[f]=z[m]=z[v]=z[b]=z[S]=z[A]=z[w]=z[R]=!1;function _(q){return a(q)&&e(q.length)&&!!z[t(q)]}return $2=_,$2}var eh,H9;function SE(){if(H9)return eh;H9=1;function t(e){return function(a){return e(a)}}return eh=t,eh}var mu={exports:{}};mu.exports;var B9;function OI(){return B9||(B9=1,function(t,e){var a=oE(),i=e&&!e.nodeType&&e,l=i&&!0&&t&&!t.nodeType&&t,o=l&&l.exports===i,c=o&&a.process,h=function(){try{var f=l&&l.require&&l.require("util").types;return f||c&&c.binding&&c.binding("util")}catch{}}();t.exports=h}(mu,mu.exports)),mu.exports}var th,F9;function d4(){if(F9)return th;F9=1;var t=TI(),e=SE(),a=OI(),i=a&&a.isTypedArray,l=i?e(i):t;return th=l,th}var nh,V9;function EE(){if(V9)return nh;V9=1;function t(e,a){if(!(a==="constructor"&&typeof e[a]=="function")&&a!="__proto__")return e[a]}return nh=t,nh}var rh,G9;function AE(){if(G9)return rh;G9=1;var t=u4(),e=Hu(),a=Object.prototype,i=a.hasOwnProperty;function l(o,c,h){var f=o[c];(!(i.call(o,c)&&e(f,h))||h===void 0&&!(c in o))&&t(o,c,h)}return rh=l,rh}var ah,Z9;function RI(){if(Z9)return ah;Z9=1;var t=AE(),e=u4();function a(i,l,o,c){var h=!o;o||(o={});for(var f=-1,m=l.length;++f<m;){var v=l[f],b=c?c(o[v],i[v],v,o,i):void 0;b===void 0&&(b=i[v]),h?e(o,v,b):t(o,v,b)}return o}return ah=a,ah}var ih,W9;function II(){if(W9)return ih;W9=1;function t(e,a){for(var i=-1,l=Array(e);++i<e;)l[i]=a(i);return l}return ih=t,ih}var lh,Y9;function wE(){if(Y9)return lh;Y9=1;var t=II(),e=a1(),a=Oa(),i=f4(),l=l4(),o=d4(),c=Object.prototype,h=c.hasOwnProperty;function f(m,v){var b=a(m),S=!b&&e(m),A=!b&&!S&&i(m),w=!b&&!S&&!A&&o(m),R=b||S||A||w,k=R?t(m.length,String):[],D=k.length;for(var I in m)(v||h.call(m,I))&&!(R&&(I=="length"||A&&(I=="offset"||I=="parent")||w&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||l(I,D)))&&k.push(I);return k}return lh=f,lh}var sh,Q9;function MI(){if(Q9)return sh;Q9=1;function t(e){var a=[];if(e!=null)for(var i in Object(e))a.push(i);return a}return sh=t,sh}var oh,K9;function DI(){if(K9)return oh;K9=1;var t=yi(),e=c4(),a=MI(),i=Object.prototype,l=i.hasOwnProperty;function o(c){if(!t(c))return a(c);var h=e(c),f=[];for(var m in c)m=="constructor"&&(h||!l.call(c,m))||f.push(m);return f}return oh=o,oh}var uh,J9;function CE(){if(J9)return uh;J9=1;var t=wE(),e=DI(),a=Zs();function i(l){return a(l)?t(l,!0):e(l)}return uh=i,uh}var ch,X9;function NI(){if(X9)return ch;X9=1;var t=RI(),e=CE();function a(i){return t(i,e(i))}return ch=a,ch}var fh,$9;function LI(){if($9)return fh;$9=1;var t=pE(),e=vI(),a=bI(),i=SI(),l=AI(),o=a1(),c=Oa(),h=wI(),f=f4(),m=n4(),v=yi(),b=xI(),S=d4(),A=EE(),w=NI();function R(k,D,I,B,Y,j,F){var Z=A(k,I),E=A(D,I),x=F.get(E);if(x){t(k,I,x);return}var O=j?j(Z,E,I+"",k,D,F):void 0,z=O===void 0;if(z){var _=c(E),q=!_&&f(E),V=!_&&!q&&S(E);O=E,_||q||V?c(Z)?O=Z:h(Z)?O=i(Z):q?(z=!1,O=e(E,!0)):V?(z=!1,O=a(E,!0)):O=[]:b(E)||o(E)?(O=Z,o(Z)?O=w(Z):(!v(Z)||m(Z))&&(O=l(E))):z=!1}z&&(F.set(E,O),Y(O,E,B,j,F),F.delete(E)),t(k,I,O)}return fh=R,fh}var dh,e8;function kI(){if(e8)return dh;e8=1;var t=o4(),e=pE(),a=gE(),i=LI(),l=yi(),o=CE(),c=EE();function h(f,m,v,b,S){f!==m&&a(m,function(A,w){if(S||(S=new t),l(A))i(f,m,w,v,h,b,S);else{var R=b?b(c(f,w),A,w+"",f,m,S):void 0;R===void 0&&(R=A),e(f,w,R)}},o)}return dh=h,dh}var hh,t8;function i1(){if(t8)return hh;t8=1;function t(e){return e}return hh=t,hh}var mh,n8;function jI(){if(n8)return mh;n8=1;function t(e,a,i){switch(i.length){case 0:return e.call(a);case 1:return e.call(a,i[0]);case 2:return e.call(a,i[0],i[1]);case 3:return e.call(a,i[0],i[1],i[2])}return e.apply(a,i)}return mh=t,mh}var ph,r8;function _I(){if(r8)return ph;r8=1;var t=jI(),e=Math.max;function a(i,l,o){return l=e(l===void 0?i.length-1:l,0),function(){for(var c=arguments,h=-1,f=e(c.length-l,0),m=Array(f);++h<f;)m[h]=c[l+h];h=-1;for(var v=Array(l+1);++h<l;)v[h]=c[h];return v[l]=o(m),t(i,this,v)}}return ph=a,ph}var gh,a8;function UI(){if(a8)return gh;a8=1;function t(e){return function(){return e}}return gh=t,gh}var vh,i8;function qI(){if(i8)return vh;i8=1;var t=UI(),e=mE(),a=i1(),i=e?function(l,o){return e(l,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:a;return vh=i,vh}var yh,l8;function zI(){if(l8)return yh;l8=1;var t=800,e=16,a=Date.now;function i(l){var o=0,c=0;return function(){var h=a(),f=e-(h-c);if(c=h,f>0){if(++o>=t)return arguments[0]}else o=0;return l.apply(void 0,arguments)}}return yh=i,yh}var bh,s8;function PI(){if(s8)return bh;s8=1;var t=qI(),e=zI(),a=e(t);return bh=a,bh}var Sh,o8;function xE(){if(o8)return Sh;o8=1;var t=i1(),e=_I(),a=PI();function i(l,o){return a(e(l,o,t),l+"")}return Sh=i,Sh}var Eh,u8;function l1(){if(u8)return Eh;u8=1;var t=Hu(),e=Zs(),a=l4(),i=yi();function l(o,c,h){if(!i(h))return!1;var f=typeof c;return(f=="number"?e(h)&&a(c,h.length):f=="string"&&c in h)?t(h[c],o):!1}return Eh=l,Eh}var Ah,c8;function HI(){if(c8)return Ah;c8=1;var t=xE(),e=l1();function a(i){return t(function(l,o){var c=-1,h=o.length,f=h>1?o[h-1]:void 0,m=h>2?o[2]:void 0;for(f=i.length>3&&typeof f=="function"?(h--,f):void 0,m&&e(o[0],o[1],m)&&(f=h<3?void 0:f,h=1),l=Object(l);++c<h;){var v=o[c];v&&i(l,v,c,f)}return l})}return Ah=a,Ah}var wh,f8;function BI(){if(f8)return wh;f8=1;var t=kI(),e=HI(),a=e(function(i,l,o){t(i,l,o)});return wh=a,wh}var FI=BI();const VI=aa(FI);var Ch,d8;function GI(){if(d8)return Ch;d8=1;var t="__lodash_hash_undefined__";function e(a){return this.__data__.set(a,t),this}return Ch=e,Ch}var xh,h8;function ZI(){if(h8)return xh;h8=1;function t(e){return this.__data__.has(e)}return xh=t,xh}var Th,m8;function TE(){if(m8)return Th;m8=1;var t=a4(),e=GI(),a=ZI();function i(l){var o=-1,c=l==null?0:l.length;for(this.__data__=new t;++o<c;)this.add(l[o])}return i.prototype.add=i.prototype.push=e,i.prototype.has=a,Th=i,Th}var Oh,p8;function WI(){if(p8)return Oh;p8=1;function t(e,a,i,l){for(var o=e.length,c=i+(l?1:-1);l?c--:++c<o;)if(a(e[c],c,e))return c;return-1}return Oh=t,Oh}var Rh,g8;function YI(){if(g8)return Rh;g8=1;function t(e){return e!==e}return Rh=t,Rh}var Ih,v8;function QI(){if(v8)return Ih;v8=1;function t(e,a,i){for(var l=i-1,o=e.length;++l<o;)if(e[l]===a)return l;return-1}return Ih=t,Ih}var Mh,y8;function KI(){if(y8)return Mh;y8=1;var t=WI(),e=YI(),a=QI();function i(l,o,c){return o===o?a(l,o,c):t(l,e,c)}return Mh=i,Mh}var Dh,b8;function JI(){if(b8)return Dh;b8=1;var t=KI();function e(a,i){var l=a==null?0:a.length;return!!l&&t(a,i,0)>-1}return Dh=e,Dh}var Nh,S8;function XI(){if(S8)return Nh;S8=1;function t(e,a,i){for(var l=-1,o=e==null?0:e.length;++l<o;)if(i(a,e[l]))return!0;return!1}return Nh=t,Nh}var Lh,E8;function OE(){if(E8)return Lh;E8=1;function t(e,a){return e.has(a)}return Lh=t,Lh}var kh,A8;function RE(){if(A8)return kh;A8=1;var t=_l(),e=Za(),a=t(e,"Set");return kh=a,kh}var jh,w8;function $I(){if(w8)return jh;w8=1;function t(){}return jh=t,jh}var _h,C8;function h4(){if(C8)return _h;C8=1;function t(e){var a=-1,i=Array(e.size);return e.forEach(function(l){i[++a]=l}),i}return _h=t,_h}var Uh,x8;function eM(){if(x8)return Uh;x8=1;var t=RE(),e=$I(),a=h4(),i=1/0,l=t&&1/a(new t([,-0]))[1]==i?function(o){return new t(o)}:e;return Uh=l,Uh}var qh,T8;function tM(){if(T8)return qh;T8=1;var t=TE(),e=JI(),a=XI(),i=OE(),l=eM(),o=h4(),c=200;function h(f,m,v){var b=-1,S=e,A=f.length,w=!0,R=[],k=R;if(v)w=!1,S=a;else if(A>=c){var D=m?null:l(f);if(D)return o(D);w=!1,S=i,k=new t}else k=m?[]:R;e:for(;++b<A;){var I=f[b],B=m?m(I):I;if(I=v||I!==0?I:0,w&&B===B){for(var Y=k.length;Y--;)if(k[Y]===B)continue e;m&&k.push(B),R.push(I)}else S(k,B,v)||(k!==R&&k.push(B),R.push(I))}return R}return qh=h,qh}var zh,O8;function nM(){if(O8)return zh;O8=1;var t=tM();function e(a){return a&&a.length?t(a):[]}return zh=e,zh}var rM=nM();const aM=aa(rM),iM=(t,e)=>{const a=[],i=[];return a.push(e),e||a.push(t.locale),t.enableFallback&&a.push(t.defaultLocale),a.filter(Boolean).map(l=>l.toString()).forEach(function(l){if(i.includes(l)||i.push(l),!t.enableFallback)return;const o=l.split("-");o.length===3&&i.push(`${o[0]}-${o[1]}`),i.push(o[0])}),aM(i)};class lM{constructor(e){this.i18n=e,this.registry={},this.register("default",iM)}register(e,a){if(typeof a!="function"){const i=a;a=()=>i}this.registry[e]=a}get(e){let a=this.registry[e]||this.registry[this.i18n.locale]||this.registry.default;return typeof a=="function"&&(a=a(this.i18n,e)),a instanceof Array||(a=[a]),a}}const sM=(t,e)=>{const a=String(t).split("."),i=!a[1],l=Number(a[0])==t,o=l&&a[0].slice(-1),c=l&&a[0].slice(-2);return e?o==1&&c!=11?"one":o==2&&c!=12?"two":o==3&&c!=13?"few":"other":t==1&&i?"one":"other"};function oM({pluralizer:t,includeZero:e=!0,ordinal:a=!1}){return function(i,l){return[e&&l===0?"zero":"",t(l,a)].filter(Boolean)}}const uM=oM({pluralizer:sM,includeZero:!0});class cM{constructor(e){this.i18n=e,this.registry={},this.register("default",uM)}register(e,a){this.registry[e]=a}get(e){return this.registry[e]||this.registry[this.i18n.locale]||this.registry.default}}var Ph,R8;function fM(){if(R8)return Ph;R8=1;function t(e,a,i){var l=-1,o=e.length;a<0&&(a=-a>o?0:o+a),i=i>o?o:i,i<0&&(i+=o),o=a>i?0:i-a>>>0,a>>>=0;for(var c=Array(o);++l<o;)c[l]=e[l+a];return c}return Ph=t,Ph}var Hh,I8;function dM(){if(I8)return Hh;I8=1;var t=fM();function e(a,i,l){var o=a.length;return l=l===void 0?o:l,!i&&l>=o?a:t(a,i,l)}return Hh=e,Hh}var Bh,M8;function IE(){if(M8)return Bh;M8=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",l=e+a+i,o="\\ufe0e\\ufe0f",c="\\u200d",h=RegExp("["+c+t+l+o+"]");function f(m){return h.test(m)}return Bh=f,Bh}var Fh,D8;function hM(){if(D8)return Fh;D8=1;function t(e){return e.split("")}return Fh=t,Fh}var Vh,N8;function mM(){if(N8)return Vh;N8=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",l=e+a+i,o="\\ufe0e\\ufe0f",c="["+t+"]",h="["+l+"]",f="\\ud83c[\\udffb-\\udfff]",m="(?:"+h+"|"+f+")",v="[^"+t+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",A="\\u200d",w=m+"?",R="["+o+"]?",k="(?:"+A+"(?:"+[v,b,S].join("|")+")"+R+w+")*",D=R+w+k,I="(?:"+[v+h+"?",h,b,S,c].join("|")+")",B=RegExp(f+"(?="+f+")|"+I+D,"g");function Y(j){return j.match(B)||[]}return Vh=Y,Vh}var Gh,L8;function pM(){if(L8)return Gh;L8=1;var t=hM(),e=IE(),a=mM();function i(l){return e(l)?a(l):t(l)}return Gh=i,Gh}var Zh,k8;function gM(){if(k8)return Zh;k8=1;var t=dM(),e=IE(),a=pM(),i=Gs();function l(o){return function(c){c=i(c);var h=e(c)?a(c):void 0,f=h?h[0]:c.charAt(0),m=h?t(h,1).join(""):c.slice(1);return f[o]()+m}}return Zh=l,Zh}var Wh,j8;function vM(){if(j8)return Wh;j8=1;var t=gM(),e=t("toUpperCase");return Wh=e,Wh}var Yh,_8;function yM(){if(_8)return Yh;_8=1;var t=Gs(),e=vM();function a(i){return e(t(i).toLowerCase())}return Yh=a,Yh}var Qh,U8;function bM(){if(U8)return Qh;U8=1;function t(e,a,i,l){var o=-1,c=e==null?0:e.length;for(l&&c&&(i=e[++o]);++o<c;)i=a(i,e[o],o,e);return i}return Qh=t,Qh}var Kh,q8;function SM(){if(q8)return Kh;q8=1;function t(e){return function(a){return e==null?void 0:e[a]}}return Kh=t,Kh}var Jh,z8;function EM(){if(z8)return Jh;z8=1;var t=SM(),e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},a=t(e);return Jh=a,Jh}var Xh,P8;function AM(){if(P8)return Xh;P8=1;var t=EM(),e=Gs(),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",c=i+l+o,h="["+c+"]",f=RegExp(h,"g");function m(v){return v=e(v),v&&v.replace(a,t).replace(f,"")}return Xh=m,Xh}var $h,H8;function wM(){if(H8)return $h;H8=1;var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(a){return a.match(t)||[]}return $h=e,$h}var em,B8;function CM(){if(B8)return em;B8=1;var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(a){return t.test(a)}return em=e,em}var tm,F8;function xM(){if(F8)return tm;F8=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",l=e+a+i,o="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",h="\\xac\\xb1\\xd7\\xf7",f="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",m="\\u2000-\\u206f",v=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",b="A-Z\\xc0-\\xd6\\xd8-\\xde",S="\\ufe0e\\ufe0f",A=h+f+m+v,w="['’]",R="["+A+"]",k="["+l+"]",D="\\d+",I="["+o+"]",B="["+c+"]",Y="[^"+t+A+D+o+c+b+"]",j="\\ud83c[\\udffb-\\udfff]",F="(?:"+k+"|"+j+")",Z="[^"+t+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",O="["+b+"]",z="\\u200d",_="(?:"+B+"|"+Y+")",q="(?:"+O+"|"+Y+")",V="(?:"+w+"(?:d|ll|m|re|s|t|ve))?",U="(?:"+w+"(?:D|LL|M|RE|S|T|VE))?",M=F+"?",P="["+S+"]?",H="(?:"+z+"(?:"+[Z,E,x].join("|")+")"+P+M+")*",$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",T="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",G=P+M+H,ee="(?:"+[I,E,x].join("|")+")"+G,ne=RegExp([O+"?"+B+"+"+V+"(?="+[R,O,"$"].join("|")+")",q+"+"+U+"(?="+[R,O+_,"$"].join("|")+")",O+"?"+_+"+"+V,O+"+"+U,T,$,D,ee].join("|"),"g");function ge(fe){return fe.match(ne)||[]}return tm=ge,tm}var nm,V8;function TM(){if(V8)return nm;V8=1;var t=wM(),e=CM(),a=Gs(),i=xM();function l(o,c,h){return o=a(o),c=h?void 0:c,c===void 0?e(o)?i(o):t(o):o.match(c)||[]}return nm=l,nm}var rm,G8;function OM(){if(G8)return rm;G8=1;var t=bM(),e=AM(),a=TM(),i="['’]",l=RegExp(i,"g");function o(c){return function(h){return t(a(e(h).replace(l,"")),c,"")}}return rm=o,rm}var am,Z8;function RM(){if(Z8)return am;Z8=1;var t=yM(),e=OM(),a=e(function(i,l,o){return l=l.toLowerCase(),i+(o?t(l):l)});return am=a,am}var IM=RM();const MM=aa(IM);function fa(t){return t?Object.keys(t).reduce((e,a)=>(e[MM(a)]=t[a],e),{}):{}}function mi(t){return t!=null}function DM(t,e,a){let i=[{scope:e}];if(mi(a.defaults)&&(i=i.concat(a.defaults)),mi(a.defaultValue)){const l=typeof a.defaultValue=="function"?a.defaultValue(t,e,a):a.defaultValue;i.push({message:l}),delete a.defaultValue}return i}var NM=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,im=Math.ceil,$r=Math.floor,yr="[BigNumber Error] ",W8=yr+"Number primitive has more than 15 significant digits: ",da=1e14,rt=14,Y8=9007199254740991,lm=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Gi=1e7,Lr=1e9;function ME(t){var e,a,i,l=I.prototype={constructor:I,toString:null,valueOf:null},o=new I(1),c=20,h=4,f=-7,m=21,v=-1e7,b=1e7,S=!1,A=1,w=0,R={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},k="0123456789abcdefghijklmnopqrstuvwxyz",D=!0;function I(E,x){var O,z,_,q,V,U,M,P,H=this;if(!(H instanceof I))return new I(E,x);if(x==null){if(E&&E._isBigNumber===!0){H.s=E.s,!E.c||E.e>b?H.c=H.e=null:E.e<v?H.c=[H.e=0]:(H.e=E.e,H.c=E.c.slice());return}if((U=typeof E=="number")&&E*0==0){if(H.s=1/E<0?(E=-E,-1):1,E===~~E){for(q=0,V=E;V>=10;V/=10,q++);q>b?H.c=H.e=null:(H.e=q,H.c=[E]);return}P=String(E)}else{if(!NM.test(P=String(E)))return i(H,P,U);H.s=P.charCodeAt(0)==45?(P=P.slice(1),-1):1}(q=P.indexOf("."))>-1&&(P=P.replace(".","")),(V=P.search(/e/i))>0?(q<0&&(q=V),q+=+P.slice(V+1),P=P.substring(0,V)):q<0&&(q=P.length)}else{if(on(x,2,k.length,"Base"),x==10&&D)return H=new I(E),F(H,c+H.e+1,h);if(P=String(E),U=typeof E=="number"){if(E*0!=0)return i(H,P,U,x);if(H.s=1/E<0?(P=P.slice(1),-1):1,I.DEBUG&&P.replace(/^0\.0*|\./,"").length>15)throw Error(W8+E)}else H.s=P.charCodeAt(0)===45?(P=P.slice(1),-1):1;for(O=k.slice(0,x),q=V=0,M=P.length;V<M;V++)if(O.indexOf(z=P.charAt(V))<0){if(z=="."){if(V>q){q=M;continue}}else if(!_&&(P==P.toUpperCase()&&(P=P.toLowerCase())||P==P.toLowerCase()&&(P=P.toUpperCase()))){_=!0,V=-1,q=0;continue}return i(H,String(E),U,x)}U=!1,P=a(P,x,10,H.s),(q=P.indexOf("."))>-1?P=P.replace(".",""):q=P.length}for(V=0;P.charCodeAt(V)===48;V++);for(M=P.length;P.charCodeAt(--M)===48;);if(P=P.slice(V,++M)){if(M-=V,U&&I.DEBUG&&M>15&&(E>Y8||E!==$r(E)))throw Error(W8+H.s*E);if((q=q-V-1)>b)H.c=H.e=null;else if(q<v)H.c=[H.e=0];else{if(H.e=q,H.c=[],V=(q+1)%rt,q<0&&(V+=rt),V<M){for(V&&H.c.push(+P.slice(0,V)),M-=rt;V<M;)H.c.push(+P.slice(V,V+=rt));V=rt-(P=P.slice(V)).length}else V-=M;for(;V--;P+="0");H.c.push(+P)}}else H.c=[H.e=0]}I.clone=ME,I.ROUND_UP=0,I.ROUND_DOWN=1,I.ROUND_CEIL=2,I.ROUND_FLOOR=3,I.ROUND_HALF_UP=4,I.ROUND_HALF_DOWN=5,I.ROUND_HALF_EVEN=6,I.ROUND_HALF_CEIL=7,I.ROUND_HALF_FLOOR=8,I.EUCLID=9,I.config=I.set=function(E){var x,O;if(E!=null)if(typeof E=="object"){if(E.hasOwnProperty(x="DECIMAL_PLACES")&&(O=E[x],on(O,0,Lr,x),c=O),E.hasOwnProperty(x="ROUNDING_MODE")&&(O=E[x],on(O,0,8,x),h=O),E.hasOwnProperty(x="EXPONENTIAL_AT")&&(O=E[x],O&&O.pop?(on(O[0],-1e9,0,x),on(O[1],0,Lr,x),f=O[0],m=O[1]):(on(O,-1e9,Lr,x),f=-(m=O<0?-O:O))),E.hasOwnProperty(x="RANGE"))if(O=E[x],O&&O.pop)on(O[0],-1e9,-1,x),on(O[1],1,Lr,x),v=O[0],b=O[1];else if(on(O,-1e9,Lr,x),O)v=-(b=O<0?-O:O);else throw Error(yr+x+" cannot be zero: "+O);if(E.hasOwnProperty(x="CRYPTO"))if(O=E[x],O===!!O)if(O)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))S=O;else throw S=!O,Error(yr+"crypto unavailable");else S=O;else throw Error(yr+x+" not true or false: "+O);if(E.hasOwnProperty(x="MODULO_MODE")&&(O=E[x],on(O,0,9,x),A=O),E.hasOwnProperty(x="POW_PRECISION")&&(O=E[x],on(O,0,Lr,x),w=O),E.hasOwnProperty(x="FORMAT"))if(O=E[x],typeof O=="object")R=O;else throw Error(yr+x+" not an object: "+O);if(E.hasOwnProperty(x="ALPHABET"))if(O=E[x],typeof O=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(O))D=O.slice(0,10)=="0123456789",k=O;else throw Error(yr+x+" invalid: "+O)}else throw Error(yr+"Object expected: "+E);return{DECIMAL_PLACES:c,ROUNDING_MODE:h,EXPONENTIAL_AT:[f,m],RANGE:[v,b],CRYPTO:S,MODULO_MODE:A,POW_PRECISION:w,FORMAT:R,ALPHABET:k}},I.isBigNumber=function(E){if(!E||E._isBigNumber!==!0)return!1;if(!I.DEBUG)return!0;var x,O,z=E.c,_=E.e,q=E.s;e:if({}.toString.call(z)=="[object Array]"){if((q===1||q===-1)&&_>=-1e9&&_<=Lr&&_===$r(_)){if(z[0]===0){if(_===0&&z.length===1)return!0;break e}if(x=(_+1)%rt,x<1&&(x+=rt),String(z[0]).length==x){for(x=0;x<z.length;x++)if(O=z[x],O<0||O>=da||O!==$r(O))break e;if(O!==0)return!0}}}else if(z===null&&_===null&&(q===null||q===1||q===-1))return!0;throw Error(yr+"Invalid BigNumber: "+E)},I.maximum=I.max=function(){return Y(arguments,-1)},I.minimum=I.min=function(){return Y(arguments,1)},I.random=function(){var E=9007199254740992,x=Math.random()*E&2097151?function(){return $r(Math.random()*E)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(O){var z,_,q,V,U,M=0,P=[],H=new I(o);if(O==null?O=c:on(O,0,Lr),V=im(O/rt),S)if(crypto.getRandomValues){for(z=crypto.getRandomValues(new Uint32Array(V*=2));M<V;)U=z[M]*131072+(z[M+1]>>>11),U>=9e15?(_=crypto.getRandomValues(new Uint32Array(2)),z[M]=_[0],z[M+1]=_[1]):(P.push(U%1e14),M+=2);M=V/2}else if(crypto.randomBytes){for(z=crypto.randomBytes(V*=7);M<V;)U=(z[M]&31)*281474976710656+z[M+1]*1099511627776+z[M+2]*4294967296+z[M+3]*16777216+(z[M+4]<<16)+(z[M+5]<<8)+z[M+6],U>=9e15?crypto.randomBytes(7).copy(z,M):(P.push(U%1e14),M+=7);M=V/7}else throw S=!1,Error(yr+"crypto unavailable");if(!S)for(;M<V;)U=x(),U<9e15&&(P[M++]=U%1e14);for(V=P[--M],O%=rt,V&&O&&(U=lm[rt-O],P[M]=$r(V/U)*U);P[M]===0;P.pop(),M--);if(M<0)P=[q=0];else{for(q=-1;P[0]===0;P.splice(0,1),q-=rt);for(M=1,U=P[0];U>=10;U/=10,M++);M<rt&&(q-=rt-M)}return H.e=q,H.c=P,H}}(),I.sum=function(){for(var E=1,x=arguments,O=new I(x[0]);E<x.length;)O=O.plus(x[E++]);return O},a=function(){var E="0123456789";function x(O,z,_,q){for(var V,U=[0],M,P=0,H=O.length;P<H;){for(M=U.length;M--;U[M]*=z);for(U[0]+=q.indexOf(O.charAt(P++)),V=0;V<U.length;V++)U[V]>_-1&&(U[V+1]==null&&(U[V+1]=0),U[V+1]+=U[V]/_|0,U[V]%=_)}return U.reverse()}return function(O,z,_,q,V){var U,M,P,H,$,T,G,ee,ne=O.indexOf("."),ge=c,fe=h;for(ne>=0&&(H=w,w=0,O=O.replace(".",""),ee=new I(z),T=ee.pow(O.length-ne),w=H,ee.c=x(fi(Jr(T.c),T.e,"0"),10,_,E),ee.e=ee.c.length),G=x(O,z,_,V?(U=k,E):(U=E,k)),P=H=G.length;G[--H]==0;G.pop());if(!G[0])return U.charAt(0);if(ne<0?--P:(T.c=G,T.e=P,T.s=q,T=e(T,ee,ge,fe,_),G=T.c,$=T.r,P=T.e),M=P+ge+1,ne=G[M],H=_/2,$=$||M<0||G[M+1]!=null,$=fe<4?(ne!=null||$)&&(fe==0||fe==(T.s<0?3:2)):ne>H||ne==H&&(fe==4||$||fe==6&&G[M-1]&1||fe==(T.s<0?8:7)),M<1||!G[0])O=$?fi(U.charAt(1),-ge,U.charAt(0)):U.charAt(0);else{if(G.length=M,$)for(--_;++G[--M]>_;)G[M]=0,M||(++P,G=[1].concat(G));for(H=G.length;!G[--H];);for(ne=0,O="";ne<=H;O+=U.charAt(G[ne++]));O=fi(O,P,U.charAt(0))}return O}}(),e=function(){function E(z,_,q){var V,U,M,P,H=0,$=z.length,T=_%Gi,G=_/Gi|0;for(z=z.slice();$--;)M=z[$]%Gi,P=z[$]/Gi|0,V=G*M+P*T,U=T*M+V%Gi*Gi+H,H=(U/q|0)+(V/Gi|0)+G*P,z[$]=U%q;return H&&(z=[H].concat(z)),z}function x(z,_,q,V){var U,M;if(q!=V)M=q>V?1:-1;else for(U=M=0;U<q;U++)if(z[U]!=_[U]){M=z[U]>_[U]?1:-1;break}return M}function O(z,_,q,V){for(var U=0;q--;)z[q]-=U,U=z[q]<_[q]?1:0,z[q]=U*V+z[q]-_[q];for(;!z[0]&&z.length>1;z.splice(0,1));}return function(z,_,q,V,U){var M,P,H,$,T,G,ee,ne,ge,fe,me,Pe,Le,tt,Vt,ot,Et,ct=z.s==_.s?1:-1,Ze=z.c,Je=_.c;if(!Ze||!Ze[0]||!Je||!Je[0])return new I(!z.s||!_.s||(Ze?Je&&Ze[0]==Je[0]:!Je)?NaN:Ze&&Ze[0]==0||!Je?ct*0:ct/0);for(ne=new I(ct),ge=ne.c=[],P=z.e-_.e,ct=q+P+1,U||(U=da,P=ea(z.e/rt)-ea(_.e/rt),ct=ct/rt|0),H=0;Je[H]==(Ze[H]||0);H++);if(Je[H]>(Ze[H]||0)&&P--,ct<0)ge.push(1),$=!0;else{for(tt=Ze.length,ot=Je.length,H=0,ct+=2,T=$r(U/(Je[0]+1)),T>1&&(Je=E(Je,T,U),Ze=E(Ze,T,U),ot=Je.length,tt=Ze.length),Le=ot,fe=Ze.slice(0,ot),me=fe.length;me<ot;fe[me++]=0);Et=Je.slice(),Et=[0].concat(Et),Vt=Je[0],Je[1]>=U/2&&Vt++;do{if(T=0,M=x(Je,fe,ot,me),M<0){if(Pe=fe[0],ot!=me&&(Pe=Pe*U+(fe[1]||0)),T=$r(Pe/Vt),T>1)for(T>=U&&(T=U-1),G=E(Je,T,U),ee=G.length,me=fe.length;x(G,fe,ee,me)==1;)T--,O(G,ot<ee?Et:Je,ee,U),ee=G.length,M=1;else T==0&&(M=T=1),G=Je.slice(),ee=G.length;if(ee<me&&(G=[0].concat(G)),O(fe,G,me,U),me=fe.length,M==-1)for(;x(Je,fe,ot,me)<1;)T++,O(fe,ot<me?Et:Je,me,U),me=fe.length}else M===0&&(T++,fe=[0]);ge[H++]=T,fe[0]?fe[me++]=Ze[Le]||0:(fe=[Ze[Le]],me=1)}while((Le++<tt||fe[0]!=null)&&ct--);$=fe[0]!=null,ge[0]||ge.splice(0,1)}if(U==da){for(H=1,ct=ge[0];ct>=10;ct/=10,H++);F(ne,q+(ne.e=H+P*rt-1)+1,V,$)}else ne.e=P,ne.r=+$;return ne}}();function B(E,x,O,z){var _,q,V,U,M;if(O==null?O=h:on(O,0,8),!E.c)return E.toString();if(_=E.c[0],V=E.e,x==null)M=Jr(E.c),M=z==1||z==2&&(V<=f||V>=m)?rf(M,V):fi(M,V,"0");else if(E=F(new I(E),x,O),q=E.e,M=Jr(E.c),U=M.length,z==1||z==2&&(x<=q||q<=f)){for(;U<x;M+="0",U++);M=rf(M,q)}else if(x-=V,M=fi(M,q,"0"),q+1>U){if(--x>0)for(M+=".";x--;M+="0");}else if(x+=q-U,x>0)for(q+1==U&&(M+=".");x--;M+="0");return E.s<0&&_?"-"+M:M}function Y(E,x){for(var O,z,_=1,q=new I(E[0]);_<E.length;_++)z=new I(E[_]),(!z.s||(O=Sl(q,z))===x||O===0&&q.s===x)&&(q=z);return q}function j(E,x,O){for(var z=1,_=x.length;!x[--_];x.pop());for(_=x[0];_>=10;_/=10,z++);return(O=z+O*rt-1)>b?E.c=E.e=null:O<v?E.c=[E.e=0]:(E.e=O,E.c=x),E}i=function(){var E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,x=/^([^.]+)\.$/,O=/^\.([^.]+)$/,z=/^-?(Infinity|NaN)$/,_=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(q,V,U,M){var P,H=U?V:V.replace(_,"");if(z.test(H))q.s=isNaN(H)?null:H<0?-1:1;else{if(!U&&(H=H.replace(E,function($,T,G){return P=(G=G.toLowerCase())=="x"?16:G=="b"?2:8,!M||M==P?T:$}),M&&(P=M,H=H.replace(x,"$1").replace(O,"0.$1")),V!=H))return new I(H,P);if(I.DEBUG)throw Error(yr+"Not a"+(M?" base "+M:"")+" number: "+V);q.s=null}q.c=q.e=null}}();function F(E,x,O,z){var _,q,V,U,M,P,H,$=E.c,T=lm;if($){e:{for(_=1,U=$[0];U>=10;U/=10,_++);if(q=x-_,q<0)q+=rt,V=x,M=$[P=0],H=$r(M/T[_-V-1]%10);else if(P=im((q+1)/rt),P>=$.length)if(z){for(;$.length<=P;$.push(0));M=H=0,_=1,q%=rt,V=q-rt+1}else break e;else{for(M=U=$[P],_=1;U>=10;U/=10,_++);q%=rt,V=q-rt+_,H=V<0?0:$r(M/T[_-V-1]%10)}if(z=z||x<0||$[P+1]!=null||(V<0?M:M%T[_-V-1]),z=O<4?(H||z)&&(O==0||O==(E.s<0?3:2)):H>5||H==5&&(O==4||z||O==6&&(q>0?V>0?M/T[_-V]:0:$[P-1])%10&1||O==(E.s<0?8:7)),x<1||!$[0])return $.length=0,z?(x-=E.e+1,$[0]=T[(rt-x%rt)%rt],E.e=-x||0):$[0]=E.e=0,E;if(q==0?($.length=P,U=1,P--):($.length=P+1,U=T[rt-q],$[P]=V>0?$r(M/T[_-V]%T[V])*U:0),z)for(;;)if(P==0){for(q=1,V=$[0];V>=10;V/=10,q++);for(V=$[0]+=U,U=1;V>=10;V/=10,U++);q!=U&&(E.e++,$[0]==da&&($[0]=1));break}else{if($[P]+=U,$[P]!=da)break;$[P--]=0,U=1}for(q=$.length;$[--q]===0;$.pop());}E.e>b?E.c=E.e=null:E.e<v&&(E.c=[E.e=0])}return E}function Z(E){var x,O=E.e;return O===null?E.toString():(x=Jr(E.c),x=O<=f||O>=m?rf(x,O):fi(x,O,"0"),E.s<0?"-"+x:x)}return l.absoluteValue=l.abs=function(){var E=new I(this);return E.s<0&&(E.s=1),E},l.comparedTo=function(E,x){return Sl(this,new I(E,x))},l.decimalPlaces=l.dp=function(E,x){var O,z,_,q=this;if(E!=null)return on(E,0,Lr),x==null?x=h:on(x,0,8),F(new I(q),E+q.e+1,x);if(!(O=q.c))return null;if(z=((_=O.length-1)-ea(this.e/rt))*rt,_=O[_])for(;_%10==0;_/=10,z--);return z<0&&(z=0),z},l.dividedBy=l.div=function(E,x){return e(this,new I(E,x),c,h)},l.dividedToIntegerBy=l.idiv=function(E,x){return e(this,new I(E,x),0,1)},l.exponentiatedBy=l.pow=function(E,x){var O,z,_,q,V,U,M,P,H,$=this;if(E=new I(E),E.c&&!E.isInteger())throw Error(yr+"Exponent not an integer: "+Z(E));if(x!=null&&(x=new I(x)),U=E.e>14,!$.c||!$.c[0]||$.c[0]==1&&!$.e&&$.c.length==1||!E.c||!E.c[0])return H=new I(Math.pow(+Z($),U?E.s*(2-nf(E)):+Z(E))),x?H.mod(x):H;if(M=E.s<0,x){if(x.c?!x.c[0]:!x.s)return new I(NaN);z=!M&&$.isInteger()&&x.isInteger(),z&&($=$.mod(x))}else{if(E.e>9&&($.e>0||$.e<-1||($.e==0?$.c[0]>1||U&&$.c[1]>=24e7:$.c[0]<8e13||U&&$.c[0]<=9999975e7)))return q=$.s<0&&nf(E)?-0:0,$.e>-1&&(q=1/q),new I(M?1/q:q);w&&(q=im(w/rt+2))}for(U?(O=new I(.5),M&&(E.s=1),P=nf(E)):(_=Math.abs(+Z(E)),P=_%2),H=new I(o);;){if(P){if(H=H.times($),!H.c)break;q?H.c.length>q&&(H.c.length=q):z&&(H=H.mod(x))}if(_){if(_=$r(_/2),_===0)break;P=_%2}else if(E=E.times(O),F(E,E.e+1,1),E.e>14)P=nf(E);else{if(_=+Z(E),_===0)break;P=_%2}$=$.times($),q?$.c&&$.c.length>q&&($.c.length=q):z&&($=$.mod(x))}return z?H:(M&&(H=o.div(H)),x?H.mod(x):q?F(H,w,h,V):H)},l.integerValue=function(E){var x=new I(this);return E==null?E=h:on(E,0,8),F(x,x.e+1,E)},l.isEqualTo=l.eq=function(E,x){return Sl(this,new I(E,x))===0},l.isFinite=function(){return!!this.c},l.isGreaterThan=l.gt=function(E,x){return Sl(this,new I(E,x))>0},l.isGreaterThanOrEqualTo=l.gte=function(E,x){return(x=Sl(this,new I(E,x)))===1||x===0},l.isInteger=function(){return!!this.c&&ea(this.e/rt)>this.c.length-2},l.isLessThan=l.lt=function(E,x){return Sl(this,new I(E,x))<0},l.isLessThanOrEqualTo=l.lte=function(E,x){return(x=Sl(this,new I(E,x)))===-1||x===0},l.isNaN=function(){return!this.s},l.isNegative=function(){return this.s<0},l.isPositive=function(){return this.s>0},l.isZero=function(){return!!this.c&&this.c[0]==0},l.minus=function(E,x){var O,z,_,q,V=this,U=V.s;if(E=new I(E,x),x=E.s,!U||!x)return new I(NaN);if(U!=x)return E.s=-x,V.plus(E);var M=V.e/rt,P=E.e/rt,H=V.c,$=E.c;if(!M||!P){if(!H||!$)return H?(E.s=-x,E):new I($?V:NaN);if(!H[0]||!$[0])return $[0]?(E.s=-x,E):new I(H[0]?V:h==3?-0:0)}if(M=ea(M),P=ea(P),H=H.slice(),U=M-P){for((q=U<0)?(U=-U,_=H):(P=M,_=$),_.reverse(),x=U;x--;_.push(0));_.reverse()}else for(z=(q=(U=H.length)<(x=$.length))?U:x,U=x=0;x<z;x++)if(H[x]!=$[x]){q=H[x]<$[x];break}if(q&&(_=H,H=$,$=_,E.s=-E.s),x=(z=$.length)-(O=H.length),x>0)for(;x--;H[O++]=0);for(x=da-1;z>U;){if(H[--z]<$[z]){for(O=z;O&&!H[--O];H[O]=x);--H[O],H[z]+=da}H[z]-=$[z]}for(;H[0]==0;H.splice(0,1),--P);return H[0]?j(E,H,P):(E.s=h==3?-1:1,E.c=[E.e=0],E)},l.modulo=l.mod=function(E,x){var O,z,_=this;return E=new I(E,x),!_.c||!E.s||E.c&&!E.c[0]?new I(NaN):!E.c||_.c&&!_.c[0]?new I(_):(A==9?(z=E.s,E.s=1,O=e(_,E,0,3),E.s=z,O.s*=z):O=e(_,E,0,A),E=_.minus(O.times(E)),!E.c[0]&&A==1&&(E.s=_.s),E)},l.multipliedBy=l.times=function(E,x){var O,z,_,q,V,U,M,P,H,$,T,G,ee,ne,ge,fe=this,me=fe.c,Pe=(E=new I(E,x)).c;if(!me||!Pe||!me[0]||!Pe[0])return!fe.s||!E.s||me&&!me[0]&&!Pe||Pe&&!Pe[0]&&!me?E.c=E.e=E.s=null:(E.s*=fe.s,!me||!Pe?E.c=E.e=null:(E.c=[0],E.e=0)),E;for(z=ea(fe.e/rt)+ea(E.e/rt),E.s*=fe.s,M=me.length,$=Pe.length,M<$&&(ee=me,me=Pe,Pe=ee,_=M,M=$,$=_),_=M+$,ee=[];_--;ee.push(0));for(ne=da,ge=Gi,_=$;--_>=0;){for(O=0,T=Pe[_]%ge,G=Pe[_]/ge|0,V=M,q=_+V;q>_;)P=me[--V]%ge,H=me[V]/ge|0,U=G*P+H*T,P=T*P+U%ge*ge+ee[q]+O,O=(P/ne|0)+(U/ge|0)+G*H,ee[q--]=P%ne;ee[q]=O}return O?++z:ee.splice(0,1),j(E,ee,z)},l.negated=function(){var E=new I(this);return E.s=-E.s||null,E},l.plus=function(E,x){var O,z=this,_=z.s;if(E=new I(E,x),x=E.s,!_||!x)return new I(NaN);if(_!=x)return E.s=-x,z.minus(E);var q=z.e/rt,V=E.e/rt,U=z.c,M=E.c;if(!q||!V){if(!U||!M)return new I(_/0);if(!U[0]||!M[0])return M[0]?E:new I(U[0]?z:_*0)}if(q=ea(q),V=ea(V),U=U.slice(),_=q-V){for(_>0?(V=q,O=M):(_=-_,O=U),O.reverse();_--;O.push(0));O.reverse()}for(_=U.length,x=M.length,_-x<0&&(O=M,M=U,U=O,x=_),_=0;x;)_=(U[--x]=U[x]+M[x]+_)/da|0,U[x]=da===U[x]?0:U[x]%da;return _&&(U=[_].concat(U),++V),j(E,U,V)},l.precision=l.sd=function(E,x){var O,z,_,q=this;if(E!=null&&E!==!!E)return on(E,1,Lr),x==null?x=h:on(x,0,8),F(new I(q),E,x);if(!(O=q.c))return null;if(_=O.length-1,z=_*rt+1,_=O[_]){for(;_%10==0;_/=10,z--);for(_=O[0];_>=10;_/=10,z++);}return E&&q.e+1>z&&(z=q.e+1),z},l.shiftedBy=function(E){return on(E,-9007199254740991,Y8),this.times("1e"+E)},l.squareRoot=l.sqrt=function(){var E,x,O,z,_,q=this,V=q.c,U=q.s,M=q.e,P=c+4,H=new I("0.5");if(U!==1||!V||!V[0])return new I(!U||U<0&&(!V||V[0])?NaN:V?q:1/0);if(U=Math.sqrt(+Z(q)),U==0||U==1/0?(x=Jr(V),(x.length+M)%2==0&&(x+="0"),U=Math.sqrt(+x),M=ea((M+1)/2)-(M<0||M%2),U==1/0?x="5e"+M:(x=U.toExponential(),x=x.slice(0,x.indexOf("e")+1)+M),O=new I(x)):O=new I(U+""),O.c[0]){for(M=O.e,U=M+P,U<3&&(U=0);;)if(_=O,O=H.times(_.plus(e(q,_,P,1))),Jr(_.c).slice(0,U)===(x=Jr(O.c)).slice(0,U))if(O.e<M&&--U,x=x.slice(U-3,U+1),x=="9999"||!z&&x=="4999"){if(!z&&(F(_,_.e+c+2,0),_.times(_).eq(q))){O=_;break}P+=4,U+=4,z=1}else{(!+x||!+x.slice(1)&&x.charAt(0)=="5")&&(F(O,O.e+c+2,1),E=!O.times(O).eq(q));break}}return F(O,O.e+c+1,h,E)},l.toExponential=function(E,x){return E!=null&&(on(E,0,Lr),E++),B(this,E,x,1)},l.toFixed=function(E,x){return E!=null&&(on(E,0,Lr),E=E+this.e+1),B(this,E,x)},l.toFormat=function(E,x,O){var z,_=this;if(O==null)E!=null&&x&&typeof x=="object"?(O=x,x=null):E&&typeof E=="object"?(O=E,E=x=null):O=R;else if(typeof O!="object")throw Error(yr+"Argument not an object: "+O);if(z=_.toFixed(E,x),_.c){var q,V=z.split("."),U=+O.groupSize,M=+O.secondaryGroupSize,P=O.groupSeparator||"",H=V[0],$=V[1],T=_.s<0,G=T?H.slice(1):H,ee=G.length;if(M&&(q=U,U=M,M=q,ee-=q),U>0&&ee>0){for(q=ee%U||U,H=G.substr(0,q);q<ee;q+=U)H+=P+G.substr(q,U);M>0&&(H+=P+G.slice(q)),T&&(H="-"+H)}z=$?H+(O.decimalSeparator||"")+((M=+O.fractionGroupSize)?$.replace(new RegExp("\\d{"+M+"}\\B","g"),"$&"+(O.fractionGroupSeparator||"")):$):H}return(O.prefix||"")+z+(O.suffix||"")},l.toFraction=function(E){var x,O,z,_,q,V,U,M,P,H,$,T,G=this,ee=G.c;if(E!=null&&(U=new I(E),!U.isInteger()&&(U.c||U.s!==1)||U.lt(o)))throw Error(yr+"Argument "+(U.isInteger()?"out of range: ":"not an integer: ")+Z(U));if(!ee)return new I(G);for(x=new I(o),P=O=new I(o),z=M=new I(o),T=Jr(ee),q=x.e=T.length-G.e-1,x.c[0]=lm[(V=q%rt)<0?rt+V:V],E=!E||U.comparedTo(x)>0?q>0?x:P:U,V=b,b=1/0,U=new I(T),M.c[0]=0;H=e(U,x,0,1),_=O.plus(H.times(z)),_.comparedTo(E)!=1;)O=z,z=_,P=M.plus(H.times(_=P)),M=_,x=U.minus(H.times(_=x)),U=_;return _=e(E.minus(O),z,0,1),M=M.plus(_.times(P)),O=O.plus(_.times(z)),M.s=P.s=G.s,q=q*2,$=e(P,z,q,h).minus(G).abs().comparedTo(e(M,O,q,h).minus(G).abs())<1?[P,z]:[M,O],b=V,$},l.toNumber=function(){return+Z(this)},l.toPrecision=function(E,x){return E!=null&&on(E,1,Lr),B(this,E,x,2)},l.toString=function(E){var x,O=this,z=O.s,_=O.e;return _===null?z?(x="Infinity",z<0&&(x="-"+x)):x="NaN":(E==null?x=_<=f||_>=m?rf(Jr(O.c),_):fi(Jr(O.c),_,"0"):E===10&&D?(O=F(new I(O),c+_+1,h),x=fi(Jr(O.c),O.e,"0")):(on(E,2,k.length,"Base"),x=a(fi(Jr(O.c),_,"0"),10,E,z,!0)),z<0&&O.c[0]&&(x="-"+x)),x},l.valueOf=l.toJSON=function(){return Z(this)},l._isBigNumber=!0,l[Symbol.toStringTag]="BigNumber",l[Symbol.for("nodejs.util.inspect.custom")]=l.valueOf,t!=null&&I.set(t),I}function ea(t){var e=t|0;return t>0||t===e?e:e-1}function Jr(t){for(var e,a,i=1,l=t.length,o=t[0]+"";i<l;){for(e=t[i++]+"",a=rt-e.length;a--;e="0"+e);o+=e}for(l=o.length;o.charCodeAt(--l)===48;);return o.slice(0,l+1||1)}function Sl(t,e){var a,i,l=t.c,o=e.c,c=t.s,h=e.s,f=t.e,m=e.e;if(!c||!h)return null;if(a=l&&!l[0],i=o&&!o[0],a||i)return a?i?0:-h:c;if(c!=h)return c;if(a=c<0,i=f==m,!l||!o)return i?0:!l^a?1:-1;if(!i)return f>m^a?1:-1;for(h=(f=l.length)<(m=o.length)?f:m,c=0;c<h;c++)if(l[c]!=o[c])return l[c]>o[c]^a?1:-1;return f==m?0:f>m^a?1:-1}function on(t,e,a,i){if(t<e||t>a||t!==$r(t))throw Error(yr+(i||"Argument")+(typeof t=="number"?t<e||t>a?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function nf(t){var e=t.c.length-1;return ea(t.e/rt)==e&&t.c[e]%2!=0}function rf(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function fi(t,e,a){var i,l;if(e<0){for(l=a+".";++e;l+=a);t=l+t}else if(i=t.length,++e>i){for(l=a,e-=i;--e;l+=a);t+=l}else e<i&&(t=t.slice(0,e)+"."+t.slice(e));return t}var mn=ME(),Lf;(function(t){t[t.up=mn.ROUND_UP]="up",t[t.down=mn.ROUND_DOWN]="down",t[t.truncate=mn.ROUND_DOWN]="truncate",t[t.halfUp=mn.ROUND_HALF_UP]="halfUp",t[t.default=mn.ROUND_HALF_UP]="default",t[t.halfDown=mn.ROUND_HALF_DOWN]="halfDown",t[t.halfEven=mn.ROUND_HALF_EVEN]="halfEven",t[t.banker=mn.ROUND_HALF_EVEN]="banker",t[t.ceiling=mn.ROUND_CEIL]="ceiling",t[t.ceil=mn.ROUND_CEIL]="ceil",t[t.floor=mn.ROUND_FLOOR]="floor"})(Lf||(Lf={}));function DE(t){var e;return(e=Lf[t])!==null&&e!==void 0?e:Lf.default}var sm,Q8;function LM(){if(Q8)return sm;Q8=1;var t=9007199254740991,e=Math.floor;function a(i,l){var o="";if(!i||l<1||l>t)return o;do l%2&&(o+=i),l=e(l/2),l&&(i+=i);while(l);return o}return sm=a,sm}var om,K8;function kM(){if(K8)return om;K8=1;var t=/\s/;function e(a){for(var i=a.length;i--&&t.test(a.charAt(i)););return i}return om=e,om}var um,J8;function jM(){if(J8)return um;J8=1;var t=kM(),e=/^\s+/;function a(i){return i&&i.slice(0,t(i)+1).replace(e,"")}return um=a,um}var cm,X8;function _M(){if(X8)return cm;X8=1;var t=jM(),e=yi(),a=Pu(),i=NaN,l=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,h=parseInt;function f(m){if(typeof m=="number")return m;if(a(m))return i;if(e(m)){var v=typeof m.valueOf=="function"?m.valueOf():m;m=e(v)?v+"":v}if(typeof m!="string")return m===0?m:+m;m=t(m);var b=o.test(m);return b||c.test(m)?h(m.slice(2),b?2:8):l.test(m)?i:+m}return cm=f,cm}var fm,$8;function NE(){if($8)return fm;$8=1;var t=_M(),e=1/0,a=17976931348623157e292;function i(l){if(!l)return l===0?l:0;if(l=t(l),l===e||l===-1/0){var o=l<0?-1:1;return o*a}return l===l?l:0}return fm=i,fm}var dm,ey;function UM(){if(ey)return dm;ey=1;var t=NE();function e(a){var i=t(a),l=i%1;return i===i?l?i-l:i:0}return dm=e,dm}var hm,ty;function qM(){if(ty)return hm;ty=1;var t=LM(),e=l1(),a=UM(),i=Gs();function l(o,c,h){return(h?e(o,c,h):c===void 0)?c=1:c=a(c),t(i(o),c)}return hm=l,hm}var zM=qM();const PM=aa(zM);function HM(t){return t.isZero()?1:Math.floor(Math.log10(t.abs().toNumber())+1)}function BM(t,{precision:e,significant:a}){return a&&e!==null&&e>0?e-HM(t):e}function kf(t,e){const a=BM(t,e);if(a===null)return t.toString();const i=DE(e.roundMode);if(a>=0)return t.toFixed(a,i);const l=Math.pow(10,Math.abs(a));return t=new mn(t.div(l).toFixed(0,i)).times(l),t.toString()}function FM(t,{formattedNumber:e,unit:a}){return t.replace("%n",e).replace("%u",a)}function VM({significand:t,whole:e,precision:a}){if(e==="0"||a===null)return t;const i=Math.max(0,a-e.length);return(t??"").substr(0,i)}function eu(t,e){var a,i,l;const o=new mn(t);if(e.raise&&!o.isFinite())throw new Error(`"${t}" is not a valid numeric value`);const c=kf(o,e),h=new mn(c),f=h.lt(0),m=h.isZero();let[v,b]=c.split(".");const S=[];let A;const w=(a=e.format)!==null&&a!==void 0?a:"%n",R=(i=e.negativeFormat)!==null&&i!==void 0?i:`-${w}`,k=f&&!m?R:w;for(v=v.replace("-","");v.length>0;)S.unshift(v.substr(Math.max(0,v.length-3),3)),v=v.substr(0,v.length-3);return v=S.join(""),A=S.join(e.delimiter),e.significant?b=VM({whole:v,significand:b,precision:e.precision}):b=b??PM("0",(l=e.precision)!==null&&l!==void 0?l:0),e.stripInsignificantZeros&&b&&(b=b.replace(/0+$/,"")),o.isNaN()&&(A=t.toString()),b&&o.isFinite()&&(A+=(e.separator||".")+b),FM(k,{formattedNumber:A,unit:e.unit})}function Us(t,e,a){let i="";return(e instanceof String||typeof e=="string")&&(i=e),e instanceof Array&&(i=e.join(t.defaultSeparator)),a.scope&&(i=[a.scope,i].join(t.defaultSeparator)),i}function xl(t){var e,a;if(t===null)return"null";const i=typeof t;return i!=="object"?i:((a=(e=t==null?void 0:t.constructor)===null||e===void 0?void 0:e.name)===null||a===void 0?void 0:a.toLowerCase())||"object"}function mm(t,e,a){a=Object.keys(a).reduce((l,o)=>(l[t.transformKey(o)]=a[o],l),{});const i=e.match(t.placeholder);if(!i)return e;for(;i.length;){let l;const o=i.shift(),c=o.replace(t.placeholder,"$1");mi(a[c])?l=a[c].toString().replace(/\$/gm,"_#$#_"):c in a?l=t.nullPlaceholder(t,o,e,a):l=t.missingPlaceholder(t,o,e,a);const h=new RegExp(o.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"),"g");e=e.replace(h,l)}return e.replace(/_#\$#_/g,"$")}function Ua(t,e,a={}){a=Object.assign({},a);const i="locale"in a?a.locale:t.locale,l=xl(i),o=t.locales.get(l==="string"?i:typeof i).slice(),c=Us(t,e,a).split(t.defaultSeparator).map(f=>t.transformKey(f)),h=o.map(f=>c.reduce((m,v)=>m&&m[v],t.translations[f]));return h.push(a.defaultValue),h.find(f=>mi(f))}function GM(t,e){const a=new mn(t);if(!a.isFinite())return t.toString();if(!e.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${e.delimiterPattern}`);let[i,l]=a.toString().split(".");return i=i.replace(e.delimiterPattern,o=>`${o}${e.delimiter}`),[i,l].filter(Boolean).join(e.separator)}var pm,ny;function LE(){if(ny)return pm;ny=1;function t(e,a){for(var i=-1,l=a.length,o=e.length;++i<l;)e[o+i]=a[i];return e}return pm=t,pm}var gm,ry;function ZM(){if(ry)return gm;ry=1;var t=zu(),e=a1(),a=Oa(),i=t?t.isConcatSpreadable:void 0;function l(o){return a(o)||e(o)||!!(i&&o&&o[i])}return gm=l,gm}var vm,ay;function WM(){if(ay)return vm;ay=1;var t=LE(),e=ZM();function a(i,l,o,c,h){var f=-1,m=i.length;for(o||(o=e),h||(h=[]);++f<m;){var v=i[f];l>0&&o(v)?l>1?a(v,l-1,o,c,h):t(h,v):c||(h[h.length]=v)}return h}return vm=a,vm}var ym,iy;function YM(){if(iy)return ym;iy=1;function t(e,a){for(var i=-1,l=e==null?0:e.length;++i<l;)if(a(e[i],i,e))return!0;return!1}return ym=t,ym}var bm,ly;function kE(){if(ly)return bm;ly=1;var t=TE(),e=YM(),a=OE(),i=1,l=2;function o(c,h,f,m,v,b){var S=f&i,A=c.length,w=h.length;if(A!=w&&!(S&&w>A))return!1;var R=b.get(c),k=b.get(h);if(R&&k)return R==h&&k==c;var D=-1,I=!0,B=f&l?new t:void 0;for(b.set(c,h),b.set(h,c);++D<A;){var Y=c[D],j=h[D];if(m)var F=S?m(j,Y,D,h,c,b):m(Y,j,D,c,h,b);if(F!==void 0){if(F)continue;I=!1;break}if(B){if(!e(h,function(Z,E){if(!a(B,E)&&(Y===Z||v(Y,Z,f,m,b)))return B.push(E)})){I=!1;break}}else if(!(Y===j||v(Y,j,f,m,b))){I=!1;break}}return b.delete(c),b.delete(h),I}return bm=o,bm}var Sm,sy;function QM(){if(sy)return Sm;sy=1;function t(e){var a=-1,i=Array(e.size);return e.forEach(function(l,o){i[++a]=[o,l]}),i}return Sm=t,Sm}var Em,oy;function KM(){if(oy)return Em;oy=1;var t=zu(),e=vE(),a=Hu(),i=kE(),l=QM(),o=h4(),c=1,h=2,f="[object Boolean]",m="[object Date]",v="[object Error]",b="[object Map]",S="[object Number]",A="[object RegExp]",w="[object Set]",R="[object String]",k="[object Symbol]",D="[object ArrayBuffer]",I="[object DataView]",B=t?t.prototype:void 0,Y=B?B.valueOf:void 0;function j(F,Z,E,x,O,z,_){switch(E){case I:if(F.byteLength!=Z.byteLength||F.byteOffset!=Z.byteOffset)return!1;F=F.buffer,Z=Z.buffer;case D:return!(F.byteLength!=Z.byteLength||!z(new e(F),new e(Z)));case f:case m:case S:return a(+F,+Z);case v:return F.name==Z.name&&F.message==Z.message;case A:case R:return F==Z+"";case b:var q=l;case w:var V=x&c;if(q||(q=o),F.size!=Z.size&&!V)return!1;var U=_.get(F);if(U)return U==Z;x|=h,_.set(F,Z);var M=i(q(F),q(Z),x,O,z,_);return _.delete(F),M;case k:if(Y)return Y.call(F)==Y.call(Z)}return!1}return Em=j,Em}var Am,uy;function JM(){if(uy)return Am;uy=1;var t=LE(),e=Oa();function a(i,l,o){var c=l(i);return e(i)?c:t(c,o(i))}return Am=a,Am}var wm,cy;function XM(){if(cy)return wm;cy=1;function t(e,a){for(var i=-1,l=e==null?0:e.length,o=0,c=[];++i<l;){var h=e[i];a(h,i,e)&&(c[o++]=h)}return c}return wm=t,wm}var Cm,fy;function $M(){if(fy)return Cm;fy=1;function t(){return[]}return Cm=t,Cm}var xm,dy;function eD(){if(dy)return xm;dy=1;var t=XM(),e=$M(),a=Object.prototype,i=a.propertyIsEnumerable,l=Object.getOwnPropertySymbols,o=l?function(c){return c==null?[]:(c=Object(c),t(l(c),function(h){return i.call(c,h)}))}:e;return xm=o,xm}var Tm,hy;function tD(){if(hy)return Tm;hy=1;var t=yE(),e=t(Object.keys,Object);return Tm=e,Tm}var Om,my;function nD(){if(my)return Om;my=1;var t=c4(),e=tD(),a=Object.prototype,i=a.hasOwnProperty;function l(o){if(!t(o))return e(o);var c=[];for(var h in Object(o))i.call(o,h)&&h!="constructor"&&c.push(h);return c}return Om=l,Om}var Rm,py;function m4(){if(py)return Rm;py=1;var t=wE(),e=nD(),a=Zs();function i(l){return a(l)?t(l):e(l)}return Rm=i,Rm}var Im,gy;function rD(){if(gy)return Im;gy=1;var t=JM(),e=eD(),a=m4();function i(l){return t(l,a,e)}return Im=i,Im}var Mm,vy;function aD(){if(vy)return Mm;vy=1;var t=rD(),e=1,a=Object.prototype,i=a.hasOwnProperty;function l(o,c,h,f,m,v){var b=h&e,S=t(o),A=S.length,w=t(c),R=w.length;if(A!=R&&!b)return!1;for(var k=A;k--;){var D=S[k];if(!(b?D in c:i.call(c,D)))return!1}var I=v.get(o),B=v.get(c);if(I&&B)return I==c&&B==o;var Y=!0;v.set(o,c),v.set(c,o);for(var j=b;++k<A;){D=S[k];var F=o[D],Z=c[D];if(f)var E=b?f(Z,F,D,c,o,v):f(F,Z,D,o,c,v);if(!(E===void 0?F===Z||m(F,Z,h,f,v):E)){Y=!1;break}j||(j=D=="constructor")}if(Y&&!j){var x=o.constructor,O=c.constructor;x!=O&&"constructor"in o&&"constructor"in c&&!(typeof x=="function"&&x instanceof x&&typeof O=="function"&&O instanceof O)&&(Y=!1)}return v.delete(o),v.delete(c),Y}return Mm=l,Mm}var Dm,yy;function iD(){if(yy)return Dm;yy=1;var t=_l(),e=Za(),a=t(e,"DataView");return Dm=a,Dm}var Nm,by;function lD(){if(by)return Nm;by=1;var t=_l(),e=Za(),a=t(e,"Promise");return Nm=a,Nm}var Lm,Sy;function sD(){if(Sy)return Lm;Sy=1;var t=_l(),e=Za(),a=t(e,"WeakMap");return Lm=a,Lm}var km,Ey;function oD(){if(Ey)return km;Ey=1;var t=iD(),e=r4(),a=lD(),i=RE(),l=sD(),o=Vs(),c=uE(),h="[object Map]",f="[object Object]",m="[object Promise]",v="[object Set]",b="[object WeakMap]",S="[object DataView]",A=c(t),w=c(e),R=c(a),k=c(i),D=c(l),I=o;return(t&&I(new t(new ArrayBuffer(1)))!=S||e&&I(new e)!=h||a&&I(a.resolve())!=m||i&&I(new i)!=v||l&&I(new l)!=b)&&(I=function(B){var Y=o(B),j=Y==f?B.constructor:void 0,F=j?c(j):"";if(F)switch(F){case A:return S;case w:return h;case R:return m;case k:return v;case D:return b}return Y}),km=I,km}var jm,Ay;function uD(){if(Ay)return jm;Ay=1;var t=o4(),e=kE(),a=KM(),i=aD(),l=oD(),o=Oa(),c=f4(),h=d4(),f=1,m="[object Arguments]",v="[object Array]",b="[object Object]",S=Object.prototype,A=S.hasOwnProperty;function w(R,k,D,I,B,Y){var j=o(R),F=o(k),Z=j?v:l(R),E=F?v:l(k);Z=Z==m?b:Z,E=E==m?b:E;var x=Z==b,O=E==b,z=Z==E;if(z&&c(R)){if(!c(k))return!1;j=!0,x=!1}if(z&&!x)return Y||(Y=new t),j||h(R)?e(R,k,D,I,B,Y):a(R,k,Z,D,I,B,Y);if(!(D&f)){var _=x&&A.call(R,"__wrapped__"),q=O&&A.call(k,"__wrapped__");if(_||q){var V=_?R.value():R,U=q?k.value():k;return Y||(Y=new t),B(V,U,D,I,Y)}}return z?(Y||(Y=new t),i(R,k,D,I,B,Y)):!1}return jm=w,jm}var _m,wy;function jE(){if(wy)return _m;wy=1;var t=uD(),e=jl();function a(i,l,o,c,h){return i===l?!0:i==null||l==null||!e(i)&&!e(l)?i!==i&&l!==l:t(i,l,o,c,a,h)}return _m=a,_m}var Um,Cy;function cD(){if(Cy)return Um;Cy=1;var t=o4(),e=jE(),a=1,i=2;function l(o,c,h,f){var m=h.length,v=m,b=!f;if(o==null)return!v;for(o=Object(o);m--;){var S=h[m];if(b&&S[2]?S[1]!==o[S[0]]:!(S[0]in o))return!1}for(;++m<v;){S=h[m];var A=S[0],w=o[A],R=S[1];if(b&&S[2]){if(w===void 0&&!(A in o))return!1}else{var k=new t;if(f)var D=f(w,R,A,o,c,k);if(!(D===void 0?e(R,w,a|i,f,k):D))return!1}}return!0}return Um=l,Um}var qm,xy;function _E(){if(xy)return qm;xy=1;var t=yi();function e(a){return a===a&&!t(a)}return qm=e,qm}var zm,Ty;function fD(){if(Ty)return zm;Ty=1;var t=_E(),e=m4();function a(i){for(var l=e(i),o=l.length;o--;){var c=l[o],h=i[c];l[o]=[c,h,t(h)]}return l}return zm=a,zm}var Pm,Oy;function UE(){if(Oy)return Pm;Oy=1;function t(e,a){return function(i){return i==null?!1:i[e]===a&&(a!==void 0||e in Object(i))}}return Pm=t,Pm}var Hm,Ry;function dD(){if(Ry)return Hm;Ry=1;var t=cD(),e=fD(),a=UE();function i(l){var o=e(l);return o.length==1&&o[0][2]?a(o[0][0],o[0][1]):function(c){return c===l||t(c,l,o)}}return Hm=i,Hm}var Bm,Iy;function hD(){if(Iy)return Bm;Iy=1;function t(e,a){return e!=null&&a in Object(e)}return Bm=t,Bm}var Fm,My;function mD(){if(My)return Fm;My=1;var t=hD(),e=hE();function a(i,l){return i!=null&&e(i,l,t)}return Fm=a,Fm}var Vm,Dy;function pD(){if(Dy)return Vm;Dy=1;var t=jE(),e=dE(),a=mD(),i=t4(),l=_E(),o=UE(),c=r1(),h=1,f=2;function m(v,b){return i(v)&&l(b)?o(c(v),b):function(S){var A=e(S,v);return A===void 0&&A===b?a(S,v):t(b,A,h|f)}}return Vm=m,Vm}var Gm,Ny;function gD(){if(Ny)return Gm;Ny=1;function t(e){return function(a){return a==null?void 0:a[e]}}return Gm=t,Gm}var Zm,Ly;function vD(){if(Ly)return Zm;Ly=1;var t=i4();function e(a){return function(i){return t(i,a)}}return Zm=e,Zm}var Wm,ky;function yD(){if(ky)return Wm;ky=1;var t=gD(),e=vD(),a=t4(),i=r1();function l(o){return a(o)?t(i(o)):e(o)}return Wm=l,Wm}var Ym,jy;function bD(){if(jy)return Ym;jy=1;var t=dD(),e=pD(),a=i1(),i=Oa(),l=yD();function o(c){return typeof c=="function"?c:c==null?a:typeof c=="object"?i(c)?e(c[0],c[1]):t(c):l(c)}return Ym=o,Ym}var Qm,_y;function SD(){if(_y)return Qm;_y=1;var t=gE(),e=m4();function a(i,l){return i&&t(i,l,e)}return Qm=a,Qm}var Km,Uy;function ED(){if(Uy)return Km;Uy=1;var t=Zs();function e(a,i){return function(l,o){if(l==null)return l;if(!t(l))return a(l,o);for(var c=l.length,h=i?c:-1,f=Object(l);(i?h--:++h<c)&&o(f[h],h,f)!==!1;);return l}}return Km=e,Km}var Jm,qy;function AD(){if(qy)return Jm;qy=1;var t=SD(),e=ED(),a=e(t);return Jm=a,Jm}var Xm,zy;function wD(){if(zy)return Xm;zy=1;var t=AD(),e=Zs();function a(i,l){var o=-1,c=e(i)?Array(i.length):[];return t(i,function(h,f,m){c[++o]=l(h,f,m)}),c}return Xm=a,Xm}var $m,Py;function CD(){if(Py)return $m;Py=1;function t(e,a){var i=e.length;for(e.sort(a);i--;)e[i]=e[i].value;return e}return $m=t,$m}var e3,Hy;function xD(){if(Hy)return e3;Hy=1;var t=Pu();function e(a,i){if(a!==i){var l=a!==void 0,o=a===null,c=a===a,h=t(a),f=i!==void 0,m=i===null,v=i===i,b=t(i);if(!m&&!b&&!h&&a>i||h&&f&&v&&!m&&!b||o&&f&&v||!l&&v||!c)return 1;if(!o&&!h&&!b&&a<i||b&&l&&c&&!o&&!h||m&&l&&c||!f&&c||!v)return-1}return 0}return e3=e,e3}var t3,By;function TD(){if(By)return t3;By=1;var t=xD();function e(a,i,l){for(var o=-1,c=a.criteria,h=i.criteria,f=c.length,m=l.length;++o<f;){var v=t(c[o],h[o]);if(v){if(o>=m)return v;var b=l[o];return v*(b=="desc"?-1:1)}}return a.index-i.index}return t3=e,t3}var n3,Fy;function OD(){if(Fy)return n3;Fy=1;var t=cE(),e=i4(),a=bD(),i=wD(),l=CD(),o=SE(),c=TD(),h=i1(),f=Oa();function m(v,b,S){b.length?b=t(b,function(R){return f(R)?function(k){return e(k,R.length===1?R[0]:R)}:R}):b=[h];var A=-1;b=t(b,o(a));var w=i(v,function(R,k,D){var I=t(b,function(B){return B(R)});return{criteria:I,index:++A,value:R}});return l(w,function(R,k){return c(R,k,S)})}return n3=m,n3}var r3,Vy;function RD(){if(Vy)return r3;Vy=1;var t=WM(),e=OD(),a=xE(),i=l1(),l=a(function(o,c){if(o==null)return[];var h=c.length;return h>1&&i(o,c[0],c[1])?c=[]:h>2&&i(c[0],c[1],c[2])&&(c=[c[0]]),e(o,t(c,1),[])});return r3=l,r3}var ID=RD();const MD=aa(ID);var a3,Gy;function DD(){if(Gy)return a3;Gy=1;function t(e,a,i){for(var l=-1,o=e.length,c=a.length,h={};++l<o;){var f=l<c?a[l]:void 0;i(h,e[l],f)}return h}return a3=t,a3}var i3,Zy;function ND(){if(Zy)return i3;Zy=1;var t=AE(),e=DD();function a(i,l){return e(i||[],l||[],t)}return i3=a,i3}var LD=ND();const kD=aa(LD),hp={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},jD=kD(Object.values(hp),Object.keys(hp).map(t=>parseInt(t,10)));function _D(t,e,a){const i={roundMode:a.roundMode,precision:a.precision,significant:a.significant};let l;if(xl(a.units)==="string"){const b=a.units;if(l=Ua(t,b),!l)throw new Error(`The scope "${t.locale}${t.defaultSeparator}${Us(t,b,{})}" couldn't be found`)}else l=a.units;let o=kf(new mn(e),i);const c=b=>MD(Object.keys(b).map(S=>jD[S]),S=>S*-1),h=(b,S)=>{const A=b.isZero()?0:Math.floor(Math.log10(b.abs().toNumber()));return c(S).find(w=>A>=w)||0},f=(b,S)=>{const A=hp[S.toString()];return b[A]||""},m=h(new mn(o),l),v=f(l,m);if(o=kf(new mn(o).div(Math.pow(10,m)),i),a.stripInsignificantZeros){let[b,S]=o.split(".");S=(S||"").replace(/0+$/,""),o=b,S&&(o+=`${a.separator}${S}`)}return a.format.replace("%n",o||"0").replace("%u",v).trim()}const Wy=["byte","kb","mb","gb","tb","pb","eb"];function UD(t,e,a){const i=DE(a.roundMode),l=1024,o=new mn(e).abs(),c=o.lt(l);let h;const f=(w,R)=>{const k=R.length-1,D=new mn(Math.log(w.toNumber())).div(Math.log(l)).integerValue(mn.ROUND_DOWN).toNumber();return Math.min(k,D)},m=w=>`number.human.storage_units.units.${c?"byte":w[v]}`,v=f(o,Wy);c?h=o.integerValue():h=new mn(kf(o.div(Math.pow(l,v)),{significant:a.significant,precision:a.precision,roundMode:a.roundMode}));const b=t.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),S=t.translate(m(Wy),{count:o.integerValue().toNumber()});let A=h.toFixed(a.precision,i);return a.stripInsignificantZeros&&(A=A.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),b.replace("%n",A).replace("%u",S)}function mp(t){if(t instanceof Date)return t;if(typeof t=="number"){const i=new Date;return i.setTime(t),i}const e=new String(t).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(e){const i=e.slice(1,8).map(S=>parseInt(S,10)||0);i[1]-=1;const[l,o,c,h,f,m,v]=i;return e[8]?new Date(Date.UTC(l,o,c,h,f,m,v)):new Date(l,o,c,h,f,m,v)}t.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));const a=new Date;return a.setTime(Date.parse(t)),a}function Yy({i18n:t,count:e,scope:a,options:i,baseScope:l}){i=Object.assign({},i);let o,c;if(typeof a=="object"&&a?o=a:o=Ua(t,a,i),!o)return t.missingTranslation.get(a,i);const f=t.pluralization.get(i.locale)(t,e),m=[];for(;f.length;){const v=f.shift();if(mi(o[v])){c=o[v];break}m.push(v)}return mi(c)?(i.count=e,t.interpolate(t,c,i)):t.missingTranslation.get(l.split(t.defaultSeparator).concat([m[0]]),i)}const qD={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function zD(t,e,a={}){const{abbrDayNames:i,dayNames:l,abbrMonthNames:o,monthNames:c,meridian:h,utc:f}=Object.assign(Object.assign({},qD),a);if(isNaN(t.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const m=f?t.getUTCDay():t.getDay(),v=f?t.getUTCDate():t.getDate(),b=f?t.getUTCFullYear():t.getFullYear(),S=(f?t.getUTCMonth():t.getMonth())+1,A=f?t.getUTCHours():t.getHours();let w=A;const R=A>11?"pm":"am",k=f?t.getUTCSeconds():t.getSeconds(),D=f?t.getUTCMinutes():t.getMinutes(),I=f?0:t.getTimezoneOffset(),B=Math.floor(Math.abs(I/60)),Y=Math.abs(I)-B*60,j=(I>0?"-":"+")+(B.toString().length<2?"0"+B:B)+(Y.toString().length<2?"0"+Y:Y);return w>12?w=w-12:w===0&&(w=12),e=e.replace("%a",i[m]),e=e.replace("%A",l[m]),e=e.replace("%b",o[S]),e=e.replace("%B",c[S]),e=e.replace("%d",v.toString().padStart(2,"0")),e=e.replace("%e",v.toString()),e=e.replace("%-d",v.toString()),e=e.replace("%H",A.toString().padStart(2,"0")),e=e.replace("%-H",A.toString()),e=e.replace("%k",A.toString()),e=e.replace("%I",w.toString().padStart(2,"0")),e=e.replace("%-I",w.toString()),e=e.replace("%l",w.toString()),e=e.replace("%m",S.toString().padStart(2,"0")),e=e.replace("%-m",S.toString()),e=e.replace("%M",D.toString().padStart(2,"0")),e=e.replace("%-M",D.toString()),e=e.replace("%p",h[R]),e=e.replace("%P",h[R].toLowerCase()),e=e.replace("%S",k.toString().padStart(2,"0")),e=e.replace("%-S",k.toString()),e=e.replace("%w",m.toString()),e=e.replace("%y",b.toString().padStart(2,"0").substr(-2)),e=e.replace("%-y",b.toString().padStart(2,"0").substr(-2).replace(/^0+/,"")),e=e.replace("%Y",b.toString()),e=e.replace(/%z/i,j),e}var l3,Qy;function PD(){if(Qy)return l3;Qy=1;var t=Math.ceil,e=Math.max;function a(i,l,o,c){for(var h=-1,f=e(t((l-i)/(o||1)),0),m=Array(f);f--;)m[c?f:++h]=i,i+=o;return m}return l3=a,l3}var s3,Ky;function HD(){if(Ky)return s3;Ky=1;var t=PD(),e=l1(),a=NE();function i(l){return function(o,c,h){return h&&typeof h!="number"&&e(o,c,h)&&(c=h=void 0),o=a(o),c===void 0?(c=o,o=0):c=a(c),h=h===void 0?o<c?1:-1:a(h),t(o,c,h,l)}}return s3=i,s3}var o3,Jy;function BD(){if(Jy)return o3;Jy=1;var t=HD(),e=t();return o3=e,o3}var FD=BD();const VD=aa(FD),kr=(t,e,a)=>a>=t&&a<=e;function GD(t,e,a,i={}){const l=i.scope||"datetime.distance_in_words",o=(Z,E=0)=>t.t(Z,{count:E,scope:l});e=mp(e),a=mp(a);let c=e.getTime()/1e3,h=a.getTime()/1e3;c>h&&([e,a,c,h]=[a,e,h,c]);const f=Math.round(h-c),m=Math.round((h-c)/60),b=m/60/24,S=Math.round(m/60),A=Math.round(b),w=Math.round(A/30);if(kr(0,1,m))return i.includeSeconds?kr(0,4,f)?o("less_than_x_seconds",5):kr(5,9,f)?o("less_than_x_seconds",10):kr(10,19,f)?o("less_than_x_seconds",20):kr(20,39,f)?o("half_a_minute"):kr(40,59,f)?o("less_than_x_minutes",1):o("x_minutes",1):m===0?o("less_than_x_minutes",1):o("x_minutes",m);if(kr(2,44,m))return o("x_minutes",m);if(kr(45,89,m))return o("about_x_hours",1);if(kr(90,1439,m))return o("about_x_hours",S);if(kr(1440,2519,m))return o("x_days",1);if(kr(2520,43199,m))return o("x_days",A);if(kr(43200,86399,m))return o("about_x_months",Math.round(m/43200));if(kr(86400,525599,m))return o("x_months",w);let R=e.getFullYear();e.getMonth()+1>=3&&(R+=1);let k=a.getFullYear();a.getMonth()+1<3&&(k-=1);const D=R>k?0:VD(R,k).filter(Z=>new Date(Z,1,29).getMonth()==1).length,I=525600,B=D*1440,Y=m-B,j=Math.trunc(Y/I),F=parseFloat((Y/I-j).toPrecision(3));return F<.25?o("about_x_years",j):F<.75?o("over_x_years",j):o("almost_x_years",j+1)}const ZD=function(t,e){e instanceof Array&&(e=e.join(t.defaultSeparator));const a=e.split(t.defaultSeparator).slice(-1)[0];return t.missingTranslationPrefix+a.replace("_"," ").replace(/([a-z])([A-Z])/g,(i,l,o)=>`${l} ${o.toLowerCase()}`)},WD=(t,e,a)=>{const i=Us(t,e,a),l="locale"in a?a.locale:t.locale,o=xl(l);return`[missing "${[o=="string"?l:o,i].join(t.defaultSeparator)}" translation]`},YD=(t,e,a)=>{const i=Us(t,e,a),l=[t.locale,i].join(t.defaultSeparator);throw new Error(`Missing translation: ${l}`)};class QD{constructor(e){this.i18n=e,this.registry={},this.register("guess",ZD),this.register("message",WD),this.register("error",YD)}register(e,a){this.registry[e]=a}get(e,a){var i;return this.registry[(i=a.missingBehavior)!==null&&i!==void 0?i:this.i18n.missingBehavior](this.i18n,e,a)}}var KD=function(t,e,a,i){function l(o){return o instanceof a?o:new a(function(c){c(o)})}return new(a||(a=Promise))(function(o,c){function h(v){try{m(i.next(v))}catch(b){c(b)}}function f(v){try{m(i.throw(v))}catch(b){c(b)}}function m(v){v.done?o(v.value):l(v.value).then(h,f)}m((i=i.apply(t,e||[])).next())})};const u3={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(t,e)=>`[missing "${e}" value]`,nullPlaceholder:(t,e,a,i)=>t.missingPlaceholder(t,e,a,i),transformKey:t=>t};let JD=class{constructor(e={},a={}){this._locale=u3.locale,this._defaultLocale=u3.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:i,enableFallback:l,missingBehavior:o,missingTranslationPrefix:c,missingPlaceholder:h,nullPlaceholder:f,defaultLocale:m,defaultSeparator:v,placeholder:b,transformKey:S}=Object.assign(Object.assign({},u3),a);this.locale=i,this.defaultLocale=m,this.defaultSeparator=v,this.enableFallback=l,this.locale=i,this.missingBehavior=o,this.missingTranslationPrefix=c,this.missingPlaceholder=h,this.nullPlaceholder=f,this.placeholder=b,this.pluralization=new cM(this),this.locales=new lM(this),this.missingTranslation=new QD(this),this.transformKey=S,this.interpolate=mm,this.store(e)}store(e){VI(this.translations,e),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${xl(e)}`);const a=this._locale!==e;this._locale=e,a&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${xl(e)}`);const a=this._defaultLocale!==e;this._defaultLocale=e,a&&this.hasChanged()}translate(e,a){a=Object.assign({},a);const i=DM(this,e,a);let l;return i.some(c=>(mi(c.scope)?l=Ua(this,c.scope,a):mi(c.message)&&(l=c.message),l!=null))?(typeof l=="string"?l=this.interpolate(this,l,a):typeof l=="object"&&l&&mi(a.count)&&(l=Yy({i18n:this,count:a.count||0,scope:l,options:a,baseScope:Us(this,e,a)})),a&&l instanceof Array&&(l=l.map(c=>typeof c=="string"?mm(this,c,a):c)),l):this.missingTranslation.get(e,a)}pluralize(e,a,i){return Yy({i18n:this,count:e,scope:a,options:Object.assign({},i),baseScope:Us(this,a,i??{})})}localize(e,a,i){if(i=Object.assign({},i),a==null)return"";switch(e){case"currency":return this.numberToCurrency(a);case"number":return eu(a,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},Ua(this,"number.format")));case"percentage":return this.numberToPercentage(a);default:{let l;return e.match(/^(date|time)/)?l=this.toTime(e,a):l=a.toString(),mm(this,l,i)}}}toTime(e,a){const i=mp(a),l=Ua(this,e);return i.toString().match(/invalid/i)||!l?i.toString():this.strftime(i,l)}numberToCurrency(e,a={}){return eu(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},fa(this.get("number.format"))),fa(this.get("number.currency.format"))),a))}numberToPercentage(e,a={}){return eu(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},fa(this.get("number.format"))),fa(this.get("number.percentage.format"))),a))}numberToHumanSize(e,a={}){return UD(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},fa(this.get("number.human.format"))),fa(this.get("number.human.storage_units"))),a))}numberToHuman(e,a={}){return _D(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},fa(this.get("number.human.format"))),fa(this.get("number.human.decimal_units"))),a))}numberToRounded(e,a){return eu(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},a))}numberToDelimited(e,a={}){return GM(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},a))}withLocale(e,a){return KD(this,void 0,void 0,function*(){const i=this.locale;try{this.locale=e,yield a()}finally{this.locale=i}})}strftime(e,a,i={}){return zD(e,a,Object.assign(Object.assign(Object.assign({},fa(Ua(this,"date"))),{meridian:{am:Ua(this,"time.am")||"AM",pm:Ua(this,"time.pm")||"PM"}}),i))}update(e,a,i={strict:!1}){if(i.strict&&!cI(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);const l=iI(this.translations,e),o=xl(l),c=xl(a);if(i.strict&&o!==c)throw new Error(`The current type for "${e}" is "${o}", but you're trying to override it with "${c}"`);let h;c==="object"?h=Object.assign(Object.assign({},l),a):h=a;const f=e.split(this.defaultSeparator),m=f.pop();let v=this.translations;for(const b of f)v[b]||(v[b]={}),v=v[b];v[m]=h,this.hasChanged()}toSentence(e,a={}){const{wordsConnector:i,twoWordsConnector:l,lastWordConnector:o}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},fa(Ua(this,"support.array"))),a),c=e.length;switch(c){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(l);default:return[e.slice(0,c-1).join(i),o,e[c-1]].join("")}}timeAgoInWords(e,a,i={}){return GD(this,e,a,i)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,a={}){return a=Object.assign(Object.assign({delimiter:",",precision:3,separator:".",unit:"",format:"%u%n",significant:!1,stripInsignificantZeros:!1},fa(this.get("number.format"))),a),eu(e,a)}get(e){return Ua(this,e)}runCallbacks(){this.onChangeHandlers.forEach(e=>e(this))}hasChanged(){this._version+=1,this.runCallbacks()}};function XD(t,e,a){const i=new URLSearchParams(t);return i.set(e,a),"?"+i.toString()}function $D(t,e){return new URLSearchParams(e).get(t)}function Sa(t){return t!=null?(t.preventDefault(),t.stopPropagation(),!1):!0}function ye(t){return t==null?!0:Array.isArray(t)?t.length===0:typeof t=="string"?t.trim().length===0:t&&t.getTime?t.getTime()!==t.getTime():typeof t=="object"?Object.keys(t).length===0:!1}const eN=t=>{const e=new URL(t).protocol;return["https:","http:"].includes(e)?t:"about:blank"};/*! js-cookie v3.0.5 | MIT */function af(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)t[i]=a[i]}return t}var tN={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function pp(t,e){function a(l,o,c){if(!(typeof document>"u")){c=af({},e,c),typeof c.expires=="number"&&(c.expires=new Date(Date.now()+c.expires*864e5)),c.expires&&(c.expires=c.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var f in c)c[f]&&(h+="; "+f,c[f]!==!0&&(h+="="+c[f].split(";")[0]));return document.cookie=l+"="+t.write(o,l)+h}}function i(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var o=document.cookie?document.cookie.split("; "):[],c={},h=0;h<o.length;h++){var f=o[h].split("="),m=f.slice(1).join("=");try{var v=decodeURIComponent(f[0]);if(c[v]=t.read(m,v),l===v)break}catch{}}return l?c[l]:c}}return Object.create({set:a,get:i,remove:function(l,o){a(l,"",af({},o,{expires:-1}))},withAttributes:function(l){return pp(this.converter,af({},this.attributes,l))},withConverter:function(l){return pp(af({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var qE=pp(tN,{path:"/"});const L=new JD({en:IR,nl:MR});let Nl=$D("lang",window.location.search);ye(Nl)&&(Nl=qE.get("lang"));ye(Nl)&&(Nl=navigator.language.toLowerCase().substring(0,2));["nl","en"].indexOf(Nl)===-1&&(Nl="en");L.locale=Nl;L.missingTranslation.register("report-error",(t,e)=>`[missing "${e}" translation]`);L.missingBehavior="report-error";const Xy=t=>{let e;const a=new Set,i=(m,v)=>{const b=typeof m=="function"?m(e):m;if(!Object.is(b,e)){const S=e;e=v??(typeof b!="object"||b===null)?b:Object.assign({},e,b),a.forEach(A=>A(e,S))}},l=()=>e,h={setState:i,getState:l,getInitialState:()=>f,subscribe:m=>(a.add(m),()=>a.delete(m))},f=e=t(i,l,h);return h},nN=t=>t?Xy(t):Xy,rN=t=>t;function aN(t,e=rN){const a=ie.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return ie.useDebugValue(a),a}const $y=t=>{const e=nN(t),a=i=>aN(e,i);return Object.assign(a,e),a},iN=t=>t?$y(t):$y,It=iN(t=>({user:{},csrfToken:null,flash:{msg:"",className:"hide",type:"info"},setFlash:(e,a)=>{t({flash:{msg:e,type:a||"info"}}),(!a||a==="info")&&setTimeout(()=>t({flash:{}}),5e3)},clearFlash:()=>t({flash:{}}),config:{baseUrl:"http://localhost:3000"},breadcrumbPath:[],menuItems:[],currentOrganization:{name:""}}));function lN(t){return e=>{if(!e.ok){if(e.type==="opaqueredirect")return setTimeout(()=>window.location.reload(!0),100),e;const a=new Error(e.statusText);if(a.response=e,t&&e.status===401){window.location.reload(!0);return}throw t&&setTimeout(()=>{throw a},250),a}return e}}function zE(t,e,a={},i=!0){const l={Accept:"application/json","Content-Type":"application/json","Accept-Language":L.locale,"X-CSRF-TOKEN":It.getState().csrfToken,...a},o=Object.assign({},{headers:l},e,{credentials:"same-origin",redirect:"manual",changeOrigin:!1});return fetch(t,o).then(lN(i))}function qr(t,e={},a={},i=!0){return zE(t,e,a,i).then(l=>l.json())}function Wa(t,e,a,i=!0){const l=JSON.stringify(e);return qr(t,{method:a,body:l},{},i)}function p4(t){return zE(t,{method:"delete"})}function sN(){return qr("/api/v1/users/config")}function oN(){return qr("/api/v1/csrf",{},{},!1)}function eb(){return qr("/api/v1/users/me")}function uN(){return qr("/api/v1/users/logout")}function cN(t){return qr(`/api/v1/organizations/search?query=${t}`)}function fN(t){return qr(`/api/v1/organizations/find/${t}`)}function dN(t){return p4(`/api/v1/organizations/${t}`)}function hN(t){return qr(`/api/v1/organizations/light/${t}`)}function mN(t){return Wa("/api/v1/organizations",t,"POST")}function pN(t){return Wa("/api/v1/join/",t,"POST")}function gp(t){return qr(`/api/v1/applications/${t}`)}function gN(t){return p4(`/api/v1/applications/${t}`)}function vN(t){return Wa("/api/v1/applications",t,"POST")}function g4(t){return Wa("/api/v1/applications",t,"PUT")}function yN(t){return Wa("/api/v1/manage/parse",{xml:t},"POST")}function bN(t){return Wa("/api/v1/manage/parse",{url:t},"POST")}function tb(t){return qr(`/api/v1/manage/identity-providers/${t}`)}function SN(t,e){return Wa(`/api/v1/manage/providers-by-entityid/${t}`,{entityID:e},"POST")}function EN(){return qr("/api/v1/manage/arp",{},{},!1)}function AN(){return qr("/api/v1/manage/privacy",{},{},!1)}function wN(t){return Wa("/api/v1/connections",t,"POST")}function CN(t){return Wa("/api/v1/connections",t,"PUT")}function xN(t){return Wa(`/api/v1/connections/reset-secret/${t}`,{},"PUT")}function nb(t){return qr(`/api/v1/connections/${t}`)}function TN(t){return p4(`/api/v1/connections/${t}`)}const ON=()=>{const t=It(a=>a.flash),e=It(a=>a.clearFlash);return!ye(t)&&(t.type==="error"||t.type==="warning")?y.jsx(va,{message:t.msg,action:t.action,actionLabel:t.actionLabel,alertType:t.type==="warning"?Fn.Warning:Fn.Error,close:e}):!ye(t)&&!ye(t.msg)?y.jsx(rO,{children:y.jsx(nO,{message:t.msg,toasterType:Ts.Success})}):null},RN=({title:t,titleId:e,...a},i)=>g.createElement("svg",{className:"logo-surf",xmlns:"http://www.w3.org/2000/svg",width:70.9,height:36,viewBox:"0 0 70.9 36",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{className:"shape",d:"M65.5 21.8c3 0 5.4 2.4 5.4 5.4v3.4c0 3-2.4 5.4-5.4 5.4h-8.1c-3 0-5.4-2.4-5.4-5.4v-2.1c0-3.7-3-6.7-6.7-6.7H6.7C3 21.8 0 18.7 0 15V6.7C0 3 3 0 6.7 0h38.5C49 0 52 3 52 6.7V15c0 3.7 3 6.7 6.7 6.7h6.8z",fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{className:"text",d:"M43.4 12.5c.7 0 1.1-.4 1.1-1.1 0-.7-.3-1.1-1.1-1.1h-2.7v-2H45c.7 0 1.1-.4 1.1-1.1 0-.7-.4-1.1-1.1-1.1h-5.4c-.7 0-1.1.4-1.1 1.1v7.6c0 .7.4 1.1 1.1 1.1.7 0 1.1-.4 1.1-1.1v-2.4h2.7zM32.2 8.3c.9 0 1.5.4 1.5 1.3s-.7 1.3-1.5 1.3h-1.9V8.3h1.9zm1.3 7c.2.5.5.7.9.7.6 0 1.3-.4 1.3-1.1 0-.2 0-.4-.1-.6l-1-2.1c1-.5 1.5-1.4 1.5-2.7 0-2-1.5-3.4-3.6-3.4h-3.2c-.7 0-1.1.4-1.1 1.1v7.6c0 .7.4 1.1 1.1 1.1.7 0 1.1-.4 1.1-1.1v-2h2.1l1 2.5zm-10.3-3.9c0 1.5-.9 2.4-2.2 2.4-1.3 0-2.2-.9-2.2-2.4V7.2c0-.7-.4-1.1-1.1-1.1-.7 0-1.1.4-1.1 1.1v4.3c0 2.8 1.9 4.6 4.4 4.6 2.6 0 4.5-1.8 4.5-4.6V7.2c0-.7-.4-1.1-1.1-1.1-.7 0-1.1.4-1.1 1.1v4.2zM10.5 14c-.9 0-1.5-.2-1.9-.4-.4-.1-.7-.2-1-.2-.6 0-1 .4-1 1 0 1 2.1 1.6 4 1.6 2.2 0 3.9-1.2 3.9-3 0-1.7-1.1-2.4-2.4-2.8l-1.8-.6C9.4 9.5 9 9.3 9 8.8s.8-.7 1.4-.7c.8 0 1.3.2 1.8.4.3.1.6.2.9.2.6 0 .9-.4.9-1 0-1-1.9-1.6-3.6-1.6C8.3 6 6.7 7.2 6.7 8.9c0 1.4 1 2.3 2.2 2.6l1.6.5c.8.2 1.5.5 1.5 1 .1.6-.8 1-1.5 1z",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"})),IN=g.forwardRef(RN),vp="local_storage_location",PE=(t,e=!0)=>{let a=e?"?force=true":"",i=t.serverUrl;ye(i)&&(i=window.location.hostname==="localhost"?"http://localhost:8886":`${window.location.protocol}//${window.location.host}`),window.location.href=eN(`${i}/api/v1/users/login${a}`)},MN=["home","connect","institutions","applications"],DN=({mobile:t,path:e})=>{const a=It(h=>h.config),[i,l]=g.useState(""),o=Vn();g.useEffect(()=>{l(e.substring(1))},[e]);const c=(h,f)=>{Sa(h),l(f),o(`/${f}`)};return y.jsxs("div",{className:`desktop-navigation ${t?"mobile":""}`,children:[MN.map(h=>y.jsx("a",{href:`/${h}`,className:h===i?"active":"",onClick:f=>c(f,h),children:L.t(`landing.tabs.${h}`)},h)),y.jsx("div",{className:"links",children:y.jsx(yt,{onClick:()=>PE(a),txt:L.t("landing.header.login")})})]})},NN=({currentLocation:t})=>(g.useEffect(()=>{},[t]),y.jsx("div",{className:"header-container",children:y.jsxs("div",{className:"header-inner",children:[y.jsx(Dl,{className:"logo",to:"/",children:y.jsx(IN,{})}),y.jsx(DN,{mobile:!1,path:t.pathname})]})})),LN=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",width:860.13137,height:571.14799,viewBox:"0 0 860.13137 571.14799",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M605.66974,324.95306c-7.66934-12.68446-16.7572-26.22768-30.98954-30.36953-16.482-4.7965-33.4132,4.73193-47.77473,14.13453a1392.15692,1392.15692,0,0,0-123.89338,91.28311l.04331.49238q46.22556-3.1878,92.451-6.37554c22.26532-1.53546,45.29557-3.2827,64.97195-13.8156,7.46652-3.99683,14.74475-9.33579,23.20555-9.70782,10.51175-.46217,19.67733,6.87923,26.8802,14.54931,42.60731,45.371,54.937,114.75409,102.73817,154.61591A1516.99453,1516.99453,0,0,0,605.66974,324.95306Z",transform:"translate(-169.93432 -164.42601)",fill:"#f2f2f2"}),g.createElement("path",{d:"M867.57068,709.78146c-4.71167-5.94958-6.6369-7.343-11.28457-13.34761q-56.7644-73.41638-106.70791-151.79237-33.92354-53.23-64.48275-108.50439-14.54864-26.2781-28.29961-52.96872-10.67044-20.6952-20.8646-41.63793c-1.94358-3.98782-3.8321-7.99393-5.71122-12.00922-4.42788-9.44232-8.77341-18.93047-13.43943-28.24449-5.31686-10.61572-11.789-21.74485-21.55259-28.877a29.40493,29.40493,0,0,0-15.31855-5.89458c-7.948-.51336-15.28184,2.76855-22.17568,6.35295-50.43859,26.301-97.65922,59.27589-140.3696,96.79771A730.77816,730.77816,0,0,0,303.32241,496.24719c-1.008,1.43927-3.39164.06417-2.37419-1.38422q6.00933-8.49818,12.25681-16.81288A734.817,734.817,0,0,1,500.80465,303.06436q18.24824-11.82581,37.18269-22.54245c6.36206-3.60275,12.75188-7.15967,19.25136-10.49653,6.37146-3.27274,13.13683-6.21547,20.41563-6.32547,24.7701-.385,37.59539,27.66695,46.40506,46.54248q4.15283,8.9106,8.40636,17.76626,16.0748,33.62106,33.38729,66.628,10.68453,20.379,21.83683,40.51955,34.7071,62.71816,73.77854,122.897c34.5059,53.1429,68.73651,100.08874,108.04585,149.78472C870.59617,709.21309,868.662,711.17491,867.57068,709.78146Z",transform:"translate(-169.93432 -164.42601)",fill:"#e4e4e4"}),g.createElement("path",{d:"M414.91613,355.804c-1.43911-1.60428-2.86927-3.20856-4.31777-4.81284-11.42244-12.63259-23.6788-25.11847-39.3644-32.36067a57.11025,57.11025,0,0,0-23.92679-5.54622c-8.56213.02753-16.93178,2.27348-24.84306,5.41792-3.74034,1.49427-7.39831,3.1902-11.00078,4.99614-4.11634,2.07182-8.15927,4.28118-12.1834,6.50883q-11.33112,6.27044-22.36816,13.09089-21.9606,13.57221-42.54566,29.21623-10.67111,8.11311-20.90174,16.75788-9.51557,8.03054-18.64618,16.492c-1.30169,1.20091-3.24527-.74255-1.94358-1.94347,1.60428-1.49428,3.22691-2.97938,4.84955-4.44613q6.87547-6.21546,13.9712-12.19257,12.93921-10.91827,26.54851-20.99312,21.16293-15.67614,43.78288-29.22541,11.30361-6.76545,22.91829-12.96259c2.33794-1.24675,4.70318-2.466,7.09572-3.6211a113.11578,113.11578,0,0,1,16.86777-6.86632,60.0063,60.0063,0,0,1,25.476-2.50265,66.32706,66.32706,0,0,1,23.50512,8.1314c15.40091,8.60812,27.34573,21.919,38.97,34.90915C418.03337,355.17141,416.09875,357.12405,414.91613,355.804Z",transform:"translate(-169.93432 -164.42601)",fill:"#e4e4e4"}),g.createElement("path",{d:"M730.47659,486.71092l36.90462-13.498,18.32327-6.70183c5.96758-2.18267,11.92082-4.66747,18.08988-6.23036a28.53871,28.53871,0,0,1,16.37356.20862,37.73753,37.73753,0,0,1,12.771,7.91666,103.63965,103.63965,0,0,1,10.47487,11.18643c3.98932,4.79426,7.91971,9.63877,11.86772,14.46706q24.44136,29.89094,48.56307,60.04134,24.12117,30.14991,47.91981,60.556,23.85681,30.48041,47.38548,61.21573,2.88229,3.76518,5.75966,7.53415c1.0598,1.38809,3.44949.01962,2.37472-1.38808Q983.582,650.9742,959.54931,620.184q-24.09177-30.86383-48.51647-61.46586-24.42421-30.60141-49.17853-60.93743-6.16706-7.55761-12.35445-15.09858c-3.47953-4.24073-6.91983-8.52718-10.73628-12.47427-7.00539-7.24516-15.75772-13.64794-26.23437-13.82166-6.15972-.10214-12.121,1.85248-17.844,3.92287-6.16968,2.232-12.32455,4.50571-18.48633,6.75941l-37.16269,13.59243-9.29067,3.3981c-1.64875.603-.93651,3.2619.73111,2.652Z",transform:"translate(-169.93432 -164.42601)",fill:"#e4e4e4"}),g.createElement("path",{d:"M366.37741,334.52609c-18.75411-9.63866-42.77137-7.75087-60.00508,4.29119a855.84708,855.84708,0,0,1,97.37056,22.72581C390.4603,353.75916,380.07013,341.5635,366.37741,334.52609Z",transform:"translate(-169.93432 -164.42601)",fill:"#f2f2f2"}),g.createElement("path",{d:"M306.18775,338.7841l-3.61042,2.93462c1.22123-1.02713,2.4908-1.99013,3.795-2.90144C306.31073,338.80665,306.24935,338.79473,306.18775,338.7841Z",transform:"translate(-169.93432 -164.42601)",fill:"#f2f2f2"}),g.createElement("path",{d:"M831.54929,486.84576c-3.6328-4.42207-7.56046-9.05222-12.99421-10.84836l-5.07308.20008A575.436,575.436,0,0,0,966.74929,651.418Q899.14929,569.13192,831.54929,486.84576Z",transform:"translate(-169.93432 -164.42601)",fill:"#f2f2f2"}),g.createElement("path",{d:"M516.08388,450.36652A37.4811,37.4811,0,0,0,531.015,471.32518c2.82017,1.92011,6.15681,3.76209,7.12158,7.03463a8.37858,8.37858,0,0,1-.87362,6.1499,24.88351,24.88351,0,0,1-3.86126,5.04137l-.13667.512c-6.99843-4.14731-13.65641-9.3934-17.52227-16.55115s-4.40553-16.53895.34116-23.14544",transform:"translate(-169.93432 -164.42601)",fill:"#f2f2f2"}),g.createElement("path",{d:"M749.08388,653.36652A37.4811,37.4811,0,0,0,764.015,674.32518c2.82017,1.92011,6.15681,3.76209,7.12158,7.03463a8.37858,8.37858,0,0,1-.87362,6.1499,24.88351,24.88351,0,0,1-3.86126,5.04137l-.13667.512c-6.99843-4.14731-13.65641-9.3934-17.52227-16.55115s-4.40553-16.53895.34116-23.14544",transform:"translate(-169.93432 -164.42601)",fill:"#f2f2f2"}),g.createElement("path",{d:"M284.08388,639.36652A37.4811,37.4811,0,0,0,299.015,660.32518c2.82017,1.92011,6.15681,3.76209,7.12158,7.03463a8.37858,8.37858,0,0,1-.87362,6.1499,24.88351,24.88351,0,0,1-3.86126,5.04137l-.13667.512c-6.99843-4.14731-13.65641-9.3934-17.52227-16.55115s-4.40553-16.53895.34116-23.14544",transform:"translate(-169.93432 -164.42601)",fill:"#f2f2f2"}),g.createElement("circle",{cx:649.24878,cy:51,r:51,fill:"#6c63ff"}),g.createElement("path",{d:"M911.21851,176.29639c-24.7168-3.34094-52.93512,10.01868-59.34131,34.12353a21.59653,21.59653,0,0,0-41.09351,2.10871l2.82972,2.02667a372.27461,372.27461,0,0,0,160.65881-.72638C957.07935,195.76,935.93537,179.63727,911.21851,176.29639Z",transform:"translate(-169.93432 -164.42601)",fill:"#f0f0f0"}),g.createElement("path",{d:"M805.21851,244.29639c-24.7168-3.34094-52.93512,10.01868-59.34131,34.12353a21.59653,21.59653,0,0,0-41.09351,2.10871l2.82972,2.02667a372.27461,372.27461,0,0,0,160.65881-.72638C851.07935,263.76,829.93537,247.63727,805.21851,244.29639Z",transform:"translate(-169.93432 -164.42601)",fill:"#f0f0f0"}),g.createElement("path",{d:"M1020.94552,257.15423a.98189.98189,0,0,1-.30176-.04688C756.237,173.48919,523.19942,184.42376,374.26388,208.32122c-20.26856,3.251-40.59131,7.00586-60.40381,11.16113-5.05811,1.05957-10.30567,2.19532-15.59668,3.37793-6.31885,1.40723-12.55371,2.85645-18.53223,4.30567q-3.873.917-7.59472,1.84863c-3.75831.92773-7.57178,1.89453-11.65967,2.957-4.56787,1.17774-9.209,2.41309-13.79737,3.67188a.44239.44239,0,0,1-.05127.01465l.00049.001c-5.18261,1.415-10.33789,2.8711-15.32324,4.3252-2.69824.77929-5.30371,1.54785-7.79932,2.30664-.2788.07715-.52587.15136-.77636.22754l-.53614.16308c-.31054.09473-.61718.1875-.92382.27539l-.01953.00586.00048.001-.81152.252c-.96777.293-1.91211.5791-2.84082.86426-24.54492,7.56641-38.03809,12.94922-38.17139,13.00195a1,1,0,1,1-.74414-1.85644c.13428-.05274,13.69336-5.46289,38.32764-13.05762.93213-.28613,1.87891-.57226,2.84961-.86621l.7539-.23438c.02588-.00976.05176-.01757.07813-.02539.30518-.08691.60986-.17968.91943-.27343l.53711-.16309c.26758-.08105.53125-.16113.80127-.23535,2.47852-.75391,5.09278-1.52441,7.79785-2.30664,4.98731-1.45508,10.14746-2.91113,15.334-4.32813.01611-.00586.03271-.00976.04883-.01464v-.001c4.60449-1.2627,9.26269-2.50293,13.84521-3.68457,4.09424-1.06348,7.915-2.03223,11.67969-2.96192q3.73755-.93017,7.60937-1.85253c5.98536-1.45118,12.23291-2.90235,18.563-4.3125,5.29932-1.1836,10.55567-2.32227,15.62207-3.38282,19.84326-4.16211,40.19776-7.92285,60.49707-11.17871C523.09591,182.415,756.46749,171.46282,1021.2463,255.2011a.99974.99974,0,0,1-.30078,1.95313Z",transform:"translate(-169.93432 -164.42601)",fill:"#ccc"}),g.createElement("path",{d:"M432.92309,584.266a6.72948,6.72948,0,0,0-1.7-2.67,6.42983,6.42983,0,0,0-.92-.71c-2.61-1.74-6.51-2.13-8.99,0a5.81012,5.81012,0,0,0-.69.71q-1.11,1.365-2.28,2.67c-1.28,1.46-2.59,2.87-3.96,4.24-.39.38-.78.77-1.18,1.15-.23.23-.46.45-.69.67-.88.84-1.78,1.65-2.69,2.45-.48.43-.96.85-1.45,1.26-.73.61-1.46,1.22-2.2,1.81-.07.05-.14.1-.21.16-.02.01-.03.03-.05.04-.01,0-.02,0-.03.02a.17861.17861,0,0,0-.07.05c-.22.15-.37.25-.48.34.04-.01995.08-.05.12-.07-.18.14-.37.28-.55.42-1.75,1.29-3.54,2.53-5.37,3.69a99.21022,99.21022,0,0,1-14.22,7.55c-.33.13-.67.27-1.01.4a85.96993,85.96993,0,0,1-40.85,6.02q-2.13008-.165-4.26-.45c-1.64-.24-3.27-.53-4.89-.86a97.93186,97.93186,0,0,1-18.02-5.44,118.65185,118.65185,0,0,1-20.66-12.12c-1-.71-2.01-1.42-3.02-2.11,1.15-2.82,2.28-5.64,3.38-8.48.55-1.37,1.08-2.74,1.6-4.12,4.09-10.63,7.93-21.36,11.61-32.13q5.58-16.365,10.53-32.92.51-1.68.99-3.36,2.595-8.745,4.98-17.53c.15-.56994.31-1.12994.45-1.7q.68994-2.52,1.35-5.04c1-3.79-1.26-8.32-5.24-9.23a7.63441,7.63441,0,0,0-9.22,5.24c-.43,1.62-.86,3.23-1.3,4.85q-3.165,11.74494-6.66,23.41-.51,1.68-1.02,3.36-7.71,25.41-16.93,50.31-1.11,3.015-2.25,6.01c-.37.98-.74,1.96-1.12,2.94-.73,1.93-1.48,3.86-2.23,5.79-.43006,1.13-.87006,2.26-1.31,3.38-.29.71-.57,1.42-.85,2.12a41.80941,41.80941,0,0,0-8.81-2.12l-.48-.06a27.397,27.397,0,0,0-7.01.06,23.91419,23.91419,0,0,0-17.24,10.66c-4.77,7.51-4.71,18.25,1.98,24.63,6.89,6.57,17.32,6.52,25.43,2.41a28.35124,28.35124,0,0,0,10.52-9.86,50.56939,50.56939,0,0,0,2.74-4.65c.21.14.42.28.63.43.8.56,1.6,1.13,2.39,1.69a111.73777,111.73777,0,0,0,14.51,8.91,108.35887,108.35887,0,0,0,34.62,10.47c.27.03.53.07.8.1,1.33.17,2.67.3,4.01.41a103.78229,103.78229,0,0,0,55.58-11.36q2.175-1.125,4.31-2.36,3.315-1.92,6.48-4.08c1.15-.78,2.27-1.57,3.38-2.4a101.04244,101.04244,0,0,0,13.51-11.95q2.35491-2.475,4.51-5.11005a8.0612,8.0612,0,0,0,2.2-5.3A7.5644,7.5644,0,0,0,432.92309,584.266Zm-165.59,23.82c.21-.15.42-.31.62-.47C267.89312,607.766,267.60308,607.936,267.33312,608.086Zm3.21-3.23c-.23.26-.44.52-.67.78a23.36609,23.36609,0,0,1-2.25,2.2c-.11.1-.23.2-.35.29a.00976.00976,0,0,0-.01.01,3.80417,3.80417,0,0,0-.42005.22q-.645.39-1.31994.72a17.00459,17.00459,0,0,1-2.71.75,16.79925,16.79925,0,0,1-2.13.02h-.02a14.82252,14.82252,0,0,1-1.45-.4c-.24-.12-.47-.25994-.7-.4-.09-.08-.17005-.16-.22-.21a2.44015,2.44015,0,0,1-.26995-.29.0098.0098,0,0,0-.01-.01c-.11005-.2-.23005-.4-.34-.6a.031.031,0,0,1-.01-.02c-.08-.25-.15-.51-.21-.77a12.51066,12.51066,0,0,1,.01-1.37,13.4675,13.4675,0,0,1,.54-1.88,11.06776,11.06776,0,0,1,.69-1.26c.02-.04.12-.2.23-.38.01-.01.01-.01.01-.02.15-.17.3-.35.46-.51.27-.3.56-.56.85-.83a18.02212,18.02212,0,0,1,1.75-1.01,19.48061,19.48061,0,0,1,2.93-.79,24.98945,24.98945,0,0,1,4.41.04,30.30134,30.30134,0,0,1,4.1,1.01,36.94452,36.94452,0,0,1-2.77,4.54C270.6231,604.746,270.58312,604.806,270.54308,604.856Zm-11.12-3.29a2.18029,2.18029,0,0,1-.31.38995A1.40868,1.40868,0,0,1,259.42309,601.566Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("path",{d:"M402.86309,482.136q-.13494,4.71-.27,9.42-.285,10.455-.59,20.92-.315,11.775-.66,23.54-.165,6.07507-.34,12.15-.465,16.365-.92,32.72c-.03,1.13-.07,2.25-.1,3.38q-.225,8.11506-.45,16.23-.255,8.805-.5,17.61-.18,6.59994-.37,13.21-1.34994,47.895-2.7,95.79a7.64844,7.64844,0,0,1-7.5,7.5,7.56114,7.56114,0,0,1-7.5-7.5q.75-26.94,1.52-53.88.675-24.36,1.37-48.72.225-8.025.45-16.06.345-12.09.68-24.18c.03-1.13.07-2.25.1-3.38.02-.99.05-1.97.08-2.96q.66-23.475,1.32-46.96.27-9.24.52-18.49.3-10.545.6-21.08c.09-3.09.17005-6.17.26-9.26a7.64844,7.64844,0,0,1,7.5-7.5A7.56116,7.56116,0,0,1,402.86309,482.136Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("path",{d:"M814.29118,484.2172a893.23753,893.23753,0,0,1-28.16112,87.94127c-3.007,7.94641-6.08319,15.877-9.3715,23.71185l.75606-1.7916a54.58274,54.58274,0,0,1-5.58953,10.61184q-.22935.32119-.46685.63642,1.16559-1.49043.4428-.589c-.25405.30065-.5049.60219-.7676.89546a23.66436,23.66436,0,0,1-2.2489,2.20318q-.30139.25767-.61188.5043l.93783-.729c-.10884.25668-.87275.59747-1.11067.74287a18.25362,18.25362,0,0,1-2.40479,1.21853l1.7916-.75606a19.0859,19.0859,0,0,1-4.23122,1.16069l1.9938-.26791a17.02055,17.02055,0,0,1-4.29785.046l1.99379.2679a14.0022,14.0022,0,0,1-3.40493-.917l1.79159.75606a12.01175,12.01175,0,0,1-1.67882-.89614c-.27135-.17688-1.10526-.80852-.01487.02461,1.13336.86595.14562.07434-.08763-.15584-.19427-.19171-.36962-.4-.55974-.595-.88208-.90454.99637,1.55662.39689.49858a18.18179,18.18179,0,0,1-.87827-1.63672l.75606,1.7916a11.92493,11.92493,0,0,1-.728-2.65143l.26791,1.9938a13.65147,13.65147,0,0,1-.00316-3.40491l-.2679,1.9938a15.96371,15.96371,0,0,1,.99486-3.68011l-.75606,1.7916a16.72914,16.72914,0,0,1,1.17794-2.29848,6.72934,6.72934,0,0,1,.72851-1.0714c.04915.01594-1.26865,1.51278-.56937.757.1829-.19767.354-.40592.539-.602.29617-.31382.61354-.60082.92561-.89791,1.04458-.99442-1.46188.966-.25652.17907a19.0489,19.0489,0,0,1,2.74925-1.49923l-1.79159.75606a20.31136,20.31136,0,0,1,4.99523-1.33984l-1.9938.2679a25.62828,25.62828,0,0,1,6.46062.07647l-1.9938-.2679a33.21056,33.21056,0,0,1,7.89178,2.2199l-1.7916-.75606c5.38965,2.31383,10.16308,5.74926,14.928,9.118a111.94962,111.94962,0,0,0,14.50615,8.9065,108.38849,108.38849,0,0,0,34.62226,10.47371,103.93268,103.93268,0,0,0,92.58557-36.75192,8.07773,8.07773,0,0,0,2.1967-5.3033,7.63232,7.63232,0,0,0-2.1967-5.3033c-2.75154-2.52586-7.94926-3.239-10.6066,0a95.63575,95.63575,0,0,1-8.10664,8.72692q-2.01736,1.914-4.14232,3.70983-1.21364,1.02588-2.46086,2.01121c-.3934.31081-1.61863,1.13807.26309-.19744-.43135.30614-.845.64036-1.27058.95478a99.26881,99.26881,0,0,1-20.33215,11.56478l1.79159-.75606a96.8364,96.8364,0,0,1-24.17119,6.62249l1.99379-.2679a97.64308,97.64308,0,0,1-25.75362-.03807l1.99379.2679a99.79982,99.79982,0,0,1-24.857-6.77027l1.7916.75607a116.02515,116.02515,0,0,1-21.7364-12.59112,86.87725,86.87725,0,0,0-11.113-6.99417,42.8238,42.8238,0,0,0-14.43784-4.38851c-9.43884-1.11076-19.0571,2.56562-24.24624,10.72035-4.77557,7.50482-4.71394,18.24362,1.97369,24.62519,6.8877,6.5725,17.31846,6.51693,25.43556,2.40567,7.81741-3.95946,12.51288-12.18539,15.815-19.94186,7.43109-17.45514,14.01023-35.31364,20.1399-53.263q9.09651-26.63712,16.49855-53.81332.91661-3.36581,1.80683-6.73869c1.001-3.78869-1.26094-8.32-5.23829-9.22589a7.63317,7.63317,0,0,0-9.22589,5.23829Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("path",{d:"M889.12382,482.13557l-2.69954,95.79311-2.68548,95.29418-1.5185,53.88362a7.56465,7.56465,0,0,0,7.5,7.5,7.64923,7.64923,0,0,0,7.5-7.5l2.69955-95.79311,2.68548-95.29418,1.51849-53.88362a7.56465,7.56465,0,0,0-7.5-7.5,7.64923,7.64923,0,0,0-7.5,7.5Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("path",{d:"M629.52566,700.36106h2.32885V594.31942h54.32863v-2.32291H631.85451V547.25214H673.8102q-.92256-1.17339-1.89893-2.31694H631.85451V515.38231c-.7703-.32846-1.54659-.64493-2.32885-.9435V544.9352h-45.652V507.07c-.78227.03583-1.55258.08959-2.3289.15527v37.71h-36.4201V516.68409c-.78227.34636-1.55258.71061-2.31694,1.0928V544.9352h-30.6158v2.31694h30.6158v44.74437h-30.6158v2.32291h30.6158V700.36106h2.31694V594.31942a36.41283,36.41283,0,0,1,36.4201,36.42007v69.62157h2.3289V594.31942h45.652Zm-84.401-108.36455V547.25214h36.4201v44.74437Zm38.749,0V547.25214h.91362a44.74135,44.74135,0,0,1,44.73842,44.74437Z",transform:"translate(-169.93432 -164.42601)",opacity:.2}),g.createElement("path",{d:"M615.30309,668.566a63.05854,63.05854,0,0,1-20.05,33.7c-.74.64-1.48,1.26-2.25,1.87q-2.805.25506-5.57.52c-1.53.14-3.04.29-4.54.43l-.27.03-.19-1.64-.76-6.64a37.623,37.623,0,0,1-3.3-32.44c2.64-7.12,7.42-13.41,12.12-19.65,6.49-8.62,12.8-17.14,13.03-27.65a60.54415,60.54415,0,0,1,7.9,13.33,16.432,16.432,0,0,0-5.12,3.76995c-.41.45-.82,1.08-.54,1.62006.24.46.84.57,1.36.62994,1.25.13,2.51.26,3.76.39,1,.11,2,.21,3,.32a63.99025,63.99025,0,0,1,2.45,12.18A61.18851,61.18851,0,0,1,615.30309,668.566Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("path",{d:"M648.50311,642.356c-5.9,4.29-9.35,10.46-12.03,17.26a16.62776,16.62776,0,0,0-7.17,4.58c-.41.45-.82,1.08-.54,1.62006.24.46.84.57,1.36.62994,1.25.13,2.51.26,3.76.39-2.68,8.04-5.14,16.36-9.88,23.15a36.98942,36.98942,0,0,1-12.03,10.91,38.49166,38.49166,0,0,1-4.02,1.99q-7.62.585-14.95,1.25-2.805.25506-5.57.52c-1.53.14-3.04.29-4.54.43q-.015-.825,0-1.65a63.30382,63.30382,0,0,1,15.25-39.86c.45-.52.91-1.03,1.38-1.54a61.7925,61.7925,0,0,1,16.81-12.7A62.65425,62.65425,0,0,1,648.50311,642.356Z",transform:"translate(-169.93432 -164.42601)",fill:"#6c63ff"}),g.createElement("path",{d:"M589.16308,699.526l-1.15,3.4-.58,1.73c-1.53.14-3.04.29-4.54.43l-.27.03c-1.66.17-3.31.34-4.96.51-.43-.5-.86-1.01-1.28-1.53a62.03045,62.03045,0,0,1,8.07-87.11c-1.32,6.91.22,13.53,2.75,20.1-.27.11-.53.22-.78.34a16.432,16.432,0,0,0-5.12,3.76995c-.41.45-.82,1.08-.54,1.62006.24.46.84.57,1.36.62994,1.25.13,2.51.26,3.76.39,1,.11,2,.21,3,.32q.705.075,1.41.15c.07.15.13.29.2.44,2.85,6.18,5.92,12.39,7.65,18.83a43.66591,43.66591,0,0,1,1.02,4.91A37.604,37.604,0,0,1,589.16308,699.526Z",transform:"translate(-169.93432 -164.42601)",fill:"#6c63ff"}),g.createElement("path",{d:"M689.82123,554.48655c-8.60876-16.79219-21.94605-30.92088-37.63219-41.30357a114.2374,114.2374,0,0,0-52.5626-18.37992q-3.69043-.33535-7.399-.39281c-2.92141-.04371-46.866,12.63176-61.58712,22.98214a114.29462,114.29462,0,0,0-35.333,39.527,102.49972,102.49972,0,0,0-12.12557,51.6334,113.56387,113.56387,0,0,0,14.70268,51.47577,110.47507,110.47507,0,0,0,36.44425,38.74592C549.66655,708.561,565.07375,734.51,583.1831,735.426c18.24576.923,39.05418-23.55495,55.6951-30.98707a104.42533,104.42533,0,0,0,41.72554-34.005,110.24964,110.24964,0,0,0,19.599-48.94777c2.57368-18.08313,1.37415-36.73271-4.80123-54.01627a111.85969,111.85969,0,0,0-5.58024-12.9833c-1.77961-3.50519-6.996-4.7959-10.26142-2.69063a7.67979,7.67979,0,0,0-2.69064,10.26142q1.56766,3.08773,2.91536,6.27758l-.75606-1.7916a101.15088,101.15088,0,0,1,6.87641,25.53816l-.26791-1.99379a109.2286,109.2286,0,0,1-.06613,28.68252l.26791-1.9938a109.73379,109.73379,0,0,1-7.55462,27.67419l.75606-1.79159a104.212,104.212,0,0,1-6.67151,13.09835q-1.92308,3.18563-4.08062,6.22159c-.63172.8881-1.28287,1.761-1.939,2.63114-.85625,1.13555,1.16691-1.48321.28228-.36941-.15068.18972-.30049.3801-.45182.5693q-.68121.85165-1.3818,1.68765a93.61337,93.61337,0,0,1-10.17647,10.38359q-1.36615,1.19232-2.77786,2.33115c-.46871.37832-.932.77269-1.42079,1.12472.01861-.0134,1.57956-1.19945.65556-.511-.2905.21644-.57851.43619-.86961.65184q-2.90994,2.1558-5.97433,4.092a103.48509,103.48509,0,0,1-14.75565,7.7131l1.7916-.75606a109.21493,109.21493,0,0,1-27.59663,7.55154l1.9938-.26791a108.15361,108.15361,0,0,1-28.58907.0506l1.99379.2679a99.835,99.835,0,0,1-25.09531-6.78448l1.79159.75607a93.64314,93.64314,0,0,1-13.41605-6.99094q-3.17437-2-6.18358-4.24743c-.2862-.21359-.56992-.43038-.855-.64549-.9155-.69088.65765.50965.67021.51787a19.16864,19.16864,0,0,1-1.535-1.22469q-1.45353-1.18358-2.86136-2.4218a101.98931,101.98931,0,0,1-10.49319-10.70945q-1.21308-1.43379-2.37407-2.91054c-.33524-.4263-.9465-1.29026.40424.5289-.17775-.23939-.36206-.47414-.54159-.71223q-.64657-.85751-1.27568-1.72793-2.203-3.048-4.18787-6.24586a109.29037,109.29037,0,0,1-7.8054-15.10831l.75606,1.7916a106.58753,106.58753,0,0,1-7.34039-26.837l.26791,1.9938a97.86589,97.86589,0,0,1-.04843-25.63587l-.2679,1.9938A94.673,94.673,0,0,1,505.27587,570.55l-.75606,1.7916a101.55725,101.55725,0,0,1,7.19519-13.85624q2.0655-3.32328,4.37767-6.4847.52528-.71832,1.06244-1.42786c.324-.4279,1.215-1.49333-.30537.38842.14906-.18449.29252-.37428.43942-.56041q1.26882-1.60756,2.59959-3.1649A107.40164,107.40164,0,0,1,530.772,536.21508q1.47408-1.29171,2.99464-2.52906.6909-.56218,1.39108-1.11284c.18664-.14673.37574-.29073.56152-.43858-1.99743,1.58953-.555.43261-.10157.09288q3.13393-2.34833,6.43534-4.46134a103.64393,103.64393,0,0,1,15.38655-8.10791l-1.7916.75606c7.76008-3.25839,42.14086-10.9492,48.394-10.10973l-1.99379-.26791A106.22471,106.22471,0,0,1,628.768,517.419l-1.7916-.75606a110.31334,110.31334,0,0,1,12.6002,6.32922q3.04344,1.78405,5.96742,3.76252,1.38351.93658,2.73809,1.915.677.48917,1.34626.98885c.24789.185.49386.37253.74135.558,1.03924.779-1.43148-1.1281-.34209-.26655a110.84261,110.84261,0,0,1,10.36783,9.2532q2.401,2.445,4.63686,5.04515,1.14659,1.33419,2.24643,2.70757c.36436.45495,1.60506,2.101.08448.08457.37165.49285.74744.98239,1.11436,1.47884a97.97718,97.97718,0,0,1,8.39161,13.53807c1.79317,3.49775,6.98675,4.80186,10.26142,2.69064A7.67666,7.67666,0,0,0,689.82123,554.48655Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("path",{d:"M602.43116,676.88167a3.77983,3.77983,0,0,1-2.73939-6.55137c.09531-.37882.16368-.65085.259-1.02968q-.05115-.12366-.1029-.24717c-3.47987-8.29769-25.685,14.83336-26.645,22.63179a30.029,30.029,0,0,0,.52714,10.32752A120.39223,120.39223,0,0,1,562.77838,652.01a116.20247,116.20247,0,0,1,.72078-12.96332q.59712-5.293,1.65679-10.51055a121.78667,121.78667,0,0,1,24.1515-51.61646c6.87378.38364,12.898-.66348,13.47967-13.98532.10346-2.36972,1.86113-4.42156,2.24841-6.756-.65621.08607-1.32321.13985-1.97941.18285-.20444.0107-.41958.02149-.624.03228l-.07709.00346a3.745,3.745,0,0,1-3.07566-6.10115q.425-.52305.85054-1.04557c.43036-.53793.87143-1.06507,1.30171-1.60292a1.865,1.865,0,0,0,.13986-.16144c.49494-.61322.98971-1.21564,1.48465-1.82885a10.82911,10.82911,0,0,0-3.55014-3.43169c-4.95941-2.90463-11.80146-.89293-15.38389,3.59313-3.59313,4.486-4.27083,10.77947-3.023,16.3843a43.39764,43.39764,0,0,0,6.003,13.3828c-.269.34429-.54872.67779-.81765,1.02209a122.57366,122.57366,0,0,0-12.79359,20.2681c1.0163-7.93863-11.41159-36.60795-16.21776-42.68052-5.773-7.29409-17.61108-4.11077-18.62815,5.13562q-.01476.13428-.02884.26849,1.07082.60411,2.0964,1.28237a5.12707,5.12707,0,0,1-2.06713,9.33031l-.10452.01613c-9.55573,13.64367,21.07745,49.1547,28.74518,41.18139a125.11045,125.11045,0,0,0-6.73449,31.69282,118.66429,118.66429,0,0,0,.08607,19.15986l-.03231-.22593C558.90163,648.154,529.674,627.51374,521.139,629.233c-4.91675.99041-9.75952.76525-9.01293,5.72484q.01788.11874.03635.2375a34.4418,34.4418,0,0,1,3.862,1.86105q1.07082.60423,2.09639,1.28237a5.12712,5.12712,0,0,1-2.06712,9.33039l-.10464.01606c-.07528.01079-.13987.02157-.21507.03237-4.34967,14.96631,27.90735,39.12,47.5177,31.43461h.01081a125.07484,125.07484,0,0,0,8.402,24.52806H601.679c.10765-.3335.20443-.67779.3013-1.01129a34.102,34.102,0,0,1-8.30521-.49477c2.22693-2.73257,4.45377-5.48664,6.6807-8.21913a1.86122,1.86122,0,0,0,.13986-.16135c1.12956-1.39849,2.26992-2.78627,3.39948-4.18476l.00061-.00173a49.95232,49.95232,0,0,0-1.46367-12.72495Zm-34.37066-67.613.0158-.02133-.0158.04282Zm-6.64832,59.93237-.25822-.58084c.01079-.41957.01079-.83914,0-1.26942,0-.11845-.0215-.23672-.0215-.35508.09678.74228.18285,1.48464.29042,2.22692Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("circle",{cx:95.24878,cy:439,r:11,fill:"#3f3d56"}),g.createElement("circle",{cx:227.24878,cy:559,r:11,fill:"#3f3d56"}),g.createElement("circle",{cx:728.24878,cy:559,r:11,fill:"#3f3d56"}),g.createElement("circle",{cx:755.24878,cy:419,r:11,fill:"#3f3d56"}),g.createElement("circle",{cx:723.24878,cy:317,r:11,fill:"#3f3d56"}),g.createElement("path",{d:"M434.1831,583.426a10.949,10.949,0,1,1-.21-2.16A10.9921,10.9921,0,0,1,434.1831,583.426Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("circle",{cx:484.24878,cy:349,r:11,fill:"#3f3d56"}),g.createElement("path",{d:"M545.1831,513.426a10.949,10.949,0,1,1-.21-2.16A10.9921,10.9921,0,0,1,545.1831,513.426Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("path",{d:"M403.1831,481.426a10.949,10.949,0,1,1-.21-2.16A10.9921,10.9921,0,0,1,403.1831,481.426Z",transform:"translate(-169.93432 -164.42601)",fill:"#3f3d56"}),g.createElement("circle",{cx:599.24878,cy:443,r:11,fill:"#3f3d56"}),g.createElement("circle",{cx:426.24878,cy:338,r:16,fill:"#3f3d56"}),g.createElement("path",{d:"M1028.875,735.26666l-857.75.30733a1.19068,1.19068,0,1,1,0-2.38136l857.75-.30734a1.19069,1.19069,0,0,1,0,2.38137Z",transform:"translate(-169.93432 -164.42601)",fill:"#cacaca"})),kN=g.forwardRef(LN),jN=()=>y.jsx("div",{className:"not-found",children:y.jsx(kN,{})}),_N=()=>{const{path:t}=_s(),e=Vn();return g.useEffect(()=>{const a=decodeURIComponent(t);e(a)},[t,e]),y.jsx(Ar,{})},UN=({title:t,titleId:e,...a},i)=>g.createElement("svg",{width:305,height:212,viewBox:"0 0 305 212",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M46.4492 47.0404C57.0249 42.5465 70.1971 45.3938 83.0611 47.3699C83.1808 44.9768 84.6318 42.0643 83.1119 40.3948C81.2653 38.3664 81.4353 36.2352 82.5465 34.0917C85.388 28.6105 81.3169 22.7781 77.2064 17.9286C76.2799 16.838 75.109 15.9811 73.7887 15.4275C72.4685 14.8739 71.0362 14.6392 69.6081 14.7425L61.9937 15.2859C60.1408 15.4181 58.3725 16.1125 56.9255 17.2761C55.4784 18.4398 54.4216 20.0172 53.8964 21.7973C52.0783 24.2677 51.1051 26.7312 51.7178 29.182C48.9945 31.0412 48.5369 33.2856 49.7607 35.8157C50.7984 37.4088 50.7873 38.9594 49.7135 40.4672C48.3032 42.3895 47.223 44.5329 46.5173 46.8096L46.4492 47.0404Z",fill:"#2F2E41"}),g.createElement("path",{d:"M297.773 183.271H82.2273C80.3105 183.271 78.4722 182.51 77.1168 181.156C75.7614 179.802 75 177.965 75 176.05C153.135 166.978 229.802 166.978 305 176.05C305 177.965 304.239 179.802 302.883 181.156C301.528 182.51 299.689 183.271 297.773 183.271Z",fill:"#2F2E41"}),g.createElement("path",{d:"M305 176.474L75 176.049L101.656 131.24L101.784 131.028V32.2739C101.784 31.0753 102.02 29.8883 102.479 28.7809C102.938 27.6734 103.611 26.6672 104.459 25.8196C105.308 24.972 106.315 24.2997 107.424 23.8411C108.532 23.3824 109.72 23.1464 110.92 23.1465H267.805C269.004 23.1464 270.193 23.3824 271.301 23.8411C272.41 24.2997 273.417 24.972 274.265 25.8196C275.114 26.6672 275.786 27.6734 276.246 28.7809C276.705 29.8883 276.941 31.0753 276.941 32.2739V131.707L305 176.474Z",fill:"#3F3D56"}),g.createElement("path",{d:"M110.708 29.5195C109.919 29.5204 109.163 29.8339 108.605 30.3913C108.047 30.9487 107.733 31.7044 107.732 32.4926V122.535C107.733 123.323 108.047 124.079 108.605 124.636C109.163 125.194 109.919 125.507 110.708 125.508H269.285C270.074 125.507 270.83 125.194 271.388 124.636C271.946 124.079 272.26 123.323 272.261 122.535V32.4926C272.26 31.7044 271.946 30.9487 271.388 30.3914C270.831 29.834 270.074 29.5205 269.285 29.5195H110.708Z",fill:"white"}),g.createElement("path",{d:"M111.378 137.398C111.134 137.399 110.895 137.469 110.69 137.6C110.485 137.732 110.321 137.919 110.219 138.14L102.005 155.979C101.916 156.173 101.877 156.386 101.892 156.599C101.907 156.813 101.975 157.019 102.09 157.199C102.206 157.379 102.364 157.527 102.552 157.629C102.74 157.732 102.95 157.785 103.164 157.785H275.892C276.109 157.785 276.323 157.73 276.513 157.624C276.703 157.518 276.862 157.366 276.977 157.181C277.091 156.996 277.156 156.785 277.166 156.568C277.175 156.351 277.129 156.136 277.032 155.941L268.104 138.103C267.999 137.891 267.836 137.712 267.635 137.588C267.433 137.463 267.201 137.398 266.964 137.398H111.378Z",fill:"#2F2E41"}),g.createElement("path",{d:"M189.362 28.0315C190.419 28.0315 191.275 27.1758 191.275 26.1203C191.275 25.0647 190.419 24.209 189.362 24.209C188.306 24.209 187.449 25.0647 187.449 26.1203C187.449 27.1758 188.306 28.0315 189.362 28.0315Z",fill:"white"}),g.createElement("path",{d:"M172.386 161.186C172.106 161.186 171.834 161.278 171.611 161.449C171.389 161.619 171.228 161.858 171.155 162.128L169.095 169.773C169.044 169.962 169.037 170.16 169.075 170.352C169.113 170.544 169.195 170.725 169.314 170.88C169.433 171.035 169.586 171.161 169.762 171.247C169.937 171.334 170.13 171.379 170.326 171.379H209.508C209.712 171.379 209.912 171.33 210.093 171.237C210.274 171.144 210.429 171.009 210.547 170.844C210.665 170.678 210.742 170.487 210.771 170.286C210.8 170.085 210.78 169.88 210.713 169.688L208.064 162.043C207.978 161.793 207.815 161.576 207.599 161.422C207.383 161.268 207.124 161.186 206.859 161.186H172.386Z",fill:"#2F2E41"}),g.createElement("path",{d:"M276.943 129.543V131.242H101.658L101.79 131.03V129.543H276.943Z",fill:"#2F2E41"}),g.createElement("path",{d:"M272.053 59.4621C288.489 59.4621 301.812 46.151 301.812 29.731C301.812 13.311 288.489 0 272.053 0C255.617 0 242.293 13.311 242.293 29.731C242.293 46.151 255.617 59.4621 272.053 59.4621Z",fill:"#008939"}),g.createElement("path",{d:"M284.382 42.6852H259.724C259.273 42.6848 258.841 42.5057 258.522 42.1871C258.203 41.8686 258.024 41.4368 258.023 40.9863V26.1208C258.024 25.6704 258.203 25.2385 258.522 24.92C258.841 24.6015 259.273 24.4224 259.724 24.4219H284.382C284.833 24.4224 285.265 24.6015 285.584 24.92C285.903 25.2385 286.082 25.6704 286.083 26.1208V40.9863C286.082 41.4367 285.903 41.8686 285.584 42.1871C285.265 42.5057 284.833 42.6848 284.382 42.6852ZM259.724 26.1208V40.9863H284.383L284.382 26.1208L259.724 26.1208Z",fill:"white"}),g.createElement("path",{d:"M279.705 26.1203H264.4V19.3247C264.4 14.4025 267.619 10.8301 272.053 10.8301C276.487 10.8301 279.705 14.4025 279.705 19.3247L279.705 26.1203ZM266.101 24.4214H278.005V19.3247C278.005 15.3235 275.557 12.529 272.053 12.529C268.548 12.529 266.101 15.3235 266.101 19.3247L266.101 24.4214Z",fill:"white"}),g.createElement("path",{d:"M272.052 34.8295C272.991 34.8295 273.753 34.0688 273.753 33.1306C273.753 32.1923 272.991 31.4316 272.052 31.4316C271.113 31.4316 270.352 32.1923 270.352 33.1306C270.352 34.0688 271.113 34.8295 272.052 34.8295Z",fill:"white"}),g.createElement("path",{d:"M251.28 94.9663H128.727C128.125 94.9656 127.548 94.7265 127.123 94.3014C126.697 93.8764 126.458 93.3001 126.457 92.699V62.3279C126.458 61.7268 126.697 61.1505 127.123 60.7254C127.548 60.3004 128.125 60.0613 128.727 60.0605H251.28C251.882 60.0613 252.459 60.3004 252.884 60.7254C253.31 61.1505 253.549 61.7268 253.55 62.3279V92.699C253.549 93.3001 253.31 93.8764 252.884 94.3014C252.459 94.7265 251.882 94.9656 251.28 94.9663ZM128.727 60.9675C128.366 60.9679 128.019 61.1113 127.764 61.3664C127.509 61.6214 127.365 61.9672 127.365 62.3279V92.699C127.365 93.0596 127.509 93.4054 127.764 93.6605C128.019 93.9155 128.366 94.059 128.727 94.0594H251.28C251.641 94.059 251.987 93.9155 252.243 93.6605C252.498 93.4054 252.642 93.0596 252.642 92.699V62.3279C252.642 61.9672 252.498 61.6214 252.243 61.3664C251.987 61.1113 251.641 60.9679 251.28 60.9675L128.727 60.9675Z",fill:"#E6E6E6"}),g.createElement("path",{d:"M147.766 85.585C152.872 85.585 157.011 81.45 157.011 76.3492C157.011 71.2483 152.872 67.1133 147.766 67.1133C142.661 67.1133 138.521 71.2483 138.521 76.3492C138.521 81.45 142.661 85.585 147.766 85.585Z",fill:"#E6E6E6"}),g.createElement("path",{d:"M169.115 70.1914C168.913 70.1911 168.712 70.2307 168.525 70.3079C168.338 70.3851 168.168 70.4984 168.024 70.6414C167.881 70.7844 167.767 70.9542 167.69 71.1411C167.612 71.328 167.572 71.5284 167.572 71.7307C167.572 71.9331 167.612 72.1334 167.69 72.3204C167.767 72.5073 167.881 72.6771 168.024 72.82C168.168 72.963 168.338 73.0763 168.525 73.1536C168.712 73.2308 168.913 73.2704 169.115 73.27H241.753C242.162 73.27 242.554 73.1079 242.843 72.8192C243.132 72.5305 243.294 72.139 243.294 71.7307C243.294 71.3225 243.132 70.9309 242.843 70.6423C242.554 70.3536 242.162 70.1914 241.753 70.1914H169.115Z",fill:"#E6E6E6"}),g.createElement("path",{d:"M169.113 79.4277C168.704 79.4277 168.313 79.5899 168.024 79.8786C167.735 80.1673 167.572 80.5588 167.572 80.967C167.572 81.3753 167.735 81.7668 168.024 82.0555C168.313 82.3442 168.704 82.5064 169.113 82.5064H200.369C200.778 82.5064 201.17 82.3442 201.459 82.0555C201.748 81.7668 201.91 81.3753 201.91 80.967C201.91 80.5588 201.748 80.1673 201.459 79.8786C201.17 79.5899 200.778 79.4277 200.369 79.4277H169.113Z",fill:"#E6E6E6"}),g.createElement("path",{d:"M101.354 80.0472L78.6989 92.0801L78.4121 82.0527C85.8065 80.8195 92.8416 78.6724 99.3465 75.1768L101.716 69.3286C101.974 68.6913 102.394 68.1321 102.934 67.7058C103.473 67.2795 104.115 67.0008 104.795 66.897C105.476 66.7932 106.171 66.8679 106.814 67.1138C107.456 67.3598 108.024 67.7684 108.461 68.2996C109.1 69.0769 109.419 70.0677 109.354 71.0715C109.289 72.0752 108.845 73.0168 108.111 73.7055L101.354 80.0472Z",fill:"#FFB8B8"}),g.createElement("path",{d:"M46.0025 149.523C45.8372 148.917 45.8021 148.284 45.8995 147.664C45.9969 147.043 46.2246 146.451 46.5676 145.925L51.5443 138.295C52.7213 136.49 54.5275 135.187 56.6123 134.637C58.6971 134.088 60.9119 134.331 62.8269 135.321C60.7354 138.878 61.027 141.998 63.5493 144.71C59.6337 146.619 56.0148 149.084 52.8046 152.028C52.2186 152.427 51.5456 152.68 50.8416 152.767C50.1377 152.853 49.4232 152.771 48.7577 152.526C48.0922 152.281 47.495 151.88 47.0157 151.358C46.5365 150.836 46.1891 150.206 46.0025 149.523Z",fill:"#2F2E41"}),g.createElement("path",{d:"M102.386 139.547C101.633 140.8 100.57 141.84 99.2992 142.565C98.0282 143.291 96.592 143.677 95.1283 143.688L62.0667 143.939L60.6328 135.63L75.2582 131.333L62.927 121.878L76.4053 106.121L100.886 128.916C102.317 130.248 103.247 132.031 103.52 133.966C103.793 135.901 103.393 137.871 102.386 139.547Z",fill:"#2F2E41"}),g.createElement("path",{d:"M56.9026 196.365H49.1598C42.2078 148.758 35.1314 101.018 56.0423 83.1992L80.7047 87.2102L77.5503 108.124L63.7852 123.882L56.9026 196.365Z",fill:"#2F2E41"}),g.createElement("path",{d:"M63.7118 207.15C63.1056 207.315 62.4714 207.35 61.8507 207.253C61.23 207.156 60.6369 206.928 60.1105 206.586L51.7034 205.457C49.8969 204.281 48.5919 202.477 48.0418 200.394C47.4916 198.311 47.7355 196.098 48.7261 194.185C52.2864 196.274 55.4096 195.983 58.1236 193.463C60.0413 197.331 63.2009 197.095 66.2184 200.354C66.618 200.94 66.8717 201.612 66.9585 202.315C67.0453 203.019 66.9626 203.732 66.7174 204.397C66.4721 205.062 66.0714 205.659 65.5486 206.138C65.0258 206.616 64.396 206.964 63.7118 207.15Z",fill:"#2F2E41"}),g.createElement("path",{d:"M75.2566 51.3991L60.918 47.9611C63.2994 43.0913 63.4955 37.6725 62.3518 31.9174L72.1021 31.6309C72.4076 38.7876 73.3319 45.4737 75.2566 51.3991Z",fill:"#FFB8B8"}),g.createElement("path",{d:"M79.2016 95.8389C68.7636 102.945 61.3884 96.082 55.7603 85.4937C56.5424 79.0146 55.2761 71.2611 52.9308 62.8362C51.8878 59.1203 52.2772 55.1487 54.0221 51.7055C55.7671 48.2624 58.7407 45.598 62.3561 44.2383L74.6873 49.3952C85.1579 57.9218 87.2188 67.1577 83.2904 76.8989L79.2016 95.8389Z",fill:"#008939"}),g.createElement("path",{d:"M49.1614 58.5627L37.6905 64.5792L58.0513 76.612L60.8844 83.5935C61.0735 84.0595 61.1656 84.5591 61.1551 85.0618C61.1446 85.5645 61.0318 86.0598 60.8235 86.5175C60.6151 86.9752 60.3156 87.3858 59.9433 87.7241C59.571 88.0624 59.1336 88.3214 58.6577 88.4853C58.1169 88.6716 57.5402 88.7304 56.9728 88.6568C56.4054 88.5833 55.8628 88.3796 55.3874 88.0616C54.912 87.7436 54.5167 87.32 54.2326 86.8239C53.9484 86.3278 53.7831 85.7728 53.7495 85.2022L53.463 80.3364L27.5846 71.8048C26.7127 71.5174 25.9177 71.0354 25.2598 70.3956C24.6019 69.7557 24.0984 68.9747 23.7874 68.1116C23.3341 66.8536 23.311 65.481 23.7218 64.2084C24.1326 62.9359 24.954 61.8354 26.0576 61.079L46.8672 46.8164L49.1614 58.5627Z",fill:"#FFB8B8"}),g.createElement("path",{d:"M60.6361 59.708C55.852 57.6134 51.5017 59.8887 46.0107 61.7134L45.1504 46.5291C50.6027 43.6259 55.8012 42.8432 60.6361 45.0967L60.6361 59.708Z",fill:"#008939"}),g.createElement("path",{d:"M66.3578 39.153C71.4138 39.153 75.5124 35.0583 75.5124 30.0072C75.5124 24.9561 71.4138 20.8613 66.3578 20.8613C61.3018 20.8613 57.2031 24.9561 57.2031 30.0072C57.2031 35.0583 61.3018 39.153 66.3578 39.153Z",fill:"#FFB8B8"}),g.createElement("path",{d:"M77.3084 28.8531C68.2445 29.74 61.3379 28.259 56.9238 24.0423V20.6465H76.5392L77.3084 28.8531Z",fill:"#2F2E41"})),qN=g.forwardRef(UN),zN=t=>y.jsx("div",{className:"background",children:t.children}),PN=()=>{const t=Vn(),e=()=>{const a=document.createElement("a");a.href=L.t("landing.institutions.contactMail"),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)};return y.jsxs("div",{className:"about-container",children:[y.jsxs("div",{className:"about",children:[y.jsxs("div",{className:"top",children:[y.jsx("h1",{className:"title large",children:L.t("landing.header.title")}),y.jsx("p",{dangerouslySetInnerHTML:{__html:L.t("landing.header.subTitle")}})]}),y.jsx(qN,{})]}),y.jsx(zN,{children:y.jsxs("div",{className:"cards",children:[y.jsxs("div",{className:"card",children:[y.jsx("h3",{children:L.t("landing.applicationProviders.title")}),L.translations[L.locale].landing.applicationProviders.info.map((a,i)=>y.jsx("p",{dangerouslySetInnerHTML:{__html:a}},i)),y.jsx(yt,{onClick:()=>t("/connect"),txt:L.t("landing.applicationProviders.connect")})]}),y.jsxs("div",{className:"card",children:[y.jsx("h3",{children:L.t("landing.institutions.title")}),L.translations[L.locale].landing.institutions.info.map((a,i)=>y.jsx("p",{dangerouslySetInnerHTML:{__html:a}},i)),y.jsx(yt,{onClick:()=>e(),type:Rt.Secondary,txt:L.t("landing.institutions.contact")})]}),y.jsxs("div",{className:"card",children:[y.jsx("h3",{children:L.t("landing.joining.title")}),L.translations[L.locale].landing.joining.info.map((a,i)=>y.jsx("p",{dangerouslySetInnerHTML:{__html:a}},i)),y.jsxs("p",{className:"links",children:[y.jsx("span",{children:L.t("landing.joining.links.prefix")}),y.jsx(Dl,{to:"/institutions",children:L.t("landing.joining.links.institutions",{nbr:210})}),y.jsx("span",{children:L.t("landing.joining.links.or")}),y.jsx(Dl,{to:"/applications",children:L.t("landing.joining.links.applications",{nbr:3211})})]})]})]})})]})},HE=()=>{const t=a=>i=>{Sa(i),qE.set("lang",a,{expires:356,secure:document.location.protocol.endsWith("https")}),L.locale=a,window.location.search=XD(window.location.search,"lang",a)},e=a=>y.jsx("a",{href:"locale",className:`${L.locale===a?"is-active":"not-active"}`,title:L.t("footer.select_locale"),onClick:t(a),children:L.translations[a].code});return y.jsx("nav",{className:"sds--language-switcher sds--text--body--small","aria-label":"Language",children:y.jsxs("ul",{children:[y.jsxs("li",{children:[e("nl"),y.jsx("span",{className:"sds--language-sds--divider",children:"|"})]}),y.jsx("li",{children:e("en")})]})})},HN=()=>y.jsx("footer",{className:"sds--footer sds--footer--single-bar",children:y.jsx("div",{className:"sds--page-container",children:y.jsxs("div",{className:"sds--footer--inner",children:[y.jsx("nav",{className:"menu sds--text--body--small",children:y.jsxs("ul",{children:[y.jsx("li",{children:y.jsx("a",{href:L.t("footer.termsLink"),target:"_blank",rel:"noopener noreferrer",children:y.jsx("span",{children:L.t("footer.terms")})})}),y.jsx("li",{children:y.jsx("a",{href:L.t("footer.privacyLink"),target:"_blank",rel:"noopener noreferrer",children:y.jsx("span",{children:L.t("footer.privacy")})})})]})}),y.jsx(HE,{}),y.jsx("div",{className:"sds--branding",children:y.jsx("a",{href:L.t("footer.surfLink"),target:"_blank",rel:"noopener noreferrer",children:y.jsx(VS,{label:"",position:GS.Bottom})})})]})})}),BN=({title:t,titleId:e,...a},i)=>g.createElement("svg",{width:184,height:130,viewBox:"0 0 184 130",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("rect",{x:.75,width:182.5,height:130,fill:"url(#pattern0_1916_7419)"}),g.createElement("defs",null,g.createElement("pattern",{id:"pattern0_1916_7419",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_1916_7419",transform:"matrix(0.00253406 0 0 0.00355743 -0.312612 -0.302885)"})),g.createElement("image",{id:"image0_1916_7419",width:640,height:373,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64, "}))),FN=g.forwardRef(BN),VN=({title:t,titleId:e,...a},i)=>g.createElement("svg",{className:"image-not-found",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 115.19 123.38",style:{enableBackground:"new 0 0 115.19 123.38"},xmlSpace:"preserve",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("style",{type:"text/css"},".st0{fill-rule:evenodd;clip-rule:evenodd;stroke:#000000;stroke-width:0.5;stroke-miterlimit:2.6131;}"),g.createElement("g",null,g.createElement("path",{className:"st0",d:"M93.13,79.5c12.05,0,21.82,9.77,21.82,21.82c0,12.05-9.77,21.82-21.82,21.82c-12.05,0-21.82-9.77-21.82-21.82 C71.31,89.27,81.08,79.5,93.13,79.5L93.13,79.5z M8.08,0.25h95.28c2.17,0,4.11,0.89,5.53,2.3c1.42,1.42,2.3,3.39,2.3,5.53v70.01 c-2.46-1.91-5.24-3.44-8.25-4.48V9.98c0-0.43-0.16-0.79-0.46-1.05c-0.26-0.26-0.66-0.46-1.05-0.46H9.94 c-0.43,0-0.79,0.16-1.05,0.46C8.63,9.19,8.43,9.58,8.43,9.98v70.02h0.03l31.97-30.61c1.28-1.18,3.29-1.05,4.44,0.23 c0.03,0.03,0.03,0.07,0.07,0.07l26.88,31.8c-4.73,5.18-7.62,12.08-7.62,19.65c0,3.29,0.55,6.45,1.55,9.4H8.08 c-2.17,0-4.11-0.89-5.53-2.3s-2.3-3.39-2.3-5.53V8.08c0-2.17,0.89-4.11,2.3-5.53S5.94,0.25,8.08,0.25L8.08,0.25z M73.98,79.35 l3.71-22.79c0.3-1.71,1.91-2.9,3.62-2.6c0.66,0.1,1.25,0.43,1.71,0.86l17.1,17.97c-2.18-0.52-4.44-0.79-6.78-0.79 C85.91,71.99,79.13,74.77,73.98,79.35L73.98,79.35z M81.98,18.19c3.13,0,5.99,1.28,8.03,3.32c2.07,2.07,3.32,4.9,3.32,8.03 c0,3.13-1.28,5.99-3.32,8.03c-2.07,2.07-4.9,3.32-8.03,3.32c-3.13,0-5.99-1.28-8.03-3.32c-2.07-2.07-3.32-4.9-3.32-8.03 c0-3.13,1.28-5.99,3.32-8.03C76.02,19.44,78.86,18.19,81.98,18.19L81.98,18.19z M85.82,88.05l19.96,21.6 c1.58-2.39,2.5-5.25,2.5-8.33c0-8.36-6.78-15.14-15.14-15.14C90.48,86.17,87.99,86.85,85.82,88.05L85.82,88.05z M100.44,114.58 l-19.96-21.6c-1.58,2.39-2.5,5.25-2.5,8.33c0,8.36,6.78,15.14,15.14,15.14C95.78,116.46,98.27,115.78,100.44,114.58L100.44,114.58z"}))),v4=g.forwardRef(VN),GN=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.4,height:24,viewBox:"0 0 12.4 24",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M.8.8l10.7 10.7c.1.1.1.2.2.2 0 .1.1.2.1.3s0 .2-.1.3c0 .1-.1.2-.2.2L.8 23.2"})),Ou=g.forwardRef(GN),ZN=({title:t,titleId:e,...a},i)=>g.createElement("svg",{className:"menu-icon",width:20,height:5,viewBox:"0 0 20 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M2.5 5C3.88071 5 5 3.88071 5 2.5C5 1.11929 3.88071 0 2.5 0C1.11929 0 0 1.11929 0 2.5C0 3.88071 1.11929 5 2.5 5Z",fill:"#050E1D"}),g.createElement("path",{d:"M9.78906 5C11.1698 5 12.2891 3.88071 12.2891 2.5C12.2891 1.11929 11.1698 0 9.78906 0C8.40835 0 7.28906 1.11929 7.28906 2.5C7.28906 3.88071 8.40835 5 9.78906 5Z",fill:"#050E1D"}),g.createElement("path",{d:"M17.082 5C18.4627 5 19.582 3.88071 19.582 2.5C19.582 1.11929 18.4627 0 17.082 0C15.7013 0 14.582 1.11929 14.582 2.5C14.582 3.88071 15.7013 5 17.082 5Z",fill:"#050E1D"})),BE=g.forwardRef(ZN),WN=({title:t,titleId:e,...a},i)=>g.createElement("svg",{id:"bin",className:"bin-svg",xmlns:"http://www.w3.org/2000/svg",width:22.5,height:22.5,viewBox:"0 0 22.5 22.5",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M.8 3.8h21m-8.3-3H9c-.4 0-.8.2-1.1.4-.2.3-.4.7-.4 1v1.5H15V2.2c0-.4-.2-.8-.4-1.1-.3-.2-.7-.3-1.1-.3zM9 16.5V9m4.5 7.5V9m4.6 11.4c0 .4-.2.7-.5 1s-.6.4-1 .4H5.9c-.4 0-.7-.1-1-.4s-.4-.6-.5-1L3 3.8h16.5l-1.4 16.6z",fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),FE=g.forwardRef(WN);function s1({cancel:t,confirm:e,question:a="",isError:i=!1,disabledConfirm:l=!1,children:o=null,confirmationTxt:c=null,largeWidth:h=!1,confirmationHeader:f=null}){const[m,v]=g.useState(!1);return y.jsx(ZS,{confirm:()=>{v(!0),e()},cancel:t,alertType:null,question:a,isError:i,children:o,title:f,cancelButtonLabel:L.t("confirmationDialog.cancel"),confirmationButtonLabel:c,confirmDisabled:l||m&&t,subTitle:null,full:h})}const YN=({tabNames:t,organization:e,tab:a,setTab:i,setLoading:l})=>{const[o,c]=g.useState(!1),[h,f]=g.useState({}),m=Vn(),v=(I,B)=>{Sa(I),i(B)},b=(I,B)=>{Sa(I),B?f({open:!0,cancel:()=>f({open:!1}),action:()=>b(null,!1),question:L.t("organization.deleteConfirmation",{name:e.name}),okButton:L.t("forms.delete")}):(l(!0),dN(e.id).then(()=>{f({}),m("/home"),l(!1)}))},S=()=>y.jsx("div",{className:"sds--user-info--dropdown",children:y.jsx("ul",{children:y.jsxs("li",{onClick:I=>b(I,!0),children:[y.jsx(FE,{}),y.jsx("a",{href:"/delete",onClick:I=>b(I,!0),children:L.t("forms.delete")})]})})}),{open:A,cancel:w,action:R,question:k,okButton:D}=h;return y.jsxs("div",{className:"application-connection-header-container",children:[A&&y.jsx(s1,{confirm:R,cancel:w,confirmationHeader:L.t("forms.delete"),confirmationTxt:D,question:k}),y.jsxs("div",{className:"top-header",tabIndex:1,onBlur:()=>setTimeout(()=>c(!1),475),children:[y.jsx("h1",{children:e.name}),y.jsxs("span",{className:`menu ${o?"drop-down":""}`,onClick:()=>c(!o),children:[y.jsx(BE,{}),o&&S()]})]}),y.jsx("div",{className:"tabs-menu",children:t.map(I=>y.jsx("a",{href:`/${I}`,className:I===a?"active":"",onClick:B=>v(B,I),children:L.t(`organization.${I}`)},I))})]})},QN=/^[+a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.?[a-zA-Z]*$/,jf=/(https?|ssh|ftp):\/\/(((www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.?[a-z]{0,63})|(localhost))\b([-a-zA-Z0-9@:%_+.~#?&/=]*)/i,Ru=t=>ye(t)||jf.test(t)&&(t.startsWith("https")||t.startsWith("http://localhost")||t.startsWith("http://127.0.0.1")),KN=t=>ye(t)||QN.test(t),JN=(t,e,a)=>{const{motivations:i,additionalAttributes:l,profile:o,profileMotivation:c}=e,h=a.profiles.find(b=>b.name===o.value),f=h.attributes.concat(l),v=a.attributes.filter(b=>f.includes(b.name)).reduce((b,S)=>(b[S.urn]=[{source:S.overrideSource||"idp",value:"*",motivation:i[S.name]||"Default for profile"}],b),{});return{...e,application:{id:t.id},protocol:e.protocol.value,metaData:{redirectUrls:e.redirectUrls,entityID:e.entityID,grantTypes:e.grantTypes,acsLocations:e.acsLocations,contactPersons:e.contactPersons,allowedEntities:e.allowedEntities,pkce:e.pkce,secret:e.secret,visibility:e.visibility,arp:{attributes:v,profile:h.name,motivation:c,enabled:!0}}}},Sf=(t,e,a,i)=>{const{arp:l}=t.metaData,{profile:o,attributes:c,motivation:h}=l,f=e.find(D=>D.value===t.protocol),m=i.profiles.find(D=>D.name===o).attributes,b=i.attributes.filter(D=>m.includes(D.name)).map(D=>D.urn),S=Object.keys(c).filter(D=>!b.includes(D)),A=i.attributes.filter(D=>S.includes(D.urn)),w=A.map(D=>D.name),R=S.reduce((D,I)=>{const B=A.find(Y=>Y.urn===I);return D[B.name]=c[I][0].motivation,D},{}),k=a.find(D=>D.value===o);return{...t,...t.metaData,protocol:f,additionalAttributes:w,profile:k,motivations:R,profileMotivation:h}},XN=()=>"SURFACCESS-"+crypto.randomUUID(),pu=t=>{var e;return!ye(t==null?void 0:t.logoUrl)&&["descriptionEN","descriptionNL","webSite"].every(a=>{var i;return!ye((i=t==null?void 0:t.information)==null?void 0:i[a])})&&Ru((e=t==null?void 0:t.information)==null?void 0:e.webSite)},gu=t=>["technical","support","administrative"].every(e=>{const a=((t==null?void 0:t.contactPersons)||[]).find(i=>i.type===e);return!ye(a==null?void 0:a.name)&&!ye(a==null?void 0:a.email)}),vu=(t,e)=>t.filter(i=>i.required).map(i=>i.name).every(i=>{var l;return!ye((l=e==null?void 0:e.privacy)==null?void 0:l[i])}),Iu=(t,e,a,i)=>(t.metaData.contactPersons=(t.metaData.contactPersons||[]).map(l=>({type:l.type,email:l.email,name:`${l.givenName} ${l.surName}`})),{...t,connections:ye(e)?t.connections:t.connections.map(l=>Sf(l,e,a,i)),information:{},contactPersons:[],privacy:{},...t.metaData}),VE=t=>(t.contactPersons=t.contactPersons.map(e=>{const a=e.name.split(" ");return{type:e.type,email:e.email,givenName:a[0],surName:a.slice(1).join(" ")}}),{...t,connections:null,applicationMemberships:null,metaData:{information:t.information,contactPersons:t.contactPersons,privacy:t.privacy}}),$N=["applications","team","joins"],eL=()=>{const{tab:t="applications"}=_s(),{organizationId:e}=_s(),[a,i]=g.useState(!0),[l,o]=g.useState({}),[c,h]=g.useState(!1),[f,m]=g.useState(t),v=Vn();g.useEffect(()=>{fN(e).then(D=>{D.applications=D.applications.map(I=>Iu(I)),o(D),It.setState({currentOrganization:D,breadcrumbPath:[{path:"/home",value:L.t("breadCrumb.access")},{path:`/organization/${D.id}`,value:D.name},{value:L.t("breadCrumb.applications")}]}),A(f),i(!1)}).catch(()=>{v("/404")})},[e]);const b=()=>c||l.applicationCount>0?null:y.jsx(va,{close:()=>h(!0),alertType:Fn.Info,asChild:!0,message:L.t("organization.alertInfo")}),S=()=>y.jsx(y.Fragment,{children:y.jsxs("div",{className:"organization-container",children:[ye(l.applications)&&y.jsxs("div",{className:"organization",children:[y.jsx("h2",{className:"one-row",children:L.t("organization.applications")}),y.jsxs("div",{className:"left",children:[y.jsx(FN,{}),y.jsx(yt,{onClick:()=>v("/application/new"),txt:L.t("organization.addFirstApplication")})]}),y.jsxs("div",{className:"right",children:[y.jsx("p",{className:"terms",children:L.t("organization.catalog.terms")}),y.jsxs("ul",{children:[y.jsx("li",{children:y.jsx("p",{dangerouslySetInnerHTML:{__html:L.t("organization.catalog.fairUse")}})}),y.jsx("li",{children:y.jsx("p",{dangerouslySetInnerHTML:{__html:L.t("organization.catalog.agreement")}})})]}),y.jsx("p",{dangerouslySetInnerHTML:{__html:L.t("organization.catalog.disclaimer")}})]})]}),!ye(l.applications)&&y.jsxs("div",{className:"applications",children:[y.jsx("h2",{children:L.t("organization.applications")}),l.applications.sort((D,I)=>D.name.toLowerCase().localeCompare(I.name.toLowerCase())).map((D,I)=>y.jsxs("div",{className:"first-application",children:[y.jsxs("div",{className:"application",onClick:()=>v(`/connection/${D.id}`),children:[ye(D.logoUrl)?y.jsx(v4,{}):y.jsx("img",{src:D.logoUrl,alt:D.name}),y.jsxs("div",{className:"application-info",children:[y.jsx("h4",{children:D.name}),D.information.descriptionEN&&y.jsx(WS,{txt:D.information[`description${L.locale.toUpperCase()}`],cutoffNumber:300,moreLabel:L.t("forms.moreLabel"),lessLabel:L.t("forms.lessLabel")}),D.information.webSite&&y.jsx("a",{href:D.information.webSite,className:"web-site",target:"_blank",children:D.information.webSite})]}),y.jsx("span",{className:"navigation",children:y.jsx(Ou,{})})]}),I===0&&y.jsx(yt,{onClick:()=>v("/application/new"),txt:L.t("organization.addApplication")})]},I))]})]})}),A=D=>{m(D),v(`/organization/${e}/${D}`)},w=()=>y.jsx(y.Fragment,{children:y.jsx("div",{className:"organization-container",children:y.jsx("code",{children:JSON.stringify(l.organizationMemberships)})})}),R=()=>y.jsx(y.Fragment,{children:y.jsx("div",{className:"organization-container",children:y.jsx("code",{children:JSON.stringify(l.joinRequests)})})}),k=()=>{switch(f){case"applications":return S();case"team":return w();case"joins":return R();default:throw new Error(`Unknown tab; ${f}`)}};return a?y.jsx(Ar,{}):y.jsxs("div",{className:`organization-outer-container ${ye(l.applications)?"":"with-applications"}`,children:[b(),y.jsx(YN,{organization:l,tab:f,setTab:A,tabNames:$N,setLoading:i}),k()]})},tL=()=>y.jsx("div",{className:"institutions-container",children:y.jsx("div",{className:"institutions",children:y.jsx("p",{children:"TODO institutions"})})}),nL=()=>y.jsx("div",{className:"connect-container",children:y.jsx("div",{className:"connect",children:y.jsx("p",{children:"TODO connect"})})}),rL=()=>y.jsx("div",{className:"applications-container",children:y.jsx("div",{className:"applications",children:y.jsx("p",{children:"TODO applications"})})}),aL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("g",{clipPath:"url(#clip0_1771_9738)"},g.createElement("path",{d:"M15.7461 23.9991C15.3321 23.9991 14.9961 23.6631 14.9961 23.2491V17.9991C14.9961 16.3451 13.6501 14.9991 11.9961 14.9991C10.3421 14.9991 8.99609 16.3451 8.99609 17.9991V23.2461C8.99609 23.6601 8.66009 23.9961 8.24609 23.9961H1.72409C0.774094 23.9941 -0.00090625 23.2191 -0.00390625 22.2701V9.74609C0.0240938 9.20909 0.244094 8.73709 0.614094 8.39509C0.630094 8.38009 0.651094 8.36309 0.672094 8.34709L11.5501 0.147094C11.6791 0.0500938 11.8391 -0.00390625 12.0011 -0.00390625C12.1631 -0.00390625 12.3241 0.0500938 12.4531 0.147094L23.3211 8.34709C23.3411 8.36209 23.3601 8.37809 23.3781 8.39509C23.7481 8.73809 23.9661 9.20209 23.9951 9.70409L23.9961 22.2721C23.9921 23.2221 23.2181 23.9971 22.2691 24.0001L15.7461 23.9991ZM22.2671 22.4991C22.3921 22.4991 22.4961 22.3951 22.4961 22.2681V9.74609C22.4911 9.68009 22.4481 9.58809 22.3801 9.51709L12.0011 1.68609L1.61209 9.51709C1.54209 9.59009 1.50109 9.68609 1.49509 9.78809L1.49609 22.2691C1.49609 22.3941 1.60009 22.4971 1.72609 22.4971H7.49609V17.9991C7.49609 15.5181 9.51509 13.4991 11.9961 13.4991C14.4771 13.4991 16.4961 15.5181 16.4961 17.9991V22.4991H22.2671Z",fill:"currentColor"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_1771_9738"},g.createElement("rect",{width:24,height:24,fill:"white"})))),iL=g.forwardRef(aL),lL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.00929 0.0583673C6.60129 0.186367 6.33729 0.408367 6.15229 0.778367L6.00929 1.06337V7.77337L6.14629 8.05137C6.22729 8.21637 6.35529 8.39237 6.45829 8.48337C6.76529 8.74937 6.92229 8.79537 7.73429 8.85737C8.91629 8.94637 9.60429 9.07537 10.2693 9.33237C10.8253 9.54637 11.1163 9.75737 11.3433 10.1094C11.4963 10.3474 11.7513 10.5014 11.9913 10.4994C12.1028 10.4929 12.2119 10.4641 12.3121 10.4146C12.4122 10.3651 12.5014 10.296 12.5743 10.2114C12.8543 9.84237 13.0503 9.66537 13.3553 9.50837C14.0383 9.15537 14.9123 8.95737 16.2173 8.86137C16.8173 8.81637 17.0093 8.78737 17.1763 8.71337C17.4641 8.57129 17.7014 8.34444 17.8563 8.06337L17.9673 7.85437L17.9793 4.52537C17.9923 0.841367 17.9983 0.933367 17.7263 0.577367C17.5469 0.3351 17.2956 0.155586 17.0083 0.0643674C16.7843 -0.00663265 16.7113 -0.00863265 16.0763 0.0373673C14.3463 0.160367 13.1723 0.480367 12.2483 1.08037L11.9873 1.24937L11.7843 1.10337C10.9953 0.536367 9.67129 0.162367 8.03029 0.0423673C7.33329 -0.00963265 7.21829 -0.00763265 7.00929 0.0583673ZM8.53029 1.58737C9.60329 1.70837 10.6073 2.04537 11.0613 2.43737L11.2383 2.59037V8.11337L10.8493 7.95737C10.4103 7.78011 9.95422 7.64842 9.48829 7.56437C9.02029 7.47637 8.15229 7.37537 7.85629 7.37537C7.755 7.37848 7.65369 7.37009 7.55429 7.35037C7.49529 7.32737 7.48829 7.02937 7.48829 4.40837V1.49137L7.83229 1.51937C8.02129 1.53537 8.33529 1.56537 8.53029 1.58737ZM16.4883 4.41637V7.33237L16.3943 7.35137C16.3433 7.36137 16.1073 7.38037 15.8703 7.39437C14.8413 7.45137 13.6533 7.71537 12.8943 8.05637L12.7373 8.12637L12.7483 5.34637L12.7593 2.56637L12.9673 2.40837C13.3833 2.09437 13.9923 1.85637 14.8053 1.69037C15.3106 1.60149 15.8204 1.53974 16.3323 1.50537L16.4883 1.50037V4.41637ZM3.46729 4.56237C3.30429 4.63937 3.23629 4.69937 3.11129 4.87537L3.00929 5.02137L2.99729 9.60437C2.99029 12.5134 3.00129 14.3174 3.02729 14.5424C3.06029 14.8184 3.10729 14.9724 3.24129 15.2434C3.33529 15.4344 3.40629 15.5954 3.39829 15.6014L3.15329 15.7804C2.86329 15.9914 2.52529 16.3584 2.29829 16.7084C2.06329 17.0724 0.223289 20.7584 0.111289 21.0904C-0.00971104 21.4494 0.00928894 22.1904 0.149289 22.5484C0.428289 23.2634 1.11829 23.8344 1.84929 23.9554C2.05729 23.9904 4.82229 23.9994 12.1763 23.9914L22.2173 23.9794L22.5043 23.8684C23.4083 23.5164 23.9883 22.6914 23.9883 21.7554C23.9883 21.2404 23.9353 21.1094 22.8363 18.9094C21.6033 16.4424 21.5053 16.2914 20.7943 15.7504L20.5793 15.5874L20.7203 15.3214C21.0033 14.7884 20.9903 15.0674 20.9783 9.76537L20.9673 4.97337L20.8473 4.81537C20.5203 4.38737 19.9203 4.41437 19.6113 4.87037L19.5093 5.02137L19.4883 9.77137C19.4733 13.2754 19.4543 14.5434 19.4193 14.6044C19.3433 14.7344 19.1453 14.9074 19.0173 14.9564C18.9353 14.9864 16.7733 15.0004 11.9983 15.0004H5.09829L4.91529 14.9124C4.79754 14.8519 4.69656 14.7633 4.62129 14.6544L4.50929 14.4854L4.48829 9.72937L4.46729 4.97337L4.34729 4.81537C4.13829 4.54137 3.75029 4.42937 3.46729 4.56237ZM19.1563 16.5864C19.5743 16.7014 20.0203 16.9844 20.2833 17.3004C20.4403 17.4884 20.7363 18.0404 21.4893 19.5464C22.3353 21.2374 22.4883 21.5714 22.4883 21.7254C22.4883 22.0494 22.3423 22.2814 22.0423 22.4334C21.9203 22.4944 21.0443 22.5004 12.0033 22.5004H2.09829L1.91729 22.4134C1.79475 22.3488 1.69234 22.2518 1.62126 22.1329C1.55018 22.014 1.51318 21.8779 1.51429 21.7394C1.51429 21.5534 1.61429 21.3334 2.52529 19.5124C3.53229 17.5014 3.53729 17.4904 3.83529 17.1904C4.15529 16.8674 4.51429 16.6574 4.91629 16.5604C5.08729 16.5184 6.60929 16.5064 11.9893 16.5044C18.7923 16.5004 18.8463 16.5014 19.1563 16.5864ZM10.2173 19.5624C9.91529 19.7044 9.76629 19.9334 9.76629 20.2544C9.76629 20.5554 9.90929 20.7884 10.1723 20.9154C10.3403 20.9964 10.4223 21.0004 11.9913 20.9994C13.8423 20.9984 13.8603 20.9954 14.0973 20.6854C14.2023 20.5484 14.2173 20.4914 14.2173 20.2504C14.2173 20.0094 14.2023 19.9524 14.0973 19.8154C13.8603 19.5044 13.8433 19.5024 11.9883 19.5034C10.6603 19.5034 10.3183 19.5154 10.2173 19.5624Z",fill:"currentColor"})),sL=g.forwardRef(lL),oL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.25 1.5C16.2116 1.5 15.1966 1.80791 14.3333 2.38478C13.4699 2.96166 12.797 3.7816 12.3996 4.74091C12.0023 5.70022 11.8983 6.75582 12.1009 7.77422C12.3035 8.79262 12.8035 9.72808 13.5377 10.4623C14.2719 11.1965 15.2074 11.6965 16.2258 11.8991C17.2442 12.1017 18.2998 11.9977 19.2591 11.6004C20.2184 11.203 21.0383 10.5301 21.6152 9.66674C22.1921 8.80339 22.5 7.78835 22.5 6.75C22.5 6.33579 22.8358 6 23.25 6C23.6642 6 24 6.33579 24 6.75C24 8.08502 23.6041 9.39007 22.8624 10.5001C22.1207 11.6101 21.0665 12.4753 19.8331 12.9862C18.5997 13.4971 17.2425 13.6308 15.9331 13.3703C14.6238 13.1098 13.421 12.467 12.477 11.523C11.533 10.579 10.8902 9.37623 10.6297 8.06686C10.3692 6.75749 10.5029 5.40029 11.0138 4.16689C11.5247 2.93349 12.3899 1.87928 13.4999 1.13758C14.6099 0.395881 15.915 0 17.25 0C17.6642 0 18 0.335786 18 0.75C18 1.16421 17.6642 1.5 17.25 1.5ZM23.7804 1.71972C24.0732 2.01264 24.0732 2.48751 23.7803 2.78038L18.3107 8.24895C18.1715 8.38837 18.0061 8.49898 17.8241 8.57445C17.6421 8.64991 17.447 8.68875 17.25 8.68875C17.053 8.68875 16.8579 8.64991 16.6759 8.57445C16.4941 8.49908 16.3289 8.38865 16.1898 8.24948L14.4698 6.53048C14.1768 6.23768 14.1767 5.7628 14.4695 5.46982C14.7623 5.17685 15.2372 5.17671 15.5302 5.46952L17.25 7.18834L22.7197 1.71962C23.0126 1.42675 23.4875 1.4268 23.7804 1.71972ZM3.75 4.5C3.15326 4.5 2.58097 4.73705 2.15901 5.15901C1.73705 5.58097 1.5 6.15326 1.5 6.75V16.5H22.5V14.25C22.5 13.8358 22.8358 13.5 23.25 13.5C23.6642 13.5 24 13.8358 24 14.25V17.25C24 18.2446 23.6049 19.1984 22.9017 19.9017C22.1984 20.6049 21.2446 21 20.25 21H15.9606L16.3356 22.5H18C18.4142 22.5 18.75 22.8358 18.75 23.25C18.75 23.6642 18.4142 24 18 24H6C5.58579 24 5.25 23.6642 5.25 23.25C5.25 22.8358 5.58579 22.5 6 22.5H7.66442L8.03942 21H3.75C2.75544 21 1.80161 20.6049 1.09835 19.9017C0.395088 19.1984 0 18.2446 0 17.25V6.75C0 5.75544 0.395088 4.80161 1.09835 4.09835C1.80161 3.39509 2.75544 3 3.75 3H8.25C8.66421 3 9 3.33579 9 3.75C9 4.16421 8.66421 4.5 8.25 4.5H3.75ZM20.25 19.5C20.8467 19.5 21.419 19.2629 21.841 18.841C22.0805 18.6014 22.2605 18.3134 22.3713 18H1.62868C1.7395 18.3134 1.91946 18.6014 2.15901 18.841C2.58097 19.2629 3.15326 19.5 3.75 19.5H20.25ZM9.58558 21L9.21058 22.5H14.7894L14.4144 21H9.58558Z",fill:"currentColor"})),uL=g.forwardRef(oL),cL=()=>y.jsx("footer",{className:"sds--footer sds--footer--single-bar shared-menu",children:y.jsxs("div",{className:"sds--footer--inner",children:[y.jsx(HE,{}),y.jsx("nav",{className:"menu sds--text--body--small",children:y.jsxs("ul",{children:[y.jsx("li",{children:y.jsx("a",{href:L.t("footer.termsLink"),target:"_blank",rel:"noopener noreferrer",children:y.jsx("span",{children:L.t("footer.terms")})})}),y.jsx("li",{children:y.jsx("span",{className:"sds--language-sds--divider",children:"|"})}),y.jsx("li",{children:y.jsx("a",{href:L.t("footer.privacyLink"),target:"_blank",rel:"noopener noreferrer",children:y.jsx("span",{children:L.t("footer.privacy")})})})]})})]})}),fL=[{name:"home",path:"/home",relative:!0,Logo:iL},{name:"applications",path:"dashboard",relative:!1,postPath:"login",Logo:uL},{name:"teams",path:"invite",relative:!1,postPath:"home",Logo:sL}],dL=()=>{const{menuItems:t,config:e,currentOrganization:a}=It(h=>h),[i,l]=g.useState([]),o=Vn();g.useEffect(()=>{const h=fL.filter(f=>t.includes(f.name)).map(f=>({Logo:f.Logo,label:L.t(`navigation.${f.name}`),href:f.relative?f.path:`https://${f.path}.${e.baseUrl}/${f.postPath}`}));l(h)},[t]);const c=h=>{h.startsWith("http")?window.location.href=h:o(h)};return ye(i)?y.jsx(Ar,{}):y.jsx(XT,{items:i,logoLabel:"Access",navigate:c,title:(a==null?void 0:a.name)||"",settingToolTip:L.t("organizations.tooltip"),children:y.jsx(cL,{})})},hL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:24,viewBox:"0 0 21 24",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M15.8 23.2H2.2c-.4 0-.8-.2-1.1-.4s-.4-.7-.4-1.1V5.2"}),g.createElement("path",{fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M19.2.8H4.8c-.6 0-1 .4-1 1v17.5c0 .6.4 1 1 1h14.5c.6 0 1-.4 1-1V1.8c-.1-.6-.5-1-1.1-1z"})),mL=g.forwardRef(hL);var tu={},c3,rb;function pL(){return rb||(rb=1,c3=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,a=[],i=0;i<t.rangeCount;i++)a.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||a.forEach(function(l){t.addRange(l)}),e&&e.focus()}}),c3}var f3,ab;function gL(){if(ab)return f3;ab=1;var t=pL(),e={"text/plain":"Text","text/html":"Url",default:"Text"},a="Copy to clipboard: #{key}, Enter";function i(o){var c=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,c)}function l(o,c){var h,f,m,v,b,S,A=!1;c||(c={}),h=c.debug||!1;try{m=t(),v=document.createRange(),b=document.getSelection(),S=document.createElement("span"),S.textContent=o,S.ariaHidden="true",S.style.all="unset",S.style.position="fixed",S.style.top=0,S.style.clip="rect(0, 0, 0, 0)",S.style.whiteSpace="pre",S.style.webkitUserSelect="text",S.style.MozUserSelect="text",S.style.msUserSelect="text",S.style.userSelect="text",S.addEventListener("copy",function(R){if(R.stopPropagation(),c.format)if(R.preventDefault(),typeof R.clipboardData>"u"){h&&console.warn("unable to use e.clipboardData"),h&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var k=e[c.format]||e.default;window.clipboardData.setData(k,o)}else R.clipboardData.clearData(),R.clipboardData.setData(c.format,o);c.onCopy&&(R.preventDefault(),c.onCopy(R.clipboardData))}),document.body.appendChild(S),v.selectNodeContents(S),b.addRange(v);var w=document.execCommand("copy");if(!w)throw new Error("copy command was unsuccessful");A=!0}catch(R){h&&console.error("unable to copy using execCommand: ",R),h&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",o),c.onCopy&&c.onCopy(window.clipboardData),A=!0}catch(k){h&&console.error("unable to copy using clipboardData: ",k),h&&console.error("falling back to prompt"),f=i("message"in c?c.message:a),window.prompt(f,o)}}finally{b&&(typeof b.removeRange=="function"?b.removeRange(v):b.removeAllRanges()),S&&document.body.removeChild(S),m()}return A}return f3=l,f3}var ib;function vL(){if(ib)return tu;ib=1;function t(j){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},t(j)}Object.defineProperty(tu,"__esModule",{value:!0}),tu.CopyToClipboard=void 0;var e=l(Wf()),a=l(gL()),i=["text","onCopy","options","children"];function l(j){return j&&j.__esModule?j:{default:j}}function o(j,F){var Z=Object.keys(j);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(j);F&&(E=E.filter(function(x){return Object.getOwnPropertyDescriptor(j,x).enumerable})),Z.push.apply(Z,E)}return Z}function c(j){for(var F=1;F<arguments.length;F++){var Z=arguments[F]!=null?arguments[F]:{};F%2?o(Object(Z),!0).forEach(function(E){B(j,E,Z[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(Z)):o(Object(Z)).forEach(function(E){Object.defineProperty(j,E,Object.getOwnPropertyDescriptor(Z,E))})}return j}function h(j,F){if(j==null)return{};var Z=f(j,F),E,x;if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(j);for(x=0;x<O.length;x++)E=O[x],!(F.indexOf(E)>=0)&&Object.prototype.propertyIsEnumerable.call(j,E)&&(Z[E]=j[E])}return Z}function f(j,F){if(j==null)return{};var Z={},E=Object.keys(j),x,O;for(O=0;O<E.length;O++)x=E[O],!(F.indexOf(x)>=0)&&(Z[x]=j[x]);return Z}function m(j,F){if(!(j instanceof F))throw new TypeError("Cannot call a class as a function")}function v(j,F){for(var Z=0;Z<F.length;Z++){var E=F[Z];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(j,E.key,E)}}function b(j,F,Z){return F&&v(j.prototype,F),Object.defineProperty(j,"prototype",{writable:!1}),j}function S(j,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(F&&F.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),F&&A(j,F)}function A(j,F){return A=Object.setPrototypeOf||function(E,x){return E.__proto__=x,E},A(j,F)}function w(j){var F=D();return function(){var E=I(j),x;if(F){var O=I(this).constructor;x=Reflect.construct(E,arguments,O)}else x=E.apply(this,arguments);return R(this,x)}}function R(j,F){if(F&&(t(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(j)}function k(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function I(j){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},I(j)}function B(j,F,Z){return F in j?Object.defineProperty(j,F,{value:Z,enumerable:!0,configurable:!0,writable:!0}):j[F]=Z,j}var Y=function(j){S(Z,j);var F=w(Z);function Z(){var E;m(this,Z);for(var x=arguments.length,O=new Array(x),z=0;z<x;z++)O[z]=arguments[z];return E=F.call.apply(F,[this].concat(O)),B(k(E),"onClick",function(_){var q=E.props,V=q.text,U=q.onCopy,M=q.children,P=q.options,H=e.default.Children.only(M),$=(0,a.default)(V,P);U&&U(V,$),H&&H.props&&typeof H.props.onClick=="function"&&H.props.onClick(_)}),E}return b(Z,[{key:"render",value:function(){var x=this.props;x.text,x.onCopy,x.options;var O=x.children,z=h(x,i),_=e.default.Children.only(O);return e.default.cloneElement(_,c(c({},z),{},{onClick:this.onClick}))}}]),Z}(e.default.PureComponent);return tu.CopyToClipboard=Y,B(Y,"defaultProps",{onCopy:void 0,options:void 0}),tu}var d3,lb;function yL(){if(lb)return d3;lb=1;var t=vL(),e=t.CopyToClipboard;return e.CopyToClipboard=e,d3=e,d3}var bL=yL();function SL({txt:t}){return y.jsx(bL.CopyToClipboard,{text:t,children:y.jsx("section",{className:"copy-to-clipboard",onClick:e=>{const a=e.target;a.classList.add("copied"),setTimeout(()=>a.classList.remove("copied"),1250)},children:y.jsx(mL,{})})})}function hn({onChange:t,name:e,value:a,placeholder:i="",disabled:l=!1,toolTip:o=null,onBlur:c=()=>!0,onEnter:h=null,multiline:f=!1,copyClipBoard:m=!1,link:v=null,externalLink:b=!1,large:S=!1,small:A=!1,noInput:w=!1,error:R=!1,cols:k=5,maxLength:D=255,onRef:I=null,displayLabel:B=!0,button:Y=null,isInteger:j=!1,isUrl:F=!1,customClassName:Z="",required:E=!1,info:x=null}){const O=Vn();i=l?"":i;let z="sds--text-field--input";R&&(z+="error ");const _=b&&!ye(a)&&jf.test(a),V=`input-field sds--text-field ${R?"sds--text-field--status-error":""} ${Z}`;return y.jsxs("div",{className:V,children:[e&&B&&y.jsxs("label",{htmlFor:e,children:[e,E&&y.jsx("sup",{className:"required",children:"*"}),o&&y.jsx(ba,{tip:o})]}),y.jsxs("div",{className:"inner-input-field",children:[!f&&!w&&y.jsx("input",{type:j?"number":F?"url":"text",disabled:l,value:a||"",onChange:t,onBlur:c,id:e,maxLength:D,min:0,ref:I,placeholder:i,className:`${z} sds--text-field--input`,onKeyDown:U=>{h&&U.keyCode===13&&h(U)}}),f&&!w&&y.jsx("textarea",{disabled:l,value:a||"",onChange:t,onBlur:c,id:e,className:`${z} sds--text-area ${S?"large":""} ${A?"small":""}`,onKeyDown:U=>{h&&U.keyCode===13&&h(U)},placeholder:i,cols:k}),Y&&Y,m&&y.jsx(SL,{txt:a,right:!0,input:!0}),v&&y.jsx("div",{className:"input-field-link",onClick:()=>O(v),children:y.jsx(Ou,{})}),_&&y.jsx("div",{className:"input-field-link",children:y.jsx("a",{href:a,rel:"noopener noreferrer",target:"_blank",children:y.jsx(Ou,{})})}),w&&y.jsx("span",{className:"no-input",children:a})]}),x&&y.jsx("span",{className:"info",children:x})]})}const EL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{className:"info-svg",xmlns:"http://www.w3.org/2000/svg",width:22.5,height:22.5,viewBox:"0 0 22.5 22.5",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("circle",{className:"bg",cx:11.2,cy:11.2,r:11.2,fill:"none"}),g.createElement("g",{fill:"none"},g.createElement("path",{d:"M21.8 11.2c0 5.8-4.7 10.5-10.5 10.5C5.5 21.8.8 17 .8 11.2S5.5.7 11.3.7c5.7.1 10.5 4.8 10.5 10.5z"}),g.createElement("path",{d:"M21.8 11.2c0 5.8-4.7 10.5-10.5 10.5C5.5 21.8.8 17 .8 11.2S5.5.7 11.3.7c5.7.1 10.5 4.8 10.5 10.5z",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M13.5 15.8h-.8c-.4 0-.8-.2-1.1-.4-.3-.3-.4-.7-.4-1.1v-3.8c0-.2-.1-.4-.2-.5-.1-.1-.3-.2-.5-.2h-.7M10.9 6c-.1 0-.1 0-.2.1-.1 0-.1.1-.1.2v.2c0 .1.1.1.1.2.1.1.1.1.2.1h.2c.1 0 .1-.1.2-.1 0-.1.1-.1.1-.2s0-.2-.1-.3c-.2-.2-.3-.2-.4-.2z",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),AL=g.forwardRef(EL),wL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{width:16,height:9,viewBox:"0 0 16 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 7.09119C16 7.30382 15.9423 7.51931 15.8215 7.70687C15.5091 8.19226 14.8949 8.30967 14.45 7.96961L8.12442 3.12577L1.79888 7.95315C1.35329 8.2932 0.739705 8.17508 0.427989 7.68898C0.116274 7.20287 0.224554 6.5335 0.670143 6.19344L7.5607 0.934374C7.89998 0.67593 8.35148 0.675931 8.69076 0.93509L15.5813 6.21134C15.8543 6.42039 16 6.75257 16 7.09119Z",fill:"#898585"}),g.createElement("mask",{id:"mask0_971_12947",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:16,height:9},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 7.09119C16 7.30382 15.9423 7.51931 15.8215 7.70687C15.5091 8.19226 14.8949 8.30967 14.45 7.96961L8.12442 3.12577L1.79888 7.95315C1.35329 8.2932 0.739705 8.17508 0.427989 7.68898C0.116274 7.20287 0.224554 6.5335 0.670143 6.19344L7.5607 0.934374C7.89998 0.67593 8.35148 0.675931 8.69076 0.93509L15.5813 6.21134C15.8543 6.42039 16 6.75257 16 7.09119Z",fill:"white"})),g.createElement("g",{mask:"url(#mask0_971_12947)"})),CL=g.forwardRef(wL),xL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{width:16,height:9,viewBox:"0 0 16 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.25 1.81427C0.25 1.60164 0.30775 1.38615 0.428498 1.19858C0.74087 0.713197 1.35511 0.595788 1.80005 0.935845L8.12558 5.77969L14.4511 0.952311C14.8967 0.612254 15.5103 0.730379 15.822 1.21648C16.1337 1.70258 16.0254 2.37196 15.5799 2.71202L8.6893 7.97108C8.35002 8.22953 7.89852 8.22953 7.55924 7.97037L0.668684 2.69412C0.395686 2.48507 0.25 2.15289 0.25 1.81427Z",fill:"#898585"}),g.createElement("mask",{id:"mask0_5543_72",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:16,height:9},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.25 1.81427C0.25 1.60164 0.30775 1.38615 0.428498 1.19858C0.74087 0.713197 1.35511 0.595788 1.80005 0.935845L8.12558 5.77969L14.4511 0.952311C14.8967 0.612254 15.5103 0.730379 15.822 1.21648C16.1337 1.70258 16.0254 2.37196 15.5799 2.71202L8.6893 7.97108C8.35002 8.22953 7.89852 8.22953 7.55924 7.97037L0.668684 2.69412C0.395686 2.48507 0.25 2.15289 0.25 1.81427Z",fill:"white"})),g.createElement("g",{mask:"url(#mask0_5543_72)"})),y4=g.forwardRef(xL),TL=({title:t,info:e,children:a,checkRequired:i,name:l,checkValue:o})=>{const[c,h]=g.useState(!1);return y.jsxs("div",{className:"collapse-field",children:[y.jsxs("div",{className:"collapse-field-inner",children:[i&&y.jsx(FS,{name:l,value:o,onChange:f=>i(f)}),y.jsxs("div",{className:"collapse-field-switch",onClick:()=>h(!c),children:[y.jsx("span",{className:`${c?"collapsed":"open"}`,children:t}),c?y.jsx(CL,{}):y.jsx(y4,{})]})]}),c&&e&&y.jsx("p",{className:"collapsed",dangerouslySetInnerHTML:{__html:e}}),c&&!e&&y.jsx("div",{className:"collapsed",children:a})]},l)},OL=()=>{const{applicationId:t}=_s(),e=Vn(),{currentOrganization:a,setFlash:i}=It(w=>w),[l,o]=g.useState(!0),[c,h]=g.useState(!0),[f,m]=g.useState({type:"APP",target:"SURF"}),[v,b]=g.useState({});g.useEffect(()=>{const w=t==="new";o(w);const R={},k=L.translations[L.locale].application.checks;Object.keys(k).forEach(D=>R[D]=!1),b(R),It.setState({breadcrumbPath:[{path:"/home",value:L.t("breadCrumb.access")},{path:`/organization/${a.id}`,value:a.name},{value:L.t("breadCrumb.applications")}]}),w?h(!1):gp(t).then(D=>{m(D),h(!1)})},[t]);const S=w=>{const R=L.t(`application.target${w.toUpperCase()}`),k=L.t(`application.target${w.toUpperCase()}Info`);return`<div><p class="primary-label-radio-option">${R}</p><p>${k}</p></div>`};if(c)return y.jsx(Ar,{});const A=()=>{const w=l?vN:g4;f.organization={id:a.id},w(f).then(R=>{i(L.t("application.flash",{name:R.name})),e(`/connection/${R.id}`)})};return y.jsx("div",{className:"application-form-container",children:y.jsxs("div",{className:"application-form",children:[y.jsx("h2",{children:L.t(`application.${l?"new":"edit"}`,{name:f.name})}),y.jsx(hn,{name:L.t("application.name"),value:f.name||"",required:!0,onChange:w=>m({...f,name:w.target.value}),info:L.t("application.nameInfo")}),y.jsx(Df,{label:L.t("application.type"),name:"type",value:f.type,onChange:w=>m({...f,type:w.target.id.replace("type_","").toUpperCase()}),isMultiple:!0,labels:["APP","CONTENT"],labelResolver:w=>L.t(`application.${w.toLowerCase()}`),orientation:Mf.column}),f.type==="CONTENT"&&y.jsx("div",{className:"sds--alert sds--alert--status-info",children:y.jsxs("div",{className:"sds--alert--inner",children:[y.jsx("div",{className:"sds--alert--visual",children:y.jsx(AL,{})}),y.jsxs("div",{children:[y.jsx("span",{children:L.t("application.contentInfoPre")}),y.jsx(ba,{tip:L.t("application.contentInfoTip"),standalone:!0,children:y.jsx("span",{className:"link",children:L.t("application.contentInfoLink")})}),y.jsx("span",{children:L.t("application.contentInfoPost")})]})]})}),y.jsx(Df,{label:L.t("application.targetGroup"),name:"target",value:f.target,onChange:w=>m({...f,target:w.target.id.replace("target_","").toUpperCase()}),isMultiple:!0,labels:["SURF","SRAM"],labelResolver:S,orientation:Mf.column}),l&&y.jsxs("div",{className:"fair-use-terms",children:[y.jsxs("span",{className:"label",children:[L.t("application.terms"),y.jsx("sup",{className:"required",children:"*"})]}),Object.keys(v).map(w=>y.jsx(TL,{title:L.t(`application.checks.${w}`),name:w,checkRequired:R=>b({...v,[w]:R.target.checked}),checkValue:v[w],children:y.jsx("span",{children:L.t(`application.checksInfo.${w}`)})},w))]}),y.jsxs("section",{className:"actions",children:[y.jsx(yt,{onClick:()=>e("/home"),type:Rt.Secondary,txt:L.t("forms.cancel")}),y.jsx(yt,{onClick:()=>A(),txt:L.t("forms.submit"),disabled:l&&Object.values(v).some(w=>!w)||ye(f.name)})]})]})})},RL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M2.521 16.3453L17.021 1.84527C17.3569 1.50152 17.7577 1.22775 18.2 1.03978C18.6424 0.851798 19.1176 0.753338 19.5982 0.750083C20.0788 0.746829 20.5553 0.838845 21.0002 1.02082C21.4451 1.20279 21.8494 1.4711 22.19 1.81027C22.5292 2.15083 22.7975 2.55522 22.9795 3.00007C23.1614 3.44493 23.2534 3.92144 23.2502 4.40206C23.2469 4.88269 23.1485 5.35791 22.9605 5.80026C22.7725 6.24261 22.4987 6.64333 22.155 6.97927L7.655 21.4793L0.75 23.2503L2.521 16.3453ZM2.521 16.3453L7.66 21.4742M16.606 2.26025L21.74 7.39425M14.512 4.35425L19.646 9.48825",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),IL=g.forwardRef(RL),ML=({tabNames:t,application:e,tab:a,setTab:i,setLoading:l})=>{const[o,c]=g.useState(!1),[h,f]=g.useState({}),m=Vn(),v=(B,Y)=>{Sa(B),i(Y)},b=(B,Y)=>{Sa(B),m(Y)},S=(B,Y)=>{Sa(B),Y?f({open:!0,cancel:()=>f({open:!1}),action:()=>S(null,!1),question:L.t("application.deleteConfirmation",{name:e.name}),okButton:L.t("forms.delete")}):(l(!0),gN(e.id).then(()=>{f({}),m("/home"),l(!1)}))},A=()=>y.jsx("div",{className:"sds--user-info--dropdown",children:y.jsxs("ul",{children:[y.jsxs("li",{onClick:B=>b(B,`/application/${e.id}`),children:[y.jsx(IL,{}),y.jsx("a",{href:"/edit",onClick:B=>b(B,`/application/${e.id}`),children:L.t("forms.edit")})]}),y.jsxs("li",{onClick:B=>S(B,!0),children:[y.jsx(FE,{}),y.jsx("a",{href:"/delete",onClick:B=>S(B,!0),children:L.t("forms.delete")})]})]})}),{open:w,cancel:R,action:k,question:D,okButton:I}=h;return y.jsxs("div",{className:"application-connection-header-container",children:[w&&y.jsx(s1,{confirm:k,cancel:R,confirmationHeader:L.t("forms.delete"),confirmationTxt:I,question:D}),y.jsxs("div",{className:"top-header",tabIndex:1,onBlur:()=>setTimeout(()=>c(!1),475),children:[y.jsx("h1",{children:e.name}),y.jsxs("span",{className:`menu ${o?"drop-down":""}`,onClick:()=>c(!o),children:[y.jsx(BE,{}),o&&A()]})]}),y.jsx("div",{className:"tabs-menu",children:t.map(B=>y.jsx("a",{href:`/${B}`,className:B===a?"active":"",onClick:Y=>v(Y,B),children:L.t(`connection.${B}`)},B))})]})},DL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{className:"caret_right",width:16,height:18,viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M4.87402 1.5L12.02 8.64667C12.0665 8.69304 12.1033 8.74812 12.1284 8.80875C12.1536 8.86938 12.1665 8.93437 12.1665 9C12.1665 9.06563 12.1536 9.13062 12.1284 9.19125C12.1033 9.25188 12.0665 9.30696 12.02 9.35333L4.87402 16.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),NL=g.forwardRef(DL),LL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{className:"pending",width:21,height:22,viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("circle",{opacity:.7,cx:10.5,cy:11,r:9.275,stroke:"#B6BBC1",strokeWidth:2.45,strokeDasharray:"4.9 4.9"})),GE=g.forwardRef(LL),kL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{className:"team",width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("g",{clipPath:"url(#clip0_1916_8752)"},g.createElement("path",{d:"M6.75 24C6.336 24 6 23.664 6 23.25C6 22.836 6.336 22.5 6.75 22.5H11.25V21H4.5C3.259 21 2.25 19.991 2.25 18.75V10.5C2.25 10.086 2.586 9.75 3 9.75C3.414 9.75 3.75 10.086 3.75 10.5V16.5H20.25V10.5C20.25 10.086 20.586 9.75 21 9.75C21.414 9.75 21.75 10.086 21.75 10.5V18.75C21.75 19.991 20.741 21 19.5 21H12.75V22.5H17.25C17.664 22.5 18 22.836 18 23.25C18 23.664 17.663 24 17.25 24H6.75ZM3.75 18.75C3.75 19.164 4.086 19.5 4.5 19.5H19.5C19.914 19.5 20.25 19.164 20.25 18.75V18H3.75V18.75Z",fill:"#232C3A"}),g.createElement("path",{d:"M4.64648 6C2.99248 6 1.64648 4.654 1.64648 3C1.64648 1.346 2.99248 0 4.64648 0C6.30048 0 7.64648 1.346 7.64648 3C7.64648 4.654 6.30048 6 4.64648 6ZM4.64648 1.5C3.81948 1.5 3.14648 2.173 3.14648 3C3.14648 3.827 3.81948 4.5 4.64648 4.5C5.47348 4.5 6.14648 3.827 6.14648 3C6.14648 2.173 5.47348 1.5 4.64648 1.5Z",fill:"#232C3A"}),g.createElement("path",{d:"M19.3535 6C17.6995 6 16.3535 4.654 16.3535 3C16.3535 1.346 17.6995 0 19.3535 0C21.0075 0 22.3535 1.346 22.3535 3C22.3535 4.654 21.0075 6 19.3535 6ZM19.3535 1.5C18.5265 1.5 17.8535 2.173 17.8535 3C17.8535 3.827 18.5265 4.5 19.3535 4.5C20.1805 4.5 20.8535 3.827 20.8535 3C20.8535 2.173 20.1805 1.5 19.3535 1.5Z",fill:"#232C3A"}),g.createElement("path",{d:"M0.748557 9.00002C0.617557 9.00002 0.487557 8.96502 0.373557 8.89902C0.015557 8.69202 -0.107443 8.23302 0.099557 7.87502C0.559557 7.07902 1.22356 6.41502 2.01956 5.95502C2.81956 5.49302 3.72456 5.24902 4.63756 5.24902C5.09556 5.24902 5.55556 5.31002 6.00356 5.43002C6.88756 5.66702 7.68156 6.12102 8.32456 6.75402C8.52756 6.55402 8.74456 6.37202 8.97156 6.21202C9.86356 5.58302 10.9066 5.25002 11.9876 5.25002C12.2886 5.25002 12.5916 5.27602 12.8906 5.32802C13.9616 5.51302 14.9166 6.00302 15.6766 6.75402C15.9916 6.44402 16.3436 6.17702 16.7266 5.95602C17.5266 5.49402 18.4316 5.25002 19.3446 5.25002C19.8026 5.25002 20.2616 5.31102 20.7096 5.43102C22.0646 5.79402 23.1966 6.66202 23.8976 7.87602C24.1046 8.23402 23.9816 8.69402 23.6236 8.90102C23.5106 8.96502 23.3806 9.00002 23.2496 9.00002C22.9826 9.00002 22.7336 8.85602 22.6006 8.62502C22.0996 7.75702 21.2906 7.13702 20.3226 6.87802C20.0016 6.79202 19.6736 6.74902 19.3466 6.74902C18.6956 6.74902 18.0486 6.92402 17.4766 7.25402C16.9086 7.58202 16.4346 8.05602 16.1056 8.62502C15.9716 8.85702 15.7226 9.00002 15.4556 9.00002C15.3246 9.00002 15.1946 8.96502 15.0806 8.89902C14.7536 8.71002 14.6226 8.31102 14.7606 7.97002C14.2006 7.35702 13.4556 6.94702 12.6366 6.80502C12.4216 6.76802 12.2046 6.75002 11.9896 6.75002C11.2186 6.75002 10.4736 6.98802 9.83656 7.43802C9.62056 7.58902 9.41956 7.76702 9.23756 7.96802C9.29856 8.11802 9.30956 8.28402 9.26656 8.44402C9.21456 8.63702 9.09056 8.79902 8.91756 8.89902C8.80356 8.96502 8.67356 9.00002 8.54256 9.00002C8.27556 9.00002 8.02656 8.85602 7.89256 8.62502C7.39156 7.75802 6.58256 7.13702 5.61556 6.87802C5.29456 6.79202 4.96656 6.74802 4.63956 6.74802C3.98856 6.74802 3.34256 6.92302 2.77056 7.25302C2.20156 7.58202 1.72756 8.05702 1.39856 8.62502C1.26556 8.85702 1.01656 9.00002 0.748557 9.00002Z",fill:"#232C3A"}),g.createElement("path",{d:"M12 6C10.346 6 9 4.654 9 3C9 1.346 10.346 0 12 0C13.654 0 15 1.346 15 3C15 4.654 13.654 6 12 6ZM12 1.5C11.173 1.5 10.5 2.173 10.5 3C10.5 3.827 11.173 4.5 12 4.5C12.827 4.5 13.5 3.827 13.5 3C13.5 2.173 12.827 1.5 12 1.5Z",fill:"#232C3A"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_1916_8752"},g.createElement("rect",{width:24,height:24,fill:"white"})))),jL=g.forwardRef(kL),_L=({title:t,titleId:e,...a},i)=>g.createElement("svg",{className:"completed",width:21,height:22,viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("rect",{y:.5,width:21,height:21,rx:10.5,fill:"#008939"}),g.createElement("path",{d:"M8.82428 14.3096C8.37275 14.3096 7.94324 14.1665 7.58256 13.8939C7.50409 13.8347 7.43251 13.7727 7.36505 13.7053L5.30148 11.6417C4.89951 11.2397 4.89951 10.5845 5.30148 10.1811C5.49696 9.98563 5.75577 9.87825 6.0311 9.87825C6.30642 9.87825 6.56661 9.98563 6.76071 10.1811L8.82566 12.2461L12.8261 6.91299C13.0203 6.65418 13.3286 6.5 13.6521 6.5C13.8765 6.5 14.0899 6.57159 14.2702 6.70512C14.7273 7.0479 14.8195 7.69629 14.4781 8.15196L10.479 13.4837C10.0894 14.0013 9.4713 14.3096 8.82428 14.3096Z",fill:"white"})),ZE=g.forwardRef(_L),UL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{className:"alert-triangle",width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("g",{clipPath:"url(#clip0_2645_3333)"},g.createElement("path",{d:"M13.3128 2.27496C13.1832 2.04027 12.993 1.84461 12.7621 1.70836C12.5312 1.57211 12.268 1.50024 11.9998 1.50024C11.7317 1.50024 11.4685 1.57211 11.2376 1.70836C11.0067 1.84461 10.8165 2.04027 10.6868 2.27496L0.936845 20.275C0.810764 20.5033 0.746416 20.7606 0.750154 21.0215C0.753892 21.2823 0.825586 21.5376 0.95816 21.7623C1.09073 21.987 1.2796 22.1732 1.50612 22.3025C1.73265 22.4319 1.98899 22.4999 2.24985 22.5H21.7498C22.0107 22.4999 22.267 22.4319 22.4936 22.3025C22.7201 22.1732 22.909 21.987 23.0415 21.7623C23.1741 21.5376 23.2458 21.2823 23.2495 21.0215C23.2533 20.7606 23.1889 20.5033 23.0628 20.275L13.3128 2.27496Z",fill:"#FFC100",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 17.25C12.2984 17.25 12.5845 17.3685 12.7955 17.5795C13.0065 17.7905 13.125 18.0766 13.125 18.375C13.125 18.6734 13.0065 18.9595 12.7955 19.1705C12.5845 19.3815 12.2984 19.5 12 19.5C11.7016 19.5 11.4155 19.3815 11.2045 19.1705C10.9935 18.9595 10.875 18.6734 10.875 18.375C10.875 18.0766 10.9935 17.7905 11.2045 17.5795C11.4155 17.3685 11.7016 17.25 12 17.25Z",fill:"white"}),g.createElement("path",{d:"M12 15V8.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_2645_3333"},g.createElement("rect",{width:24,height:24,fill:"white"})))),qL=g.forwardRef(UL),br={ACTIVE:"ACTIVE",PENDING:"PENDING",ALERT:"ALERT",TEAM:"TEAM"},nu=({status:t,info:e,action:a,disabled:i})=>{const l=()=>{switch(t){case br.ACTIVE:return y.jsx(ZE,{});case br.PENDING:return y.jsx(GE,{});case br.ALERT:return y.jsx(qL,{});case br.TEAM:return y.jsx(jL,{})}};return y.jsxs("div",{className:`status-link ${i&&"disabled"}`,onClick:a,children:[l(),y.jsx("span",{className:"info",children:e}),y.jsx(NL,{})]})},WE=(t,e)=>{const a=e.data.metaDataFields,i=t==="en"?a["name:en"]:a["name:nl"]||a["name:en"],l=t==="en"?a["OrganizationName:en"]:a["OrganizationName:nl"]||a["OrganizationName:en"];return{label:`${i} (${l})`,value:e.data.entityid}},zL=(t,e,a)=>{const i=t.find(l=>l.data.entityid===e);return WE(a,i)},PL=(t,e)=>t.map(a=>WE(e,a)),Yi={OIDC10_RP:"oidc10_rp",SAML20_SP:"saml20_sp"},Sr={OPEN:"OPEN",COMPLETE:"COMPLETE"},yu={OPEN:"OPEN",COMPLETE:"COMPLETE"},ur={TEST:"TEST",PROD:"PROD"},HL=({user:t,application:e,setTab:a,initConnection:i,privacyInfo:l,refreshApp:o})=>{const[c,h]=g.useState(!1),{testConnectionComplete:f,productionConnectionComplete:m,appInformationComplete:v,productionConnectionNeedsActivation:b}=g.useMemo(()=>({testConnectionComplete:!ye(e.connections)&&e.connections.filter(A=>A.environment===ur.TEST).some(A=>A.status!==Sr.OPEN),productionConnectionComplete:!ye(e.connections)&&e.connections.filter(A=>A.environment===ur.PROD).some(A=>A.status!==Sr.OPEN),appInformationComplete:pu(e)&&gu(e)&&vu(l,e)&&e.status!==yu.OPEN,productionConnectionNeedsActivation:e.signedContract&&!ye(e.connections)&&e.connections.filter(A=>A.environment===ur.PROD).some(A=>A.status===Sr.COMPLETE)}),[o]),S=()=>{if(c)return null;if(ye(e.connections))return y.jsx(va,{close:()=>h(!0),alertType:Fn.Info,asChild:!0,message:L.t("connection.welcome",{user:t.name,name:e.name})});if(f&&!m)return y.jsx(va,{close:()=>h(!0),alertType:Fn.Info,asChild:!0,message:L.t("connection.productionConnectionHint")});if(m&&!v)return y.jsx(va,{close:()=>h(!0),alertType:Fn.Warning,asChild:!0,message:L.t("connection.applicationInformationHint")});if(m&&b)return y.jsx(va,{close:()=>h(!0),alertType:Fn.Warning,asChild:!0,message:L.t("connection.productionActivationHint"),action:()=>a("prod"),actionLabel:L.t("connection.productionActivationAction")})};return y.jsxs("div",{className:"application-connection-form",children:[S(),y.jsxs("div",{className:"application-connection",children:[y.jsxs("section",{className:"sub-part",children:[y.jsx("h2",{children:L.t("connection.test.name")}),y.jsx(nu,{info:L.t("connection.test.connections"),action:()=>i(ur.TEST),status:f?br.ACTIVE:br.PENDING})]}),y.jsxs("section",{className:"sub-part",children:[y.jsx("h2",{children:L.t("connection.team.name")}),y.jsx(nu,{info:L.t("connection.team.members"),action:()=>a("testing"),status:br.TEAM})]}),y.jsxs("section",{className:"sub-part",children:[y.jsx("h2",{children:L.t("connection.production.name")}),y.jsx(nu,{info:L.t("connection.production.connections"),action:()=>i(ur.PROD),disabled:!f,status:m?b?br.ALERT:br.ACTIVE:br.PENDING}),y.jsx(nu,{info:L.t("connection.production.catalogue"),action:()=>a("application"),disabled:!m,status:v?br.ACTIVE:br.PENDING}),y.jsx(nu,{info:L.t("connection.production.contract"),action:()=>a("contract"),disabled:!v,status:e.signedContract?br.ACTIVE:br.PENDING}),y.jsx("p",{className:`${m} ? "":"pending`,children:L.t("connection.production.disclaimer")})]})]})]})},BL=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13.5,height:13.5,viewBox:"0 0 13.5 13.5",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M.8 12.8l12-12m0 12L.8.8"})),FL=g.forwardRef(BL),YE=({pending:t,info:e,action:a,active:i,disabled:l,customIcon:o=null})=>{const c=t?y.jsx(GE,{}):y.jsx(ZE,{});return y.jsxs("div",{className:`status-menu-item ${i&&"active"} ${l&&"disabled"}`,onClick:()=>!l&&a(),children:[y.jsx("span",{className:"info",children:e}),o||c]})};function Ll(t){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ll(t)}function VL(t,e){if(Ll(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var i=a.call(t,e);if(Ll(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function QE(t){var e=VL(t,"string");return Ll(e)=="symbol"?e:e+""}function bu(t,e,a){return(e=QE(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function sb(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),a.push.apply(a,i)}return a}function ze(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?sb(Object(a),!0).forEach(function(i){bu(t,i,a[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):sb(Object(a)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(a,i))})}return t}function GL(t){if(Array.isArray(t))return t}function ZL(t,e){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var i,l,o,c,h=[],f=!0,m=!1;try{if(o=(a=a.call(t)).next,e===0){if(Object(a)!==a)return;f=!1}else for(;!(f=(i=o.call(a)).done)&&(h.push(i.value),h.length!==e);f=!0);}catch(v){m=!0,l=v}finally{try{if(!f&&a.return!=null&&(c=a.return(),Object(c)!==c))return}finally{if(m)throw l}}return h}}function yp(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,i=Array(e);a<e;a++)i[a]=t[a];return i}function KE(t,e){if(t){if(typeof t=="string")return yp(t,e);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?yp(t,e):void 0}}function WL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pi(t,e){return GL(t)||ZL(t,e)||KE(t,e)||WL()}function YL(t,e){if(t==null)return{};var a={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;a[i]=t[i]}return a}function Ya(t,e){if(t==null)return{};var a,i,l=YL(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)a=o[i],e.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(l[a]=t[a])}return l}var QL=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function JE(t){var e=t.defaultInputValue,a=e===void 0?"":e,i=t.defaultMenuIsOpen,l=i===void 0?!1:i,o=t.defaultValue,c=o===void 0?null:o,h=t.inputValue,f=t.menuIsOpen,m=t.onChange,v=t.onInputChange,b=t.onMenuClose,S=t.onMenuOpen,A=t.value,w=Ya(t,QL),R=g.useState(h!==void 0?h:a),k=pi(R,2),D=k[0],I=k[1],B=g.useState(f!==void 0?f:l),Y=pi(B,2),j=Y[0],F=Y[1],Z=g.useState(A!==void 0?A:c),E=pi(Z,2),x=E[0],O=E[1],z=g.useCallback(function(H,$){typeof m=="function"&&m(H,$),O(H)},[m]),_=g.useCallback(function(H,$){var T;typeof v=="function"&&(T=v(H,$)),I(T!==void 0?T:H)},[v]),q=g.useCallback(function(){typeof S=="function"&&S(),F(!0)},[S]),V=g.useCallback(function(){typeof b=="function"&&b(),F(!1)},[b]),U=h!==void 0?h:D,M=f!==void 0?f:j,P=A!==void 0?A:x;return ze(ze({},w),{},{inputValue:U,menuIsOpen:M,onChange:z,onInputChange:_,onMenuClose:V,onMenuOpen:q,value:P})}function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},Ve.apply(null,arguments)}function KL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ob(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,QE(i.key),i)}}function JL(t,e,a){return e&&ob(t.prototype,e),a&&ob(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function bp(t,e){return bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},bp(t,e)}function XL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bp(t,e)}function _f(t){return _f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_f(t)}function XE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XE=function(){return!!t})()}function $L(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ek(t,e){if(e&&(Ll(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $L(t)}function tk(t){var e=XE();return function(){var a,i=_f(t);if(e){var l=_f(this).constructor;a=Reflect.construct(i,arguments,l)}else a=i.apply(this,arguments);return ek(this,a)}}function nk(t){if(Array.isArray(t))return yp(t)}function rk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ak(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ms(t){return nk(t)||rk(t)||KE(t)||ak()}function ik(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function lk(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var sk=function(){function t(a){var i=this;this._insertTag=function(l){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(l,o),i.tags.push(l)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(lk(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ik(l);try{o.insertRule(i,o.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),this.tags=[],this.ctr=0},t}(),rr="-ms-",Uf="-moz-",kt="-webkit-",$E="comm",b4="rule",S4="decl",ok="@import",eA="@keyframes",uk="@layer",ck=Math.abs,o1=String.fromCharCode,fk=Object.assign;function dk(t,e){return $n(t,0)^45?(((e<<2^$n(t,0))<<2^$n(t,1))<<2^$n(t,2))<<2^$n(t,3):0}function tA(t){return t.trim()}function hk(t,e){return(t=e.exec(t))?t[0]:t}function jt(t,e,a){return t.replace(e,a)}function Sp(t,e){return t.indexOf(e)}function $n(t,e){return t.charCodeAt(e)|0}function Mu(t,e,a){return t.slice(e,a)}function za(t){return t.length}function E4(t){return t.length}function lf(t,e){return e.push(t),t}function mk(t,e){return t.map(e).join("")}var u1=1,qs=1,nA=0,wr=0,Dn=0,Ws="";function c1(t,e,a,i,l,o,c){return{value:t,root:e,parent:a,type:i,props:l,children:o,line:u1,column:qs,length:c,return:""}}function ru(t,e){return fk(c1("",null,null,"",null,null,0),t,{length:-t.length},e)}function pk(){return Dn}function gk(){return Dn=wr>0?$n(Ws,--wr):0,qs--,Dn===10&&(qs=1,u1--),Dn}function _r(){return Dn=wr<nA?$n(Ws,wr++):0,qs++,Dn===10&&(qs=1,u1++),Dn}function Ba(){return $n(Ws,wr)}function Ef(){return wr}function Bu(t,e){return Mu(Ws,t,e)}function Du(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rA(t){return u1=qs=1,nA=za(Ws=t),wr=0,[]}function aA(t){return Ws="",t}function Af(t){return tA(Bu(wr-1,Ep(t===91?t+2:t===40?t+1:t)))}function vk(t){for(;(Dn=Ba())&&Dn<33;)_r();return Du(t)>2||Du(Dn)>3?"":" "}function yk(t,e){for(;--e&&_r()&&!(Dn<48||Dn>102||Dn>57&&Dn<65||Dn>70&&Dn<97););return Bu(t,Ef()+(e<6&&Ba()==32&&_r()==32))}function Ep(t){for(;_r();)switch(Dn){case t:return wr;case 34:case 39:t!==34&&t!==39&&Ep(Dn);break;case 40:t===41&&Ep(t);break;case 92:_r();break}return wr}function bk(t,e){for(;_r()&&t+Dn!==57;)if(t+Dn===84&&Ba()===47)break;return"/*"+Bu(e,wr-1)+"*"+o1(t===47?t:_r())}function Sk(t){for(;!Du(Ba());)_r();return Bu(t,wr)}function Ek(t){return aA(wf("",null,null,null,[""],t=rA(t),0,[0],t))}function wf(t,e,a,i,l,o,c,h,f){for(var m=0,v=0,b=c,S=0,A=0,w=0,R=1,k=1,D=1,I=0,B="",Y=l,j=o,F=i,Z=B;k;)switch(w=I,I=_r()){case 40:if(w!=108&&$n(Z,b-1)==58){Sp(Z+=jt(Af(I),"&","&\f"),"&\f")!=-1&&(D=-1);break}case 34:case 39:case 91:Z+=Af(I);break;case 9:case 10:case 13:case 32:Z+=vk(w);break;case 92:Z+=yk(Ef()-1,7);continue;case 47:switch(Ba()){case 42:case 47:lf(Ak(bk(_r(),Ef()),e,a),f);break;default:Z+="/"}break;case 123*R:h[m++]=za(Z)*D;case 125*R:case 59:case 0:switch(I){case 0:case 125:k=0;case 59+v:D==-1&&(Z=jt(Z,/\f/g,"")),A>0&&za(Z)-b&&lf(A>32?cb(Z+";",i,a,b-1):cb(jt(Z," ","")+";",i,a,b-2),f);break;case 59:Z+=";";default:if(lf(F=ub(Z,e,a,m,v,l,h,B,Y=[],j=[],b),o),I===123)if(v===0)wf(Z,e,F,F,Y,o,b,h,j);else switch(S===99&&$n(Z,3)===110?100:S){case 100:case 108:case 109:case 115:wf(t,F,F,i&&lf(ub(t,F,F,0,0,l,h,B,l,Y=[],b),j),l,j,b,h,i?Y:j);break;default:wf(Z,F,F,F,[""],j,0,h,j)}}m=v=A=0,R=D=1,B=Z="",b=c;break;case 58:b=1+za(Z),A=w;default:if(R<1){if(I==123)--R;else if(I==125&&R++==0&&gk()==125)continue}switch(Z+=o1(I),I*R){case 38:D=v>0?1:(Z+="\f",-1);break;case 44:h[m++]=(za(Z)-1)*D,D=1;break;case 64:Ba()===45&&(Z+=Af(_r())),S=Ba(),v=b=za(B=Z+=Sk(Ef())),I++;break;case 45:w===45&&za(Z)==2&&(R=0)}}return o}function ub(t,e,a,i,l,o,c,h,f,m,v){for(var b=l-1,S=l===0?o:[""],A=E4(S),w=0,R=0,k=0;w<i;++w)for(var D=0,I=Mu(t,b+1,b=ck(R=c[w])),B=t;D<A;++D)(B=tA(R>0?S[D]+" "+I:jt(I,/&\f/g,S[D])))&&(f[k++]=B);return c1(t,e,a,l===0?b4:h,f,m,v)}function Ak(t,e,a){return c1(t,e,a,$E,o1(pk()),Mu(t,2,-2),0)}function cb(t,e,a,i){return c1(t,e,a,S4,Mu(t,0,i),Mu(t,i+1,-1),i)}function Ds(t,e){for(var a="",i=E4(t),l=0;l<i;l++)a+=e(t[l],l,t,e)||"";return a}function wk(t,e,a,i){switch(t.type){case uk:if(t.children.length)break;case ok:case S4:return t.return=t.return||t.value;case $E:return"";case eA:return t.return=t.value+"{"+Ds(t.children,i)+"}";case b4:t.value=t.props.join(",")}return za(a=Ds(t.children,i))?t.return=t.value+"{"+a+"}":""}function Ck(t){var e=E4(t);return function(a,i,l,o){for(var c="",h=0;h<e;h++)c+=t[h](a,i,l,o)||"";return c}}function xk(t){return function(e){e.root||(e=e.return)&&t(e)}}function Tk(t){var e=Object.create(null);return function(a){return e[a]===void 0&&(e[a]=t(a)),e[a]}}var Ok=function(e,a,i){for(var l=0,o=0;l=o,o=Ba(),l===38&&o===12&&(a[i]=1),!Du(o);)_r();return Bu(e,wr)},Rk=function(e,a){var i=-1,l=44;do switch(Du(l)){case 0:l===38&&Ba()===12&&(a[i]=1),e[i]+=Ok(wr-1,a,i);break;case 2:e[i]+=Af(l);break;case 4:if(l===44){e[++i]=Ba()===58?"&\f":"",a[i]=e[i].length;break}default:e[i]+=o1(l)}while(l=_r());return e},Ik=function(e,a){return aA(Rk(rA(e),a))},fb=new WeakMap,Mk=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var a=e.value,i=e.parent,l=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&a.charCodeAt(0)!==58&&!fb.get(i))&&!l){fb.set(e,!0);for(var o=[],c=Ik(a,o),h=i.props,f=0,m=0;f<c.length;f++)for(var v=0;v<h.length;v++,m++)e.props[m]=o[f]?c[f].replace(/&\f/g,h[v]):h[v]+" "+c[f]}}},Dk=function(e){if(e.type==="decl"){var a=e.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(e.return="",e.value="")}};function iA(t,e){switch(dk(t,e)){case 5103:return kt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return kt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return kt+t+Uf+t+rr+t+t;case 6828:case 4268:return kt+t+rr+t+t;case 6165:return kt+t+rr+"flex-"+t+t;case 5187:return kt+t+jt(t,/(\w+).+(:[^]+)/,kt+"box-$1$2"+rr+"flex-$1$2")+t;case 5443:return kt+t+rr+"flex-item-"+jt(t,/flex-|-self/,"")+t;case 4675:return kt+t+rr+"flex-line-pack"+jt(t,/align-content|flex-|-self/,"")+t;case 5548:return kt+t+rr+jt(t,"shrink","negative")+t;case 5292:return kt+t+rr+jt(t,"basis","preferred-size")+t;case 6060:return kt+"box-"+jt(t,"-grow","")+kt+t+rr+jt(t,"grow","positive")+t;case 4554:return kt+jt(t,/([^-])(transform)/g,"$1"+kt+"$2")+t;case 6187:return jt(jt(jt(t,/(zoom-|grab)/,kt+"$1"),/(image-set)/,kt+"$1"),t,"")+t;case 5495:case 3959:return jt(t,/(image-set\([^]*)/,kt+"$1$`$1");case 4968:return jt(jt(t,/(.+:)(flex-)?(.*)/,kt+"box-pack:$3"+rr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+kt+t+t;case 4095:case 3583:case 4068:case 2532:return jt(t,/(.+)-inline(.+)/,kt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(za(t)-1-e>6)switch($n(t,e+1)){case 109:if($n(t,e+4)!==45)break;case 102:return jt(t,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+Uf+($n(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Sp(t,"stretch")?iA(jt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if($n(t,e+1)!==115)break;case 6444:switch($n(t,za(t)-3-(~Sp(t,"!important")&&10))){case 107:return jt(t,":",":"+kt)+t;case 101:return jt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+($n(t,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+rr+"$2box$3")+t}break;case 5936:switch($n(t,e+11)){case 114:return kt+t+rr+jt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return kt+t+rr+jt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return kt+t+rr+jt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return kt+t+rr+t+t}return t}var Nk=function(e,a,i,l){if(e.length>-1&&!e.return)switch(e.type){case S4:e.return=iA(e.value,e.length);break;case eA:return Ds([ru(e,{value:jt(e.value,"@","@"+kt)})],l);case b4:if(e.length)return mk(e.props,function(o){switch(hk(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ds([ru(e,{props:[jt(o,/:(read-\w+)/,":"+Uf+"$1")]})],l);case"::placeholder":return Ds([ru(e,{props:[jt(o,/:(plac\w+)/,":"+kt+"input-$1")]}),ru(e,{props:[jt(o,/:(plac\w+)/,":"+Uf+"$1")]}),ru(e,{props:[jt(o,/:(plac\w+)/,rr+"input-$1")]})],l)}return""})}},Lk=[Nk],kk=function(e){var a=e.key;if(a==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(R){var k=R.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var l=e.stylisPlugins||Lk,o={},c,h=[];c=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(R){for(var k=R.getAttribute("data-emotion").split(" "),D=1;D<k.length;D++)o[k[D]]=!0;h.push(R)});var f,m=[Mk,Dk];{var v,b=[wk,xk(function(R){v.insert(R)})],S=Ck(m.concat(l,b)),A=function(k){return Ds(Ek(k),S)};f=function(k,D,I,B){v=I,A(k?k+"{"+D.styles+"}":D.styles),B&&(w.inserted[D.name]=!0)}}var w={key:a,sheet:new sk({key:a,container:c,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:f};return w.sheet.hydrate(h),w},h3={exports:{}},zt={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var db;function jk(){if(db)return zt;db=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,l=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,v=t?Symbol.for("react.forward_ref"):60112,b=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,A=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,R=t?Symbol.for("react.block"):60121,k=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,I=t?Symbol.for("react.scope"):60119;function B(j){if(typeof j=="object"&&j!==null){var F=j.$$typeof;switch(F){case e:switch(j=j.type,j){case f:case m:case i:case o:case l:case b:return j;default:switch(j=j&&j.$$typeof,j){case h:case v:case w:case A:case c:return j;default:return F}}case a:return F}}}function Y(j){return B(j)===m}return zt.AsyncMode=f,zt.ConcurrentMode=m,zt.ContextConsumer=h,zt.ContextProvider=c,zt.Element=e,zt.ForwardRef=v,zt.Fragment=i,zt.Lazy=w,zt.Memo=A,zt.Portal=a,zt.Profiler=o,zt.StrictMode=l,zt.Suspense=b,zt.isAsyncMode=function(j){return Y(j)||B(j)===f},zt.isConcurrentMode=Y,zt.isContextConsumer=function(j){return B(j)===h},zt.isContextProvider=function(j){return B(j)===c},zt.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},zt.isForwardRef=function(j){return B(j)===v},zt.isFragment=function(j){return B(j)===i},zt.isLazy=function(j){return B(j)===w},zt.isMemo=function(j){return B(j)===A},zt.isPortal=function(j){return B(j)===a},zt.isProfiler=function(j){return B(j)===o},zt.isStrictMode=function(j){return B(j)===l},zt.isSuspense=function(j){return B(j)===b},zt.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===i||j===m||j===o||j===l||j===b||j===S||typeof j=="object"&&j!==null&&(j.$$typeof===w||j.$$typeof===A||j.$$typeof===c||j.$$typeof===h||j.$$typeof===v||j.$$typeof===k||j.$$typeof===D||j.$$typeof===I||j.$$typeof===R)},zt.typeOf=B,zt}var hb;function _k(){return hb||(hb=1,h3.exports=jk()),h3.exports}var m3,mb;function Uk(){if(mb)return m3;mb=1;var t=_k(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=i,o[t.Memo]=l;function c(w){return t.isMemo(w)?l:o[w.$$typeof]||e}var h=Object.defineProperty,f=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,S=Object.prototype;function A(w,R,k){if(typeof R!="string"){if(S){var D=b(R);D&&D!==S&&A(w,D,k)}var I=f(R);m&&(I=I.concat(m(R)));for(var B=c(w),Y=c(R),j=0;j<I.length;++j){var F=I[j];if(!a[F]&&!(k&&k[F])&&!(Y&&Y[F])&&!(B&&B[F])){var Z=v(R,F);try{h(w,F,Z)}catch{}}}}return w}return m3=A,m3}Uk();var qk=!0;function zk(t,e,a){var i="";return a.split(" ").forEach(function(l){t[l]!==void 0?e.push(t[l]+";"):l&&(i+=l+" ")}),i}var lA=function(e,a,i){var l=e.key+"-"+a.name;(i===!1||qk===!1)&&e.registered[l]===void 0&&(e.registered[l]=a.styles)},Pk=function(e,a,i){lA(e,a,i);var l=e.key+"-"+a.name;if(e.inserted[a.name]===void 0){var o=a;do e.insert(a===o?"."+l:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Hk(t){for(var e=0,a,i=0,l=t.length;l>=4;++i,l-=4)a=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,e=(a&65535)*1540483477+((a>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(l){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Bk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Fk=/[A-Z]|^ms/g,Vk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sA=function(e){return e.charCodeAt(1)===45},pb=function(e){return e!=null&&typeof e!="boolean"},p3=Tk(function(t){return sA(t)?t:t.replace(Fk,"-$&").toLowerCase()}),gb=function(e,a){switch(e){case"animation":case"animationName":if(typeof a=="string")return a.replace(Vk,function(i,l,o){return Pa={name:l,styles:o,next:Pa},l})}return Bk[e]!==1&&!sA(e)&&typeof a=="number"&&a!==0?a+"px":a};function Nu(t,e,a){if(a==null)return"";var i=a;if(i.__emotion_styles!==void 0)return i;switch(typeof a){case"boolean":return"";case"object":{var l=a;if(l.anim===1)return Pa={name:l.name,styles:l.styles,next:Pa},l.name;var o=a;if(o.styles!==void 0){var c=o.next;if(c!==void 0)for(;c!==void 0;)Pa={name:c.name,styles:c.styles,next:Pa},c=c.next;var h=o.styles+";";return h}return Gk(t,e,a)}case"function":{if(t!==void 0){var f=Pa,m=a(t);return Pa=f,Nu(t,e,m)}break}}var v=a;return v}function Gk(t,e,a){var i="";if(Array.isArray(a))for(var l=0;l<a.length;l++)i+=Nu(t,e,a[l])+";";else for(var o in a){var c=a[o];if(typeof c!="object"){var h=c;pb(h)&&(i+=p3(o)+":"+gb(o,h)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&e==null)for(var f=0;f<c.length;f++)pb(c[f])&&(i+=p3(o)+":"+gb(o,c[f])+";");else{var m=Nu(t,e,c);switch(o){case"animation":case"animationName":{i+=p3(o)+":"+m+";";break}default:i+=o+"{"+m+"}"}}}return i}var vb=/label:\s*([^\s;{]+)\s*(;|$)/g,Pa;function oA(t,e,a){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,l="";Pa=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,l+=Nu(a,e,o);else{var c=o;l+=c[0]}for(var h=1;h<t.length;h++)if(l+=Nu(a,e,t[h]),i){var f=o;l+=f[h]}vb.lastIndex=0;for(var m="",v;(v=vb.exec(l))!==null;)m+="-"+v[1];var b=Hk(l)+m;return{name:b,styles:l,next:Pa}}var Zk=function(e){return e()},Wk=cv.useInsertionEffect?cv.useInsertionEffect:!1,Yk=Wk||Zk,uA=g.createContext(typeof HTMLElement<"u"?kk({key:"css"}):null);uA.Provider;var Qk=function(e){return g.forwardRef(function(a,i){var l=g.useContext(uA);return e(a,l,i)})},Kk=g.createContext({}),A4={}.hasOwnProperty,Ap="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jk=function(e,a){var i={};for(var l in a)A4.call(a,l)&&(i[l]=a[l]);return i[Ap]=e,i},Xk=function(e){var a=e.cache,i=e.serialized,l=e.isStringTag;return lA(a,i,l),Yk(function(){return Pk(a,i,l)}),null},$k=Qk(function(t,e,a){var i=t.css;typeof i=="string"&&e.registered[i]!==void 0&&(i=e.registered[i]);var l=t[Ap],o=[i],c="";typeof t.className=="string"?c=zk(e.registered,o,t.className):t.className!=null&&(c=t.className+" ");var h=oA(o,void 0,g.useContext(Kk));c+=e.key+"-"+h.name;var f={};for(var m in t)A4.call(t,m)&&m!=="css"&&m!==Ap&&(f[m]=t[m]);return f.className=c,a&&(f.ref=a),g.createElement(g.Fragment,null,g.createElement(Xk,{cache:e,serialized:h,isStringTag:typeof l=="string"}),g.createElement(l,f))}),ej=$k,qe=function(e,a){var i=arguments;if(a==null||!A4.call(a,"css"))return g.createElement.apply(void 0,i);var l=i.length,o=new Array(l);o[0]=ej,o[1]=Jk(e,a);for(var c=2;c<l;c++)o[c]=i[c];return g.createElement.apply(null,o)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(qe||(qe={}));function w4(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return oA(e)}function tj(){var t=w4.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function nj(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var wp=g.useLayoutEffect,rj=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],qf=function(){};function aj(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function ij(t,e){for(var a=arguments.length,i=new Array(a>2?a-2:0),l=2;l<a;l++)i[l-2]=arguments[l];var o=[].concat(i);if(e&&t)for(var c in e)e.hasOwnProperty(c)&&e[c]&&o.push("".concat(aj(t,c)));return o.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var zf=function(e){return mj(e)?e.filter(Boolean):Ll(e)==="object"&&e!==null?[e]:[]},cA=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var a=Ya(e,rj);return ze({},a)},gn=function(e,a,i){var l=e.cx,o=e.getStyles,c=e.getClassNames,h=e.className;return{css:o(a,e),className:l(i??{},c(a,e),h)}};function f1(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function lj(t){return f1(t)?window.innerHeight:t.clientHeight}function fA(t){return f1(t)?window.pageYOffset:t.scrollTop}function Pf(t,e){if(f1(t)){window.scrollTo(0,e);return}t.scrollTop=e}function sj(t){var e=getComputedStyle(t),a=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var l=t;l=l.parentElement;)if(e=getComputedStyle(l),!(a&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return l;return document.documentElement}function oj(t,e,a,i){return a*((t=t/i-1)*t*t+1)+e}function sf(t,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:qf,l=fA(t),o=e-l,c=10,h=0;function f(){h+=c;var m=oj(h,l,o,a);Pf(t,m),h<a?window.requestAnimationFrame(f):i(t)}f()}function yb(t,e){var a=t.getBoundingClientRect(),i=e.getBoundingClientRect(),l=e.offsetHeight/3;i.bottom+l>a.bottom?Pf(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+l,t.scrollHeight)):i.top-l<a.top&&Pf(t,Math.max(e.offsetTop-l,0))}function uj(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function bb(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function cj(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var dA=!1,fj={get passive(){return dA=!0}},of=typeof window<"u"?window:{};of.addEventListener&&of.removeEventListener&&(of.addEventListener("p",qf,fj),of.removeEventListener("p",qf,!1));var dj=dA;function hj(t){return t!=null}function mj(t){return Array.isArray(t)}function Su(t,e,a){return t?e:a}var pj=function(e){for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l<a;l++)i[l-1]=arguments[l];var o=Object.entries(e).filter(function(c){var h=pi(c,1),f=h[0];return!i.includes(f)});return o.reduce(function(c,h){var f=pi(h,2),m=f[0],v=f[1];return c[m]=v,c},{})},gj=["children","innerProps"],vj=["children","innerProps"];function yj(t){var e=t.maxHeight,a=t.menuEl,i=t.minHeight,l=t.placement,o=t.shouldScroll,c=t.isFixedPosition,h=t.controlHeight,f=sj(a),m={placement:"bottom",maxHeight:e};if(!a||!a.offsetParent)return m;var v=f.getBoundingClientRect(),b=v.height,S=a.getBoundingClientRect(),A=S.bottom,w=S.height,R=S.top,k=a.offsetParent.getBoundingClientRect(),D=k.top,I=c?window.innerHeight:lj(f),B=fA(f),Y=parseInt(getComputedStyle(a).marginBottom,10),j=parseInt(getComputedStyle(a).marginTop,10),F=D-j,Z=I-R,E=F+B,x=b-B-R,O=A-I+B+Y,z=B+R-j,_=160;switch(l){case"auto":case"bottom":if(Z>=w)return{placement:"bottom",maxHeight:e};if(x>=w&&!c)return o&&sf(f,O,_),{placement:"bottom",maxHeight:e};if(!c&&x>=i||c&&Z>=i){o&&sf(f,O,_);var q=c?Z-Y:x-Y;return{placement:"bottom",maxHeight:q}}if(l==="auto"||c){var V=e,U=c?F:E;return U>=i&&(V=Math.min(U-Y-h,e)),{placement:"top",maxHeight:V}}if(l==="bottom")return o&&Pf(f,O),{placement:"bottom",maxHeight:e};break;case"top":if(F>=w)return{placement:"top",maxHeight:e};if(E>=w&&!c)return o&&sf(f,z,_),{placement:"top",maxHeight:e};if(!c&&E>=i||c&&F>=i){var M=e;return(!c&&E>=i||c&&F>=i)&&(M=c?F-j:E-j),o&&sf(f,z,_),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(l,'".'))}return m}function bj(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var hA=function(e){return e==="auto"?"bottom":e},Sj=function(e,a){var i,l=e.placement,o=e.theme,c=o.borderRadius,h=o.spacing,f=o.colors;return ze((i={label:"menu"},bu(i,bj(l),"100%"),bu(i,"position","absolute"),bu(i,"width","100%"),bu(i,"zIndex",1),i),a?{}:{backgroundColor:f.neutral0,borderRadius:c,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:h.menuGutter,marginTop:h.menuGutter})},mA=g.createContext(null),Ej=function(e){var a=e.children,i=e.minMenuHeight,l=e.maxMenuHeight,o=e.menuPlacement,c=e.menuPosition,h=e.menuShouldScrollIntoView,f=e.theme,m=g.useContext(mA)||{},v=m.setPortalPlacement,b=g.useRef(null),S=g.useState(l),A=pi(S,2),w=A[0],R=A[1],k=g.useState(null),D=pi(k,2),I=D[0],B=D[1],Y=f.spacing.controlHeight;return wp(function(){var j=b.current;if(j){var F=c==="fixed",Z=h&&!F,E=yj({maxHeight:l,menuEl:j,minHeight:i,placement:o,shouldScroll:Z,isFixedPosition:F,controlHeight:Y});R(E.maxHeight),B(E.placement),v==null||v(E.placement)}},[l,o,c,h,i,v,Y]),a({ref:b,placerProps:ze(ze({},e),{},{placement:I||hA(o),maxHeight:w})})},Aj=function(e){var a=e.children,i=e.innerRef,l=e.innerProps;return qe("div",Ve({},gn(e,"menu",{menu:!0}),{ref:i},l),a)},wj=Aj,Cj=function(e,a){var i=e.maxHeight,l=e.theme.spacing.baseUnit;return ze({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},a?{}:{paddingBottom:l,paddingTop:l})},xj=function(e){var a=e.children,i=e.innerProps,l=e.innerRef,o=e.isMulti;return qe("div",Ve({},gn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:l},i),a)},pA=function(e,a){var i=e.theme,l=i.spacing.baseUnit,o=i.colors;return ze({textAlign:"center"},a?{}:{color:o.neutral40,padding:"".concat(l*2,"px ").concat(l*3,"px")})},Tj=pA,Oj=pA,Rj=function(e){var a=e.children,i=a===void 0?"No options":a,l=e.innerProps,o=Ya(e,gj);return qe("div",Ve({},gn(ze(ze({},o),{},{children:i,innerProps:l}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),l),i)},Ij=function(e){var a=e.children,i=a===void 0?"Loading...":a,l=e.innerProps,o=Ya(e,vj);return qe("div",Ve({},gn(ze(ze({},o),{},{children:i,innerProps:l}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),l),i)},Mj=function(e){var a=e.rect,i=e.offset,l=e.position;return{left:a.left,position:l,top:i,width:a.width,zIndex:1}},Dj=function(e){var a=e.appendTo,i=e.children,l=e.controlElement,o=e.innerProps,c=e.menuPlacement,h=e.menuPosition,f=g.useRef(null),m=g.useRef(null),v=g.useState(hA(c)),b=pi(v,2),S=b[0],A=b[1],w=g.useMemo(function(){return{setPortalPlacement:A}},[]),R=g.useState(null),k=pi(R,2),D=k[0],I=k[1],B=g.useCallback(function(){if(l){var Z=uj(l),E=h==="fixed"?0:window.pageYOffset,x=Z[S]+E;(x!==(D==null?void 0:D.offset)||Z.left!==(D==null?void 0:D.rect.left)||Z.width!==(D==null?void 0:D.rect.width))&&I({offset:x,rect:Z})}},[l,h,S,D==null?void 0:D.offset,D==null?void 0:D.rect.left,D==null?void 0:D.rect.width]);wp(function(){B()},[B]);var Y=g.useCallback(function(){typeof m.current=="function"&&(m.current(),m.current=null),l&&f.current&&(m.current=qS(l,f.current,B,{elementResize:"ResizeObserver"in window}))},[l,B]);wp(function(){Y()},[Y]);var j=g.useCallback(function(Z){f.current=Z,Y()},[Y]);if(!a&&h!=="fixed"||!D)return null;var F=qe("div",Ve({ref:j},gn(ze(ze({},e),{},{offset:D.offset,position:h,rect:D.rect}),"menuPortal",{"menu-portal":!0}),o),i);return qe(mA.Provider,{value:w},a?RR.createPortal(F,a):F)},Nj=function(e){var a=e.isDisabled,i=e.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:a?"none":void 0,position:"relative"}},Lj=function(e){var a=e.children,i=e.innerProps,l=e.isDisabled,o=e.isRtl;return qe("div",Ve({},gn(e,"container",{"--is-disabled":l,"--is-rtl":o}),i),a)},kj=function(e,a){var i=e.theme.spacing,l=e.isMulti,o=e.hasValue,c=e.selectProps.controlShouldRenderValue;return ze({alignItems:"center",display:l&&o&&c?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},a?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},jj=function(e){var a=e.children,i=e.innerProps,l=e.isMulti,o=e.hasValue;return qe("div",Ve({},gn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":l,"value-container--has-value":o}),i),a)},_j=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Uj=function(e){var a=e.children,i=e.innerProps;return qe("div",Ve({},gn(e,"indicatorsContainer",{indicators:!0}),i),a)},Sb,qj=["size"],zj=["innerProps","isRtl","size"],Pj={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},gA=function(e){var a=e.size,i=Ya(e,qj);return qe("svg",Ve({height:a,width:a,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Pj},i))},C4=function(e){return qe(gA,Ve({size:20},e),qe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},vA=function(e){return qe(gA,Ve({size:20},e),qe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},yA=function(e,a){var i=e.isFocused,l=e.theme,o=l.spacing.baseUnit,c=l.colors;return ze({label:"indicatorContainer",display:"flex",transition:"color 150ms"},a?{}:{color:i?c.neutral60:c.neutral20,padding:o*2,":hover":{color:i?c.neutral80:c.neutral40}})},Hj=yA,Bj=function(e){var a=e.children,i=e.innerProps;return qe("div",Ve({},gn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),a||qe(vA,null))},Fj=yA,Vj=function(e){var a=e.children,i=e.innerProps;return qe("div",Ve({},gn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),a||qe(C4,null))},Gj=function(e,a){var i=e.isDisabled,l=e.theme,o=l.spacing.baseUnit,c=l.colors;return ze({label:"indicatorSeparator",alignSelf:"stretch",width:1},a?{}:{backgroundColor:i?c.neutral10:c.neutral20,marginBottom:o*2,marginTop:o*2})},Zj=function(e){var a=e.innerProps;return qe("span",Ve({},a,gn(e,"indicatorSeparator",{"indicator-separator":!0})))},Wj=tj(Sb||(Sb=nj([`
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
`]))),Yj=function(e,a){var i=e.isFocused,l=e.size,o=e.theme,c=o.colors,h=o.spacing.baseUnit;return ze({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:l,lineHeight:1,marginRight:l,textAlign:"center",verticalAlign:"middle"},a?{}:{color:i?c.neutral60:c.neutral20,padding:h*2})},g3=function(e){var a=e.delay,i=e.offset;return qe("span",{css:w4({animation:"".concat(Wj," 1s ease-in-out ").concat(a,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Qj=function(e){var a=e.innerProps,i=e.isRtl,l=e.size,o=l===void 0?4:l,c=Ya(e,zj);return qe("div",Ve({},gn(ze(ze({},c),{},{innerProps:a,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),a),qe(g3,{delay:0,offset:i}),qe(g3,{delay:160,offset:!0}),qe(g3,{delay:320,offset:!i}))},Kj=function(e,a){var i=e.isDisabled,l=e.isFocused,o=e.theme,c=o.colors,h=o.borderRadius,f=o.spacing;return ze({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:f.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},a?{}:{backgroundColor:i?c.neutral5:c.neutral0,borderColor:i?c.neutral10:l?c.primary:c.neutral20,borderRadius:h,borderStyle:"solid",borderWidth:1,boxShadow:l?"0 0 0 1px ".concat(c.primary):void 0,"&:hover":{borderColor:l?c.primary:c.neutral30}})},Jj=function(e){var a=e.children,i=e.isDisabled,l=e.isFocused,o=e.innerRef,c=e.innerProps,h=e.menuIsOpen;return qe("div",Ve({ref:o},gn(e,"control",{control:!0,"control--is-disabled":i,"control--is-focused":l,"control--menu-is-open":h}),c,{"aria-disabled":i||void 0}),a)},Xj=Jj,$j=["data"],e_=function(e,a){var i=e.theme.spacing;return a?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},t_=function(e){var a=e.children,i=e.cx,l=e.getStyles,o=e.getClassNames,c=e.Heading,h=e.headingProps,f=e.innerProps,m=e.label,v=e.theme,b=e.selectProps;return qe("div",Ve({},gn(e,"group",{group:!0}),f),qe(c,Ve({},h,{selectProps:b,theme:v,getStyles:l,getClassNames:o,cx:i}),m),qe("div",null,a))},n_=function(e,a){var i=e.theme,l=i.colors,o=i.spacing;return ze({label:"group",cursor:"default",display:"block"},a?{}:{color:l.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},r_=function(e){var a=cA(e);a.data;var i=Ya(a,$j);return qe("div",Ve({},gn(e,"groupHeading",{"group-heading":!0}),i))},a_=t_,i_=["innerRef","isDisabled","isHidden","inputClassName"],l_=function(e,a){var i=e.isDisabled,l=e.value,o=e.theme,c=o.spacing,h=o.colors;return ze(ze({visibility:i?"hidden":"visible",transform:l?"translateZ(0)":""},s_),a?{}:{margin:c.baseUnit/2,paddingBottom:c.baseUnit/2,paddingTop:c.baseUnit/2,color:h.neutral80})},bA={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},s_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ze({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},bA)},o_=function(e){return ze({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},bA)},u_=function(e){var a=e.cx,i=e.value,l=cA(e),o=l.innerRef,c=l.isDisabled,h=l.isHidden,f=l.inputClassName,m=Ya(l,i_);return qe("div",Ve({},gn(e,"input",{"input-container":!0}),{"data-value":i||""}),qe("input",Ve({className:a({input:!0},f),ref:o,style:o_(h),disabled:c},m)))},c_=u_,f_=function(e,a){var i=e.theme,l=i.spacing,o=i.borderRadius,c=i.colors;return ze({label:"multiValue",display:"flex",minWidth:0},a?{}:{backgroundColor:c.neutral10,borderRadius:o/2,margin:l.baseUnit/2})},d_=function(e,a){var i=e.theme,l=i.borderRadius,o=i.colors,c=e.cropWithEllipsis;return ze({overflow:"hidden",textOverflow:c||c===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},a?{}:{borderRadius:l/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},h_=function(e,a){var i=e.theme,l=i.spacing,o=i.borderRadius,c=i.colors,h=e.isFocused;return ze({alignItems:"center",display:"flex"},a?{}:{borderRadius:o/2,backgroundColor:h?c.dangerLight:void 0,paddingLeft:l.baseUnit,paddingRight:l.baseUnit,":hover":{backgroundColor:c.dangerLight,color:c.danger}})},SA=function(e){var a=e.children,i=e.innerProps;return qe("div",i,a)},m_=SA,p_=SA;function g_(t){var e=t.children,a=t.innerProps;return qe("div",Ve({role:"button"},a),e||qe(C4,{size:14}))}var v_=function(e){var a=e.children,i=e.components,l=e.data,o=e.innerProps,c=e.isDisabled,h=e.removeProps,f=e.selectProps,m=i.Container,v=i.Label,b=i.Remove;return qe(m,{data:l,innerProps:ze(ze({},gn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":c})),o),selectProps:f},qe(v,{data:l,innerProps:ze({},gn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:f},a),qe(b,{data:l,innerProps:ze(ze({},gn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(a||"option")},h),selectProps:f}))},y_=v_,b_=function(e,a){var i=e.isDisabled,l=e.isFocused,o=e.isSelected,c=e.theme,h=c.spacing,f=c.colors;return ze({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},a?{}:{backgroundColor:o?f.primary:l?f.primary25:"transparent",color:i?f.neutral20:o?f.neutral0:"inherit",padding:"".concat(h.baseUnit*2,"px ").concat(h.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?f.primary:f.primary50}})},S_=function(e){var a=e.children,i=e.isDisabled,l=e.isFocused,o=e.isSelected,c=e.innerRef,h=e.innerProps;return qe("div",Ve({},gn(e,"option",{option:!0,"option--is-disabled":i,"option--is-focused":l,"option--is-selected":o}),{ref:c,"aria-disabled":i},h),a)},E_=S_,A_=function(e,a){var i=e.theme,l=i.spacing,o=i.colors;return ze({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},a?{}:{color:o.neutral50,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},w_=function(e){var a=e.children,i=e.innerProps;return qe("div",Ve({},gn(e,"placeholder",{placeholder:!0}),i),a)},C_=w_,x_=function(e,a){var i=e.isDisabled,l=e.theme,o=l.spacing,c=l.colors;return ze({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},a?{}:{color:i?c.neutral40:c.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},T_=function(e){var a=e.children,i=e.isDisabled,l=e.innerProps;return qe("div",Ve({},gn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),l),a)},O_=T_,R_={ClearIndicator:Vj,Control:Xj,DropdownIndicator:Bj,DownChevron:vA,CrossIcon:C4,Group:a_,GroupHeading:r_,IndicatorsContainer:Uj,IndicatorSeparator:Zj,Input:c_,LoadingIndicator:Qj,Menu:wj,MenuList:xj,MenuPortal:Dj,LoadingMessage:Ij,NoOptionsMessage:Rj,MultiValue:y_,MultiValueContainer:m_,MultiValueLabel:p_,MultiValueRemove:g_,Option:E_,Placeholder:C_,SelectContainer:Lj,SingleValue:O_,ValueContainer:jj},I_=function(e){return ze(ze({},R_),e.components)},Eb=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function M_(t,e){return!!(t===e||Eb(t)&&Eb(e))}function D_(t,e){if(t.length!==e.length)return!1;for(var a=0;a<t.length;a++)if(!M_(t[a],e[a]))return!1;return!0}function N_(t,e){e===void 0&&(e=D_);var a=null;function i(){for(var l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];if(a&&a.lastThis===this&&e(l,a.lastArgs))return a.lastResult;var c=t.apply(this,l);return a={lastResult:c,lastArgs:l,lastThis:this},c}return i.clear=function(){a=null},i}var L_={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},k_=function(e){return qe("span",Ve({css:L_},e))},Ab=k_,j_={guidance:function(e){var a=e.isSearchable,i=e.isMulti,l=e.tabSelectsValue,o=e.context,c=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(l?", press Tab to select the option and exit the menu":"",".");case"input":return c?"".concat(e["aria-label"]||"Select"," is focused ").concat(a?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var a=e.action,i=e.label,l=i===void 0?"":i,o=e.labels,c=e.isDisabled;switch(a){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(l,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return c?"option ".concat(l," is disabled. Select another option."):"option ".concat(l,", selected.");default:return""}},onFocus:function(e){var a=e.context,i=e.focused,l=e.options,o=e.label,c=o===void 0?"":o,h=e.selectValue,f=e.isDisabled,m=e.isSelected,v=e.isAppleDevice,b=function(R,k){return R&&R.length?"".concat(R.indexOf(k)+1," of ").concat(R.length):""};if(a==="value"&&h)return"value ".concat(c," focused, ").concat(b(h,i),".");if(a==="menu"&&v){var S=f?" disabled":"",A="".concat(m?" selected":"").concat(S);return"".concat(c).concat(A,", ").concat(b(l,i),".")}return""},onFilter:function(e){var a=e.inputValue,i=e.resultsMessage;return"".concat(i).concat(a?" for search term "+a:"",".")}},__=function(e){var a=e.ariaSelection,i=e.focusedOption,l=e.focusedValue,o=e.focusableOptions,c=e.isFocused,h=e.selectValue,f=e.selectProps,m=e.id,v=e.isAppleDevice,b=f.ariaLiveMessages,S=f.getOptionLabel,A=f.inputValue,w=f.isMulti,R=f.isOptionDisabled,k=f.isSearchable,D=f.menuIsOpen,I=f.options,B=f.screenReaderStatus,Y=f.tabSelectsValue,j=f.isLoading,F=f["aria-label"],Z=f["aria-live"],E=g.useMemo(function(){return ze(ze({},j_),b||{})},[b]),x=g.useMemo(function(){var U="";if(a&&E.onChange){var M=a.option,P=a.options,H=a.removedValue,$=a.removedValues,T=a.value,G=function(Le){return Array.isArray(Le)?null:Le},ee=H||M||G(T),ne=ee?S(ee):"",ge=P||$||void 0,fe=ge?ge.map(S):[],me=ze({isDisabled:ee&&R(ee,h),label:ne,labels:fe},a);U=E.onChange(me)}return U},[a,E,R,h,S]),O=g.useMemo(function(){var U="",M=i||l,P=!!(i&&h&&h.includes(i));if(M&&E.onFocus){var H={focused:M,label:S(M),isDisabled:R(M,h),isSelected:P,options:o,context:M===i?"menu":"value",selectValue:h,isAppleDevice:v};U=E.onFocus(H)}return U},[i,l,S,R,E,o,h,v]),z=g.useMemo(function(){var U="";if(D&&I.length&&!j&&E.onFilter){var M=B({count:o.length});U=E.onFilter({inputValue:A,resultsMessage:M})}return U},[o,A,D,E,I,B,j]),_=(a==null?void 0:a.action)==="initial-input-focus",q=g.useMemo(function(){var U="";if(E.guidance){var M=l?"value":D?"menu":"input";U=E.guidance({"aria-label":F,context:M,isDisabled:i&&R(i,h),isMulti:w,isSearchable:k,tabSelectsValue:Y,isInitialFocus:_})}return U},[F,i,l,w,R,k,D,E,h,Y,_]),V=qe(g.Fragment,null,qe("span",{id:"aria-selection"},x),qe("span",{id:"aria-focused"},O),qe("span",{id:"aria-results"},z),qe("span",{id:"aria-guidance"},q));return qe(g.Fragment,null,qe(Ab,{id:m},_&&V),qe(Ab,{"aria-live":Z,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},c&&!_&&V))},U_=__,Cp=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],q_=new RegExp("["+Cp.map(function(t){return t.letters}).join("")+"]","g"),EA={};for(var v3=0;v3<Cp.length;v3++)for(var y3=Cp[v3],b3=0;b3<y3.letters.length;b3++)EA[y3.letters[b3]]=y3.base;var AA=function(e){return e.replace(q_,function(a){return EA[a]})},z_=N_(AA),wb=function(e){return e.replace(/^\s+|\s+$/g,"")},P_=function(e){return"".concat(e.label," ").concat(e.value)},H_=function(e){return function(a,i){if(a.data.__isNew__)return!0;var l=ze({ignoreCase:!0,ignoreAccents:!0,stringify:P_,trim:!0,matchFrom:"any"},e),o=l.ignoreCase,c=l.ignoreAccents,h=l.stringify,f=l.trim,m=l.matchFrom,v=f?wb(i):i,b=f?wb(h(a)):h(a);return o&&(v=v.toLowerCase(),b=b.toLowerCase()),c&&(v=z_(v),b=AA(b)),m==="start"?b.substr(0,v.length)===v:b.indexOf(v)>-1}},B_=["innerRef"];function F_(t){var e=t.innerRef,a=Ya(t,B_),i=pj(a,"onExited","in","enter","exit","appear");return qe("input",Ve({ref:e},i,{css:w4({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var V_=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function G_(t){var e=t.isEnabled,a=t.onBottomArrive,i=t.onBottomLeave,l=t.onTopArrive,o=t.onTopLeave,c=g.useRef(!1),h=g.useRef(!1),f=g.useRef(0),m=g.useRef(null),v=g.useCallback(function(k,D){if(m.current!==null){var I=m.current,B=I.scrollTop,Y=I.scrollHeight,j=I.clientHeight,F=m.current,Z=D>0,E=Y-j-B,x=!1;E>D&&c.current&&(i&&i(k),c.current=!1),Z&&h.current&&(o&&o(k),h.current=!1),Z&&D>E?(a&&!c.current&&a(k),F.scrollTop=Y,x=!0,c.current=!0):!Z&&-D>B&&(l&&!h.current&&l(k),F.scrollTop=0,x=!0,h.current=!0),x&&V_(k)}},[a,i,l,o]),b=g.useCallback(function(k){v(k,k.deltaY)},[v]),S=g.useCallback(function(k){f.current=k.changedTouches[0].clientY},[]),A=g.useCallback(function(k){var D=f.current-k.changedTouches[0].clientY;v(k,D)},[v]),w=g.useCallback(function(k){if(k){var D=dj?{passive:!1}:!1;k.addEventListener("wheel",b,D),k.addEventListener("touchstart",S,D),k.addEventListener("touchmove",A,D)}},[A,S,b]),R=g.useCallback(function(k){k&&(k.removeEventListener("wheel",b,!1),k.removeEventListener("touchstart",S,!1),k.removeEventListener("touchmove",A,!1))},[A,S,b]);return g.useEffect(function(){if(e){var k=m.current;return w(k),function(){R(k)}}},[e,w,R]),function(k){m.current=k}}var Cb=["boxSizing","height","overflow","paddingRight","position"],xb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Tb(t){t.cancelable&&t.preventDefault()}function Ob(t){t.stopPropagation()}function Rb(){var t=this.scrollTop,e=this.scrollHeight,a=t+this.offsetHeight;t===0?this.scrollTop=1:a===e&&(this.scrollTop=t-1)}function Ib(){return"ontouchstart"in window||navigator.maxTouchPoints}var Mb=!!(typeof window<"u"&&window.document&&window.document.createElement),au=0,Ss={capture:!1,passive:!1};function Z_(t){var e=t.isEnabled,a=t.accountForScrollbars,i=a===void 0?!0:a,l=g.useRef({}),o=g.useRef(null),c=g.useCallback(function(f){if(Mb){var m=document.body,v=m&&m.style;if(i&&Cb.forEach(function(w){var R=v&&v[w];l.current[w]=R}),i&&au<1){var b=parseInt(l.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,A=window.innerWidth-S+b||0;Object.keys(xb).forEach(function(w){var R=xb[w];v&&(v[w]=R)}),v&&(v.paddingRight="".concat(A,"px"))}m&&Ib()&&(m.addEventListener("touchmove",Tb,Ss),f&&(f.addEventListener("touchstart",Rb,Ss),f.addEventListener("touchmove",Ob,Ss))),au+=1}},[i]),h=g.useCallback(function(f){if(Mb){var m=document.body,v=m&&m.style;au=Math.max(au-1,0),i&&au<1&&Cb.forEach(function(b){var S=l.current[b];v&&(v[b]=S)}),m&&Ib()&&(m.removeEventListener("touchmove",Tb,Ss),f&&(f.removeEventListener("touchstart",Rb,Ss),f.removeEventListener("touchmove",Ob,Ss)))}},[i]);return g.useEffect(function(){if(e){var f=o.current;return c(f),function(){h(f)}}},[e,c,h]),function(f){o.current=f}}var W_=function(e){var a=e.target;return a.ownerDocument.activeElement&&a.ownerDocument.activeElement.blur()},Y_={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Q_(t){var e=t.children,a=t.lockEnabled,i=t.captureEnabled,l=i===void 0?!0:i,o=t.onBottomArrive,c=t.onBottomLeave,h=t.onTopArrive,f=t.onTopLeave,m=G_({isEnabled:l,onBottomArrive:o,onBottomLeave:c,onTopArrive:h,onTopLeave:f}),v=Z_({isEnabled:a}),b=function(A){m(A),v(A)};return qe(g.Fragment,null,a&&qe("div",{onClick:W_,css:Y_}),e(b))}var K_={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},J_=function(e){var a=e.name,i=e.onFocus;return qe("input",{required:!0,name:a,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:K_,value:"",onChange:function(){}})},X_=J_;function x4(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function $_(){return x4(/^iPhone/i)}function wA(){return x4(/^Mac/i)}function eU(){return x4(/^iPad/i)||wA()&&navigator.maxTouchPoints>1}function tU(){return $_()||eU()}function nU(){return wA()||tU()}var rU=function(e){return e.label},CA=function(e){return e.label},xA=function(e){return e.value},aU=function(e){return!!e.isDisabled},iU={clearIndicator:Fj,container:Nj,control:Kj,dropdownIndicator:Hj,group:e_,groupHeading:n_,indicatorsContainer:_j,indicatorSeparator:Gj,input:l_,loadingIndicator:Yj,loadingMessage:Oj,menu:Sj,menuList:Cj,menuPortal:Mj,multiValue:f_,multiValueLabel:d_,multiValueRemove:h_,noOptionsMessage:Tj,option:b_,placeholder:A_,singleValue:x_,valueContainer:kj},lU={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},sU=4,TA=4,oU=38,uU=TA*2,cU={baseUnit:TA,controlHeight:oU,menuGutter:uU},S3={borderRadius:sU,colors:lU,spacing:cU},fU={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:bb(),captureMenuScroll:!bb(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:H_(),formatGroupLabel:rU,getOptionLabel:CA,getOptionValue:xA,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:aU,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!cj(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var a=e.count;return"".concat(a," result").concat(a!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Db(t,e,a,i){var l=IA(t,e,a),o=MA(t,e,a),c=RA(t,e),h=Hf(t,e);return{type:"option",data:e,isDisabled:l,isSelected:o,label:c,value:h,index:i}}function Cf(t,e){return t.options.map(function(a,i){if("options"in a){var l=a.options.map(function(c,h){return Db(t,c,e,h)}).filter(function(c){return Lb(t,c)});return l.length>0?{type:"group",data:a,options:l,index:i}:void 0}var o=Db(t,a,e,i);return Lb(t,o)?o:void 0}).filter(hj)}function OA(t){return t.reduce(function(e,a){return a.type==="group"?e.push.apply(e,Ms(a.options.map(function(i){return i.data}))):e.push(a.data),e},[])}function Nb(t,e){return t.reduce(function(a,i){return i.type==="group"?a.push.apply(a,Ms(i.options.map(function(l){return{data:l.data,id:"".concat(e,"-").concat(i.index,"-").concat(l.index)}}))):a.push({data:i.data,id:"".concat(e,"-").concat(i.index)}),a},[])}function dU(t,e){return OA(Cf(t,e))}function Lb(t,e){var a=t.inputValue,i=a===void 0?"":a,l=e.data,o=e.isSelected,c=e.label,h=e.value;return(!NA(t)||!o)&&DA(t,{label:c,value:h,data:l},i)}function hU(t,e){var a=t.focusedValue,i=t.selectValue,l=i.indexOf(a);if(l>-1){var o=e.indexOf(a);if(o>-1)return a;if(l<e.length)return e[l]}return null}function mU(t,e){var a=t.focusedOption;return a&&e.indexOf(a)>-1?a:e[0]}var E3=function(e,a){var i,l=(i=e.find(function(o){return o.data===a}))===null||i===void 0?void 0:i.id;return l||null},RA=function(e,a){return e.getOptionLabel(a)},Hf=function(e,a){return e.getOptionValue(a)};function IA(t,e,a){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,a):!1}function MA(t,e,a){if(a.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,a);var i=Hf(t,e);return a.some(function(l){return Hf(t,l)===i})}function DA(t,e,a){return t.filterOption?t.filterOption(e,a):!0}var NA=function(e){var a=e.hideSelectedOptions,i=e.isMulti;return a===void 0?i:a},pU=1,T4=function(t){XL(a,t);var e=tk(a);function a(i){var l;if(KL(this,a),l=e.call(this,i),l.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},l.blockOptionHover=!1,l.isComposing=!1,l.commonProps=void 0,l.initialTouchX=0,l.initialTouchY=0,l.openAfterFocus=!1,l.scrollToFocusedOptionOnUpdate=!1,l.userIsDragging=void 0,l.isAppleDevice=nU(),l.controlRef=null,l.getControlRef=function(f){l.controlRef=f},l.focusedOptionRef=null,l.getFocusedOptionRef=function(f){l.focusedOptionRef=f},l.menuListRef=null,l.getMenuListRef=function(f){l.menuListRef=f},l.inputRef=null,l.getInputRef=function(f){l.inputRef=f},l.focus=l.focusInput,l.blur=l.blurInput,l.onChange=function(f,m){var v=l.props,b=v.onChange,S=v.name;m.name=S,l.ariaOnChange(f,m),b(f,m)},l.setValue=function(f,m,v){var b=l.props,S=b.closeMenuOnSelect,A=b.isMulti,w=b.inputValue;l.onInputChange("",{action:"set-value",prevInputValue:w}),S&&(l.setState({inputIsHiddenAfterUpdate:!A}),l.onMenuClose()),l.setState({clearFocusValueOnUpdate:!0}),l.onChange(f,{action:m,option:v})},l.selectOption=function(f){var m=l.props,v=m.blurInputOnSelect,b=m.isMulti,S=m.name,A=l.state.selectValue,w=b&&l.isOptionSelected(f,A),R=l.isOptionDisabled(f,A);if(w){var k=l.getOptionValue(f);l.setValue(A.filter(function(D){return l.getOptionValue(D)!==k}),"deselect-option",f)}else if(!R)b?l.setValue([].concat(Ms(A),[f]),"select-option",f):l.setValue(f,"select-option");else{l.ariaOnChange(f,{action:"select-option",option:f,name:S});return}v&&l.blurInput()},l.removeValue=function(f){var m=l.props.isMulti,v=l.state.selectValue,b=l.getOptionValue(f),S=v.filter(function(w){return l.getOptionValue(w)!==b}),A=Su(m,S,S[0]||null);l.onChange(A,{action:"remove-value",removedValue:f}),l.focusInput()},l.clearValue=function(){var f=l.state.selectValue;l.onChange(Su(l.props.isMulti,[],null),{action:"clear",removedValues:f})},l.popValue=function(){var f=l.props.isMulti,m=l.state.selectValue,v=m[m.length-1],b=m.slice(0,m.length-1),S=Su(f,b,b[0]||null);v&&l.onChange(S,{action:"pop-value",removedValue:v})},l.getFocusedOptionId=function(f){return E3(l.state.focusableOptionsWithIds,f)},l.getFocusableOptionsWithIds=function(){return Nb(Cf(l.props,l.state.selectValue),l.getElementId("option"))},l.getValue=function(){return l.state.selectValue},l.cx=function(){for(var f=arguments.length,m=new Array(f),v=0;v<f;v++)m[v]=arguments[v];return ij.apply(void 0,[l.props.classNamePrefix].concat(m))},l.getOptionLabel=function(f){return RA(l.props,f)},l.getOptionValue=function(f){return Hf(l.props,f)},l.getStyles=function(f,m){var v=l.props.unstyled,b=iU[f](m,v);b.boxSizing="border-box";var S=l.props.styles[f];return S?S(b,m):b},l.getClassNames=function(f,m){var v,b;return(v=(b=l.props.classNames)[f])===null||v===void 0?void 0:v.call(b,m)},l.getElementId=function(f){return"".concat(l.state.instancePrefix,"-").concat(f)},l.getComponents=function(){return I_(l.props)},l.buildCategorizedOptions=function(){return Cf(l.props,l.state.selectValue)},l.getCategorizedOptions=function(){return l.props.menuIsOpen?l.buildCategorizedOptions():[]},l.buildFocusableOptions=function(){return OA(l.buildCategorizedOptions())},l.getFocusableOptions=function(){return l.props.menuIsOpen?l.buildFocusableOptions():[]},l.ariaOnChange=function(f,m){l.setState({ariaSelection:ze({value:f},m)})},l.onMenuMouseDown=function(f){f.button===0&&(f.stopPropagation(),f.preventDefault(),l.focusInput())},l.onMenuMouseMove=function(f){l.blockOptionHover=!1},l.onControlMouseDown=function(f){if(!f.defaultPrevented){var m=l.props.openMenuOnClick;l.state.isFocused?l.props.menuIsOpen?f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&l.onMenuClose():m&&l.openMenu("first"):(m&&(l.openAfterFocus=!0),l.focusInput()),f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&f.preventDefault()}},l.onDropdownIndicatorMouseDown=function(f){if(!(f&&f.type==="mousedown"&&f.button!==0)&&!l.props.isDisabled){var m=l.props,v=m.isMulti,b=m.menuIsOpen;l.focusInput(),b?(l.setState({inputIsHiddenAfterUpdate:!v}),l.onMenuClose()):l.openMenu("first"),f.preventDefault()}},l.onClearIndicatorMouseDown=function(f){f&&f.type==="mousedown"&&f.button!==0||(l.clearValue(),f.preventDefault(),l.openAfterFocus=!1,f.type==="touchend"?l.focusInput():setTimeout(function(){return l.focusInput()}))},l.onScroll=function(f){typeof l.props.closeMenuOnScroll=="boolean"?f.target instanceof HTMLElement&&f1(f.target)&&l.props.onMenuClose():typeof l.props.closeMenuOnScroll=="function"&&l.props.closeMenuOnScroll(f)&&l.props.onMenuClose()},l.onCompositionStart=function(){l.isComposing=!0},l.onCompositionEnd=function(){l.isComposing=!1},l.onTouchStart=function(f){var m=f.touches,v=m&&m.item(0);v&&(l.initialTouchX=v.clientX,l.initialTouchY=v.clientY,l.userIsDragging=!1)},l.onTouchMove=function(f){var m=f.touches,v=m&&m.item(0);if(v){var b=Math.abs(v.clientX-l.initialTouchX),S=Math.abs(v.clientY-l.initialTouchY),A=5;l.userIsDragging=b>A||S>A}},l.onTouchEnd=function(f){l.userIsDragging||(l.controlRef&&!l.controlRef.contains(f.target)&&l.menuListRef&&!l.menuListRef.contains(f.target)&&l.blurInput(),l.initialTouchX=0,l.initialTouchY=0)},l.onControlTouchEnd=function(f){l.userIsDragging||l.onControlMouseDown(f)},l.onClearIndicatorTouchEnd=function(f){l.userIsDragging||l.onClearIndicatorMouseDown(f)},l.onDropdownIndicatorTouchEnd=function(f){l.userIsDragging||l.onDropdownIndicatorMouseDown(f)},l.handleInputChange=function(f){var m=l.props.inputValue,v=f.currentTarget.value;l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange(v,{action:"input-change",prevInputValue:m}),l.props.menuIsOpen||l.onMenuOpen()},l.onInputFocus=function(f){l.props.onFocus&&l.props.onFocus(f),l.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(l.openAfterFocus||l.props.openMenuOnFocus)&&l.openMenu("first"),l.openAfterFocus=!1},l.onInputBlur=function(f){var m=l.props.inputValue;if(l.menuListRef&&l.menuListRef.contains(document.activeElement)){l.inputRef.focus();return}l.props.onBlur&&l.props.onBlur(f),l.onInputChange("",{action:"input-blur",prevInputValue:m}),l.onMenuClose(),l.setState({focusedValue:null,isFocused:!1})},l.onOptionHover=function(f){if(!(l.blockOptionHover||l.state.focusedOption===f)){var m=l.getFocusableOptions(),v=m.indexOf(f);l.setState({focusedOption:f,focusedOptionId:v>-1?l.getFocusedOptionId(f):null})}},l.shouldHideSelectedOptions=function(){return NA(l.props)},l.onValueInputFocus=function(f){f.preventDefault(),f.stopPropagation(),l.focus()},l.onKeyDown=function(f){var m=l.props,v=m.isMulti,b=m.backspaceRemovesValue,S=m.escapeClearsValue,A=m.inputValue,w=m.isClearable,R=m.isDisabled,k=m.menuIsOpen,D=m.onKeyDown,I=m.tabSelectsValue,B=m.openMenuOnFocus,Y=l.state,j=Y.focusedOption,F=Y.focusedValue,Z=Y.selectValue;if(!R&&!(typeof D=="function"&&(D(f),f.defaultPrevented))){switch(l.blockOptionHover=!0,f.key){case"ArrowLeft":if(!v||A)return;l.focusValue("previous");break;case"ArrowRight":if(!v||A)return;l.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(F)l.removeValue(F);else{if(!b)return;v?l.popValue():w&&l.clearValue()}break;case"Tab":if(l.isComposing||f.shiftKey||!k||!I||!j||B&&l.isOptionSelected(j,Z))return;l.selectOption(j);break;case"Enter":if(f.keyCode===229)break;if(k){if(!j||l.isComposing)return;l.selectOption(j);break}return;case"Escape":k?(l.setState({inputIsHiddenAfterUpdate:!1}),l.onInputChange("",{action:"menu-close",prevInputValue:A}),l.onMenuClose()):w&&S&&l.clearValue();break;case" ":if(A)return;if(!k){l.openMenu("first");break}if(!j)return;l.selectOption(j);break;case"ArrowUp":k?l.focusOption("up"):l.openMenu("last");break;case"ArrowDown":k?l.focusOption("down"):l.openMenu("first");break;case"PageUp":if(!k)return;l.focusOption("pageup");break;case"PageDown":if(!k)return;l.focusOption("pagedown");break;case"Home":if(!k)return;l.focusOption("first");break;case"End":if(!k)return;l.focusOption("last");break;default:return}f.preventDefault()}},l.state.instancePrefix="react-select-"+(l.props.instanceId||++pU),l.state.selectValue=zf(i.value),i.menuIsOpen&&l.state.selectValue.length){var o=l.getFocusableOptionsWithIds(),c=l.buildFocusableOptions(),h=c.indexOf(l.state.selectValue[0]);l.state.focusableOptionsWithIds=o,l.state.focusedOption=c[h],l.state.focusedOptionId=E3(o,c[h])}return l}return JL(a,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&yb(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(l){var o=this.props,c=o.isDisabled,h=o.menuIsOpen,f=this.state.isFocused;(f&&!c&&l.isDisabled||f&&h&&!l.menuIsOpen)&&this.focusInput(),f&&c&&!l.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!f&&!c&&l.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(yb(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(l,o){this.props.onInputChange(l,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(l){var o=this,c=this.state,h=c.selectValue,f=c.isFocused,m=this.buildFocusableOptions(),v=l==="first"?0:m.length-1;if(!this.props.isMulti){var b=m.indexOf(h[0]);b>-1&&(v=b)}this.scrollToFocusedOptionOnUpdate=!(f&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:m[v],focusedOptionId:this.getFocusedOptionId(m[v])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(l){var o=this.state,c=o.selectValue,h=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var f=c.indexOf(h);h||(f=-1);var m=c.length-1,v=-1;if(c.length){switch(l){case"previous":f===0?v=0:f===-1?v=m:v=f-1;break;case"next":f>-1&&f<m&&(v=f+1);break}this.setState({inputIsHidden:v!==-1,focusedValue:c[v]})}}}},{key:"focusOption",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,c=this.state.focusedOption,h=this.getFocusableOptions();if(h.length){var f=0,m=h.indexOf(c);c||(m=-1),l==="up"?f=m>0?m-1:h.length-1:l==="down"?f=(m+1)%h.length:l==="pageup"?(f=m-o,f<0&&(f=0)):l==="pagedown"?(f=m+o,f>h.length-1&&(f=h.length-1)):l==="last"&&(f=h.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:h[f],focusedValue:null,focusedOptionId:this.getFocusedOptionId(h[f])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(S3):ze(ze({},S3),this.props.theme):S3}},{key:"getCommonProps",value:function(){var l=this.clearValue,o=this.cx,c=this.getStyles,h=this.getClassNames,f=this.getValue,m=this.selectOption,v=this.setValue,b=this.props,S=b.isMulti,A=b.isRtl,w=b.options,R=this.hasValue();return{clearValue:l,cx:o,getStyles:c,getClassNames:h,getValue:f,hasValue:R,isMulti:S,isRtl:A,options:w,selectOption:m,selectProps:b,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var l=this.state.selectValue;return l.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var l=this.props,o=l.isClearable,c=l.isMulti;return o===void 0?c:o}},{key:"isOptionDisabled",value:function(l,o){return IA(this.props,l,o)}},{key:"isOptionSelected",value:function(l,o){return MA(this.props,l,o)}},{key:"filterOption",value:function(l,o){return DA(this.props,l,o)}},{key:"formatOptionLabel",value:function(l,o){if(typeof this.props.formatOptionLabel=="function"){var c=this.props.inputValue,h=this.state.selectValue;return this.props.formatOptionLabel(l,{context:o,inputValue:c,selectValue:h})}else return this.getOptionLabel(l)}},{key:"formatGroupLabel",value:function(l){return this.props.formatGroupLabel(l)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var l=this.props,o=l.isDisabled,c=l.isSearchable,h=l.inputId,f=l.inputValue,m=l.tabIndex,v=l.form,b=l.menuIsOpen,S=l.required,A=this.getComponents(),w=A.Input,R=this.state,k=R.inputIsHidden,D=R.ariaSelection,I=this.commonProps,B=h||this.getElementId("input"),Y=ze(ze(ze({"aria-autocomplete":"list","aria-expanded":b,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},b&&{"aria-controls":this.getElementId("listbox")}),!c&&{"aria-readonly":!0}),this.hasValue()?(D==null?void 0:D.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return c?g.createElement(w,Ve({},I,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:B,innerRef:this.getInputRef,isDisabled:o,isHidden:k,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:m,form:v,type:"text",value:f},Y)):g.createElement(F_,Ve({id:B,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:qf,onFocus:this.onInputFocus,disabled:o,tabIndex:m,inputMode:"none",form:v,value:""},Y))}},{key:"renderPlaceholderOrValue",value:function(){var l=this,o=this.getComponents(),c=o.MultiValue,h=o.MultiValueContainer,f=o.MultiValueLabel,m=o.MultiValueRemove,v=o.SingleValue,b=o.Placeholder,S=this.commonProps,A=this.props,w=A.controlShouldRenderValue,R=A.isDisabled,k=A.isMulti,D=A.inputValue,I=A.placeholder,B=this.state,Y=B.selectValue,j=B.focusedValue,F=B.isFocused;if(!this.hasValue()||!w)return D?null:g.createElement(b,Ve({},S,{key:"placeholder",isDisabled:R,isFocused:F,innerProps:{id:this.getElementId("placeholder")}}),I);if(k)return Y.map(function(E,x){var O=E===j,z="".concat(l.getOptionLabel(E),"-").concat(l.getOptionValue(E));return g.createElement(c,Ve({},S,{components:{Container:h,Label:f,Remove:m},isFocused:O,isDisabled:R,key:z,index:x,removeProps:{onClick:function(){return l.removeValue(E)},onTouchEnd:function(){return l.removeValue(E)},onMouseDown:function(q){q.preventDefault()}},data:E}),l.formatOptionLabel(E,"value"))});if(D)return null;var Z=Y[0];return g.createElement(v,Ve({},S,{data:Z,isDisabled:R}),this.formatOptionLabel(Z,"value"))}},{key:"renderClearIndicator",value:function(){var l=this.getComponents(),o=l.ClearIndicator,c=this.commonProps,h=this.props,f=h.isDisabled,m=h.isLoading,v=this.state.isFocused;if(!this.isClearable()||!o||f||!this.hasValue()||m)return null;var b={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return g.createElement(o,Ve({},c,{innerProps:b,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var l=this.getComponents(),o=l.LoadingIndicator,c=this.commonProps,h=this.props,f=h.isDisabled,m=h.isLoading,v=this.state.isFocused;if(!o||!m)return null;var b={"aria-hidden":"true"};return g.createElement(o,Ve({},c,{innerProps:b,isDisabled:f,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var l=this.getComponents(),o=l.DropdownIndicator,c=l.IndicatorSeparator;if(!o||!c)return null;var h=this.commonProps,f=this.props.isDisabled,m=this.state.isFocused;return g.createElement(c,Ve({},h,{isDisabled:f,isFocused:m}))}},{key:"renderDropdownIndicator",value:function(){var l=this.getComponents(),o=l.DropdownIndicator;if(!o)return null;var c=this.commonProps,h=this.props.isDisabled,f=this.state.isFocused,m={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return g.createElement(o,Ve({},c,{innerProps:m,isDisabled:h,isFocused:f}))}},{key:"renderMenu",value:function(){var l=this,o=this.getComponents(),c=o.Group,h=o.GroupHeading,f=o.Menu,m=o.MenuList,v=o.MenuPortal,b=o.LoadingMessage,S=o.NoOptionsMessage,A=o.Option,w=this.commonProps,R=this.state.focusedOption,k=this.props,D=k.captureMenuScroll,I=k.inputValue,B=k.isLoading,Y=k.loadingMessage,j=k.minMenuHeight,F=k.maxMenuHeight,Z=k.menuIsOpen,E=k.menuPlacement,x=k.menuPosition,O=k.menuPortalTarget,z=k.menuShouldBlockScroll,_=k.menuShouldScrollIntoView,q=k.noOptionsMessage,V=k.onMenuScrollToTop,U=k.onMenuScrollToBottom;if(!Z)return null;var M=function(ne,ge){var fe=ne.type,me=ne.data,Pe=ne.isDisabled,Le=ne.isSelected,tt=ne.label,Vt=ne.value,ot=R===me,Et=Pe?void 0:function(){return l.onOptionHover(me)},ct=Pe?void 0:function(){return l.selectOption(me)},Ze="".concat(l.getElementId("option"),"-").concat(ge),Je={id:Ze,onClick:ct,onMouseMove:Et,onMouseOver:Et,tabIndex:-1,role:"option","aria-selected":l.isAppleDevice?void 0:Le};return g.createElement(A,Ve({},w,{innerProps:Je,data:me,isDisabled:Pe,isSelected:Le,key:Ze,label:tt,type:fe,value:Vt,isFocused:ot,innerRef:ot?l.getFocusedOptionRef:void 0}),l.formatOptionLabel(ne.data,"menu"))},P;if(this.hasOptions())P=this.getCategorizedOptions().map(function(ee){if(ee.type==="group"){var ne=ee.data,ge=ee.options,fe=ee.index,me="".concat(l.getElementId("group"),"-").concat(fe),Pe="".concat(me,"-heading");return g.createElement(c,Ve({},w,{key:me,data:ne,options:ge,Heading:h,headingProps:{id:Pe,data:ee.data},label:l.formatGroupLabel(ee.data)}),ee.options.map(function(Le){return M(Le,"".concat(fe,"-").concat(Le.index))}))}else if(ee.type==="option")return M(ee,"".concat(ee.index))});else if(B){var H=Y({inputValue:I});if(H===null)return null;P=g.createElement(b,w,H)}else{var $=q({inputValue:I});if($===null)return null;P=g.createElement(S,w,$)}var T={minMenuHeight:j,maxMenuHeight:F,menuPlacement:E,menuPosition:x,menuShouldScrollIntoView:_},G=g.createElement(Ej,Ve({},w,T),function(ee){var ne=ee.ref,ge=ee.placerProps,fe=ge.placement,me=ge.maxHeight;return g.createElement(f,Ve({},w,T,{innerRef:ne,innerProps:{onMouseDown:l.onMenuMouseDown,onMouseMove:l.onMenuMouseMove},isLoading:B,placement:fe}),g.createElement(Q_,{captureEnabled:D,onTopArrive:V,onBottomArrive:U,lockEnabled:z},function(Pe){return g.createElement(m,Ve({},w,{innerRef:function(tt){l.getMenuListRef(tt),Pe(tt)},innerProps:{role:"listbox","aria-multiselectable":w.isMulti,id:l.getElementId("listbox")},isLoading:B,maxHeight:me,focusedOption:R}),P)}))});return O||x==="fixed"?g.createElement(v,Ve({},w,{appendTo:O,controlElement:this.controlRef,menuPlacement:E,menuPosition:x}),G):G}},{key:"renderFormField",value:function(){var l=this,o=this.props,c=o.delimiter,h=o.isDisabled,f=o.isMulti,m=o.name,v=o.required,b=this.state.selectValue;if(v&&!this.hasValue()&&!h)return g.createElement(X_,{name:m,onFocus:this.onValueInputFocus});if(!(!m||h))if(f)if(c){var S=b.map(function(R){return l.getOptionValue(R)}).join(c);return g.createElement("input",{name:m,type:"hidden",value:S})}else{var A=b.length>0?b.map(function(R,k){return g.createElement("input",{key:"i-".concat(k),name:m,type:"hidden",value:l.getOptionValue(R)})}):g.createElement("input",{name:m,type:"hidden",value:""});return g.createElement("div",null,A)}else{var w=b[0]?this.getOptionValue(b[0]):"";return g.createElement("input",{name:m,type:"hidden",value:w})}}},{key:"renderLiveRegion",value:function(){var l=this.commonProps,o=this.state,c=o.ariaSelection,h=o.focusedOption,f=o.focusedValue,m=o.isFocused,v=o.selectValue,b=this.getFocusableOptions();return g.createElement(U_,Ve({},l,{id:this.getElementId("live-region"),ariaSelection:c,focusedOption:h,focusedValue:f,isFocused:m,selectValue:v,focusableOptions:b,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var l=this.getComponents(),o=l.Control,c=l.IndicatorsContainer,h=l.SelectContainer,f=l.ValueContainer,m=this.props,v=m.className,b=m.id,S=m.isDisabled,A=m.menuIsOpen,w=this.state.isFocused,R=this.commonProps=this.getCommonProps();return g.createElement(h,Ve({},R,{className:v,innerProps:{id:b,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:w}),this.renderLiveRegion(),g.createElement(o,Ve({},R,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:w,menuIsOpen:A}),g.createElement(f,Ve({},R,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),g.createElement(c,Ve({},R,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(l,o){var c=o.prevProps,h=o.clearFocusValueOnUpdate,f=o.inputIsHiddenAfterUpdate,m=o.ariaSelection,v=o.isFocused,b=o.prevWasFocused,S=o.instancePrefix,A=l.options,w=l.value,R=l.menuIsOpen,k=l.inputValue,D=l.isMulti,I=zf(w),B={};if(c&&(w!==c.value||A!==c.options||R!==c.menuIsOpen||k!==c.inputValue)){var Y=R?dU(l,I):[],j=R?Nb(Cf(l,I),"".concat(S,"-option")):[],F=h?hU(o,I):null,Z=mU(o,Y),E=E3(j,Z);B={selectValue:I,focusedOption:Z,focusedOptionId:E,focusableOptionsWithIds:j,focusedValue:F,clearFocusValueOnUpdate:!1}}var x=f!=null&&l!==c?{inputIsHidden:f,inputIsHiddenAfterUpdate:void 0}:{},O=m,z=v&&b;return v&&!z&&(O={value:Su(D,I,I[0]||null),options:I,action:"initial-input-focus"},z=!b),(m==null?void 0:m.action)==="initial-input-focus"&&(O=null),ze(ze(ze({},B),x),{},{prevProps:l,ariaSelection:O,prevWasFocused:z})}}]),a}(g.Component);T4.defaultProps=fU;var gU=g.forwardRef(function(t,e){var a=JE(t);return g.createElement(T4,Ve({ref:e},a))}),vU=gU,yU=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],kb=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,l=String(e).toLowerCase(),o=String(i.getOptionValue(a)).toLowerCase(),c=String(i.getOptionLabel(a)).toLowerCase();return o===l||c===l},A3={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,a,i,l){return!(!e||a.some(function(o){return kb(e,o,l)})||i.some(function(o){return kb(e,o,l)}))},getNewOptionData:function(e,a){return{label:a,value:e,__isNew__:!0}}};function bU(t){var e=t.allowCreateWhileLoading,a=e===void 0?!1:e,i=t.createOptionPosition,l=i===void 0?"last":i,o=t.formatCreateLabel,c=o===void 0?A3.formatCreateLabel:o,h=t.isValidNewOption,f=h===void 0?A3.isValidNewOption:h,m=t.getNewOptionData,v=m===void 0?A3.getNewOptionData:m,b=t.onCreateOption,S=t.options,A=S===void 0?[]:S,w=t.onChange,R=Ya(t,yU),k=R.getOptionValue,D=k===void 0?xA:k,I=R.getOptionLabel,B=I===void 0?CA:I,Y=R.inputValue,j=R.isLoading,F=R.isMulti,Z=R.value,E=R.name,x=g.useMemo(function(){return f(Y,zf(Z),A,{getOptionValue:D,getOptionLabel:B})?v(Y,c(Y)):void 0},[c,v,B,D,Y,f,A,Z]),O=g.useMemo(function(){return(a||!j)&&x?l==="first"?[x].concat(Ms(A)):[].concat(Ms(A),[x]):A},[a,l,j,x,A]),z=g.useCallback(function(_,q){if(q.action!=="select-option")return w(_,q);var V=Array.isArray(_)?_:[_];if(V[V.length-1]===x){if(b)b(Y);else{var U=v(Y,Y),M={action:"create-option",name:E,option:U};w(Su(F,[].concat(Ms(zf(Z)),[U]),U),M)}return}w(_,q)},[v,Y,F,E,x,b,w,Z]);return ze(ze({},R),{},{options:O,onChange:z})}var SU=g.forwardRef(function(t,e){var a=JE(t),i=bU(a);return g.createElement(T4,Ve({ref:e},i))}),EU=SU;function Os({onChange:t,name:e,value:a,options:i,placeholder:l="",disabled:o=!1,toolTip:c=null,searchable:h=!1,small:f=!1,clearable:m=!1,isMulti:v=!1,creatable:b=!1,onInputChange:S=null,required:A=!1,info:w=null}){return y.jsxs("div",{className:"select-field",children:[e&&y.jsxs("label",{htmlFor:e,children:[e,A&&y.jsx("sup",{className:"required",children:"*"}),c&&y.jsx(ba,{tip:c})]}),b&&y.jsx(EU,{className:"input-select-inner creatable",classNamePrefix:"select-inner",value:a,isMulti:!0,placeholder:l,isSearchable:!0,onInputChange:S,isClearable:m,isDisabled:o,onChange:t,options:i}),!b&&y.jsx(vU,{className:`input-select-inner ${f?" small":""}`,classNamePrefix:"select-inner",value:a,placeholder:l,isDisabled:o,onChange:t,isMulti:v,options:i,isSearchable:h,isClearable:m}),w&&y.jsx("p",{className:"select-info",children:w})]})}function AU({name:t,onFileUpload:e=null,txt:a,acceptFileFormat:i="text/csv"}){let l;const o=()=>{l.click()};return y.jsxs("div",{className:"file-upload-button-container",children:[y.jsx("input",{type:"file",id:`fileUpload_${t}`,ref:c=>l=c,name:`fileUpload_${t}`,accept:i,style:{display:"none"},onChange:e}),y.jsx(yt,{txt:a,onClick:o})]})}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:LA,setPrototypeOf:jb,isFrozen:wU,getPrototypeOf:CU,getOwnPropertyDescriptor:xU}=Object;let{freeze:fr,seal:ra,create:kA}=Object,{apply:xp,construct:Tp}=typeof Reflect<"u"&&Reflect;fr||(fr=function(e){return e});ra||(ra=function(e){return e});xp||(xp=function(e,a,i){return e.apply(a,i)});Tp||(Tp=function(e,a){return new e(...a)});const uf=dr(Array.prototype.forEach),TU=dr(Array.prototype.lastIndexOf),_b=dr(Array.prototype.pop),iu=dr(Array.prototype.push),OU=dr(Array.prototype.splice),xf=dr(String.prototype.toLowerCase),w3=dr(String.prototype.toString),Ub=dr(String.prototype.match),lu=dr(String.prototype.replace),RU=dr(String.prototype.indexOf),IU=dr(String.prototype.trim),ga=dr(Object.prototype.hasOwnProperty),or=dr(RegExp.prototype.test),su=MU(TypeError);function dr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l<a;l++)i[l-1]=arguments[l];return xp(t,e,i)}}function MU(t){return function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return Tp(t,a)}}function vt(t,e){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xf;jb&&jb(t,null);let i=e.length;for(;i--;){let l=e[i];if(typeof l=="string"){const o=a(l);o!==l&&(wU(e)||(e[i]=o),l=o)}t[l]=!0}return t}function DU(t){for(let e=0;e<t.length;e++)ga(t,e)||(t[e]=null);return t}function di(t){const e=kA(null);for(const[a,i]of LA(t))ga(t,a)&&(Array.isArray(i)?e[a]=DU(i):i&&typeof i=="object"&&i.constructor===Object?e[a]=di(i):e[a]=i);return e}function ou(t,e){for(;t!==null;){const i=xU(t,e);if(i){if(i.get)return dr(i.get);if(typeof i.value=="function")return dr(i.value)}t=CU(t)}function a(){return null}return a}const qb=fr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C3=fr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x3=fr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),NU=fr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),T3=fr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),LU=fr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zb=fr(["#text"]),Pb=fr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),O3=fr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Hb=fr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),cf=fr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kU=ra(/\{\{[\w\W]*|[\w\W]*\}\}/gm),jU=ra(/<%[\w\W]*|[\w\W]*%>/gm),_U=ra(/\$\{[\w\W]*/gm),UU=ra(/^data-[\-\w.\u00B7-\uFFFF]+$/),qU=ra(/^aria-[\-\w]+$/),jA=ra(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zU=ra(/^(?:\w+script|data):/i),PU=ra(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_A=ra(/^html$/i),HU=ra(/^[a-z][.\w]*(-[.\w]+)+$/i);var Bb=Object.freeze({__proto__:null,ARIA_ATTR:qU,ATTR_WHITESPACE:PU,CUSTOM_ELEMENT:HU,DATA_ATTR:UU,DOCTYPE_NAME:_A,ERB_EXPR:jU,IS_ALLOWED_URI:jA,IS_SCRIPT_OR_DATA:zU,MUSTACHE_EXPR:kU,TMPLIT_EXPR:_U});const uu={element:1,text:3,progressingInstruction:7,comment:8,document:9},BU=function(){return typeof window>"u"?null:window},FU=function(e,a){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const l="data-tt-policy-suffix";a&&a.hasAttribute(l)&&(i=a.getAttribute(l));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Fb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function UA(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BU();const e=Ce=>UA(Ce);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==uu.document||!t.Element)return e.isSupported=!1,e;let{document:a}=t;const i=a,l=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:c,Node:h,Element:f,NodeFilter:m,NamedNodeMap:v=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:b,DOMParser:S,trustedTypes:A}=t,w=f.prototype,R=ou(w,"cloneNode"),k=ou(w,"remove"),D=ou(w,"nextSibling"),I=ou(w,"childNodes"),B=ou(w,"parentNode");if(typeof c=="function"){const Ce=a.createElement("template");Ce.content&&Ce.content.ownerDocument&&(a=Ce.content.ownerDocument)}let Y,j="";const{implementation:F,createNodeIterator:Z,createDocumentFragment:E,getElementsByTagName:x}=a,{importNode:O}=i;let z=Fb();e.isSupported=typeof LA=="function"&&typeof B=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:q,TMPLIT_EXPR:V,DATA_ATTR:U,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:H,CUSTOM_ELEMENT:$}=Bb;let{IS_ALLOWED_URI:T}=Bb,G=null;const ee=vt({},[...qb,...C3,...x3,...T3,...zb]);let ne=null;const ge=vt({},[...Pb,...O3,...Hb,...cf]);let fe=Object.seal(kA(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),me=null,Pe=null,Le=!0,tt=!0,Vt=!1,ot=!0,Et=!1,ct=!0,Ze=!1,Je=!1,_t=!1,De=!1,at=!1,Tt=!1,_e=!0,nt=!1;const Ue="user-content-";let Ee=!0,We=!1,Be={},ft=null;const ht=vt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Kt=null;const Ut=vt({},["audio","video","img","source","image","track"]);let Nn=null;const er=vt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gn="http://www.w3.org/1998/Math/MathML",un="http://www.w3.org/2000/svg",Mt="http://www.w3.org/1999/xhtml";let it=Mt,vn=!1,Ln=null;const hr=vt({},[Gn,un,Mt],w3);let Zn=vt({},["mi","mo","mn","ms","mtext"]),En=vt({},["annotation-xml"]);const kn=vt({},["title","style","font","a","script"]);let bt=null;const Wn=["application/xhtml+xml","text/html"],lr="text/html";let Xe=null,Yt=null;const Ne=a.createElement("form"),$e=function(Q){return Q instanceof RegExp||Q instanceof Function},mt=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Yt&&Yt===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=di(Q),bt=Wn.indexOf(Q.PARSER_MEDIA_TYPE)===-1?lr:Q.PARSER_MEDIA_TYPE,Xe=bt==="application/xhtml+xml"?w3:xf,G=ga(Q,"ALLOWED_TAGS")?vt({},Q.ALLOWED_TAGS,Xe):ee,ne=ga(Q,"ALLOWED_ATTR")?vt({},Q.ALLOWED_ATTR,Xe):ge,Ln=ga(Q,"ALLOWED_NAMESPACES")?vt({},Q.ALLOWED_NAMESPACES,w3):hr,Nn=ga(Q,"ADD_URI_SAFE_ATTR")?vt(di(er),Q.ADD_URI_SAFE_ATTR,Xe):er,Kt=ga(Q,"ADD_DATA_URI_TAGS")?vt(di(Ut),Q.ADD_DATA_URI_TAGS,Xe):Ut,ft=ga(Q,"FORBID_CONTENTS")?vt({},Q.FORBID_CONTENTS,Xe):ht,me=ga(Q,"FORBID_TAGS")?vt({},Q.FORBID_TAGS,Xe):di({}),Pe=ga(Q,"FORBID_ATTR")?vt({},Q.FORBID_ATTR,Xe):di({}),Be=ga(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,Le=Q.ALLOW_ARIA_ATTR!==!1,tt=Q.ALLOW_DATA_ATTR!==!1,Vt=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,ot=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Et=Q.SAFE_FOR_TEMPLATES||!1,ct=Q.SAFE_FOR_XML!==!1,Ze=Q.WHOLE_DOCUMENT||!1,De=Q.RETURN_DOM||!1,at=Q.RETURN_DOM_FRAGMENT||!1,Tt=Q.RETURN_TRUSTED_TYPE||!1,_t=Q.FORCE_BODY||!1,_e=Q.SANITIZE_DOM!==!1,nt=Q.SANITIZE_NAMED_PROPS||!1,Ee=Q.KEEP_CONTENT!==!1,We=Q.IN_PLACE||!1,T=Q.ALLOWED_URI_REGEXP||jA,it=Q.NAMESPACE||Mt,Zn=Q.MATHML_TEXT_INTEGRATION_POINTS||Zn,En=Q.HTML_INTEGRATION_POINTS||En,fe=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&$e(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(fe.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&$e(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(fe.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Et&&(tt=!1),at&&(De=!0),Be&&(G=vt({},zb),ne=[],Be.html===!0&&(vt(G,qb),vt(ne,Pb)),Be.svg===!0&&(vt(G,C3),vt(ne,O3),vt(ne,cf)),Be.svgFilters===!0&&(vt(G,x3),vt(ne,O3),vt(ne,cf)),Be.mathMl===!0&&(vt(G,T3),vt(ne,Hb),vt(ne,cf))),Q.ADD_TAGS&&(G===ee&&(G=di(G)),vt(G,Q.ADD_TAGS,Xe)),Q.ADD_ATTR&&(ne===ge&&(ne=di(ne)),vt(ne,Q.ADD_ATTR,Xe)),Q.ADD_URI_SAFE_ATTR&&vt(Nn,Q.ADD_URI_SAFE_ATTR,Xe),Q.FORBID_CONTENTS&&(ft===ht&&(ft=di(ft)),vt(ft,Q.FORBID_CONTENTS,Xe)),Ee&&(G["#text"]=!0),Ze&&vt(G,["html","head","body"]),G.table&&(vt(G,["tbody"]),delete me.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw su('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw su('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Y=Q.TRUSTED_TYPES_POLICY,j=Y.createHTML("")}else Y===void 0&&(Y=FU(A,l)),Y!==null&&typeof j=="string"&&(j=Y.createHTML(""));fr&&fr(Q),Yt=Q}},$t=vt({},[...C3,...x3,...NU]),ve=vt({},[...T3,...LU]),xe=function(Q){let pe=B(Q);(!pe||!pe.tagName)&&(pe={namespaceURI:it,tagName:"template"});const Ae=xf(Q.tagName),Me=xf(pe.tagName);return Ln[Q.namespaceURI]?Q.namespaceURI===un?pe.namespaceURI===Mt?Ae==="svg":pe.namespaceURI===Gn?Ae==="svg"&&(Me==="annotation-xml"||Zn[Me]):!!$t[Ae]:Q.namespaceURI===Gn?pe.namespaceURI===Mt?Ae==="math":pe.namespaceURI===un?Ae==="math"&&En[Me]:!!ve[Ae]:Q.namespaceURI===Mt?pe.namespaceURI===un&&!En[Me]||pe.namespaceURI===Gn&&!Zn[Me]?!1:!ve[Ae]&&(kn[Ae]||!$t[Ae]):!!(bt==="application/xhtml+xml"&&Ln[Q.namespaceURI]):!1},Re=function(Q){iu(e.removed,{element:Q});try{B(Q).removeChild(Q)}catch{k(Q)}},At=function(Q,pe){try{iu(e.removed,{attribute:pe.getAttributeNode(Q),from:pe})}catch{iu(e.removed,{attribute:null,from:pe})}if(pe.removeAttribute(Q),Q==="is")if(De||at)try{Re(pe)}catch{}else try{pe.setAttribute(Q,"")}catch{}},en=function(Q){let pe=null,Ae=null;if(_t)Q="<remove></remove>"+Q;else{const Ct=Ub(Q,/^[\r\n\t ]+/);Ae=Ct&&Ct[0]}bt==="application/xhtml+xml"&&it===Mt&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const Me=Y?Y.createHTML(Q):Q;if(it===Mt)try{pe=new S().parseFromString(Me,bt)}catch{}if(!pe||!pe.documentElement){pe=F.createDocument(it,"template",null);try{pe.documentElement.innerHTML=vn?j:Me}catch{}}const He=pe.body||pe.documentElement;return Q&&Ae&&He.insertBefore(a.createTextNode(Ae),He.childNodes[0]||null),it===Mt?x.call(pe,Ze?"html":"body")[0]:Ze?pe.documentElement:He},An=function(Q){return Z.call(Q.ownerDocument||Q,Q,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},ae=function(Q){return Q instanceof b&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof v)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},ce=function(Q){return typeof h=="function"&&Q instanceof h};function oe(Ce,Q,pe){uf(Ce,Ae=>{Ae.call(e,Q,pe,Yt)})}const Se=function(Q){let pe=null;if(oe(z.beforeSanitizeElements,Q,null),ae(Q))return Re(Q),!0;const Ae=Xe(Q.nodeName);if(oe(z.uponSanitizeElement,Q,{tagName:Ae,allowedTags:G}),ct&&Q.hasChildNodes()&&!ce(Q.firstElementChild)&&or(/<[/\w!]/g,Q.innerHTML)&&or(/<[/\w!]/g,Q.textContent)||Q.nodeType===uu.progressingInstruction||ct&&Q.nodeType===uu.comment&&or(/<[/\w]/g,Q.data))return Re(Q),!0;if(!G[Ae]||me[Ae]){if(!me[Ae]&&St(Ae)&&(fe.tagNameCheck instanceof RegExp&&or(fe.tagNameCheck,Ae)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(Ae)))return!1;if(Ee&&!ft[Ae]){const Me=B(Q)||Q.parentNode,He=I(Q)||Q.childNodes;if(He&&Me){const Ct=He.length;for(let qt=Ct-1;qt>=0;--qt){const wn=R(He[qt],!0);wn.__removalCount=(Q.__removalCount||0)+1,Me.insertBefore(wn,D(Q))}}}return Re(Q),!0}return Q instanceof f&&!xe(Q)||(Ae==="noscript"||Ae==="noembed"||Ae==="noframes")&&or(/<\/no(script|embed|frames)/i,Q.innerHTML)?(Re(Q),!0):(Et&&Q.nodeType===uu.text&&(pe=Q.textContent,uf([_,q,V],Me=>{pe=lu(pe,Me," ")}),Q.textContent!==pe&&(iu(e.removed,{element:Q.cloneNode()}),Q.textContent=pe)),oe(z.afterSanitizeElements,Q,null),!1)},je=function(Q,pe,Ae){if(_e&&(pe==="id"||pe==="name")&&(Ae in a||Ae in Ne))return!1;if(!(tt&&!Pe[pe]&&or(U,pe))){if(!(Le&&or(M,pe))){if(!ne[pe]||Pe[pe]){if(!(St(Q)&&(fe.tagNameCheck instanceof RegExp&&or(fe.tagNameCheck,Q)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(Q))&&(fe.attributeNameCheck instanceof RegExp&&or(fe.attributeNameCheck,pe)||fe.attributeNameCheck instanceof Function&&fe.attributeNameCheck(pe))||pe==="is"&&fe.allowCustomizedBuiltInElements&&(fe.tagNameCheck instanceof RegExp&&or(fe.tagNameCheck,Ae)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(Ae))))return!1}else if(!Nn[pe]){if(!or(T,lu(Ae,H,""))){if(!((pe==="src"||pe==="xlink:href"||pe==="href")&&Q!=="script"&&RU(Ae,"data:")===0&&Kt[Q])){if(!(Vt&&!or(P,lu(Ae,H,"")))){if(Ae)return!1}}}}}}return!0},St=function(Q){return Q!=="annotation-xml"&&Ub(Q,$)},et=function(Q){oe(z.beforeSanitizeAttributes,Q,null);const{attributes:pe}=Q;if(!pe||ae(Q))return;const Ae={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let Me=pe.length;for(;Me--;){const He=pe[Me],{name:Ct,namespaceURI:qt,value:wn}=He,qn=Xe(Ct),Cn=wn;let tn=Ct==="value"?Cn:IU(Cn);if(Ae.attrName=qn,Ae.attrValue=tn,Ae.keepAttr=!0,Ae.forceKeepAttr=void 0,oe(z.uponSanitizeAttribute,Q,Ae),tn=Ae.attrValue,nt&&(qn==="id"||qn==="name")&&(At(Ct,Q),tn=Ue+tn),ct&&or(/((--!?|])>)|<\/(style|title)/i,tn)){At(Ct,Q);continue}if(Ae.forceKeepAttr)continue;if(!Ae.keepAttr){At(Ct,Q);continue}if(!ot&&or(/\/>/i,tn)){At(Ct,Q);continue}Et&&uf([_,q,V],zr=>{tn=lu(tn,zr," ")});const Ra=Xe(Q.nodeName);if(!je(Ra,qn,tn)){At(Ct,Q);continue}if(Y&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!qt)switch(A.getAttributeType(Ra,qn)){case"TrustedHTML":{tn=Y.createHTML(tn);break}case"TrustedScriptURL":{tn=Y.createScriptURL(tn);break}}if(tn!==Cn)try{qt?Q.setAttributeNS(qt,Ct,tn):Q.setAttribute(Ct,tn),ae(Q)?Re(Q):_b(e.removed)}catch{At(Ct,Q)}}oe(z.afterSanitizeAttributes,Q,null)},st=function Ce(Q){let pe=null;const Ae=An(Q);for(oe(z.beforeSanitizeShadowDOM,Q,null);pe=Ae.nextNode();)oe(z.uponSanitizeShadowNode,pe,null),Se(pe),et(pe),pe.content instanceof o&&Ce(pe.content);oe(z.afterSanitizeShadowDOM,Q,null)};return e.sanitize=function(Ce){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=null,Ae=null,Me=null,He=null;if(vn=!Ce,vn&&(Ce="<!-->"),typeof Ce!="string"&&!ce(Ce))if(typeof Ce.toString=="function"){if(Ce=Ce.toString(),typeof Ce!="string")throw su("dirty is not a string, aborting")}else throw su("toString is not a function");if(!e.isSupported)return Ce;if(Je||mt(Q),e.removed=[],typeof Ce=="string"&&(We=!1),We){if(Ce.nodeName){const wn=Xe(Ce.nodeName);if(!G[wn]||me[wn])throw su("root node is forbidden and cannot be sanitized in-place")}}else if(Ce instanceof h)pe=en("<!---->"),Ae=pe.ownerDocument.importNode(Ce,!0),Ae.nodeType===uu.element&&Ae.nodeName==="BODY"||Ae.nodeName==="HTML"?pe=Ae:pe.appendChild(Ae);else{if(!De&&!Et&&!Ze&&Ce.indexOf("<")===-1)return Y&&Tt?Y.createHTML(Ce):Ce;if(pe=en(Ce),!pe)return De?null:Tt?j:""}pe&&_t&&Re(pe.firstChild);const Ct=An(We?Ce:pe);for(;Me=Ct.nextNode();)Se(Me),et(Me),Me.content instanceof o&&st(Me.content);if(We)return Ce;if(De){if(at)for(He=E.call(pe.ownerDocument);pe.firstChild;)He.appendChild(pe.firstChild);else He=pe;return(ne.shadowroot||ne.shadowrootmode)&&(He=O.call(i,He,!0)),He}let qt=Ze?pe.outerHTML:pe.innerHTML;return Ze&&G["!doctype"]&&pe.ownerDocument&&pe.ownerDocument.doctype&&pe.ownerDocument.doctype.name&&or(_A,pe.ownerDocument.doctype.name)&&(qt="<!DOCTYPE "+pe.ownerDocument.doctype.name+`>
`+qt),Et&&uf([_,q,V],wn=>{qt=lu(qt,wn," ")}),Y&&Tt?Y.createHTML(qt):qt},e.setConfig=function(){let Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};mt(Ce),Je=!0},e.clearConfig=function(){Yt=null,Je=!1},e.isValidAttribute=function(Ce,Q,pe){Yt||mt({});const Ae=Xe(Ce),Me=Xe(Q);return je(Ae,Me,pe)},e.addHook=function(Ce,Q){typeof Q=="function"&&iu(z[Ce],Q)},e.removeHook=function(Ce,Q){if(Q!==void 0){const pe=TU(z[Ce],Q);return pe===-1?void 0:OU(z[Ce],pe,1)[0]}return _b(z[Ce])},e.removeHooks=function(Ce){z[Ce]=[]},e.removeAllHooks=function(){z=Fb()},e}var Er=UA();const VU=({title:t,titleId:e,...a},i)=>g.createElement("svg",{width:"25px",height:"25px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("defs",null,g.createElement("path",{d:"M16.2519,3.9999 C17.3139,3.9999 18.3029,4.6159 18.7709,5.5689 L18.7709,5.5689 L28.2429,24.8669 C28.6309,25.6519 28.5849,26.5679 28.1199,27.3129 C27.6579,28.0559 26.8579,28.4999 25.9799,28.4999 L25.9799,28.4999 L6.5239,28.4999 C5.6479,28.4999 4.8469,28.0559 4.3829,27.3129 C3.9199,26.5679 3.8739,25.6529 4.2609,24.8659 L4.2609,24.8659 L13.7339,5.5689 C14.2019,4.6159 15.1899,3.9999 16.2519,3.9999 Z M16.2519,5.9999 C15.9469,5.9999 15.6629,6.1769 15.5279,6.4509 L15.5279,6.4509 L6.0559,25.7479 C5.9759,25.9119 5.9849,26.1009 6.0809,26.2549 C6.1759,26.4079 6.3419,26.4999 6.5239,26.4999 L6.5239,26.4999 L25.9799,26.4999 C26.1609,26.4999 26.3269,26.4079 26.4219,26.2559 C26.5189,26.1009 26.5279,25.9119 26.4479,25.7499 L26.4479,25.7499 L16.9759,6.4499 C16.8409,6.1769 16.5569,5.9999 16.2519,5.9999 Z M16.252,22 C17.01,22 17.627,22.617 17.627,23.375 C17.627,24.133 17.01,24.75 16.252,24.75 C15.494,24.75 14.877,24.133 14.877,23.375 C14.877,22.617 15.494,22 16.252,22 Z M16.252,11.5 C16.7645714,11.5 17.1874694,11.8862857 17.2452682,12.3834315 L17.252,12.5 L17.252,20 C17.252,20.553 16.804,21 16.252,21 C15.7394286,21 15.3165306,20.6145765 15.2587318,20.1167533 L15.252,20 L15.252,12.5 C15.252,11.948 15.7,11.5 16.252,11.5 Z",id:"path-1"})),g.createElement("g",{id:"Styleboard",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},g.createElement("g",{id:"EDUbadges_styleboard",transform:"translate(-628.000000, -7253.000000)"},g.createElement("g",{id:"notifications",transform:"translate(460.000000, 6372.000000)"},g.createElement("g",{id:"info-components-/-notification-/-05-critical",transform:"translate(152.000000, 870.000000)"},g.createElement("g",{id:"basis-/-check-3px-copy",transform:"translate(12.000000, 7.000000)"},g.createElement("polygon",{id:"Path-2",fill:"#FFFFFF",points:"5 25.4447139 15.429494 5 17.0640283 5 27.0299137 25.4447139 26.3139521 27.0889186 5.81381281 27.0889186"}),g.createElement("mask",{id:"mask-2",fill:"white"},g.createElement("use",{xlinkHref:"#path-1"})),g.createElement("use",{id:"Combined-Shape",fill:"#000000",xlinkHref:"#path-1"}),g.createElement("g",{id:"Group",mask:"url(#mask-2)"},g.createElement("g",{id:"\\uD83C\\uDFA8-Color"},g.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:0,y:0,width:32,height:32}),g.createElement("g",{id:"Colors/Gray-900-Copy",fill:"#FF0000"},g.createElement("path",{d:"M0,0 L32,0 L32,32 L0,32 L0,0 Z",id:"Colors/Red-900"})))))))))),Vb=g.forwardRef(VU);function Sn({msg:t,standalone:e=!1,decode:a=!0,adjustMargin:i=!1}){const l=`error-indication ${e?"standalone":""} ${i?"adjust-margin":""}`;return t=t.replaceAll("?",""),a?y.jsxs("span",{className:l,children:[y.jsx(Vb,{}),t]}):y.jsxs("span",{className:l,children:[y.jsx(Vb,{}),y.jsx("span",{className:"error-message",dangerouslySetInnerHTML:{__html:Er.sanitize(t,{ADD_ATTR:["target"]})}})]})}const GU=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M13.4 18.2c4.6-2 6.8-7.3 4.8-11.9S10.9-.5 6.3 1.5-.5 8.8 1.5 13.4c1.9 4.6 7.3 6.7 11.9 4.8zm2.8-2l7 7",fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qA=g.forwardRef(GU);class Ul extends Error{}class ZU extends Ul{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class WU extends Ul{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class YU extends Ul{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Rs extends Ul{}class zA extends Ul{constructor(e){super(`Invalid unit ${e}`)}}class ar extends Ul{}class Zi extends Ul{constructor(){super("Zone is an abstract class")}}const we="numeric",Ca="short",Ur="long",Bf={year:we,month:we,day:we},PA={year:we,month:Ca,day:we},QU={year:we,month:Ca,day:we,weekday:Ca},HA={year:we,month:Ur,day:we},BA={year:we,month:Ur,day:we,weekday:Ur},FA={hour:we,minute:we},VA={hour:we,minute:we,second:we},GA={hour:we,minute:we,second:we,timeZoneName:Ca},ZA={hour:we,minute:we,second:we,timeZoneName:Ur},WA={hour:we,minute:we,hourCycle:"h23"},YA={hour:we,minute:we,second:we,hourCycle:"h23"},QA={hour:we,minute:we,second:we,hourCycle:"h23",timeZoneName:Ca},KA={hour:we,minute:we,second:we,hourCycle:"h23",timeZoneName:Ur},JA={year:we,month:we,day:we,hour:we,minute:we},XA={year:we,month:we,day:we,hour:we,minute:we,second:we},$A={year:we,month:Ca,day:we,hour:we,minute:we},ew={year:we,month:Ca,day:we,hour:we,minute:we,second:we},KU={year:we,month:Ca,day:we,weekday:Ca,hour:we,minute:we},tw={year:we,month:Ur,day:we,hour:we,minute:we,timeZoneName:Ca},nw={year:we,month:Ur,day:we,hour:we,minute:we,second:we,timeZoneName:Ca},rw={year:we,month:Ur,day:we,weekday:Ur,hour:we,minute:we,timeZoneName:Ur},aw={year:we,month:Ur,day:we,weekday:Ur,hour:we,minute:we,second:we,timeZoneName:Ur};class Fu{get type(){throw new Zi}get name(){throw new Zi}get ianaName(){return this.name}get isUniversal(){throw new Zi}offsetName(e,a){throw new Zi}formatOffset(e,a){throw new Zi}offset(e){throw new Zi}equals(e){throw new Zi}get isValid(){throw new Zi}}let R3=null;class d1 extends Fu{static get instance(){return R3===null&&(R3=new d1),R3}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:a,locale:i}){return pw(e,a,i)}formatOffset(e,a){return Cu(this.offset(e),a)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const Op=new Map;function JU(t){let e=Op.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Op.set(t,e)),e}const XU={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function $U(t,e){const a=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(a),[,l,o,c,h,f,m,v]=i;return[c,l,o,h,f,m,v]}function eq(t,e){const a=t.formatToParts(e),i=[];for(let l=0;l<a.length;l++){const{type:o,value:c}=a[l],h=XU[o];o==="era"?i[h]=c:Ke(h)||(i[h]=parseInt(c,10))}return i}const I3=new Map;class vi extends Fu{static create(e){let a=I3.get(e);return a===void 0&&I3.set(e,a=new vi(e)),a}static resetCache(){I3.clear(),Op.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=vi.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:a,locale:i}){return pw(e,a,i,this.name)}formatOffset(e,a){return Cu(this.offset(e),a)}offset(e){if(!this.valid)return NaN;const a=new Date(e);if(isNaN(a))return NaN;const i=JU(this.name);let[l,o,c,h,f,m,v]=i.formatToParts?eq(i,a):$U(i,a);h==="BC"&&(l=-Math.abs(l)+1);const S=m1({year:l,month:o,day:c,hour:f===24?0:f,minute:m,second:v,millisecond:0});let A=+a;const w=A%1e3;return A-=w>=0?w:1e3+w,(S-A)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Gb={};function tq(t,e={}){const a=JSON.stringify([t,e]);let i=Gb[a];return i||(i=new Intl.ListFormat(t,e),Gb[a]=i),i}const Rp=new Map;function Ip(t,e={}){const a=JSON.stringify([t,e]);let i=Rp.get(a);return i===void 0&&(i=new Intl.DateTimeFormat(t,e),Rp.set(a,i)),i}const Mp=new Map;function nq(t,e={}){const a=JSON.stringify([t,e]);let i=Mp.get(a);return i===void 0&&(i=new Intl.NumberFormat(t,e),Mp.set(a,i)),i}const Dp=new Map;function rq(t,e={}){const{base:a,...i}=e,l=JSON.stringify([t,i]);let o=Dp.get(l);return o===void 0&&(o=new Intl.RelativeTimeFormat(t,e),Dp.set(l,o)),o}let Eu=null;function aq(){return Eu||(Eu=new Intl.DateTimeFormat().resolvedOptions().locale,Eu)}const Np=new Map;function iw(t){let e=Np.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Np.set(t,e)),e}const Lp=new Map;function iq(t){let e=Lp.get(t);if(!e){const a=new Intl.Locale(t);e="getWeekInfo"in a?a.getWeekInfo():a.weekInfo,"minimalDays"in e||(e={...lw,...e}),Lp.set(t,e)}return e}function lq(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const a=t.indexOf("-u-");if(a===-1)return[t];{let i,l;try{i=Ip(t).resolvedOptions(),l=t}catch{const f=t.substring(0,a);i=Ip(f).resolvedOptions(),l=f}const{numberingSystem:o,calendar:c}=i;return[l,o,c]}}function sq(t,e,a){return(a||e)&&(t.includes("-u-")||(t+="-u"),a&&(t+=`-ca-${a}`),e&&(t+=`-nu-${e}`)),t}function oq(t){const e=[];for(let a=1;a<=12;a++){const i=Qe.utc(2009,a,1);e.push(t(i))}return e}function uq(t){const e=[];for(let a=1;a<=7;a++){const i=Qe.utc(2016,11,13+a);e.push(t(i))}return e}function ff(t,e,a,i){const l=t.listingMode();return l==="error"?null:l==="en"?a(e):i(e)}function cq(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||iw(t.locale).numberingSystem==="latn"}class fq{constructor(e,a,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:l,floor:o,...c}=i;if(!a||Object.keys(c).length>0){const h={useGrouping:!1,...i};i.padTo>0&&(h.minimumIntegerDigits=i.padTo),this.inf=nq(e,h)}}format(e){if(this.inf){const a=this.floor?Math.floor(e):e;return this.inf.format(a)}else{const a=this.floor?Math.floor(e):D4(e,3);return Mn(a,this.padTo)}}}class dq{constructor(e,a,i){this.opts=i,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const c=-1*(e.offset/60),h=c>=0?`Etc/GMT+${c}`:`Etc/GMT${c}`;e.offset!==0&&vi.create(h).valid?(l=h,this.dt=e):(l="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,l=e.zone.name):(l="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||l,this.dtf=Ip(a,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(a=>{if(a.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...a,value:i}}else return a}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class hq{constructor(e,a,i){this.opts={style:"long",...i},!a&&hw()&&(this.rtf=rq(e,i))}format(e,a){return this.rtf?this.rtf.format(e,a):jq(a,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,a){return this.rtf?this.rtf.formatToParts(e,a):[]}}const lw={firstDay:1,minimalDays:4,weekend:[6,7]};class Pt{static fromOpts(e){return Pt.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,a,i,l,o=!1){const c=e||pn.defaultLocale,h=c||(o?"en-US":aq()),f=a||pn.defaultNumberingSystem,m=i||pn.defaultOutputCalendar,v=jp(l)||pn.defaultWeekSettings;return new Pt(h,f,m,v,c)}static resetCache(){Eu=null,Rp.clear(),Mp.clear(),Dp.clear(),Np.clear(),Lp.clear()}static fromObject({locale:e,numberingSystem:a,outputCalendar:i,weekSettings:l}={}){return Pt.create(e,a,i,l)}constructor(e,a,i,l,o){const[c,h,f]=lq(e);this.locale=c,this.numberingSystem=a||h||null,this.outputCalendar=i||f||null,this.weekSettings=l,this.intl=sq(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=cq(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),a=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&a?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Pt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,jp(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,a=!1){return ff(this,e,yw,()=>{const i=a?{month:e,day:"numeric"}:{month:e},l=a?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=oq(o=>this.extract(o,i,"month"))),this.monthsCache[l][e]})}weekdays(e,a=!1){return ff(this,e,Ew,()=>{const i=a?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=a?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=uq(o=>this.extract(o,i,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return ff(this,void 0,()=>Aw,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Qe.utc(2016,11,13,9),Qe.utc(2016,11,13,19)].map(a=>this.extract(a,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ff(this,e,ww,()=>{const a={era:e};return this.eraCache[e]||(this.eraCache[e]=[Qe.utc(-40,1,1),Qe.utc(2017,1,1)].map(i=>this.extract(i,a,"era"))),this.eraCache[e]})}extract(e,a,i){const l=this.dtFormatter(e,a),o=l.formatToParts(),c=o.find(h=>h.type.toLowerCase()===i);return c?c.value:null}numberFormatter(e={}){return new fq(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,a={}){return new dq(e,this.intl,a)}relFormatter(e={}){return new hq(this.intl,this.isEnglish(),e)}listFormatter(e={}){return tq(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||iw(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:mw()?iq(this.locale):lw}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let M3=null;class cr extends Fu{static get utcInstance(){return M3===null&&(M3=new cr(0)),M3}static instance(e){return e===0?cr.utcInstance:new cr(e)}static parseSpecifier(e){if(e){const a=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(a)return new cr(p1(a[1],a[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Cu(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Cu(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,a){return Cu(this.fixed,a)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class mq extends Fu{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Xi(t,e){if(Ke(t)||t===null)return e;if(t instanceof Fu)return t;if(Sq(t)){const a=t.toLowerCase();return a==="default"?e:a==="local"||a==="system"?d1.instance:a==="utc"||a==="gmt"?cr.utcInstance:cr.parseSpecifier(a)||vi.create(t)}else return $i(t)?cr.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new mq(t)}const O4={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Zb={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},pq=O4.hanidec.replace(/[\[|\]]/g,"").split("");function gq(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let a=0;a<t.length;a++){const i=t.charCodeAt(a);if(t[a].search(O4.hanidec)!==-1)e+=pq.indexOf(t[a]);else for(const l in Zb){const[o,c]=Zb[l];i>=o&&i<=c&&(e+=i-o)}}return parseInt(e,10)}else return e}const kp=new Map;function vq(){kp.clear()}function ha({numberingSystem:t},e=""){const a=t||"latn";let i=kp.get(a);i===void 0&&(i=new Map,kp.set(a,i));let l=i.get(e);return l===void 0&&(l=new RegExp(`${O4[a]}${e}`),i.set(e,l)),l}let Wb=()=>Date.now(),Yb="system",Qb=null,Kb=null,Jb=null,Xb=60,$b,eS=null;class pn{static get now(){return Wb}static set now(e){Wb=e}static set defaultZone(e){Yb=e}static get defaultZone(){return Xi(Yb,d1.instance)}static get defaultLocale(){return Qb}static set defaultLocale(e){Qb=e}static get defaultNumberingSystem(){return Kb}static set defaultNumberingSystem(e){Kb=e}static get defaultOutputCalendar(){return Jb}static set defaultOutputCalendar(e){Jb=e}static get defaultWeekSettings(){return eS}static set defaultWeekSettings(e){eS=jp(e)}static get twoDigitCutoffYear(){return Xb}static set twoDigitCutoffYear(e){Xb=e%100}static get throwOnInvalid(){return $b}static set throwOnInvalid(e){$b=e}static resetCaches(){Pt.resetCache(),vi.resetCache(),Qe.resetCache(),vq()}}class ya{constructor(e,a){this.reason=e,this.explanation=a}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const sw=[0,31,59,90,120,151,181,212,243,273,304,334],ow=[0,31,60,91,121,152,182,213,244,274,305,335];function ta(t,e){return new ya("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function R4(t,e,a){const i=new Date(Date.UTC(t,e-1,a));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const l=i.getUTCDay();return l===0?7:l}function uw(t,e,a){return a+(Vu(t)?ow:sw)[e-1]}function cw(t,e){const a=Vu(t)?ow:sw,i=a.findIndex(o=>o<e),l=e-a[i];return{month:i+1,day:l}}function I4(t,e){return(t-e+7)%7+1}function Ff(t,e=4,a=1){const{year:i,month:l,day:o}=t,c=uw(i,l,o),h=I4(R4(i,l,o),a);let f=Math.floor((c-h+14-e)/7),m;return f<1?(m=i-1,f=Lu(m,e,a)):f>Lu(i,e,a)?(m=i+1,f=1):m=i,{weekYear:m,weekNumber:f,weekday:h,...g1(t)}}function tS(t,e=4,a=1){const{weekYear:i,weekNumber:l,weekday:o}=t,c=I4(R4(i,1,e),a),h=Ns(i);let f=l*7+o-c-7+e,m;f<1?(m=i-1,f+=Ns(m)):f>h?(m=i+1,f-=Ns(i)):m=i;const{month:v,day:b}=cw(m,f);return{year:m,month:v,day:b,...g1(t)}}function D3(t){const{year:e,month:a,day:i}=t,l=uw(e,a,i);return{year:e,ordinal:l,...g1(t)}}function nS(t){const{year:e,ordinal:a}=t,{month:i,day:l}=cw(e,a);return{year:e,month:i,day:l,...g1(t)}}function rS(t,e){if(!Ke(t.localWeekday)||!Ke(t.localWeekNumber)||!Ke(t.localWeekYear)){if(!Ke(t.weekday)||!Ke(t.weekNumber)||!Ke(t.weekYear))throw new Rs("Cannot mix locale-based week fields with ISO-based week fields");return Ke(t.localWeekday)||(t.weekday=t.localWeekday),Ke(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ke(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function yq(t,e=4,a=1){const i=h1(t.weekYear),l=na(t.weekNumber,1,Lu(t.weekYear,e,a)),o=na(t.weekday,1,7);return i?l?o?!1:ta("weekday",t.weekday):ta("week",t.weekNumber):ta("weekYear",t.weekYear)}function bq(t){const e=h1(t.year),a=na(t.ordinal,1,Ns(t.year));return e?a?!1:ta("ordinal",t.ordinal):ta("year",t.year)}function fw(t){const e=h1(t.year),a=na(t.month,1,12),i=na(t.day,1,Vf(t.year,t.month));return e?a?i?!1:ta("day",t.day):ta("month",t.month):ta("year",t.year)}function dw(t){const{hour:e,minute:a,second:i,millisecond:l}=t,o=na(e,0,23)||e===24&&a===0&&i===0&&l===0,c=na(a,0,59),h=na(i,0,59),f=na(l,0,999);return o?c?h?f?!1:ta("millisecond",l):ta("second",i):ta("minute",a):ta("hour",e)}function Ke(t){return typeof t>"u"}function $i(t){return typeof t=="number"}function h1(t){return typeof t=="number"&&t%1===0}function Sq(t){return typeof t=="string"}function Eq(t){return Object.prototype.toString.call(t)==="[object Date]"}function hw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function mw(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Aq(t){return Array.isArray(t)?t:[t]}function aS(t,e,a){if(t.length!==0)return t.reduce((i,l)=>{const o=[e(l),l];return i&&a(i[0],o[0])===i[0]?i:o},null)[1]}function wq(t,e){return e.reduce((a,i)=>(a[i]=t[i],a),{})}function zs(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function jp(t){if(t==null)return null;if(typeof t!="object")throw new ar("Week settings must be an object");if(!na(t.firstDay,1,7)||!na(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!na(e,1,7)))throw new ar("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function na(t,e,a){return h1(t)&&t>=e&&t<=a}function Cq(t,e){return t-e*Math.floor(t/e)}function Mn(t,e=2){const a=t<0;let i;return a?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function Ki(t){if(!(Ke(t)||t===null||t===""))return parseInt(t,10)}function El(t){if(!(Ke(t)||t===null||t===""))return parseFloat(t)}function M4(t){if(!(Ke(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function D4(t,e,a=!1){const i=10**e;return(a?Math.trunc:Math.round)(t*i)/i}function Vu(t){return t%4===0&&(t%100!==0||t%400===0)}function Ns(t){return Vu(t)?366:365}function Vf(t,e){const a=Cq(e-1,12)+1,i=t+(e-a)/12;return a===2?Vu(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][a-1]}function m1(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function iS(t,e,a){return-I4(R4(t,1,e),a)+e-1}function Lu(t,e=4,a=1){const i=iS(t,e,a),l=iS(t+1,e,a);return(Ns(t)-i+l)/7}function _p(t){return t>99?t:t>pn.twoDigitCutoffYear?1900+t:2e3+t}function pw(t,e,a,i=null){const l=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const c={timeZoneName:e,...o},h=new Intl.DateTimeFormat(a,c).formatToParts(l).find(f=>f.type.toLowerCase()==="timezonename");return h?h.value:null}function p1(t,e){let a=parseInt(t,10);Number.isNaN(a)&&(a=0);const i=parseInt(e,10)||0,l=a<0||Object.is(a,-0)?-i:i;return a*60+l}function gw(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new ar(`Invalid unit value ${t}`);return e}function Gf(t,e){const a={};for(const i in t)if(zs(t,i)){const l=t[i];if(l==null)continue;a[e(i)]=gw(l)}return a}function Cu(t,e){const a=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),l=t>=0?"+":"-";switch(e){case"short":return`${l}${Mn(a,2)}:${Mn(i,2)}`;case"narrow":return`${l}${a}${i>0?`:${i}`:""}`;case"techie":return`${l}${Mn(a,2)}${Mn(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function g1(t){return wq(t,["hour","minute","second","millisecond"])}const xq=["January","February","March","April","May","June","July","August","September","October","November","December"],vw=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Tq=["J","F","M","A","M","J","J","A","S","O","N","D"];function yw(t){switch(t){case"narrow":return[...Tq];case"short":return[...vw];case"long":return[...xq];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const bw=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Sw=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Oq=["M","T","W","T","F","S","S"];function Ew(t){switch(t){case"narrow":return[...Oq];case"short":return[...Sw];case"long":return[...bw];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Aw=["AM","PM"],Rq=["Before Christ","Anno Domini"],Iq=["BC","AD"],Mq=["B","A"];function ww(t){switch(t){case"narrow":return[...Mq];case"short":return[...Iq];case"long":return[...Rq];default:return null}}function Dq(t){return Aw[t.hour<12?0:1]}function Nq(t,e){return Ew(e)[t.weekday-1]}function Lq(t,e){return yw(e)[t.month-1]}function kq(t,e){return ww(e)[t.year<0?0:1]}function jq(t,e,a="always",i=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(a==="auto"&&o){const b=t==="days";switch(e){case 1:return b?"tomorrow":`next ${l[t][0]}`;case-1:return b?"yesterday":`last ${l[t][0]}`;case 0:return b?"today":`this ${l[t][0]}`}}const c=Object.is(e,-0)||e<0,h=Math.abs(e),f=h===1,m=l[t],v=i?f?m[1]:m[2]||m[1]:f?l[t][0]:t;return c?`${h} ${v} ago`:`in ${h} ${v}`}function lS(t,e){let a="";for(const i of t)i.literal?a+=i.val:a+=e(i.val);return a}const _q={D:Bf,DD:PA,DDD:HA,DDDD:BA,t:FA,tt:VA,ttt:GA,tttt:ZA,T:WA,TT:YA,TTT:QA,TTTT:KA,f:JA,ff:$A,fff:tw,ffff:rw,F:XA,FF:ew,FFF:nw,FFFF:aw};class ir{static create(e,a={}){return new ir(e,a)}static parseFormat(e){let a=null,i="",l=!1;const o=[];for(let c=0;c<e.length;c++){const h=e.charAt(c);h==="'"?(i.length>0&&o.push({literal:l||/^\s+$/.test(i),val:i}),a=null,i="",l=!l):l||h===a?i+=h:(i.length>0&&o.push({literal:/^\s+$/.test(i),val:i}),i=h,a=h)}return i.length>0&&o.push({literal:l||/^\s+$/.test(i),val:i}),o}static macroTokenToFormatOpts(e){return _q[e]}constructor(e,a){this.opts=a,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,a){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...a}).format()}dtFormatter(e,a={}){return this.loc.dtFormatter(e,{...this.opts,...a})}formatDateTime(e,a){return this.dtFormatter(e,a).format()}formatDateTimeParts(e,a){return this.dtFormatter(e,a).formatToParts()}formatInterval(e,a){return this.dtFormatter(e.start,a).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,a){return this.dtFormatter(e,a).resolvedOptions()}num(e,a=0){if(this.opts.forceSimple)return Mn(e,a);const i={...this.opts};return a>0&&(i.padTo=a),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,a){const i=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(A,w)=>this.loc.extract(e,A,w),c=A=>e.isOffsetFixed&&e.offset===0&&A.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,A.format):"",h=()=>i?Dq(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),f=(A,w)=>i?Lq(e,A):o(w?{month:A}:{month:A,day:"numeric"},"month"),m=(A,w)=>i?Nq(e,A):o(w?{weekday:A}:{weekday:A,month:"long",day:"numeric"},"weekday"),v=A=>{const w=ir.macroTokenToFormatOpts(A);return w?this.formatWithSystemDefault(e,w):A},b=A=>i?kq(e,A):o({era:A},"era"),S=A=>{switch(A){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return c({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return c({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return c({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return h();case"d":return l?o({day:"numeric"},"day"):this.num(e.day);case"dd":return l?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return m("short",!0);case"cccc":return m("long",!0);case"ccccc":return m("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return m("short",!1);case"EEEE":return m("long",!1);case"EEEEE":return m("narrow",!1);case"L":return l?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return l?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return f("short",!0);case"LLLL":return f("long",!0);case"LLLLL":return f("narrow",!0);case"M":return l?o({month:"numeric"},"month"):this.num(e.month);case"MM":return l?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return f("short",!1);case"MMMM":return f("long",!1);case"MMMMM":return f("narrow",!1);case"y":return l?o({year:"numeric"},"year"):this.num(e.year);case"yy":return l?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return l?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return l?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return b("short");case"GG":return b("long");case"GGGGG":return b("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return v(A)}};return lS(ir.parseFormat(a),S)}formatDurationFromString(e,a){const i=f=>{switch(f[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=f=>m=>{const v=i(m);return v?this.num(f.get(v),m.length):m},o=ir.parseFormat(a),c=o.reduce((f,{literal:m,val:v})=>m?f:f.concat(v),[]),h=e.shiftTo(...c.map(i).filter(f=>f));return lS(o,l(h))}}const Cw=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ys(...t){const e=t.reduce((a,i)=>a+i.source,"");return RegExp(`^${e}$`)}function Qs(...t){return e=>t.reduce(([a,i,l],o)=>{const[c,h,f]=o(e,l);return[{...a,...c},h||i,f]},[{},null,1]).slice(0,2)}function Ks(t,...e){if(t==null)return[null,null];for(const[a,i]of e){const l=a.exec(t);if(l)return i(l)}return[null,null]}function xw(...t){return(e,a)=>{const i={};let l;for(l=0;l<t.length;l++)i[t[l]]=Ki(e[a+l]);return[i,null,a+l]}}const Tw=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Uq=`(?:${Tw.source}?(?:\\[(${Cw.source})\\])?)?`,N4=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ow=RegExp(`${N4.source}${Uq}`),L4=RegExp(`(?:T${Ow.source})?`),qq=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,zq=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Pq=/(\d{4})-?(\d{3})/,Hq=xw("weekYear","weekNumber","weekDay"),Bq=xw("year","ordinal"),Fq=/(\d{4})-(\d\d)-(\d\d)/,Rw=RegExp(`${N4.source} ?(?:${Tw.source}|(${Cw.source}))?`),Vq=RegExp(`(?: ${Rw.source})?`);function Ls(t,e,a){const i=t[e];return Ke(i)?a:Ki(i)}function Gq(t,e){return[{year:Ls(t,e),month:Ls(t,e+1,1),day:Ls(t,e+2,1)},null,e+3]}function Js(t,e){return[{hours:Ls(t,e,0),minutes:Ls(t,e+1,0),seconds:Ls(t,e+2,0),milliseconds:M4(t[e+3])},null,e+4]}function Gu(t,e){const a=!t[e]&&!t[e+1],i=p1(t[e+1],t[e+2]),l=a?null:cr.instance(i);return[{},l,e+3]}function Zu(t,e){const a=t[e]?vi.create(t[e]):null;return[{},a,e+1]}const Zq=RegExp(`^T?${N4.source}$`),Wq=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Yq(t){const[e,a,i,l,o,c,h,f,m]=t,v=e[0]==="-",b=f&&f[0]==="-",S=(A,w=!1)=>A!==void 0&&(w||A&&v)?-A:A;return[{years:S(El(a)),months:S(El(i)),weeks:S(El(l)),days:S(El(o)),hours:S(El(c)),minutes:S(El(h)),seconds:S(El(f),f==="-0"),milliseconds:S(M4(m),b)}]}const Qq={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function k4(t,e,a,i,l,o,c){const h={year:e.length===2?_p(Ki(e)):Ki(e),month:vw.indexOf(a)+1,day:Ki(i),hour:Ki(l),minute:Ki(o)};return c&&(h.second=Ki(c)),t&&(h.weekday=t.length>3?bw.indexOf(t)+1:Sw.indexOf(t)+1),h}const Kq=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Jq(t){const[,e,a,i,l,o,c,h,f,m,v,b]=t,S=k4(e,l,i,a,o,c,h);let A;return f?A=Qq[f]:m?A=0:A=p1(v,b),[S,new cr(A)]}function Xq(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const $q=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ez=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function sS(t){const[,e,a,i,l,o,c,h]=t;return[k4(e,l,i,a,o,c,h),cr.utcInstance]}function nz(t){const[,e,a,i,l,o,c,h]=t;return[k4(e,h,a,i,l,o,c),cr.utcInstance]}const rz=Ys(qq,L4),az=Ys(zq,L4),iz=Ys(Pq,L4),lz=Ys(Ow),Iw=Qs(Gq,Js,Gu,Zu),sz=Qs(Hq,Js,Gu,Zu),oz=Qs(Bq,Js,Gu,Zu),uz=Qs(Js,Gu,Zu);function cz(t){return Ks(t,[rz,Iw],[az,sz],[iz,oz],[lz,uz])}function fz(t){return Ks(Xq(t),[Kq,Jq])}function dz(t){return Ks(t,[$q,sS],[ez,sS],[tz,nz])}function hz(t){return Ks(t,[Wq,Yq])}const mz=Qs(Js);function pz(t){return Ks(t,[Zq,mz])}const gz=Ys(Fq,Vq),vz=Ys(Rw),yz=Qs(Js,Gu,Zu);function bz(t){return Ks(t,[gz,Iw],[vz,yz])}const oS="Invalid Duration",Mw={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Sz={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Mw},Xr=146097/400,Es=146097/4800,Ez={years:{quarters:4,months:12,weeks:Xr/7,days:Xr,hours:Xr*24,minutes:Xr*24*60,seconds:Xr*24*60*60,milliseconds:Xr*24*60*60*1e3},quarters:{months:3,weeks:Xr/28,days:Xr/4,hours:Xr*24/4,minutes:Xr*24*60/4,seconds:Xr*24*60*60/4,milliseconds:Xr*24*60*60*1e3/4},months:{weeks:Es/7,days:Es,hours:Es*24,minutes:Es*24*60,seconds:Es*24*60*60,milliseconds:Es*24*60*60*1e3},...Mw},Tl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Az=Tl.slice(0).reverse();function Wi(t,e,a=!1){const i={values:a?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new xt(i)}function Dw(t,e){let a=e.milliseconds??0;for(const i of Az.slice(1))e[i]&&(a+=e[i]*t[i].milliseconds);return a}function uS(t,e){const a=Dw(t,e)<0?-1:1;Tl.reduceRight((i,l)=>{if(Ke(e[l]))return i;if(i){const o=e[i]*a,c=t[l][i],h=Math.floor(o/c);e[l]+=h*a,e[i]-=h*c*a}return l},null),Tl.reduce((i,l)=>{if(Ke(e[l]))return i;if(i){const o=e[i]%1;e[i]-=o,e[l]+=o*t[i][l]}return l},null)}function wz(t){const e={};for(const[a,i]of Object.entries(t))i!==0&&(e[a]=i);return e}class xt{constructor(e){const a=e.conversionAccuracy==="longterm"||!1;let i=a?Ez:Sz;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||Pt.create(),this.conversionAccuracy=a?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,a){return xt.fromObject({milliseconds:e},a)}static fromObject(e,a={}){if(e==null||typeof e!="object")throw new ar(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new xt({values:Gf(e,xt.normalizeUnit),loc:Pt.fromObject(a),conversionAccuracy:a.conversionAccuracy,matrix:a.matrix})}static fromDurationLike(e){if($i(e))return xt.fromMillis(e);if(xt.isDuration(e))return e;if(typeof e=="object")return xt.fromObject(e);throw new ar(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,a){const[i]=hz(e);return i?xt.fromObject(i,a):xt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,a){const[i]=pz(e);return i?xt.fromObject(i,a):xt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,a=null){if(!e)throw new ar("need to specify a reason the Duration is invalid");const i=e instanceof ya?e:new ya(e,a);if(pn.throwOnInvalid)throw new YU(i);return new xt({invalid:i})}static normalizeUnit(e){const a={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!a)throw new zA(e);return a}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,a={}){const i={...a,floor:a.round!==!1&&a.floor!==!1};return this.isValid?ir.create(this.loc,i).formatDurationFromString(this,e):oS}toHuman(e={}){if(!this.isValid)return oS;const a=Tl.map(i=>{const l=this.values[i];return Ke(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(l)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=D4(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const a=this.toMillis();return a<0||a>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Qe.fromMillis(a,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Dw(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const a=xt.fromDurationLike(e),i={};for(const l of Tl)(zs(a.values,l)||zs(this.values,l))&&(i[l]=a.get(l)+this.get(l));return Wi(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const a=xt.fromDurationLike(e);return this.plus(a.negate())}mapUnits(e){if(!this.isValid)return this;const a={};for(const i of Object.keys(this.values))a[i]=gw(e(this.values[i],i));return Wi(this,{values:a},!0)}get(e){return this[xt.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const a={...this.values,...Gf(e,xt.normalizeUnit)};return Wi(this,{values:a})}reconfigure({locale:e,numberingSystem:a,conversionAccuracy:i,matrix:l}={}){const c={loc:this.loc.clone({locale:e,numberingSystem:a}),matrix:l,conversionAccuracy:i};return Wi(this,c)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return uS(this.matrix,e),Wi(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=wz(this.normalize().shiftToAll().toObject());return Wi(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(c=>xt.normalizeUnit(c));const a={},i={},l=this.toObject();let o;for(const c of Tl)if(e.indexOf(c)>=0){o=c;let h=0;for(const m in i)h+=this.matrix[m][c]*i[m],i[m]=0;$i(l[c])&&(h+=l[c]);const f=Math.trunc(h);a[c]=f,i[c]=(h*1e3-f*1e3)/1e3}else $i(l[c])&&(i[c]=l[c]);for(const c in i)i[c]!==0&&(a[o]+=c===o?i[c]:i[c]/this.matrix[o][c]);return uS(this.matrix,a),Wi(this,{values:a},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const a of Object.keys(this.values))e[a]=this.values[a]===0?0:-this.values[a];return Wi(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function a(i,l){return i===void 0||i===0?l===void 0||l===0:i===l}for(const i of Tl)if(!a(this.values[i],e.values[i]))return!1;return!0}}const As="Invalid Interval";function Cz(t,e){return!t||!t.isValid?dn.invalid("missing or invalid start"):!e||!e.isValid?dn.invalid("missing or invalid end"):e<t?dn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class dn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,a=null){if(!e)throw new ar("need to specify a reason the Interval is invalid");const i=e instanceof ya?e:new ya(e,a);if(pn.throwOnInvalid)throw new WU(i);return new dn({invalid:i})}static fromDateTimes(e,a){const i=cu(e),l=cu(a),o=Cz(i,l);return o??new dn({start:i,end:l})}static after(e,a){const i=xt.fromDurationLike(a),l=cu(e);return dn.fromDateTimes(l,l.plus(i))}static before(e,a){const i=xt.fromDurationLike(a),l=cu(e);return dn.fromDateTimes(l.minus(i),l)}static fromISO(e,a){const[i,l]=(e||"").split("/",2);if(i&&l){let o,c;try{o=Qe.fromISO(i,a),c=o.isValid}catch{c=!1}let h,f;try{h=Qe.fromISO(l,a),f=h.isValid}catch{f=!1}if(c&&f)return dn.fromDateTimes(o,h);if(c){const m=xt.fromISO(l,a);if(m.isValid)return dn.after(o,m)}else if(f){const m=xt.fromISO(i,a);if(m.isValid)return dn.before(h,m)}}return dn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",a){if(!this.isValid)return NaN;const i=this.start.startOf(e,a);let l;return a!=null&&a.useLocaleWeeks?l=this.end.reconfigure({locale:i.locale}):l=this.end,l=l.startOf(e,a),Math.floor(l.diff(i,e).get(e))+(l.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:a}={}){return this.isValid?dn.fromDateTimes(e||this.s,a||this.e):this}splitAt(...e){if(!this.isValid)return[];const a=e.map(cu).filter(c=>this.contains(c)).sort((c,h)=>c.toMillis()-h.toMillis()),i=[];let{s:l}=this,o=0;for(;l<this.e;){const c=a[o]||this.e,h=+c>+this.e?this.e:c;i.push(dn.fromDateTimes(l,h)),l=h,o+=1}return i}splitBy(e){const a=xt.fromDurationLike(e);if(!this.isValid||!a.isValid||a.as("milliseconds")===0)return[];let{s:i}=this,l=1,o;const c=[];for(;i<this.e;){const h=this.start.plus(a.mapUnits(f=>f*l));o=+h>+this.e?this.e:h,c.push(dn.fromDateTimes(i,o)),i=o,l+=1}return c}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const a=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return a>=i?null:dn.fromDateTimes(a,i)}union(e){if(!this.isValid)return this;const a=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return dn.fromDateTimes(a,i)}static merge(e){const[a,i]=e.sort((l,o)=>l.s-o.s).reduce(([l,o],c)=>o?o.overlaps(c)||o.abutsStart(c)?[l,o.union(c)]:[l.concat([o]),c]:[l,c],[[],null]);return i&&a.push(i),a}static xor(e){let a=null,i=0;const l=[],o=e.map(f=>[{time:f.s,type:"s"},{time:f.e,type:"e"}]),c=Array.prototype.concat(...o),h=c.sort((f,m)=>f.time-m.time);for(const f of h)i+=f.type==="s"?1:-1,i===1?a=f.time:(a&&+a!=+f.time&&l.push(dn.fromDateTimes(a,f.time)),a=null);return dn.merge(l)}difference(...e){return dn.xor([this].concat(e)).map(a=>this.intersection(a)).filter(a=>a&&!a.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:As}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Bf,a={}){return this.isValid?ir.create(this.s.loc.clone(a),e).formatInterval(this):As}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:As}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:As}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:As}toFormat(e,{separator:a=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${a}${this.e.toFormat(e)}`:As}toDuration(e,a){return this.isValid?this.e.diff(this.s,e,a):xt.invalid(this.invalidReason)}mapEndpoints(e){return dn.fromDateTimes(e(this.s),e(this.e))}}class df{static hasDST(e=pn.defaultZone){const a=Qe.now().setZone(e).set({month:12});return!e.isUniversal&&a.offset!==a.set({month:6}).offset}static isValidIANAZone(e){return vi.isValidZone(e)}static normalizeZone(e){return Xi(e,pn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:a=null}={}){return(a||Pt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:a=null}={}){return(a||Pt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:a=null}={}){return(a||Pt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:a=null,numberingSystem:i=null,locObj:l=null,outputCalendar:o="gregory"}={}){return(l||Pt.create(a,i,o)).months(e)}static monthsFormat(e="long",{locale:a=null,numberingSystem:i=null,locObj:l=null,outputCalendar:o="gregory"}={}){return(l||Pt.create(a,i,o)).months(e,!0)}static weekdays(e="long",{locale:a=null,numberingSystem:i=null,locObj:l=null}={}){return(l||Pt.create(a,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:a=null,numberingSystem:i=null,locObj:l=null}={}){return(l||Pt.create(a,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Pt.create(e).meridiems()}static eras(e="short",{locale:a=null}={}){return Pt.create(a,null,"gregory").eras(e)}static features(){return{relative:hw(),localeWeek:mw()}}}function cS(t,e){const a=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=a(e)-a(t);return Math.floor(xt.fromMillis(i).as("days"))}function xz(t,e,a){const i=[["years",(f,m)=>m.year-f.year],["quarters",(f,m)=>m.quarter-f.quarter+(m.year-f.year)*4],["months",(f,m)=>m.month-f.month+(m.year-f.year)*12],["weeks",(f,m)=>{const v=cS(f,m);return(v-v%7)/7}],["days",cS]],l={},o=t;let c,h;for(const[f,m]of i)a.indexOf(f)>=0&&(c=f,l[f]=m(t,e),h=o.plus(l),h>e?(l[f]--,t=o.plus(l),t>e&&(h=t,l[f]--,t=o.plus(l))):t=h);return[t,l,h,c]}function Tz(t,e,a,i){let[l,o,c,h]=xz(t,e,a);const f=e-l,m=a.filter(b=>["hours","minutes","seconds","milliseconds"].indexOf(b)>=0);m.length===0&&(c<e&&(c=l.plus({[h]:1})),c!==l&&(o[h]=(o[h]||0)+f/(c-l)));const v=xt.fromObject(o,i);return m.length>0?xt.fromMillis(f,i).shiftTo(...m).plus(v):v}const Oz="missing Intl.DateTimeFormat.formatToParts support";function Nt(t,e=a=>a){return{regex:t,deser:([a])=>e(gq(a))}}const Rz=" ",Nw=`[ ${Rz}]`,Lw=new RegExp(Nw,"g");function Iz(t){return t.replace(/\./g,"\\.?").replace(Lw,Nw)}function fS(t){return t.replace(/\./g,"").replace(Lw," ").toLowerCase()}function ma(t,e){return t===null?null:{regex:RegExp(t.map(Iz).join("|")),deser:([a])=>t.findIndex(i=>fS(a)===fS(i))+e}}function dS(t,e){return{regex:t,deser:([,a,i])=>p1(a,i),groups:e}}function hf(t){return{regex:t,deser:([e])=>e}}function Mz(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Dz(t,e){const a=ha(e),i=ha(e,"{2}"),l=ha(e,"{3}"),o=ha(e,"{4}"),c=ha(e,"{6}"),h=ha(e,"{1,2}"),f=ha(e,"{1,3}"),m=ha(e,"{1,6}"),v=ha(e,"{1,9}"),b=ha(e,"{2,4}"),S=ha(e,"{4,6}"),A=k=>({regex:RegExp(Mz(k.val)),deser:([D])=>D,literal:!0}),R=(k=>{if(t.literal)return A(k);switch(k.val){case"G":return ma(e.eras("short"),0);case"GG":return ma(e.eras("long"),0);case"y":return Nt(m);case"yy":return Nt(b,_p);case"yyyy":return Nt(o);case"yyyyy":return Nt(S);case"yyyyyy":return Nt(c);case"M":return Nt(h);case"MM":return Nt(i);case"MMM":return ma(e.months("short",!0),1);case"MMMM":return ma(e.months("long",!0),1);case"L":return Nt(h);case"LL":return Nt(i);case"LLL":return ma(e.months("short",!1),1);case"LLLL":return ma(e.months("long",!1),1);case"d":return Nt(h);case"dd":return Nt(i);case"o":return Nt(f);case"ooo":return Nt(l);case"HH":return Nt(i);case"H":return Nt(h);case"hh":return Nt(i);case"h":return Nt(h);case"mm":return Nt(i);case"m":return Nt(h);case"q":return Nt(h);case"qq":return Nt(i);case"s":return Nt(h);case"ss":return Nt(i);case"S":return Nt(f);case"SSS":return Nt(l);case"u":return hf(v);case"uu":return hf(h);case"uuu":return Nt(a);case"a":return ma(e.meridiems(),0);case"kkkk":return Nt(o);case"kk":return Nt(b,_p);case"W":return Nt(h);case"WW":return Nt(i);case"E":case"c":return Nt(a);case"EEE":return ma(e.weekdays("short",!1),1);case"EEEE":return ma(e.weekdays("long",!1),1);case"ccc":return ma(e.weekdays("short",!0),1);case"cccc":return ma(e.weekdays("long",!0),1);case"Z":case"ZZ":return dS(new RegExp(`([+-]${h.source})(?::(${i.source}))?`),2);case"ZZZ":return dS(new RegExp(`([+-]${h.source})(${i.source})?`),2);case"z":return hf(/[a-z_+-/]{1,256}?/i);case" ":return hf(/[^\S\n\r]/);default:return A(k)}})(t)||{invalidReason:Oz};return R.token=t,R}const Nz={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Lz(t,e,a){const{type:i,value:l}=t;if(i==="literal"){const f=/^\s+$/.test(l);return{literal:!f,val:f?" ":l}}const o=e[i];let c=i;i==="hour"&&(e.hour12!=null?c=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?c="hour12":c="hour24":c=a.hour12?"hour12":"hour24");let h=Nz[c];if(typeof h=="object"&&(h=h[o]),h)return{literal:!1,val:h}}function kz(t){return[`^${t.map(a=>a.regex).reduce((a,i)=>`${a}(${i.source})`,"")}$`,t]}function jz(t,e,a){const i=t.match(e);if(i){const l={};let o=1;for(const c in a)if(zs(a,c)){const h=a[c],f=h.groups?h.groups+1:1;!h.literal&&h.token&&(l[h.token.val[0]]=h.deser(i.slice(o,o+f))),o+=f}return[i,l]}else return[i,{}]}function _z(t){const e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let a=null,i;return Ke(t.z)||(a=vi.create(t.z)),Ke(t.Z)||(a||(a=new cr(t.Z)),i=t.Z),Ke(t.q)||(t.M=(t.q-1)*3+1),Ke(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ke(t.u)||(t.S=M4(t.u)),[Object.keys(t).reduce((o,c)=>{const h=e(c);return h&&(o[h]=t[c]),o},{}),a,i]}let N3=null;function Uz(){return N3||(N3=Qe.fromMillis(1555555555555)),N3}function qz(t,e){if(t.literal)return t;const a=ir.macroTokenToFormatOpts(t.val),i=Uw(a,e);return i==null||i.includes(void 0)?t:i}function kw(t,e){return Array.prototype.concat(...t.map(a=>qz(a,e)))}class jw{constructor(e,a){if(this.locale=e,this.format=a,this.tokens=kw(ir.parseFormat(a),e),this.units=this.tokens.map(i=>Dz(i,e)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){const[i,l]=kz(this.units);this.regex=RegExp(i,"i"),this.handlers=l}}explainFromTokens(e){if(this.isValid){const[a,i]=jz(e,this.regex,this.handlers),[l,o,c]=i?_z(i):[null,null,void 0];if(zs(i,"a")&&zs(i,"H"))throw new Rs("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:a,matches:i,result:l,zone:o,specificOffset:c}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function _w(t,e,a){return new jw(t,a).explainFromTokens(e)}function zz(t,e,a){const{result:i,zone:l,specificOffset:o,invalidReason:c}=_w(t,e,a);return[i,l,o,c]}function Uw(t,e){if(!t)return null;const i=ir.create(e,t).dtFormatter(Uz()),l=i.formatToParts(),o=i.resolvedOptions();return l.map(c=>Lz(c,t,o))}const L3="Invalid DateTime",Pz=864e13;function Au(t){return new ya("unsupported zone",`the zone "${t.name}" is not supported`)}function k3(t){return t.weekData===null&&(t.weekData=Ff(t.c)),t.weekData}function j3(t){return t.localWeekData===null&&(t.localWeekData=Ff(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Al(t,e){const a={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Qe({...a,...e,old:a})}function qw(t,e,a){let i=t-e*60*1e3;const l=a.offset(i);if(e===l)return[i,e];i-=(l-e)*60*1e3;const o=a.offset(i);return l===o?[i,l]:[t-Math.min(l,o)*60*1e3,Math.max(l,o)]}function mf(t,e){t+=e*60*1e3;const a=new Date(t);return{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds(),millisecond:a.getUTCMilliseconds()}}function Tf(t,e,a){return qw(m1(t),e,a)}function hS(t,e){const a=t.o,i=t.c.year+Math.trunc(e.years),l=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:i,month:l,day:Math.min(t.c.day,Vf(i,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},c=xt.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),h=m1(o);let[f,m]=qw(h,a,t.zone);return c!==0&&(f+=c,m=t.zone.offset(f)),{ts:f,o:m}}function ws(t,e,a,i,l,o){const{setZone:c,zone:h}=a;if(t&&Object.keys(t).length!==0||e){const f=e||h,m=Qe.fromObject(t,{...a,zone:f,specificOffset:o});return c?m:m.setZone(h)}else return Qe.invalid(new ya("unparsable",`the input "${l}" can't be parsed as ${i}`))}function pf(t,e,a=!0){return t.isValid?ir.create(Pt.create("en-US"),{allowZ:a,forceSimple:!0}).formatDateTimeFromString(t,e):null}function _3(t,e){const a=t.c.year>9999||t.c.year<0;let i="";return a&&t.c.year>=0&&(i+="+"),i+=Mn(t.c.year,a?6:4),e?(i+="-",i+=Mn(t.c.month),i+="-",i+=Mn(t.c.day)):(i+=Mn(t.c.month),i+=Mn(t.c.day)),i}function mS(t,e,a,i,l,o){let c=Mn(t.c.hour);return e?(c+=":",c+=Mn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!a)&&(c+=":")):c+=Mn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!a)&&(c+=Mn(t.c.second),(t.c.millisecond!==0||!i)&&(c+=".",c+=Mn(t.c.millisecond,3))),l&&(t.isOffsetFixed&&t.offset===0&&!o?c+="Z":t.o<0?(c+="-",c+=Mn(Math.trunc(-t.o/60)),c+=":",c+=Mn(Math.trunc(-t.o%60))):(c+="+",c+=Mn(Math.trunc(t.o/60)),c+=":",c+=Mn(Math.trunc(t.o%60)))),o&&(c+="["+t.zone.ianaName+"]"),c}const zw={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Hz={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Bz={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Pw=["year","month","day","hour","minute","second","millisecond"],Fz=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Vz=["year","ordinal","hour","minute","second","millisecond"];function Gz(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new zA(t);return e}function pS(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Gz(t)}}function Zz(t){if(wu===void 0&&(wu=pn.now()),t.type!=="iana")return t.offset(wu);const e=t.name;let a=Up.get(e);return a===void 0&&(a=t.offset(wu),Up.set(e,a)),a}function gS(t,e){const a=Xi(e.zone,pn.defaultZone);if(!a.isValid)return Qe.invalid(Au(a));const i=Pt.fromObject(e);let l,o;if(Ke(t.year))l=pn.now();else{for(const f of Pw)Ke(t[f])&&(t[f]=zw[f]);const c=fw(t)||dw(t);if(c)return Qe.invalid(c);const h=Zz(a);[l,o]=Tf(t,h,a)}return new Qe({ts:l,zone:a,loc:i,o})}function vS(t,e,a){const i=Ke(a.round)?!0:a.round,l=(c,h)=>(c=D4(c,i||a.calendary?0:2,!0),e.loc.clone(a).relFormatter(a).format(c,h)),o=c=>a.calendary?e.hasSame(t,c)?0:e.startOf(c).diff(t.startOf(c),c).get(c):e.diff(t,c).get(c);if(a.unit)return l(o(a.unit),a.unit);for(const c of a.units){const h=o(c);if(Math.abs(h)>=1)return l(h,c)}return l(t>e?-0:0,a.units[a.units.length-1])}function yS(t){let e={},a;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],a=Array.from(t).slice(0,t.length-1)):a=Array.from(t),[e,a]}let wu;const Up=new Map;class Qe{constructor(e){const a=e.zone||pn.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new ya("invalid input"):null)||(a.isValid?null:Au(a));this.ts=Ke(e.ts)?pn.now():e.ts;let l=null,o=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(a))[l,o]=[e.old.c,e.old.o];else{const h=$i(e.o)&&!e.old?e.o:a.offset(this.ts);l=mf(this.ts,h),i=Number.isNaN(l.year)?new ya("invalid input"):null,l=i?null:l,o=i?null:h}this._zone=a,this.loc=e.loc||Pt.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=l,this.o=o,this.isLuxonDateTime=!0}static now(){return new Qe({})}static local(){const[e,a]=yS(arguments),[i,l,o,c,h,f,m]=a;return gS({year:i,month:l,day:o,hour:c,minute:h,second:f,millisecond:m},e)}static utc(){const[e,a]=yS(arguments),[i,l,o,c,h,f,m]=a;return e.zone=cr.utcInstance,gS({year:i,month:l,day:o,hour:c,minute:h,second:f,millisecond:m},e)}static fromJSDate(e,a={}){const i=Eq(e)?e.valueOf():NaN;if(Number.isNaN(i))return Qe.invalid("invalid input");const l=Xi(a.zone,pn.defaultZone);return l.isValid?new Qe({ts:i,zone:l,loc:Pt.fromObject(a)}):Qe.invalid(Au(l))}static fromMillis(e,a={}){if($i(e))return e<-864e13||e>Pz?Qe.invalid("Timestamp out of range"):new Qe({ts:e,zone:Xi(a.zone,pn.defaultZone),loc:Pt.fromObject(a)});throw new ar(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,a={}){if($i(e))return new Qe({ts:e*1e3,zone:Xi(a.zone,pn.defaultZone),loc:Pt.fromObject(a)});throw new ar("fromSeconds requires a numerical input")}static fromObject(e,a={}){e=e||{};const i=Xi(a.zone,pn.defaultZone);if(!i.isValid)return Qe.invalid(Au(i));const l=Pt.fromObject(a),o=Gf(e,pS),{minDaysInFirstWeek:c,startOfWeek:h}=rS(o,l),f=pn.now(),m=Ke(a.specificOffset)?i.offset(f):a.specificOffset,v=!Ke(o.ordinal),b=!Ke(o.year),S=!Ke(o.month)||!Ke(o.day),A=b||S,w=o.weekYear||o.weekNumber;if((A||v)&&w)throw new Rs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&v)throw new Rs("Can't mix ordinal dates with month/day");const R=w||o.weekday&&!A;let k,D,I=mf(f,m);R?(k=Fz,D=Hz,I=Ff(I,c,h)):v?(k=Vz,D=Bz,I=D3(I)):(k=Pw,D=zw);let B=!1;for(const O of k){const z=o[O];Ke(z)?B?o[O]=D[O]:o[O]=I[O]:B=!0}const Y=R?yq(o,c,h):v?bq(o):fw(o),j=Y||dw(o);if(j)return Qe.invalid(j);const F=R?tS(o,c,h):v?nS(o):o,[Z,E]=Tf(F,m,i),x=new Qe({ts:Z,zone:i,o:E,loc:l});return o.weekday&&A&&e.weekday!==x.weekday?Qe.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${x.toISO()}`):x.isValid?x:Qe.invalid(x.invalid)}static fromISO(e,a={}){const[i,l]=cz(e);return ws(i,l,a,"ISO 8601",e)}static fromRFC2822(e,a={}){const[i,l]=fz(e);return ws(i,l,a,"RFC 2822",e)}static fromHTTP(e,a={}){const[i,l]=dz(e);return ws(i,l,a,"HTTP",a)}static fromFormat(e,a,i={}){if(Ke(e)||Ke(a))throw new ar("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:o=null}=i,c=Pt.fromOpts({locale:l,numberingSystem:o,defaultToEN:!0}),[h,f,m,v]=zz(c,e,a);return v?Qe.invalid(v):ws(h,f,i,`format ${a}`,e,m)}static fromString(e,a,i={}){return Qe.fromFormat(e,a,i)}static fromSQL(e,a={}){const[i,l]=bz(e);return ws(i,l,a,"SQL",e)}static invalid(e,a=null){if(!e)throw new ar("need to specify a reason the DateTime is invalid");const i=e instanceof ya?e:new ya(e,a);if(pn.throwOnInvalid)throw new ZU(i);return new Qe({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,a={}){const i=Uw(e,Pt.fromObject(a));return i?i.map(l=>l?l.val:null).join(""):null}static expandFormat(e,a={}){return kw(ir.parseFormat(e),Pt.fromObject(a)).map(l=>l.val).join("")}static resetCache(){wu=void 0,Up.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?k3(this).weekYear:NaN}get weekNumber(){return this.isValid?k3(this).weekNumber:NaN}get weekday(){return this.isValid?k3(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?j3(this).weekday:NaN}get localWeekNumber(){return this.isValid?j3(this).weekNumber:NaN}get localWeekYear(){return this.isValid?j3(this).weekYear:NaN}get ordinal(){return this.isValid?D3(this.c).ordinal:NaN}get monthShort(){return this.isValid?df.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?df.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?df.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?df.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,a=6e4,i=m1(this.c),l=this.zone.offset(i-e),o=this.zone.offset(i+e),c=this.zone.offset(i-l*a),h=this.zone.offset(i-o*a);if(c===h)return[this];const f=i-c*a,m=i-h*a,v=mf(f,c),b=mf(m,h);return v.hour===b.hour&&v.minute===b.minute&&v.second===b.second&&v.millisecond===b.millisecond?[Al(this,{ts:f}),Al(this,{ts:m})]:[this]}get isInLeapYear(){return Vu(this.year)}get daysInMonth(){return Vf(this.year,this.month)}get daysInYear(){return this.isValid?Ns(this.year):NaN}get weeksInWeekYear(){return this.isValid?Lu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Lu(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:a,numberingSystem:i,calendar:l}=ir.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:a,numberingSystem:i,outputCalendar:l}}toUTC(e=0,a={}){return this.setZone(cr.instance(e),a)}toLocal(){return this.setZone(pn.defaultZone)}setZone(e,{keepLocalTime:a=!1,keepCalendarTime:i=!1}={}){if(e=Xi(e,pn.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(a||i){const o=e.offset(this.ts),c=this.toObject();[l]=Tf(c,o,e)}return Al(this,{ts:l,zone:e})}else return Qe.invalid(Au(e))}reconfigure({locale:e,numberingSystem:a,outputCalendar:i}={}){const l=this.loc.clone({locale:e,numberingSystem:a,outputCalendar:i});return Al(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const a=Gf(e,pS),{minDaysInFirstWeek:i,startOfWeek:l}=rS(a,this.loc),o=!Ke(a.weekYear)||!Ke(a.weekNumber)||!Ke(a.weekday),c=!Ke(a.ordinal),h=!Ke(a.year),f=!Ke(a.month)||!Ke(a.day),m=h||f,v=a.weekYear||a.weekNumber;if((m||c)&&v)throw new Rs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&c)throw new Rs("Can't mix ordinal dates with month/day");let b;o?b=tS({...Ff(this.c,i,l),...a},i,l):Ke(a.ordinal)?(b={...this.toObject(),...a},Ke(a.day)&&(b.day=Math.min(Vf(b.year,b.month),b.day))):b=nS({...D3(this.c),...a});const[S,A]=Tf(b,this.o,this.zone);return Al(this,{ts:S,o:A})}plus(e){if(!this.isValid)return this;const a=xt.fromDurationLike(e);return Al(this,hS(this,a))}minus(e){if(!this.isValid)return this;const a=xt.fromDurationLike(e).negate();return Al(this,hS(this,a))}startOf(e,{useLocaleWeeks:a=!1}={}){if(!this.isValid)return this;const i={},l=xt.normalizeUnit(e);switch(l){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(l==="weeks")if(a){const o=this.loc.getStartOfWeek(),{weekday:c}=this;c<o&&(i.weekNumber=this.weekNumber-1),i.weekday=o}else i.weekday=1;if(l==="quarters"){const o=Math.ceil(this.month/3);i.month=(o-1)*3+1}return this.set(i)}endOf(e,a){return this.isValid?this.plus({[e]:1}).startOf(e,a).minus(1):this}toFormat(e,a={}){return this.isValid?ir.create(this.loc.redefaultToEN(a)).formatDateTimeFromString(this,e):L3}toLocaleString(e=Bf,a={}){return this.isValid?ir.create(this.loc.clone(a),e).formatDateTime(this):L3}toLocaleParts(e={}){return this.isValid?ir.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:a=!1,suppressMilliseconds:i=!1,includeOffset:l=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const c=e==="extended";let h=_3(this,c);return h+="T",h+=mS(this,c,a,i,l,o),h}toISODate({format:e="extended"}={}){return this.isValid?_3(this,e==="extended"):null}toISOWeekDate(){return pf(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:a=!1,includeOffset:i=!0,includePrefix:l=!1,extendedZone:o=!1,format:c="extended"}={}){return this.isValid?(l?"T":"")+mS(this,c==="extended",a,e,i,o):null}toRFC2822(){return pf(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return pf(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?_3(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:a=!1,includeOffsetSpace:i=!0}={}){let l="HH:mm:ss.SSS";return(a||e)&&(i&&(l+=" "),a?l+="z":e&&(l+="ZZ")),pf(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():L3}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const a={...this.c};return e.includeConfig&&(a.outputCalendar=this.outputCalendar,a.numberingSystem=this.loc.numberingSystem,a.locale=this.loc.locale),a}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,a="milliseconds",i={}){if(!this.isValid||!e.isValid)return xt.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=Aq(a).map(xt.normalizeUnit),c=e.valueOf()>this.valueOf(),h=c?this:e,f=c?e:this,m=Tz(h,f,o,l);return c?m.negate():m}diffNow(e="milliseconds",a={}){return this.diff(Qe.now(),e,a)}until(e){return this.isValid?dn.fromDateTimes(this,e):this}hasSame(e,a,i){if(!this.isValid)return!1;const l=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(a,i)<=l&&l<=o.endOf(a,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const a=e.base||Qe.fromObject({},{zone:this.zone}),i=e.padding?this<a?-e.padding:e.padding:0;let l=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(l=e.unit,o=void 0),vS(a,this.plus(i),{...e,numeric:"always",units:l,unit:o})}toRelativeCalendar(e={}){return this.isValid?vS(e.base||Qe.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Qe.isDateTime))throw new ar("min requires all arguments be DateTimes");return aS(e,a=>a.valueOf(),Math.min)}static max(...e){if(!e.every(Qe.isDateTime))throw new ar("max requires all arguments be DateTimes");return aS(e,a=>a.valueOf(),Math.max)}static fromFormatExplain(e,a,i={}){const{locale:l=null,numberingSystem:o=null}=i,c=Pt.fromOpts({locale:l,numberingSystem:o,defaultToEN:!0});return _w(c,e,a)}static fromStringExplain(e,a,i={}){return Qe.fromFormatExplain(e,a,i)}static buildFormatParser(e,a={}){const{locale:i=null,numberingSystem:l=null}=a,o=Pt.fromOpts({locale:i,numberingSystem:l,defaultToEN:!0});return new jw(o,e)}static fromFormatParser(e,a,i={}){if(Ke(e)||Ke(a))throw new ar("fromFormatParser requires an input string and a format parser");const{locale:l=null,numberingSystem:o=null}=i,c=Pt.fromOpts({locale:l,numberingSystem:o,defaultToEN:!0});if(!c.equals(a.locale))throw new ar(`fromFormatParser called with a locale of ${c}, but the format parser was created for ${a.locale}`);const{result:h,zone:f,specificOffset:m,invalidReason:v}=a.explainFromTokens(e);return v?Qe.invalid(v):ws(h,f,i,`format ${a.format}`,e,m)}static get DATE_SHORT(){return Bf}static get DATE_MED(){return PA}static get DATE_MED_WITH_WEEKDAY(){return QU}static get DATE_FULL(){return HA}static get DATE_HUGE(){return BA}static get TIME_SIMPLE(){return FA}static get TIME_WITH_SECONDS(){return VA}static get TIME_WITH_SHORT_OFFSET(){return GA}static get TIME_WITH_LONG_OFFSET(){return ZA}static get TIME_24_SIMPLE(){return WA}static get TIME_24_WITH_SECONDS(){return YA}static get TIME_24_WITH_SHORT_OFFSET(){return QA}static get TIME_24_WITH_LONG_OFFSET(){return KA}static get DATETIME_SHORT(){return JA}static get DATETIME_SHORT_WITH_SECONDS(){return XA}static get DATETIME_MED(){return $A}static get DATETIME_MED_WITH_SECONDS(){return ew}static get DATETIME_MED_WITH_WEEKDAY(){return KU}static get DATETIME_FULL(){return tw}static get DATETIME_FULL_WITH_SECONDS(){return nw}static get DATETIME_HUGE(){return rw}static get DATETIME_HUGE_WITH_SECONDS(){return aw}}function cu(t){if(Qe.isDateTime(t))return t;if(t&&t.valueOf&&$i(t.valueOf()))return Qe.fromJSDate(t);if(t&&typeof t=="object")return Qe.fromObject(t);throw new ar(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function Wz(t,e,a){return[...t].sort((i,l)=>{const o=qp(e,i),c=qp(e,l);if(typeof o=="number"&&typeof c=="number")return(o-c)*(a?-1:1);const h=o?o.toString():"",f=c?c.toString():"";return h.length===0?a?-1:1:f.length===0?a?1:-1:h.localeCompare(f)*(a?-1:1)})}function qp(t,e){if(t.endsWith("_date"))return e[t]||Number.MAX_SAFE_INTEGER;const a=e[t];return Qe.isDateTime(a)?a.toUnixInteger():!ye(a)||t.indexOf("__")===-1?a:t.replace(/__/g,".").split(".").reduce((o,c)=>ye(o)?"":o[c],e)||""}const gf=10,Yz=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:12.4,viewBox:"0 0 24 12.4",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.2.8L12.5 11.5c-.1.1-.2.1-.2.2-.1 0-.2.1-.3.1s-.2 0-.3-.1c-.1 0-.2-.1-.2-.2L.8.8"})),Qz=g.forwardRef(Yz),Kz=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:12.4,viewBox:"0 0 24 12.4",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M.8 11.7L11.5 1c.1-.1.2-.1.2-.2.1 0 .2-.1.3-.1s.2 0 .3.1c.1 0 .2.1.2.2l10.7 10.7"})),Jz=g.forwardRef(Kz),Xz=({modelName:t,showNew:e,newLabel:a,columns:i,children:l,loading:o,actions:c,title:h,filters:f,rowLinkMapper:m,tableClassName:v,className:b="",hideTitle:S,onHover:A,actionHeader:w="",totalElements:R=null,showActionsAlways:k,displaySearch:D=!0,searchCallback:I,customSearch:B,entities:Y,searchAttributes:j,newEntityPath:F,newEntityFunc:Z,defaultSort:E,rowClassNameResolver:x,inputFocus:O=!1,busy:z=!1})=>{const[_,q]=g.useState(!ye(B)),[V,U]=g.useState(""),[M,P]=g.useState(E),[H,$]=g.useState(!1),[T,G]=g.useState(1),ee=g.useRef(),ne=Vn();g.useEffect(()=>{(D||O)&&ee&&ee.current&&ee.current.focus()},[D,O]);const ge=()=>{Z?Z():ne(F)},fe=(De,at,Tt)=>De.nonSortable?null:De.key===at?Tt?y.jsx(Qz,{}):y.jsx(Jz,{}):null,me=De=>{const at=De.target.value,Tt=V;U(at);const _e=Tt!==at;_e&&G(1),Vt(at,M,H,_e?1:T)},Pe=()=>{const De=!S&&f?"filters-with-title":`${t}-search-filters`;return y.jsxs("section",{className:"entities-search",children:[!S&&y.jsx("h3",{children:h||`${L.t(`${t}.title`)} (${(R||Y.length).toLocaleString()})`}),(o||S)&&y.jsx(Ar,{}),!ye(f)&&y.jsx("div",{className:`${De} search-filter`,children:f}),y.jsx("div",{className:`search ${e?"":"standalone"}`,children:(!ye(j)||B)&&y.jsx("div",{className:"sds--text-field sds--text-field--has-icon",children:y.jsx("div",{className:"sds--text-field--shape",children:y.jsxs("div",{className:"sds--text-field--input-and-icon",children:[y.jsx("input",{className:"sds--text-field--input",type:"search",ref:ee,onChange:me,value:V,placeholder:L.t(`${t}.searchPlaceHolder`)}),y.jsx("span",{className:"sds--text-field--icon",children:y.jsx(qA,{})})]})})})}),e&&y.jsx(yt,{onClick:ge,type:Rt.Secondary,className:`${S&&!f?"no-title":""}`,txt:a||L.t(`${t}.new`)})]})},Le=De=>{if(ye(De)||B)return Y;const at=De.toLowerCase();return Y.filter(Tt=>j.some(_e=>{const nt=qp(_e,Tt);return ye(nt)||typeof nt!="string"||nt.toLowerCase===void 0?!1:nt.toLowerCase().indexOf(at)>-1}))},tt=De=>{const at=M===De?!H:!1;P(De),$(at),Vt(V,De,at,T)},Vt=(De,at,Tt,_e)=>{if(B&&(B(De,at,Tt,_e-1),q(!1)),I){const nt=Le(V);I(nt)}},ot=(De,at)=>at.mapper?at.mapper(De):De[at.key],Et=(De,at)=>{typeof m=="function"&&m(De,at)},ct=(De,at)=>{const Tt=ye(x)?"":x(De);return y.jsx("tr",{className:`${typeof m=="function"?"clickable":""} ${A?"hoverable":""} ${Tt}`,children:i.map((_e,nt)=>y.jsx("td",{onClick:Ue=>_e.key!=="check"&&!_e.hasLink?Et(Ue,De):void 0,"data-label":typeof _e=="string"?_e.header:"",className:`${_e.key} ${_e.nonSortable?"":"sortable"} ${_e.className?_e.className:""}`,children:ot(De,_e)},`td_${_e.key}_${nt}`))},`tr_${De.id}_${at}`)},Ze=De=>{const at=!ye(De);B&&(ye(V)||V.trim().length<3);const Tt=De.length,_e=Math.min(T,Math.ceil(De.length/gf));return De=De.slice((_e-1)*gf,_e*gf),y.jsxs("section",{className:"entities-list",children:[c&&(k||at)&&y.jsx("div",{className:`actions-header ${w}`,children:c}),at&&y.jsx("div",{className:"sds--table",children:y.jsxs("table",{className:v||t,children:[y.jsx("thead",{children:y.jsx("tr",{children:i.map((nt,Ue)=>{const Ee=!c||Ue<1||nt.showHeader;return y.jsxs("th",{className:`${nt.key} ${nt.class||""} ${nt.nonSortable?"":"sortable"} ${Ee?"":"hide"}`,onClick:()=>!nt.nonSortable&&tt(nt.key),children:[nt.header,nt.toolTip&&y.jsx(ba,{tip:nt.toolTip}),fe(nt,M,H)]},`th_${nt.key}_${Ue}`)})})}),y.jsx("tbody",{children:De.map((nt,Ue)=>ct(nt,Ue))})]})}),y.jsx(tO,{currentPage:T,onChange:nt=>{G(nt),Vt(V,M,H,nt)},total:R||Tt,pageCount:gf})]})};if(o)return y.jsx(Ar,{});const Je=Le(V),_t=B?Je:Wz(Je,M,H);return y.jsxs("div",{className:`mod-entities ${b}`,children:[D&&Pe(),Ze(_t),y.jsx("div",{children:l})]})},$z=(t,e=!0)=>{if(ye(t))return"-";const a={month:"long",day:"numeric",year:"numeric"};return new Intl.DateTimeFormat(`${L.locale}-${L.locale.toUpperCase()}`,a).format(new Date(e?t*1e3:t))},eP=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:22.5,viewBox:"0 0 24 22.5",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M.8 11.2h22.5M12.8 21.8l10.5-10.5L12.8.8",fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Hw=g.forwardRef(eP),Ft={technical:"technical",informationProfile:"informationProfile",testIdP:"testIdP",overview:"overview"},wl={url:"url",file:"file",paste:"paste"},fu={authorization_code:"authorization_code",refresh_token:"refresh_token",device_code:"urn:ietf:params:oauth:grant-type:device_code"},vf={resetSecretDisclaimer:"resetSecretDisclaimer",resetSecret:"resetSecret"},bS=({application:t,connection:e,setConnection:a,initConnection:i,refresh:l,protocolOptions:o,arpInfo:c,profileOptions:h,identityProviders:f,isProduction:m})=>{const{setFlash:v,config:b}=It(ae=>ae),[S,A]=g.useState(!1),[w,R]=g.useState(Ft.technical),[k,D]=g.useState([]),[I,B]=g.useState({0:!1}),[Y,j]=g.useState({0:!1}),[F,Z]=g.useState(!1),[E,x]=g.useState(wl.url),[O,z]=g.useState(null),[_,q]=g.useState(null),[V,U]=g.useState(null),[M,P]=g.useState(!1),[H,$]=g.useState(!0),[T,G]=g.useState(!1),[ee,ne]=g.useState(!1),[ge,fe]=g.useState({}),me=g.useMemo(()=>t.connections.filter(ae=>m?ae.environment===ur.PROD:ae.environment===ur.TEST),[t,m]),Pe=g.useRef([]),Le=g.useRef([]),tt=ae=>{if(e.status===Sr.COMPLETE)return!1;const ce=k.includes(ae);switch(ae){case Ft.technical:return!e.id;case Ft.informationProfile:return!e.id||!ce||!Ze();case Ft.testIdP:return!e.id||!ce||!Je()}},Vt=ae=>!(w===Ft.technical?ct():w===Ft.informationProfile?Ze():Je())&&!(ae===w),ot=ae=>{ne(!0),nb(ae).then(ce=>{const oe=Sf(ce,o,h,c),Se=oe.name;oe.name="",oe.allowedEntities=oe.allowedEntities.filter(je=>f.some(St=>St.data.entityid===je)),oe.id=e.id,oe.environment=m?ur.PROD:ur.TEST,oe.status=Sr.OPEN,oe.protocol===Yi.OIDC10_RP&&(oe.entityID="",oe.secret=null),a(oe),ne(!1),v(L.t("connection.flash.copied",{name:Se}))})},Et=()=>{const ae=t.connections.filter(ce=>ce.name===e.name).length;return e.id?ae>1:ae===1},ct=()=>{const ae=e.protocol.value===Yi.OIDC10_RP;return!(M||ye(e.name)||ye(e.entityID)&&!ae||Et()||Object.values(I).some(ce=>ce)||Object.values(Y).some(ce=>ce)||ae&&(ye(e.grantTypes)||ye(e.redirectUrls.filter(ce=>!ye(ce.trim()))))||!ae&&ye(e.acsLocations.filter(ce=>!ye(ce.trim()))))},Ze=()=>!(c.profiles.find(ce=>ce.name===e.profile.value).requiresMotivation&&ye(e.profileMotivation)||Object.values(e.motivations).some(ce=>ye(ce))),Je=()=>!ye(e.allowedEntities),_t=ae=>{R(ae)},De=()=>{const ae=document.createElement("a");ae.href=L.t("connection.mailToSurf"),ae.style.display="none",document.body.appendChild(ae),ae.click(),document.body.removeChild(ae)},at=()=>{U(null),Z(!1),z(null),q(null),x(wl.url)},Tt=(ae,ce)=>{let oe=e.grantTypes;ce?oe.push(ae):oe=oe.filter(Se=>Se!==ae),a({...e,grantTypes:oe})},_e=ae=>{Sa(ae),a({...e,redirectUrls:[...e.redirectUrls,""]}),We()},nt=ae=>{const ce=[...e.redirectUrls];ce.splice(ae,1),a({...e,redirectUrls:ce})},Ue=(ae,ce)=>{const oe=[...e.redirectUrls];oe[ce]=ae.target.value,a({...e,redirectUrls:oe}),B({...I,[ce.toString()]:!1})},Ee=(ae,ce)=>{const oe=ae.target.value,Se=Ru(oe.trim());return B({...I,[ce.toString()]:!Se}),!0},We=()=>{setTimeout(()=>{var ae;return(ae=Le.current[e.acsLocations.length])==null?void 0:ae.focus()},675)},Be=ae=>{Sa(ae),a({...e,acsLocations:[...e.acsLocations,""]}),ht()},ft=ae=>{const ce=[...e.acsLocations];ce.splice(ae,1),a({...e,acsLocations:ce})},ht=()=>{setTimeout(()=>{var ae;return(ae=Le.current[e.acsLocations.length])==null?void 0:ae.focus()},675)},Kt=(ae,ce)=>{const oe=[...e.acsLocations];oe[ce]=ae.target.value,a({...e,acsLocations:oe}),j({...Y,[ce.toString()]:!1})},Ut=(ae,ce)=>{const oe=ae.target.value,Se=Ru(oe.trim());return j({...Y,[ce.toString()]:!Se}),!0},Nn=()=>{(E===wl.url?bN(_):yN(O)).then(ce=>{Z(!1);const oe={...e,...ce[0]};a(oe),at(),v(L.t("connection.metadata.parsed"))}).catch(()=>{v(L.t("connection.metadata.errorParsed"),"error")})},er=ae=>{const ce=ae.target.files;if(!ye(ce)){const oe=ce[0],Se=new FileReader;Se.onload=()=>{const je=Se.result.toString();z(je),U(oe.name)},Se.readAsText(oe)}},Gn=ae=>{ae.value===Yi.OIDC10_RP?a({...e,protocol:ae,grantTypes:["authorization_code"],pkce:!1,entityID:"",redirectUrls:[""],acsLocations:null}):a({...e,protocol:ae,grantTypes:null,pkce:!1,entityID:"",redirectUrls:null,acsLocations:[""]})},un=ae=>{ae?fe({open:!0,cancel:()=>fe({open:!1}),header:L.t("forms.delete"),question:L.t("connection.deleteConfirmation"),action:()=>un(!1),modal:null,okButton:L.t("forms.delete")}):(ne(!0),TN(e.id).then(()=>{l(),fe({open:!1}),ne(!1),v(L.t("connection.flash.deleted",{name:e.name}))}))},Mt=(ae,ce)=>{Sa(ae),ce?fe({open:!0,question:null,header:L.t("connection.connectionOverview.secretResetTitle"),cancel:()=>fe({open:!1}),action:()=>Mt(null,!1),modal:vf.resetSecretDisclaimer,okButton:L.t("connection.connectionOverview.reset")}):(ne(!0),xN(e.id).then(oe=>{a({...e,secret:oe.secret}),fe({open:!0,header:L.t("connection.connectionOverview.secretResetNew"),cancel:null,question:null,action:()=>fe({open:!1}),modal:vf.resetSecret,okButton:L.t("connection.connectionOverview.resetContinue")}),ne(!1)}))},it=ae=>{SN(e.environment,ae.target.value).then(ce=>{const oe=e.status===Sr.COMPLETE&&ce.length>1||e.status===Sr.OPEN&&ce.length>0;P(oe)})},vn=()=>y.jsxs("section",{className:"inner-right",children:[y.jsx("h3",{children:L.t("connection.technical")}),y.jsx(hn,{value:e.name||"",onChange:ae=>a({...e,name:ae.target.value}),name:L.t("connection.connectionName"),required:!0,placeholder:L.t("connection.connectionPlaceholder",{application:t.name,environment:e.environment.toUpperCase()})}),!H&&ye(e.name)&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.connectionName")}),adjustMargin:!0}),Et()&&y.jsx(Sn,{msg:L.t("connection.duplicatedName",{name:e.name}),adjustMargin:!0}),y.jsx(Os,{name:L.t("connection.protocol"),value:e.protocol,options:o,onChange:Gn}),e.protocol.value===Yi.OIDC10_RP&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("span",{className:"label",children:L.t("connection.grantTypes")}),y.jsxs("div",{className:"grant-types",children:[Object.keys(fu).map(ae=>y.jsxs(g.Fragment,{children:[y.jsxs("section",{className:"grant-type",children:[y.jsx("span",{children:L.t(`connection.${ae}`)}),y.jsx(E0,{name:ae,value:e.grantTypes.includes(fu[ae]),onChange:ce=>Tt(fu[ae],ce)})]}),ae===fu.authorization_code&&e.grantTypes.includes(fu[ae])&&y.jsxs("section",{className:"grant-type pkce",children:[y.jsx("span",{className:"pkce-label",children:L.t("connection.pkce")}),y.jsx(ba,{tip:L.t("connection.pkceTooltip")}),y.jsx(Df,{name:"pkce",value:e.pkce,trueLabel:L.t("connection.required"),falseLabel:L.t("connection.optional"),onChange:()=>a({...e,pkce:!e.pkce})})]},"pkce")]},ae)),!H&&ye(e.grantTypes)&&y.jsx(Sn,{msg:L.t("forms.requiredOne",{name:L.t("connection.grantType")}),adjustMargin:!0})]})]}),y.jsxs("div",{className:"redirect-urls-container",children:[y.jsx("span",{className:"label",children:L.t("connection.redirectUrls")}),y.jsx("div",{className:"redirect-urls",children:e.redirectUrls.map((ae,ce)=>y.jsxs("div",{className:"redirect-url",children:[y.jsxs("div",{className:"redirect-url-inner",children:[y.jsx(hn,{value:ae,onChange:oe=>Ue(oe,ce),onBlur:oe=>Ee(oe,ce),onRef:oe=>Pe.current[ce]=oe}),y.jsx(yt,{type:Rt.Delete,onClick:()=>nt(ce)})]}),I[ce.toString()]&&y.jsx(Sn,{msg:L.t("forms.invalidURL",{name:L.t("connection.redirectUrl")})})]},ce))}),y.jsx(ba,{tip:L.t("connection.sslGradeTooltip"),standalone:!0,children:y.jsx("a",{href:"/add",className:"add-link",onClick:ae=>_e(ae),children:L.t("connection.addRedirectUrl")})})]}),!H&&ye(e.redirectUrls.filter(ae=>!ye(ae.trim())))&&y.jsx(Sn,{msg:L.t("forms.requiredOne",{name:L.t("connection.redirectUrl")}),adjustMargin:!0}),e.status===Sr.COMPLETE&&y.jsxs("div",{className:"oidc-authentication",children:[y.jsx("h3",{children:L.t("connection.connectionOverview.authentication")}),y.jsxs("div",{className:"oidc-authentication-inner",children:[y.jsx(hn,{name:L.t("connection.connectionOverview.discovery"),value:b.discovery,disabled:!0,copyClipBoard:!0}),y.jsx(hn,{name:L.t("connection.connectionOverview.clientID"),value:e.entityID,disabled:!0,copyClipBoard:!0}),y.jsxs("div",{className:"input-field sds--text-field secret-link",children:[y.jsx("span",{className:"label",children:L.t("connection.connectionOverview.secret")}),y.jsx("span",{children:L.t("connection.connectionOverview.secretReset")}),y.jsx("a",{href:"/",onClick:ae=>Mt(ae,!0),children:L.t("connection.connectionOverview.secretResetLink")})]})]})]})]}),e.protocol.value===Yi.SAML20_SP&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"import-metadata",children:[y.jsx("h2",{children:L.t("connection.configuration")}),!F&&y.jsx(yt,{txt:L.t("connection.import"),type:Rt.Secondary,onClick:()=>Z(!0)})]}),F&&y.jsxs("div",{className:"show-import",children:[y.jsxs("div",{className:"show-import-header",children:[y.jsx("p",{children:L.t("connection.metadata.how")}),y.jsx(FL,{onClick:()=>Z(!1)})]}),y.jsx(Df,{name:"how",value:E,onChange:ae=>x(ae.target.id.replace("how_","")),isMultiple:!0,labels:Object.values(wl),labelResolver:ae=>L.t(`connection.metadata.${ae}`),orientation:Mf.column}),E===wl.url&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"label top",children:L.t("connection.metadata.urlMetaData")}),y.jsxs("div",{className:"meta-data-url",children:[y.jsx(hn,{value:_,onChange:ae=>q(ae.target.value)}),y.jsx(yt,{txt:L.t("connection.metadata.import"),onClick:()=>Nn(),type:jf.test(_)?Rt.Primary:Rt.Secondary,disabled:!jf.test(_)})]})]}),E===wl.file&&y.jsxs("div",{className:"meta-data-file",children:[V&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"file-name-section",children:[y.jsx("span",{children:V}),y.jsx(yt,{type:Rt.Delete,onClick:()=>U(null)})]}),y.jsx(yt,{txt:L.t("connection.metadata.import"),onClick:()=>Nn(),type:Rt.Primary,disabled:!1})]}),!V&&y.jsx(AU,{name:"meta-date-file",acceptFileFormat:".xml",txt:L.t("connection.metadata.chooseFile"),onFileUpload:er})]}),E===wl.paste&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"label top",children:L.t("connection.metadata.doPaste")}),y.jsxs("div",{className:"meta-data-url",children:[y.jsx(hn,{value:O,multiline:!0,onChange:ae=>z(ae.target.value)}),y.jsx(yt,{txt:L.t("connection.metadata.import"),onClick:()=>Nn(),type:ye(O)?Rt.Secondary:Rt.Primary,disabled:ye(O)})]})]})]}),y.jsx(hn,{value:e.entityID||"",onChange:ae=>{a({...e,entityID:ae.target.value}),P(!1)},name:L.t("connection.entityID"),required:!0,onBlur:ae=>it(ae),placeholder:L.t("connection.entityIDPlaceHolder")}),!H&&ye(e.entityID)&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.entityID")}),adjustMargin:!0}),M&&y.jsx(Sn,{msg:L.t("connection.duplicateEntityID",{entityID:e.entityID}),adjustMargin:!0}),y.jsxs("div",{className:"acs-locations-container",children:[y.jsx("span",{className:"label",children:L.t("connection.acsLocations")}),y.jsx("div",{className:"acs-locations",children:e.acsLocations.map((ae,ce)=>y.jsxs("div",{className:"acs-location",children:[y.jsxs("div",{className:"acs-location-inner",children:[y.jsx(hn,{value:ae,onChange:oe=>Kt(oe,ce),onBlur:oe=>Ut(oe,ce),onRef:oe=>Le.current[ce]=oe}),y.jsx(yt,{type:Rt.Delete,onClick:()=>ft(ce)})]},ce),Y[ce.toString()]&&y.jsx(Sn,{msg:L.t("forms.invalidURL",{name:L.t("connection.acsLocation")})})]},ce))}),y.jsx(ba,{tip:L.t("connection.sslGradeTooltip"),standalone:!0,children:y.jsx("a",{href:"/add",className:"add-link",onClick:ae=>Be(ae),children:L.t("connection.addACSLocation")})})]}),!H&&ye(e.acsLocations.filter(ae=>!ye(ae.trim())))&&y.jsx(Sn,{msg:L.t("forms.requiredOne",{name:L.t("connection.acsLocation")}),adjustMargin:!0})]})]}),Ln=(ae,ce)=>{const oe=ce.target.checked,Se=e.allowedEntities||[];a(oe?{...e,allowedEntities:[...Se,ae.entityid]}:{...e,allowedEntities:[...Se.filter(je=>je!==ae.entityid)]})},hr=ae=>{const ce=L.translations[L.locale].connection.testIdPs.identityProviders,oe=e.allowedEntities||[],Se=ce.map(je=>je.entityid).filter(je=>oe.includes(je));a({...e,allowedEntities:ae.map(je=>je.value).concat(Se)})},Zn=()=>{const ae=L.translations[L.locale].connection.testIdPs.identityProviders,ce=e.allowedEntities||[],oe=ae.map(Se=>Se.entityid);return y.jsxs("section",{className:"inner-right-idp",children:[y.jsx("h3",{children:L.t("connection.testIdP")}),y.jsx("p",{children:L.t("connection.testIdPs.info")}),y.jsx("h3",{children:L.t("connection.testIdPs.subTitle")}),y.jsx("section",{className:"identity-providers",children:ae.map((Se,je)=>y.jsxs("div",{className:"idp",children:[y.jsx(FS,{name:Se.name,value:ce.includes(Se.entityid),onChange:St=>Ln(Se,St)}),y.jsxs("div",{className:"idp-info",children:[y.jsx("p",{dangerouslySetInnerHTML:{__html:Se.name}}),y.jsx("p",{dangerouslySetInnerHTML:{__html:Se.description}})]})]},je))}),y.jsx("h3",{children:L.t("connection.testIdPs.institutionIdPs")}),y.jsx("p",{dangerouslySetInnerHTML:{__html:Er.sanitize(L.t("connection.testIdPs.institutionIdPsInfo"))}}),y.jsx(Os,{options:PL(f.filter(Se=>!ce.includes(Se.data.entityid)),L.locale),value:ce.filter(Se=>!oe.includes(Se)).map(Se=>zL(f,Se,L.locale)),isMulti:!0,searchable:!0,placeholder:L.t("connection.testIdPs.placeholder"),onChange:Se=>hr(Se)}),!H&&ye(e.allowedEntities)&&y.jsx(Sn,{msg:L.t("forms.requiredOne",{name:L.t("connection.testIdPs.institution")})})]})},En=ae=>({value:ae[0],label:ae[1]}),kn=()=>{const ae=Object.entries(L.translations[L.locale].connection.visibilities.options),ce=e.visibility?En(ae.find(oe=>oe[0]===e.visibility)):En(ae[0]);return y.jsxs("section",{className:"inner-right-idp",children:[y.jsx("h3",{children:L.t("connection.visibility")}),y.jsx("p",{children:L.t("connection.visibilities.info")}),y.jsx("p",{dangerouslySetInnerHTML:{__html:Er.sanitize(L.t("connection.visibilities.disclaimer"))}}),y.jsx(Os,{options:ae.filter(oe=>oe[0]!==e.visibility).map(En),value:ce,onChange:oe=>a({...e,visibility:oe.value})})]})},bt=()=>y.jsxs("section",{className:"inner-right-overview",children:[y.jsx("h3",{children:L.t("connection.connectionOverview.copy")}),y.jsx(va,{alertType:Fn.Warning,asChild:!0,message:L.t("connection.connectionOverview.disclaimer")}),y.jsx("p",{className:"test",dangerouslySetInnerHTML:{__html:Er.sanitize(L.t("connection.connectionOverview.test",{ADD_ATTR:["target"]}))}}),y.jsx(hn,{name:L.t("connection.connectionOverview.discovery"),value:b.discovery,disabled:!0,copyClipBoard:!0}),y.jsx(hn,{name:L.t("connection.connectionOverview.clientID"),value:e.entityID,disabled:!0,copyClipBoard:!0}),y.jsx(hn,{name:L.t("connection.connectionOverview.secret"),value:e.secret,disabled:!0,copyClipBoard:!0})]}),Wn=ae=>{a({...e,motivations:[],additionalAttributes:[]}),G(ae)},lr=(ae,ce)=>{const oe=e.additionalAttributes||[];a(ce?{...e,additionalAttributes:[...oe,ae]}:{...e,additionalAttributes:[...oe.filter(Se=>Se!==ae)]})},Xe=(ae,ce)=>{const Se={...e.motivations};Se[ce]=ae.target.value,a({...e,motivations:Se})},Yt=ae=>{a({...e,profile:ae,profileMotivation:""})},Ne=()=>{var je;const ae=((je=e.profile)==null?void 0:je.value)||c.profiles[0].name,ce=L.translations[L.locale].connection.informational.profiles[ae].info,oe=c.profiles.find(St=>St.name===ae),Se=t.type==="CONTENT";return y.jsxs("section",{className:"inner-right-informational",children:[y.jsx("h3",{children:L.t("connection.informationProfile")}),Se&&y.jsx(va,{alertType:Fn.Warning,asChild:!0,message:L.t("connection.informational.contentAppAlert")}),!Se&&y.jsx("p",{className:"disclaimer",dangerouslySetInnerHTML:{__html:Er.sanitize(L.t("connection.informational.disclaimer"))}}),y.jsx(Os,{name:L.t("connection.informationProfile"),options:h,disabled:Se,value:e.profile,onChange:Yt}),!ye(ce)&&y.jsx("p",{className:"profile-info",children:ce}),y.jsx("p",{className:"attributes",dangerouslySetInnerHTML:{__html:Er.sanitize(L.t("connection.informational.attributes"))}}),y.jsx("div",{className:"attributes",children:oe.attributes.map((St,et)=>y.jsxs(g.Fragment,{children:[y.jsx("span",{children:St}),y.jsx("span",{children:c.attributes.find(st=>st.name===St).example})]},et))}),oe.requiresMotivation&&y.jsxs("div",{className:"profile=motivation",children:[y.jsx(hn,{value:e.profileMotivation,name:L.t("connection.informational.profileMotivation"),placeholder:L.t("connection.informational.profileMotivationPlaceholder"),onChange:St=>a({...e,profileMotivation:St.target.value}),multiline:!0}),!H&&ye(e.profileMotivation)&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.informational.motivation")})}),y.jsx("p",{className:"profile-info",children:L.t("connection.informational.profileMotivationDisclaimer")})]}),!ye(oe.optionalAttributes)&&t.type!=="CONTENT"&&y.jsxs(y.Fragment,{children:[y.jsxs("section",{className:"additional-attributes",children:[y.jsx("span",{children:L.t("connection.informational.additionalAttributes")}),y.jsx(E0,{name:"additionalAttributes",value:T||!ye(e.additionalAttributes),onChange:Wn})]}),(T||!ye(e.additionalAttributes))&&y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"available-attributes",children:L.t("connection.informational.availableAttributes")}),oe.optionalAttributes.map((St,et)=>{const st=e.additionalAttributes.includes(St);return y.jsxs("div",{className:`additional-attributes optional ${st?"":"dormant"}`,children:[y.jsxs("section",{className:"optional-attribute",children:[y.jsxs("div",{className:"additional-attribute-info",children:[y.jsx("span",{children:St}),y.jsx("span",{children:c.attributes.find(Ce=>Ce.name===St).info[L.locale]})]}),y.jsx(E0,{name:`extraAttribute_${et}`,value:st,onChange:Ce=>lr(St,Ce)})]}),st&&y.jsx(hn,{value:e.motivations[St],name:L.t("connection.informational.motivation"),placeholder:L.t("connection.informational.motivationPlaceholder"),onChange:Ce=>Xe(Ce,St),multiline:!0}),!H&&st&&ye(e.motivations[St])&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.informational.motivation")})})]},et)})]})]})]})},$e=()=>{switch(w){case Ft.technical:return vn();case Ft.informationProfile:return Ne();case Ft.testIdP:return m?kn():Zn();case Ft.overview:return bt()}},mt=()=>{if(H)return!1;switch(w){case Ft.technical:return!ct();case Ft.informationProfile:return!Ze();case Ft.testIdP:return!Je()}},$t=(ae=!1)=>{$(!1);const ce=e.protocol.value===Yi.OIDC10_RP,oe=e.status===Sr.COMPLETE,Se=oe?w:w===Ft.technical?Ft.informationProfile:w===Ft.informationProfile?Ft.testIdP:w===Ft.testIdP&&ce&&!oe?Ft.overview:Ft.testIdP;if(w===Ft.technical&&ct()||w===Ft.informationProfile&&Ze()||w===Ft.testIdP&&Je()){ne(!0);const St=e.id?CN:wN,et=JN(t,e,c);ae&&!oe&&(ce&&(et.metaData.entityID=XN()),et.status=Sr.COMPLETE),St(et).then(st=>{D([...k,w]),ne(!1),$(!0),v(L.t(`connection.flash.${e.id?"updated":"created"}`,{name:e.name})),a(Sf(st,o,h,c)),_t(Se)}).catch(()=>{ne(!1),v(L.t("forms.error"),"error")})}},ve=()=>{l(),R(Ft.technical)},xe=()=>{const ae=e.protocol.value===Yi.OIDC10_RP,ce=w===Ft.testIdP,oe=!mt(),Se=e.status===Sr.COMPLETE,je=w===Ft.overview,St=Se||ce&&!ae?L.t("connection.save"):L.t("connection.saveAndNext"),{open:et,cancel:st,action:Ce,modal:Q,okButton:pe,question:Ae,header:Me}=ge;return y.jsxs(y.Fragment,{children:[et&&y.jsx(s1,{confirm:Ce,cancel:st,confirmationHeader:Me,confirmationTxt:pe,question:Ae,children:Q===vf.resetSecretDisclaimer?y.jsx(va,{alertType:Fn.Error,asChild:!0,message:L.t("connection.connectionOverview.secretResetDisclaimer")}):Q===vf.resetSecret?y.jsxs("div",{children:[y.jsx(va,{alertType:Fn.Warning,asChild:!0,message:L.t("connection.connectionOverview.disclaimer")}),y.jsx(hn,{name:L.t("connection.connectionOverview.secret"),value:e.secret,disabled:!0,copyClipBoard:!0})]}):null}),y.jsxs("div",{className:"testing-header",children:[y.jsx("h2",{children:L.t(`connection.${Se?"existing":"new"}Connection${m?"Prod":""}`)}),!ye(t.connections)&&(t.connections.length>1||ye(e.id)&&t.connections.length===1)&&y.jsxs("div",{className:"copy-connection",tabIndex:1,onBlur:()=>setTimeout(()=>A(!1),475),children:[y.jsx(yt,{onClick:()=>A(!S),txt:L.t("connection.copyConnection"),icon:y.jsx(y4,{}),type:Rt.Secondary}),S&&y.jsx("section",{className:"copy-connection-section sds--user-info--dropdown",children:t.connections.filter(He=>He.id&&He.name!==e.name).map((He,Ct)=>y.jsx("span",{onClick:()=>ot(He.id),children:He.name},Ct))})]})]}),y.jsxs("div",{className:"testing",children:[y.jsxs("section",{className:"left",children:[y.jsx("div",{className:"status-menu",children:Object.values(Ft).filter(He=>He!==Ft.overview).map(He=>y.jsx(YE,{pending:tt(He),disabled:Vt(He),action:()=>_t(He),info:L.t(`connection.${He!==Ft.testIdP||!m?He:"visibility"}`),active:w===He},He))}),y.jsxs("div",{className:"call-for-action",children:[y.jsx("p",{children:L.t("connection.help")}),y.jsx(yt,{txt:L.t("connection.callSurf"),type:Rt.Secondary,onClick:()=>De()})]}),y.jsx("div",{className:"delete-connection",children:y.jsx(yt,{type:Rt.Delete,onClick:()=>un(!0)})})]}),y.jsxs("section",{className:"right",children:[$e(),y.jsxs("div",{className:`actions ${je?"orphan":""}`,children:[!je&&y.jsxs(y.Fragment,{children:[y.jsx(yt,{txt:L.t(`forms.${e.id?"backToConnections":"cancel"}`),type:Rt.Secondary,onClick:ve}),y.jsx(yt,{txt:St,disabled:!oe,onClick:()=>$t(ce)})]}),je&&y.jsx(yt,{txt:L.t("forms.overview"),type:Rt.Secondary,icon:y.jsx(Hw,{}),onClick:()=>ve()})]})]})]})]})},Re=ae=>{ae.status===Sr.COMPLETE?(ne(!0),nb(ae.id).then(ce=>{const oe=Sf(ce,o,h,c);a(oe),ne(!1)})):a(ae)},At=ae=>{const ce=[{key:"name",header:L.t("connection.connections.name"),mapper:oe=>oe.name},{key:"createdAt",header:L.t("connection.connections.created"),mapper:oe=>$z(oe.createdAt)},{key:"status",header:L.t("connection.connections.status"),mapper:oe=>{const Se=oe.status==="OPEN"?ep.Status_warning:ep.Support_400;return y.jsx(YT,{type:Se,label:L.t(`connection.connections.${oe.status.toLowerCase()}`)})}},{key:"buttons",header:"",mapper:oe=>{if(!m)return null;if(t.signedContract&&oe.status===Sr.COMPLETE)return y.jsx(yt,{txt:L.t("connection.connections.requestProductionStatus"),type:Rt.GhostDark,onClick:()=>alert("TODO"),className:"sds--button-blue-mode"})}},{key:"protocol",header:L.t("connection.connections.protocol"),mapper:oe=>L.t(`connection.${oe.protocol.value.toLowerCase()}`)},{key:"details",header:"",nonSortable:!0,mapper:oe=>y.jsx(yt,{txt:L.t("connection.connections.details"),onClick:()=>Re(oe)})}];return y.jsx(Xz,{entities:ae,modelName:"table-connections",defaultSort:"name",columns:ce,hideTitle:!0,showNew:!1,displaySearch:!1,searchAttributes:["name","protocol"],inputFocus:!0})},en=()=>y.jsxs("div",{className:"connections",children:[y.jsxs("div",{className:"header",children:[y.jsx("h3",{children:L.t("connection.test.connections")}),y.jsx(yt,{txt:L.t("testing.newConnection"),type:Rt.Secondary,onClick:()=>i(m?ur.PROD:ur.TEST,!0)})]}),!ye(me)&&At(me),ye(me)&&y.jsx("p",{dangerouslySetInnerHTML:{__html:Er.sanitize(L.t("testing.zeroState",{name:t.name,type:L.t(`testing.${m?"production":"test"}`)}))}})]});if(ee)return y.jsx(Ar,{});const An=(ye(me)||(e==null?void 0:e.new)||(e==null?void 0:e.id))&&!ye(e);return y.jsx("div",{className:"testing-container",children:An?xe():en()})};function SS(t,e){return ye(t)||t.startsWith("http")||t.startsWith("data:image")?t:`data:image/${e};base64,${t}`}var tP=Object.defineProperty,nP=(t,e,a)=>e in t?tP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,rn=(t,e,a)=>nP(t,typeof e!="symbol"?e+"":e,a);const Zf={x:0,y:0,width:0,height:0,unit:"px"},Cs=(t,e,a)=>Math.min(Math.max(t,e),a),rP=(...t)=>t.filter(e=>e&&typeof e=="string").join(" "),ES=(t,e)=>t===e||t.width===e.width&&t.height===e.height&&t.x===e.x&&t.y===e.y&&t.unit===e.unit;function aP(t,e,a,i){const l=qa(t,a,i);return t.width&&(l.height=l.width/e),t.height&&(l.width=l.height*e),l.y+l.height>i&&(l.height=i-l.y,l.width=l.height*e),l.x+l.width>a&&(l.width=a-l.x,l.height=l.width/e),t.unit==="%"?Ji(l,a,i):l}function iP(t,e,a){const i=qa(t,e,a);return i.x=(e-i.width)/2,i.y=(a-i.height)/2,t.unit==="%"?Ji(i,e,a):i}function Ji(t,e,a){return t.unit==="%"?{...Zf,...t,unit:"%"}:{unit:"%",x:t.x?t.x/e*100:0,y:t.y?t.y/a*100:0,width:t.width?t.width/e*100:0,height:t.height?t.height/a*100:0}}function qa(t,e,a){return t.unit?t.unit==="px"?{...Zf,...t,unit:"px"}:{unit:"px",x:t.x?t.x*e/100:0,y:t.y?t.y*a/100:0,width:t.width?t.width*e/100:0,height:t.height?t.height*a/100:0}:{...Zf,...t,unit:"px"}}function AS(t,e,a,i,l,o=0,c=0,h=i,f=l){const m={...t};let v=Math.min(o,i),b=Math.min(c,l),S=Math.min(h,i),A=Math.min(f,l);e&&(e>1?(v=c?c*e:v,b=v/e,S=h*e):(b=o?o/e:b,v=b*e,A=f/e)),m.y<0&&(m.height=Math.max(m.height+m.y,b),m.y=0),m.x<0&&(m.width=Math.max(m.width+m.x,v),m.x=0);const w=i-(m.x+m.width);w<0&&(m.x=Math.min(m.x,i-v),m.width+=w);const R=l-(m.y+m.height);if(R<0&&(m.y=Math.min(m.y,l-b),m.height+=R),m.width<v&&((a==="sw"||a=="nw")&&(m.x-=v-m.width),m.width=v),m.height<b&&((a==="nw"||a=="ne")&&(m.y-=b-m.height),m.height=b),m.width>S&&((a==="sw"||a=="nw")&&(m.x-=S-m.width),m.width=S),m.height>A&&((a==="nw"||a=="ne")&&(m.y-=A-m.height),m.height=A),e){const k=m.width/m.height;if(k<e){const D=Math.max(m.width/e,b);(a==="nw"||a=="ne")&&(m.y-=D-m.height),m.height=D}else if(k>e){const D=Math.max(m.height*e,v);(a==="sw"||a=="nw")&&(m.x-=D-m.width),m.width=D}}return m}function lP(t,e,a,i){const l={...t};return e==="ArrowLeft"?i==="nw"?(l.x-=a,l.y-=a,l.width+=a,l.height+=a):i==="w"?(l.x-=a,l.width+=a):i==="sw"?(l.x-=a,l.width+=a,l.height+=a):i==="ne"?(l.y+=a,l.width-=a,l.height-=a):i==="e"?l.width-=a:i==="se"&&(l.width-=a,l.height-=a):e==="ArrowRight"&&(i==="nw"?(l.x+=a,l.y+=a,l.width-=a,l.height-=a):i==="w"?(l.x+=a,l.width-=a):i==="sw"?(l.x+=a,l.width-=a,l.height-=a):i==="ne"?(l.y-=a,l.width+=a,l.height+=a):i==="e"?l.width+=a:i==="se"&&(l.width+=a,l.height+=a)),e==="ArrowUp"?i==="nw"?(l.x-=a,l.y-=a,l.width+=a,l.height+=a):i==="n"?(l.y-=a,l.height+=a):i==="ne"?(l.y-=a,l.width+=a,l.height+=a):i==="sw"?(l.x+=a,l.width-=a,l.height-=a):i==="s"?l.height-=a:i==="se"&&(l.width-=a,l.height-=a):e==="ArrowDown"&&(i==="nw"?(l.x+=a,l.y+=a,l.width-=a,l.height-=a):i==="n"?(l.y+=a,l.height-=a):i==="ne"?(l.y+=a,l.width-=a,l.height-=a):i==="sw"?(l.x-=a,l.width+=a,l.height+=a):i==="s"?l.height+=a:i==="se"&&(l.width+=a,l.height+=a)),l}const xs={capture:!0,passive:!1};let sP=0;const Qi=class pa extends g.PureComponent{constructor(){super(...arguments),rn(this,"docMoveBound",!1),rn(this,"mouseDownOnCrop",!1),rn(this,"dragStarted",!1),rn(this,"evData",{startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0}),rn(this,"componentRef",g.createRef()),rn(this,"mediaRef",g.createRef()),rn(this,"resizeObserver"),rn(this,"initChangeCalled",!1),rn(this,"instanceId",`rc-${sP++}`),rn(this,"state",{cropIsActive:!1,newCropIsBeingDrawn:!1}),rn(this,"onCropPointerDown",e=>{const{crop:a,disabled:i}=this.props,l=this.getBox();if(!a)return;const o=qa(a,l.width,l.height);if(i)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const c=e.target.dataset.ord,h=!!c;let f=e.clientX,m=e.clientY,v=o.x,b=o.y;if(c){const S=e.clientX-l.x,A=e.clientY-l.y;let w=0,R=0;c==="ne"||c=="e"?(w=S-(o.x+o.width),R=A-o.y,v=o.x,b=o.y+o.height):c==="se"||c==="s"?(w=S-(o.x+o.width),R=A-(o.y+o.height),v=o.x,b=o.y):c==="sw"||c=="w"?(w=S-o.x,R=A-(o.y+o.height),v=o.x+o.width,b=o.y):(c==="nw"||c=="n")&&(w=S-o.x,R=A-o.y,v=o.x+o.width,b=o.y+o.height),f=v+l.x+w,m=b+l.y+R}this.evData={startClientX:f,startClientY:m,startCropX:v,startCropY:b,clientX:e.clientX,clientY:e.clientY,isResize:h,ord:c},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})}),rn(this,"onComponentPointerDown",e=>{const{crop:a,disabled:i,locked:l,keepSelection:o,onChange:c}=this.props,h=this.getBox();if(i||l||o&&a)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const f=e.clientX-h.x,m=e.clientY-h.y,v={unit:"px",x:f,y:m,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:f,startCropY:m,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,c(qa(v,h.width,h.height),Ji(v,h.width,h.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}),rn(this,"onDocPointerMove",e=>{const{crop:a,disabled:i,onChange:l,onDragStart:o}=this.props,c=this.getBox();if(i||!a||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,o&&o(e));const{evData:h}=this;h.clientX=e.clientX,h.clientY=e.clientY;let f;h.isResize?f=this.resizeCrop():f=this.dragCrop(),ES(a,f)||l(qa(f,c.width,c.height),Ji(f,c.width,c.height))}),rn(this,"onComponentKeyDown",e=>{const{crop:a,disabled:i,onChange:l,onComplete:o}=this.props;if(i)return;const c=e.key;let h=!1;if(!a)return;const f=this.getBox(),m=this.makePixelCrop(f),v=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?pa.nudgeStepLarge:e.shiftKey?pa.nudgeStepMedium:pa.nudgeStep;if(c==="ArrowLeft"?(m.x-=v,h=!0):c==="ArrowRight"?(m.x+=v,h=!0):c==="ArrowUp"?(m.y-=v,h=!0):c==="ArrowDown"&&(m.y+=v,h=!0),h){e.cancelable&&e.preventDefault(),m.x=Cs(m.x,0,f.width-m.width),m.y=Cs(m.y,0,f.height-m.height);const b=qa(m,f.width,f.height),S=Ji(m,f.width,f.height);l(b,S),o&&o(b,S)}}),rn(this,"onHandlerKeyDown",(e,a)=>{const{aspect:i=0,crop:l,disabled:o,minWidth:c=0,minHeight:h=0,maxWidth:f,maxHeight:m,onChange:v,onComplete:b}=this.props,S=this.getBox();if(o||!l)return;if(e.key==="ArrowUp"||e.key==="ArrowDown"||e.key==="ArrowLeft"||e.key==="ArrowRight")e.stopPropagation(),e.preventDefault();else return;const A=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?pa.nudgeStepLarge:e.shiftKey?pa.nudgeStepMedium:pa.nudgeStep,w=qa(l,S.width,S.height),R=lP(w,e.key,A,a),k=AS(R,i,a,S.width,S.height,c,h,f,m);if(!ES(l,k)){const D=Ji(k,S.width,S.height);v(k,D),b&&b(k,D)}}),rn(this,"onDocPointerDone",e=>{const{crop:a,disabled:i,onComplete:l,onDragEnd:o}=this.props,c=this.getBox();this.unbindDocMove(),!(i||!a)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,o&&o(e),l&&l(qa(a,c.width,c.height),Ji(a,c.width,c.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))}),rn(this,"onDragFocus",()=>{var e;(e=this.componentRef.current)==null||e.scrollTo(0,0)})}get document(){return document}getBox(){const e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};const{x:a,y:i,width:l,height:o}=e.getBoundingClientRect();return{x:a,y:i,width:l,height:o}}componentDidUpdate(e){const{crop:a,onComplete:i}=this.props;if(i&&!e.crop&&a){const{width:l,height:o}=this.getBox();l&&o&&i(qa(a,l,o),Ji(a,l,o))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,xs),this.document.addEventListener("pointerup",this.onDocPointerDone,xs),this.document.addEventListener("pointercancel",this.onDocPointerDone,xs),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,xs),this.document.removeEventListener("pointerup",this.onDocPointerDone,xs),this.document.removeEventListener("pointercancel",this.onDocPointerDone,xs),this.docMoveBound=!1)}getCropStyle(){const{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){const{evData:e}=this,a=this.getBox(),i=this.makePixelCrop(a),l=e.clientX-e.startClientX,o=e.clientY-e.startClientY;return i.x=Cs(e.startCropX+l,0,a.width-i.width),i.y=Cs(e.startCropY+o,0,a.height-i.height),i}getPointRegion(e,a,i,l){const{evData:o}=this,c=o.clientX-e.x,h=o.clientY-e.y;let f;l&&a?f=a==="nw"||a==="n"||a==="ne":f=h<o.startCropY;let m;return i&&a?m=a==="nw"||a==="w"||a==="sw":m=c<o.startCropX,m?f?"nw":"sw":f?"ne":"se"}resolveMinDimensions(e,a,i=0,l=0){const o=Math.min(i,e.width),c=Math.min(l,e.height);return!a||!o&&!c?[o,c]:a>1?o?[o,o/a]:[c*a,c]:c?[c*a,c]:[o,o/a]}resizeCrop(){const{evData:e}=this,{aspect:a=0,maxWidth:i,maxHeight:l}=this.props,o=this.getBox(),[c,h]=this.resolveMinDimensions(o,a,this.props.minWidth,this.props.minHeight);let f=this.makePixelCrop(o);const m=this.getPointRegion(o,e.ord,c,h),v=e.ord||m;let b=e.clientX-e.startClientX,S=e.clientY-e.startClientY;(c&&v==="nw"||v==="w"||v==="sw")&&(b=Math.min(b,-c)),(h&&v==="nw"||v==="n"||v==="ne")&&(S=Math.min(S,-h));const A={unit:"px",x:0,y:0,width:0,height:0};m==="ne"?(A.x=e.startCropX,A.width=b,a?(A.height=A.width/a,A.y=e.startCropY-A.height):(A.height=Math.abs(S),A.y=e.startCropY-A.height)):m==="se"?(A.x=e.startCropX,A.y=e.startCropY,A.width=b,a?A.height=A.width/a:A.height=S):m==="sw"?(A.x=e.startCropX+b,A.y=e.startCropY,A.width=Math.abs(b),a?A.height=A.width/a:A.height=S):m==="nw"&&(A.x=e.startCropX+b,A.width=Math.abs(b),a?(A.height=A.width/a,A.y=e.startCropY-A.height):(A.height=Math.abs(S),A.y=e.startCropY+S));const w=AS(A,a,m,o.width,o.height,c,h,i,l);return a||pa.xyOrds.indexOf(v)>-1?f=w:pa.xOrds.indexOf(v)>-1?(f.x=w.x,f.width=w.width):pa.yOrds.indexOf(v)>-1&&(f.y=w.y,f.height=w.height),f.x=Cs(f.x,0,o.width-f.width),f.y=Cs(f.y,0,o.height-f.height),f}renderCropSelection(){const{ariaLabels:e=pa.defaultProps.ariaLabels,disabled:a,locked:i,renderSelectionAddon:l,ruleOfThirds:o,crop:c}=this.props,h=this.getCropStyle();if(c)return ie.createElement("div",{style:h,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":e.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!a&&!i&&ie.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},ie.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),ie.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),ie.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),ie.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),ie.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":e.nwDragHandle,onKeyDown:f=>this.onHandlerKeyDown(f,"nw"),role:"button"}),ie.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":e.nDragHandle,onKeyDown:f=>this.onHandlerKeyDown(f,"n"),role:"button"}),ie.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":e.neDragHandle,onKeyDown:f=>this.onHandlerKeyDown(f,"ne"),role:"button"}),ie.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":e.eDragHandle,onKeyDown:f=>this.onHandlerKeyDown(f,"e"),role:"button"}),ie.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":e.seDragHandle,onKeyDown:f=>this.onHandlerKeyDown(f,"se"),role:"button"}),ie.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":e.sDragHandle,onKeyDown:f=>this.onHandlerKeyDown(f,"s"),role:"button"}),ie.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":e.swDragHandle,onKeyDown:f=>this.onHandlerKeyDown(f,"sw"),role:"button"}),ie.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":e.wDragHandle,onKeyDown:f=>this.onHandlerKeyDown(f,"w"),role:"button"})),l&&ie.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:f=>f.stopPropagation()},l(this.state)),o&&ie.createElement(ie.Fragment,null,ie.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),ie.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){const a={...Zf,...this.props.crop||{}};return qa(a,e.width,e.height)}render(){const{aspect:e,children:a,circularCrop:i,className:l,crop:o,disabled:c,locked:h,style:f,ruleOfThirds:m}=this.props,{cropIsActive:v,newCropIsBeingDrawn:b}=this.state,S=o?this.renderCropSelection():null,A=rP("ReactCrop",l,v&&"ReactCrop--active",c&&"ReactCrop--disabled",h&&"ReactCrop--locked",b&&"ReactCrop--new-crop",o&&e&&"ReactCrop--fixed-aspect",o&&i&&"ReactCrop--circular-crop",o&&m&&"ReactCrop--rule-of-thirds",!this.dragStarted&&o&&!o.width&&!o.height&&"ReactCrop--invisible-crop",i&&"ReactCrop--no-animate");return ie.createElement("div",{ref:this.componentRef,className:A,style:f},ie.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},a),o?ie.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},ie.createElement("defs",null,ie.createElement("mask",{id:`hole-${this.instanceId}`},ie.createElement("rect",{width:"100%",height:"100%",fill:"white"}),i?ie.createElement("ellipse",{cx:`${o.x+o.width/2}${o.unit}`,cy:`${o.y+o.height/2}${o.unit}`,rx:`${o.width/2}${o.unit}`,ry:`${o.height/2}${o.unit}`,fill:"black"}):ie.createElement("rect",{x:`${o.x}${o.unit}`,y:`${o.y}${o.unit}`,width:`${o.width}${o.unit}`,height:`${o.height}${o.unit}`,fill:"black"}))),ie.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,S)}};rn(Qi,"xOrds",["e","w"]),rn(Qi,"yOrds",["n","s"]),rn(Qi,"xyOrds",["nw","ne","se","sw"]),rn(Qi,"nudgeStep",1),rn(Qi,"nudgeStepMedium",10),rn(Qi,"nudgeStepLarge",100),rn(Qi,"defaultProps",{ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}});let oP=Qi;var wS=function(t,e,a){if(a||arguments.length===2)for(var i=0,l=e.length,o;i<l;i++)(o||!(i in e))&&(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))},uP=function(){function t(e,a,i){this.name=e,this.version=a,this.os=i,this.type="browser"}return t}(),cP=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return t}(),fP=function(){function t(e,a,i,l){this.name=e,this.version=a,this.os=i,this.bot=l,this.type="bot-device"}return t}(),dP=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),hP=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),mP=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,pP=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,CS=3,gP=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",mP]],xS=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function vP(t){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new hP:typeof navigator<"u"?bP(navigator.userAgent):EP()}function yP(t){return t!==""&&gP.reduce(function(e,a){var i=a[0],l=a[1];if(e)return e;var o=l.exec(t);return!!o&&[i,o]},!1)}function bP(t){var e=yP(t);if(!e)return null;var a=e[0],i=e[1];if(a==="searchbot")return new dP;var l=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);l?l.length<CS&&(l=wS(wS([],l,!0),AP(CS-l.length),!0)):l=[];var o=l.join("."),c=SP(t),h=pP.exec(t);return h&&h[1]?new fP(a,o,c,h[1]):new uP(a,o,c)}function SP(t){for(var e=0,a=xS.length;e<a;e++){var i=xS[e],l=i[0],o=i[1],c=o.exec(t);if(c)return l}return null}function EP(){var t=typeof process<"u"&&process.version;return t?new cP(process.version.slice(1)):null}function AP(t){for(var e=[],a=0;a<t;a++)e.push("0");return e}const wP=vP(),CP=({imageSource:t,onChange:e})=>{const a=g.useRef(null),i=g.useRef(null),[l,o]=g.useState(null),[c,h]=g.useState(t),[f,m]=g.useState(t),[v,b]=g.useState(null),[S,A]=g.useState(null),[w,R]=g.useState(null),[k,D]=g.useState(!1),[I,B]=g.useState(!1),[Y,j]=g.useState(!1),F=_=>{const q=_.target.files;if(q&&q[0])if(q[0].size>2*1024*1e3)o(L.t("connection.logo.imageToLarge"));else{const U=new FileReader;U.onloadend=()=>{let M=U.result;const P=M.indexOf("svg+xml")>-1;P&&(M=Er.sanitize(M));const H=M.split(",")[1];m(c),h(H),b(P),D(!0)},U.readAsDataURL(q[0])}},Z=()=>{if(!I&&wP.name==="safari"&&(B(!0),setTimeout(()=>Z(),750)),a.current&&S.width&&S.height){j(!0);const _=a.current,q=_.naturalWidth/_.width,V=_.naturalHeight/_.height,U=S.width*q,M=S.height*V,P=Math.max(U,M),H=new OffscreenCanvas(P,P),$=H.getContext("2d");$.fillStyle="#fff",$.fillRect(0,0,P,P),$.drawImage(_,S.x*q,S.y*V,U,M,(P-U)/2,(P-M)/2,U,M);const T={type:"image/jpeg",quality:1};H.convertToBlob(T).then(G=>{if(!G)return;const ee=new FileReader;ee.onloadend=()=>{const ge=ee.result.split(",")[1];h(ge),e(ge),j(!1),D(!1),R(null),A(null)},ee.readAsDataURL(G)})}},E=()=>{i.current.value=null,i.current.click()},x=()=>{D(!1),h(f),R(null),A(null)},O=(_,q,V)=>iP(aP({unit:"%",width:100},V,_,q),_,q),z=_=>{const q=_.target;a.current=q;const{width:V,height:U}=q,M=O(V,U,1);R(M)};return y.jsxs("div",{className:"image-field-container",children:[k&&y.jsx(s1,{confirm:()=>Z(),confirmationTxt:L.t("connection.logo.confirm"),cancel:()=>x(),disabledConfirm:Y,confirmationHeader:L.t("connection.logo.header"),children:y.jsx(oP,{crop:w,onChange:(_,q)=>R(q),onComplete:_=>A(_),aspect:1,minHeight:100,children:y.jsx("img",{src:SS(c,v?"svg+xml":"jpeg"),onLoad:z,ref:a,alt:"Crop me"})})}),y.jsxs("div",{className:"image-field",children:[c&&y.jsx("img",{alt:"Crop me",src:SS(c,"jpeg")}),!c&&y.jsx(v4,{})]}),y.jsxs("div",{className:"edit-options",children:[y.jsx("input",{type:"file",ref:i,name:"fileUpload",accept:"image/png, image/jpeg, image/jpg, image/svg+xml, image/webp",onChange:F}),y.jsx(yt,{txt:L.t(`connection.logo.${ye(t)?"add":"edit"}`),onClick:E}),y.jsx("ul",{children:L.translations[L.locale].connection.logo.disclaimers.map((_,q)=>y.jsx("li",{children:_},q))})]})]})},Lt={logo:"logo",contact:"contact",privacy:"privacy",overview:"overview"},xP=({application:t,setApplication:e,refresh:a,privacyInfo:i,changeTab:l,protocolOptions:o,profileOptions:c,arpInfo:h})=>{const{setFlash:f}=It(T=>T),[m,v]=g.useState(Lt.logo),[b,S]=g.useState([]),[A,w]=g.useState(!0),[R,k]=g.useState(!1),D=T=>{if(t.status!==yu.OPEN)return!1;const G=b.includes(T);switch(T){case Lt.logo:return!pu(t);case Lt.contact:return!G||!gu(t);case Lt.privacy:return!G||!vu(i,t)}},I=T=>!(m===Lt.logo?pu(t):m===Lt.contact?gu(t):vu(i,t))&&!(T===m),B=()=>{if(A)return!1;switch(m){case Lt.logo:return!pu(t);case Lt.contact:return!gu(t);case Lt.privacy:return!vu(i,t);case Lt.overview:return!0}},Y=()=>{w(!1);const T=m===Lt.logo?Lt.contact:m===Lt.contact?Lt.privacy:(m===Lt.privacy,Lt.overview);if(m===Lt.logo&&pu(t)||m===Lt.contact&&gu(t)||m===Lt.privacy&&vu(i,t)){k(!0),m===Lt.privacy&&(t.status=yu.COMPLETE);const ee=VE(t);g4(ee).then(ne=>{S([...b,m]),k(!1),f(L.t("application.flash",{name:ne.name})),e(Iu(ne,o,c,h)),ne.status===yu.OPEN&&z(T),w(!0)}).catch(()=>{k(!1),f(L.t("forms.error"),"error")})}},j=()=>{a(),l("overview"),v(Lt.logo)},F=(T,G,ee)=>{const ne={...t,[T]:{...t[T],[G]:ee}};e(ne)},Z=T=>{const G={...t,logoUrl:T};e(G)},E=T=>({value:T,label:L.t(`connection.appInfo.tagsAvailable.${T}`)}),x=()=>Object.keys(L.translations[L.locale].connection.appInfo.tagsAvailable).map(E),O=()=>y.jsxs("section",{className:"inner-right",children:[y.jsx("h3",{children:L.t("connection.appInfo.label")}),y.jsx(CP,{imageSource:t.logoUrl||"",onChange:T=>Z(T)}),!A&&ye(t.logoUrl)&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.appInfo.logoUrl")})}),y.jsx(hn,{value:t.information.descriptionEN||"",onChange:T=>F("information","descriptionEN",T.target.value),name:L.t("connection.appInfo.descriptionEn"),required:!0,multiline:!0}),!A&&ye(t.information.descriptionNL)&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.appInfo.descriptionEn")})}),y.jsx(hn,{value:t.information.descriptionNL||"",onChange:T=>F("information","descriptionNL",T.target.value),name:L.t("connection.appInfo.descriptionNl"),required:!0,multiline:!0}),!A&&ye(t.information.descriptionNL)&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.appInfo.descriptionNl")})}),y.jsx(hn,{value:t.information.webSite||"",onChange:T=>F("information","webSite",T.target.value),name:L.t("connection.appInfo.webSite"),required:!0}),!A&&ye(t.information.webSite)&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.appInfo.webSite")})}),!A&&!Ru(t.information.webSite)&&y.jsx(Sn,{msg:L.t("forms.invalidURL",{name:L.t("connection.appInfo.webSite")})}),y.jsx(Os,{name:L.t("connection.appInfo.tags"),options:x().filter(T=>!(t.information.tags||[]).includes(T)),value:(t.information.tags||[]).map(T=>E(T)),isMulti:!0,searchable:!0,placeholder:L.t("connection.appInfo.tagPlaceholder"),onChange:T=>T.length<=3&&F("information","tags",T.map(G=>G.value)),info:L.t("connection.appInfo.tagInfo")})]}),z=T=>{v(T)},_=(T,G,ee)=>{let ne=t.contactPersons.find(fe=>fe.type===T);ye(ne)&&(ne={type:T,email:"",name:""},t.contactPersons.push(ne)),ne[G]=ee;const ge={...t,contactPersons:[...t.contactPersons]};e(ge)},q=()=>y.jsxs("section",{className:"inner-right",children:[y.jsx("h3",{children:L.t("connection.contacts.label")}),y.jsx("p",{children:L.t("connection.contacts.info")}),["administrative","technical","support"].map(T=>{const G=t.contactPersons.find(ee=>ee.type===T)||{email:"",name:""};return y.jsxs("section",{children:[y.jsx(hn,{value:G.name,name:L.t(`connection.contacts.${T}`),placeholder:L.t("connection.contacts.name"),onChange:ee=>_(T,"name",ee.target.value),toolTip:L.t(`connection.contacts.${T}Tooltip`)}),!A&&ye(G.name)&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.contacts.name")})}),y.jsx(hn,{value:G.email,name:L.t("connection.contacts.emailOrWebsite"),placeholder:L.t(`connection.contacts.${T}Placeholder`,{name:t.name.toLowerCase()}),onChange:ee=>_(T,"email",ee.target.value)}),!A&&ye(G.email)&&y.jsx(Sn,{msg:L.t("forms.required",{name:L.t("connection.contacts.emailOrWebsite")})}),!(Ru(G.email)||KN(G.email))&&y.jsx(Sn,{msg:L.t("forms.invalidEmailURL",{name:G.email})})]},T)})]}),V=(T,G)=>{t.privacy[T]=G,e({...t})},U=T=>({value:T.name,label:T[`info_${L.locale}`]}),M=()=>y.jsxs("section",{className:"inner-right",children:[y.jsx("h3",{children:L.t("connection.privacy.label")}),y.jsx("p",{children:L.t("connection.privacy.info")}),i.map((T,G)=>y.jsxs("section",{children:[ye(T.enum)&&y.jsx(hn,{value:t.privacy[T.name]||"",name:T[`info_${L.locale}`],onChange:ee=>V(T.name,ee.target.value),toolTip:ye(T.tooltip_en)?null:T[`tooltip_${L.locale}`]}),!ye(T.enum)&&y.jsx(Os,{name:T[`info_${L.locale}`],options:T.enum.filter(ee=>ee!==t.privacy[T.name]).map(ee=>U(ee)),value:U(T.enum.find(ee=>t.privacy[T.name]===ee.name||ee.name===T.default)),onChange:ee=>V(T.name,ee.value),toolTip:ye(T.tooltip_en)?null:T[`tooltip_${L.locale}`]}),T.required&&!A&&ye(t.privacy[T.name])&&y.jsx(Sn,{msg:L.t("connection.privacy.answerIsRequired")})]},G))]}),P=()=>y.jsxs("section",{className:"inner-right",children:[y.jsx("h3",{children:L.t("connection.appOverview.label")}),y.jsx("p",{children:L.t("connection.appOverview.info")}),y.jsxs("div",{className:"application",children:[ye(t.logoUrl)?y.jsx(v4,{}):y.jsx("img",{src:t.logoUrl,alt:t.name}),y.jsxs("div",{className:"application-info",children:[y.jsx("h3",{children:t.name}),y.jsx(WS,{txt:t.information[`description${L.locale.toUpperCase()}`],cutoffNumber:300,moreLabel:L.t("forms.moreLabel"),lessLabel:L.t("forms.lessLabel")}),y.jsx("a",{href:t.information.webSite,target:"_blank",children:t.information.webSite})]})]})]}),H=()=>{switch(m){case Lt.logo:return O();case Lt.contact:return q();case Lt.privacy:return M();case Lt.overview:return P()}};if(R)return y.jsx(Ar,{});const $=t.status!==yu.OPEN?L.t("connection.save"):L.t("connection.saveAndNext");return y.jsxs("div",{className:"app-information-container",children:[y.jsx("div",{className:"app-header",children:y.jsx("h2",{children:L.t("connection.appInfo.title")})}),y.jsxs("div",{className:"app-information",children:[y.jsx("section",{className:"left",children:y.jsx("div",{className:"status-menu",children:Object.values(Lt).filter(T=>T!==Lt.overview).map(T=>y.jsx(YE,{pending:D(T),disabled:I(T),action:()=>z(T),info:L.t(`connection.appInfo.sections.${T}`),active:m===T},T))})}),y.jsxs("section",{className:"right",children:[H(),y.jsxs("div",{className:"actions",children:[m!==Lt.overview&&y.jsxs(y.Fragment,{children:[y.jsx(yt,{txt:L.t("forms.backToOverview"),type:Rt.Secondary,onClick:j}),y.jsx(yt,{txt:$,disabled:B(),onClick:()=>Y()})]}),m===Lt.overview&&y.jsx(yt,{txt:L.t("forms.overview"),type:Rt.Secondary,onClick:()=>j()}),m===Lt.overview&&y.jsx(yt,{txt:L.t("connection.appInfo.targetGroup"),type:Rt.Secondary,icon:y.jsx(Hw,{}),onClick:()=>alert("No clue that to do here")})]})]})]})]})},TP=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:731.07696,height:629.61397,viewBox:"0 0 731.07696 629.61397",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",artist:"Katerina Limpitsouni",source:"https://undraw.co/",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M538.56708,682.17352l7.98486-26.00457A87.77018,87.77018,0,0,0,511.468,632.66343c13.12443,21.74329.40684,50.10772,5.70644,74.94591a52.79386,52.79386,0,0,0,28.27717,35.97783l12.11706,15.0135a88.46588,88.46588,0,0,0,6.50218-73.78667,85.453,85.453,0,0,0-9.89442-19.0176C546.976,674.26143,538.56708,682.17352,538.56708,682.17352Z",transform:"translate(-234.46152 -135.19301)",fill:"#f2f2f2"}),g.createElement("path",{d:"M494.66175,685.49609,490.211,658.6598a87.77019,87.77019,0,0,0-41.8846-5.39169c21.444,13.60792,22.71122,44.6671,38.53195,64.53481A52.79389,52.79389,0,0,0,528.213,737.39353l17.541,8.03374a88.4659,88.4659,0,0,0-27.08772-68.942,85.45282,85.45282,0,0,0-17.33741-12.60883C498.65942,674.66423,494.66175,685.49609,494.66175,685.49609Z",transform:"translate(-234.46152 -135.19301)",fill:"#f2f2f2"}),g.createElement("polygon",{points:"521.537 616.734 509.237 616.733 503.386 569.293 521.539 569.294 521.537 616.734",fill:"#ffb6b6"}),g.createElement("path",{d:"M759.13479,763.849l-39.658-.00147v-.50161a15.43684,15.43684,0,0,1,15.436-15.43578h.001l7.24407-5.49573,13.51581,5.49657,3.46191.00014Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("polygon",{points:"720.217 571.872 711.831 580.869 673.137 552.804 685.514 539.526 720.217 571.872",fill:"#ffb6b6"}),g.createElement("path",{d:"M965.53848,712.899l-27.04,29.01035-.36695-.342a15.43684,15.43684,0,0,1-.76756-21.81615l.00067-.00072.91868-9.0463,13.236-6.13976,2.36044-2.53242Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("path",{d:"M936.47936,680.40333l-13,27.18935L843.6502,654.73756l-11.61334-15.82321-38.07879-51.88248-15.47871,24.56081-10.7705,25.675,0,0a28.302,28.302,0,0,0-12.67456,20.65424l-.4928,4.54552,6.80579,61.1824-25.86792,7.94283-14.85649-82.19011,4.85649-17.80989,5-25,25.17374-79h67.36433l38.6375,82.24219,2.82443,16.75781,10.95506,12.57265Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("path",{d:"M796.48335,398.341l11.34,8.635,13.676,4.20263s5.65378,79.52834,10.74814,84.62269.49987,5.23128,1.52352,11.84916,3.51167,20.18377,3.51167,20.18377c-34.38706,18.20258-64.03232,18.69086-87.845-2.60925a5.93118,5.93118,0,0,1,3.23609-6.69462c4.43194-2.35163-4.08556-13.32756-.46361-15.16273s-1.4724-17.755-1.4724-17.755l3.34187-33.21557-2.64024-5.30956,6.44317-32.48859,11.18013-4.083,4.466-10.76026Z",transform:"translate(-234.46152 -135.19301)",fill:"#3f3d56"}),g.createElement("path",{d:"M803.58728,539.68971a9.83035,9.83035,0,0,1,11.20736-10.08023l15.98166-31.06366,8.90389,15.81982L823.1387,541.4389a9.88361,9.88361,0,0,1-19.55136-1.74918Z",transform:"translate(-234.46152 -135.19301)",fill:"#ffb6b6"}),g.createElement("path",{d:"M830.50168,532.09076l34.27838-53.12742-.11314-.24445c-.12943-.28006-7.89169-17.04459-15.413-32.39983-1.15826-2.36467-2.3108-4.69592-3.42888-6.92839q-.72381-1.44525-1.42606-2.83006c-3.159-6.22784-5.919-11.37528-7.56648-13.82041a29.01529,29.01529,0,0,0-15.37527-11.66364l-.15859-.04079-.15142.06313a14.72433,14.72433,0,0,0-8.76284,16.19752,104.29613,104.29613,0,0,0,19.35291,43.755l5.55705,7.32474-19.31154,41.98521Z",transform:"translate(-234.46152 -135.19301)",fill:"#3f3d56"}),g.createElement("path",{d:"M712.62832,328.445a9.83033,9.83033,0,0,1-2.35881,14.888l7.14559,34.1951-16.87862-6.68267-4.19794-31.44773A9.88361,9.88361,0,0,1,712.62826,328.445Z",transform:"translate(-234.46152 -135.19301)",fill:"#ffb6b6"}),g.createElement("path",{d:"M696.50521,351.29613l6.82551,62.85653.24182.11864c.19929.09793,8.84664,4.33935,19.46132,9.39061,1.79066.85212,1.534,4.54332,3.40548,5.42554,1.28913.60768,4.69342-1.59731,5.996-.98817,11.6023,5.42574,23.33421,10.70159,28.0098,12.13115a29.0153,29.0153,0,0,0,19.2887-.621l.14888-.06818.07788-.14439a14.72433,14.72433,0,0,0-3.39225-18.10082A104.29612,104.29612,0,0,0,733.98177,399.492l-8.92931-2.19087-11.4361-44.77621Z",transform:"translate(-234.46152 -135.19301)",fill:"#3f3d56"}),g.createElement("circle",{cx:549.93117,cy:237.15579,r:22.43078,fill:"#ffb6b6"}),g.createElement("path",{d:"M762.12254,357.31823c1.84464-5.36654,11.02745-9.08881,25.91417-9.60638S806.699,364.73761,806.699,364.73761c9.938,8.06173-10.61182,29.645-11.606,28.86767l.447-4.05508c.74029-6.71673,3.8855-11.95752-.1145-18.95752l-3.841.0441q-7.441,1.43086-14.882,2.8617l5.87292-5.17092-.16561-.25624a22.72645,22.72645,0,0,1-8.01666,2.43412c-3.15652.18554-6.60741-1.0707-8.11933-3.84781a6.46564,6.46564,0,0,1-.7254-2.46008c-4.25655,1.70064-6.203,6.94811-6.203,6.94811S760.2779,362.68477,762.12254,357.31823Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("path",{d:"M324.835,358.66391a12.01539,12.01539,0,0,0-.98135-1.09867c.08535-.11731.1707-.2453.25605-.36261Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("path",{d:"M329.19746,448.8796c-3.66922,6.51717-10.997,10.15436-18.26074,11.93562a45.62848,45.62848,0,0,1-24.82054-.47994c-1.02393-.33065-2.04792-.71469-3.03988-1.1413a26.19137,26.19137,0,0,0,1.13063-3.89323,26.70185,26.70185,0,0,0,.55467-5.45048,17.20675,17.20675,0,0,1-3.10394,4.27721,15.69464,15.69464,0,0,1-3.25321,2.61319,31.94711,31.94711,0,0,1-9.43967-8.76768c.15995-.39465.32-.7893.46932-1.18395a42.55225,42.55225,0,0,0,1.83457-6.33579,43.3241,43.3241,0,0,0,.90668-8.86371,27.85116,27.85116,0,0,1-5.05589,6.95439,22.66926,22.66926,0,0,1-1.94121,1.84532,25.52261,25.52261,0,0,1,1.53589-19.63673c4.22388-7.80776,12.41561-12.44758,19.7114-17.49273,7.3064-5.04521,14.61287-11.87162,15.23147-20.73533.416-5.98379-2.35721-11.97832-1.24794-17.86609a13.804,13.804,0,0,1,23.44455-7.09313c-4.13853,5.86648-8.25572,11.93562-9.93034,18.91137-1.70658,7.10381-.3093,15.4342,5.29052,20.138,1.91992,1.6213,4.2772,2.77328,5.75984,4.79984,1.97324,2.68794,1.98392,6.2718,2.3039,9.5784.63995,6.43176,2.74125,12.61821,3.87187,18.986C332.29072,436.33606,332.35471,443.23714,329.19746,448.8796Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("polygon",{points:"19.519 578.195 29.254 585.716 62.898 551.747 48.53 540.646 19.519 578.195",fill:"#a0616a"}),g.createElement("path",{d:"M254.39467,706.03868l16.098,10.972-5.09439,6.593,6.8227,21.40865a5.20442,5.20442,0,0,1-8.14088,5.699l-18.32032-14.156,1.88135-8.9615-6.27209,5.56879-6.90749-5.3374Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("path",{d:"M303.36907,377.61406a23.23609,23.23609,0,1,0,39.96608-16.11663l-.11153-.11142c-.1859-.19526-.3718-.39041-.567-.57636a.0091.0091,0,0,1-.00925-.00931c-.24166-.22305-.48333-.44611-.7343-.65987-4.08951-3.58763-9.83738-7.48171-15.70217-7.48171C313.37529,352.65876,303.36907,364.77839,303.36907,377.61406Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("path",{d:"M435.81127,365.68143a8.51137,8.51137,0,0,1-9.217,9.24l-57.53844,51.95118-9.90168-15.63847,59.67194-46.14888a8.55747,8.55747,0,0,1,16.9852.59613Z",transform:"translate(-234.46152 -135.19301)",fill:"#a0616a"}),g.createElement("path",{d:"M344.46482,442.55352s2.14082,3.954,9.45367-2.15133c5.85449-4.88778,33.90287-26.1074,39.94545-34.80272a6.68639,6.68639,0,0,0,7.8722-2.28582L385.17992,388.814c-4.95365.57025-4.84748,3.898-4.3316,5.78732l-12.48864,5.65825-32.24957,20.60975,6.75648,18.85359Z",transform:"translate(-234.46152 -135.19301)",fill:"#7163ff"}),g.createElement("polygon",{points:"78.761 343.789 77.555 349.532 76.531 370.716 121.615 373.194 120.215 340.612 115.845 333.432 78.761 343.789",fill:"#a0616a"}),g.createElement("circle",{cx:97.86833,cy:247.79721,r:19.48446,fill:"#a0616a"}),g.createElement("path",{d:"M297.7375,454.85772l-.11981-16.19628a25.77616,25.77616,0,0,1,19.96171-25.124l.07352-.01725,3.85281-5.19124,15.65329,1.56586,2.86907,5.86367,11.34257,6.7539,4.36706,14.03864a16.6021,16.6021,0,0,1,7.17414,11.11883c1.48266,9.47052-5.14824,18.94649-5.937,20.033l-2.03225,11.44559-44.21015,7.80056-.359.04538Z",transform:"translate(-234.46152 -135.19301)",fill:"#7163ff"}),g.createElement("path",{d:"M356.17263,379.51655a66.42811,66.42811,0,0,1-7.06117,3.89317,40.63183,40.63183,0,0,1-7.70105,2.784,26.61691,26.61691,0,0,0-2.77322-4.72517,17.1841,17.1841,0,0,1,.02129,5.27977,27.50736,27.50736,0,0,1-13.13024-1.07724l-3.66921-6.15449-.27734,6.86911c-3.03987.55467-6.06914,1.07731-9.109,1.62131-.18131.02128-.36262.064-.53332.096-1.888-8.51171.7893-17.88745,6.74112-23.56187a21.445,21.445,0,0,1,22.52727-4.37323c.48.192.9706.40532,1.43992.62934a.01046.01046,0,0,0,.01068.01068c.27734.1386.512.46925.82133.43729C356.79123,359.7625,357.21791,370.08749,356.17263,379.51655Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("polygon",{points:"89.297 553.071 99.047 560.572 132.623 526.535 118.233 515.464 89.297 553.071",fill:"#a0616a"}),g.createElement("path",{d:"M325.0419,681.59354,341.162,692.533l-5.08106,6.60328,6.86592,21.39482a5.20442,5.20442,0,0,1-8.12936,5.71539l-18.34887-14.119,1.86325-8.96528-6.26083,5.58145-6.91826-5.32344Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("path",{d:"M292.1202,646.72233l-.00046-.12707,4.6209-7.9629-4.71847-10.36547-.14158-26.63073.76488-3.99777a33.63171,33.63171,0,0,0-.872-16.15848l0,0-.08618-16.21005c-.16577-4.06077,6.125-7.63227,4.658-11.01763-13.86622-31.999,14.15957-56.40982,14.34888-56.60574l.57273-.59543,3.10738,2.35356,2.95761.00363,39.9118,7.27258.28818.53734c1.5698,2.94445,4.59938,13.09349,4.7791,17.68625,1.98913,2.30273,24.647,28.52139,26.66114,30.34306,13.61081,12.31513,21.40353,32.69845,24.8372,43.75283a17.55469,17.55469,0,0,1-3.00617,16.14273L359.2765,671.58175l-13.86622-12.79958,27.88057-50.80511-2.01047-5.1546a15.843,15.843,0,0,1-9.2368-5.36609l-5.64564-6.70125a12.52908,12.52908,0,0,1-2.85958-6.517l-3.4237-.41208L337.85082,570.95l-8.5084,77.05214-2.31318,6.08677-40.28372,47.35855L269.6794,690.78113Z",transform:"translate(-234.46152 -135.19301)",fill:"#2f2e41"}),g.createElement("path",{d:"M285.9682,315.86955a8.51136,8.51136,0,0,0,2.6234,12.78474l-12.80937,37.922,10.45957,40.18733,16.86612-7.62493-10.40771-30.31217,7.78662-44.12171a8.55747,8.55747,0,0,0-14.51863-8.83527Z",transform:"translate(-234.46152 -135.19301)",fill:"#a0616a"}),g.createElement("path",{d:"M301.40665,439.87572s-3.96136,2.12717-6.71636-6.99219c-2.20557-7.30074-17.21552-46.94027-17.486-57.52555a6.68641,6.68641,0,0,1-5.32114-6.23555l21.80019-3.01683c3.82541,3.19846,1.90812,5.92043.43893,7.21547l7.425,12.5769,15.51936,33.95343L304.2974,438.38894Z",transform:"translate(-234.46152 -135.19301)",fill:"#7163ff"}),g.createElement("path",{d:"M312.46831,388.00518A39.63376,39.63376,0,0,1,342.982,361.48812c.02785-.00919.12083-.0464.24166-.10211.07432-.04652.16729-.093.26022-.13944-.27883-.158-.54834-.29737-.82722-.43692a.0091.0091,0,0,1-.00925-.00931c-.24166-.22305-.48333-.44611-.7343-.65987l-.70638.02792S316.38129,356.23686,312.46831,388.00518Z",transform:"translate(-234.46152 -135.19301)",fill:"#fd6584"}),g.createElement("ellipse",{cx:624.31846,cy:599.48269,rx:8.8567,ry:10.19466,transform:"translate(-455.07569 652.01793) rotate(-56.36398)",fill:"#f2f2f2"}),g.createElement("ellipse",{cx:569.31846,cy:447.48269,rx:8.8567,ry:10.19466,transform:"translate(-353.05924 538.42151) rotate(-56.36398)",fill:"#f2f2f2"}),g.createElement("ellipse",{cx:799.31846,cy:681.48269,rx:8.8567,ry:10.19466,transform:"translate(-445.28183 834.29719) rotate(-56.36398)",fill:"#f2f2f2"}),g.createElement("ellipse",{cx:334.31846,cy:192.48269,rx:8.8567,ry:10.19466,transform:"translate(-245.58303 229.01517) rotate(-56.36398)",fill:"#f2f2f2"}),g.createElement("ellipse",{cx:551.31846,cy:144.48269,rx:8.8567,ry:10.19466,transform:"translate(-108.8191 388.27147) rotate(-56.36398)",fill:"#f2f2f2"}),g.createElement("ellipse",{cx:448.61817,cy:547.19724,rx:8.8567,ry:10.19466,transform:"translate(-489.92146 482.41084) rotate(-56.36398)",fill:"#e6e6e6"}),g.createElement("path",{d:"M904.72873,764.807h-650.294a1.19069,1.19069,0,0,1,0-2.38137h650.294a1.19068,1.19068,0,0,1,0,2.38137Z",transform:"translate(-234.46152 -135.19301)",fill:"#ccc"}),g.createElement("path",{d:"M375.47008,369.35489a22.24025,22.24025,0,0,1-22.04492-19.83057L340.72985,231.61758a22.23015,22.23015,0,0,1,19.70068-24.45508l376.9541-40.58789a22.23025,22.23025,0,0,1,24.45606,19.7002L774.536,304.18106a22.231,22.231,0,0,1-19.70117,24.45605l-.05372-.49707.05372.49707L377.88072,369.225A22.49378,22.49378,0,0,1,375.47008,369.35489Z",transform:"translate(-234.46152 -135.19301)",fill:"#e6e6e6"}),g.createElement("path",{d:"M733.23277,172.04825a19.85228,19.85228,0,0,0-2.12011.11425L367.74938,211.287a19.4592,19.4592,0,0,0-17.26416,21.43066l6.41894,59.61475a73.81135,73.81135,0,0,0,81.28955,65.48632L693.6986,330.30752A73.58749,73.58749,0,0,0,758.9857,249.265l-6.44287-59.83838a19.4634,19.4634,0,0,0-19.31006-17.37841Z",transform:"translate(-234.46152 -135.19301)",fill:"#fff"}),g.createElement("path",{d:"M656.71383,234.09012l-203.08846,21.8673a4.4443,4.4443,0,1,1-.95157-8.83751l203.08846-21.8673a4.4443,4.4443,0,1,1,.95157,8.83751Z",transform:"translate(-234.46152 -135.19301)",fill:"#7163ff"}),g.createElement("path",{d:"M659.63425,261.213l-203.08846,21.8673a4.4443,4.4443,0,0,1-.95157-8.83752l203.08846-21.8673a4.4443,4.4443,0,0,1,.95157,8.83752Z",transform:"translate(-234.46152 -135.19301)",fill:"#7163ff"}),g.createElement("path",{d:"M483.13313,307.65418l-23.667,2.54832a4.4443,4.4443,0,0,1-.95157-8.83752l23.667-2.54831a4.4443,4.4443,0,1,1,.95157,8.83751Z",transform:"translate(-234.46152 -135.19301)",fill:"#7163ff"}),g.createElement("circle",{cx:133.01784,cy:93.39967,r:8,fill:"#3f3d56"}),g.createElement("circle",{cx:491.01784,cy:53.39967,r:8,fill:"#3f3d56"}),g.createElement("path",{d:"M617.3226,360.82948a6.58718,6.58718,0,0,1-2.23618-5.19571,87.65934,87.65934,0,0,0-5.62982-34.07665,6.58717,6.58717,0,0,1,.44621-5.63887,6.43872,6.43872,0,0,1,4.44875-3.1298c9.29859-5.61123,18.83092-7.18656,28.33811-4.68125a6.51458,6.51458,0,0,1,7.1633,4.49107,144.983,144.983,0,0,1,6.36475,38.52514,6.51419,6.51419,0,0,1-5.44589,6.57523l-28.13329,4.64791A6.43755,6.43755,0,0,1,617.3226,360.82948Z",transform:"translate(-234.46152 -135.19301)",fill:"#7163ff"}),g.createElement("path",{d:"M619.82141,326.97378l23.679-3.912a1.5,1.5,0,1,0-.489-2.95987l-23.679,3.912a1.5,1.5,0,0,0,.489,2.95987Z",transform:"translate(-234.46152 -135.19301)",fill:"#fff"}),g.createElement("path",{d:"M621.77741,338.81329l23.679-3.912a1.5,1.5,0,0,0-.489-2.95988l-23.679,3.912a1.5,1.5,0,1,0,.489,2.95987Z",transform:"translate(-234.46152 -135.19301)",fill:"#fff"}),g.createElement("path",{d:"M623.73342,350.65281l23.679-3.912a1.5,1.5,0,0,0-.489-2.95988l-23.679,3.912a1.5,1.5,0,1,0,.489,2.95988Z",transform:"translate(-234.46152 -135.19301)",fill:"#fff"})),OP=g.forwardRef(TP),RP=({application:t,setApplication:e,changeTab:a,refresh:i,protocolOptions:l,profileOptions:o,arpInfo:c})=>{const{setFlash:h}=It(S=>S),[f,m]=g.useState(!1),v=()=>{m(!0);const S=VE(t);S.signedContract=!0,g4(S).then(A=>{m(!1),h(L.t("application.flash",{name:A.name})),e(Iu(A,l,o,c))}).catch(()=>{m(!1),h(L.t("forms.error"),"error")})},b=()=>{i(),a("overview")};return f?y.jsx(Ar,{}):y.jsx("div",{className:"contract-container",children:y.jsxs("div",{className:"contract-inner",children:[y.jsx("div",{className:"app-header",children:y.jsx("h2",{children:L.t("connection.contractSection.title")})}),y.jsxs("div",{className:"contract-information card",children:[y.jsx("h4",{children:L.t("connection.contractSection.title")}),y.jsx("p",{children:L.t("connection.contractSection.info")}),y.jsx("p",{children:L.t(`connection.contractSection.${t.signedContract?"signed":"notSigned"}`)}),t.signedContract&&y.jsx("div",{className:"happy",children:y.jsx(OP,{})})]}),y.jsxs("div",{className:"actions orphan",children:[!t.signedContract&&y.jsx(y.Fragment,{children:y.jsx(yt,{txt:L.t("connection.contractSection.sign"),onClick:()=>v()})}),t.signedContract&&y.jsx(y.Fragment,{children:y.jsx(yt,{txt:L.t("forms.backToOverview"),type:Rt.Secondary,onClick:()=>b()})})]})]})})},IP=["overview","testing","prod","application","contract"],Cl=Object.values(Yi).map(t=>({value:t,label:L.t(`connection.${t.toLowerCase()}`)})),MP=()=>{const{applicationId:t,tab:e="overview"}=_s(),{user:a,currentOrganization:i}=It(q=>q),[l,o]=g.useState({}),[c,h]=g.useState({profiles:[],attributes:[]}),[f,m]=g.useState([]),[v,b]=g.useState([]),[S,A]=g.useState(e),[w,R]=g.useState(null),[k,D]=g.useState([]),[I,B]=g.useState([]),[Y,j]=g.useState(!0),[F,Z]=g.useState(0),E=Vn();g.useEffect(()=>{Promise.all([gp(t),EN(),AN(),tb(ur.TEST),tb(ur.PROD)]).then(q=>{const V=q[1].profiles.map(U=>({value:U.name,label:y.jsxs("div",{children:[y.jsx("b",{children:L.t(`connection.informational.profiles.${U.name}.name`)}),y.jsx("br",{}),L.t(`connection.informational.profiles.${U.name}.title`)]})}));o(Iu(q[0],Cl,V,q[1])),h(q[1]),m(q[2]),D(q[3]),B(q[4]),b(V),z(S),j(!1),It.setState({breadcrumbPath:[{path:"/home",value:L.t("breadCrumb.access")},{path:`/organization/${i.id}`,value:i.name},{path:`/application/${t}`,value:L.t("breadCrumb.applications")},{value:q.name}]})})},[]);const x=()=>{j(!0),gp(t).then(q=>{o(Iu(q,Cl,v,c)),R(null),j(!1),Z(new Date().getTime())})},O=(q=ur.TEST,V=!1)=>{const U=L.translations[L.locale].connection.testIdPs.identityProviders;R({new:V,environment:q,protocol:Cl[0],grantTypes:["authorization_code"],pkce:!1,entityID:"",redirectUrls:[""],acsLocations:null,metaData:{},status:Sr.OPEN,motivations:{},additionalAttributes:[],profile:l.type==="APP"?v[0]:v[1],profileMotivation:"",allowedEntities:U.map(P=>P.entityid)});const M=q===ur.TEST?"testing":"prod";A(M),E(`/connection/${t}/${M}`)},z=q=>{(S==="testing"||S==="prod")&&R(null),A(q),E(`/connection/${t}/${q}`)},_=()=>{switch(S){case"overview":return y.jsx(HL,{application:l,user:a,initConnection:O,setTab:z,privacyInfo:f,refreshApp:F});case"testing":return y.jsx(bS,{application:l,connection:w,setConnection:R,initConnection:O,refresh:x,protocolOptions:Cl,arpInfo:c,profileOptions:v,identityProviders:k,isProduction:!1});case"prod":return y.jsx(bS,{application:l,connection:w,setConnection:R,initConnection:O,refresh:x,protocolOptions:Cl,arpInfo:c,profileOptions:v,identityProviders:I,isProduction:!0});case"application":return y.jsx(xP,{application:l,setApplication:o,refresh:x,changeTab:z,privacyInfo:f,protocolOptions:Cl,profileOptions:v,arpInfo:c});case"contract":return y.jsx(RP,{application:l,setApplication:o,changeTab:z,refresh:x,protocolOptions:Cl,profileOptions:v,arpInfo:c});default:throw new Error(`Unknown tab; ${S}`)}};return Y?y.jsx(Ar,{}):y.jsxs("div",{className:"application-connection-container",children:[y.jsx(ML,{tabNames:IP,application:l,tab:S,setLoading:j,setTab:z}),_()]})},DP=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.4,height:24,viewBox:"0 0 12.4 24",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{fill:"none",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M.8.8l10.7 10.7c.1.1.1.2.2.2 0 .1.1.2.1.3s0 .2-.1.3c0 .1-.1.2-.2.2L.8 23.2"})),NP=g.forwardRef(DP),LP=()=>{const t=It(a=>a.breadcrumbPath),e=It(a=>a.clearFlash);return ye(t)?null:y.jsx("nav",{className:"sds--breadcrumb sds--text--body--small","aria-label":"breadcrumbs",children:y.jsx("ol",{className:"sds--breadcrumb--list",children:t.filter(a=>!ye(a)).map((a,i)=>y.jsxs("li",{children:[i!==0&&y.jsx(NP,{}),i+1!==t.length&&a.path&&y.jsx(Dl,{to:a.path,onClick:()=>e(),children:y.jsx("span",{dangerouslySetInnerHTML:{__html:Er.sanitize(a.value)}})}),i+1!==t.length&&!a.path&&y.jsx("span",{className:"last",dangerouslySetInnerHTML:{__html:Er.sanitize(a.value)}}),i+1===t.length&&y.jsx("span",{className:"last",dangerouslySetInnerHTML:{__html:Er.sanitize(a.value)}})]},i))})})},kP=({setIsAuthenticated:t})=>{const e=It(b=>b.user),a=Vn(),[i,l]=g.useState(!1),[o,c]=g.useState(!1),h=b=>{Sa(b),uN().then(()=>{It.setState(()=>({breadcrumbPath:[],user:{}})),a("/home"),t(!1)})},f=b=>{It.setState(()=>({currentOrganization:b})),a("/home")},m=()=>{if(ye(e)||e.organizationMemberships.length<2)return null;const b=e.organizationMemberships.map(S=>S.organization);return y.jsxs("div",{className:"organization-switch",tabIndex:1,onBlur:()=>setTimeout(()=>c(!1),475),children:[y.jsx(yt,{onClick:()=>c(!o),txt:L.t("userMenu.switchOrganization"),icon:y.jsx(y4,{}),type:Rt.Secondary}),o&&y.jsx("section",{className:"organization-switch-section sds--user-info--dropdown",children:b.map((S,A)=>y.jsx("span",{onClick:()=>f(S),children:S.name},A))})]})},v=()=>y.jsx(y.Fragment,{children:y.jsx("ul",{children:y.jsx("li",{children:y.jsx("a",{href:"/logout",onClick:h,children:L.t("landing.header.logout")})})})});return ye(e)?y.jsx(Ar,{}):y.jsxs("div",{className:"user-menu-container",children:[m(),y.jsx("div",{className:"user-menu",tabIndex:2,onBlur:()=>setTimeout(()=>l(!1),325),children:e&&y.jsx(aO,{isOpen:i,children:v(),organisationName:e.schacHomeOrganization,userName:e.name,toggle:()=>l(!i)})})]})},jP=({setIsAuthenticated:t})=>y.jsxs("div",{className:"authorized-header",children:[y.jsx(LP,{}),y.jsx(kP,{setIsAuthenticated:t})]});function _P(t,e,a,i){var l=this,o=g.useRef(null),c=g.useRef(0),h=g.useRef(0),f=g.useRef(null),m=g.useRef([]),v=g.useRef(),b=g.useRef(),S=g.useRef(t),A=g.useRef(!0);S.current=t;var w=typeof window<"u",R=!e&&e!==0&&w;if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0;var k=!!(a=a||{}).leading,D=!("trailing"in a)||!!a.trailing,I="maxWait"in a,B="debounceOnServer"in a&&!!a.debounceOnServer,Y=I?Math.max(+a.maxWait||0,e):null;g.useEffect(function(){return A.current=!0,function(){A.current=!1}},[]);var j=g.useMemo(function(){var F=function(q){var V=m.current,U=v.current;return m.current=v.current=null,c.current=q,h.current=h.current||q,b.current=S.current.apply(U,V)},Z=function(q,V){R&&cancelAnimationFrame(f.current),f.current=R?requestAnimationFrame(q):setTimeout(q,V)},E=function(q){if(!A.current)return!1;var V=q-o.current;return!o.current||V>=e||V<0||I&&q-c.current>=Y},x=function(q){return f.current=null,D&&m.current?F(q):(m.current=v.current=null,b.current)},O=function q(){var V=Date.now();if(k&&h.current===c.current&&z(),E(V))return x(V);if(A.current){var U=e-(V-o.current),M=I?Math.min(U,Y-(V-c.current)):U;Z(q,M)}},z=function(){},_=function(){if(w||B){var q=Date.now(),V=E(q);if(m.current=[].slice.call(arguments),v.current=l,o.current=q,V){if(!f.current&&A.current)return c.current=o.current,Z(O,e),k?F(o.current):b.current;if(I)return Z(O,e),F(o.current)}return f.current||Z(O,e),b.current}};return _.cancel=function(){f.current&&(R?cancelAnimationFrame(f.current):clearTimeout(f.current)),c.current=0,m.current=o.current=v.current=f.current=null},_.isPending=function(){return!!f.current},_.flush=function(){return f.current?x(Date.now()):b.current},_},[k,I,e,Y,D,R,w,B,i]);return j}const UP=({refreshUser:t})=>{const{user:e,setFlash:a}=It(w=>w),[i,l]=g.useState(""),[o,c]=g.useState(!1),[h,f]=g.useState([]),m=g.useRef(null),v=Vn(),b=_P(w=>{cN(w).then(R=>{f(R),c(!1)})},850);g.useEffect(()=>{var w;It.setState({breadcrumbPath:[{path:"/home",value:L.t("breadCrumb.access")},{value:L.t("breadCrumb.landing")}]}),(w=m.current)==null||w.focus()},[]);const S=w=>{const R=w.target.value;l(R),ye(R)?f([]):(c(!0),b(R))},A=()=>{c(!0),mN({name:i}).then(w=>{It.setState({organization:w}),a(L.t("welcome.flash",{name:w.name})),t(),v(`/organization/${w.id}`)})};return y.jsx("div",{className:"landing-container",children:y.jsxs("div",{className:"search",children:[y.jsx("h2",{children:L.t("welcome.greeting",{name:e.name})}),y.jsx("p",{children:L.t("welcome.info")}),y.jsxs("div",{className:"inner-search",children:[y.jsx(hn,{value:i,onChange:S,onRef:w=>m.current=w,placeholder:L.t("welcome.searchPlaceholder")}),y.jsx(qA,{})]}),y.jsxs("div",{className:"organizations-container",children:[ye(h)&&!ye(i)&&!o&&y.jsxs(y.Fragment,{children:[y.jsx("p",{children:L.t("welcome.zeroState")}),y.jsxs("section",{className:"organization register",onClick:()=>A(),children:[y.jsx("p",{dangerouslySetInnerHTML:{__html:L.t("welcome.register",{name:i})}}),y.jsx(Ou,{})]})]}),!ye(h)&&h.map((w,R)=>y.jsxs("section",{className:"organization",onClick:()=>v(`/join/${w.id}`),children:[y.jsxs("div",{children:[y.jsx("p",{children:w.name}),y.jsx("span",{children:L.t("welcome.organizationMembers",{memberCount:w.memberCount,user:L.t(`welcome.${w.memberCount===1?"user":"users"}`),applicationCount:w.applicationCount,application:L.t(`welcome.${w.applicationCount===1?"application":"applications"}`)})})]}),y.jsx(Ou,{})]},R))]})]})})},qP=({refreshUser:t})=>{const{setFlash:e}=It(A=>A),[a,i]=g.useState(!0),[l,o]=g.useState({}),[c,h]=g.useState(!1),[f,m]=g.useState(!1),{organisationId:v}=_s(),b=Vn();if(g.useEffect(()=>{It.setState({breadcrumbPath:[{path:"/home",value:L.t("breadCrumb.access")},{value:L.t("breadCrumb.landing")}]}),hN(v).then(A=>{o(A),i(!1)})},[]),a)return y.jsx(Ar,{});const S=()=>{pN({organizationId:v,language:L.locale}).then(()=>{h(!0),e(L.t("joinRequest.flash",{name:l.name})),t()}).catch(()=>{m(!0)})};return y.jsxs("div",{className:"join-request-container",children:[y.jsx("h2",{children:l.name}),y.jsx("p",{dangerouslySetInnerHTML:{__html:Er.sanitize(L.t("joinRequest.info",{name:l.name}))}}),y.jsxs("section",{className:"actions",children:[y.jsx(yt,{type:Rt.Secondary,txt:L.t("forms.back"),onClick:()=>b("/landing")}),y.jsx(yt,{txt:L.t("joinRequest.requestAccess"),disabled:c||f,onClick:()=>S()})]}),c&&y.jsx(ZS,{confirm:()=>b("/home"),title:L.t("joinRequest.modal.title"),question:L.t("joinRequest.modal.success",{name:l.name}),confirmationButtonLabel:L.t("joinRequest.modal.proceed")}),f&&y.jsx("section",{className:"error",children:y.jsx("p",{className:"error",dangerouslySetInnerHTML:{__html:Er.sanitize(L.t("joinRequest.duplicate",{name:l.name}))}})})]})},zP=({title:t,titleId:e,...a},i)=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:583.04004,height:383,viewBox:"0 0 583.04004 383",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",artist:"Katerina Limpitsouni",source:"https://undraw.co/",ref:i,"aria-labelledby":e,...a},t?g.createElement("title",{id:e},t):null,g.createElement("path",{d:"M499.43737,374.10657l.01561,6.21916v1.31429h-12.00811v-1.97138l-.00783-24.32137-.01566-23.56253v-4.32603l-.00783-17.53894-.00778-.28161-2.08874-59.05495v-.04694l-2.1278-60.19711v-.00783l-.05477-1.63496-10.36532,5.49946-12.78262,6.78248-6.07052,3.22302-8.66777,4.59203-14.61314,7.76029h-.00783l-75.78811,40.20182-.15647,123.57026v1.31429h-11.59352l-.04694-1.31429-3.84885-118.87653-111.77339-44.567-11.8282-4.71717-5.0536-69.7567c-1.2673-17.48413,8.10455-33.51321,22.9367-41.32044,3.6611-1.92445,7.6508-3.34822,11.89079-4.16961l17.06954-3.30907,42.60345-8.2688,13.78392-2.66763,18.01608-3.49681,7.10319-1.37684,11.67956-2.26866,1.05607-.2034,3.29345-.64143,1.17343-.22689,1.90879-.36765,1.34551,2.37814c.00783,0,.00783,.00783,.00783,.01566l7.91676,14.04987,1.42377,2.53465,.00783,.00778,6.86069,12.16462s.00783,.00778,.00783,.01561l6.68073,11.85952,13.11116,2.60499,6.46171,1.28296,40.05313,7.95591,5.28045,1.05607h.00783l13.3615,2.65197,3.53596,.70403,16.5141,3.27779,.12515,.02349,7.33004,1.45505,12.34454,2.4564-6.17227,169.33414,.11736,41.28138v.00783l.0626,22.8976Z",fill:"#3f3d56"}),g.createElement("g",null,g.createElement("path",{d:"M294.50906,47.78273c-1.75232-3.30128-6.79026-10.36532-12.59483-18.29774-1.07956-1.47854-2.18262-2.98052-3.29345-4.49816-1.97921-2.68324-3.9897-5.41342-5.93759-8.07322-1.24381-1.75232-3.67672-2.16691-5.42908-.93093l-11.67173,8.26096c-1.75232,1.23603-2.17474,3.66894-.93093,5.42125l3.51247,4.96756,.92309,1.30641,1.36122,1.92445,1.63496,2.30776v.00778l.46157,.64148,1.62713,2.30776,.89965,1.2673,7.87765,11.13978,3.53596,4.99884c1.23598,1.75232,3.66894,2.16695,5.42125,.93093l10.15409-7.18923,1.4316-1.00913,.08604-.0626c1.75232-1.23603,2.17474-3.66894,.93093-5.42125Z",fill:"#3f3d56"}),g.createElement("path",{d:"M281.89857,29.31291l-3.04311-4.2948c-.05477-.07821-.15647-.09387-.22685-.0391l-.00783,.00783c-.07043,.04694-.08604,.14081-.03127,.21906l3.04307,4.30259c.04694,.07038,.14864,.08604,.22689,.0391,.02344-.01566,.0391-.0391,.05477-.0626,.02344-.05477,.02344-.11736-.01566-.17208Z",fill:"#3f3d56"}),g.createElement("path",{d:"M272.37834,17.12646l21.83086,30.86995c1.07814,1.52455,.77346,3.61074-.65847,4.76853l-.00067,.00048c-.02122,.01703-.04244,.03405-.06481,.05088-.03822,.03005-.07738,.05875-.1177,.08726,0,0-.15542,.09378-.43978,.26464-.28705,.17276-.70552,.42334-1.22875,.7339-.15657,.09358-.32215,.19153-.49694,.29499-.34824,.20595-.73063,.43202-1.14208,.6726-.16357,.09652-.33346,.1955-.50671,.29685-.88535,.51826-1.87936,1.09522-2.93252,1.69687-.17756,.10238-.35694,.20505-.53814,.30799-.04767,.02666-9.04467,3.50856-9.29936,3.14842l-21.83086-30.86995c-1.12281-1.58771-.74605-3.78434,.84166-4.90715l1.71604-1.21356c.27414-.19387,.64562-.13605,.86253,.12078,.01484,.01672,.02969,.03343,.04588,.0492,.24406,.23965,.63145,.25295,.91096,.05529l6.0318-4.26561c.27951-.19767,.39605-.56734,.25143-.87732-.00947-.02052-.02028-.04008-.03109-.05965-.16988-.29009-.1006-.65961,.17354-.85348l1.71605-1.21357c1.58771-1.12281,3.78434-.74605,4.90715,.84166Z",fill:"#008939"}),g.createElement("path",{d:"M259.07923,35.7824l-.76668-1.07956c-.03127-.04694-.08604-.07821-.14864-.07038-.02344,0-.05477,.01561-.07821,.03127-.07043,.05477-.09387,.15647-.0391,.22689l.7588,1.07951c.05477,.07043,.15647,.09392,.23468,.03915,.02349-.01566,.03915-.03915,.04694-.07043,.02349-.04694,.02349-.10953-.00778-.15647Z",fill:"#3f3d56"}),g.createElement("path",{d:"M262.06753,40.01461l-1.47066-2.08874c-.03915-.04694-.09392-.07038-.14864-.06255-.03132,0-.0626,.00783-.07826,.02344-.07821,.05477-.09387,.15647-.0391,.23468l1.47071,2.08091c.05477,.07038,.15647,.09387,.22685,.0391,.02349-.01566,.0391-.0391,.05477-.0626v-.00778c.02349-.04698,.02349-.10953-.01566-.15647Z",fill:"#3f3d56"}),g.createElement("path",{d:"M264.15627,42.97164l-1.47071-2.0887c-.0391-.04694-.09387-.07043-.14081-.0626-.03132,0-.0626,.00783-.08609,.02349-.07821,.05477-.09387,.15647-.0391,.23468l1.47071,2.08087c.05477,.07043,.15647,.09387,.22689,.03915,.02344-.01566,.04694-.03915,.05472-.07043,.02349-.04694,.02349-.10953-.01561-.15647Z",fill:"#3f3d56"}),g.createElement("rect",{x:255.02523,y:24.70378,width:3.20948,height:.41147,rx:.20574,ry:.20574,transform:"translate(32.71789 152.74849) rotate(-35.26749)",fill:"#e6e6e6"}),g.createElement("circle",{cx:266.56009,cy:17.73586,r:.32918,fill:"#e6e6e6"}),g.createElement("circle",{cx:267.29919,cy:17.21318,r:.32918,fill:"#e6e6e6"}),g.createElement("circle",{cx:268.03828,cy:16.6905,r:.32918,fill:"#e6e6e6"})),g.createElement("rect",{x:310.2487,y:36.1501,width:45.37273,height:43.02587,fill:"#2f2e41"}),g.createElement("path",{d:"M278.18505,50.11455c-1.42177,2.30905-3.24719,4.10554-5.13192,5.22255l-12.15486,22.85231-10.70485-6.10187,13.48246-22.52441c.14891-2.18581,.93129-4.62454,2.35306-6.93359,3.24804-5.27503,8.60231-7.87566,11.95913-5.80873,3.35682,2.06694,3.44501,8.01872,.19698,13.29374h0Z",fill:"#a0616a"}),g.createElement("g",null,g.createElement("polygon",{points:"484.46638 355.94074 494.22568 353.98533 489.82281 309.15438 475.42033 312.03913 484.46638 355.94074",fill:"#a0616a"}),g.createElement("path",{d:"M522.32995,368.69929h0c.36903,1.63995-.49561,3.23131-1.93126,3.55437l-19.26906,4.33605s-3.61146-7.19566-12.08086-8.73625l1.9198,11.02275-9.94023,2.23681-2.74057-17.80203s-4.76962-8.78079-.32617-14.81781c4.44351-6.03703,.12078-4.3631,.12078-4.3631l-.26922-11.33922,15.41824-1.61372,3.94321,17.00769,11.09385,15.26607,11.88039,2.87566c1.05741,.25593,1.91447,1.1884,2.18097,2.37272h.00013Z",fill:"#2f2e41"})),g.createElement("path",{d:"M316.11586,126.50443l.78229,5.47602s16.42806,17.99264,20.3395,25.81552l47.45165-23.46866-8.33722-19.55721-60.23622,11.73433Z",fill:"#a0616a"}),g.createElement("path",{d:"M375.56979,132.76274s-44.3379,12.51662-40.55273,25.03323c3.78517,12.51662,6.12293,17.65693,6.12293,17.65693,0,0-8.59607,19.11063,18.00174,27.7158,26.59781,8.60517,83.70487,14.86348,83.70487,14.86348l34.02955,112.2584,16.03691-4.30259-13.01864-129.27318-63.64564-22.49079,3.91144-23.46866-13.2989,5.47602-22.17203-24.53737-9.11951,1.06872Z",fill:"#e6e6e6"}),g.createElement("g",null,g.createElement("polygon",{points:"441.82609 242.20381 451.29455 245.27235 469.38465 204.01768 455.41186 199.48837 441.82609 242.20381",fill:"#a0616a"}),g.createElement("path",{d:"M468.60896,271.85358h0c-.48036,1.61086-2.01294,2.57586-3.42312,2.15534l-18.92728-5.64412s.37008-8.04258-6.26319-13.52929l-3.71764,10.553-9.76392-2.91161,6.31803-16.86729s.13536-9.99166,6.96404-13.08343c6.82873-3.09175,2.23967-3.74635,2.23967-3.74635l5.31206-10.0216,14.23695,6.13477-4.88054,16.76278,2.2081,18.74168,8.9552,8.31971c.79706,.74048,1.08843,1.97301,.74153,3.13633l.00011,.00006Z",fill:"#2f2e41"})),g.createElement("path",{d:"M403.02072,157.79597l17.13951-7.0406,39.89671-25.81552s30.50925-24.40494,32.85612,8.52818-19.55721,83.78187-19.55721,83.78187l-28.16239-7.82289,2.86141-34.86112-36.89096,11.00132-8.14319-27.77124Z",fill:"#e6e6e6"}),g.createElement("polygon",{points:"359.80082 70.83875 381.43695 129.24244 410.77277 161.70741 439.71745 142.93249 406.27307 134.32731 407.16008 114.7701 359.80082 70.83875",fill:"#2f2e41"}),g.createElement("polygon",{points:"232.74005 379.95996 232.74005 381.64001 221.09003 381.64001 221.06006 379.95996 217.03003 165 232.12006 165 232.15002 171.02997 232.74005 379.95996",fill:"#3f3d56"}),g.createElement("path",{d:"M475.17346,146.48811c-2.43366-1.19602-4.39542-2.84254-5.6864-4.61264l-23.90354-9.92923,5.05746-11.23604,23.70323,11.28198c2.19007-.05938,4.69209,.4878,7.12575,1.68382,5.5597,2.73229,8.65716,7.81533,6.91842,11.35331-1.73874,3.53798-7.65523,4.19111-13.21492,1.45882h-.00001Z",fill:"#a0616a"}),g.createElement("path",{d:"M348.97198,67.83279l5.52838-2.39922s21.85172,6.22443,23.80744,9.78785,12.90776,18.4269,12.90776,18.4269l77.44656,32.85612-7.0406,14.08119-54.7602-14.08119-29.72696-31.29154-28.16239-27.3801Z",fill:"#2f2e41"}),g.createElement("path",{d:"M340.36681,63.13906l-25.81552-1.56458-13.2989,7.0406,14.86348,65.71224s43.7712-18.77492,62.95575-12.90776c0,0,6.93896-17.97863-5.32203-28.35095l-20.08387-26.80039-13.2989-3.12915Z",fill:"#008939"}),g.createElement("path",{d:"M312.98671,65.48592l-.24867-2.53734-25.56685,9.57793s-9.38746,7.0406-12.51662,10.16975-12.51662,9.38746-12.51662,9.38746l7.82289-28.16239-12.51662-5.47602s-37.54985,49.28418-19.55721,53.19562c17.99264,3.91144,49.28418-3.12915,49.28418-3.12915l1.56458,86.83402,65.32109,1.95572-26.98895-90.35432-14.08119-41.46129Z",fill:"#2f2e41"}),g.createElement("circle",{cx:332.45499,cy:35.94804,r:22.12275,fill:"#a0616a"}),g.createElement("path",{d:"M321.98303,.16483c-14.13925,2.18844-13.46526,7.44234-17.99264,10.16975-7.97625,4.80508-11.1233,18.68076-6.91086,27.83712,1.12549,2.44647,3.49853,5.78389,2.34687,9.38746-.88409,2.76628-3.43283,4.39818-3.91144,4.69373-3.91755,2.41887-1.35869-.45875-3.12915,1.56458-1.95419,2.23332,1.07316,5.38797-.78229,9.38746-1.64479,3.5457-5.0356,3.24642-5.47602,5.47602-.75841,3.83934,7.94626,11.5591,17.21035,10.95204,8.24841-.5405,14.37589-7.51387,16.42806-14.08119,1.37454-4.39923,1.96718-11.96628-1.56458-15.64577-.49542-.51605-1.84953-1.76578-3.12915-3.91144-1.01262-1.69798-2.34572-3.93312-1.56458-5.47602,.83214-1.64374,3.19142-.77856,4.69373-2.34687,2.03746-2.12685-.38331-5.7202,0-9.38746,.64917-6.2098,9.44781-13.67849,18.77492-12.51662,10.58095,1.31801,14.46202,12.82382,14.86348,14.08119,.83214,2.60604,.81552,5.12727,.78229,10.16975-.04756,7.23636-.07754,11.77186-2.34687,16.42806-3.26399,6.69701-7.42238,5.97345-8.60517,10.95204-1.84399,7.76234,6.8307,15.5582,7.82289,16.42806,7.35611,6.44853,18.46648,8.38745,20.3395,5.47602,1.68776-2.62361-5.72182-6.70474-5.47602-14.86348,.21295-7.0703,5.93477-9.2256,4.69373-14.08119-1.36595-5.34491-8.65502-4.12564-11.73433-10.16975-2.87418-5.64161,2.42269-8.77172,1.56458-20.3395-.18163-2.44704-.94998-9.47006-5.47602-16.42806-1.99392-3.06536-4.02183-6.18296-7.82289-7.82289-4.25522-1.83588-16.1191-7.09062-23.5984-5.93304Z",fill:"#2f2e41"}),g.createElement("path",{d:"M312.59556,19.72205c.57392,4.84423,7.84819,7.21822,10.95204,7.82289,1.31457,.25612,5.75687,1.12148,10.16975-.78229,1.63104-.7037,2.2253-1.34007,3.91144-1.56458,2.28279-.30386,3.43292,.56437,7.0406,1.56458,4.01171,1.11222,6.01766,1.66838,7.0406,.78229,1.67229-1.44846,.38761-6.18697-1.56458-9.38746-3.60968-5.91787-10.21721-7.75041-13.2989-8.60517-3.52087-.97652-10.66575-2.95822-17.21035,.78229-.87501,.5001-7.62368,4.46569-7.0406,9.38746Z",fill:"#2f2e41"}),g.createElement("g",null,g.createElement("path",{d:"M483.68471,146.63992c-10.43948,4.86837-14.58904-1.48957-14.58904-1.48957l.00415-1.89506,.03113-24.37561c7.27147-4.7458,19.54235,2.1471,19.54235,2.1471l-4.72174,24.2419-.26685,1.37123Z",fill:"#3f3d56"}),g.createElement("path",{d:"M487.06212,116.56984s-10.79344-4.62127-16.62296-1.14054c0,0-6.07931,6.16086-1.31837,7.95196l18.74104,1.81606s4.26221-2.8578,2.40346-5.20921-3.20317-3.41826-3.20317-3.41826Z",fill:"#008939"})),g.createElement("polygon",{points:"101.03003 310 110.03003 383 179.03003 382 179.88042 310 101.03003 310",fill:"#f2f2f2"}),g.createElement("path",{d:"M158.33843,297.86192c-2.06596,.12943-3.20775-2.43734-1.64474-3.93332l.1555-.61819c-.02037-.04925-.04083-.09845-.06146-.14762-2.09427-4.99272-5.84395-.27999-11.24767,.05533-7.94717,.49316-7.82846,6.50372-4.74985,13.53162,.83575,1.90784-6.25866-13.48616-6.25866-23.82032,0-2.59652,.14213-5.19301,.43275-7.78295,.239-2.11854,.56839-4.2241,.99471-6.31034,2.30575-11.2772,7.29852-22.01825,14.50012-30.98962,3.46197-1.89248,6.34906-4.85065,8.09295-8.39652,.62649-1.27891,6.00922-2.35919,6.24173-3.76075-.39398,.05168-6.37738-6.24409-6.08023-6.61223-.54906-.83317-1.53178-1.24733-2.13144-2.06034-2.98232-4.04341-7.0912-3.33741-9.23621,2.15727-4.58224,2.31266-4.62659,6.14806-1.81495,9.83683,1.78878,2.34682,2.03456,5.52233,3.60408,8.03478-.16151,.20671-.32944,.40695-.4909,.61366-.06206,.0796-.12395,.15933-.18566,.23918-2.53339,3.27809-7.59193,2.43844-9.00273-1.45689-.1029-.28411-.97613,15.10569-.31905-.82329,.65709-15.92897-5.07197-7.82005-7.97245-11.49344-3.46441-4.3876-10.51175-2.39353-11.1222,3.16349-.00584,.05317-.01153,.10628-.01712,.15945,.42892,.24196,.84911,.49906,1.25955,.77052,2.33935,1.54727,1.53003,5.17388-1.24198,5.60114l-.06277,.00967c.15503,1.54366,.41984,3.07444,.80734,4.57937-3.70089,14.31228,4.2862,19.52734,15.69314,19.76387l.5944,.84585c-1.08016,3.10807-1.94912,6.29072-2.60119,9.5144-.61359,2.99043-1.03991,6.01317-1.27885,9.04888l-.00995,.12979c-.19788,2.58248-3.46534,3.68083-5.10761,1.67801-.41796-.50972-.84567-.95654-1.27676-1.31047-4.94561-4.06264-11.93282-5.55869-17.26826-8.82425-2.56833-1.57196-5.85945,.45945-5.41121,3.43708l.02182,.14261c.79443,.32289,1.56947,.69755,2.31871,1.11733,.42928,.24222,.84982,.49949,1.26059,.77121,2.3397,1.54767,1.52974,5.17477-1.24303,5.60051l-.06282,.00965c-.0452,.00646-.08397,.01295-.12911,.01944l.04105,.097c1.78382,4.19631,6.04734,6.91423,10.60025,6.66528,5.35922-.29304,12.01607,4.18781,17.88748,12.11045l.00647,.00002c1.16259,5.06378,2.86128,10.01127,5.0444,14.72621h18.02019c.06463-.20022,.12274-.40692,.18089-.60717-1.6664,.10341-3.34571,.00649-4.98629-.29702,1.33701-1.64059,2.67396-3.29409,4.01097-4.93462,.03229-.0323,.05816-.0646,.08397-.09689,.67817-.8396,1.36282-1.67283,2.04099-2.51245l.00036-.001c.04245-2.57756-.26652-5.14664-.87876-7.63987l-.00051-.00036Z",fill:"#f2f2f2"}),g.createElement("path",{d:"M583.04004,381.79999h0c0,.46394-.37609,.84003-.84003,.84003H0v-1.68005H582.20001c.46393,0,.84003,.37609,.84003,.84003Z",fill:"#e6e6e6"})),PP=g.forwardRef(zP),HP=()=>{const{user:t,currentOrganization:e}=It(i=>i),a=Vn();return g.useEffect(()=>{It.setState({breadcrumbPath:[{path:"/home",value:L.t("breadCrumb.access")},{value:L.t("breadCrumb.home")}]}),ye(e==null?void 0:e.id)||a(`/organization/${e.id}`)},[e]),y.jsxs("div",{className:"home-container",children:[y.jsx("h2",{children:L.t("welcome.greeting",{name:t.name})}),ye(t.joinRequests)&&y.jsxs("div",{className:"nudge-landing",children:[y.jsx("span",{children:L.t("userHome.nudgeLanding")}),y.jsx(Dl,{to:"/landing",children:y.jsx("span",{children:L.t("userHome.nudgeLandingLink")})})]}),!ye(t.joinRequests)&&y.jsxs("div",{children:[y.jsx("p",{dangerouslySetInnerHTML:{__html:Er.sanitize(L.t("userHome.infoJoinRequest",{name:t.joinRequests[0].organization.name}))}}),y.jsx(PP,{})]})]})},BP=()=>{const t=It(a=>a.config),e=Ga();return g.useEffect(()=>{localStorage.setItem(vp,e.pathname+e.search),PE(t)},[]),y.jsx(Ar,{})},FP=()=>{const[t,e]=g.useState(!0),[a,i]=g.useState(!1),l=Vn(),o=Ga(),c=()=>y.jsxs(y.Fragment,{children:[y.jsx(Xn,{path:"/home",element:y.jsx(PN,{})}),y.jsx(Xn,{path:"/institutions",element:y.jsx(tL,{})}),y.jsx(Xn,{path:"/connect",element:y.jsx(nL,{})}),y.jsx(Xn,{path:"/applications",element:y.jsx(rL,{})})]}),h=()=>{eb().then(f=>It.setState(()=>({user:f})))};return g.useEffect(()=>{oN().then(f=>{It.setState(()=>({csrfToken:f.token})),sN().then(m=>{It.setState(()=>({config:m})),i(m.authenticated),m.authenticated?eb().then(v=>{It.setState(()=>({user:v})),ye(v.organizationMemberships)?(It.setState(()=>({menuItems:["home"]})),l("/landing")):It.setState(()=>({menuItems:["home","applications","teams"],currentOrganization:v.organizationMemberships.map(S=>S.organization)[0]}));const b=localStorage.getItem(vp);ye(b)||(localStorage.removeItem(vp),l(b)),e(!1)}):e(!1)}).catch(()=>{e(!1),l("/home")})})},[]),t?y.jsx(Ar,{}):y.jsxs("div",{className:"access",children:[a&&y.jsxs(y.Fragment,{children:[y.jsx(ON,{}),y.jsxs("div",{className:"container",children:[y.jsx(dL,{}),y.jsxs("div",{className:"pages",children:[y.jsx(jP,{setIsAuthenticated:i}),y.jsxs(fp,{children:[y.jsx(Xn,{path:"/",element:y.jsx(s7,{replace:!0,to:"/home"})}),y.jsx(Xn,{path:"/landing",element:y.jsx(UP,{refreshUser:h})}),y.jsx(Xn,{path:"/home",element:y.jsx(HP,{})}),y.jsx(Xn,{path:"/organization/:organizationId/:tab?",element:y.jsx(eL,{})}),y.jsx(Xn,{path:"/application/:applicationId",element:y.jsx(OL,{})}),y.jsx(Xn,{path:"/join/:organisationId",element:y.jsx(qP,{refreshUser:h})}),y.jsx(Xn,{path:"/connection/:applicationId/:tab?",element:y.jsx(MP,{})}),y.jsx(Xn,{path:"/refresh-route/:path",element:y.jsx(_N,{})}),y.jsx(Xn,{path:"*",element:y.jsx(jN,{})})]})]})]})]}),!a&&y.jsxs(y.Fragment,{children:[y.jsx(NN,{currentLocation:o}),y.jsxs(fp,{children:[y.jsx(Xn,{path:"/",element:y.jsx(s7,{replace:!0,to:"home"})}),c(),y.jsx(Xn,{path:"/*",element:y.jsx(BP,{})})]}),y.jsx(HN,{})]})]})},VP=Wx.createRoot(document.getElementById("root"));VP.render(y.jsx(g.StrictMode,{children:y.jsx(yR,{children:y.jsx(fp,{children:y.jsx(Xn,{path:"/*",element:y.jsx(FP,{})})})})}));
