@ws-ui/shared 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,158 +1,156 @@
1
- "use strict";var oS=Object.defineProperty;var aS=(e,r,n)=>r in e?oS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var Gd=(e,r,n)=>(aS(e,typeof r!="symbol"?r+"":r,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),yo=require("react-dom"),hl=require("@emotion/react");function Eh(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const L=Eh(N),sS=Eh(yo);var zr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uS(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),n}var vl={exports:{}},bi={};/*
1
+ "use strict";var U_=Object.defineProperty;var H_=(e,t,r)=>t in e?U_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wt=(e,t,r)=>(H_(e,typeof t!="symbol"?t+"":t,r),r),ml=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var X=(e,t,r)=>(ml(e,t,"read from private field"),r?r.call(e):t.get(e)),Wt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},gt=(e,t,r,i)=>(ml(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var $n=(e,t,r)=>(ml(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),Qo=require("react-dom"),ac=require("@emotion/react");function Fv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const F=Fv(N),B_=Fv(Qo);var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var sc={exports:{}},Ki={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var Cu,Kd;function Wl(){if(Kd)return Cu;Kd=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(d.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(g){v[g]=g}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cu=a()?Object.assign:function(u,l){for(var f,d=o(u),v,g=1;g<arguments.length;g++){f=Object(arguments[g]);for(var _ in f)r.call(f,_)&&(d[_]=f[_]);if(e){v=e(f);for(var O=0;O<v.length;O++)n.call(f,v[O])&&(d[v[O]]=f[v[O]])}}return d},Cu}/** @license React v17.0.2
5
+ */var gl,Vp;function Dc(){if(Vp)return gl;Vp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gl=a()?Object.assign:function(s,l){for(var c,d=i(s),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var w in c)t.call(c,w)&&(d[w]=c[w]);if(e){p=e(c);for(var S=0;S<p.length;S++)r.call(c,p[S])&&(d[p[S]]=c[p[S]])}}return d},gl}/** @license React v17.0.2
6
6
  * react-jsx-runtime.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var Yd;function lS(){if(Yd)return bi;Yd=1,Wl();var e=N,r=60103;if(bi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),bi.Fragment=n("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(f,d,v){var g,_={},O=null,m=null;v!==void 0&&(O=""+v),d.key!==void 0&&(O=""+d.key),d.ref!==void 0&&(m=d.ref);for(g in d)a.call(d,g)&&!u.hasOwnProperty(g)&&(_[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)_[g]===void 0&&(_[g]=d[g]);return{$$typeof:r,type:f,key:O,ref:m,props:_,_owner:o.current}}return bi.jsx=l,bi.jsxs=l,bi}var Ru={};/** @license React v17.0.2
12
+ */var Xp;function q_(){if(Xp)return Ki;Xp=1,Dc();var e=N,t=60103;if(Ki.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),Ki.Fragment=r("react.fragment")}var i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,p){var h,w={},S=null,v=null;p!==void 0&&(S=""+p),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(v=d.ref);for(h in d)a.call(d,h)&&!s.hasOwnProperty(h)&&(w[h]=d[h]);if(c&&c.defaultProps)for(h in d=c.defaultProps,d)w[h]===void 0&&(w[h]=d[h]);return{$$typeof:t,type:c,key:S,ref:v,props:w,_owner:i.current}}return Ki.jsx=l,Ki.jsxs=l,Ki}var yl={};/** @license React v17.0.2
13
13
  * react-jsx-runtime.development.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var Xd;function cS(){return Xd||(Xd=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=N,n=Wl(),o=60103,a=60106;e.Fragment=60107;var u=60108,l=60114,f=60109,d=60110,v=60112,g=60113,_=60120,O=60115,m=60116,S=60121,y=60122,E=60117,D=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;o=C("react.element"),a=C("react.portal"),e.Fragment=C("react.fragment"),u=C("react.strict_mode"),l=C("react.profiler"),f=C("react.provider"),d=C("react.context"),v=C("react.forward_ref"),g=C("react.suspense"),_=C("react.suspense_list"),O=C("react.memo"),m=C("react.lazy"),S=C("react.block"),y=C("react.server.block"),E=C("react.fundamental"),C("react.scope"),C("react.opaque.id"),D=C("react.debug_trace_mode"),C("react.offscreen"),I=C("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function H(p){if(p===null||typeof p!="object")return null;var P=k&&p[k]||p[T];return typeof P=="function"?P:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(p){{for(var P=arguments.length,F=new Array(P>1?P-1:0),Y=1;Y<P;Y++)F[Y-1]=arguments[Y];J("error",p,F)}}function J(p,P,F){{var Y=U.ReactDebugCurrentFrame,oe=Y.getStackAddendum();oe!==""&&(P+="%s",F=F.concat([oe]));var ae=F.map(function(te){return""+te});ae.unshift("Warning: "+P),Function.prototype.apply.call(console[p],console,ae)}}var ee=!1;function ge(p){return!!(typeof p=="string"||typeof p=="function"||p===e.Fragment||p===l||p===D||p===u||p===g||p===_||p===I||ee||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===O||p.$$typeof===f||p.$$typeof===d||p.$$typeof===v||p.$$typeof===E||p.$$typeof===S||p[0]===y))}function Ce(p,P,F){var Y=P.displayName||P.name||"";return p.displayName||(Y!==""?F+"("+Y+")":F)}function _e(p){return p.displayName||"Context"}function se(p){if(p==null)return null;if(typeof p.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case _:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case d:var P=p;return _e(P)+".Consumer";case f:var F=p;return _e(F._context)+".Provider";case v:return Ce(p,p.render,"ForwardRef");case O:return se(p.type);case S:return se(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return se(ae(oe))}catch{return null}}}return null}var Le=0,we,xe,We,ut,G,X,de;function ie(){}ie.__reactDisabledLog=!0;function ce(){{if(Le===0){we=console.log,xe=console.info,We=console.warn,ut=console.error,G=console.group,X=console.groupCollapsed,de=console.groupEnd;var p={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}Le++}}function fe(){{if(Le--,Le===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},p,{value:we}),info:n({},p,{value:xe}),warn:n({},p,{value:We}),error:n({},p,{value:ut}),group:n({},p,{value:G}),groupCollapsed:n({},p,{value:X}),groupEnd:n({},p,{value:de})})}Le<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=U.ReactCurrentDispatcher,pe;function le(p,P,F){{if(pe===void 0)try{throw Error()}catch(oe){var Y=oe.stack.trim().match(/\n( *(at )?)/);pe=Y&&Y[1]||""}return`
20
- `+pe+p}}var ye=!1,be;{var Ke=typeof WeakMap=="function"?WeakMap:Map;be=new Ke}function V(p,P){if(!p||ye)return"";{var F=be.get(p);if(F!==void 0)return F}var Y;ye=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,ce();try{if(P){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(lt){Y=lt}Reflect.construct(p,[],te)}else{try{te.call()}catch(lt){Y=lt}p.call(te.prototype)}}else{try{throw Error()}catch(lt){Y=lt}p()}}catch(lt){if(lt&&Y&&typeof lt.stack=="string"){for(var Q=lt.stack.split(`
21
- `),je=Y.stack.split(`
22
- `),Se=Q.length-1,Oe=je.length-1;Se>=1&&Oe>=0&&Q[Se]!==je[Oe];)Oe--;for(;Se>=1&&Oe>=0;Se--,Oe--)if(Q[Se]!==je[Oe]){if(Se!==1||Oe!==1)do if(Se--,Oe--,Oe<0||Q[Se]!==je[Oe]){var ot=`
23
- `+Q[Se].replace(" at new "," at ");return typeof p=="function"&&be.set(p,ot),ot}while(Se>=1&&Oe>=0);break}}}finally{ye=!1,ue.current=ae,fe(),Error.prepareStackTrace=oe}var kt=p?p.displayName||p.name:"",Ir=kt?le(kt):"";return typeof p=="function"&&be.set(p,Ir),Ir}function rt(p,P,F){return V(p,!1)}function it(p){var P=p.prototype;return!!(P&&P.isReactComponent)}function dt(p,P,F){if(p==null)return"";if(typeof p=="function")return V(p,it(p));if(typeof p=="string")return le(p);switch(p){case g:return le("Suspense");case _:return le("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case v:return rt(p.render);case O:return dt(p.type,P,F);case S:return rt(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return dt(ae(oe),P,F)}catch{}}}return""}var An={},gt=U.ReactDebugCurrentFrame;function Wt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);gt.setExtraStackFrame(F)}else gt.setExtraStackFrame(null)}function Sr(p,P,F,Y,oe){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var te in p)if(ae(p,te)){var Q=void 0;try{if(typeof p[te]!="function"){var je=Error((Y||"React class")+": "+F+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=p[te](P,te,Y,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){Q=Se}Q&&!(Q instanceof Error)&&(Wt(oe),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Y||"React class",F,te,typeof Q),Wt(null)),Q instanceof Error&&!(Q.message in An)&&(An[Q.message]=!0,Wt(oe),j("Failed %s type: %s",F,Q.message),Wt(null))}}}var Je=U.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,rn={key:!0,ref:!0,__self:!0,__source:!0},Kt,yn,Tt;Tt={};function rr(p){if(Qe.call(p,"ref")){var P=Object.getOwnPropertyDescriptor(p,"ref").get;if(P&&P.isReactWarning)return!1}return p.ref!==void 0}function on(p){if(Qe.call(p,"key")){var P=Object.getOwnPropertyDescriptor(p,"key").get;if(P&&P.isReactWarning)return!1}return p.key!==void 0}function Yt(p,P){if(typeof p.ref=="string"&&Je.current&&P&&Je.current.stateNode!==P){var F=se(Je.current.type);Tt[F]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',se(Je.current.type),p.ref),Tt[F]=!0)}}function Er(p,P){{var F=function(){Kt||(Kt=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};F.isReactWarning=!0,Object.defineProperty(p,"key",{get:F,configurable:!0})}}function xr(p,P){{var F=function(){yn||(yn=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};F.isReactWarning=!0,Object.defineProperty(p,"ref",{get:F,configurable:!0})}}var Or=function(p,P,F,Y,oe,ae,te){var Q={$$typeof:o,type:p,key:P,ref:F,props:te,_owner:ae};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function Tr(p,P,F,Y,oe){{var ae,te={},Q=null,je=null;F!==void 0&&(Q=""+F),on(P)&&(Q=""+P.key),rr(P)&&(je=P.ref,Yt(P,oe));for(ae in P)Qe.call(P,ae)&&!rn.hasOwnProperty(ae)&&(te[ae]=P[ae]);if(p&&p.defaultProps){var Se=p.defaultProps;for(ae in Se)te[ae]===void 0&&(te[ae]=Se[ae])}if(Q||je){var Oe=typeof p=="function"?p.displayName||p.name||"Unknown":p;Q&&Er(te,Oe),je&&xr(te,Oe)}return Or(p,Q,je,oe,Y,Je.current,te)}}var wn=U.ReactCurrentOwner,Un=U.ReactDebugCurrentFrame;function bt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);Un.setExtraStackFrame(F)}else Un.setExtraStackFrame(null)}var bn;bn=!1;function _n(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function Cr(){{if(wn.current){var p=se(wn.current.type);if(p)return`
19
+ */var Jp;function Z_(){return Jp||(Jp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=N,r=Dc(),i=60103,a=60106;e.Fragment=60107;var s=60108,l=60114,c=60109,d=60110,p=60112,h=60113,w=60120,S=60115,v=60116,_=60121,g=60122,x=60117,C=60129,P=60131;if(typeof Symbol=="function"&&Symbol.for){var T=Symbol.for;i=T("react.element"),a=T("react.portal"),e.Fragment=T("react.fragment"),s=T("react.strict_mode"),l=T("react.profiler"),c=T("react.provider"),d=T("react.context"),p=T("react.forward_ref"),h=T("react.suspense"),w=T("react.suspense_list"),S=T("react.memo"),v=T("react.lazy"),_=T("react.block"),g=T("react.server.block"),x=T("react.fundamental"),T("react.scope"),T("react.opaque.id"),C=T("react.debug_trace_mode"),T("react.offscreen"),P=T("react.legacy_hidden")}var $=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function D(m){if(m===null||typeof m!="object")return null;var I=$&&m[$]||m[A];return typeof I=="function"?I:null}var H=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(m){{for(var I=arguments.length,W=new Array(I>1?I-1:0),K=1;K<I;K++)W[K-1]=arguments[K];V("error",m,W)}}function V(m,I,W){{var K=H.ReactDebugCurrentFrame,ce=K.getStackAddendum();ce!==""&&(I+="%s",W=W.concat([ce]));var ae=W.map(function(re){return""+re});ae.unshift("Warning: "+I),Function.prototype.apply.call(console[m],console,ae)}}var ee=!1;function ye(m){return!!(typeof m=="string"||typeof m=="function"||m===e.Fragment||m===l||m===C||m===s||m===h||m===w||m===P||ee||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===S||m.$$typeof===c||m.$$typeof===d||m.$$typeof===p||m.$$typeof===x||m.$$typeof===_||m[0]===g))}function Re(m,I,W){var K=I.displayName||I.name||"";return m.displayName||(K!==""?W+"("+K+")":W)}function Ee(m){return m.displayName||"Context"}function se(m){if(m==null)return null;if(typeof m.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case w:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case d:var I=m;return Ee(I)+".Consumer";case c:var W=m;return Ee(W._context)+".Provider";case p:return Re(m,m.render,"ForwardRef");case S:return se(m.type);case _:return se(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return se(ae(ce))}catch{return null}}}return null}var Fe=0,be,Oe,Be,pt,Z,Y,pe;function oe(){}oe.__reactDisabledLog=!0;function fe(){{if(Fe===0){be=console.log,Oe=console.info,Be=console.warn,pt=console.error,Z=console.group,Y=console.groupCollapsed,pe=console.groupEnd;var m={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Fe++}}function de(){{if(Fe--,Fe===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},m,{value:be}),info:r({},m,{value:Oe}),warn:r({},m,{value:Be}),error:r({},m,{value:pt}),group:r({},m,{value:Z}),groupCollapsed:r({},m,{value:Y}),groupEnd:r({},m,{value:pe})})}Fe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=H.ReactCurrentDispatcher,he;function le(m,I,W){{if(he===void 0)try{throw Error()}catch(ce){var K=ce.stack.trim().match(/\n( *(at )?)/);he=K&&K[1]||""}return`
20
+ `+he+m}}var we=!1,Se;{var Ve=typeof WeakMap=="function"?WeakMap:Map;Se=new Ve}function J(m,I){if(!m||we)return"";{var W=Se.get(m);if(W!==void 0)return W}var K;we=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,fe();try{if(I){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(ht){K=ht}Reflect.construct(m,[],re)}else{try{re.call()}catch(ht){K=ht}m.call(re.prototype)}}else{try{throw Error()}catch(ht){K=ht}m()}}catch(ht){if(ht&&K&&typeof ht.stack=="string"){for(var te=ht.stack.split(`
21
+ `),je=K.stack.split(`
22
+ `),_e=te.length-1,Ae=je.length-1;_e>=1&&Ae>=0&&te[_e]!==je[Ae];)Ae--;for(;_e>=1&&Ae>=0;_e--,Ae--)if(te[_e]!==je[Ae]){if(_e!==1||Ae!==1)do if(_e--,Ae--,Ae<0||te[_e]!==je[Ae]){var lt=`
23
+ `+te[_e].replace(" at new "," at ");return typeof m=="function"&&Se.set(m,lt),lt}while(_e>=1&&Ae>=0);break}}}finally{we=!1,ue.current=ae,de(),Error.prepareStackTrace=ce}var Yt=m?m.displayName||m.name:"",ni=Yt?le(Yt):"";return typeof m=="function"&&Se.set(m,ni),ni}function st(m,I,W){return J(m,!1)}function ut(m){var I=m.prototype;return!!(I&&I.isReactComponent)}function yt(m,I,W){if(m==null)return"";if(typeof m=="function")return J(m,ut(m));if(typeof m=="string")return le(m);switch(m){case h:return le("Suspense");case w:return le("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case p:return st(m.render);case S:return yt(m.type,I,W);case _:return st(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return yt(ae(ce),I,W)}catch{}}}return""}var Gr={},At=H.ReactDebugCurrentFrame;function er(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);At.setExtraStackFrame(W)}else At.setExtraStackFrame(null)}function Kn(m,I,W,K,ce){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var re in m)if(ae(m,re)){var te=void 0;try{if(typeof m[re]!="function"){var je=Error((K||"React class")+": "+W+" type `"+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}te=m[re](I,re,K,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){te=_e}te&&!(te instanceof Error)&&(er(ce),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",K||"React class",W,re,typeof te),er(null)),te instanceof Error&&!(te.message in Gr)&&(Gr[te.message]=!0,er(ce),j("Failed %s type: %s",W,te.message),er(null))}}}var et=H.ReactCurrentOwner,rt=Object.prototype.hasOwnProperty,yr={key:!0,ref:!0,__self:!0,__source:!0},sr,Lr,Nt;Nt={};function xn(m){if(rt.call(m,"ref")){var I=Object.getOwnPropertyDescriptor(m,"ref").get;if(I&&I.isReactWarning)return!1}return m.ref!==void 0}function wr(m){if(rt.call(m,"key")){var I=Object.getOwnPropertyDescriptor(m,"key").get;if(I&&I.isReactWarning)return!1}return m.key!==void 0}function ur(m,I){if(typeof m.ref=="string"&&et.current&&I&&et.current.stateNode!==I){var W=se(et.current.type);Nt[W]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',se(et.current.type),m.ref),Nt[W]=!0)}}function Yn(m,I){{var W=function(){sr||(sr=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(m,"key",{get:W,configurable:!0})}}function Vn(m,I){{var W=function(){Lr||(Lr=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(m,"ref",{get:W,configurable:!0})}}var Xn=function(m,I,W,K,ce,ae,re){var te={$$typeof:i,type:m,key:I,ref:W,props:re,_owner:ae};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Jn(m,I,W,K,ce){{var ae,re={},te=null,je=null;W!==void 0&&(te=""+W),wr(I)&&(te=""+I.key),xn(I)&&(je=I.ref,ur(I,ce));for(ae in I)rt.call(I,ae)&&!yr.hasOwnProperty(ae)&&(re[ae]=I[ae]);if(m&&m.defaultProps){var _e=m.defaultProps;for(ae in _e)re[ae]===void 0&&(re[ae]=_e[ae])}if(te||je){var Ae=typeof m=="function"?m.displayName||m.name||"Unknown":m;te&&Yn(re,Ae),je&&Vn(re,Ae)}return Xn(m,te,je,ce,K,et.current,re)}}var $r=H.ReactCurrentOwner,un=H.ReactDebugCurrentFrame;function It(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);un.setExtraStackFrame(W)}else un.setExtraStackFrame(null)}var Dr;Dr=!1;function Nr(m){return typeof m=="object"&&m!==null&&m.$$typeof===i}function Qn(){{if($r.current){var m=se($r.current.type);if(m)return`
24
24
 
25
- Check the render method of \``+p+"`."}return""}}function ki(p){{if(p!==void 0){var P=p.fileName.replace(/^.*[\\\/]/,""),F=p.lineNumber;return`
25
+ Check the render method of \``+m+"`."}return""}}function co(m){{if(m!==void 0){var I=m.fileName.replace(/^.*[\\\/]/,""),W=m.lineNumber;return`
26
26
 
27
- Check your code at `+P+":"+F+"."}return""}}var Rr={};function ii(p){{var P=Cr();if(!P){var F=typeof p=="string"?p:p.displayName||p.name;F&&(P=`
27
+ Check your code at `+I+":"+W+"."}return""}}var ei={};function Mi(m){{var I=Qn();if(!I){var W=typeof m=="string"?m:m.displayName||m.name;W&&(I=`
28
28
 
29
- Check the top-level render call using <`+F+">.")}return P}}function ir(p,P){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var F=ii(P);if(Rr[F])return;Rr[F]=!0;var Y="";p&&p._owner&&p._owner!==wn.current&&(Y=" It was passed a child from "+se(p._owner.type)+"."),bt(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Y),bt(null)}}function Pr(p,P){{if(typeof p!="object")return;if(Array.isArray(p))for(var F=0;F<p.length;F++){var Y=p[F];_n(Y)&&ir(Y,P)}else if(_n(p))p._store&&(p._store.validated=!0);else if(p){var oe=H(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)_n(te.value)&&ir(te.value,P)}}}function Ni(p){{var P=p.type;if(P==null||typeof P=="string")return;var F;if(typeof P=="function")F=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===v||P.$$typeof===O))F=P.propTypes;else return;if(F){var Y=se(P);Sr(F,p.props,"prop",Y,p)}else if(P.PropTypes!==void 0&&!bn){bn=!0;var oe=se(P);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $i(p){{for(var P=Object.keys(p.props),F=0;F<P.length;F++){var Y=P[F];if(Y!=="children"&&Y!=="key"){bt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),bt(null);break}}p.ref!==null&&(bt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function Ar(p,P,F,Y,oe,ae){{var te=ge(p);if(!te){var Q="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=ki(oe);je?Q+=je:Q+=Cr();var Se;p===null?Se="null":Array.isArray(p)?Se="array":p!==void 0&&p.$$typeof===o?(Se="<"+(se(p.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,Q)}var Oe=Tr(p,P,F,oe,ae);if(Oe==null)return Oe;if(te){var ot=P.children;if(ot!==void 0)if(Y)if(Array.isArray(ot)){for(var kt=0;kt<ot.length;kt++)Pr(ot[kt],p);Object.freeze&&Object.freeze(ot)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pr(ot,p)}return p===e.Fragment?$i(Oe):Ni(Oe),Oe}}function oi(p,P,F){return Ar(p,P,F,!0)}function ji(p,P,F){return Ar(p,P,F,!1)}var Fi=ji,Wi=oi;e.jsx=Fi,e.jsxs=Wi}()}(Ru)),Ru}process.env.NODE_ENV==="production"?vl.exports=lS():vl.exports=cS();var $=vl.exports;const Oh=({children:e})=>yo.createPortal(e,document.querySelector("body"));var Vd=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},Jd=typeof window<"u"&&window.document&&window.document.createElement?L.useLayoutEffect:L.useEffect,qt="top",mn="bottom",gn="right",Gt="left",Hl="auto",wo=[qt,mn,gn,Gt],Pi="start",lo="end",fS="clippingParents",Th="viewport",no="popper",dS="reference",Zd=wo.reduce(function(e,r){return e.concat([r+"-"+Pi,r+"-"+lo])},[]),Ch=[].concat(wo,[Hl]).reduce(function(e,r){return e.concat([r,r+"-"+Pi,r+"-"+lo])},[]),pS="beforeRead",hS="read",vS="afterRead",mS="beforeMain",gS="main",yS="afterMain",wS="beforeWrite",bS="write",_S="afterWrite",SS=[pS,hS,vS,mS,gS,yS,wS,bS,_S];function Fn(e){return e?(e.nodeName||"").toLowerCase():null}function nn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function Jr(e){var r=nn(e).Element;return e instanceof r||e instanceof Element}function vn(e){var r=nn(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function Ul(e){if(typeof ShadowRoot>"u")return!1;var r=nn(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function ES(e){var r=e.state;Object.keys(r.elements).forEach(function(n){var o=r.styles[n]||{},a=r.attributes[n]||{},u=r.elements[n];!vn(u)||!Fn(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(l){var f=a[l];f===!1?u.removeAttribute(l):u.setAttribute(l,f===!0?"":f)}))})}function xS(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(o){var a=r.elements[o],u=r.attributes[o]||{},l=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:n[o]),f=l.reduce(function(d,v){return d[v]="",d},{});!vn(a)||!Fn(a)||(Object.assign(a.style,f),Object.keys(u).forEach(function(d){a.removeAttribute(d)}))})}}const OS={name:"applyStyles",enabled:!0,phase:"write",fn:ES,effect:xS,requires:["computeStyles"]};function jn(e){return e.split("-")[0]}var Yr=Math.max,za=Math.min,Ai=Math.round;function ml(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function Rh(){return!/^((?!chrome|android).)*safari/i.test(ml())}function Ii(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,u=1;r&&vn(e)&&(a=e.offsetWidth>0&&Ai(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Ai(o.height)/e.offsetHeight||1);var l=Jr(e)?nn(e):window,f=l.visualViewport,d=!Rh()&&n,v=(o.left+(d&&f?f.offsetLeft:0))/a,g=(o.top+(d&&f?f.offsetTop:0))/u,_=o.width/a,O=o.height/u;return{width:_,height:O,top:g,right:v+_,bottom:g+O,left:v,x:v,y:g}}function Bl(e){var r=Ii(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Ph(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&Ul(n)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function nr(e){return nn(e).getComputedStyle(e)}function TS(e){return["table","td","th"].indexOf(Fn(e))>=0}function _r(e){return((Jr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ts(e){return Fn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ul(e)?e.host:null)||_r(e)}function Qd(e){return!vn(e)||nr(e).position==="fixed"?null:e.offsetParent}function CS(e){var r=/firefox/i.test(ml()),n=/Trident/i.test(ml());if(n&&vn(e)){var o=nr(e);if(o.position==="fixed")return null}var a=ts(e);for(Ul(a)&&(a=a.host);vn(a)&&["html","body"].indexOf(Fn(a))<0;){var u=nr(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||r&&u.willChange==="filter"||r&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function bo(e){for(var r=nn(e),n=Qd(e);n&&TS(n)&&nr(n).position==="static";)n=Qd(n);return n&&(Fn(n)==="html"||Fn(n)==="body"&&nr(n).position==="static")?r:n||CS(e)||r}function zl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oo(e,r,n){return Yr(e,za(r,n))}function RS(e,r,n){var o=oo(e,r,n);return o>n?n:o}function Ah(){return{top:0,right:0,bottom:0,left:0}}function Ih(e){return Object.assign({},Ah(),e)}function Lh(e,r){return r.reduce(function(n,o){return n[o]=e,n},{})}var PS=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,Ih(typeof r!="number"?r:Lh(r,wo))};function AS(e){var r,n=e.state,o=e.name,a=e.options,u=n.elements.arrow,l=n.modifiersData.popperOffsets,f=jn(n.placement),d=zl(f),v=[Gt,gn].indexOf(f)>=0,g=v?"height":"width";if(!(!u||!l)){var _=PS(a.padding,n),O=Bl(u),m=d==="y"?qt:Gt,S=d==="y"?mn:gn,y=n.rects.reference[g]+n.rects.reference[d]-l[d]-n.rects.popper[g],E=l[d]-n.rects.reference[d],D=bo(u),I=D?d==="y"?D.clientHeight||0:D.clientWidth||0:0,C=y/2-E/2,k=_[m],T=I-O[g]-_[S],H=I/2-O[g]/2+C,U=oo(k,H,T),j=d;n.modifiersData[o]=(r={},r[j]=U,r.centerOffset=U-H,r)}}function IS(e){var r=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Ph(r.elements.popper,a)&&(r.elements.arrow=a))}const LS={name:"arrow",enabled:!0,phase:"main",fn:AS,effect:IS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Li(e){return e.split("-")[1]}var MS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DS(e,r){var n=e.x,o=e.y,a=r.devicePixelRatio||1;return{x:Ai(n*a)/a||0,y:Ai(o*a)/a||0}}function ep(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,f=e.position,d=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,_=e.isFixed,O=l.x,m=O===void 0?0:O,S=l.y,y=S===void 0?0:S,E=typeof g=="function"?g({x:m,y}):{x:m,y};m=E.x,y=E.y;var D=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),C=Gt,k=qt,T=window;if(v){var H=bo(n),U="clientHeight",j="clientWidth";if(H===nn(n)&&(H=_r(n),nr(H).position!=="static"&&f==="absolute"&&(U="scrollHeight",j="scrollWidth")),H=H,a===qt||(a===Gt||a===gn)&&u===lo){k=mn;var J=_&&H===T&&T.visualViewport?T.visualViewport.height:H[U];y-=J-o.height,y*=d?1:-1}if(a===Gt||(a===qt||a===mn)&&u===lo){C=gn;var ee=_&&H===T&&T.visualViewport?T.visualViewport.width:H[j];m-=ee-o.width,m*=d?1:-1}}var ge=Object.assign({position:f},v&&MS),Ce=g===!0?DS({x:m,y},nn(n)):{x:m,y};if(m=Ce.x,y=Ce.y,d){var _e;return Object.assign({},ge,(_e={},_e[k]=I?"0":"",_e[C]=D?"0":"",_e.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",_e))}return Object.assign({},ge,(r={},r[k]=I?y+"px":"",r[C]=D?m+"px":"",r.transform="",r))}function kS(e){var r=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,u=n.adaptive,l=u===void 0?!0:u,f=n.roundOffsets,d=f===void 0?!0:f,v={placement:jn(r.placement),variation:Li(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,ep(Object.assign({},v,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:l,roundOffsets:d})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,ep(Object.assign({},v,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const NS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kS,data:{}};var wa={passive:!0};function $S(e){var r=e.state,n=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,l=o.resize,f=l===void 0?!0:l,d=nn(r.elements.popper),v=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&v.forEach(function(g){g.addEventListener("scroll",n.update,wa)}),f&&d.addEventListener("resize",n.update,wa),function(){u&&v.forEach(function(g){g.removeEventListener("scroll",n.update,wa)}),f&&d.removeEventListener("resize",n.update,wa)}}const jS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$S,data:{}};var FS={left:"right",right:"left",bottom:"top",top:"bottom"};function $a(e){return e.replace(/left|right|bottom|top/g,function(r){return FS[r]})}var WS={start:"end",end:"start"};function tp(e){return e.replace(/start|end/g,function(r){return WS[r]})}function ql(e){var r=nn(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Gl(e){return Ii(_r(e)).left+ql(e).scrollLeft}function HS(e,r){var n=nn(e),o=_r(e),a=n.visualViewport,u=o.clientWidth,l=o.clientHeight,f=0,d=0;if(a){u=a.width,l=a.height;var v=Rh();(v||!v&&r==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}return{width:u,height:l,x:f+Gl(e),y:d}}function US(e){var r,n=_r(e),o=ql(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=Yr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Yr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-o.scrollLeft+Gl(e),d=-o.scrollTop;return nr(a||n).direction==="rtl"&&(f+=Yr(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:f,y:d}}function Kl(e){var r=nr(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Mh(e){return["html","body","#document"].indexOf(Fn(e))>=0?e.ownerDocument.body:vn(e)&&Kl(e)?e:Mh(ts(e))}function ao(e,r){var n;r===void 0&&(r=[]);var o=Mh(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),u=nn(o),l=a?[u].concat(u.visualViewport||[],Kl(o)?o:[]):o,f=r.concat(l);return a?f:f.concat(ao(ts(l)))}function gl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function BS(e,r){var n=Ii(e,!1,r==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function np(e,r,n){return r===Th?gl(HS(e,n)):Jr(r)?BS(r,n):gl(US(_r(e)))}function zS(e){var r=ao(ts(e)),n=["absolute","fixed"].indexOf(nr(e).position)>=0,o=n&&vn(e)?bo(e):e;return Jr(o)?r.filter(function(a){return Jr(a)&&Ph(a,o)&&Fn(a)!=="body"}):[]}function qS(e,r,n,o){var a=r==="clippingParents"?zS(e):[].concat(r),u=[].concat(a,[n]),l=u[0],f=u.reduce(function(d,v){var g=np(e,v,o);return d.top=Yr(g.top,d.top),d.right=za(g.right,d.right),d.bottom=za(g.bottom,d.bottom),d.left=Yr(g.left,d.left),d},np(e,l,o));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function Dh(e){var r=e.reference,n=e.element,o=e.placement,a=o?jn(o):null,u=o?Li(o):null,l=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,d;switch(a){case qt:d={x:l,y:r.y-n.height};break;case mn:d={x:l,y:r.y+r.height};break;case gn:d={x:r.x+r.width,y:f};break;case Gt:d={x:r.x-n.width,y:f};break;default:d={x:r.x,y:r.y}}var v=a?zl(a):null;if(v!=null){var g=v==="y"?"height":"width";switch(u){case Pi:d[v]=d[v]-(r[g]/2-n[g]/2);break;case lo:d[v]=d[v]+(r[g]/2-n[g]/2);break}}return d}function co(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=o===void 0?e.placement:o,u=n.strategy,l=u===void 0?e.strategy:u,f=n.boundary,d=f===void 0?fS:f,v=n.rootBoundary,g=v===void 0?Th:v,_=n.elementContext,O=_===void 0?no:_,m=n.altBoundary,S=m===void 0?!1:m,y=n.padding,E=y===void 0?0:y,D=Ih(typeof E!="number"?E:Lh(E,wo)),I=O===no?dS:no,C=e.rects.popper,k=e.elements[S?I:O],T=qS(Jr(k)?k:k.contextElement||_r(e.elements.popper),d,g,l),H=Ii(e.elements.reference),U=Dh({reference:H,element:C,strategy:"absolute",placement:a}),j=gl(Object.assign({},C,U)),J=O===no?j:H,ee={top:T.top-J.top+D.top,bottom:J.bottom-T.bottom+D.bottom,left:T.left-J.left+D.left,right:J.right-T.right+D.right},ge=e.modifiersData.offset;if(O===no&&ge){var Ce=ge[a];Object.keys(ee).forEach(function(_e){var se=[gn,mn].indexOf(_e)>=0?1:-1,Le=[qt,mn].indexOf(_e)>=0?"y":"x";ee[_e]+=Ce[Le]*se})}return ee}function GS(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=n.boundary,u=n.rootBoundary,l=n.padding,f=n.flipVariations,d=n.allowedAutoPlacements,v=d===void 0?Ch:d,g=Li(o),_=g?f?Zd:Zd.filter(function(S){return Li(S)===g}):wo,O=_.filter(function(S){return v.indexOf(S)>=0});O.length===0&&(O=_);var m=O.reduce(function(S,y){return S[y]=co(e,{placement:y,boundary:a,rootBoundary:u,padding:l})[jn(y)],S},{});return Object.keys(m).sort(function(S,y){return m[S]-m[y]})}function KS(e){if(jn(e)===Hl)return[];var r=$a(e);return[tp(e),r,tp(r)]}function YS(e){var r=e.state,n=e.options,o=e.name;if(!r.modifiersData[o]._skip){for(var a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,f=l===void 0?!0:l,d=n.fallbackPlacements,v=n.padding,g=n.boundary,_=n.rootBoundary,O=n.altBoundary,m=n.flipVariations,S=m===void 0?!0:m,y=n.allowedAutoPlacements,E=r.options.placement,D=jn(E),I=D===E,C=d||(I||!S?[$a(E)]:KS(E)),k=[E].concat(C).reduce(function(ce,fe){return ce.concat(jn(fe)===Hl?GS(r,{placement:fe,boundary:g,rootBoundary:_,padding:v,flipVariations:S,allowedAutoPlacements:y}):fe)},[]),T=r.rects.reference,H=r.rects.popper,U=new Map,j=!0,J=k[0],ee=0;ee<k.length;ee++){var ge=k[ee],Ce=jn(ge),_e=Li(ge)===Pi,se=[qt,mn].indexOf(Ce)>=0,Le=se?"width":"height",we=co(r,{placement:ge,boundary:g,rootBoundary:_,altBoundary:O,padding:v}),xe=se?_e?gn:Gt:_e?mn:qt;T[Le]>H[Le]&&(xe=$a(xe));var We=$a(xe),ut=[];if(u&&ut.push(we[Ce]<=0),f&&ut.push(we[xe]<=0,we[We]<=0),ut.every(function(ce){return ce})){J=ge,j=!1;break}U.set(ge,ut)}if(j)for(var G=S?3:1,X=function(fe){var ue=k.find(function(pe){var le=U.get(pe);if(le)return le.slice(0,fe).every(function(ye){return ye})});if(ue)return J=ue,"break"},de=G;de>0;de--){var ie=X(de);if(ie==="break")break}r.placement!==J&&(r.modifiersData[o]._skip=!0,r.placement=J,r.reset=!0)}}const XS={name:"flip",enabled:!0,phase:"main",fn:YS,requiresIfExists:["offset"],data:{_skip:!1}};function rp(e,r,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-r.height-n.y,right:e.right-r.width+n.x,bottom:e.bottom-r.height+n.y,left:e.left-r.width-n.x}}function ip(e){return[qt,gn,mn,Gt].some(function(r){return e[r]>=0})}function VS(e){var r=e.state,n=e.name,o=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,l=co(r,{elementContext:"reference"}),f=co(r,{altBoundary:!0}),d=rp(l,o),v=rp(f,a,u),g=ip(d),_=ip(v);r.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:v,isReferenceHidden:g,hasPopperEscaped:_},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":_})}const JS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:VS};function ZS(e,r,n){var o=jn(e),a=[Gt,qt].indexOf(o)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,l=u[0],f=u[1];return l=l||0,f=(f||0)*a,[Gt,gn].indexOf(o)>=0?{x:f,y:l}:{x:l,y:f}}function QS(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,l=Ch.reduce(function(g,_){return g[_]=ZS(_,r.rects,u),g},{}),f=l[r.placement],d=f.x,v=f.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=d,r.modifiersData.popperOffsets.y+=v),r.modifiersData[o]=l}const eE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:QS};function tE(e){var r=e.state,n=e.name;r.modifiersData[n]=Dh({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const nE={name:"popperOffsets",enabled:!0,phase:"read",fn:tE,data:{}};function rE(e){return e==="x"?"y":"x"}function iE(e){var r=e.state,n=e.options,o=e.name,a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,f=l===void 0?!1:l,d=n.boundary,v=n.rootBoundary,g=n.altBoundary,_=n.padding,O=n.tether,m=O===void 0?!0:O,S=n.tetherOffset,y=S===void 0?0:S,E=co(r,{boundary:d,rootBoundary:v,padding:_,altBoundary:g}),D=jn(r.placement),I=Li(r.placement),C=!I,k=zl(D),T=rE(k),H=r.modifiersData.popperOffsets,U=r.rects.reference,j=r.rects.popper,J=typeof y=="function"?y(Object.assign({},r.rects,{placement:r.placement})):y,ee=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),ge=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,Ce={x:0,y:0};if(H){if(u){var _e,se=k==="y"?qt:Gt,Le=k==="y"?mn:gn,we=k==="y"?"height":"width",xe=H[k],We=xe+E[se],ut=xe-E[Le],G=m?-j[we]/2:0,X=I===Pi?U[we]:j[we],de=I===Pi?-j[we]:-U[we],ie=r.elements.arrow,ce=m&&ie?Bl(ie):{width:0,height:0},fe=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Ah(),ue=fe[se],pe=fe[Le],le=oo(0,U[we],ce[we]),ye=C?U[we]/2-G-le-ue-ee.mainAxis:X-le-ue-ee.mainAxis,be=C?-U[we]/2+G+le+pe+ee.mainAxis:de+le+pe+ee.mainAxis,Ke=r.elements.arrow&&bo(r.elements.arrow),V=Ke?k==="y"?Ke.clientTop||0:Ke.clientLeft||0:0,rt=(_e=ge==null?void 0:ge[k])!=null?_e:0,it=xe+ye-rt-V,dt=xe+be-rt,An=oo(m?za(We,it):We,xe,m?Yr(ut,dt):ut);H[k]=An,Ce[k]=An-xe}if(f){var gt,Wt=k==="x"?qt:Gt,Sr=k==="x"?mn:gn,Je=H[T],Qe=T==="y"?"height":"width",rn=Je+E[Wt],Kt=Je-E[Sr],yn=[qt,Gt].indexOf(D)!==-1,Tt=(gt=ge==null?void 0:ge[T])!=null?gt:0,rr=yn?rn:Je-U[Qe]-j[Qe]-Tt+ee.altAxis,on=yn?Je+U[Qe]+j[Qe]-Tt-ee.altAxis:Kt,Yt=m&&yn?RS(rr,Je,on):oo(m?rr:rn,Je,m?on:Kt);H[T]=Yt,Ce[T]=Yt-Je}r.modifiersData[o]=Ce}}const oE={name:"preventOverflow",enabled:!0,phase:"main",fn:iE,requiresIfExists:["offset"]};function aE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sE(e){return e===nn(e)||!vn(e)?ql(e):aE(e)}function uE(e){var r=e.getBoundingClientRect(),n=Ai(r.width)/e.offsetWidth||1,o=Ai(r.height)/e.offsetHeight||1;return n!==1||o!==1}function lE(e,r,n){n===void 0&&(n=!1);var o=vn(r),a=vn(r)&&uE(r),u=_r(r),l=Ii(e,a,n),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&((Fn(r)!=="body"||Kl(u))&&(f=sE(r)),vn(r)?(d=Ii(r,!0),d.x+=r.clientLeft,d.y+=r.clientTop):u&&(d.x=Gl(u))),{x:l.left+f.scrollLeft-d.x,y:l.top+f.scrollTop-d.y,width:l.width,height:l.height}}function cE(e){var r=new Map,n=new Set,o=[];e.forEach(function(u){r.set(u.name,u)});function a(u){n.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(f){if(!n.has(f)){var d=r.get(f);d&&a(d)}}),o.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),o}function fE(e){var r=cE(e);return SS.reduce(function(n,o){return n.concat(r.filter(function(a){return a.phase===o}))},[])}function dE(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function pE(e){var r=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(r).map(function(n){return r[n]})}var op={placement:"bottom",modifiers:[],strategy:"absolute"};function ap(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function hE(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,o=n===void 0?[]:n,a=r.defaultOptions,u=a===void 0?op:a;return function(f,d,v){v===void 0&&(v=u);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},op,u),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},_=[],O=!1,m={state:g,setOptions:function(D){var I=typeof D=="function"?D(g.options):D;y(),g.options=Object.assign({},u,g.options,I),g.scrollParents={reference:Jr(f)?ao(f):f.contextElement?ao(f.contextElement):[],popper:ao(d)};var C=fE(pE([].concat(o,g.options.modifiers)));return g.orderedModifiers=C.filter(function(k){return k.enabled}),S(),m.update()},forceUpdate:function(){if(!O){var D=g.elements,I=D.reference,C=D.popper;if(ap(I,C)){g.rects={reference:lE(I,bo(C),g.options.strategy==="fixed"),popper:Bl(C)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(ee){return g.modifiersData[ee.name]=Object.assign({},ee.data)});for(var k=0;k<g.orderedModifiers.length;k++){if(g.reset===!0){g.reset=!1,k=-1;continue}var T=g.orderedModifiers[k],H=T.fn,U=T.options,j=U===void 0?{}:U,J=T.name;typeof H=="function"&&(g=H({state:g,options:j,name:J,instance:m})||g)}}}},update:dE(function(){return new Promise(function(E){m.forceUpdate(),E(g)})}),destroy:function(){y(),O=!0}};if(!ap(f,d))return m;m.setOptions(v).then(function(E){!O&&v.onFirstUpdate&&v.onFirstUpdate(E)});function S(){g.orderedModifiers.forEach(function(E){var D=E.name,I=E.options,C=I===void 0?{}:I,k=E.effect;if(typeof k=="function"){var T=k({state:g,name:D,instance:m,options:C}),H=function(){};_.push(T||H)}})}function y(){_.forEach(function(E){return E()}),_=[]}return m}}var vE=[jS,nE,NS,OS,eE,XS,oE,LS,JS],mE=hE({defaultModifiers:vE}),gE=typeof Element<"u",yE=typeof Map=="function",wE=typeof Set=="function",bE=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ja(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!ja(e[o],r[o]))return!1;return!0}var u;if(yE&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;for(u=e.entries();!(o=u.next()).done;)if(!ja(o.value[1],r.get(o.value[0])))return!1;return!0}if(wE&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;return!0}if(bE&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(e[o]!==r[o])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;if(gE&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((a[o]==="_owner"||a[o]==="__v"||a[o]==="__o")&&e.$$typeof)&&!ja(e[a[o]],r[a[o]]))return!1;return!0}return e!==e&&r!==r}var _E=function(r,n){try{return ja(r,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const SE=xh(_E);var EE=[],kh=function(r,n,o){o===void 0&&(o={});var a=L.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||EE},l=L.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=l[0],d=l[1],v=L.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var S=m.state,y=Object.keys(S.elements);sS.flushSync(function(){d({styles:Vd(y.map(function(E){return[E,S.styles[E]||{}]})),attributes:Vd(y.map(function(E){return[E,S.attributes[E]]}))})})},requires:["computeStyles"]}},[]),g=L.useMemo(function(){var O={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[v,{name:"applyStyles",enabled:!1}])};return SE(a.current,O)?a.current||O:(a.current=O,O)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,v]),_=L.useRef();return Jd(function(){_.current&&_.current.setOptions(g)},[g]),Jd(function(){if(!(r==null||n==null)){var O=o.createPopper||mE,m=O(r,n,g);return _.current=m,function(){m.destroy(),_.current=null}}},[r,n,o.createPopper]),{state:_.current?_.current.state:null,styles:f.styles,attributes:f.attributes,update:_.current?_.current.update:null,forceUpdate:_.current?_.current.forceUpdate:null}};const Nh=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),$h=N.forwardRef(({children:e,style:r,attributes:n},o)=>$.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),xE=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,l]=N.useState(null),{styles:f,attributes:d}=kh(e,u,{placement:r||"bottom-start"}),v=N.useCallback(()=>{a&&a()},[a]);return n?$.jsxs(Oh,{children:[$.jsx(Nh,{onClick:()=>v()}),$.jsx($h,{ref:l,style:f.popper,attributes:d.popper,children:o})]}):null};var yl={exports:{}},_i={};/*
29
+ Check the top-level render call using <`+W+">.")}return I}}function On(m,I){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var W=Mi(I);if(ei[W])return;ei[W]=!0;var K="";m&&m._owner&&m._owner!==$r.current&&(K=" It was passed a child from "+se(m._owner.type)+"."),It(m),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,K),It(null)}}function ti(m,I){{if(typeof m!="object")return;if(Array.isArray(m))for(var W=0;W<m.length;W++){var K=m[W];Nr(K)&&On(K,I)}else if(Nr(m))m._store&&(m._store.validated=!0);else if(m){var ce=D(m);if(typeof ce=="function"&&ce!==m.entries)for(var ae=ce.call(m),re;!(re=ae.next()).done;)Nr(re.value)&&On(re.value,I)}}}function fo(m){{var I=m.type;if(I==null||typeof I=="string")return;var W;if(typeof I=="function")W=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===p||I.$$typeof===S))W=I.propTypes;else return;if(W){var K=se(I);Kn(W,m.props,"prop",K,m)}else if(I.PropTypes!==void 0&&!Dr){Dr=!0;var ce=se(I);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function po(m){{for(var I=Object.keys(m.props),W=0;W<I.length;W++){var K=I[W];if(K!=="children"&&K!=="key"){It(m),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",K),It(null);break}}m.ref!==null&&(It(m),j("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}function ri(m,I,W,K,ce,ae){{var re=ye(m);if(!re){var te="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=co(ce);je?te+=je:te+=Qn();var _e;m===null?_e="null":Array.isArray(m)?_e="array":m!==void 0&&m.$$typeof===i?(_e="<"+(se(m.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof m,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,te)}var Ae=Jn(m,I,W,ce,ae);if(Ae==null)return Ae;if(re){var lt=I.children;if(lt!==void 0)if(K)if(Array.isArray(lt)){for(var Yt=0;Yt<lt.length;Yt++)ti(lt[Yt],m);Object.freeze&&Object.freeze(lt)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ti(lt,m)}return m===e.Fragment?po(Ae):fo(Ae),Ae}}function Fi(m,I,W){return ri(m,I,W,!0)}function ho(m,I,W){return ri(m,I,W,!1)}var vo=ho,mo=Fi;e.jsx=vo,e.jsxs=mo}()}(yl)),yl}process.env.NODE_ENV==="production"?sc.exports=q_():sc.exports=Z_();var k=sc.exports;const Lv=({children:e})=>Qo.createPortal(e,document.querySelector("body"));var Qp=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},eh=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,or="top",Mr="bottom",Fr="right",ar="left",Nc="auto",ea=[or,Mr,Fr,ar],io="start",Ho="end",G_="clippingParents",$v="viewport",Mo="popper",K_="reference",th=ea.reduce(function(e,t){return e.concat([t+"-"+io,t+"-"+Ho])},[]),Dv=[].concat(ea,[Nc]).reduce(function(e,t){return e.concat([t,t+"-"+io,t+"-"+Ho])},[]),Y_="beforeRead",V_="read",X_="afterRead",J_="beforeMain",Q_="main",ex="afterMain",tx="beforeWrite",rx="write",nx="afterWrite",ix=[Y_,V_,X_,J_,Q_,ex,tx,rx,nx];function nn(e){return e?(e.nodeName||"").toLowerCase():null}function gr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xi(e){var t=gr(e).Element;return e instanceof t||e instanceof Element}function Ir(e){var t=gr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function kc(e){if(typeof ShadowRoot>"u")return!1;var t=gr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ox(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!Ir(s)||!nn(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var c=a[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function ax(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],s=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(d,p){return d[p]="",d},{});!Ir(a)||!nn(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const sx={name:"applyStyles",enabled:!0,phase:"write",fn:ox,effect:ax,requires:["computeStyles"]};function rn(e){return e.split("-")[0]}var Si=Math.max,Ts=Math.min,oo=Math.round;function uc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Nv(){return!/^((?!chrome|android).)*safari/i.test(uc())}function ao(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&Ir(e)&&(a=e.offsetWidth>0&&oo(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&oo(i.height)/e.offsetHeight||1);var l=xi(e)?gr(e):window,c=l.visualViewport,d=!Nv()&&r,p=(i.left+(d&&c?c.offsetLeft:0))/a,h=(i.top+(d&&c?c.offsetTop:0))/s,w=i.width/a,S=i.height/s;return{width:w,height:S,top:h,right:p+w,bottom:h+S,left:p,x:p,y:h}}function jc(e){var t=ao(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function kv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&kc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _n(e){return gr(e).getComputedStyle(e)}function ux(e){return["table","td","th"].indexOf(nn(e))>=0}function qn(e){return((xi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hs(e){return nn(e)==="html"?e:e.assignedSlot||e.parentNode||(kc(e)?e.host:null)||qn(e)}function rh(e){return!Ir(e)||_n(e).position==="fixed"?null:e.offsetParent}function lx(e){var t=/firefox/i.test(uc()),r=/Trident/i.test(uc());if(r&&Ir(e)){var i=_n(e);if(i.position==="fixed")return null}var a=Hs(e);for(kc(a)&&(a=a.host);Ir(a)&&["html","body"].indexOf(nn(a))<0;){var s=_n(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function ta(e){for(var t=gr(e),r=rh(e);r&&ux(r)&&_n(r).position==="static";)r=rh(r);return r&&(nn(r)==="html"||nn(r)==="body"&&_n(r).position==="static")?t:r||lx(e)||t}function Wc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ko(e,t,r){return Si(e,Ts(t,r))}function cx(e,t,r){var i=ko(e,t,r);return i>r?r:i}function jv(){return{top:0,right:0,bottom:0,left:0}}function Wv(e){return Object.assign({},jv(),e)}function Uv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var fx=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Wv(typeof t!="number"?t:Uv(t,ea))};function dx(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=rn(r.placement),d=Wc(c),p=[ar,Fr].indexOf(c)>=0,h=p?"height":"width";if(!(!s||!l)){var w=fx(a.padding,r),S=jc(s),v=d==="y"?or:ar,_=d==="y"?Mr:Fr,g=r.rects.reference[h]+r.rects.reference[d]-l[d]-r.rects.popper[h],x=l[d]-r.rects.reference[d],C=ta(s),P=C?d==="y"?C.clientHeight||0:C.clientWidth||0:0,T=g/2-x/2,$=w[v],A=P-S[h]-w[_],D=P/2-S[h]/2+T,H=ko($,D,A),j=d;r.modifiersData[i]=(t={},t[j]=H,t.centerOffset=H-D,t)}}function px(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||kv(t.elements.popper,a)&&(t.elements.arrow=a))}const hx={name:"arrow",enabled:!0,phase:"main",fn:dx,effect:px,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function so(e){return e.split("-")[1]}var vx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mx(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:oo(r*a)/a||0,y:oo(i*a)/a||0}}function nh(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,w=e.isFixed,S=l.x,v=S===void 0?0:S,_=l.y,g=_===void 0?0:_,x=typeof h=="function"?h({x:v,y:g}):{x:v,y:g};v=x.x,g=x.y;var C=l.hasOwnProperty("x"),P=l.hasOwnProperty("y"),T=ar,$=or,A=window;if(p){var D=ta(r),H="clientHeight",j="clientWidth";if(D===gr(r)&&(D=qn(r),_n(D).position!=="static"&&c==="absolute"&&(H="scrollHeight",j="scrollWidth")),D=D,a===or||(a===ar||a===Fr)&&s===Ho){$=Mr;var V=w&&D===A&&A.visualViewport?A.visualViewport.height:D[H];g-=V-i.height,g*=d?1:-1}if(a===ar||(a===or||a===Mr)&&s===Ho){T=Fr;var ee=w&&D===A&&A.visualViewport?A.visualViewport.width:D[j];v-=ee-i.width,v*=d?1:-1}}var ye=Object.assign({position:c},p&&vx),Re=h===!0?mx({x:v,y:g},gr(r)):{x:v,y:g};if(v=Re.x,g=Re.y,d){var Ee;return Object.assign({},ye,(Ee={},Ee[$]=P?"0":"",Ee[T]=C?"0":"",Ee.transform=(A.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",Ee))}return Object.assign({},ye,(t={},t[$]=P?g+"px":"",t[T]=C?v+"px":"",t.transform="",t))}function gx(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,d=c===void 0?!0:c,p={placement:rn(t.placement),variation:so(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nh(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nh(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gx,data:{}};var es={passive:!0};function wx(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,c=l===void 0?!0:l,d=gr(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",r.update,es)}),c&&d.addEventListener("resize",r.update,es),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",r.update,es)}),c&&d.removeEventListener("resize",r.update,es)}}const bx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wx,data:{}};var Sx={left:"right",right:"left",bottom:"top",top:"bottom"};function ws(e){return e.replace(/left|right|bottom|top/g,function(t){return Sx[t]})}var Ex={start:"end",end:"start"};function ih(e){return e.replace(/start|end/g,function(t){return Ex[t]})}function Uc(e){var t=gr(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Hc(e){return ao(qn(e)).left+Uc(e).scrollLeft}function _x(e,t){var r=gr(e),i=qn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,d=0;if(a){s=a.width,l=a.height;var p=Nv();(p||!p&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:c+Hc(e),y:d}}function xx(e){var t,r=qn(e),i=Uc(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Si(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Si(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+Hc(e),d=-i.scrollTop;return _n(a||r).direction==="rtl"&&(c+=Si(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:c,y:d}}function Bc(e){var t=_n(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Hv(e){return["html","body","#document"].indexOf(nn(e))>=0?e.ownerDocument.body:Ir(e)&&Bc(e)?e:Hv(Hs(e))}function jo(e,t){var r;t===void 0&&(t=[]);var i=Hv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=gr(i),l=a?[s].concat(s.visualViewport||[],Bc(i)?i:[]):i,c=t.concat(l);return a?c:c.concat(jo(Hs(l)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ox(e,t){var r=ao(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function oh(e,t,r){return t===$v?lc(_x(e,r)):xi(t)?Ox(t,r):lc(xx(qn(e)))}function Ax(e){var t=jo(Hs(e)),r=["absolute","fixed"].indexOf(_n(e).position)>=0,i=r&&Ir(e)?ta(e):e;return xi(i)?t.filter(function(a){return xi(a)&&kv(a,i)&&nn(a)!=="body"}):[]}function Tx(e,t,r,i){var a=t==="clippingParents"?Ax(e):[].concat(t),s=[].concat(a,[r]),l=s[0],c=s.reduce(function(d,p){var h=oh(e,p,i);return d.top=Si(h.top,d.top),d.right=Ts(h.right,d.right),d.bottom=Ts(h.bottom,d.bottom),d.left=Si(h.left,d.left),d},oh(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Bv(e){var t=e.reference,r=e.element,i=e.placement,a=i?rn(i):null,s=i?so(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,d;switch(a){case or:d={x:l,y:t.y-r.height};break;case Mr:d={x:l,y:t.y+t.height};break;case Fr:d={x:t.x+t.width,y:c};break;case ar:d={x:t.x-r.width,y:c};break;default:d={x:t.x,y:t.y}}var p=a?Wc(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case io:d[p]=d[p]-(t[h]/2-r[h]/2);break;case Ho:d[p]=d[p]+(t[h]/2-r[h]/2);break}}return d}function Bo(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,d=c===void 0?G_:c,p=r.rootBoundary,h=p===void 0?$v:p,w=r.elementContext,S=w===void 0?Mo:w,v=r.altBoundary,_=v===void 0?!1:v,g=r.padding,x=g===void 0?0:g,C=Wv(typeof x!="number"?x:Uv(x,ea)),P=S===Mo?K_:Mo,T=e.rects.popper,$=e.elements[_?P:S],A=Tx(xi($)?$:$.contextElement||qn(e.elements.popper),d,h,l),D=ao(e.elements.reference),H=Bv({reference:D,element:T,strategy:"absolute",placement:a}),j=lc(Object.assign({},T,H)),V=S===Mo?j:D,ee={top:A.top-V.top+C.top,bottom:V.bottom-A.bottom+C.bottom,left:A.left-V.left+C.left,right:V.right-A.right+C.right},ye=e.modifiersData.offset;if(S===Mo&&ye){var Re=ye[a];Object.keys(ee).forEach(function(Ee){var se=[Fr,Mr].indexOf(Ee)>=0?1:-1,Fe=[or,Mr].indexOf(Ee)>=0?"y":"x";ee[Ee]+=Re[Fe]*se})}return ee}function Rx(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?Dv:d,h=so(i),w=h?c?th:th.filter(function(_){return so(_)===h}):ea,S=w.filter(function(_){return p.indexOf(_)>=0});S.length===0&&(S=w);var v=S.reduce(function(_,g){return _[g]=Bo(e,{placement:g,boundary:a,rootBoundary:s,padding:l})[rn(g)],_},{});return Object.keys(v).sort(function(_,g){return v[_]-v[g]})}function Cx(e){if(rn(e)===Nc)return[];var t=ws(e);return[ih(e),t,ih(t)]}function Px(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,h=r.boundary,w=r.rootBoundary,S=r.altBoundary,v=r.flipVariations,_=v===void 0?!0:v,g=r.allowedAutoPlacements,x=t.options.placement,C=rn(x),P=C===x,T=d||(P||!_?[ws(x)]:Cx(x)),$=[x].concat(T).reduce(function(fe,de){return fe.concat(rn(de)===Nc?Rx(t,{placement:de,boundary:h,rootBoundary:w,padding:p,flipVariations:_,allowedAutoPlacements:g}):de)},[]),A=t.rects.reference,D=t.rects.popper,H=new Map,j=!0,V=$[0],ee=0;ee<$.length;ee++){var ye=$[ee],Re=rn(ye),Ee=so(ye)===io,se=[or,Mr].indexOf(Re)>=0,Fe=se?"width":"height",be=Bo(t,{placement:ye,boundary:h,rootBoundary:w,altBoundary:S,padding:p}),Oe=se?Ee?Fr:ar:Ee?Mr:or;A[Fe]>D[Fe]&&(Oe=ws(Oe));var Be=ws(Oe),pt=[];if(s&&pt.push(be[Re]<=0),c&&pt.push(be[Oe]<=0,be[Be]<=0),pt.every(function(fe){return fe})){V=ye,j=!1;break}H.set(ye,pt)}if(j)for(var Z=_?3:1,Y=function(de){var ue=$.find(function(he){var le=H.get(he);if(le)return le.slice(0,de).every(function(we){return we})});if(ue)return V=ue,"break"},pe=Z;pe>0;pe--){var oe=Y(pe);if(oe==="break")break}t.placement!==V&&(t.modifiersData[i]._skip=!0,t.placement=V,t.reset=!0)}}const Ix={name:"flip",enabled:!0,phase:"main",fn:Px,requiresIfExists:["offset"],data:{_skip:!1}};function ah(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function sh(e){return[or,Fr,Mr,ar].some(function(t){return e[t]>=0})}function Mx(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=Bo(t,{elementContext:"reference"}),c=Bo(t,{altBoundary:!0}),d=ah(l,i),p=ah(c,a,s),h=sh(d),w=sh(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:w},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":w})}const Fx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mx};function Lx(e,t,r){var i=rn(e),a=[ar,or].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[ar,Fr].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function $x(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=Dv.reduce(function(h,w){return h[w]=Lx(w,t.rects,s),h},{}),c=l[t.placement],d=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=l}const Dx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$x};function Nx(e){var t=e.state,r=e.name;t.modifiersData[r]=Bv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const kx={name:"popperOffsets",enabled:!0,phase:"read",fn:Nx,data:{}};function jx(e){return e==="x"?"y":"x"}function Wx(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,w=r.padding,S=r.tether,v=S===void 0?!0:S,_=r.tetherOffset,g=_===void 0?0:_,x=Bo(t,{boundary:d,rootBoundary:p,padding:w,altBoundary:h}),C=rn(t.placement),P=so(t.placement),T=!P,$=Wc(C),A=jx($),D=t.modifiersData.popperOffsets,H=t.rects.reference,j=t.rects.popper,V=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,ee=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),ye=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Re={x:0,y:0};if(D){if(s){var Ee,se=$==="y"?or:ar,Fe=$==="y"?Mr:Fr,be=$==="y"?"height":"width",Oe=D[$],Be=Oe+x[se],pt=Oe-x[Fe],Z=v?-j[be]/2:0,Y=P===io?H[be]:j[be],pe=P===io?-j[be]:-H[be],oe=t.elements.arrow,fe=v&&oe?jc(oe):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jv(),ue=de[se],he=de[Fe],le=ko(0,H[be],fe[be]),we=T?H[be]/2-Z-le-ue-ee.mainAxis:Y-le-ue-ee.mainAxis,Se=T?-H[be]/2+Z+le+he+ee.mainAxis:pe+le+he+ee.mainAxis,Ve=t.elements.arrow&&ta(t.elements.arrow),J=Ve?$==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,st=(Ee=ye==null?void 0:ye[$])!=null?Ee:0,ut=Oe+we-st-J,yt=Oe+Se-st,Gr=ko(v?Ts(Be,ut):Be,Oe,v?Si(pt,yt):pt);D[$]=Gr,Re[$]=Gr-Oe}if(c){var At,er=$==="x"?or:ar,Kn=$==="x"?Mr:Fr,et=D[A],rt=A==="y"?"height":"width",yr=et+x[er],sr=et-x[Kn],Lr=[or,ar].indexOf(C)!==-1,Nt=(At=ye==null?void 0:ye[A])!=null?At:0,xn=Lr?yr:et-H[rt]-j[rt]-Nt+ee.altAxis,wr=Lr?et+H[rt]+j[rt]-Nt-ee.altAxis:sr,ur=v&&Lr?cx(xn,et,wr):ko(v?xn:yr,et,v?wr:sr);D[A]=ur,Re[A]=ur-et}t.modifiersData[i]=Re}}const Ux={name:"preventOverflow",enabled:!0,phase:"main",fn:Wx,requiresIfExists:["offset"]};function Hx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bx(e){return e===gr(e)||!Ir(e)?Uc(e):Hx(e)}function zx(e){var t=e.getBoundingClientRect(),r=oo(t.width)/e.offsetWidth||1,i=oo(t.height)/e.offsetHeight||1;return r!==1||i!==1}function qx(e,t,r){r===void 0&&(r=!1);var i=Ir(t),a=Ir(t)&&zx(t),s=qn(t),l=ao(e,a,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&((nn(t)!=="body"||Bc(s))&&(c=Bx(t)),Ir(t)?(d=ao(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Hc(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Zx(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=t.get(c);d&&a(d)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function Gx(e){var t=Zx(e);return ix.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function Kx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yx(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var uh={placement:"bottom",modifiers:[],strategy:"absolute"};function lh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Vx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?uh:a;return function(c,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},uh,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},w=[],S=!1,v={state:h,setOptions:function(C){var P=typeof C=="function"?C(h.options):C;g(),h.options=Object.assign({},s,h.options,P),h.scrollParents={reference:xi(c)?jo(c):c.contextElement?jo(c.contextElement):[],popper:jo(d)};var T=Gx(Yx([].concat(i,h.options.modifiers)));return h.orderedModifiers=T.filter(function($){return $.enabled}),_(),v.update()},forceUpdate:function(){if(!S){var C=h.elements,P=C.reference,T=C.popper;if(lh(P,T)){h.rects={reference:qx(P,ta(T),h.options.strategy==="fixed"),popper:jc(T)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(ee){return h.modifiersData[ee.name]=Object.assign({},ee.data)});for(var $=0;$<h.orderedModifiers.length;$++){if(h.reset===!0){h.reset=!1,$=-1;continue}var A=h.orderedModifiers[$],D=A.fn,H=A.options,j=H===void 0?{}:H,V=A.name;typeof D=="function"&&(h=D({state:h,options:j,name:V,instance:v})||h)}}}},update:Kx(function(){return new Promise(function(x){v.forceUpdate(),x(h)})}),destroy:function(){g(),S=!0}};if(!lh(c,d))return v;v.setOptions(p).then(function(x){!S&&p.onFirstUpdate&&p.onFirstUpdate(x)});function _(){h.orderedModifiers.forEach(function(x){var C=x.name,P=x.options,T=P===void 0?{}:P,$=x.effect;if(typeof $=="function"){var A=$({state:h,name:C,instance:v,options:T}),D=function(){};w.push(A||D)}})}function g(){w.forEach(function(x){return x()}),w=[]}return v}}var Xx=[bx,kx,yx,sx,Dx,Ix,Ux,hx,Fx],Jx=Vx({defaultModifiers:Xx}),Qx=typeof Element<"u",eO=typeof Map=="function",tO=typeof Set=="function",rO=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function bs(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!bs(e[i],t[i]))return!1;return!0}var s;if(eO&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!bs(i.value[1],t.get(i.value[0])))return!1;return!0}if(tO&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(rO&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(Qx&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((a[i]==="_owner"||a[i]==="__v"||a[i]==="__o")&&e.$$typeof)&&!bs(e[a[i]],t[a[i]]))return!1;return!0}return e!==e&&t!==t}var nO=function(t,r){try{return bs(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const iO=$c(nO);var oO=[],zv=function(t,r,i){i===void 0&&(i={});var a=F.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||oO},l=F.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],d=l[1],p=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var _=v.state,g=Object.keys(_.elements);B_.flushSync(function(){d({styles:Qp(g.map(function(x){return[x,_.styles[x]||{}]})),attributes:Qp(g.map(function(x){return[x,_.attributes[x]]}))})})},requires:["computeStyles"]}},[]),h=F.useMemo(function(){var S={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[p,{name:"applyStyles",enabled:!1}])};return iO(a.current,S)?a.current||S:(a.current=S,S)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,p]),w=F.useRef();return eh(function(){w.current&&w.current.setOptions(h)},[h]),eh(function(){if(!(t==null||r==null)){var S=i.createPopper||Jx,v=S(t,r,h);return w.current=v,function(){v.destroy(),w.current=null}}},[t,r,i.createPopper]),{state:w.current?w.current.state:null,styles:c.styles,attributes:c.attributes,update:w.current?w.current.update:null,forceUpdate:w.current?w.current.forceUpdate:null}};const qv=e=>k.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Zv=N.forwardRef(({children:e,style:t,attributes:r},i)=>k.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),aO=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=N.useState(null),{styles:c,attributes:d}=zv(e,s,{placement:t||"bottom-start"}),p=N.useCallback(()=>{a&&a()},[a]);return r?k.jsxs(Lv,{children:[k.jsx(qv,{onClick:()=>p()}),k.jsx(Zv,{ref:l,style:c.popper,attributes:d.popper,children:i})]}):null};var cc={exports:{}},Yi={};/*
30
30
  object-assign
31
31
  (c) Sindre Sorhus
32
32
  @license MIT
33
- */var Pu,sp;function jh(){if(sp)return Pu;sp=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(d.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(g){v[g]=g}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Pu=a()?Object.assign:function(u,l){for(var f,d=o(u),v,g=1;g<arguments.length;g++){f=Object(arguments[g]);for(var _ in f)r.call(f,_)&&(d[_]=f[_]);if(e){v=e(f);for(var O=0;O<v.length;O++)n.call(f,v[O])&&(d[v[O]]=f[v[O]])}}return d},Pu}/** @license React v17.0.2
33
+ */var wl,ch;function Gv(){if(ch)return wl;ch=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wl=a()?Object.assign:function(s,l){for(var c,d=i(s),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var w in c)t.call(c,w)&&(d[w]=c[w]);if(e){p=e(c);for(var S=0;S<p.length;S++)r.call(c,p[S])&&(d[p[S]]=c[p[S]])}}return d},wl}/** @license React v17.0.2
34
34
  * react-jsx-runtime.production.min.js
35
35
  *
36
36
  * Copyright (c) Facebook, Inc. and its affiliates.
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
- */var up;function OE(){if(up)return _i;up=1,jh();var e=N,r=60103;if(_i.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),_i.Fragment=n("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(f,d,v){var g,_={},O=null,m=null;v!==void 0&&(O=""+v),d.key!==void 0&&(O=""+d.key),d.ref!==void 0&&(m=d.ref);for(g in d)a.call(d,g)&&!u.hasOwnProperty(g)&&(_[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)_[g]===void 0&&(_[g]=d[g]);return{$$typeof:r,type:f,key:O,ref:m,props:_,_owner:o.current}}return _i.jsx=l,_i.jsxs=l,_i}var lp={};/** @license React v17.0.2
40
+ */var fh;function sO(){if(fh)return Yi;fh=1,Gv();var e=N,t=60103;if(Yi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),Yi.Fragment=r("react.fragment")}var i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,p){var h,w={},S=null,v=null;p!==void 0&&(S=""+p),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(v=d.ref);for(h in d)a.call(d,h)&&!s.hasOwnProperty(h)&&(w[h]=d[h]);if(c&&c.defaultProps)for(h in d=c.defaultProps,d)w[h]===void 0&&(w[h]=d[h]);return{$$typeof:t,type:c,key:S,ref:v,props:w,_owner:i.current}}return Yi.jsx=l,Yi.jsxs=l,Yi}var dh={};/** @license React v17.0.2
41
41
  * react-jsx-runtime.development.js
42
42
  *
43
43
  * Copyright (c) Facebook, Inc. and its affiliates.
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var cp;function TE(){return cp||(cp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=N,n=jh(),o=60103,a=60106;e.Fragment=60107;var u=60108,l=60114,f=60109,d=60110,v=60112,g=60113,_=60120,O=60115,m=60116,S=60121,y=60122,E=60117,D=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;o=C("react.element"),a=C("react.portal"),e.Fragment=C("react.fragment"),u=C("react.strict_mode"),l=C("react.profiler"),f=C("react.provider"),d=C("react.context"),v=C("react.forward_ref"),g=C("react.suspense"),_=C("react.suspense_list"),O=C("react.memo"),m=C("react.lazy"),S=C("react.block"),y=C("react.server.block"),E=C("react.fundamental"),C("react.scope"),C("react.opaque.id"),D=C("react.debug_trace_mode"),C("react.offscreen"),I=C("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function H(p){if(p===null||typeof p!="object")return null;var P=k&&p[k]||p[T];return typeof P=="function"?P:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(p){{for(var P=arguments.length,F=new Array(P>1?P-1:0),Y=1;Y<P;Y++)F[Y-1]=arguments[Y];J("error",p,F)}}function J(p,P,F){{var Y=U.ReactDebugCurrentFrame,oe=Y.getStackAddendum();oe!==""&&(P+="%s",F=F.concat([oe]));var ae=F.map(function(te){return""+te});ae.unshift("Warning: "+P),Function.prototype.apply.call(console[p],console,ae)}}var ee=!1;function ge(p){return!!(typeof p=="string"||typeof p=="function"||p===e.Fragment||p===l||p===D||p===u||p===g||p===_||p===I||ee||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===O||p.$$typeof===f||p.$$typeof===d||p.$$typeof===v||p.$$typeof===E||p.$$typeof===S||p[0]===y))}function Ce(p,P,F){var Y=P.displayName||P.name||"";return p.displayName||(Y!==""?F+"("+Y+")":F)}function _e(p){return p.displayName||"Context"}function se(p){if(p==null)return null;if(typeof p.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case _:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case d:var P=p;return _e(P)+".Consumer";case f:var F=p;return _e(F._context)+".Provider";case v:return Ce(p,p.render,"ForwardRef");case O:return se(p.type);case S:return se(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return se(ae(oe))}catch{return null}}}return null}var Le=0,we,xe,We,ut,G,X,de;function ie(){}ie.__reactDisabledLog=!0;function ce(){{if(Le===0){we=console.log,xe=console.info,We=console.warn,ut=console.error,G=console.group,X=console.groupCollapsed,de=console.groupEnd;var p={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}Le++}}function fe(){{if(Le--,Le===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},p,{value:we}),info:n({},p,{value:xe}),warn:n({},p,{value:We}),error:n({},p,{value:ut}),group:n({},p,{value:G}),groupCollapsed:n({},p,{value:X}),groupEnd:n({},p,{value:de})})}Le<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=U.ReactCurrentDispatcher,pe;function le(p,P,F){{if(pe===void 0)try{throw Error()}catch(oe){var Y=oe.stack.trim().match(/\n( *(at )?)/);pe=Y&&Y[1]||""}return`
48
- `+pe+p}}var ye=!1,be;{var Ke=typeof WeakMap=="function"?WeakMap:Map;be=new Ke}function V(p,P){if(!p||ye)return"";{var F=be.get(p);if(F!==void 0)return F}var Y;ye=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,ce();try{if(P){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(lt){Y=lt}Reflect.construct(p,[],te)}else{try{te.call()}catch(lt){Y=lt}p.call(te.prototype)}}else{try{throw Error()}catch(lt){Y=lt}p()}}catch(lt){if(lt&&Y&&typeof lt.stack=="string"){for(var Q=lt.stack.split(`
49
- `),je=Y.stack.split(`
50
- `),Se=Q.length-1,Oe=je.length-1;Se>=1&&Oe>=0&&Q[Se]!==je[Oe];)Oe--;for(;Se>=1&&Oe>=0;Se--,Oe--)if(Q[Se]!==je[Oe]){if(Se!==1||Oe!==1)do if(Se--,Oe--,Oe<0||Q[Se]!==je[Oe]){var ot=`
51
- `+Q[Se].replace(" at new "," at ");return typeof p=="function"&&be.set(p,ot),ot}while(Se>=1&&Oe>=0);break}}}finally{ye=!1,ue.current=ae,fe(),Error.prepareStackTrace=oe}var kt=p?p.displayName||p.name:"",Ir=kt?le(kt):"";return typeof p=="function"&&be.set(p,Ir),Ir}function rt(p,P,F){return V(p,!1)}function it(p){var P=p.prototype;return!!(P&&P.isReactComponent)}function dt(p,P,F){if(p==null)return"";if(typeof p=="function")return V(p,it(p));if(typeof p=="string")return le(p);switch(p){case g:return le("Suspense");case _:return le("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case v:return rt(p.render);case O:return dt(p.type,P,F);case S:return rt(p._render);case m:{var Y=p,oe=Y._payload,ae=Y._init;try{return dt(ae(oe),P,F)}catch{}}}return""}var An={},gt=U.ReactDebugCurrentFrame;function Wt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);gt.setExtraStackFrame(F)}else gt.setExtraStackFrame(null)}function Sr(p,P,F,Y,oe){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var te in p)if(ae(p,te)){var Q=void 0;try{if(typeof p[te]!="function"){var je=Error((Y||"React class")+": "+F+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=p[te](P,te,Y,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){Q=Se}Q&&!(Q instanceof Error)&&(Wt(oe),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Y||"React class",F,te,typeof Q),Wt(null)),Q instanceof Error&&!(Q.message in An)&&(An[Q.message]=!0,Wt(oe),j("Failed %s type: %s",F,Q.message),Wt(null))}}}var Je=U.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,rn={key:!0,ref:!0,__self:!0,__source:!0},Kt,yn,Tt;Tt={};function rr(p){if(Qe.call(p,"ref")){var P=Object.getOwnPropertyDescriptor(p,"ref").get;if(P&&P.isReactWarning)return!1}return p.ref!==void 0}function on(p){if(Qe.call(p,"key")){var P=Object.getOwnPropertyDescriptor(p,"key").get;if(P&&P.isReactWarning)return!1}return p.key!==void 0}function Yt(p,P){if(typeof p.ref=="string"&&Je.current&&P&&Je.current.stateNode!==P){var F=se(Je.current.type);Tt[F]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',se(Je.current.type),p.ref),Tt[F]=!0)}}function Er(p,P){{var F=function(){Kt||(Kt=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};F.isReactWarning=!0,Object.defineProperty(p,"key",{get:F,configurable:!0})}}function xr(p,P){{var F=function(){yn||(yn=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};F.isReactWarning=!0,Object.defineProperty(p,"ref",{get:F,configurable:!0})}}var Or=function(p,P,F,Y,oe,ae,te){var Q={$$typeof:o,type:p,key:P,ref:F,props:te,_owner:ae};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function Tr(p,P,F,Y,oe){{var ae,te={},Q=null,je=null;F!==void 0&&(Q=""+F),on(P)&&(Q=""+P.key),rr(P)&&(je=P.ref,Yt(P,oe));for(ae in P)Qe.call(P,ae)&&!rn.hasOwnProperty(ae)&&(te[ae]=P[ae]);if(p&&p.defaultProps){var Se=p.defaultProps;for(ae in Se)te[ae]===void 0&&(te[ae]=Se[ae])}if(Q||je){var Oe=typeof p=="function"?p.displayName||p.name||"Unknown":p;Q&&Er(te,Oe),je&&xr(te,Oe)}return Or(p,Q,je,oe,Y,Je.current,te)}}var wn=U.ReactCurrentOwner,Un=U.ReactDebugCurrentFrame;function bt(p){if(p){var P=p._owner,F=dt(p.type,p._source,P?P.type:null);Un.setExtraStackFrame(F)}else Un.setExtraStackFrame(null)}var bn;bn=!1;function _n(p){return typeof p=="object"&&p!==null&&p.$$typeof===o}function Cr(){{if(wn.current){var p=se(wn.current.type);if(p)return`
47
+ */var ph;function uO(){return ph||(ph=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=N,r=Gv(),i=60103,a=60106;e.Fragment=60107;var s=60108,l=60114,c=60109,d=60110,p=60112,h=60113,w=60120,S=60115,v=60116,_=60121,g=60122,x=60117,C=60129,P=60131;if(typeof Symbol=="function"&&Symbol.for){var T=Symbol.for;i=T("react.element"),a=T("react.portal"),e.Fragment=T("react.fragment"),s=T("react.strict_mode"),l=T("react.profiler"),c=T("react.provider"),d=T("react.context"),p=T("react.forward_ref"),h=T("react.suspense"),w=T("react.suspense_list"),S=T("react.memo"),v=T("react.lazy"),_=T("react.block"),g=T("react.server.block"),x=T("react.fundamental"),T("react.scope"),T("react.opaque.id"),C=T("react.debug_trace_mode"),T("react.offscreen"),P=T("react.legacy_hidden")}var $=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function D(m){if(m===null||typeof m!="object")return null;var I=$&&m[$]||m[A];return typeof I=="function"?I:null}var H=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(m){{for(var I=arguments.length,W=new Array(I>1?I-1:0),K=1;K<I;K++)W[K-1]=arguments[K];V("error",m,W)}}function V(m,I,W){{var K=H.ReactDebugCurrentFrame,ce=K.getStackAddendum();ce!==""&&(I+="%s",W=W.concat([ce]));var ae=W.map(function(re){return""+re});ae.unshift("Warning: "+I),Function.prototype.apply.call(console[m],console,ae)}}var ee=!1;function ye(m){return!!(typeof m=="string"||typeof m=="function"||m===e.Fragment||m===l||m===C||m===s||m===h||m===w||m===P||ee||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===S||m.$$typeof===c||m.$$typeof===d||m.$$typeof===p||m.$$typeof===x||m.$$typeof===_||m[0]===g))}function Re(m,I,W){var K=I.displayName||I.name||"";return m.displayName||(K!==""?W+"("+K+")":W)}function Ee(m){return m.displayName||"Context"}function se(m){if(m==null)return null;if(typeof m.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case w:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case d:var I=m;return Ee(I)+".Consumer";case c:var W=m;return Ee(W._context)+".Provider";case p:return Re(m,m.render,"ForwardRef");case S:return se(m.type);case _:return se(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return se(ae(ce))}catch{return null}}}return null}var Fe=0,be,Oe,Be,pt,Z,Y,pe;function oe(){}oe.__reactDisabledLog=!0;function fe(){{if(Fe===0){be=console.log,Oe=console.info,Be=console.warn,pt=console.error,Z=console.group,Y=console.groupCollapsed,pe=console.groupEnd;var m={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Fe++}}function de(){{if(Fe--,Fe===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},m,{value:be}),info:r({},m,{value:Oe}),warn:r({},m,{value:Be}),error:r({},m,{value:pt}),group:r({},m,{value:Z}),groupCollapsed:r({},m,{value:Y}),groupEnd:r({},m,{value:pe})})}Fe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=H.ReactCurrentDispatcher,he;function le(m,I,W){{if(he===void 0)try{throw Error()}catch(ce){var K=ce.stack.trim().match(/\n( *(at )?)/);he=K&&K[1]||""}return`
48
+ `+he+m}}var we=!1,Se;{var Ve=typeof WeakMap=="function"?WeakMap:Map;Se=new Ve}function J(m,I){if(!m||we)return"";{var W=Se.get(m);if(W!==void 0)return W}var K;we=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,fe();try{if(I){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(ht){K=ht}Reflect.construct(m,[],re)}else{try{re.call()}catch(ht){K=ht}m.call(re.prototype)}}else{try{throw Error()}catch(ht){K=ht}m()}}catch(ht){if(ht&&K&&typeof ht.stack=="string"){for(var te=ht.stack.split(`
49
+ `),je=K.stack.split(`
50
+ `),_e=te.length-1,Ae=je.length-1;_e>=1&&Ae>=0&&te[_e]!==je[Ae];)Ae--;for(;_e>=1&&Ae>=0;_e--,Ae--)if(te[_e]!==je[Ae]){if(_e!==1||Ae!==1)do if(_e--,Ae--,Ae<0||te[_e]!==je[Ae]){var lt=`
51
+ `+te[_e].replace(" at new "," at ");return typeof m=="function"&&Se.set(m,lt),lt}while(_e>=1&&Ae>=0);break}}}finally{we=!1,ue.current=ae,de(),Error.prepareStackTrace=ce}var Yt=m?m.displayName||m.name:"",ni=Yt?le(Yt):"";return typeof m=="function"&&Se.set(m,ni),ni}function st(m,I,W){return J(m,!1)}function ut(m){var I=m.prototype;return!!(I&&I.isReactComponent)}function yt(m,I,W){if(m==null)return"";if(typeof m=="function")return J(m,ut(m));if(typeof m=="string")return le(m);switch(m){case h:return le("Suspense");case w:return le("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case p:return st(m.render);case S:return yt(m.type,I,W);case _:return st(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return yt(ae(ce),I,W)}catch{}}}return""}var Gr={},At=H.ReactDebugCurrentFrame;function er(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);At.setExtraStackFrame(W)}else At.setExtraStackFrame(null)}function Kn(m,I,W,K,ce){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var re in m)if(ae(m,re)){var te=void 0;try{if(typeof m[re]!="function"){var je=Error((K||"React class")+": "+W+" type `"+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}te=m[re](I,re,K,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){te=_e}te&&!(te instanceof Error)&&(er(ce),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",K||"React class",W,re,typeof te),er(null)),te instanceof Error&&!(te.message in Gr)&&(Gr[te.message]=!0,er(ce),j("Failed %s type: %s",W,te.message),er(null))}}}var et=H.ReactCurrentOwner,rt=Object.prototype.hasOwnProperty,yr={key:!0,ref:!0,__self:!0,__source:!0},sr,Lr,Nt;Nt={};function xn(m){if(rt.call(m,"ref")){var I=Object.getOwnPropertyDescriptor(m,"ref").get;if(I&&I.isReactWarning)return!1}return m.ref!==void 0}function wr(m){if(rt.call(m,"key")){var I=Object.getOwnPropertyDescriptor(m,"key").get;if(I&&I.isReactWarning)return!1}return m.key!==void 0}function ur(m,I){if(typeof m.ref=="string"&&et.current&&I&&et.current.stateNode!==I){var W=se(et.current.type);Nt[W]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',se(et.current.type),m.ref),Nt[W]=!0)}}function Yn(m,I){{var W=function(){sr||(sr=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(m,"key",{get:W,configurable:!0})}}function Vn(m,I){{var W=function(){Lr||(Lr=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(m,"ref",{get:W,configurable:!0})}}var Xn=function(m,I,W,K,ce,ae,re){var te={$$typeof:i,type:m,key:I,ref:W,props:re,_owner:ae};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Jn(m,I,W,K,ce){{var ae,re={},te=null,je=null;W!==void 0&&(te=""+W),wr(I)&&(te=""+I.key),xn(I)&&(je=I.ref,ur(I,ce));for(ae in I)rt.call(I,ae)&&!yr.hasOwnProperty(ae)&&(re[ae]=I[ae]);if(m&&m.defaultProps){var _e=m.defaultProps;for(ae in _e)re[ae]===void 0&&(re[ae]=_e[ae])}if(te||je){var Ae=typeof m=="function"?m.displayName||m.name||"Unknown":m;te&&Yn(re,Ae),je&&Vn(re,Ae)}return Xn(m,te,je,ce,K,et.current,re)}}var $r=H.ReactCurrentOwner,un=H.ReactDebugCurrentFrame;function It(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);un.setExtraStackFrame(W)}else un.setExtraStackFrame(null)}var Dr;Dr=!1;function Nr(m){return typeof m=="object"&&m!==null&&m.$$typeof===i}function Qn(){{if($r.current){var m=se($r.current.type);if(m)return`
52
52
 
53
- Check the render method of \``+p+"`."}return""}}function ki(p){{if(p!==void 0){var P=p.fileName.replace(/^.*[\\\/]/,""),F=p.lineNumber;return`
53
+ Check the render method of \``+m+"`."}return""}}function co(m){return""}var ei={};function Mi(m){{var I=Qn();if(!I){var W=typeof m=="string"?m:m.displayName||m.name;W&&(I=`
54
54
 
55
- Check your code at `+P+":"+F+"."}return""}}var Rr={};function ii(p){{var P=Cr();if(!P){var F=typeof p=="string"?p:p.displayName||p.name;F&&(P=`
56
-
57
- Check the top-level render call using <`+F+">.")}return P}}function ir(p,P){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var F=ii(P);if(Rr[F])return;Rr[F]=!0;var Y="";p&&p._owner&&p._owner!==wn.current&&(Y=" It was passed a child from "+se(p._owner.type)+"."),bt(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Y),bt(null)}}function Pr(p,P){{if(typeof p!="object")return;if(Array.isArray(p))for(var F=0;F<p.length;F++){var Y=p[F];_n(Y)&&ir(Y,P)}else if(_n(p))p._store&&(p._store.validated=!0);else if(p){var oe=H(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)_n(te.value)&&ir(te.value,P)}}}function Ni(p){{var P=p.type;if(P==null||typeof P=="string")return;var F;if(typeof P=="function")F=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===v||P.$$typeof===O))F=P.propTypes;else return;if(F){var Y=se(P);Sr(F,p.props,"prop",Y,p)}else if(P.PropTypes!==void 0&&!bn){bn=!0;var oe=se(P);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $i(p){{for(var P=Object.keys(p.props),F=0;F<P.length;F++){var Y=P[F];if(Y!=="children"&&Y!=="key"){bt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),bt(null);break}}p.ref!==null&&(bt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function Ar(p,P,F,Y,oe,ae){{var te=ge(p);if(!te){var Q="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=ki(oe);je?Q+=je:Q+=Cr();var Se;p===null?Se="null":Array.isArray(p)?Se="array":p!==void 0&&p.$$typeof===o?(Se="<"+(se(p.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,Q)}var Oe=Tr(p,P,F,oe,ae);if(Oe==null)return Oe;if(te){var ot=P.children;if(ot!==void 0)if(Y)if(Array.isArray(ot)){for(var kt=0;kt<ot.length;kt++)Pr(ot[kt],p);Object.freeze&&Object.freeze(ot)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pr(ot,p)}return p===e.Fragment?$i(Oe):Ni(Oe),Oe}}function oi(p,P,F){return Ar(p,P,F,!0)}function ji(p,P,F){return Ar(p,P,F,!1)}var Fi=ji,Wi=oi;e.jsx=Fi,e.jsxs=Wi}()}(lp)),lp}process.env.NODE_ENV==="production"?yl.exports=OE():yl.exports=TE();var nt=yl.exports;const CE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),RE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),Au=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),wl=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),PE=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),Fh=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),nt.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),AE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),IE=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),LE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),Yl=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})});var Wh={exports:{}};/*!
55
+ Check the top-level render call using <`+W+">.")}return I}}function On(m,I){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var W=Mi(I);if(ei[W])return;ei[W]=!0;var K="";m&&m._owner&&m._owner!==$r.current&&(K=" It was passed a child from "+se(m._owner.type)+"."),It(m),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,K),It(null)}}function ti(m,I){{if(typeof m!="object")return;if(Array.isArray(m))for(var W=0;W<m.length;W++){var K=m[W];Nr(K)&&On(K,I)}else if(Nr(m))m._store&&(m._store.validated=!0);else if(m){var ce=D(m);if(typeof ce=="function"&&ce!==m.entries)for(var ae=ce.call(m),re;!(re=ae.next()).done;)Nr(re.value)&&On(re.value,I)}}}function fo(m){{var I=m.type;if(I==null||typeof I=="string")return;var W;if(typeof I=="function")W=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===p||I.$$typeof===S))W=I.propTypes;else return;if(W){var K=se(I);Kn(W,m.props,"prop",K,m)}else if(I.PropTypes!==void 0&&!Dr){Dr=!0;var ce=se(I);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function po(m){{for(var I=Object.keys(m.props),W=0;W<I.length;W++){var K=I[W];if(K!=="children"&&K!=="key"){It(m),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",K),It(null);break}}m.ref!==null&&(It(m),j("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}function ri(m,I,W,K,ce,ae){{var re=ye(m);if(!re){var te="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=co();je?te+=je:te+=Qn();var _e;m===null?_e="null":Array.isArray(m)?_e="array":m!==void 0&&m.$$typeof===i?(_e="<"+(se(m.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof m,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,te)}var Ae=Jn(m,I,W,ce,ae);if(Ae==null)return Ae;if(re){var lt=I.children;if(lt!==void 0)if(K)if(Array.isArray(lt)){for(var Yt=0;Yt<lt.length;Yt++)ti(lt[Yt],m);Object.freeze&&Object.freeze(lt)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ti(lt,m)}return m===e.Fragment?po(Ae):fo(Ae),Ae}}function Fi(m,I,W){return ri(m,I,W,!0)}function ho(m,I,W){return ri(m,I,W,!1)}var vo=ho,mo=Fi;e.jsx=vo,e.jsxs=mo}()}(dh)),dh}process.env.NODE_ENV==="production"?cc.exports=sO():cc.exports=uO();var at=cc.exports;const lO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),cO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),bl=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),fc=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),fO=e=>at.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[at.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),Kv=e=>at.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),at.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),dO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),pO=e=>at.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[at.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),hO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),zc=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})});var Yv={exports:{}};/*!
58
56
  Copyright (c) 2018 Jed Watson.
59
57
  Licensed under the MIT License (MIT), see
60
58
  http://jedwatson.github.io/classnames
61
- */(function(e){(function(){var r={}.hasOwnProperty;function n(){for(var o=[],a=0;a<arguments.length;a++){var u=arguments[a];if(u){var l=typeof u;if(l==="string"||l==="number")o.push(u);else if(Array.isArray(u)){if(u.length){var f=n.apply(null,u);f&&o.push(f)}}else if(l==="object"){if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]")){o.push(u.toString());continue}for(var d in u)r.call(u,d)&&u[d]&&o.push(d)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Wh);var Hh=Wh.exports;const Ot=xh(Hh);function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qr.apply(this,arguments)}const ME=["children","options"],fp=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,r)=>(e[r.toLowerCase()]=r,e),{for:"htmlFor"}),dp={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},DE=["style","script"],kE=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,NE=/mailto:/i,$E=/\n{2,}$/,Uh=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,jE=/^ *> ?/gm,FE=/^ {2,}\n/,WE=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Bh=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,zh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,HE=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,UE=/^(?:\n *)*\n/,BE=/\r\n?/g,zE=/^\[\^([^\]]+)](:.*)\n/,qE=/^\[\^([^\]]+)]/,GE=/\f/g,KE=/^\s*?\[(x|\s)\]/,qh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Gh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Kh=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,bl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,YE=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Yh=/^<!--[\s\S]*?(?:-->)/,XE=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,_l=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,VE=/^\{.*\}$/,JE=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ZE=/^<([^ >]+@[^ >]+)>/,QE=/^<([^ >]+:\/[^ >]+)>/,ex=/-([a-z])?/gi,Xh=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,tx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,nx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,rx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ix=/(\[|\])/g,ox=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,ax=/\t/g,sx=/^ *\| */,ux=/(^ *\||\| *$)/g,lx=/ *$/,cx=/^ *:-+: *$/,fx=/^ *:-+ *$/,dx=/^ *-+: *$/,px=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,hx=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,vx=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,mx=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,gx=/^\\([^0-9A-Za-z\s])/,yx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,wx=/^\n+/,bx=/^([ \t]*)/,_x=/\\([^\\])/g,pp=/ *\n+$/,Sx=/(?:^|\n)( *)$/,Xl="(?:\\d+\\.)",Vl="(?:[*+-])";function Vh(e){return"( *)("+(e===1?Xl:Vl)+") +"}const Jh=Vh(1),Zh=Vh(2);function Qh(e){return new RegExp("^"+(e===1?Jh:Zh))}const Ex=Qh(1),xx=Qh(2);function ev(e){return new RegExp("^"+(e===1?Jh:Zh)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Xl:Vl)+" )[^\\n]*)*(\\n|$)","gm")}const tv=ev(1),nv=ev(2);function rv(e){const r=e===1?Xl:Vl;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const iv=rv(1),ov=rv(2);function hp(e,r){const n=r===1,o=n?iv:ov,a=n?tv:nv,u=n?Ex:xx;return{t(l,f,d){const v=Sx.exec(d);return v&&(f.o||!f._&&!f.u)?o.exec(l=v[1]+l):null},i:$e.HIGH,l(l,f,d){const v=n?+l[2]:void 0,g=l[0].replace($E,`
62
- `).match(a);let _=!1;return{p:g.map(function(O,m){const S=u.exec(O)[0].length,y=new RegExp("^ {1,"+S+"}","gm"),E=O.replace(y,"").replace(u,""),D=m===g.length-1,I=E.indexOf(`
59
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i=[],a=0;a<arguments.length;a++){var s=arguments[a];if(s){var l=typeof s;if(l==="string"||l==="number")i.push(s);else if(Array.isArray(s)){if(s.length){var c=r.apply(null,s);c&&i.push(c)}}else if(l==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){i.push(s.toString());continue}for(var d in s)t.call(s,d)&&s[d]&&i.push(d)}}}return i.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Yv);var Vv=Yv.exports;const Dt=$c(Vv);function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},gi.apply(this,arguments)}const vO=["children","options"],hh=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),vh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},mO=["style","script"],gO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,yO=/mailto:/i,wO=/\n{2,}$/,Xv=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,bO=/^ *> ?/gm,SO=/^ {2,}\n/,EO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Jv=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Qv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,_O=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,xO=/^(?:\n *)*\n/,OO=/\r\n?/g,AO=/^\[\^([^\]]+)](:.*)\n/,TO=/^\[\^([^\]]+)]/,RO=/\f/g,CO=/^\s*?\[(x|\s)\]/,em=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,tm=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,rm=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,dc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,PO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,nm=/^<!--[\s\S]*?(?:-->)/,IO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,pc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,MO=/^\{.*\}$/,FO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,LO=/^<([^ >]+@[^ >]+)>/,$O=/^<([^ >]+:\/[^ >]+)>/,DO=/-([a-z])?/gi,im=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,NO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,kO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,jO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,WO=/(\[|\])/g,UO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,HO=/\t/g,BO=/^ *\| */,zO=/(^ *\||\| *$)/g,qO=/ *$/,ZO=/^ *:-+: *$/,GO=/^ *:-+ *$/,KO=/^ *-+: *$/,YO=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,VO=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,XO=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,JO=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,QO=/^\\([^0-9A-Za-z\s])/,eA=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,tA=/^\n+/,rA=/^([ \t]*)/,nA=/\\([^\\])/g,mh=/ *\n+$/,iA=/(?:^|\n)( *)$/,qc="(?:\\d+\\.)",Zc="(?:[*+-])";function om(e){return"( *)("+(e===1?qc:Zc)+") +"}const am=om(1),sm=om(2);function um(e){return new RegExp("^"+(e===1?am:sm))}const oA=um(1),aA=um(2);function lm(e){return new RegExp("^"+(e===1?am:sm)+"[^\\n]*(?:\\n(?!\\1"+(e===1?qc:Zc)+" )[^\\n]*)*(\\n|$)","gm")}const cm=lm(1),fm=lm(2);function dm(e){const t=e===1?qc:Zc;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const pm=dm(1),hm=dm(2);function gh(e,t){const r=t===1,i=r?pm:hm,a=r?cm:fm,s=r?oA:aA;return{t(l,c,d){const p=iA.exec(d);return p&&(c.o||!c._&&!c.u)?i.exec(l=p[1]+l):null},i:ke.HIGH,l(l,c,d){const p=r?+l[2]:void 0,h=l[0].replace(wO,`
60
+ `).match(a);let w=!1;return{p:h.map(function(S,v){const _=s.exec(S)[0].length,g=new RegExp("^ {1,"+_+"}","gm"),x=S.replace(g,"").replace(s,""),C=v===h.length-1,P=x.indexOf(`
63
61
 
64
- `)!==-1||D&&_;_=I;const C=d._,k=d.o;let T;d.o=!0,I?(d._=!1,T=E.replace(pp,`
62
+ `)!==-1||C&&w;w=P;const T=d._,$=d.o;let A;d.o=!0,P?(d._=!1,A=x.replace(mh,`
65
63
 
66
- `)):(d._=!0,T=E.replace(pp,""));const H=f(T,d);return d._=C,d.o=k,H}),m:n,g:v}},h:(l,f,d)=>e(l.m?"ol":"ul",{key:d.k,start:l.g},l.p.map(function(v,g){return e("li",{key:g},f(v,d))}))}}const Ox=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Tx=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,av=[Uh,Bh,zh,qh,Kh,Gh,Yh,Xh,tv,iv,nv,ov],Cx=[...av,/^[^\n]+(?: \n|\n{2,})/,bl,_l];function Rx(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Px(e){return dx.test(e)?"right":cx.test(e)?"center":fx.test(e)?"left":null}function vp(e,r,n){const o=n.$;n.$=!0;const a=r(e.trim(),n);n.$=o;let u=[[]];return a.forEach(function(l,f){l.type==="tableSeparator"?f!==0&&f!==a.length-1&&u.push([]):(l.type!=="text"||a[f+1]!=null&&a[f+1].type!=="tableSeparator"||(l.v=l.v.replace(lx,"")),u[u.length-1].push(l))}),u}function Ax(e,r,n){n._=!0;const o=vp(e[1],r,n),a=e[2].replace(ux,"").split("|").map(Px),u=function(l,f,d){return l.trim().split(`
67
- `).map(function(v){return vp(v,f,d)})}(e[3],r,n);return n._=!1,{S:a,A:u,L:o,type:"table"}}function mp(e,r){return e.S[r]==null?{}:{textAlign:e.S[r]}}function hr(e){return function(r,n){return n._?e.exec(r):null}}function vr(e){return function(r,n){return n._||n.u?e.exec(r):null}}function Zn(e){return function(r,n){return n._||n.u?null:e.exec(r)}}function ro(e){return function(r){return e.exec(r)}}function Ix(e,r,n){if(r._||r.u||n&&!n.endsWith(`
68
- `))return null;let o="";e.split(`
69
- `).every(u=>!av.some(l=>l.test(u))&&(o+=u+`
70
- `,u.trim()));const a=o.trimEnd();return a==""?null:[o,a]}function Si(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function gp(e){return e.replace(_x,"$1")}function Fa(e,r,n){const o=n._||!1,a=n.u||!1;n._=!0,n.u=!0;const u=e(r,n);return n._=o,n.u=a,u}function Lx(e,r,n){const o=n._||!1,a=n.u||!1;n._=!1,n.u=!0;const u=e(r,n);return n._=o,n.u=a,u}function Mx(e,r,n){return n._=!1,e(r,n)}const Iu=(e,r,n)=>({v:Fa(r,e[1],n)});function Lu(){return{}}function Mu(){return null}function Dx(...e){return e.filter(Boolean).join(" ")}function Du(e,r,n){let o=e;const a=r.split(".");for(;a.length&&(o=o[a[0]],o!==void 0);)a.shift();return o||n}var $e;function kx(e,r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||Rx,r.namedCodesToUnicode=r.namedCodesToUnicode?qr({},dp,r.namedCodesToUnicode):dp;const n=r.createElement||L.createElement;function o(m,S,...y){const E=Du(r.overrides,`${m}.props`,{});return n(function(D,I){const C=Du(I,D);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:Du(I,`${D}.component`,D):D}(m,r.overrides),qr({},S,E,{className:Dx(S==null?void 0:S.className,E.className)||void 0}),...y)}function a(m){let S=!1;r.forceInline?S=!0:r.forceBlock||(S=ox.test(m)===!1);const y=g(v(S?m:`${m.trimEnd().replace(wx,"")}
64
+ `)):(d._=!0,A=x.replace(mh,""));const D=c(A,d);return d._=T,d.o=$,D}),m:r,g:p}},h:(l,c,d)=>e(l.m?"ol":"ul",{key:d.k,start:l.g},l.p.map(function(p,h){return e("li",{key:h},c(p,d))}))}}const sA=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,uA=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,vm=[Xv,Jv,Qv,em,rm,tm,nm,im,cm,pm,fm,hm],lA=[...vm,/^[^\n]+(?: \n|\n{2,})/,dc,pc];function cA(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function fA(e){return KO.test(e)?"right":ZO.test(e)?"center":GO.test(e)?"left":null}function yh(e,t,r){const i=r.$;r.$=!0;const a=t(e.trim(),r);r.$=i;let s=[[]];return a.forEach(function(l,c){l.type==="tableSeparator"?c!==0&&c!==a.length-1&&s.push([]):(l.type!=="text"||a[c+1]!=null&&a[c+1].type!=="tableSeparator"||(l.v=l.v.replace(qO,"")),s[s.length-1].push(l))}),s}function dA(e,t,r){r._=!0;const i=yh(e[1],t,r),a=e[2].replace(zO,"").split("|").map(fA),s=function(l,c,d){return l.trim().split(`
65
+ `).map(function(p){return yh(p,c,d)})}(e[3],t,r);return r._=!1,{S:a,A:s,L:i,type:"table"}}function wh(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function Dn(e){return function(t,r){return r._?e.exec(t):null}}function Nn(e){return function(t,r){return r._||r.u?e.exec(t):null}}function yn(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Fo(e){return function(t){return e.exec(t)}}function pA(e,t,r){if(t._||t.u||r&&!r.endsWith(`
66
+ `))return null;let i="";e.split(`
67
+ `).every(s=>!vm.some(l=>l.test(s))&&(i+=s+`
68
+ `,s.trim()));const a=i.trimEnd();return a==""?null:[i,a]}function Vi(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function bh(e){return e.replace(nA,"$1")}function Ss(e,t,r){const i=r._||!1,a=r.u||!1;r._=!0,r.u=!0;const s=e(t,r);return r._=i,r.u=a,s}function hA(e,t,r){const i=r._||!1,a=r.u||!1;r._=!1,r.u=!0;const s=e(t,r);return r._=i,r.u=a,s}function vA(e,t,r){return r._=!1,e(t,r)}const Sl=(e,t,r)=>({v:Ss(t,e[1],r)});function El(){return{}}function _l(){return null}function mA(...e){return e.filter(Boolean).join(" ")}function xl(e,t,r){let i=e;const a=t.split(".");for(;a.length&&(i=i[a[0]],i!==void 0);)a.shift();return i||r}var ke;function gA(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||cA,t.namedCodesToUnicode=t.namedCodesToUnicode?gi({},vh,t.namedCodesToUnicode):vh;const r=t.createElement||F.createElement;function i(v,_,...g){const x=xl(t.overrides,`${v}.props`,{});return r(function(C,P){const T=xl(P,C);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:xl(P,`${C}.component`,C):C}(v,t.overrides),gi({},_,x,{className:mA(_==null?void 0:_.className,x.className)||void 0}),...g)}function a(v){let _=!1;t.forceInline?_=!0:t.forceBlock||(_=UO.test(v)===!1);const g=h(p(_?v:`${v.trimEnd().replace(tA,"")}
71
69
 
72
- `,{_:S}));for(;typeof y[y.length-1]=="string"&&!y[y.length-1].trim();)y.pop();if(r.wrapper===null)return y;const E=r.wrapper||(S?"span":"div");let D;if(y.length>1||r.forceWrapper)D=y;else{if(y.length===1)return D=y[0],typeof D=="string"?o("span",{key:"outer"},D):D;D=null}return L.createElement(E,{key:"outer"},D)}function u(m){const S=m.match(kE);return S?S.reduce(function(y,E,D){const I=E.indexOf("=");if(I!==-1){const C=function(U){return U.indexOf("-")!==-1&&U.match(XE)===null&&(U=U.replace(ex,function(j,J){return J.toUpperCase()})),U}(E.slice(0,I)).trim(),k=function(U){const j=U[0];return(j==='"'||j==="'")&&U.length>=2&&U[U.length-1]===j?U.slice(1,-1):U}(E.slice(I+1).trim()),T=fp[C]||C,H=y[T]=function(U,j){return U==="style"?j.split(/;\s?/).reduce(function(J,ee){const ge=ee.slice(0,ee.indexOf(":"));return J[ge.replace(/(-[a-z])/g,Ce=>Ce[1].toUpperCase())]=ee.slice(ge.length+1).trim(),J},{}):U==="href"?Si(j):(j.match(VE)&&(j=j.slice(1,j.length-1)),j==="true"||j!=="false"&&j)}(C,k);typeof H=="string"&&(bl.test(H)||_l.test(H))&&(y[T]=L.cloneElement(a(H.trim()),{key:D}))}else E!=="style"&&(y[fp[E]||E]=!0);return y},{}):null}const l=[],f={},d={blockQuote:{t:Zn(Uh),i:$e.HIGH,l:(m,S,y)=>({v:S(m[0].replace(jE,""),y)}),h:(m,S,y)=>o("blockquote",{key:y.k},S(m.v,y))},breakLine:{t:ro(FE),i:$e.HIGH,l:Lu,h:(m,S,y)=>o("br",{key:y.k})},breakThematic:{t:Zn(WE),i:$e.HIGH,l:Lu,h:(m,S,y)=>o("hr",{key:y.k})},codeBlock:{t:Zn(zh),i:$e.MAX,l:m=>({v:m[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(m,S,y)=>o("pre",{key:y.k},o("code",qr({},m.O,{className:m.M?`lang-${m.M}`:""}),m.v))},codeFenced:{t:Zn(Bh),i:$e.MAX,l:m=>({O:u(m[3]||""),v:m[4],M:m[2]||void 0,type:"codeBlock"})},codeInline:{t:vr(HE),i:$e.LOW,l:m=>({v:m[2]}),h:(m,S,y)=>o("code",{key:y.k},m.v)},footnote:{t:Zn(zE),i:$e.MAX,l:m=>(l.push({I:m[2],j:m[1]}),{}),h:Mu},footnoteReference:{t:hr(qE),i:$e.HIGH,l:m=>({v:m[1],B:`#${r.slugify(m[1])}`}),h:(m,S,y)=>o("a",{key:y.k,href:Si(m.B)},o("sup",{key:y.k},m.v))},gfmTask:{t:hr(KE),i:$e.HIGH,l:m=>({R:m[1].toLowerCase()==="x"}),h:(m,S,y)=>o("input",{checked:m.R,key:y.k,readOnly:!0,type:"checkbox"})},heading:{t:Zn(r.enforceAtxHeadings?Gh:qh),i:$e.HIGH,l:(m,S,y)=>({v:Fa(S,m[2],y),T:r.slugify(m[2]),C:m[1].length}),h:(m,S,y)=>o(`h${m.C}`,{id:m.T,key:y.k},S(m.v,y))},headingSetext:{t:Zn(Kh),i:$e.MAX,l:(m,S,y)=>({v:Fa(S,m[1],y),C:m[2]==="="?1:2,type:"heading"})},htmlComment:{t:ro(Yh),i:$e.HIGH,l:()=>({}),h:Mu},image:{t:vr(Tx),i:$e.HIGH,l:m=>({D:m[1],B:gp(m[2]),F:m[3]}),h:(m,S,y)=>o("img",{key:y.k,alt:m.D||void 0,title:m.F||void 0,src:Si(m.B)})},link:{t:hr(Ox),i:$e.LOW,l:(m,S,y)=>({v:Lx(S,m[1],y),B:gp(m[2]),F:m[3]}),h:(m,S,y)=>o("a",{key:y.k,href:Si(m.B),title:m.F},S(m.v,y))},linkAngleBraceStyleDetector:{t:hr(QE),i:$e.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],type:"link"})},linkBareUrlDetector:{t:(m,S)=>S.N?null:hr(JE)(m,S),i:$e.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],F:void 0,type:"link"})},linkMailtoDetector:{t:hr(ZE),i:$e.MAX,l(m){let S=m[1],y=m[1];return NE.test(y)||(y="mailto:"+y),{v:[{v:S.replace("mailto:",""),type:"text"}],B:y,type:"link"}}},orderedList:hp(o,1),unorderedList:hp(o,2),newlineCoalescer:{t:Zn(UE),i:$e.LOW,l:Lu,h:()=>`
73
- `},paragraph:{t:Ix,i:$e.LOW,l:Iu,h:(m,S,y)=>o("p",{key:y.k},S(m.v,y))},ref:{t:hr(tx),i:$e.MAX,l:m=>(f[m[1]]={B:m[2],F:m[4]},{}),h:Mu},refImage:{t:vr(nx),i:$e.MAX,l:m=>({D:m[1]||void 0,P:m[2]}),h:(m,S,y)=>o("img",{key:y.k,alt:m.D,src:Si(f[m.P].B),title:f[m.P].F})},refLink:{t:hr(rx),i:$e.MAX,l:(m,S,y)=>({v:S(m[1],y),Z:S(m[0].replace(ix,"\\$1"),y),P:m[2]}),h:(m,S,y)=>f[m.P]?o("a",{key:y.k,href:Si(f[m.P].B),title:f[m.P].F},S(m.v,y)):o("span",{key:y.k},S(m.Z,y))},table:{t:Zn(Xh),i:$e.HIGH,l:Ax,h:(m,S,y)=>o("table",{key:y.k},o("thead",null,o("tr",null,m.L.map(function(E,D){return o("th",{key:D,style:mp(m,D)},S(E,y))}))),o("tbody",null,m.A.map(function(E,D){return o("tr",{key:D},E.map(function(I,C){return o("td",{key:C,style:mp(m,C)},S(I,y))}))})))},tableSeparator:{t:function(m,S){return S.$?(S._=!0,sx.exec(m)):null},i:$e.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:ro(yx),i:$e.MIN,l:m=>({v:m[0].replace(YE,(S,y)=>r.namedCodesToUnicode[y]?r.namedCodesToUnicode[y]:S)}),h:m=>m.v},textBolded:{t:vr(px),i:$e.MED,l:(m,S,y)=>({v:S(m[2],y)}),h:(m,S,y)=>o("strong",{key:y.k},S(m.v,y))},textEmphasized:{t:vr(hx),i:$e.LOW,l:(m,S,y)=>({v:S(m[2],y)}),h:(m,S,y)=>o("em",{key:y.k},S(m.v,y))},textEscaped:{t:vr(gx),i:$e.HIGH,l:m=>({v:m[1],type:"text"})},textMarked:{t:vr(vx),i:$e.LOW,l:Iu,h:(m,S,y)=>o("mark",{key:y.k},S(m.v,y))},textStrikethroughed:{t:vr(mx),i:$e.LOW,l:Iu,h:(m,S,y)=>o("del",{key:y.k},S(m.v,y))}};r.disableParsingRawHTML!==!0&&(d.htmlBlock={t:ro(bl),i:$e.HIGH,l(m,S,y){const[,E]=m[3].match(bx),D=new RegExp(`^${E}`,"gm"),I=m[3].replace(D,""),C=(k=I,Cx.some(j=>j.test(k))?Mx:Fa);var k;const T=m[1].toLowerCase(),H=DE.indexOf(T)!==-1;y.N=y.N||T==="a";const U=H?m[3]:C(S,I,y);return y.N=!1,{O:u(m[2]),v:U,G:H,H:H?T:m[1]}},h:(m,S,y)=>o(m.H,qr({key:y.k},m.O),m.G?m.v:S(m.v,y))},d.htmlSelfClosing={t:ro(_l),i:$e.HIGH,l:m=>({O:u(m[2]||""),H:m[1]}),h:(m,S,y)=>o(m.H,qr({},m.O,{key:y.k}))});const v=function(m){let S=Object.keys(m);function y(E,D){let I=[],C="";for(;E;){let k=0;for(;k<S.length;){const T=S[k],H=m[T],U=H.t(E,D,C);if(U){const j=U[0];E=E.substring(j.length);const J=H.l(U,y,D);J.type==null&&(J.type=T),I.push(J),C=j;break}k++}}return I}return S.sort(function(E,D){let I=m[E].i,C=m[D].i;return I!==C?I-C:E<D?-1:1}),function(E,D){return y(function(I){return I.replace(BE,`
74
- `).replace(GE,"").replace(ax," ")}(E),D)}}(d),g=(_=function(m){return function(S,y,E){return m[S.type].h(S,y,E)}}(d),function m(S,y={}){if(Array.isArray(S)){const E=y.k,D=[];let I=!1;for(let C=0;C<S.length;C++){y.k=C;const k=m(S[C],y),T=typeof k=="string";T&&I?D[D.length-1]+=k:k!==null&&D.push(k),I=T}return y.k=E,D}return _(S,m,y)});var _;const O=a(e);return l.length?o("div",null,O,o("footer",{key:"footer"},l.map(function(m){return o("div",{id:r.slugify(m.j),key:m.j},m.j,g(v(m.I,{_:!0})))}))):O}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})($e||($e={}));const qa=e=>{let{children:r,options:n}=e,o=function(a,u){if(a==null)return{};var l,f,d={},v=Object.keys(a);for(f=0;f<v.length;f++)u.indexOf(l=v[f])>=0||(d[l]=a[l]);return d}(e,ME);return L.cloneElement(kx(r,n),o)},yp=({kind:e,customIcon:r})=>{if(r)return $.jsx(r,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return $.jsx(IE,{className:"flex-none h-6 w-6"});case"info":return $.jsx($.Fragment,{children:$.jsx(wl,{className:"flex-none h-6 w-6"})});case"warning":return $.jsx($.Fragment,{children:$.jsx(Yl,{className:"flex-none h-6 w-6"})});case"message":return $.jsx($.Fragment,{children:$.jsx(wl,{className:"flex-none h-6 w-6"})});default:return null}},Nx=({id:e,onClose:r,kind:n,message:o,markdown:a,customIcon:u})=>{const l=({className:f}={})=>$.jsx("button",{onClick:r,className:Ot("flex items-center justify-center p-1",f),children:$.jsx(RE,{className:"h-5 w-5 font-thin stroke-current"})});return $.jsx("div",{className:Ot("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-primary-light text-primary":n==="info","bg-green-200 text-green-500":n==="message"}),children:typeof o=="string"?$.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[$.jsxs("div",{className:"flex items-center gap-1",children:[$.jsx(yp,{kind:n,customIcon:u}),a?$.jsx(qa,{children:o}):$.jsx($.Fragment,{children:o})]}),l()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(f=>f.messages.length>0).map(f=>$.jsxs($.Fragment,{children:[$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(yp,{kind:n,customIcon:u}),$.jsxs("span",{children:[f.title," :"]})]}),$.jsx("ul",{className:"list-disc px-12",children:f.messages.map(d=>$.jsx("li",{children:a?$.jsx(qa,{children:d}):$.jsx($.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},sv=({children:e,size:r,className:n,...o})=>$.jsx("div",{style:{"--width":`${r||24}px`},className:Ot("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var ba,$x=new Uint8Array(16);function uv(){if(!ba&&(ba=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ba))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ba($x)}const jx=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ns(e){return typeof e=="string"&&jx.test(e)}var Et=[];for(var ku=0;ku<256;++ku)Et.push((ku+256).toString(16).substr(1));function rs(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Et[e[r+0]]+Et[e[r+1]]+Et[e[r+2]]+Et[e[r+3]]+"-"+Et[e[r+4]]+Et[e[r+5]]+"-"+Et[e[r+6]]+Et[e[r+7]]+"-"+Et[e[r+8]]+Et[e[r+9]]+"-"+Et[e[r+10]]+Et[e[r+11]]+Et[e[r+12]]+Et[e[r+13]]+Et[e[r+14]]+Et[e[r+15]]).toLowerCase();if(!ns(n))throw TypeError("Stringified UUID is invalid");return n}var wp,Nu,$u=0,ju=0;function Fx(e,r,n){var o=r&&n||0,a=r||new Array(16);e=e||{};var u=e.node||wp,l=e.clockseq!==void 0?e.clockseq:Nu;if(u==null||l==null){var f=e.random||(e.rng||uv)();u==null&&(u=wp=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),l==null&&(l=Nu=(f[6]<<8|f[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),v=e.nsecs!==void 0?e.nsecs:ju+1,g=d-$u+(v-ju)/1e4;if(g<0&&e.clockseq===void 0&&(l=l+1&16383),(g<0||d>$u)&&e.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$u=d,ju=v,Nu=l,d+=122192928e5;var _=((d&268435455)*1e4+v)%4294967296;a[o++]=_>>>24&255,a[o++]=_>>>16&255,a[o++]=_>>>8&255,a[o++]=_&255;var O=d/4294967296*1e4&268435455;a[o++]=O>>>8&255,a[o++]=O&255,a[o++]=O>>>24&15|16,a[o++]=O>>>16&255,a[o++]=l>>>8|128,a[o++]=l&255;for(var m=0;m<6;++m)a[o+m]=u[m];return r||rs(a)}function lv(e){if(!ns(e))throw TypeError("Invalid UUID");var r,n=new Uint8Array(16);return n[0]=(r=parseInt(e.slice(0,8),16))>>>24,n[1]=r>>>16&255,n[2]=r>>>8&255,n[3]=r&255,n[4]=(r=parseInt(e.slice(9,13),16))>>>8,n[5]=r&255,n[6]=(r=parseInt(e.slice(14,18),16))>>>8,n[7]=r&255,n[8]=(r=parseInt(e.slice(19,23),16))>>>8,n[9]=r&255,n[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=r/4294967296&255,n[12]=r>>>24&255,n[13]=r>>>16&255,n[14]=r>>>8&255,n[15]=r&255,n}function Wx(e){e=unescape(encodeURIComponent(e));for(var r=[],n=0;n<e.length;++n)r.push(e.charCodeAt(n));return r}var Hx="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Ux="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function cv(e,r,n){function o(a,u,l,f){if(typeof a=="string"&&(a=Wx(a)),typeof u=="string"&&(u=lv(u)),u.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+a.length);if(d.set(u),d.set(a,u.length),d=n(d),d[6]=d[6]&15|r,d[8]=d[8]&63|128,l){f=f||0;for(var v=0;v<16;++v)l[f+v]=d[v];return l}return rs(d)}try{o.name=e}catch{}return o.DNS=Hx,o.URL=Ux,o}function Bx(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var n=0;n<r.length;++n)e[n]=r.charCodeAt(n)}return zx(qx(Gx(e),e.length*8))}function zx(e){for(var r=[],n=e.length*32,o="0123456789abcdef",a=0;a<n;a+=8){var u=e[a>>5]>>>a%32&255,l=parseInt(o.charAt(u>>>4&15)+o.charAt(u&15),16);r.push(l)}return r}function fv(e){return(e+64>>>9<<4)+14+1}function qx(e,r){e[r>>5]|=128<<r%32,e[fv(r)-1]=r;for(var n=1732584193,o=-271733879,a=-1732584194,u=271733878,l=0;l<e.length;l+=16){var f=n,d=o,v=a,g=u;n=Pt(n,o,a,u,e[l],7,-680876936),u=Pt(u,n,o,a,e[l+1],12,-389564586),a=Pt(a,u,n,o,e[l+2],17,606105819),o=Pt(o,a,u,n,e[l+3],22,-1044525330),n=Pt(n,o,a,u,e[l+4],7,-176418897),u=Pt(u,n,o,a,e[l+5],12,1200080426),a=Pt(a,u,n,o,e[l+6],17,-1473231341),o=Pt(o,a,u,n,e[l+7],22,-45705983),n=Pt(n,o,a,u,e[l+8],7,1770035416),u=Pt(u,n,o,a,e[l+9],12,-1958414417),a=Pt(a,u,n,o,e[l+10],17,-42063),o=Pt(o,a,u,n,e[l+11],22,-1990404162),n=Pt(n,o,a,u,e[l+12],7,1804603682),u=Pt(u,n,o,a,e[l+13],12,-40341101),a=Pt(a,u,n,o,e[l+14],17,-1502002290),o=Pt(o,a,u,n,e[l+15],22,1236535329),n=At(n,o,a,u,e[l+1],5,-165796510),u=At(u,n,o,a,e[l+6],9,-1069501632),a=At(a,u,n,o,e[l+11],14,643717713),o=At(o,a,u,n,e[l],20,-373897302),n=At(n,o,a,u,e[l+5],5,-701558691),u=At(u,n,o,a,e[l+10],9,38016083),a=At(a,u,n,o,e[l+15],14,-660478335),o=At(o,a,u,n,e[l+4],20,-405537848),n=At(n,o,a,u,e[l+9],5,568446438),u=At(u,n,o,a,e[l+14],9,-1019803690),a=At(a,u,n,o,e[l+3],14,-187363961),o=At(o,a,u,n,e[l+8],20,1163531501),n=At(n,o,a,u,e[l+13],5,-1444681467),u=At(u,n,o,a,e[l+2],9,-51403784),a=At(a,u,n,o,e[l+7],14,1735328473),o=At(o,a,u,n,e[l+12],20,-1926607734),n=It(n,o,a,u,e[l+5],4,-378558),u=It(u,n,o,a,e[l+8],11,-2022574463),a=It(a,u,n,o,e[l+11],16,1839030562),o=It(o,a,u,n,e[l+14],23,-35309556),n=It(n,o,a,u,e[l+1],4,-1530992060),u=It(u,n,o,a,e[l+4],11,1272893353),a=It(a,u,n,o,e[l+7],16,-155497632),o=It(o,a,u,n,e[l+10],23,-1094730640),n=It(n,o,a,u,e[l+13],4,681279174),u=It(u,n,o,a,e[l],11,-358537222),a=It(a,u,n,o,e[l+3],16,-722521979),o=It(o,a,u,n,e[l+6],23,76029189),n=It(n,o,a,u,e[l+9],4,-640364487),u=It(u,n,o,a,e[l+12],11,-421815835),a=It(a,u,n,o,e[l+15],16,530742520),o=It(o,a,u,n,e[l+2],23,-995338651),n=Lt(n,o,a,u,e[l],6,-198630844),u=Lt(u,n,o,a,e[l+7],10,1126891415),a=Lt(a,u,n,o,e[l+14],15,-1416354905),o=Lt(o,a,u,n,e[l+5],21,-57434055),n=Lt(n,o,a,u,e[l+12],6,1700485571),u=Lt(u,n,o,a,e[l+3],10,-1894986606),a=Lt(a,u,n,o,e[l+10],15,-1051523),o=Lt(o,a,u,n,e[l+1],21,-2054922799),n=Lt(n,o,a,u,e[l+8],6,1873313359),u=Lt(u,n,o,a,e[l+15],10,-30611744),a=Lt(a,u,n,o,e[l+6],15,-1560198380),o=Lt(o,a,u,n,e[l+13],21,1309151649),n=Lt(n,o,a,u,e[l+4],6,-145523070),u=Lt(u,n,o,a,e[l+11],10,-1120210379),a=Lt(a,u,n,o,e[l+2],15,718787259),o=Lt(o,a,u,n,e[l+9],21,-343485551),n=yr(n,f),o=yr(o,d),a=yr(a,v),u=yr(u,g)}return[n,o,a,u]}function Gx(e){if(e.length===0)return[];for(var r=e.length*8,n=new Uint32Array(fv(r)),o=0;o<r;o+=8)n[o>>5]|=(e[o/8]&255)<<o%32;return n}function yr(e,r){var n=(e&65535)+(r&65535),o=(e>>16)+(r>>16)+(n>>16);return o<<16|n&65535}function Kx(e,r){return e<<r|e>>>32-r}function is(e,r,n,o,a,u){return yr(Kx(yr(yr(r,e),yr(o,u)),a),n)}function Pt(e,r,n,o,a,u,l){return is(r&n|~r&o,e,r,a,u,l)}function At(e,r,n,o,a,u,l){return is(r&o|n&~o,e,r,a,u,l)}function It(e,r,n,o,a,u,l){return is(r^n^o,e,r,a,u,l)}function Lt(e,r,n,o,a,u,l){return is(n^(r|~o),e,r,a,u,l)}var Yx=cv("v3",48,Bx);const Xx=Yx;function Vx(e,r,n){e=e||{};var o=e.random||(e.rng||uv)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(var a=0;a<16;++a)r[n+a]=o[a];return r}return rs(o)}function Jx(e,r,n,o){switch(e){case 0:return r&n^~r&o;case 1:return r^n^o;case 2:return r&n^r&o^n&o;case 3:return r^n^o}}function Fu(e,r){return e<<r|e>>>32-r}function Zx(e){var r=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,l=Math.ceil(u/16),f=new Array(l),d=0;d<l;++d){for(var v=new Uint32Array(16),g=0;g<16;++g)v[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*4+3];f[d]=v}f[l-1][14]=(e.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(e.length-1)*8&4294967295;for(var _=0;_<l;++_){for(var O=new Uint32Array(80),m=0;m<16;++m)O[m]=f[_][m];for(var S=16;S<80;++S)O[S]=Fu(O[S-3]^O[S-8]^O[S-14]^O[S-16],1);for(var y=n[0],E=n[1],D=n[2],I=n[3],C=n[4],k=0;k<80;++k){var T=Math.floor(k/20),H=Fu(y,5)+Jx(T,E,D,I)+C+r[T]+O[k]>>>0;C=I,I=D,D=Fu(E,30)>>>0,E=y,y=H}n[0]=n[0]+y>>>0,n[1]=n[1]+E>>>0,n[2]=n[2]+D>>>0,n[3]=n[3]+I>>>0,n[4]=n[4]+C>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var Qx=cv("v5",80,Zx);const eO=Qx,tO="00000000-0000-0000-0000-000000000000";function nO(e){if(!ns(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const rO=Object.freeze(Object.defineProperty({__proto__:null,NIL:tO,parse:lv,stringify:rs,v1:Fx,v3:Xx,v4:Vx,v5:eO,validate:ns,version:nO},Symbol.toStringTag,{value:"Module"})),iO=uS(rO);function Jl(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Jl.prototype.convert=function(e){var r,n,o,a={},u=this.srcAlphabet.length,l=this.dstAlphabet.length,f=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(e[r]);do{for(n=0,o=0,r=0;r<f;r++)n=n*u+a[r],n>=l?(a[o++]=parseInt(n/l,10),n=n%l):o>0&&(a[o++]=0);f=o,d=this.dstAlphabet.slice(n,n+1).concat(d)}while(o!==0);return d};Jl.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var oO=Jl,aO=oO;function _o(e,r){var n=new aO(e,r);return function(o){return n.convert(o)}}_o.BIN="01";_o.OCT="01234567";_o.DEC="0123456789";_o.HEX="0123456789abcdef";var sO=_o;const{v4:Wu}=iO,_a=sO,Hu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uO="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",lO={consistentLength:!0};let Uu;const bp=(e,r,n)=>{const o=r(e.toLowerCase().replace(/-/g,""));return!n||!n.consistentLength?o:o.padStart(n.shortIdLength,n.paddingChar)},cO=(e,r)=>{const o=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[o[1],o[2],o[3],o[4],o[5]].join("-")},fO=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Zl=(()=>{const e=(r,n)=>{const o=r||Hu,a={...lO,...n};if([...new Set(Array.from(o))].length!==o.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const u=fO(o.length),l={shortIdLength:u,consistentLength:a.consistentLength,paddingChar:o[0]},f=_a(_a.HEX,o),d=_a(o,_a.HEX),v=()=>bp(Wu(),f,l),g={new:v,generate:v,uuid:Wu,fromUUID:_=>bp(_,f,l),toUUID:_=>cO(_,d),alphabet:o,maxLength:u};return Object.freeze(g),g};return e.constants={flickrBase58:Hu,cookieBase90:uO},e.uuid=Wu,e.generate=()=>(Uu||(Uu=e(Hu).generate),Uu()),e})();const dv=({depth:e,height:r=24,width:n=11,showLines:o=!0})=>{const a=`indent_line_${Zl.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:r,children:[$.jsx("defs",{children:$.jsx("pattern",{id:a,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:"rgb(241, 245, 249)"})})}),o?$.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:r}):$.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:r})]})},pv=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return $.jsx(Au,{className:Ot(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?$.jsx(Au,{}):$.jsx(AE,{});default:return $.jsx(Au,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),Ql=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:l,onNodeClick:f})=>{var m;const{key:d,children:v}=e,g=N.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),_=l&&typeof l=="function"?l(e,r,g,a,u):hO(e,r,g,f);return!((m=e.options)!=null&&m.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:_},d),pO(v||[],r,u,n,o,g.expanded,a,f,l)]}):null},dO=function(e,r){var l;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=$.jsx(sv,{children:o})),$.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{r&&r(e)},children:[u,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},pO=function(e,r,n,o,a,u,l,f,d){return e.length&&u?e.map(v=>$.jsx(Ql,{actions:l,node:v,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:f,renderNode:d},v.key)):null},hO=function(e,r,n,o){return $.jsxs($.Fragment,{children:[$.jsx(dv,{showLines:!0,depth:r}),$.jsx(pv,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),dO(e,o)]})},Sa=e=>r=>e===r,vO=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:l,expandCondition:f="always",encapsulated:d}){const[v,g]=N.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));N.useEffect(()=>{f==="when-collapsed"&&v.expandedKeys.length>0||g({...v,expandedKeys:l||v.expandedKeys})},[l]);const _=N.useCallback(E=>{if(!E)return;const D=v.expandedKeys.findIndex(Sa(E.key));let I=[];D===-1?(I=[...v.expandedKeys,E.key],g(()=>({...v,expandedKeys:I})),a&&a(I)):(I=v.expandedKeys.filter(C=>C!==E.key),g(()=>({...v,expandedKeys:I})),a&&a(I))},[v]),O=N.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable))return;v.selectedKeys.findIndex(Sa(E.key))===-1&&g({...v,selectedKeys:[...v.selectedKeys,E.key]})},[v]),m=N.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable))return;v.selectedKeys.findIndex(Sa(E.key))===-1&&g({...v,selectedKeys:[E.key]})},[v]),S=N.useCallback(E=>{var I;if(!((I=E==null?void 0:E.options)!=null&&I.selectable)){g({...v,selectedKeys:[]});return}v.selectedKeys.findIndex(Sa(E.key))!==-1&&g({...v,selectedKeys:v.selectedKeys.filter(C=>C!==E.key)})},[v]),y=N.useMemo(()=>({expand:_,select:O,selectSingle:m,deselect:S}),[S,_,O,m]);return $.jsx("div",{className:Ot("fd-tree",{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:r.map(E=>$.jsx(Ql,{node:E,searchQuery:u||"",depth:0,expandedKeys:v.expandedKeys,selectedKeys:v.selectedKeys,actions:y,renderNode:n,onNodeClick:o},E.key))})};function mO(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wt.apply(this,arguments)}function hv(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var gO=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,yO=hv(function(e){return gO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),wO=!0;function bO(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):o+=a+" "}),o}var vv=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||wO===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},_O=function(r,n,o){vv(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}};function SO(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var EO={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,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},_p=`You have illegal escape sequence in your template literal, most likely inside content's property value.
70
+ `,{_}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;const x=t.wrapper||(_?"span":"div");let C;if(g.length>1||t.forceWrapper)C=g;else{if(g.length===1)return C=g[0],typeof C=="string"?i("span",{key:"outer"},C):C;C=null}return F.createElement(x,{key:"outer"},C)}function s(v){const _=v.match(gO);return _?_.reduce(function(g,x,C){const P=x.indexOf("=");if(P!==-1){const T=function(H){return H.indexOf("-")!==-1&&H.match(IO)===null&&(H=H.replace(DO,function(j,V){return V.toUpperCase()})),H}(x.slice(0,P)).trim(),$=function(H){const j=H[0];return(j==='"'||j==="'")&&H.length>=2&&H[H.length-1]===j?H.slice(1,-1):H}(x.slice(P+1).trim()),A=hh[T]||T,D=g[A]=function(H,j){return H==="style"?j.split(/;\s?/).reduce(function(V,ee){const ye=ee.slice(0,ee.indexOf(":"));return V[ye.replace(/(-[a-z])/g,Re=>Re[1].toUpperCase())]=ee.slice(ye.length+1).trim(),V},{}):H==="href"?Vi(j):(j.match(MO)&&(j=j.slice(1,j.length-1)),j==="true"||j!=="false"&&j)}(T,$);typeof D=="string"&&(dc.test(D)||pc.test(D))&&(g[A]=F.cloneElement(a(D.trim()),{key:C}))}else x!=="style"&&(g[hh[x]||x]=!0);return g},{}):null}const l=[],c={},d={blockQuote:{t:yn(Xv),i:ke.HIGH,l:(v,_,g)=>({v:_(v[0].replace(bO,""),g)}),h:(v,_,g)=>i("blockquote",{key:g.k},_(v.v,g))},breakLine:{t:Fo(SO),i:ke.HIGH,l:El,h:(v,_,g)=>i("br",{key:g.k})},breakThematic:{t:yn(EO),i:ke.HIGH,l:El,h:(v,_,g)=>i("hr",{key:g.k})},codeBlock:{t:yn(Qv),i:ke.MAX,l:v=>({v:v[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(v,_,g)=>i("pre",{key:g.k},i("code",gi({},v.O,{className:v.M?`lang-${v.M}`:""}),v.v))},codeFenced:{t:yn(Jv),i:ke.MAX,l:v=>({O:s(v[3]||""),v:v[4],M:v[2]||void 0,type:"codeBlock"})},codeInline:{t:Nn(_O),i:ke.LOW,l:v=>({v:v[2]}),h:(v,_,g)=>i("code",{key:g.k},v.v)},footnote:{t:yn(AO),i:ke.MAX,l:v=>(l.push({I:v[2],j:v[1]}),{}),h:_l},footnoteReference:{t:Dn(TO),i:ke.HIGH,l:v=>({v:v[1],B:`#${t.slugify(v[1])}`}),h:(v,_,g)=>i("a",{key:g.k,href:Vi(v.B)},i("sup",{key:g.k},v.v))},gfmTask:{t:Dn(CO),i:ke.HIGH,l:v=>({R:v[1].toLowerCase()==="x"}),h:(v,_,g)=>i("input",{checked:v.R,key:g.k,readOnly:!0,type:"checkbox"})},heading:{t:yn(t.enforceAtxHeadings?tm:em),i:ke.HIGH,l:(v,_,g)=>({v:Ss(_,v[2],g),T:t.slugify(v[2]),C:v[1].length}),h:(v,_,g)=>i(`h${v.C}`,{id:v.T,key:g.k},_(v.v,g))},headingSetext:{t:yn(rm),i:ke.MAX,l:(v,_,g)=>({v:Ss(_,v[1],g),C:v[2]==="="?1:2,type:"heading"})},htmlComment:{t:Fo(nm),i:ke.HIGH,l:()=>({}),h:_l},image:{t:Nn(uA),i:ke.HIGH,l:v=>({D:v[1],B:bh(v[2]),F:v[3]}),h:(v,_,g)=>i("img",{key:g.k,alt:v.D||void 0,title:v.F||void 0,src:Vi(v.B)})},link:{t:Dn(sA),i:ke.LOW,l:(v,_,g)=>({v:hA(_,v[1],g),B:bh(v[2]),F:v[3]}),h:(v,_,g)=>i("a",{key:g.k,href:Vi(v.B),title:v.F},_(v.v,g))},linkAngleBraceStyleDetector:{t:Dn($O),i:ke.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],type:"link"})},linkBareUrlDetector:{t:(v,_)=>_.N?null:Dn(FO)(v,_),i:ke.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Dn(LO),i:ke.MAX,l(v){let _=v[1],g=v[1];return yO.test(g)||(g="mailto:"+g),{v:[{v:_.replace("mailto:",""),type:"text"}],B:g,type:"link"}}},orderedList:gh(i,1),unorderedList:gh(i,2),newlineCoalescer:{t:yn(xO),i:ke.LOW,l:El,h:()=>`
71
+ `},paragraph:{t:pA,i:ke.LOW,l:Sl,h:(v,_,g)=>i("p",{key:g.k},_(v.v,g))},ref:{t:Dn(NO),i:ke.MAX,l:v=>(c[v[1]]={B:v[2],F:v[4]},{}),h:_l},refImage:{t:Nn(kO),i:ke.MAX,l:v=>({D:v[1]||void 0,P:v[2]}),h:(v,_,g)=>i("img",{key:g.k,alt:v.D,src:Vi(c[v.P].B),title:c[v.P].F})},refLink:{t:Dn(jO),i:ke.MAX,l:(v,_,g)=>({v:_(v[1],g),Z:_(v[0].replace(WO,"\\$1"),g),P:v[2]}),h:(v,_,g)=>c[v.P]?i("a",{key:g.k,href:Vi(c[v.P].B),title:c[v.P].F},_(v.v,g)):i("span",{key:g.k},_(v.Z,g))},table:{t:yn(im),i:ke.HIGH,l:dA,h:(v,_,g)=>i("table",{key:g.k},i("thead",null,i("tr",null,v.L.map(function(x,C){return i("th",{key:C,style:wh(v,C)},_(x,g))}))),i("tbody",null,v.A.map(function(x,C){return i("tr",{key:C},x.map(function(P,T){return i("td",{key:T,style:wh(v,T)},_(P,g))}))})))},tableSeparator:{t:function(v,_){return _.$?(_._=!0,BO.exec(v)):null},i:ke.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Fo(eA),i:ke.MIN,l:v=>({v:v[0].replace(PO,(_,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:_)}),h:v=>v.v},textBolded:{t:Nn(YO),i:ke.MED,l:(v,_,g)=>({v:_(v[2],g)}),h:(v,_,g)=>i("strong",{key:g.k},_(v.v,g))},textEmphasized:{t:Nn(VO),i:ke.LOW,l:(v,_,g)=>({v:_(v[2],g)}),h:(v,_,g)=>i("em",{key:g.k},_(v.v,g))},textEscaped:{t:Nn(QO),i:ke.HIGH,l:v=>({v:v[1],type:"text"})},textMarked:{t:Nn(XO),i:ke.LOW,l:Sl,h:(v,_,g)=>i("mark",{key:g.k},_(v.v,g))},textStrikethroughed:{t:Nn(JO),i:ke.LOW,l:Sl,h:(v,_,g)=>i("del",{key:g.k},_(v.v,g))}};t.disableParsingRawHTML!==!0&&(d.htmlBlock={t:Fo(dc),i:ke.HIGH,l(v,_,g){const[,x]=v[3].match(rA),C=new RegExp(`^${x}`,"gm"),P=v[3].replace(C,""),T=($=P,lA.some(j=>j.test($))?vA:Ss);var $;const A=v[1].toLowerCase(),D=mO.indexOf(A)!==-1;g.N=g.N||A==="a";const H=D?v[3]:T(_,P,g);return g.N=!1,{O:s(v[2]),v:H,G:D,H:D?A:v[1]}},h:(v,_,g)=>i(v.H,gi({key:g.k},v.O),v.G?v.v:_(v.v,g))},d.htmlSelfClosing={t:Fo(pc),i:ke.HIGH,l:v=>({O:s(v[2]||""),H:v[1]}),h:(v,_,g)=>i(v.H,gi({},v.O,{key:g.k}))});const p=function(v){let _=Object.keys(v);function g(x,C){let P=[],T="";for(;x;){let $=0;for(;$<_.length;){const A=_[$],D=v[A],H=D.t(x,C,T);if(H){const j=H[0];x=x.substring(j.length);const V=D.l(H,g,C);V.type==null&&(V.type=A),P.push(V),T=j;break}$++}}return P}return _.sort(function(x,C){let P=v[x].i,T=v[C].i;return P!==T?P-T:x<C?-1:1}),function(x,C){return g(function(P){return P.replace(OO,`
72
+ `).replace(RO,"").replace(HO," ")}(x),C)}}(d),h=(w=function(v){return function(_,g,x){return v[_.type].h(_,g,x)}}(d),function v(_,g={}){if(Array.isArray(_)){const x=g.k,C=[];let P=!1;for(let T=0;T<_.length;T++){g.k=T;const $=v(_[T],g),A=typeof $=="string";A&&P?C[C.length-1]+=$:$!==null&&C.push($),P=A}return g.k=x,C}return w(_,v,g)});var w;const S=a(e);return l.length?i("div",null,S,i("footer",{key:"footer"},l.map(function(v){return i("div",{id:t.slugify(v.j),key:v.j},v.j,h(p(v.I,{_:!0})))}))):S}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(ke||(ke={}));const Rs=e=>{let{children:t,options:r}=e,i=function(a,s){if(a==null)return{};var l,c,d={},p=Object.keys(a);for(c=0;c<p.length;c++)s.indexOf(l=p[c])>=0||(d[l]=a[l]);return d}(e,vO);return F.cloneElement(gA(t,r),i)},Sh=({kind:e,customIcon:t})=>{if(t)return k.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return k.jsx(pO,{className:"flex-none h-6 w-6"});case"info":return k.jsx(k.Fragment,{children:k.jsx(fc,{className:"flex-none h-6 w-6"})});case"warning":return k.jsx(k.Fragment,{children:k.jsx(zc,{className:"flex-none h-6 w-6"})});case"message":return k.jsx(k.Fragment,{children:k.jsx(fc,{className:"flex-none h-6 w-6"})});default:return null}},yA=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:c}={})=>k.jsx("button",{onClick:t,className:Dt("flex items-center justify-center p-1",c),children:k.jsx(cO,{className:"h-5 w-5 font-thin stroke-current"})});return k.jsx("div",{className:Dt("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof i=="string"?k.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[k.jsxs("div",{className:"flex items-center gap-1",children:[k.jsx(Sh,{kind:r,customIcon:s}),a?k.jsx(Rs,{children:i}):k.jsx(k.Fragment,{children:i})]}),l()]}):k.jsxs("div",{className:"flex items-start",children:[k.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>k.jsxs(k.Fragment,{children:[k.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[k.jsx(Sh,{kind:r,customIcon:s}),k.jsxs("span",{children:[c.title," :"]})]}),k.jsx("ul",{className:"list-disc px-12",children:c.messages.map(d=>k.jsx("li",{children:a?k.jsx(Rs,{children:d}):k.jsx(k.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},mm=({children:e,size:t,className:r,...i})=>k.jsx("div",{style:{"--width":`${t||24}px`},className:Dt("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var ts,wA=new Uint8Array(16);function gm(){if(!ts&&(ts=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ts))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ts(wA)}const bA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bs(e){return typeof e=="string"&&bA.test(e)}var Lt=[];for(var Ol=0;Ol<256;++Ol)Lt.push((Ol+256).toString(16).substr(1));function zs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Lt[e[t+0]]+Lt[e[t+1]]+Lt[e[t+2]]+Lt[e[t+3]]+"-"+Lt[e[t+4]]+Lt[e[t+5]]+"-"+Lt[e[t+6]]+Lt[e[t+7]]+"-"+Lt[e[t+8]]+Lt[e[t+9]]+"-"+Lt[e[t+10]]+Lt[e[t+11]]+Lt[e[t+12]]+Lt[e[t+13]]+Lt[e[t+14]]+Lt[e[t+15]]).toLowerCase();if(!Bs(r))throw TypeError("Stringified UUID is invalid");return r}var Eh,Al,Tl=0,Rl=0;function SA(e,t,r){var i=t&&r||0,a=t||new Array(16);e=e||{};var s=e.node||Eh,l=e.clockseq!==void 0?e.clockseq:Al;if(s==null||l==null){var c=e.random||(e.rng||gm)();s==null&&(s=Eh=[c[0]|1,c[1],c[2],c[3],c[4],c[5]]),l==null&&(l=Al=(c[6]<<8|c[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Rl+1,h=d-Tl+(p-Rl)/1e4;if(h<0&&e.clockseq===void 0&&(l=l+1&16383),(h<0||d>Tl)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Tl=d,Rl=p,Al=l,d+=122192928e5;var w=((d&268435455)*1e4+p)%4294967296;a[i++]=w>>>24&255,a[i++]=w>>>16&255,a[i++]=w>>>8&255,a[i++]=w&255;var S=d/4294967296*1e4&268435455;a[i++]=S>>>8&255,a[i++]=S&255,a[i++]=S>>>24&15|16,a[i++]=S>>>16&255,a[i++]=l>>>8|128,a[i++]=l&255;for(var v=0;v<6;++v)a[i+v]=s[v];return t||zs(a)}function ym(e){if(!Bs(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function EA(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var _A="6ba7b810-9dad-11d1-80b4-00c04fd430c8",xA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function wm(e,t,r){function i(a,s,l,c){if(typeof a=="string"&&(a=EA(a)),typeof s=="string"&&(s=ym(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+a.length);if(d.set(s),d.set(a,s.length),d=r(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){c=c||0;for(var p=0;p<16;++p)l[c+p]=d[p];return l}return zs(d)}try{i.name=e}catch{}return i.DNS=_A,i.URL=xA,i}function OA(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return AA(TA(RA(e),e.length*8))}function AA(e){for(var t=[],r=e.length*32,i="0123456789abcdef",a=0;a<r;a+=8){var s=e[a>>5]>>>a%32&255,l=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);t.push(l)}return t}function bm(e){return(e+64>>>9<<4)+14+1}function TA(e,t){e[t>>5]|=128<<t%32,e[bm(t)-1]=t;for(var r=1732584193,i=-271733879,a=-1732584194,s=271733878,l=0;l<e.length;l+=16){var c=r,d=i,p=a,h=s;r=Ut(r,i,a,s,e[l],7,-680876936),s=Ut(s,r,i,a,e[l+1],12,-389564586),a=Ut(a,s,r,i,e[l+2],17,606105819),i=Ut(i,a,s,r,e[l+3],22,-1044525330),r=Ut(r,i,a,s,e[l+4],7,-176418897),s=Ut(s,r,i,a,e[l+5],12,1200080426),a=Ut(a,s,r,i,e[l+6],17,-1473231341),i=Ut(i,a,s,r,e[l+7],22,-45705983),r=Ut(r,i,a,s,e[l+8],7,1770035416),s=Ut(s,r,i,a,e[l+9],12,-1958414417),a=Ut(a,s,r,i,e[l+10],17,-42063),i=Ut(i,a,s,r,e[l+11],22,-1990404162),r=Ut(r,i,a,s,e[l+12],7,1804603682),s=Ut(s,r,i,a,e[l+13],12,-40341101),a=Ut(a,s,r,i,e[l+14],17,-1502002290),i=Ut(i,a,s,r,e[l+15],22,1236535329),r=Ht(r,i,a,s,e[l+1],5,-165796510),s=Ht(s,r,i,a,e[l+6],9,-1069501632),a=Ht(a,s,r,i,e[l+11],14,643717713),i=Ht(i,a,s,r,e[l],20,-373897302),r=Ht(r,i,a,s,e[l+5],5,-701558691),s=Ht(s,r,i,a,e[l+10],9,38016083),a=Ht(a,s,r,i,e[l+15],14,-660478335),i=Ht(i,a,s,r,e[l+4],20,-405537848),r=Ht(r,i,a,s,e[l+9],5,568446438),s=Ht(s,r,i,a,e[l+14],9,-1019803690),a=Ht(a,s,r,i,e[l+3],14,-187363961),i=Ht(i,a,s,r,e[l+8],20,1163531501),r=Ht(r,i,a,s,e[l+13],5,-1444681467),s=Ht(s,r,i,a,e[l+2],9,-51403784),a=Ht(a,s,r,i,e[l+7],14,1735328473),i=Ht(i,a,s,r,e[l+12],20,-1926607734),r=Bt(r,i,a,s,e[l+5],4,-378558),s=Bt(s,r,i,a,e[l+8],11,-2022574463),a=Bt(a,s,r,i,e[l+11],16,1839030562),i=Bt(i,a,s,r,e[l+14],23,-35309556),r=Bt(r,i,a,s,e[l+1],4,-1530992060),s=Bt(s,r,i,a,e[l+4],11,1272893353),a=Bt(a,s,r,i,e[l+7],16,-155497632),i=Bt(i,a,s,r,e[l+10],23,-1094730640),r=Bt(r,i,a,s,e[l+13],4,681279174),s=Bt(s,r,i,a,e[l],11,-358537222),a=Bt(a,s,r,i,e[l+3],16,-722521979),i=Bt(i,a,s,r,e[l+6],23,76029189),r=Bt(r,i,a,s,e[l+9],4,-640364487),s=Bt(s,r,i,a,e[l+12],11,-421815835),a=Bt(a,s,r,i,e[l+15],16,530742520),i=Bt(i,a,s,r,e[l+2],23,-995338651),r=zt(r,i,a,s,e[l],6,-198630844),s=zt(s,r,i,a,e[l+7],10,1126891415),a=zt(a,s,r,i,e[l+14],15,-1416354905),i=zt(i,a,s,r,e[l+5],21,-57434055),r=zt(r,i,a,s,e[l+12],6,1700485571),s=zt(s,r,i,a,e[l+3],10,-1894986606),a=zt(a,s,r,i,e[l+10],15,-1051523),i=zt(i,a,s,r,e[l+1],21,-2054922799),r=zt(r,i,a,s,e[l+8],6,1873313359),s=zt(s,r,i,a,e[l+15],10,-30611744),a=zt(a,s,r,i,e[l+6],15,-1560198380),i=zt(i,a,s,r,e[l+13],21,1309151649),r=zt(r,i,a,s,e[l+4],6,-145523070),s=zt(s,r,i,a,e[l+11],10,-1120210379),a=zt(a,s,r,i,e[l+2],15,718787259),i=zt(i,a,s,r,e[l+9],21,-343485551),r=Hn(r,c),i=Hn(i,d),a=Hn(a,p),s=Hn(s,h)}return[r,i,a,s]}function RA(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array(bm(t)),i=0;i<t;i+=8)r[i>>5]|=(e[i/8]&255)<<i%32;return r}function Hn(e,t){var r=(e&65535)+(t&65535),i=(e>>16)+(t>>16)+(r>>16);return i<<16|r&65535}function CA(e,t){return e<<t|e>>>32-t}function qs(e,t,r,i,a,s){return Hn(CA(Hn(Hn(t,e),Hn(i,s)),a),r)}function Ut(e,t,r,i,a,s,l){return qs(t&r|~t&i,e,t,a,s,l)}function Ht(e,t,r,i,a,s,l){return qs(t&i|r&~i,e,t,a,s,l)}function Bt(e,t,r,i,a,s,l){return qs(t^r^i,e,t,a,s,l)}function zt(e,t,r,i,a,s,l){return qs(r^(t|~i),e,t,a,s,l)}var PA=wm("v3",48,OA);const IA=PA;function MA(e,t,r){e=e||{};var i=e.random||(e.rng||gm)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=i[a];return t}return zs(i)}function FA(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}function Cl(e,t){return e<<t|e>>>32-t}function LA(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),c=new Array(l),d=0;d<l;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];c[d]=p}c[l-1][14]=(e.length-1)*8/Math.pow(2,32),c[l-1][14]=Math.floor(c[l-1][14]),c[l-1][15]=(e.length-1)*8&4294967295;for(var w=0;w<l;++w){for(var S=new Uint32Array(80),v=0;v<16;++v)S[v]=c[w][v];for(var _=16;_<80;++_)S[_]=Cl(S[_-3]^S[_-8]^S[_-14]^S[_-16],1);for(var g=r[0],x=r[1],C=r[2],P=r[3],T=r[4],$=0;$<80;++$){var A=Math.floor($/20),D=Cl(g,5)+FA(A,x,C,P)+T+t[A]+S[$]>>>0;T=P,P=C,C=Cl(x,30)>>>0,x=g,g=D}r[0]=r[0]+g>>>0,r[1]=r[1]+x>>>0,r[2]=r[2]+C>>>0,r[3]=r[3]+P>>>0,r[4]=r[4]+T>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var $A=wm("v5",80,LA);const DA=$A,NA="00000000-0000-0000-0000-000000000000";function kA(e){if(!Bs(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const jA=Object.freeze(Object.defineProperty({__proto__:null,NIL:NA,parse:ym,stringify:zs,v1:SA,v3:IA,v4:MA,v5:DA,validate:Bs,version:kA},Symbol.toStringTag,{value:"Module"})),WA=z_(jA);function Gc(e,t){if(!e||!t||!e.length||!t.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}Gc.prototype.convert=function(e){var t,r,i,a={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,c=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(t=0;t<c;t++)a[t]=this.srcAlphabet.indexOf(e[t]);do{for(r=0,i=0,t=0;t<c;t++)r=r*s+a[t],r>=l?(a[i++]=parseInt(r/l,10),r=r%l):i>0&&(a[i++]=0);c=i,d=this.dstAlphabet.slice(r,r+1).concat(d)}while(i!==0);return d};Gc.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(this.srcAlphabet.indexOf(e[t])===-1)return!1;return!0};var UA=Gc,HA=UA;function ra(e,t){var r=new HA(e,t);return function(i){return r.convert(i)}}ra.BIN="01";ra.OCT="01234567";ra.DEC="0123456789";ra.HEX="0123456789abcdef";var BA=ra;const{v4:Pl}=WA,rs=BA,Il="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",zA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",qA={consistentLength:!0};let Ml;const _h=(e,t,r)=>{const i=t(e.toLowerCase().replace(/-/g,""));return!r||!r.consistentLength?i:i.padStart(r.shortIdLength,r.paddingChar)},ZA=(e,t)=>{const i=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},GA=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Kc=(()=>{const e=(t,r)=>{const i=t||Il,a={...qA,...r};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=GA(i.length),l={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},c=rs(rs.HEX,i),d=rs(i,rs.HEX),p=()=>_h(Pl(),c,l),h={new:p,generate:p,uuid:Pl,fromUUID:w=>_h(w,c,l),toUUID:w=>ZA(w,d),alphabet:i,maxLength:s};return Object.freeze(h),h};return e.constants={flickrBase58:Il,cookieBase90:zA},e.uuid=Pl,e.generate=()=>(Ml||(Ml=e(Il).generate),Ml()),e})();const Sm=({depth:e,height:t=24,width:r=11,showLines:i=!0})=>{const a=`indent_line_${Kc.generate()}`;return k.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:t,children:[k.jsx("defs",{children:k.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:k.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:"rgb(241, 245, 249)"})})}),i?k.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):k.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Em=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?k.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return k.jsx(bl,{className:Dt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?k.jsx(bl,{}):k.jsx(dO,{});default:return k.jsx(bl,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):k.jsx("div",{className:"flex h-6 w-3 items-center"}),Yc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:c})=>{var v;const{key:d,children:p}=e,h=N.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),w=l&&typeof l=="function"?l(e,t,h,a,s):VA(e,t,h,c);return!((v=e.options)!=null&&v.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"flex items-center space-x-2",children:w},d),YA(p||[],t,s,r,i,h.expanded,a,c,l)]}):null},KA=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=k.jsx(mm,{children:i})),k.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,k.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&k.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},YA=function(e,t,r,i,a,s,l,c,d){return e.length&&s?e.map(p=>k.jsx(Yc,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:c,renderNode:d},p.key)):null},VA=function(e,t,r,i){return k.jsxs(k.Fragment,{children:[k.jsx(Sm,{showLines:!0,depth:t}),k.jsx(Em,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),KA(e,i)]})},ns=e=>t=>e===t,XA=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:d}){const[p,h]=N.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));N.useEffect(()=>{c==="when-collapsed"&&p.expandedKeys.length>0||h({...p,expandedKeys:l||p.expandedKeys})},[l]);const w=N.useCallback(x=>{if(!x)return;const C=p.expandedKeys.findIndex(ns(x.key));let P=[];C===-1?(P=[...p.expandedKeys,x.key],h(()=>({...p,expandedKeys:P})),a&&a(P)):(P=p.expandedKeys.filter(T=>T!==x.key),h(()=>({...p,expandedKeys:P})),a&&a(P))},[p]),S=N.useCallback(x=>{var P;if(!((P=x==null?void 0:x.options)!=null&&P.selectable))return;p.selectedKeys.findIndex(ns(x.key))===-1&&h({...p,selectedKeys:[...p.selectedKeys,x.key]})},[p]),v=N.useCallback(x=>{var P;if(!((P=x==null?void 0:x.options)!=null&&P.selectable))return;p.selectedKeys.findIndex(ns(x.key))===-1&&h({...p,selectedKeys:[x.key]})},[p]),_=N.useCallback(x=>{var P;if(!((P=x==null?void 0:x.options)!=null&&P.selectable)){h({...p,selectedKeys:[]});return}p.selectedKeys.findIndex(ns(x.key))!==-1&&h({...p,selectedKeys:p.selectedKeys.filter(T=>T!==x.key)})},[p]),g=N.useMemo(()=>({expand:w,select:S,selectSingle:v,deselect:_}),[_,w,S,v]);return k.jsx("div",{className:Dt("fd-tree",{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:t.map(x=>k.jsx(Yc,{node:x,searchQuery:s||"",depth:0,expandedKeys:p.expandedKeys,selectedKeys:p.selectedKeys,actions:g,renderNode:r,onNodeClick:i},x.key))})};function JA(e){return e.of&&e.children?k.jsx(k.Fragment,{children:e.children}):null}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ct.apply(this,arguments)}function _m(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var QA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,eT=_m(function(e){return QA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tT=!0;function rT(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):i+=a+" "}),i}var xm=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||tT===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},nT=function(t,r,i){xm(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function iT(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oT={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,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},xh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
75
73
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
76
74
  You can read more about this here:
77
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,xO="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",OO=/[A-Z]|^ms/g,mv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ec=function(r){return r.charCodeAt(1)===45},Sp=function(r){return r!=null&&typeof r!="boolean"},Bu=hv(function(e){return ec(e)?e:e.replace(OO,"-$&").toLowerCase()}),Ga=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(mv,function(o,a,u){return Rn={name:a,styles:u,next:Rn},a})}return EO[r]!==1&&!ec(r)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var TO=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,CO=["normal","none","initial","inherit","unset"],RO=Ga,PO=/^-ms-/,AO=/-(.)/g,Ep={};Ga=function(r,n){if(r==="content"&&(typeof n!="string"||CO.indexOf(n)===-1&&!TO.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var o=RO(r,n);return o!==""&&!ec(r)&&r.indexOf("-")!==-1&&Ep[r]===void 0&&(Ep[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(PO,"ms-").replace(AO,function(a,u){return u.toUpperCase()})+"?")),o}}var gv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function fo(e,r,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(gv);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Rn={name:n.name,styles:n.styles,next:Rn},n.name;if(n.styles!==void 0){var o=n.next;if(o!==void 0)for(;o!==void 0;)Rn={name:o.name,styles:o.styles,next:Rn},o=o.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return IO(e,r,n)}case"function":{if(e!==void 0){var u=Rn,l=n(e);return Rn=u,fo(e,r,l)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var f=[],d=n.replace(mv,function(g,_,O){var m="animation"+f.length;return f.push("const "+m+" = keyframes`"+O.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+m+"}"});f.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(f,["`"+d+"`"]).join(`
75
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,aT="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",sT=/[A-Z]|^ms/g,Om=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vc=function(t){return t.charCodeAt(1)===45},Oh=function(t){return t!=null&&typeof t!="boolean"},Fl=_m(function(e){return Vc(e)?e:e.replace(sT,"-$&").toLowerCase()}),Cs=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Om,function(i,a,s){return zr={name:a,styles:s,next:zr},a})}return oT[t]!==1&&!Vc(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var uT=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,lT=["normal","none","initial","inherit","unset"],cT=Cs,fT=/^-ms-/,dT=/-(.)/g,Ah={};Cs=function(t,r){if(t==="content"&&(typeof r!="string"||lT.indexOf(r)===-1&&!uT.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var i=cT(t,r);return i!==""&&!Vc(t)&&t.indexOf("-")!==-1&&Ah[t]===void 0&&(Ah[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(fT,"ms-").replace(dT,function(a,s){return s.toUpperCase()})+"?")),i}}var Am="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function zo(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Am);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return zr={name:r.name,styles:r.styles,next:zr},r.name;if(r.styles!==void 0){var i=r.next;if(i!==void 0)for(;i!==void 0;)zr={name:i.name,styles:i.styles,next:zr},i=i.next;var a=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(a+=r.map),a}return pT(e,t,r)}case"function":{if(e!==void 0){var s=zr,l=r(e);return zr=s,zo(e,t,l)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var c=[],d=r.replace(Om,function(h,w,S){var v="animation"+c.length;return c.push("const "+v+" = keyframes`"+S.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+d+"`"]).join(`
78
76
  `)+`
79
77
 
80
78
  You should wrap it with \`css\` like this:
81
79
 
82
- `+("css`"+d+"`"))}break}if(r==null)return n;var v=r[n];return v!==void 0?v:n}function IO(e,r,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=fo(e,r,n[a])+";";else for(var u in n){var l=n[u];if(typeof l!="object")r!=null&&r[l]!==void 0?o+=u+"{"+r[l]+"}":Sp(l)&&(o+=Bu(u)+":"+Ga(u,l)+";");else{if(u==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(gv);if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var f=0;f<l.length;f++)Sp(l[f])&&(o+=Bu(u)+":"+Ga(u,l[f])+";");else{var d=fo(e,r,l);switch(u){case"animation":case"animationName":{o+=Bu(u)+":"+d+";";break}default:process.env.NODE_ENV!=="production"&&u==="undefined"&&console.error(xO),o+=u+"{"+d+"}"}}}}return o}var xp=/label:\s*([^\s;\n{]+)\s*(;|$)/g,yv;process.env.NODE_ENV!=="production"&&(yv=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Rn,LO=function(r,n,o){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var a=!0,u="";Rn=void 0;var l=r[0];l==null||l.raw===void 0?(a=!1,u+=fo(o,n,l)):(process.env.NODE_ENV!=="production"&&l[0]===void 0&&console.error(_p),u+=l[0]);for(var f=1;f<r.length;f++)u+=fo(o,n,r[f]),a&&(process.env.NODE_ENV!=="production"&&l[f]===void 0&&console.error(_p),u+=l[f]);var d;process.env.NODE_ENV!=="production"&&(u=u.replace(yv,function(O){return d=O,""})),xp.lastIndex=0;for(var v="",g;(g=xp.exec(u))!==null;)v+="-"+g[1];var _=SO(u)+v;return process.env.NODE_ENV!=="production"?{name:_,styles:u,map:d,next:Rn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:_,styles:u,next:Rn}},MO=function(r){return r()},DO=L["useInsertionEffect"]?L["useInsertionEffect"]:!1,kO=DO||MO,NO=yO,$O=function(r){return r!=="theme"},Op=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?NO:$O},Tp=function(r,n,o){var a;if(n){var u=n.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(l){return r.__emotion_forwardProp(l)&&u(l)}:u}return typeof a!="function"&&o&&(a=r.__emotion_forwardProp),a},Cp=`You have illegal escape sequence in your template literal, most likely inside content's property value.
80
+ `+("css`"+d+"`"))}break}if(t==null)return r;var p=t[r];return p!==void 0?p:r}function pT(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=zo(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object")t!=null&&t[l]!==void 0?i+=s+"{"+t[l]+"}":Oh(l)&&(i+=Fl(s)+":"+Cs(s,l)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Am);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var c=0;c<l.length;c++)Oh(l[c])&&(i+=Fl(s)+":"+Cs(s,l[c])+";");else{var d=zo(e,t,l);switch(s){case"animation":case"animationName":{i+=Fl(s)+":"+d+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(aT),i+=s+"{"+d+"}"}}}}return i}var Th=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Tm;process.env.NODE_ENV!=="production"&&(Tm=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var zr,hT=function(t,r,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,s="";zr=void 0;var l=t[0];l==null||l.raw===void 0?(a=!1,s+=zo(i,r,l)):(process.env.NODE_ENV!=="production"&&l[0]===void 0&&console.error(xh),s+=l[0]);for(var c=1;c<t.length;c++)s+=zo(i,r,t[c]),a&&(process.env.NODE_ENV!=="production"&&l[c]===void 0&&console.error(xh),s+=l[c]);var d;process.env.NODE_ENV!=="production"&&(s=s.replace(Tm,function(S){return d=S,""})),Th.lastIndex=0;for(var p="",h;(h=Th.exec(s))!==null;)p+="-"+h[1];var w=iT(s)+p;return process.env.NODE_ENV!=="production"?{name:w,styles:s,map:d,next:zr,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:w,styles:s,next:zr}},vT=function(t){return t()},mT=F["useInsertionEffect"]?F["useInsertionEffect"]:!1,gT=mT||vT,yT=eT,wT=function(t){return t!=="theme"},Rh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?yT:wT},Ch=function(t,r,i){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},Ph=`You have illegal escape sequence in your template literal, most likely inside content's property value.
83
81
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
84
82
  You can read more about this here:
85
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,jO=function(r){var n=r.cache,o=r.serialized,a=r.isStringTag;return vv(n,o,a),kO(function(){return _O(n,o,a)}),null},FO=function e(r,n){if(process.env.NODE_ENV!=="production"&&r===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
86
- You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emotion_base||r,u,l;n!==void 0&&(u=n.label,l=n.target);var f=Tp(r,n,o),d=f||Op(a),v=!d("as");return function(){var g=arguments,_=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&_.push("label:"+u+";"),g[0]==null||g[0].raw===void 0)_.push.apply(_,g);else{process.env.NODE_ENV!=="production"&&g[0][0]===void 0&&console.error(Cp),_.push(g[0][0]);for(var O=g.length,m=1;m<O;m++)process.env.NODE_ENV!=="production"&&g[0][m]===void 0&&console.error(Cp),_.push(g[m],g[0][m])}var S=hl.withEmotionCache(function(y,E,D){var I=v&&y.as||a,C="",k=[],T=y;if(y.theme==null){T={};for(var H in y)T[H]=y[H];T.theme=L.useContext(hl.ThemeContext)}typeof y.className=="string"?C=bO(E.registered,k,y.className):y.className!=null&&(C=y.className+" ");var U=LO(_.concat(k),E.registered,T);C+=E.key+"-"+U.name,l!==void 0&&(C+=" "+l);var j=v&&f===void 0?Op(I):d,J={};for(var ee in y)v&&ee==="as"||j(ee)&&(J[ee]=y[ee]);return J.className=C,J.ref=D,L.createElement(L.Fragment,null,L.createElement(jO,{cache:E,serialized:U,isStringTag:typeof I=="string"}),L.createElement(I,J))});return S.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",S.defaultProps=r.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=_,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return l===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+l}}),S.withComponent=function(y,E){return e(y,wt({},n,E,{shouldForwardProp:Tp(S,E,!0)})).apply(void 0,_)},S}},WO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ka=FO.bind();WO.forEach(function(e){Ka[e]=Ka(e)});var HO=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},Ei=new WeakMap,Ea=new WeakMap,xa={},zu=0,wv=function(e){return e&&(e.host||wv(e.parentNode))},UO=function(e,r){return r.map(function(n){if(e.contains(n))return n;var o=wv(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},BO=function(e,r,n,o){var a=UO(r,Array.isArray(e)?e:[e]);xa[n]||(xa[n]=new WeakMap);var u=xa[n],l=[],f=new Set,d=new Set(a),v=function(_){!_||f.has(_)||(f.add(_),v(_.parentNode))};a.forEach(v);var g=function(_){!_||d.has(_)||Array.prototype.forEach.call(_.children,function(O){if(f.has(O))g(O);else{var m=O.getAttribute(o),S=m!==null&&m!=="false",y=(Ei.get(O)||0)+1,E=(u.get(O)||0)+1;Ei.set(O,y),u.set(O,E),l.push(O),y===1&&S&&Ea.set(O,!0),E===1&&O.setAttribute(n,"true"),S||O.setAttribute(o,"true")}})};return g(r),f.clear(),zu++,function(){l.forEach(function(_){var O=Ei.get(_)-1,m=u.get(_)-1;Ei.set(_,O),u.set(_,m),O||(Ea.has(_)||_.removeAttribute(o),Ea.delete(_)),m||_.removeAttribute(n)}),zu--,zu||(Ei=new WeakMap,Ei=new WeakMap,Ea=new WeakMap,xa={})}},zO=function(e,r,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=r||HO(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),BO(o,a,n,"aria-hidden")):function(){return null}},Sl=function(e,r){return Sl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},Sl(e,r)};function os(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Sl(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var Dn=function(){return Dn=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(r[u]=n[u])}return r},Dn.apply(this,arguments)};function bv(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function El(e){var r=typeof Symbol=="function"&&Symbol.iterator,n=r&&e[r],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ya(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,u=[],l;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(f){l={error:f}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return u}function po(e,r,n){if(n||arguments.length===2)for(var o=0,a=r.length,u;o<a;o++)(u||!(o in r))&&(u||(u=Array.prototype.slice.call(r,0,o)),u[o]=r[o]);return e.concat(u||Array.prototype.slice.call(r))}var Wa="right-scroll-bar-position",Ha="width-before-scroll-bar",qO="with-scroll-bars-hidden",GO="--removed-body-scroll-bar-size";function KO(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function YO(e,r){var n=N.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}function XO(e,r){return YO(r||null,function(n){return e.forEach(function(o){return KO(o,n)})})}function VO(e){return e}function JO(e,r){r===void 0&&(r=VO);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var l=r(u,o);return n.push(l),function(){n=n.filter(function(f){return f!==l})}},assignSyncMedium:function(u){for(o=!0;n.length;){var l=n;n=[],l.forEach(u)}n={push:function(f){return u(f)},filter:function(){return n}}},assignMedium:function(u){o=!0;var l=[];if(n.length){var f=n;n=[],f.forEach(u),l=n}var d=function(){var g=l;l=[],g.forEach(u)},v=function(){return Promise.resolve().then(d)};v(),n={push:function(g){l.push(g),v()},filter:function(g){return l=l.filter(g),n}}}};return a}function ZO(e){e===void 0&&(e={});var r=JO(null);return r.options=Dn({async:!0,ssr:!1},e),r}var _v=function(e){var r=e.sideCar,n=bv(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return L.createElement(o,Dn({},n))};_v.isSideCarExport=!0;function QO(e,r){return e.useMedium(r),_v}var Sv=ZO(),qu=function(){},as=L.forwardRef(function(e,r){var n=L.useRef(null),o=L.useState({onScrollCapture:qu,onWheelCapture:qu,onTouchMoveCapture:qu}),a=o[0],u=o[1],l=e.forwardProps,f=e.children,d=e.className,v=e.removeScrollBar,g=e.enabled,_=e.shards,O=e.sideCar,m=e.noIsolation,S=e.inert,y=e.allowPinchZoom,E=e.as,D=E===void 0?"div":E,I=e.gapMode,C=bv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=O,T=XO([n,r]),H=Dn(Dn({},C),a);return L.createElement(L.Fragment,null,g&&L.createElement(k,{sideCar:Sv,removeScrollBar:v,shards:_,noIsolation:m,inert:S,setCallbacks:u,allowPinchZoom:!!y,lockRef:n,gapMode:I}),l?L.cloneElement(L.Children.only(f),Dn(Dn({},H),{ref:T})):L.createElement(D,Dn({},H,{className:d,ref:T}),f))});as.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};as.classNames={fullWidth:Ha,zeroRight:Wa};var Rp,eT=function(){if(Rp)return Rp;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=eT();return r&&e.setAttribute("nonce",r),e}function nT(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function rT(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var iT=function(){var e=0,r=null;return{add:function(n){e==0&&(r=tT())&&(nT(r,n),rT(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},oT=function(){var e=iT();return function(r,n){L.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},Ev=function(){var e=oT(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},aT={left:0,top:0,right:0,gap:0},Gu=function(e){return parseInt(e||"",10)||0},sT=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[Gu(n),Gu(o),Gu(a)]},uT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aT;var r=sT(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},lT=Ev(),cT=function(e,r,n,o){var a=e.left,u=e.top,l=e.right,f=e.gap;return n===void 0&&(n="margin"),`
87
- .`.concat(qO,` {
88
- overflow: hidden `).concat(o,`;
89
- padding-right: `).concat(f,"px ").concat(o,`;
83
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,bT=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return xm(r,i,a),gT(function(){return nT(r,i,a)}),null},ST=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
84
+ You may have forgotten to import it.`);var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=Ch(t,r,i),d=c||Rh(a),p=!d("as");return function(){var h=arguments,w=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&w.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)w.push.apply(w,h);else{process.env.NODE_ENV!=="production"&&h[0][0]===void 0&&console.error(Ph),w.push(h[0][0]);for(var S=h.length,v=1;v<S;v++)process.env.NODE_ENV!=="production"&&h[0][v]===void 0&&console.error(Ph),w.push(h[v],h[0][v])}var _=ac.withEmotionCache(function(g,x,C){var P=p&&g.as||a,T="",$=[],A=g;if(g.theme==null){A={};for(var D in g)A[D]=g[D];A.theme=F.useContext(ac.ThemeContext)}typeof g.className=="string"?T=rT(x.registered,$,g.className):g.className!=null&&(T=g.className+" ");var H=hT(w.concat($),x.registered,A);T+=x.key+"-"+H.name,l!==void 0&&(T+=" "+l);var j=p&&c===void 0?Rh(P):d,V={};for(var ee in g)p&&ee==="as"||j(ee)&&(V[ee]=g[ee]);return V.className=T,V.ref=C,F.createElement(F.Fragment,null,F.createElement(bT,{cache:x,serialized:H,isStringTag:typeof P=="string"}),F.createElement(P,V))});return _.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=a,_.__emotion_styles=w,_.__emotion_forwardProp=c,Object.defineProperty(_,"toString",{value:function(){return l===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+l}}),_.withComponent=function(g,x){return e(g,Ct({},r,x,{shouldForwardProp:Ch(_,x,!0)})).apply(void 0,w)},_}},ET=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ps=ST.bind();ET.forEach(function(e){Ps[e]=Ps(e)});var _T=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xi=new WeakMap,is=new WeakMap,os={},Ll=0,Rm=function(e){return e&&(e.host||Rm(e.parentNode))},xT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=Rm(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},OT=function(e,t,r,i){var a=xT(t,Array.isArray(e)?e:[e]);os[r]||(os[r]=new WeakMap);var s=os[r],l=[],c=new Set,d=new Set(a),p=function(w){!w||c.has(w)||(c.add(w),p(w.parentNode))};a.forEach(p);var h=function(w){!w||d.has(w)||Array.prototype.forEach.call(w.children,function(S){if(c.has(S))h(S);else{var v=S.getAttribute(i),_=v!==null&&v!=="false",g=(Xi.get(S)||0)+1,x=(s.get(S)||0)+1;Xi.set(S,g),s.set(S,x),l.push(S),g===1&&_&&is.set(S,!0),x===1&&S.setAttribute(r,"true"),_||S.setAttribute(i,"true")}})};return h(t),c.clear(),Ll++,function(){l.forEach(function(w){var S=Xi.get(w)-1,v=s.get(w)-1;Xi.set(w,S),s.set(w,v),S||(is.has(w)||w.removeAttribute(i),is.delete(w)),v||w.removeAttribute(r)}),Ll--,Ll||(Xi=new WeakMap,Xi=new WeakMap,is=new WeakMap,os={})}},AT=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=t||_T(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),OT(i,a,r,"aria-hidden")):function(){return null}},hc=function(e,t){return hc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},hc(e,t)};function Zs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Jr=function(){return Jr=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Jr.apply(this,arguments)};function Cm(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function vc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Is(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,s=[],l;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function qo(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var Es="right-scroll-bar-position",_s="width-before-scroll-bar",TT="with-scroll-bars-hidden",RT="--removed-body-scroll-bar-size";function CT(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PT(e,t){var r=N.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}function IT(e,t){return PT(t||null,function(r){return e.forEach(function(i){return CT(i,r)})})}function MT(e){return e}function FT(e,t){t===void 0&&(t=MT);var r=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var d=function(){var h=l;l=[],h.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),r={push:function(h){l.push(h),p()},filter:function(h){return l=l.filter(h),r}}}};return a}function LT(e){e===void 0&&(e={});var t=FT(null);return t.options=Jr({async:!0,ssr:!1},e),t}var Pm=function(e){var t=e.sideCar,r=Cm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return F.createElement(i,Jr({},r))};Pm.isSideCarExport=!0;function $T(e,t){return e.useMedium(t),Pm}var Im=LT(),$l=function(){},Gs=F.forwardRef(function(e,t){var r=F.useRef(null),i=F.useState({onScrollCapture:$l,onWheelCapture:$l,onTouchMoveCapture:$l}),a=i[0],s=i[1],l=e.forwardProps,c=e.children,d=e.className,p=e.removeScrollBar,h=e.enabled,w=e.shards,S=e.sideCar,v=e.noIsolation,_=e.inert,g=e.allowPinchZoom,x=e.as,C=x===void 0?"div":x,P=e.gapMode,T=Cm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=S,A=IT([r,t]),D=Jr(Jr({},T),a);return F.createElement(F.Fragment,null,h&&F.createElement($,{sideCar:Im,removeScrollBar:p,shards:w,noIsolation:v,inert:_,setCallbacks:s,allowPinchZoom:!!g,lockRef:r,gapMode:P}),l?F.cloneElement(F.Children.only(c),Jr(Jr({},D),{ref:A})):F.createElement(C,Jr({},D,{className:d,ref:A}),c))});Gs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gs.classNames={fullWidth:_s,zeroRight:Es};var Ih,DT=function(){if(Ih)return Ih;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DT();return t&&e.setAttribute("nonce",t),e}function kT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=NT())&&(kT(t,r),jT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},UT=function(){var e=WT();return function(t,r){F.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Mm=function(){var e=UT(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},HT={left:0,top:0,right:0,gap:0},Dl=function(e){return parseInt(e||"",10)||0},BT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Dl(r),Dl(i),Dl(a)]},zT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return HT;var t=BT(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},qT=Mm(),ZT=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
85
+ .`.concat(TT,` {
86
+ overflow: hidden `).concat(i,`;
87
+ padding-right: `).concat(c,"px ").concat(i,`;
90
88
  }
91
89
  body {
92
- overflow: hidden `).concat(o,`;
90
+ overflow: hidden `).concat(i,`;
93
91
  overscroll-behavior: contain;
94
- `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&`
92
+ `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
95
93
  padding-left: `.concat(a,`px;
96
- padding-top: `).concat(u,`px;
94
+ padding-top: `).concat(s,`px;
97
95
  padding-right: `).concat(l,`px;
98
96
  margin-left:0;
99
97
  margin-top:0;
100
- margin-right: `).concat(f,"px ").concat(o,`;
101
- `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),`
98
+ margin-right: `).concat(c,"px ").concat(i,`;
99
+ `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
102
100
  }
103
101
 
104
- .`).concat(Wa,` {
105
- right: `).concat(f,"px ").concat(o,`;
102
+ .`).concat(Es,` {
103
+ right: `).concat(c,"px ").concat(i,`;
106
104
  }
107
105
 
108
- .`).concat(Ha,` {
109
- margin-right: `).concat(f,"px ").concat(o,`;
106
+ .`).concat(_s,` {
107
+ margin-right: `).concat(c,"px ").concat(i,`;
110
108
  }
111
109
 
112
- .`).concat(Wa," .").concat(Wa,` {
113
- right: 0 `).concat(o,`;
110
+ .`).concat(Es," .").concat(Es,` {
111
+ right: 0 `).concat(i,`;
114
112
  }
115
113
 
116
- .`).concat(Ha," .").concat(Ha,` {
117
- margin-right: 0 `).concat(o,`;
114
+ .`).concat(_s," .").concat(_s,` {
115
+ margin-right: 0 `).concat(i,`;
118
116
  }
119
117
 
120
118
  body {
121
- `).concat(GO,": ").concat(f,`px;
119
+ `).concat(RT,": ").concat(c,`px;
122
120
  }
123
- `)},fT=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o,u=L.useMemo(function(){return uT(a)},[a]);return L.createElement(lT,{styles:cT(u,!r,a,n?"":"!important")})},xl=!1;if(typeof window<"u")try{var Oa=Object.defineProperty({},"passive",{get:function(){return xl=!0,!0}});window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{xl=!1}var xi=xl?{passive:!1}:!1,dT=function(e){return e.tagName==="TEXTAREA"},xv=function(e,r){var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!dT(e)&&n[r]==="visible")},pT=function(e){return xv(e,"overflowY")},hT=function(e){return xv(e,"overflowX")},Pp=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=Ov(e,o);if(a){var u=Tv(e,o),l=u[1],f=u[2];if(l>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},vT=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},mT=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},Ov=function(e,r){return e==="v"?pT(r):hT(r)},Tv=function(e,r){return e==="v"?vT(r):mT(r)},gT=function(e,r){return e==="h"&&r==="rtl"?-1:1},yT=function(e,r,n,o,a){var u=gT(e,window.getComputedStyle(r).direction),l=u*o,f=n.target,d=r.contains(f),v=!1,g=l>0,_=0,O=0;do{var m=Tv(e,f),S=m[0],y=m[1],E=m[2],D=y-E-u*S;(S||D)&&Ov(e,f)&&(_+=D,O+=S),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!d&&f!==document.body||d&&(r.contains(f)||r===f));return(g&&(a&&Math.abs(_)<1||!a&&l>_)||!g&&(a&&Math.abs(O)<1||!a&&-l>O))&&(v=!0),v},Ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ap=function(e){return[e.deltaX,e.deltaY]},Ip=function(e){return e&&"current"in e?e.current:e},wT=function(e,r){return e[0]===r[0]&&e[1]===r[1]},bT=function(e){return`
121
+ `)},GT=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i,s=F.useMemo(function(){return zT(a)},[a]);return F.createElement(qT,{styles:ZT(s,!t,a,r?"":"!important")})},mc=!1;if(typeof window<"u")try{var as=Object.defineProperty({},"passive",{get:function(){return mc=!0,!0}});window.addEventListener("test",as,as),window.removeEventListener("test",as,as)}catch{mc=!1}var Ji=mc?{passive:!1}:!1,KT=function(e){return e.tagName==="TEXTAREA"},Fm=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!KT(e)&&r[t]==="visible")},YT=function(e){return Fm(e,"overflowY")},VT=function(e){return Fm(e,"overflowX")},Mh=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=Lm(e,i);if(a){var s=$m(e,i),l=s[1],c=s[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},XT=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},JT=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Lm=function(e,t){return e==="v"?YT(t):VT(t)},$m=function(e,t){return e==="v"?XT(t):JT(t)},QT=function(e,t){return e==="h"&&t==="rtl"?-1:1},eR=function(e,t,r,i,a){var s=QT(e,window.getComputedStyle(t).direction),l=s*i,c=r.target,d=t.contains(c),p=!1,h=l>0,w=0,S=0;do{var v=$m(e,c),_=v[0],g=v[1],x=v[2],C=g-x-s*_;(_||C)&&Lm(e,c)&&(w+=C,S+=_),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&(a&&Math.abs(w)<1||!a&&l>w)||!h&&(a&&Math.abs(S)<1||!a&&-l>S))&&(p=!0),p},ss=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fh=function(e){return[e.deltaX,e.deltaY]},Lh=function(e){return e&&"current"in e?e.current:e},tR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rR=function(e){return`
124
122
  .block-interactivity-`.concat(e,` {pointer-events: none;}
125
123
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
126
- `)},_T=0,Oi=[];function ST(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(_T++)[0],u=L.useState(Ev)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=po([e.lockRef.current],(e.shards||[]).map(Ip),!0).filter(Boolean);return y.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=L.useCallback(function(y,E){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var D=Ta(y),I=n.current,C="deltaX"in y?y.deltaX:I[0]-D[0],k="deltaY"in y?y.deltaY:I[1]-D[1],T,H=y.target,U=Math.abs(C)>Math.abs(k)?"h":"v";if("touches"in y&&U==="h"&&H.type==="range")return!1;var j=Pp(U,H);if(!j)return!0;if(j?T=U:(T=U==="v"?"h":"v",j=Pp(U,H)),!j)return!1;if(!o.current&&"changedTouches"in y&&(C||k)&&(o.current=T),!T)return!0;var J=o.current||T;return yT(J,E,y,J==="h"?C:k,!0)},[]),d=L.useCallback(function(y){var E=y;if(!(!Oi.length||Oi[Oi.length-1]!==u)){var D="deltaY"in E?Ap(E):Ta(E),I=r.current.filter(function(T){return T.name===E.type&&(T.target===E.target||E.target===T.shadowParent)&&wT(T.delta,D)})[0];if(I&&I.should){E.cancelable&&E.preventDefault();return}if(!I){var C=(l.current.shards||[]).map(Ip).filter(Boolean).filter(function(T){return T.contains(E.target)}),k=C.length>0?f(E,C[0]):!l.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),v=L.useCallback(function(y,E,D,I){var C={name:y,delta:E,target:D,should:I,shadowParent:ET(D)};r.current.push(C),setTimeout(function(){r.current=r.current.filter(function(k){return k!==C})},1)},[]),g=L.useCallback(function(y){n.current=Ta(y),o.current=void 0},[]),_=L.useCallback(function(y){v(y.type,Ap(y),y.target,f(y,e.lockRef.current))},[]),O=L.useCallback(function(y){v(y.type,Ta(y),y.target,f(y,e.lockRef.current))},[]);L.useEffect(function(){return Oi.push(u),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:O}),document.addEventListener("wheel",d,xi),document.addEventListener("touchmove",d,xi),document.addEventListener("touchstart",g,xi),function(){Oi=Oi.filter(function(y){return y!==u}),document.removeEventListener("wheel",d,xi),document.removeEventListener("touchmove",d,xi),document.removeEventListener("touchstart",g,xi)}},[]);var m=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(u,{styles:bT(a)}):null,m?L.createElement(fT,{gapMode:e.gapMode}):null)}function ET(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const xT=QO(Sv,ST);var Cv=L.forwardRef(function(e,r){return L.createElement(as,Dn({},e,{ref:r,sideCar:xT}))});Cv.classNames=as.classNames;const OT=Cv,ho=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},TT=L["useId".toString()]||(()=>{});let CT=0;function RT(e){const[r,n]=L.useState(TT());return ho(()=>{e||n(o=>o??String(CT++))},[e]),e||(r?`radix-${r}`:"")}function Rv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Qr(...e){return L.useCallback(Rv(...e),e)}const Pv=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.Children.toArray(n).some(Lp)?L.createElement(L.Fragment,null,L.Children.map(n,a=>Lp(a)?L.createElement(Ol,wt({},o,{ref:r}),a.props.children):a)):L.createElement(Ol,wt({},o,{ref:r}),n)});Pv.displayName="Slot";const Ol=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...AT(o,n.props),ref:Rv(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});Ol.displayName="SlotClone";const PT=({children:e})=>L.createElement(L.Fragment,null,e);function Lp(e){return L.isValidElement(e)&&e.type===PT}function AT(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const Mi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:L.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?Pv:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,wt({},u,{ref:o}))})}),{}),Av=e=>{const{present:r,children:n}=e,o=function(l){const[f,d]=L.useState(),v=L.useRef({}),g=L.useRef(l),_=L.useRef("none"),O=l?"mounted":"unmounted",[m,S]=function(y,E){return L.useReducer((D,I)=>{const C=E[D][I];return C??D},y)}(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const y=Ca(v.current);_.current=m==="mounted"?y:"none"},[m]),ho(()=>{const y=v.current,E=g.current;if(E!==l){const D=_.current,I=Ca(y);l?S("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(E&&D!==I?"ANIMATION_OUT":"UNMOUNT"),g.current=l}},[l,S]),ho(()=>{if(f){const y=D=>{const I=Ca(v.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ca(v.current))};return f.addEventListener("animationstart",E),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",E),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:L.useCallback(y=>{y&&(v.current=getComputedStyle(y)),d(y)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):L.Children.only(n),u=Qr(o.ref,a.ref);return typeof n=="function"||o.isPresent?L.cloneElement(a,{ref:u}):null};function Ca(e){return(e==null?void 0:e.animationName)||"none"}Av.displayName="Presence";let Ku=0;function IT(){L.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Mp()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Mp()),Ku++,()=>{Ku===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ku--}},[])}function Mp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Iv=L.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,f=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,d]=L.useState({});return ho(()=>{d({})},[]),f?yo.createPortal(L.createElement(Mi.div,wt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Zr(e){const r=L.useRef(e);return L.useEffect(()=>{r.current=e}),L.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const Dp={bubbles:!1,cancelable:!0},LT=L.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,d]=L.useState(null),v=Zr(a),g=Zr(u),_=L.useRef(null),O=Qr(r,y=>d(y)),m=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(o){let y=function(D){if(m.paused||!f)return;const I=D.target;f.contains(I)?_.current=I:Hr(_.current,{select:!0})},E=function(D){!m.paused&&f&&(f.contains(D.relatedTarget)||Hr(_.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E)}}},[o,f,m.paused]),L.useEffect(()=>{if(f){$p.add(m);const E=document.activeElement;if(!f.contains(E)){const D=new Event("focusScope.autoFocusOnMount",Dp);f.addEventListener("focusScope.autoFocusOnMount",v),f.dispatchEvent(D),D.defaultPrevented||(function(I,{select:C=!1}={}){const k=document.activeElement;for(const T of I)if(Hr(T,{select:C}),document.activeElement!==k)return}((y=kp(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Hr(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",v),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",Dp);f.addEventListener("focusScope.autoFocusOnUnmount",g),f.dispatchEvent(D),D.defaultPrevented||Hr(E??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",g),$p.remove(m)},0)}}var y},[f,v,g,m]);const S=L.useCallback(y=>{if(!n&&!o||m.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,D=document.activeElement;if(E&&D){const I=y.currentTarget,[C,k]=function(T){const H=kp(T),U=Np(H,T),j=Np(H.reverse(),T);return[U,j]}(I);C&&k?y.shiftKey||D!==k?y.shiftKey&&D===C&&(y.preventDefault(),n&&Hr(k,{select:!0})):(y.preventDefault(),n&&Hr(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,m.paused]);return L.createElement(Mi.div,wt({tabIndex:-1},l,{ref:O,onKeyDown:S}))});function kp(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function Np(e,r){for(const n of e)if(!MT(n,{upTo:r}))return n}function MT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Hr(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const $p=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=jp(e,r),e.unshift(r)},remove(r){var n;e=jp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function jp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function DT(e){const r=Zr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let Fp,Ra=0;function kT({disabled:e}){const r=L.useRef(!1);ho(()=>{if(e){let n=function(){Ra--,Ra===0&&(document.body.style.pointerEvents=Fp)},o=function(a){r.current=a.pointerType!=="mouse"};return Ra===0&&(Fp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ra++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Xr(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const NT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$T=L.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...d}=e,v=L.useContext(NT),[g,_]=L.useState(null),[,O]=L.useState({}),m=Qr(r,H=>_(H)),S=Array.from(v.layers),[y]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(y),D=g?S.indexOf(g):-1,I=v.layersWithOutsidePointerEventsDisabled.size>0,C=D>=E,k=function(H){const U=Zr(H),j=L.useRef(!1);return L.useEffect(()=>{const J=ge=>{ge.target&&!j.current&&Hp("dismissableLayer.pointerDownOutside",U,{originalEvent:ge}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",J)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",J)}},[U]),{onPointerDownCapture:()=>j.current=!0}}(H=>{const U=H.target,j=[...v.branches].some(J=>J.contains(U));C&&!j&&(a==null||a(H),l==null||l(H),H.defaultPrevented||f==null||f())}),T=function(H){const U=Zr(H),j=L.useRef(!1);return L.useEffect(()=>{const J=ee=>{ee.target&&!j.current&&Hp("dismissableLayer.focusOutside",U,{originalEvent:ee})};return document.addEventListener("focusin",J),()=>document.removeEventListener("focusin",J)},[U]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(H=>{const U=H.target;[...v.branches].some(j=>j.contains(U))||(u==null||u(H),l==null||l(H),H.defaultPrevented||f==null||f())});return DT(H=>{D===v.layers.size-1&&(o==null||o(H),H.defaultPrevented||f==null||f())}),kT({disabled:n}),L.useEffect(()=>{g&&(n&&v.layersWithOutsidePointerEventsDisabled.add(g),v.layers.add(g),Wp())},[g,n,v]),L.useEffect(()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),Wp())},[g,v]),L.useEffect(()=>{const H=()=>O({});return document.addEventListener("dismissableLayer.update",H),()=>document.removeEventListener("dismissableLayer.update",H)},[]),L.createElement(Mi.div,wt({},d,{ref:m,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Xr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Xr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Xr(e.onPointerDownCapture,k.onPointerDownCapture)}))});function Wp(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Hp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function Up(e){const[r,n]=L.useState(void 0);return L.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,f;if("borderBoxSize"in u){const d=u.borderBoxSize,v=Array.isArray(d)?d[0]:d;l=v.inlineSize,f=v.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}n({width:l,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function jT(e,r){const n=Br.get(e);return n===void 0?(Br.set(e,{rect:{},callbacks:[r]}),Br.size===1&&(Tl=requestAnimationFrame(Lv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=Br.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(Br.delete(e),Br.size===0&&cancelAnimationFrame(Tl))}}let Tl;const Br=new Map;function Lv(){const e=[];Br.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),Tl=requestAnimationFrame(Lv)}function FT(e){const[r,n]=L.useState();return L.useEffect(()=>{if(e){const o=jT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Mv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>L.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=L.createContext(u),f=n.length;function d(v){const{scope:g,children:_,...O}=v,m=(g==null?void 0:g[e][f])||l,S=L.useMemo(()=>O,Object.values(O));return L.createElement(m.Provider,{value:S},_)}return n=[...n,u],d.displayName=a+"Provider",[d,function(v,g){const _=(g==null?void 0:g[e][f])||l,O=L.useContext(_);if(O)return O;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${a}\``)}]},WT(o,...r)]}function WT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return L.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function HT({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:v,collisionTolerance:g=0}){if(!e||!r||!v)return{popperStyles:UT,arrowStyles:Yu};const _=function(U,j,J=0,ee=0,ge){const Ce=ge?ge.height:0,_e=Bp(j,U,"x"),se=Bp(j,U,"y"),Le=se.before-J-Ce,we=se.after+J+Ce,xe=_e.before-J-Ce,We=_e.after+J+Ce;return{top:{start:{x:_e.start+ee,y:Le},center:{x:_e.center,y:Le},end:{x:_e.end-ee,y:Le}},right:{start:{x:We,y:se.start+ee},center:{x:We,y:se.center},end:{x:We,y:se.end-ee}},bottom:{start:{x:_e.start+ee,y:we},center:{x:_e.center,y:we},end:{x:_e.end-ee,y:we}},left:{start:{x:xe,y:se.start+ee},center:{x:xe,y:se.center},end:{x:xe,y:se.end-ee}}}}(r,e,u,f,n),O=_[a][l];if(d===!1){const U=zp(O);let j=Yu;return n&&(j=Gp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":qp(r,a,l,o,n)},arrowStyles:j,placedSide:a,placedAlign:l}}const m=DOMRect.fromRect({...r,...O}),S=(y=v,E=g,DOMRect.fromRect({width:y.width-2*E,height:y.height-2*E,x:y.left+E,y:y.top+E}));var y,E;const D=Yp(m,S),I=_[Kp(a)][l],C=function(U,j,J){const ee=Kp(U);return j[U]&&!J[ee]?ee:U}(a,D,Yp(DOMRect.fromRect({...r,...I}),S)),k=function(U,j,J,ee,ge){const Ce=J==="top"||J==="bottom",_e=Ce?"left":"top",se=Ce?"right":"bottom",Le=Ce?"width":"height",we=j[Le]>U[Le];return(ee==="start"||ee==="center")&&(ge[_e]&&we||ge[se]&&!we)?"end":(ee==="end"||ee==="center")&&(ge[se]&&we||ge[_e]&&!we)?"start":ee}(r,e,a,l,D),T=zp(_[C][k]);let H=Yu;return n&&(H=Gp({popperSize:r,arrowSize:n,arrowOffset:o,side:C,align:k})),{popperStyles:{...T,"--radix-popper-transform-origin":qp(r,C,k,o,n)},arrowStyles:H,placedSide:C,placedAlign:k}}function Bp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function zp(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function qp(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+o;let v="",g="";return u?(v={start:`${d}px`,center:"center",end:e.width-d+"px"}[n],g=r==="top"?`${e.height+f}px`:-f+"px"):(v=r==="left"?`${e.width+f}px`:-f+"px",g={start:`${d}px`,center:"center",end:e.height-d+"px"}[n]),`${v} ${g}`}const UT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Yu={position:"absolute",opacity:0};function Gp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],d=Math.max(r.width,r.height),v={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:BT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(v.left=`${n}px`),a==="center"&&(v.left=`${u}px`),a==="end"&&(v.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(v.top=`${n}px`),a==="center"&&(v.top=`${l}px`),a==="end"&&(v.bottom=`${n}px`)),v}function BT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function Kp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Yp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Dv,kv]=Mv("Popper"),[zT,Nv]=Dv("Popper"),qT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(zT,{scope:r,anchor:o,onAnchorChange:a},n)},GT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Nv("PopperAnchor",n),l=L.useRef(null),f=Qr(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Mi.div,wt({},a,{ref:f}))}),[KT,vI]=Dv("PopperContent"),YT=L.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...v}=e,g=Nv("PopperContent",n),[_,O]=L.useState(),m=FT(g.anchor),[S,y]=L.useState(null),E=Up(S),[D,I]=L.useState(null),C=Up(D),k=Qr(r,Ce=>y(Ce)),T=function(){const[Ce,_e]=L.useState(void 0);return L.useEffect(()=>{let se;function Le(){_e({width:window.innerWidth,height:window.innerHeight})}function we(){window.clearTimeout(se),se=window.setTimeout(Le,100)}return Le(),window.addEventListener("resize",we),()=>window.removeEventListener("resize",we)},[]),Ce}(),H=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:j,placedSide:J,placedAlign:ee}=HT({anchorRect:m,popperSize:E,arrowSize:C,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:H,collisionTolerance:f}),ge=J!==void 0;return L.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},L.createElement(KT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Mi.div,wt({"data-side":J,"data-align":ee},v,{style:{...v.style,animation:ge?void 0:"none"},ref:k}))))}),XT=qT,VT=GT,JT=YT;function ZT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:v}){const g=L.useState(d),[_]=g,O=L.useRef(_),m=Zr(v);return L.useEffect(()=>{O.current!==_&&(m(_),O.current=_)},[_,O,m]),g}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,f=Zr(n);return[l,L.useCallback(d=>{if(u){const v=d,g=typeof d=="function"?v(e):d;g!==e&&f(g)}else a(d)},[u,e,a,f])]}const[QT,mI]=Mv("Popover",[kv]),tc=kv(),[eC,So]=QT("Popover"),tC=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,f=tc(r),d=L.useRef(null),[v,g]=L.useState(!1),[_=!1,O]=ZT({prop:o,defaultProp:a,onChange:u});return L.createElement(XT,f,L.createElement(eC,{scope:r,contentId:RT(),triggerRef:d,open:_,onOpenChange:O,onOpenToggle:L.useCallback(()=>O(m=>!m),[O]),hasCustomAnchor:v,onCustomAnchorAdd:L.useCallback(()=>g(!0),[]),onCustomAnchorRemove:L.useCallback(()=>g(!1),[]),modal:l},n))},nC=L.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=So("PopoverTrigger",n),u=tc(n),l=Qr(r,a.triggerRef),f=L.createElement(Mi.button,wt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":jv(a.open)},o,{ref:l,onClick:Xr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(VT,wt({asChild:!0},u),f)}),rC=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=So("PopoverContent",e.__scopePopover);return L.createElement(Av,{present:n||a.open},a.modal?L.createElement(iC,wt({},o,{ref:r})):L.createElement(oC,wt({},o,{ref:r})))}),iC=L.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=So("PopoverContent",e.__scopePopover),l=L.useRef(null),f=Qr(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return zO(g)},[]);const v=o?Iv:L.Fragment;return L.createElement(v,null,L.createElement(OT,{allowPinchZoom:n},L.createElement($v,wt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xr(e.onCloseAutoFocus,g=>{var _;g.preventDefault(),d.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Xr(e.onPointerDownOutside,g=>{const _=g.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,m=_.button===2||O;d.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:Xr(e.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1})}))))}),oC=L.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=So("PopoverContent",e.__scopePopover),u=L.useRef(!1),l=n?Iv:L.Fragment;return L.createElement(l,null,L.createElement($v,wt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,v;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current||(v=a.triggerRef.current)===null||v===void 0||v.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var d,v;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current=!0);const g=f.target;!((v=a.triggerRef.current)===null||v===void 0)&&v.contains(g)&&f.preventDefault()}})))}),$v=L.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onInteractOutside:g,..._}=e,O=So("PopoverContent",n),m=tc(n);return IT(),L.createElement(LT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},L.createElement($T,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onDismiss:()=>O.onOpenChange(!1)},L.createElement(JT,wt({"data-state":jv(O.open),role:"dialog",id:O.contentId},m,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function jv(e){return e?"open":"closed"}const aC=tC,sC=nC,uC=rC;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{});var Fv={},ss={},nc={},Xu={},Pa={exports:{}},Aa={exports:{}},Ue={};/** @license React v16.13.1
124
+ `)},nR=0,Qi=[];function iR(e){var t=F.useRef([]),r=F.useRef([0,0]),i=F.useRef(),a=F.useState(nR++)[0],s=F.useState(Mm)[0],l=F.useRef(e);F.useEffect(function(){l.current=e},[e]),F.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=qo([e.lockRef.current],(e.shards||[]).map(Lh),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=F.useCallback(function(g,x){if("touches"in g&&g.touches.length===2)return!l.current.allowPinchZoom;var C=ss(g),P=r.current,T="deltaX"in g?g.deltaX:P[0]-C[0],$="deltaY"in g?g.deltaY:P[1]-C[1],A,D=g.target,H=Math.abs(T)>Math.abs($)?"h":"v";if("touches"in g&&H==="h"&&D.type==="range")return!1;var j=Mh(H,D);if(!j)return!0;if(j?A=H:(A=H==="v"?"h":"v",j=Mh(H,D)),!j)return!1;if(!i.current&&"changedTouches"in g&&(T||$)&&(i.current=A),!A)return!0;var V=i.current||A;return eR(V,x,g,V==="h"?T:$,!0)},[]),d=F.useCallback(function(g){var x=g;if(!(!Qi.length||Qi[Qi.length-1]!==s)){var C="deltaY"in x?Fh(x):ss(x),P=t.current.filter(function(A){return A.name===x.type&&(A.target===x.target||x.target===A.shadowParent)&&tR(A.delta,C)})[0];if(P&&P.should){x.cancelable&&x.preventDefault();return}if(!P){var T=(l.current.shards||[]).map(Lh).filter(Boolean).filter(function(A){return A.contains(x.target)}),$=T.length>0?c(x,T[0]):!l.current.noIsolation;$&&x.cancelable&&x.preventDefault()}}},[]),p=F.useCallback(function(g,x,C,P){var T={name:g,delta:x,target:C,should:P,shadowParent:oR(C)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function($){return $!==T})},1)},[]),h=F.useCallback(function(g){r.current=ss(g),i.current=void 0},[]),w=F.useCallback(function(g){p(g.type,Fh(g),g.target,c(g,e.lockRef.current))},[]),S=F.useCallback(function(g){p(g.type,ss(g),g.target,c(g,e.lockRef.current))},[]);F.useEffect(function(){return Qi.push(s),e.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:S}),document.addEventListener("wheel",d,Ji),document.addEventListener("touchmove",d,Ji),document.addEventListener("touchstart",h,Ji),function(){Qi=Qi.filter(function(g){return g!==s}),document.removeEventListener("wheel",d,Ji),document.removeEventListener("touchmove",d,Ji),document.removeEventListener("touchstart",h,Ji)}},[]);var v=e.removeScrollBar,_=e.inert;return F.createElement(F.Fragment,null,_?F.createElement(s,{styles:rR(a)}):null,v?F.createElement(GT,{gapMode:e.gapMode}):null)}function oR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aR=$T(Im,iR);var Dm=F.forwardRef(function(e,t){return F.createElement(Gs,Jr({},e,{ref:t,sideCar:aR}))});Dm.classNames=Gs.classNames;const sR=Dm,Zo=globalThis!=null&&globalThis.document?F.useLayoutEffect:()=>{},uR=F["useId".toString()]||(()=>{});let lR=0;function cR(e){const[t,r]=F.useState(uR());return Zo(()=>{e||r(i=>i??String(lR++))},[e]),e||(t?`radix-${t}`:"")}function Nm(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function Ti(...e){return F.useCallback(Nm(...e),e)}const km=F.forwardRef((e,t)=>{const{children:r,...i}=e;return F.Children.toArray(r).some($h)?F.createElement(F.Fragment,null,F.Children.map(r,a=>$h(a)?F.createElement(gc,Ct({},i,{ref:t}),a.props.children):a)):F.createElement(gc,Ct({},i,{ref:t}),r)});km.displayName="Slot";const gc=F.forwardRef((e,t)=>{const{children:r,...i}=e;return F.isValidElement(r)?F.cloneElement(r,{...dR(i,r.props),ref:Nm(t,r.ref)}):F.Children.count(r)>1?F.Children.only(null):null});gc.displayName="SlotClone";const fR=({children:e})=>F.createElement(F.Fragment,null,e);function $h(e){return F.isValidElement(e)&&e.type===fR}function dR(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const uo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:F.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?km:t;return F.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),F.createElement(l,Ct({},s,{ref:i}))})}),{}),jm=e=>{const{present:t,children:r}=e,i=function(l){const[c,d]=F.useState(),p=F.useRef({}),h=F.useRef(l),w=F.useRef("none"),S=l?"mounted":"unmounted",[v,_]=function(g,x){return F.useReducer((C,P)=>{const T=x[C][P];return T??C},g)}(S,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return F.useEffect(()=>{const g=us(p.current);w.current=v==="mounted"?g:"none"},[v]),Zo(()=>{const g=p.current,x=h.current;if(x!==l){const C=w.current,P=us(g);l?_("MOUNT"):P==="none"||(g==null?void 0:g.display)==="none"?_("UNMOUNT"):_(x&&C!==P?"ANIMATION_OUT":"UNMOUNT"),h.current=l}},[l,_]),Zo(()=>{if(c){const g=C=>{const P=us(p.current).includes(C.animationName);C.target===c&&P&&_("ANIMATION_END")},x=C=>{C.target===c&&(w.current=us(p.current))};return c.addEventListener("animationstart",x),c.addEventListener("animationcancel",g),c.addEventListener("animationend",g),()=>{c.removeEventListener("animationstart",x),c.removeEventListener("animationcancel",g),c.removeEventListener("animationend",g)}}_("ANIMATION_END")},[c,_]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:F.useCallback(g=>{g&&(p.current=getComputedStyle(g)),d(g)},[])}}(t),a=typeof r=="function"?r({present:i.isPresent}):F.Children.only(r),s=Ti(i.ref,a.ref);return typeof r=="function"||i.isPresent?F.cloneElement(a,{ref:s}):null};function us(e){return(e==null?void 0:e.animationName)||"none"}jm.displayName="Presence";let Nl=0;function pR(){F.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Dh()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Dh()),Nl++,()=>{Nl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Nl--}},[])}function Dh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Wm=F.forwardRef((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,c=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,d]=F.useState({});return Zo(()=>{d({})},[]),c?Qo.createPortal(F.createElement(uo.div,Ct({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null});function Oi(e){const t=F.useRef(e);return F.useEffect(()=>{t.current=e}),F.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}const Nh={bubbles:!1,cancelable:!0},hR=F.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,d]=F.useState(null),p=Oi(a),h=Oi(s),w=F.useRef(null),S=Ti(t,g=>d(g)),v=F.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;F.useEffect(()=>{if(i){let g=function(C){if(v.paused||!c)return;const P=C.target;c.contains(P)?w.current=P:pi(w.current,{select:!0})},x=function(C){!v.paused&&c&&(c.contains(C.relatedTarget)||pi(w.current,{select:!0}))};return document.addEventListener("focusin",g),document.addEventListener("focusout",x),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x)}}},[i,c,v.paused]),F.useEffect(()=>{if(c){Wh.add(v);const x=document.activeElement;if(!c.contains(x)){const C=new Event("focusScope.autoFocusOnMount",Nh);c.addEventListener("focusScope.autoFocusOnMount",p),c.dispatchEvent(C),C.defaultPrevented||(function(P,{select:T=!1}={}){const $=document.activeElement;for(const A of P)if(pi(A,{select:T}),document.activeElement!==$)return}((g=kh(c),g.filter(P=>P.tagName!=="A")),{select:!0}),document.activeElement===x&&pi(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout(()=>{const C=new Event("focusScope.autoFocusOnUnmount",Nh);c.addEventListener("focusScope.autoFocusOnUnmount",h),c.dispatchEvent(C),C.defaultPrevented||pi(x??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",h),Wh.remove(v)},0)}}var g},[c,p,h,v]);const _=F.useCallback(g=>{if(!r&&!i||v.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,C=document.activeElement;if(x&&C){const P=g.currentTarget,[T,$]=function(A){const D=kh(A),H=jh(D,A),j=jh(D.reverse(),A);return[H,j]}(P);T&&$?g.shiftKey||C!==$?g.shiftKey&&C===T&&(g.preventDefault(),r&&pi($,{select:!0})):(g.preventDefault(),r&&pi(T,{select:!0})):C===P&&g.preventDefault()}},[r,i,v.paused]);return F.createElement(uo.div,Ct({tabIndex:-1},l,{ref:S,onKeyDown:_}))});function kh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function jh(e,t){for(const r of e)if(!vR(r,{upTo:t}))return r}function vR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(i){return i instanceof HTMLInputElement&&"select"in i}(e)&&t&&e.select()}}const Wh=function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Uh(e,t),e.unshift(t)},remove(t){var r;e=Uh(e,t),(r=e[0])===null||r===void 0||r.resume()}}}();function Uh(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function mR(e){const t=Oi(e);F.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}let Hh,ls=0;function gR({disabled:e}){const t=F.useRef(!1);Zo(()=>{if(e){let r=function(){ls--,ls===0&&(document.body.style.pointerEvents=Hh)},i=function(a){t.current=a.pointerType!=="mouse"};return ls===0&&(Hh=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ls++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}},[e])}function Ei(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const yR=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wR=F.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...d}=e,p=F.useContext(yR),[h,w]=F.useState(null),[,S]=F.useState({}),v=Ti(t,D=>w(D)),_=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=_.indexOf(g),C=h?_.indexOf(h):-1,P=p.layersWithOutsidePointerEventsDisabled.size>0,T=C>=x,$=function(D){const H=Oi(D),j=F.useRef(!1);return F.useEffect(()=>{const V=ye=>{ye.target&&!j.current&&zh("dismissableLayer.pointerDownOutside",H,{originalEvent:ye}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",V)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",V)}},[H]),{onPointerDownCapture:()=>j.current=!0}}(D=>{const H=D.target,j=[...p.branches].some(V=>V.contains(H));T&&!j&&(a==null||a(D),l==null||l(D),D.defaultPrevented||c==null||c())}),A=function(D){const H=Oi(D),j=F.useRef(!1);return F.useEffect(()=>{const V=ee=>{ee.target&&!j.current&&zh("dismissableLayer.focusOutside",H,{originalEvent:ee})};return document.addEventListener("focusin",V),()=>document.removeEventListener("focusin",V)},[H]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(D=>{const H=D.target;[...p.branches].some(j=>j.contains(H))||(s==null||s(D),l==null||l(D),D.defaultPrevented||c==null||c())});return mR(D=>{C===p.layers.size-1&&(i==null||i(D),D.defaultPrevented||c==null||c())}),gR({disabled:r}),F.useEffect(()=>{h&&(r&&p.layersWithOutsidePointerEventsDisabled.add(h),p.layers.add(h),Bh())},[h,r,p]),F.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),Bh())},[h,p]),F.useEffect(()=>{const D=()=>S({});return document.addEventListener("dismissableLayer.update",D),()=>document.removeEventListener("dismissableLayer.update",D)},[]),F.createElement(uo.div,Ct({},d,{ref:v,style:{pointerEvents:P?T?"auto":"none":void 0,...e.style},onFocusCapture:Ei(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ei(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ei(e.onPointerDownCapture,$.onPointerDownCapture)}))});function Bh(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function zh(e,t,r){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(a)}function qh(e){const[t,r]=F.useState(void 0);return F.useEffect(()=>{if(e){const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,c;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;l=p.inlineSize,c=p.blockSize}else{const d=e.getBoundingClientRect();l=d.width,c=d.height}r({width:l,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)},[e]),t}function bR(e,t){const r=vi.get(e);return r===void 0?(vi.set(e,{rect:{},callbacks:[t]}),vi.size===1&&(yc=requestAnimationFrame(Um))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=vi.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&(vi.delete(e),vi.size===0&&cancelAnimationFrame(yc))}}let yc;const vi=new Map;function Um(){const e=[];vi.forEach((t,r)=>{const i=r.getBoundingClientRect();var a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.left)&&(t.rect=i,e.push(t))}),e.forEach(t=>{t.callbacks.forEach(r=>r(t.rect))}),yc=requestAnimationFrame(Um)}function SR(e){const[t,r]=F.useState();return F.useEffect(()=>{if(e){const i=bR(e,r);return()=>{r(void 0),i()}}},[e]),t}function Hm(e,t=[]){let r=[];const i=()=>{const a=r.map(s=>F.createContext(s));return function(s){const l=(s==null?void 0:s[e])||a;return F.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[function(a,s){const l=F.createContext(s),c=r.length;function d(p){const{scope:h,children:w,...S}=p,v=(h==null?void 0:h[e][c])||l,_=F.useMemo(()=>S,Object.values(S));return F.createElement(v.Provider,{value:_},w)}return r=[...r,s],d.displayName=a+"Provider",[d,function(p,h){const w=(h==null?void 0:h[e][c])||l,S=F.useContext(w);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}]},ER(i,...t)]}function ER(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const s=i.reduce((l,{useScope:c,scopeName:d})=>({...l,...c(a)[`__scope${d}`]}),{});return F.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function _R({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:p,collisionTolerance:h=0}){if(!e||!t||!p)return{popperStyles:xR,arrowStyles:kl};const w=function(H,j,V=0,ee=0,ye){const Re=ye?ye.height:0,Ee=Zh(j,H,"x"),se=Zh(j,H,"y"),Fe=se.before-V-Re,be=se.after+V+Re,Oe=Ee.before-V-Re,Be=Ee.after+V+Re;return{top:{start:{x:Ee.start+ee,y:Fe},center:{x:Ee.center,y:Fe},end:{x:Ee.end-ee,y:Fe}},right:{start:{x:Be,y:se.start+ee},center:{x:Be,y:se.center},end:{x:Be,y:se.end-ee}},bottom:{start:{x:Ee.start+ee,y:be},center:{x:Ee.center,y:be},end:{x:Ee.end-ee,y:be}},left:{start:{x:Oe,y:se.start+ee},center:{x:Oe,y:se.center},end:{x:Oe,y:se.end-ee}}}}(t,e,s,c,r),S=w[a][l];if(d===!1){const H=Gh(S);let j=kl;return r&&(j=Yh({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":Kh(t,a,l,i,r)},arrowStyles:j,placedSide:a,placedAlign:l}}const v=DOMRect.fromRect({...t,...S}),_=(g=p,x=h,DOMRect.fromRect({width:g.width-2*x,height:g.height-2*x,x:g.left+x,y:g.top+x}));var g,x;const C=Xh(v,_),P=w[Vh(a)][l],T=function(H,j,V){const ee=Vh(H);return j[H]&&!V[ee]?ee:H}(a,C,Xh(DOMRect.fromRect({...t,...P}),_)),$=function(H,j,V,ee,ye){const Re=V==="top"||V==="bottom",Ee=Re?"left":"top",se=Re?"right":"bottom",Fe=Re?"width":"height",be=j[Fe]>H[Fe];return(ee==="start"||ee==="center")&&(ye[Ee]&&be||ye[se]&&!be)?"end":(ee==="end"||ee==="center")&&(ye[se]&&be||ye[Ee]&&!be)?"start":ee}(t,e,a,l,C),A=Gh(w[T][$]);let D=kl;return r&&(D=Yh({popperSize:t,arrowSize:r,arrowOffset:i,side:T,align:$})),{popperStyles:{...A,"--radix-popper-transform-origin":Kh(t,T,$,i,r)},arrowStyles:D,placedSide:T,placedAlign:$}}function Zh(e,t,r){const i=e[r==="x"?"left":"top"],a=r==="x"?"width":"height",s=e[a],l=t[a];return{before:i-l,start:i,center:i+(s-l)/2,end:i+s-l,after:i+s}}function Gh(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Kh(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,c=a?a.height:0,d=l/2+i;let p="",h="";return s?(p={start:`${d}px`,center:"center",end:e.width-d+"px"}[r],h=t==="top"?`${e.height+c}px`:-c+"px"):(p=t==="left"?`${e.width+c}px`:-c+"px",h={start:`${d}px`,center:"center",end:e.height-d+"px"}[r]),`${p} ${h}`}const xR={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},kl={position:"absolute",opacity:0};function Yh({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],d=Math.max(t.width,t.height),p={width:`${d}px`,height:`${d}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:OR(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(p.left=`${r}px`),a==="center"&&(p.left=`${s}px`),a==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(p.top=`${r}px`),a==="center"&&(p.top=`${l}px`),a==="end"&&(p.bottom=`${r}px`)),p}function OR(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Vh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Xh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Bm,zm]=Hm("Popper"),[AR,qm]=Bm("Popper"),TR=e=>{const{__scopePopper:t,children:r}=e,[i,a]=F.useState(null);return F.createElement(AR,{scope:t,anchor:i,onAnchorChange:a},r)},RR=F.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=qm("PopperAnchor",r),l=F.useRef(null),c=Ti(t,l);return F.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)}),i?null:F.createElement(uo.div,Ct({},a,{ref:c}))}),[CR,iF]=Bm("PopperContent"),PR=F.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:d=!0,...p}=e,h=qm("PopperContent",r),[w,S]=F.useState(),v=SR(h.anchor),[_,g]=F.useState(null),x=qh(_),[C,P]=F.useState(null),T=qh(C),$=Ti(t,Re=>g(Re)),A=function(){const[Re,Ee]=F.useState(void 0);return F.useEffect(()=>{let se;function Fe(){Ee({width:window.innerWidth,height:window.innerHeight})}function be(){window.clearTimeout(se),se=window.setTimeout(Fe,100)}return Fe(),window.addEventListener("resize",be),()=>window.removeEventListener("resize",be)},[]),Re}(),D=A?DOMRect.fromRect({...A,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:j,placedSide:V,placedAlign:ee}=_R({anchorRect:v,popperSize:x,arrowSize:T,arrowOffset:w,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:D,collisionTolerance:c}),ye=V!==void 0;return F.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},F.createElement(CR,{scope:r,arrowStyles:j,onArrowChange:P,onArrowOffsetChange:S},F.createElement(uo.div,Ct({"data-side":V,"data-align":ee},p,{style:{...p.style,animation:ye?void 0:"none"},ref:$}))))}),IR=TR,MR=RR,FR=PR;function LR({prop:e,defaultProp:t,onChange:r=()=>{}}){const[i,a]=function({defaultProp:d,onChange:p}){const h=F.useState(d),[w]=h,S=F.useRef(w),v=Oi(p);return F.useEffect(()=>{S.current!==w&&(v(w),S.current=w)},[w,S,v]),h}({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,c=Oi(r);return[l,F.useCallback(d=>{if(s){const p=d,h=typeof d=="function"?p(e):d;h!==e&&c(h)}else a(d)},[s,e,a,c])]}const[$R,oF]=Hm("Popover",[zm]),Xc=zm(),[DR,na]=$R("Popover"),NR=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Xc(t),d=F.useRef(null),[p,h]=F.useState(!1),[w=!1,S]=LR({prop:i,defaultProp:a,onChange:s});return F.createElement(IR,c,F.createElement(DR,{scope:t,contentId:cR(),triggerRef:d,open:w,onOpenChange:S,onOpenToggle:F.useCallback(()=>S(v=>!v),[S]),hasCustomAnchor:p,onCustomAnchorAdd:F.useCallback(()=>h(!0),[]),onCustomAnchorRemove:F.useCallback(()=>h(!1),[]),modal:l},r))},kR=F.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,a=na("PopoverTrigger",r),s=Xc(r),l=Ti(t,a.triggerRef),c=F.createElement(uo.button,Ct({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Gm(a.open)},i,{ref:l,onClick:Ei(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:F.createElement(MR,Ct({asChild:!0},s),c)}),jR=F.forwardRef((e,t)=>{const{forceMount:r,...i}=e,a=na("PopoverContent",e.__scopePopover);return F.createElement(jm,{present:r||a.open},a.modal?F.createElement(WR,Ct({},i,{ref:t})):F.createElement(UR,Ct({},i,{ref:t})))}),WR=F.forwardRef((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=na("PopoverContent",e.__scopePopover),l=F.useRef(null),c=Ti(t,l),d=F.useRef(!1);F.useEffect(()=>{const h=l.current;if(h)return AT(h)},[]);const p=i?Wm:F.Fragment;return F.createElement(p,null,F.createElement(sR,{allowPinchZoom:r},F.createElement(Zm,Ct({},a,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ei(e.onCloseAutoFocus,h=>{var w;h.preventDefault(),d.current||(w=s.triggerRef.current)===null||w===void 0||w.focus()}),onPointerDownOutside:Ei(e.onPointerDownOutside,h=>{const w=h.detail.originalEvent,S=w.button===0&&w.ctrlKey===!0,v=w.button===2||S;d.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Ei(e.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})}))))}),UR=F.forwardRef((e,t)=>{const{portalled:r=!0,...i}=e,a=na("PopoverContent",e.__scopePopover),s=F.useRef(!1),l=r?Wm:F.Fragment;return F.createElement(l,null,F.createElement(Zm,Ct({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,p;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current||(p=a.triggerRef.current)===null||p===void 0||p.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var d,p;(d=e.onInteractOutside)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current=!0);const h=c.target;!((p=a.triggerRef.current)===null||p===void 0)&&p.contains(h)&&c.preventDefault()}})))}),Zm=F.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...w}=e,S=na("PopoverContent",r),v=Xc(r);return pR(),F.createElement(hR,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},F.createElement(wR,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>S.onOpenChange(!1)},F.createElement(FR,Ct({"data-state":Gm(S.open),role:"dialog",id:S.contentId},v,w,{ref:t,style:{...w.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Gm(e){return e?"open":"closed"}const HR=NR,BR=kR,zR=jR;var xs=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(xs||{});var Km={},Ks={},Jc={},jl={},cs={exports:{}},fs={exports:{}},qe={};/** @license React v16.13.1
127
125
  * react-is.production.min.js
128
126
  *
129
127
  * Copyright (c) Facebook, Inc. and its affiliates.
130
128
  *
131
129
  * This source code is licensed under the MIT license found in the
132
130
  * LICENSE file in the root directory of this source tree.
133
- */var Xp;function lC(){if(Xp)return Ue;Xp=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function C(T){if(typeof T=="object"&&T!==null){var H=T.$$typeof;switch(H){case r:switch(T=T.type,T){case d:case v:case o:case u:case a:case _:return T;default:switch(T=T&&T.$$typeof,T){case f:case g:case S:case m:case l:return T;default:return H}}case n:return H}}}function k(T){return C(T)===v}return Ue.AsyncMode=d,Ue.ConcurrentMode=v,Ue.ContextConsumer=f,Ue.ContextProvider=l,Ue.Element=r,Ue.ForwardRef=g,Ue.Fragment=o,Ue.Lazy=S,Ue.Memo=m,Ue.Portal=n,Ue.Profiler=u,Ue.StrictMode=a,Ue.Suspense=_,Ue.isAsyncMode=function(T){return k(T)||C(T)===d},Ue.isConcurrentMode=k,Ue.isContextConsumer=function(T){return C(T)===f},Ue.isContextProvider=function(T){return C(T)===l},Ue.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},Ue.isForwardRef=function(T){return C(T)===g},Ue.isFragment=function(T){return C(T)===o},Ue.isLazy=function(T){return C(T)===S},Ue.isMemo=function(T){return C(T)===m},Ue.isPortal=function(T){return C(T)===n},Ue.isProfiler=function(T){return C(T)===u},Ue.isStrictMode=function(T){return C(T)===a},Ue.isSuspense=function(T){return C(T)===_},Ue.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===v||T===u||T===a||T===_||T===O||typeof T=="object"&&T!==null&&(T.$$typeof===S||T.$$typeof===m||T.$$typeof===l||T.$$typeof===f||T.$$typeof===g||T.$$typeof===E||T.$$typeof===D||T.$$typeof===I||T.$$typeof===y)},Ue.typeOf=C,Ue}var Be={};/** @license React v16.13.1
131
+ */var Jh;function qR(){if(Jh)return qe;Jh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function T(A){if(typeof A=="object"&&A!==null){var D=A.$$typeof;switch(D){case t:switch(A=A.type,A){case d:case p:case i:case s:case a:case w:return A;default:switch(A=A&&A.$$typeof,A){case c:case h:case _:case v:case l:return A;default:return D}}case r:return D}}}function $(A){return T(A)===p}return qe.AsyncMode=d,qe.ConcurrentMode=p,qe.ContextConsumer=c,qe.ContextProvider=l,qe.Element=t,qe.ForwardRef=h,qe.Fragment=i,qe.Lazy=_,qe.Memo=v,qe.Portal=r,qe.Profiler=s,qe.StrictMode=a,qe.Suspense=w,qe.isAsyncMode=function(A){return $(A)||T(A)===d},qe.isConcurrentMode=$,qe.isContextConsumer=function(A){return T(A)===c},qe.isContextProvider=function(A){return T(A)===l},qe.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},qe.isForwardRef=function(A){return T(A)===h},qe.isFragment=function(A){return T(A)===i},qe.isLazy=function(A){return T(A)===_},qe.isMemo=function(A){return T(A)===v},qe.isPortal=function(A){return T(A)===r},qe.isProfiler=function(A){return T(A)===s},qe.isStrictMode=function(A){return T(A)===a},qe.isSuspense=function(A){return T(A)===w},qe.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===i||A===p||A===s||A===a||A===w||A===S||typeof A=="object"&&A!==null&&(A.$$typeof===_||A.$$typeof===v||A.$$typeof===l||A.$$typeof===c||A.$$typeof===h||A.$$typeof===x||A.$$typeof===C||A.$$typeof===P||A.$$typeof===g)},qe.typeOf=T,qe}var Ze={};/** @license React v16.13.1
134
132
  * react-is.development.js
135
133
  *
136
134
  * Copyright (c) Facebook, Inc. and its affiliates.
137
135
  *
138
136
  * This source code is licensed under the MIT license found in the
139
137
  * LICENSE file in the root directory of this source tree.
140
- */var Vp;function cC(){return Vp||(Vp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function C(V){return typeof V=="string"||typeof V=="function"||V===o||V===v||V===u||V===a||V===_||V===O||typeof V=="object"&&V!==null&&(V.$$typeof===S||V.$$typeof===m||V.$$typeof===l||V.$$typeof===f||V.$$typeof===g||V.$$typeof===E||V.$$typeof===D||V.$$typeof===I||V.$$typeof===y)}function k(V){if(typeof V=="object"&&V!==null){var rt=V.$$typeof;switch(rt){case r:var it=V.type;switch(it){case d:case v:case o:case u:case a:case _:return it;default:var dt=it&&it.$$typeof;switch(dt){case f:case g:case S:case m:case l:return dt;default:return rt}}case n:return rt}}}var T=d,H=v,U=f,j=l,J=r,ee=g,ge=o,Ce=S,_e=m,se=n,Le=u,we=a,xe=_,We=!1;function ut(V){return We||(We=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(V)||k(V)===d}function G(V){return k(V)===v}function X(V){return k(V)===f}function de(V){return k(V)===l}function ie(V){return typeof V=="object"&&V!==null&&V.$$typeof===r}function ce(V){return k(V)===g}function fe(V){return k(V)===o}function ue(V){return k(V)===S}function pe(V){return k(V)===m}function le(V){return k(V)===n}function ye(V){return k(V)===u}function be(V){return k(V)===a}function Ke(V){return k(V)===_}Be.AsyncMode=T,Be.ConcurrentMode=H,Be.ContextConsumer=U,Be.ContextProvider=j,Be.Element=J,Be.ForwardRef=ee,Be.Fragment=ge,Be.Lazy=Ce,Be.Memo=_e,Be.Portal=se,Be.Profiler=Le,Be.StrictMode=we,Be.Suspense=xe,Be.isAsyncMode=ut,Be.isConcurrentMode=G,Be.isContextConsumer=X,Be.isContextProvider=de,Be.isElement=ie,Be.isForwardRef=ce,Be.isFragment=fe,Be.isLazy=ue,Be.isMemo=pe,Be.isPortal=le,Be.isProfiler=ye,Be.isStrictMode=be,Be.isSuspense=Ke,Be.isValidElementType=C,Be.typeOf=k}()),Be}var Jp;function Wv(){return Jp||(Jp=1,process.env.NODE_ENV==="production"?Aa.exports=lC():Aa.exports=cC()),Aa.exports}var Vu,Zp;function rc(){if(Zp)return Vu;Zp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vu=e,Vu}var Ju,Qp;function Hv(){return Qp||(Qp=1,Ju=Function.call.bind(Object.prototype.hasOwnProperty)),Ju}var Zu,eh;function fC(){if(eh)return Zu;eh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=rc(),n={},o=Hv();e=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(u,l,f,d,v){if(process.env.NODE_ENV!=="production"){for(var g in u)if(o(u,g)){var _;try{if(typeof u[g]!="function"){var O=Error((d||"React class")+": "+f+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}_=u[g](l,g,d,f,null,r)}catch(S){_=S}if(_&&!(_ instanceof Error)&&e((d||"React class")+": type specification of "+f+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof _+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),_ instanceof Error&&!(_.message in n)){n[_.message]=!0;var m=v?v():"";e("Failed "+f+" type: "+_.message+(m??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Zu=a,Zu}var Qu,th;function dC(){if(th)return Qu;th=1;var e=Wv(),r=Wl(),n=rc(),o=Hv(),a=fC(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(f){var d="Warning: "+f;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Qu=function(f,d){var v=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function _(G){var X=G&&(v&&G[v]||G[g]);if(typeof X=="function")return X}var O="<<anonymous>>",m={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:I(),arrayOf:C,element:k(),elementType:T(),instanceOf:H,node:ee(),objectOf:j,oneOf:U,oneOfType:J,shape:Ce,exact:_e};function S(G,X){return G===X?G!==0||1/G===1/X:G!==G&&X!==X}function y(G,X){this.message=G,this.data=X&&typeof X=="object"?X:{},this.stack=""}y.prototype=Error.prototype;function E(G){if(process.env.NODE_ENV!=="production")var X={},de=0;function ie(fe,ue,pe,le,ye,be,Ke){if(le=le||O,be=be||pe,Ke!==n){if(d){var V=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var rt=le+":"+pe;!X[rt]&&de<3&&(u("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+le+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),X[rt]=!0,de++)}}return ue[pe]==null?fe?ue[pe]===null?new y("The "+ye+" `"+be+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new y("The "+ye+" `"+be+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:G(ue,pe,le,ye,be)}var ce=ie.bind(null,!1);return ce.isRequired=ie.bind(null,!0),ce}function D(G){function X(de,ie,ce,fe,ue,pe){var le=de[ie],ye=we(le);if(ye!==G){var be=xe(le);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+be+"` supplied to `"+ce+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return E(X)}function I(){return E(l)}function C(G){function X(de,ie,ce,fe,ue){if(typeof G!="function")return new y("Property `"+ue+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var pe=de[ie];if(!Array.isArray(pe)){var le=we(pe);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an array."))}for(var ye=0;ye<pe.length;ye++){var be=G(pe,ye,ce,fe,ue+"["+ye+"]",n);if(be instanceof Error)return be}return null}return E(X)}function k(){function G(X,de,ie,ce,fe){var ue=X[de];if(!f(ue)){var pe=we(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return E(G)}function T(){function G(X,de,ie,ce,fe){var ue=X[de];if(!e.isValidElementType(ue)){var pe=we(ue);return new y("Invalid "+ce+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return E(G)}function H(G){function X(de,ie,ce,fe,ue){if(!(de[ie]instanceof G)){var pe=G.name||O,le=ut(de[ie]);return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected ")+("instance of `"+pe+"`."))}return null}return E(X)}function U(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):u("Invalid argument supplied to oneOf, expected an array.")),l;function X(de,ie,ce,fe,ue){for(var pe=de[ie],le=0;le<G.length;le++)if(S(pe,G[le]))return null;var ye=JSON.stringify(G,function(Ke,V){var rt=xe(V);return rt==="symbol"?String(V):V});return new y("Invalid "+fe+" `"+ue+"` of value `"+String(pe)+"` "+("supplied to `"+ce+"`, expected one of "+ye+"."))}return E(X)}function j(G){function X(de,ie,ce,fe,ue){if(typeof G!="function")return new y("Property `"+ue+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an object."));for(var ye in pe)if(o(pe,ye)){var be=G(pe,ye,ce,fe,ue+"."+ye,n);if(be instanceof Error)return be}return null}return E(X)}function J(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var X=0;X<G.length;X++){var de=G[X];if(typeof de!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+We(de)+" at index "+X+"."),l}function ie(ce,fe,ue,pe,le){for(var ye=[],be=0;be<G.length;be++){var Ke=G[be],V=Ke(ce,fe,ue,pe,le,n);if(V==null)return null;V.data&&o(V.data,"expectedType")&&ye.push(V.data.expectedType)}var rt=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new y("Invalid "+pe+" `"+le+"` supplied to "+("`"+ue+"`"+rt+"."))}return E(ie)}function ee(){function G(X,de,ie,ce,fe){return se(X[de])?null:new y("Invalid "+ce+" `"+fe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return E(G)}function ge(G,X,de,ie,ce){return new y((G||"React class")+": "+X+" type `"+de+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function Ce(G){function X(de,ie,ce,fe,ue){var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ye in G){var be=G[ye];if(typeof be!="function")return ge(ce,fe,ue,ye,xe(be));var Ke=be(pe,ye,ce,fe,ue+"."+ye,n);if(Ke)return Ke}return null}return E(X)}function _e(G){function X(de,ie,ce,fe,ue){var pe=de[ie],le=we(pe);if(le!=="object")return new y("Invalid "+fe+" `"+ue+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));var ye=r({},de[ie],G);for(var be in ye){var Ke=G[be];if(o(G,be)&&typeof Ke!="function")return ge(ce,fe,ue,be,xe(Ke));if(!Ke)return new y("Invalid "+fe+" `"+ue+"` key `"+be+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(de[ie],null," ")+`
141
- Valid keys: `+JSON.stringify(Object.keys(G),null," "));var V=Ke(pe,be,ce,fe,ue+"."+be,n);if(V)return V}return null}return E(X)}function se(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(se);if(G===null||f(G))return!0;var X=_(G);if(X){var de=X.call(G),ie;if(X!==G.entries){for(;!(ie=de.next()).done;)if(!se(ie.value))return!1}else for(;!(ie=de.next()).done;){var ce=ie.value;if(ce&&!se(ce[1]))return!1}}else return!1;return!0;default:return!1}}function Le(G,X){return G==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function we(G){var X=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":Le(X,G)?"symbol":X}function xe(G){if(typeof G>"u"||G===null)return""+G;var X=we(G);if(X==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return X}function We(G){var X=xe(G);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function ut(G){return!G.constructor||!G.constructor.name?O:G.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},Qu}var el,nh;function pC(){if(nh)return el;nh=1;var e=rc();function r(){}function n(){}return n.resetWarningCache=r,el=function(){function o(l,f,d,v,g,_){if(_!==e){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},el}var rh;function hC(){if(rh)return Pa.exports;if(rh=1,process.env.NODE_ENV!=="production"){var e=Wv(),r=!0;Pa.exports=dC()(e.isElement,r)}else Pa.exports=pC()();return Pa.exports}var ih;function vC(){return ih||(ih=1,function(e){(function(r,n){n(e,N,hC())})(zr,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=S;var a=l(n),u=l(o);function l(I){return I&&I.__esModule?I:{default:I}}var f=Object.assign||function(I){for(var C=1;C<arguments.length;C++){var k=arguments[C];for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(I[T]=k[T])}return I};function d(I,C){var k={};for(var T in I)C.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(I,T)&&(k[T]=I[T]);return k}function v(I,C){if(!(I instanceof C))throw new TypeError("Cannot call a class as a function")}var g=function(){function I(C,k){for(var T=0;T<k.length;T++){var H=k[T];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(C,H.key,H)}}return function(C,k,T){return k&&I(C.prototype,k),T&&I(C,T),C}}();function _(I,C){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:I}function O(I,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);I.prototype=Object.create(C&&C.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(I,C):I.__proto__=C)}var m=!1;function S(I){m=I}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function y(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return m?I:I.capture}function E(I){if("touches"in I){var C=I.touches[0],k=C.pageX,T=C.pageY;return{x:k,y:T}}var H=I.screenX,U=I.screenY;return{x:H,y:U}}var D=function(I){O(C,I);function C(){var k;v(this,C);for(var T=arguments.length,H=Array(T),U=0;U<T;U++)H[U]=arguments[U];var j=_(this,(k=C.__proto__||Object.getPrototypeOf(C)).call.apply(k,[this].concat(H)));return j._handleSwipeStart=j._handleSwipeStart.bind(j),j._handleSwipeMove=j._handleSwipeMove.bind(j),j._handleSwipeEnd=j._handleSwipeEnd.bind(j),j._onMouseDown=j._onMouseDown.bind(j),j._onMouseMove=j._onMouseMove.bind(j),j._onMouseUp=j._onMouseUp.bind(j),j._setSwiperRef=j._setSwiperRef.bind(j),j}return g(C,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(T){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(T))}},{key:"_onMouseMove",value:function(T){this.mouseDown&&this._handleSwipeMove(T)}},{key:"_onMouseUp",value:function(T){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(T)}},{key:"_handleSwipeStart",value:function(T){var H=E(T),U=H.x,j=H.y;this.moveStart={x:U,y:j},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var H=E(T),U=H.x,j=H.y,J=U-this.moveStart.x,ee=j-this.moveStart.y;this.moving=!0;var ge=this.props.onSwipeMove({x:J,y:ee},T);ge&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:J,deltaY:ee}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var H=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-H?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>H&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-H?this.props.onSwipeUp(1,T):this.movePosition.deltaY>H&&this.props.onSwipeDown(1,T)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(T){this.swiper=T,this.props.innerRef(T)}},{key:"render",value:function(){var T=this.props;T.tagName;var H=T.className,U=T.style,j=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var J=d(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:H,style:U},J),j)}}]),C}(n.Component);D.displayName="ReactSwipe",D.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},D.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=D})}(Xu)),Xu}(function(e){(function(r,n){n(e,vC())})(zr,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})})(nc);var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var mr=mC(Hh);function mC(e){return e&&e.__esModule?e:{default:e}}function gC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var yC={ROOT:function(r){return(0,mr.default)(gC({"carousel-root":!0},r||"",!!r))},CAROUSEL:function(r){return(0,mr.default)({carousel:!0,"carousel-slider":r})},WRAPPER:function(r,n){return(0,mr.default)({"thumbs-wrapper":!r,"slider-wrapper":r,"axis-horizontal":n==="horizontal","axis-vertical":n!=="horizontal"})},SLIDER:function(r,n){return(0,mr.default)({thumbs:!r,slider:r,animated:!n})},ITEM:function(r,n,o){return(0,mr.default)({thumb:!r,slide:r,selected:n,previous:o})},ARROW_PREV:function(r){return(0,mr.default)({"control-arrow control-prev":!0,"control-disabled":r})},ARROW_NEXT:function(r){return(0,mr.default)({"control-arrow control-next":!0,"control-disabled":r})},DOT:function(r){return(0,mr.default)({dot:!0,selected:r})}};Eo.default=yC;var xo={},us={};Object.defineProperty(us,"__esModule",{value:!0});us.outerWidth=void 0;var wC=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};us.outerWidth=wC;var Di={};Object.defineProperty(Di,"__esModule",{value:!0});Di.default=void 0;var bC=function(r,n,o){var a=r===0?r:r+n,u=o==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+u.join(",")+")";return l+f};Di.default=bC;var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=void 0;var _C=function(){return window};Oo.default=_C;Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var Tn=xC(N),Ur=ls(Eo),SC=us,oh=ls(Di),EC=ls(nc),Ia=ls(Oo);function ls(e){return e&&e.__esModule?e:{default:e}}function Uv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Uv=function(){return e},e}function xC(e){if(e&&e.__esModule)return e;if(e===null||so(e)!=="object"&&typeof e!="function")return{default:e};var r=Uv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function so(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?so=function(n){return typeof n}:so=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},so(e)}function Cl(){return Cl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Cl.apply(this,arguments)}function OC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ah(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function TC(e,r,n){return r&&ah(e.prototype,r),n&&ah(e,n),e}function CC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Rl(e,r)}function Rl(e,r){return Rl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Rl(e,r)}function RC(e){var r=AC();return function(){var o=Xa(e),a;if(r){var u=Xa(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return PC(this,a)}}function PC(e,r){return r&&(so(r)==="object"||typeof r=="function")?r:Ft(e)}function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xa(e)}function Mt(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var IC=function(r){return r.hasOwnProperty("key")},ic=function(e){CC(n,e);var r=RC(n);function n(o){var a;return OC(this,n),a=r.call(this,o),Mt(Ft(a),"itemsWrapperRef",void 0),Mt(Ft(a),"itemsListRef",void 0),Mt(Ft(a),"thumbsRef",void 0),Mt(Ft(a),"setItemsWrapperRef",function(u){a.itemsWrapperRef=u}),Mt(Ft(a),"setItemsListRef",function(u){a.itemsListRef=u}),Mt(Ft(a),"setThumbsRef",function(u,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=u}),Mt(Ft(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var u=Tn.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,SC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),v=d<u,g=v?u-d:0;a.setState(function(_,O){return{itemSize:f,visibleItems:d,firstItem:v?a.getFirstItem(O.selectedItem):0,lastPosition:g,showArrows:v}})}}),Mt(Ft(a),"handleClickItem",function(u,l,f){if(!IC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(u,l)}}),Mt(Ft(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Mt(Ft(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Mt(Ft(a),"onSwipeMove",function(u){var l=u.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,d=Tn.Children.count(a.props.children),v=-(a.state.firstItem*100)/a.state.visibleItems,g=Math.max(d-a.state.visibleItems,0),_=-g*100/a.state.visibleItems;v===f&&l>0&&(l=0),v===_&&l<0&&(l=0);var O=a.itemsWrapperRef.clientWidth,m=v+100/(O/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(S){a.itemsListRef.style[S]=(0,oh.default)(m,"%",a.props.axis)}),!0}),Mt(Ft(a),"slideRight",function(u){a.moveTo(a.state.firstItem-(typeof u=="number"?u:1))}),Mt(Ft(a),"slideLeft",function(u){a.moveTo(a.state.firstItem+(typeof u=="number"?u:1))}),Mt(Ft(a),"moveTo",function(u){u=u<0?0:u,u=u>=a.state.lastPosition?a.state.lastPosition:u,a.setState({firstItem:u})}),a.state={selectedItem:o.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return TC(n,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,Ia.default)().addEventListener("resize",this.updateSizes),(0,Ia.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,Ia.default)().removeEventListener("resize",this.updateSizes),(0,Ia.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var u=a;return a>=this.state.lastPosition&&(u=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(u=this.state.firstItem),a<this.state.firstItem&&(u=a),u}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(u,l){var f=Ur.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(g){return a.setThumbsRef(g,l)},className:f,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return Tn.default.createElement("li",Cl({},d,{role:"button",tabIndex:0}),u)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var u=Tn.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},v=-this.state.firstItem*(this.state.itemSize||0),g=(0,oh.default)(v,"px",this.props.axis),_=this.props.transitionTime+"ms";return d={WebkitTransform:g,MozTransform:g,MsTransform:g,OTransform:g,transform:g,msTransform:g,WebkitTransitionDuration:_,MozTransitionDuration:_,MsTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_},Tn.default.createElement("div",{className:Ur.default.CAROUSEL(!1)},Tn.default.createElement("div",{className:Ur.default.WRAPPER(!1),ref:this.setItemsWrapperRef},Tn.default.createElement("button",{type:"button",className:Ur.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),u?Tn.default.createElement(EC.default,{tagName:"ul",className:Ur.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):Tn.default.createElement("ul",{className:Ur.default.SLIDER(!1,this.state.swiping),ref:function(m){return a.setItemsListRef(m)},style:d},this.renderItems()),Tn.default.createElement("button",{type:"button",className:Ur.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),n}(Tn.Component);xo.default=ic;Mt(ic,"displayName","Thumbs");Mt(ic,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var cs={};Object.defineProperty(cs,"__esModule",{value:!0});cs.default=void 0;var LC=function(){return document};cs.default=LC;var tn={};Object.defineProperty(tn,"__esModule",{value:!0});tn.setPosition=tn.getPosition=tn.isKeyboardEvent=tn.defaultStatusFormatter=tn.noop=void 0;var MC=N,DC=kC(Di);function kC(e){return e&&e.__esModule?e:{default:e}}var NC=function(){};tn.noop=NC;var $C=function(r,n){return"".concat(r," of ").concat(n)};tn.defaultStatusFormatter=$C;var jC=function(r){return r?r.hasOwnProperty("key"):!1};tn.isKeyboardEvent=jC;var FC=function(r,n){if(n.infiniteLoop&&++r,r===0)return 0;var o=MC.Children.count(n.children);if(n.centerMode&&n.axis==="horizontal"){var a=-r*n.centerSlidePercentage,u=o-1;return r&&(r!==u||n.infiniteLoop)?a+=(100-n.centerSlidePercentage)/2:r===u&&(a+=100-n.centerSlidePercentage),a}return-r*100};tn.getPosition=FC;var WC=function(r,n){var o={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){o[a]=(0,DC.default)(r,"%",n)}),o};tn.setPosition=WC;var kn={};Object.defineProperty(kn,"__esModule",{value:!0});kn.fadeAnimationHandler=kn.slideStopSwipingHandler=kn.slideSwipeAnimationHandler=kn.slideAnimationHandler=void 0;var Bv=N,HC=UC(Di),Nn=tn;function UC(e){return e&&e.__esModule?e:{default:e}}function sh(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Gr(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?sh(Object(n),!0).forEach(function(o){BC(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function BC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var zC=function(r,n){var o={},a=n.selectedItem,u=a,l=Bv.Children.count(r.children)-1,f=r.infiniteLoop&&(a<0||a>l);if(f)return u<0?r.centerMode&&r.centerSlidePercentage&&r.axis==="horizontal"?o.itemListStyle=(0,Nn.setPosition)(-(l+2)*r.centerSlidePercentage-(100-r.centerSlidePercentage)/2,r.axis):o.itemListStyle=(0,Nn.setPosition)(-(l+2)*100,r.axis):u>l&&(o.itemListStyle=(0,Nn.setPosition)(0,r.axis)),o;var d=(0,Nn.getPosition)(a,r),v=(0,HC.default)(d,"%",r.axis),g=r.transitionTime+"ms";return o.itemListStyle={WebkitTransform:v,msTransform:v,OTransform:v,transform:v},n.swiping||(o.itemListStyle=Gr(Gr({},o.itemListStyle),{},{WebkitTransitionDuration:g,MozTransitionDuration:g,OTransitionDuration:g,transitionDuration:g,msTransitionDuration:g})),o};kn.slideAnimationHandler=zC;var qC=function(r,n,o,a){var u={},l=n.axis==="horizontal",f=Bv.Children.count(n.children),d=0,v=(0,Nn.getPosition)(o.selectedItem,n),g=n.infiniteLoop?(0,Nn.getPosition)(f-1,n)-100:(0,Nn.getPosition)(f-1,n),_=l?r.x:r.y,O=_;v===d&&_>0&&(O=0),v===g&&_<0&&(O=0);var m=v+100/(o.itemSize/O),S=Math.abs(_)>n.swipeScrollTolerance;return n.infiniteLoop&&S&&(o.selectedItem===0&&m>-100?m-=f*100:o.selectedItem===f-1&&m<-f*100&&(m+=f*100)),(!n.preventMovementUntilSwipeScrollTolerance||S||o.swipeMovementStarted)&&(o.swipeMovementStarted||a({swipeMovementStarted:!0}),u.itemListStyle=(0,Nn.setPosition)(m,n.axis)),S&&!o.cancelClick&&a({cancelClick:!0}),u};kn.slideSwipeAnimationHandler=qC;var GC=function(r,n){var o=(0,Nn.getPosition)(n.selectedItem,r),a=(0,Nn.setPosition)(o,r.axis);return{itemListStyle:a}};kn.slideStopSwipingHandler=GC;var KC=function(r,n){var o=r.transitionTime+"ms",a="ease-in-out",u={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return n.swiping||(u=Gr(Gr({},u),{},{WebkitTransitionDuration:o,MozTransitionDuration:o,OTransitionDuration:o,transitionDuration:o,msTransitionDuration:o})),{slideStyle:u,selectedStyle:Gr(Gr({},u),{},{opacity:1,position:"relative"}),prevStyle:Gr({},u)}};kn.fadeAnimationHandler=KC;Object.defineProperty(ss,"__esModule",{value:!0});ss.default=void 0;var qe=VC(N),YC=To(nc),Qn=To(Eo),XC=To(xo),La=To(cs),Ma=To(Oo),io=tn,Va=kn;function To(e){return e&&e.__esModule?e:{default:e}}function zv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return zv=function(){return e},e}function VC(e){if(e&&e.__esModule)return e;if(e===null||uo(e)!=="object"&&typeof e!="function")return{default:e};var r=zv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function uo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?uo=function(n){return typeof n}:uo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uo(e)}function Pl(){return Pl=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pl.apply(this,arguments)}function uh(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Cn(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?uh(Object(n),!0).forEach(function(o){Ie(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uh(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function JC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function lh(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ZC(e,r,n){return r&&lh(e.prototype,r),n&&lh(e,n),e}function QC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Al(e,r)}function Al(e,r){return Al=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},Al(e,r)}function eR(e){var r=nR();return function(){var o=Ja(e),a;if(r){var u=Ja(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return tR(this,a)}}function tR(e,r){return r&&(uo(r)==="object"||typeof r=="function")?r:Me(e)}function Me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ja(e)}function Ie(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var oc=function(e){QC(n,e);var r=eR(n);function n(o){var a;JC(this,n),a=r.call(this,o),Ie(Me(a),"thumbsRef",void 0),Ie(Me(a),"carouselWrapperRef",void 0),Ie(Me(a),"listRef",void 0),Ie(Me(a),"itemsRef",void 0),Ie(Me(a),"timer",void 0),Ie(Me(a),"animationHandler",void 0),Ie(Me(a),"setThumbsRef",function(l){a.thumbsRef=l}),Ie(Me(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Ie(Me(a),"setListRef",function(l){a.listRef=l}),Ie(Me(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),Ie(Me(a),"autoPlay",function(){qe.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Ie(Me(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Ie(Me(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Ie(Me(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Ie(Me(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Ie(Me(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,La.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,La.default)().activeElement)):!1}),Ie(Me(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,d=f==="horizontal",v={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},g=d?v.ArrowRight:v.ArrowDown,_=d?v.ArrowLeft:v.ArrowUp;g===l.keyCode?a.increment():_===l.keyCode&&a.decrement()}}),Ie(Me(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var d=l?f.clientWidth:f.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Ie(Me(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Ie(Me(a),"handleClickItem",function(l,f){if(qe.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,f),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Ie(Me(a),"handleOnChange",function(l,f){qe.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),Ie(Me(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),Ie(Me(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Ie(Me(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Ie(Me(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Me(a)));return a.setState(Cn({},d)),!!Object.keys(d).length}),Ie(Me(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),Ie(Me(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),Ie(Me(a),"moveTo",function(l){if(typeof l=="number"){var f=qe.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?f:0),l>f&&(l=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Ie(Me(a),"onClickNext",function(){a.increment(1)}),Ie(Me(a),"onClickPrev",function(){a.decrement(1)}),Ie(Me(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Ie(Me(a),"changeItem",function(l){return function(f){(!(0,io.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),Ie(Me(a),"selectItem",function(l){a.setState(Cn({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,qe.Children.toArray(a.props.children)[l.selectedItem])}),Ie(Me(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],d=f&&f.getElementsByTagName("img")||[];return d[0]}),Ie(Me(a),"getVariableItemHeight",function(l){var f=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&f&&f.children.length){var d=f.children[0].getElementsByTagName("img")||[];if(d.length>0){var v=d[0];if(!v.complete){var g=function m(){a.forceUpdate(),v.removeEventListener("load",m)};v.addEventListener("load",g)}}var _=d[0]||f.children[0],O=_.clientHeight;return O>0?O:null}return null});var u={initialized:!1,previousItem:o.selectedItem,selectedItem:o.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:o.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof o.animationHandler=="function"&&o.animationHandler||o.animationHandler==="fade"&&Va.fadeAnimationHandler||Va.slideAnimationHandler,a.state=Cn(Cn({},u),a.animationHandler(o,u)),a}return ZC(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,u){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),u.swiping&&!this.state.swiping&&this.setState(Cn({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var a=this;this.bindEvents(),this.state.autoPlay&&qe.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var u=a.getInitialImage();u&&!u.complete?u.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,Ma.default)().addEventListener("resize",this.updateSizes),(0,Ma.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,La.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,Ma.default)().removeEventListener("resize",this.updateSizes),(0,Ma.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,La.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var u=this;return this.props.children?qe.Children.map(this.props.children,function(l,f){var d=f===u.state.selectedItem,v=f===u.state.previousItem,g=d&&u.state.selectedStyle||v&&u.state.prevStyle||u.state.slideStyle||{};u.props.centerMode&&u.props.axis==="horizontal"&&(g=Cn(Cn({},g),{},{minWidth:u.props.centerSlidePercentage+"%"})),u.state.swiping&&u.state.swipeMovementStarted&&(g=Cn(Cn({},g),{},{pointerEvents:"none"}));var _={ref:function(m){return u.setItemsRef(m,f)},key:"itemKey"+f+(a?"clone":""),className:Qn.default.ITEM(!0,f===u.state.selectedItem,f===u.state.previousItem),onClick:u.handleClickItem.bind(u,f,l),style:g};return qe.default.createElement("li",_,u.props.renderItem(l,{isSelected:f===u.state.selectedItem,isPrevious:f===u.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,u=this.props,l=u.showIndicators,f=u.labels,d=u.renderIndicator,v=u.children;return l?qe.default.createElement("ul",{className:"control-dots"},qe.Children.map(v,function(g,_){return d&&d(a.changeItem(_),_===a.state.selectedItem,_,f.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?qe.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,qe.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||qe.Children.count(this.props.children)===0?null:qe.default.createElement(XC.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var a=this;if(!this.props.children||qe.Children.count(this.props.children)===0)return null;var u=this.props.swipeable&&qe.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&qe.Children.count(this.props.children)>1,d=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,v=f&&(this.state.selectedItem<qe.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,g=this.renderItems(!0),_=g.shift(),O=g.pop(),m={className:Qn.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},S={};if(l){if(m.onSwipeLeft=this.onSwipeForward,m.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);S.height=y||"auto"}}else m.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,m.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,m.style=Cn(Cn({},m.style),{},{height:this.state.itemSize}),S.height=this.state.itemSize;return qe.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Qn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},qe.default.createElement("div",{className:Qn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),qe.default.createElement("div",{className:Qn.default.WRAPPER(!0,this.props.axis),style:S},u?qe.default.createElement(YC.default,Pl({tagName:"ul",innerRef:this.setListRef},m,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_):qe.default.createElement("ul",{className:Qn.default.SLIDER(!0,this.state.swiping),ref:function(D){return a.setListRef(D)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_)),this.props.renderArrowNext(this.onClickNext,v,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),n}(qe.default.Component);ss.default=oc;Ie(oc,"displayName","Carousel");Ie(oc,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:io.noop,onClickThumb:io.noop,onChange:io.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(r,n,o){return qe.default.createElement("button",{type:"button","aria-label":o,className:Qn.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,o){return qe.default.createElement("button",{type:"button","aria-label":o,className:Qn.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,o,a){return qe.default.createElement("li",{className:Qn.default.DOT(n),onClick:r,onKeyDown:r,value:o,key:o,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(o+1)})},renderItem:function(r){return r},renderThumbs:function(r){var n=qe.Children.map(r,function(o){var a=o;if(o.type!=="img"&&(a=qe.Children.toArray(o.props.children).find(function(u){return u.type==="img"})),!!a)return a});return n.filter(function(o){return o}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):n},statusFormatter:io.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:Va.slideSwipeAnimationHandler,stopSwipingHandler:Va.slideStopSwipingHandler});var rR={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(ss),n=rR,o=a(xo);function a(u){return u&&u.__esModule?u:{default:u}}})(Fv);const iR=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:qv(e,!0)}),oR=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(Fv.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>$.jsx(iR,{tip:r},r.key))})}),aR=({body:e,isInsideCarousel:r})=>$.jsx("article",{className:Ot(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:$.jsx(qa,{children:e,options:{overrides:{a:{component:({children:n,...o})=>$.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,$.jsx(Fh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),sR=({video:e,body:r,title:n,isInsideCarousel:o})=>$.jsxs("div",{className:Ot([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[$.jsx("div",{className:Ot([{"mr-1":!o,"mb-1":o}]),children:$.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:Ot(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:$.jsx(qa,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>$.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(Fh,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),qv=(e,r)=>{switch(e.type){case Ua.TEXT:return $.jsx(aR,{body:e.body,isInsideCarousel:r});case Ua.VIDEO:return $.jsx(sR,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ua.CAROUSEL:return $.jsx(oR,{pages:e.pages})}},Gv=N.createContext(void 0);function ch(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const uR=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=N.useState({tips:{},show:!0});N.useEffect(()=>{const f=new AbortController;try{fetch(`${n}/tips.json`,{signal:f.signal}).then(d=>d.json()).then(d=>{const v=d.reduce((g,_)=>ch(d,_.key).length>1?{...g,[_.key]:{type:"carousel",pages:ch(d,_.key)}}:{...g,[_.key]:_},{});u(g=>({...g,tips:v}))})}catch{}return()=>{f.abort()}},[]);const l=()=>{u(f=>({...f,show:!a}))};return $.jsx(Gv.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:r},children:e})},Kv=e=>{const r=N.useContext(Gv);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},lR=Ka(sC)`
138
+ */var Qh;function ZR(){return Qh||(Qh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function T(J){return typeof J=="string"||typeof J=="function"||J===i||J===p||J===s||J===a||J===w||J===S||typeof J=="object"&&J!==null&&(J.$$typeof===_||J.$$typeof===v||J.$$typeof===l||J.$$typeof===c||J.$$typeof===h||J.$$typeof===x||J.$$typeof===C||J.$$typeof===P||J.$$typeof===g)}function $(J){if(typeof J=="object"&&J!==null){var st=J.$$typeof;switch(st){case t:var ut=J.type;switch(ut){case d:case p:case i:case s:case a:case w:return ut;default:var yt=ut&&ut.$$typeof;switch(yt){case c:case h:case _:case v:case l:return yt;default:return st}}case r:return st}}}var A=d,D=p,H=c,j=l,V=t,ee=h,ye=i,Re=_,Ee=v,se=r,Fe=s,be=a,Oe=w,Be=!1;function pt(J){return Be||(Be=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(J)||$(J)===d}function Z(J){return $(J)===p}function Y(J){return $(J)===c}function pe(J){return $(J)===l}function oe(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function fe(J){return $(J)===h}function de(J){return $(J)===i}function ue(J){return $(J)===_}function he(J){return $(J)===v}function le(J){return $(J)===r}function we(J){return $(J)===s}function Se(J){return $(J)===a}function Ve(J){return $(J)===w}Ze.AsyncMode=A,Ze.ConcurrentMode=D,Ze.ContextConsumer=H,Ze.ContextProvider=j,Ze.Element=V,Ze.ForwardRef=ee,Ze.Fragment=ye,Ze.Lazy=Re,Ze.Memo=Ee,Ze.Portal=se,Ze.Profiler=Fe,Ze.StrictMode=be,Ze.Suspense=Oe,Ze.isAsyncMode=pt,Ze.isConcurrentMode=Z,Ze.isContextConsumer=Y,Ze.isContextProvider=pe,Ze.isElement=oe,Ze.isForwardRef=fe,Ze.isFragment=de,Ze.isLazy=ue,Ze.isMemo=he,Ze.isPortal=le,Ze.isProfiler=we,Ze.isStrictMode=Se,Ze.isSuspense=Ve,Ze.isValidElementType=T,Ze.typeOf=$}()),Ze}var ev;function Ym(){return ev||(ev=1,process.env.NODE_ENV==="production"?fs.exports=qR():fs.exports=ZR()),fs.exports}var Wl,tv;function Qc(){if(tv)return Wl;tv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wl=e,Wl}var Ul,rv;function Vm(){return rv||(rv=1,Ul=Function.call.bind(Object.prototype.hasOwnProperty)),Ul}var Hl,nv;function GR(){if(nv)return Hl;nv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qc(),r={},i=Vm();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,d,p){if(process.env.NODE_ENV!=="production"){for(var h in s)if(i(s,h)){var w;try{if(typeof s[h]!="function"){var S=Error((d||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}w=s[h](l,h,d,c,null,t)}catch(_){w=_}if(w&&!(w instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof w+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),w instanceof Error&&!(w.message in r)){r[w.message]=!0;var v=p?p():"";e("Failed "+c+" type: "+w.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Hl=a,Hl}var Bl,iv;function KR(){if(iv)return Bl;iv=1;var e=Ym(),t=Dc(),r=Qc(),i=Vm(),a=GR(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Bl=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function w(Z){var Y=Z&&(p&&Z[p]||Z[h]);if(typeof Y=="function")return Y}var S="<<anonymous>>",v={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:P(),arrayOf:T,element:$(),elementType:A(),instanceOf:D,node:ee(),objectOf:j,oneOf:H,oneOfType:V,shape:Re,exact:Ee};function _(Z,Y){return Z===Y?Z!==0||1/Z===1/Y:Z!==Z&&Y!==Y}function g(Z,Y){this.message=Z,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}g.prototype=Error.prototype;function x(Z){if(process.env.NODE_ENV!=="production")var Y={},pe=0;function oe(de,ue,he,le,we,Se,Ve){if(le=le||S,Se=Se||he,Ve!==r){if(d){var J=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var st=le+":"+he;!Y[st]&&pe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Se+"` prop on `"+le+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Y[st]=!0,pe++)}}return ue[he]==null?de?ue[he]===null?new g("The "+we+" `"+Se+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new g("The "+we+" `"+Se+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:Z(ue,he,le,we,Se)}var fe=oe.bind(null,!1);return fe.isRequired=oe.bind(null,!0),fe}function C(Z){function Y(pe,oe,fe,de,ue,he){var le=pe[oe],we=be(le);if(we!==Z){var Se=Oe(le);return new g("Invalid "+de+" `"+ue+"` of type "+("`"+Se+"` supplied to `"+fe+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return x(Y)}function P(){return x(l)}function T(Z){function Y(pe,oe,fe,de,ue){if(typeof Z!="function")return new g("Property `"+ue+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var he=pe[oe];if(!Array.isArray(he)){var le=be(he);return new g("Invalid "+de+" `"+ue+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected an array."))}for(var we=0;we<he.length;we++){var Se=Z(he,we,fe,de,ue+"["+we+"]",r);if(Se instanceof Error)return Se}return null}return x(Y)}function $(){function Z(Y,pe,oe,fe,de){var ue=Y[pe];if(!c(ue)){var he=be(ue);return new g("Invalid "+fe+" `"+de+"` of type "+("`"+he+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return x(Z)}function A(){function Z(Y,pe,oe,fe,de){var ue=Y[pe];if(!e.isValidElementType(ue)){var he=be(ue);return new g("Invalid "+fe+" `"+de+"` of type "+("`"+he+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return x(Z)}function D(Z){function Y(pe,oe,fe,de,ue){if(!(pe[oe]instanceof Z)){var he=Z.name||S,le=pt(pe[oe]);return new g("Invalid "+de+" `"+ue+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected ")+("instance of `"+he+"`."))}return null}return x(Y)}function H(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function Y(pe,oe,fe,de,ue){for(var he=pe[oe],le=0;le<Z.length;le++)if(_(he,Z[le]))return null;var we=JSON.stringify(Z,function(Ve,J){var st=Oe(J);return st==="symbol"?String(J):J});return new g("Invalid "+de+" `"+ue+"` of value `"+String(he)+"` "+("supplied to `"+fe+"`, expected one of "+we+"."))}return x(Y)}function j(Z){function Y(pe,oe,fe,de,ue){if(typeof Z!="function")return new g("Property `"+ue+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var he=pe[oe],le=be(he);if(le!=="object")return new g("Invalid "+de+" `"+ue+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected an object."));for(var we in he)if(i(he,we)){var Se=Z(he,we,fe,de,ue+"."+we,r);if(Se instanceof Error)return Se}return null}return x(Y)}function V(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Y=0;Y<Z.length;Y++){var pe=Z[Y];if(typeof pe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Be(pe)+" at index "+Y+"."),l}function oe(fe,de,ue,he,le){for(var we=[],Se=0;Se<Z.length;Se++){var Ve=Z[Se],J=Ve(fe,de,ue,he,le,r);if(J==null)return null;J.data&&i(J.data,"expectedType")&&we.push(J.data.expectedType)}var st=we.length>0?", expected one of type ["+we.join(", ")+"]":"";return new g("Invalid "+he+" `"+le+"` supplied to "+("`"+ue+"`"+st+"."))}return x(oe)}function ee(){function Z(Y,pe,oe,fe,de){return se(Y[pe])?null:new g("Invalid "+fe+" `"+de+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return x(Z)}function ye(Z,Y,pe,oe,fe){return new g((Z||"React class")+": "+Y+" type `"+pe+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function Re(Z){function Y(pe,oe,fe,de,ue){var he=pe[oe],le=be(he);if(le!=="object")return new g("Invalid "+de+" `"+ue+"` of type `"+le+"` "+("supplied to `"+fe+"`, expected `object`."));for(var we in Z){var Se=Z[we];if(typeof Se!="function")return ye(fe,de,ue,we,Oe(Se));var Ve=Se(he,we,fe,de,ue+"."+we,r);if(Ve)return Ve}return null}return x(Y)}function Ee(Z){function Y(pe,oe,fe,de,ue){var he=pe[oe],le=be(he);if(le!=="object")return new g("Invalid "+de+" `"+ue+"` of type `"+le+"` "+("supplied to `"+fe+"`, expected `object`."));var we=t({},pe[oe],Z);for(var Se in we){var Ve=Z[Se];if(i(Z,Se)&&typeof Ve!="function")return ye(fe,de,ue,Se,Oe(Ve));if(!Ve)return new g("Invalid "+de+" `"+ue+"` key `"+Se+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(pe[oe],null," ")+`
139
+ Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var J=Ve(he,Se,fe,de,ue+"."+Se,r);if(J)return J}return null}return x(Y)}function se(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(se);if(Z===null||c(Z))return!0;var Y=w(Z);if(Y){var pe=Y.call(Z),oe;if(Y!==Z.entries){for(;!(oe=pe.next()).done;)if(!se(oe.value))return!1}else for(;!(oe=pe.next()).done;){var fe=oe.value;if(fe&&!se(fe[1]))return!1}}else return!1;return!0;default:return!1}}function Fe(Z,Y){return Z==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function be(Z){var Y=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":Fe(Y,Z)?"symbol":Y}function Oe(Z){if(typeof Z>"u"||Z===null)return""+Z;var Y=be(Z);if(Y==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Y}function Be(Z){var Y=Oe(Z);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function pt(Z){return!Z.constructor||!Z.constructor.name?S:Z.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},Bl}var zl,ov;function YR(){if(ov)return zl;ov=1;var e=Qc();function t(){}function r(){}return r.resetWarningCache=t,zl=function(){function i(l,c,d,p,h,w){if(w!==e){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}i.isRequired=i;function a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},zl}var av;function VR(){if(av)return cs.exports;if(av=1,process.env.NODE_ENV!=="production"){var e=Ym(),t=!0;cs.exports=KR()(e.isElement,t)}else cs.exports=YR()();return cs.exports}var sv;function XR(){return sv||(sv=1,function(e){(function(t,r){r(e,N,VR())})(mi,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=_;var a=l(r),s=l(i);function l(P){return P&&P.__esModule?P:{default:P}}var c=Object.assign||function(P){for(var T=1;T<arguments.length;T++){var $=arguments[T];for(var A in $)Object.prototype.hasOwnProperty.call($,A)&&(P[A]=$[A])}return P};function d(P,T){var $={};for(var A in P)T.indexOf(A)>=0||Object.prototype.hasOwnProperty.call(P,A)&&($[A]=P[A]);return $}function p(P,T){if(!(P instanceof T))throw new TypeError("Cannot call a class as a function")}var h=function(){function P(T,$){for(var A=0;A<$.length;A++){var D=$[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(T,D.key,D)}}return function(T,$,A){return $&&P(T.prototype,$),A&&P(T,A),T}}();function w(P,T){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:P}function S(P,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);P.prototype=Object.create(T&&T.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(P,T):P.__proto__=T)}var v=!1;function _(P){v=P}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){_(!0)}}))}catch{}function g(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?P:P.capture}function x(P){if("touches"in P){var T=P.touches[0],$=T.pageX,A=T.pageY;return{x:$,y:A}}var D=P.screenX,H=P.screenY;return{x:D,y:H}}var C=function(P){S(T,P);function T(){var $;p(this,T);for(var A=arguments.length,D=Array(A),H=0;H<A;H++)D[H]=arguments[H];var j=w(this,($=T.__proto__||Object.getPrototypeOf(T)).call.apply($,[this].concat(D)));return j._handleSwipeStart=j._handleSwipeStart.bind(j),j._handleSwipeMove=j._handleSwipeMove.bind(j),j._handleSwipeEnd=j._handleSwipeEnd.bind(j),j._onMouseDown=j._onMouseDown.bind(j),j._onMouseMove=j._onMouseMove.bind(j),j._onMouseUp=j._onMouseUp.bind(j),j._setSwiperRef=j._setSwiperRef.bind(j),j}return h(T,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,g({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,g({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(A){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(A))}},{key:"_onMouseMove",value:function(A){this.mouseDown&&this._handleSwipeMove(A)}},{key:"_onMouseUp",value:function(A){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(A)}},{key:"_handleSwipeStart",value:function(A){var D=x(A),H=D.x,j=D.y;this.moveStart={x:H,y:j},this.props.onSwipeStart(A)}},{key:"_handleSwipeMove",value:function(A){if(this.moveStart){var D=x(A),H=D.x,j=D.y,V=H-this.moveStart.x,ee=j-this.moveStart.y;this.moving=!0;var ye=this.props.onSwipeMove({x:V,y:ee},A);ye&&A.cancelable&&A.preventDefault(),this.movePosition={deltaX:V,deltaY:ee}}}},{key:"_handleSwipeEnd",value:function(A){this.props.onSwipeEnd(A);var D=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-D?this.props.onSwipeLeft(1,A):this.movePosition.deltaX>D&&this.props.onSwipeRight(1,A),this.movePosition.deltaY<-D?this.props.onSwipeUp(1,A):this.movePosition.deltaY>D&&this.props.onSwipeDown(1,A)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(A){this.swiper=A,this.props.innerRef(A)}},{key:"render",value:function(){var A=this.props;A.tagName;var D=A.className,H=A.style,j=A.children;A.allowMouseEvents,A.onSwipeUp,A.onSwipeDown,A.onSwipeLeft,A.onSwipeRight,A.onSwipeStart,A.onSwipeMove,A.onSwipeEnd,A.innerRef,A.tolerance;var V=d(A,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:D,style:H},V),j)}}]),T}(r.Component);C.displayName="ReactSwipe",C.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},C.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=C})}(jl)),jl}(function(e){(function(t,r){r(e,XR())})(mi,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=a(r);function a(s){return s&&s.__esModule?s:{default:s}}t.default=i.default})})(Jc);var ia={};Object.defineProperty(ia,"__esModule",{value:!0});ia.default=void 0;var kn=JR(Vv);function JR(e){return e&&e.__esModule?e:{default:e}}function QR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eC={ROOT:function(t){return(0,kn.default)(QR({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,kn.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,r){return(0,kn.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":r==="horizontal","axis-vertical":r!=="horizontal"})},SLIDER:function(t,r){return(0,kn.default)({thumbs:!t,slider:t,animated:!r})},ITEM:function(t,r,i){return(0,kn.default)({thumb:!t,slide:t,selected:r,previous:i})},ARROW_PREV:function(t){return(0,kn.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,kn.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,kn.default)({dot:!0,selected:t})}};ia.default=eC;var oa={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.outerWidth=void 0;var tC=function(t){var r=t.offsetWidth,i=getComputedStyle(t);return r+=parseInt(i.marginLeft)+parseInt(i.marginRight),r};Ys.outerWidth=tC;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var rC=function(t,r,i){var a=t===0?t:t+r,s=i==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",c="("+s.join(",")+")";return l+c};lo.default=rC;var aa={};Object.defineProperty(aa,"__esModule",{value:!0});aa.default=void 0;var nC=function(){return window};aa.default=nC;Object.defineProperty(oa,"__esModule",{value:!0});oa.default=void 0;var Hr=aC(N),hi=Vs(ia),iC=Ys,uv=Vs(lo),oC=Vs(Jc),ds=Vs(aa);function Vs(e){return e&&e.__esModule?e:{default:e}}function Xm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Xm=function(){return e},e}function aC(e){if(e&&e.__esModule)return e;if(e===null||Wo(e)!=="object"&&typeof e!="function")return{default:e};var t=Xm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Wo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wo=function(r){return typeof r}:Wo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wo(e)}function wc(){return wc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},wc.apply(this,arguments)}function sC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lv(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function uC(e,t,r){return t&&lv(e.prototype,t),r&&lv(e,r),e}function lC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bc(e,t)}function bc(e,t){return bc=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},bc(e,t)}function cC(e){var t=dC();return function(){var i=Ms(e),a;if(t){var s=Ms(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return fC(this,a)}}function fC(e,t){return t&&(Wo(t)==="object"||typeof t=="function")?t:Qt(e)}function Qt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ms(e)}function qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pC=function(t){return t.hasOwnProperty("key")},ef=function(e){lC(r,e);var t=cC(r);function r(i){var a;return sC(this,r),a=t.call(this,i),qt(Qt(a),"itemsWrapperRef",void 0),qt(Qt(a),"itemsListRef",void 0),qt(Qt(a),"thumbsRef",void 0),qt(Qt(a),"setItemsWrapperRef",function(s){a.itemsWrapperRef=s}),qt(Qt(a),"setItemsListRef",function(s){a.itemsListRef=s}),qt(Qt(a),"setThumbsRef",function(s,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=s}),qt(Qt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var s=Hr.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,c=a.props.thumbWidth?a.props.thumbWidth:(0,iC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/c),p=d<s,h=p?s-d:0;a.setState(function(w,S){return{itemSize:c,visibleItems:d,firstItem:p?a.getFirstItem(S.selectedItem):0,lastPosition:h,showArrows:p}})}}),qt(Qt(a),"handleClickItem",function(s,l,c){if(!pC(c)||c.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(s,l)}}),qt(Qt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),qt(Qt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),qt(Qt(a),"onSwipeMove",function(s){var l=s.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var c=0,d=Hr.Children.count(a.props.children),p=-(a.state.firstItem*100)/a.state.visibleItems,h=Math.max(d-a.state.visibleItems,0),w=-h*100/a.state.visibleItems;p===c&&l>0&&(l=0),p===w&&l<0&&(l=0);var S=a.itemsWrapperRef.clientWidth,v=p+100/(S/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(_){a.itemsListRef.style[_]=(0,uv.default)(v,"%",a.props.axis)}),!0}),qt(Qt(a),"slideRight",function(s){a.moveTo(a.state.firstItem-(typeof s=="number"?s:1))}),qt(Qt(a),"slideLeft",function(s){a.moveTo(a.state.firstItem+(typeof s=="number"?s:1))}),qt(Qt(a),"moveTo",function(s){s=s<0?0:s,s=s>=a.state.lastPosition?a.state.lastPosition:s,a.setState({firstItem:s})}),a.state={selectedItem:i.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return uC(r,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,ds.default)().addEventListener("resize",this.updateSizes),(0,ds.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,ds.default)().removeEventListener("resize",this.updateSizes),(0,ds.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var s=a;return a>=this.state.lastPosition&&(s=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(s=this.state.firstItem),a<this.state.firstItem&&(s=a),s}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(s,l){var c=hi.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(h){return a.setThumbsRef(h,l)},className:c,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return Hr.default.createElement("li",wc({},d,{role:"button",tabIndex:0}),s)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var s=Hr.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,c=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},p=-this.state.firstItem*(this.state.itemSize||0),h=(0,uv.default)(p,"px",this.props.axis),w=this.props.transitionTime+"ms";return d={WebkitTransform:h,MozTransform:h,MsTransform:h,OTransform:h,transform:h,msTransform:h,WebkitTransitionDuration:w,MozTransitionDuration:w,MsTransitionDuration:w,OTransitionDuration:w,transitionDuration:w,msTransitionDuration:w},Hr.default.createElement("div",{className:hi.default.CAROUSEL(!1)},Hr.default.createElement("div",{className:hi.default.WRAPPER(!1),ref:this.setItemsWrapperRef},Hr.default.createElement("button",{type:"button",className:hi.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),s?Hr.default.createElement(oC.default,{tagName:"ul",className:hi.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):Hr.default.createElement("ul",{className:hi.default.SLIDER(!1,this.state.swiping),ref:function(v){return a.setItemsListRef(v)},style:d},this.renderItems()),Hr.default.createElement("button",{type:"button",className:hi.default.ARROW_NEXT(!c),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),r}(Hr.Component);oa.default=ef;qt(ef,"displayName","Thumbs");qt(ef,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=void 0;var hC=function(){return document};Xs.default=hC;var vr={};Object.defineProperty(vr,"__esModule",{value:!0});vr.setPosition=vr.getPosition=vr.isKeyboardEvent=vr.defaultStatusFormatter=vr.noop=void 0;var vC=N,mC=gC(lo);function gC(e){return e&&e.__esModule?e:{default:e}}var yC=function(){};vr.noop=yC;var wC=function(t,r){return"".concat(t," of ").concat(r)};vr.defaultStatusFormatter=wC;var bC=function(t){return t?t.hasOwnProperty("key"):!1};vr.isKeyboardEvent=bC;var SC=function(t,r){if(r.infiniteLoop&&++t,t===0)return 0;var i=vC.Children.count(r.children);if(r.centerMode&&r.axis==="horizontal"){var a=-t*r.centerSlidePercentage,s=i-1;return t&&(t!==s||r.infiniteLoop)?a+=(100-r.centerSlidePercentage)/2:t===s&&(a+=100-r.centerSlidePercentage),a}return-t*100};vr.getPosition=SC;var EC=function(t,r){var i={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){i[a]=(0,mC.default)(t,"%",r)}),i};vr.setPosition=EC;var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.fadeAnimationHandler=Qr.slideStopSwipingHandler=Qr.slideSwipeAnimationHandler=Qr.slideAnimationHandler=void 0;var Jm=N,_C=xC(lo),en=vr;function xC(e){return e&&e.__esModule?e:{default:e}}function cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function yi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(r),!0).forEach(function(i){OC(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function OC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var AC=function(t,r){var i={},a=r.selectedItem,s=a,l=Jm.Children.count(t.children)-1,c=t.infiniteLoop&&(a<0||a>l);if(c)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?i.itemListStyle=(0,en.setPosition)(-(l+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):i.itemListStyle=(0,en.setPosition)(-(l+2)*100,t.axis):s>l&&(i.itemListStyle=(0,en.setPosition)(0,t.axis)),i;var d=(0,en.getPosition)(a,t),p=(0,_C.default)(d,"%",t.axis),h=t.transitionTime+"ms";return i.itemListStyle={WebkitTransform:p,msTransform:p,OTransform:p,transform:p},r.swiping||(i.itemListStyle=yi(yi({},i.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),i};Qr.slideAnimationHandler=AC;var TC=function(t,r,i,a){var s={},l=r.axis==="horizontal",c=Jm.Children.count(r.children),d=0,p=(0,en.getPosition)(i.selectedItem,r),h=r.infiniteLoop?(0,en.getPosition)(c-1,r)-100:(0,en.getPosition)(c-1,r),w=l?t.x:t.y,S=w;p===d&&w>0&&(S=0),p===h&&w<0&&(S=0);var v=p+100/(i.itemSize/S),_=Math.abs(w)>r.swipeScrollTolerance;return r.infiniteLoop&&_&&(i.selectedItem===0&&v>-100?v-=c*100:i.selectedItem===c-1&&v<-c*100&&(v+=c*100)),(!r.preventMovementUntilSwipeScrollTolerance||_||i.swipeMovementStarted)&&(i.swipeMovementStarted||a({swipeMovementStarted:!0}),s.itemListStyle=(0,en.setPosition)(v,r.axis)),_&&!i.cancelClick&&a({cancelClick:!0}),s};Qr.slideSwipeAnimationHandler=TC;var RC=function(t,r){var i=(0,en.getPosition)(r.selectedItem,t),a=(0,en.setPosition)(i,t.axis);return{itemListStyle:a}};Qr.slideStopSwipingHandler=RC;var CC=function(t,r){var i=t.transitionTime+"ms",a="ease-in-out",s={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return r.swiping||(s=yi(yi({},s),{},{WebkitTransitionDuration:i,MozTransitionDuration:i,OTransitionDuration:i,transitionDuration:i,msTransitionDuration:i})),{slideStyle:s,selectedStyle:yi(yi({},s),{},{opacity:1,position:"relative"}),prevStyle:yi({},s)}};Qr.fadeAnimationHandler=CC;Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=void 0;var Ke=MC(N),PC=sa(Jc),wn=sa(ia),IC=sa(oa),ps=sa(Xs),hs=sa(aa),$o=vr,Fs=Qr;function sa(e){return e&&e.__esModule?e:{default:e}}function Qm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Qm=function(){return e},e}function MC(e){if(e&&e.__esModule)return e;if(e===null||Uo(e)!=="object"&&typeof e!="function")return{default:e};var t=Qm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Uo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Uo=function(r){return typeof r}:Uo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Uo(e)}function Sc(){return Sc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Sc.apply(this,arguments)}function fv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fv(Object(r),!0).forEach(function(i){Me(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fv(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function FC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dv(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function LC(e,t,r){return t&&dv(e.prototype,t),r&&dv(e,r),e}function $C(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ec(e,t)}function Ec(e,t){return Ec=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Ec(e,t)}function DC(e){var t=kC();return function(){var i=Ls(e),a;if(t){var s=Ls(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return NC(this,a)}}function NC(e,t){return t&&(Uo(t)==="object"||typeof t=="function")?t:Le(e)}function Le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}function Me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tf=function(e){$C(r,e);var t=DC(r);function r(i){var a;FC(this,r),a=t.call(this,i),Me(Le(a),"thumbsRef",void 0),Me(Le(a),"carouselWrapperRef",void 0),Me(Le(a),"listRef",void 0),Me(Le(a),"itemsRef",void 0),Me(Le(a),"timer",void 0),Me(Le(a),"animationHandler",void 0),Me(Le(a),"setThumbsRef",function(l){a.thumbsRef=l}),Me(Le(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Me(Le(a),"setListRef",function(l){a.listRef=l}),Me(Le(a),"setItemsRef",function(l,c){a.itemsRef||(a.itemsRef=[]),a.itemsRef[c]=l}),Me(Le(a),"autoPlay",function(){Ke.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Me(Le(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Me(Le(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Me(Le(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Me(Le(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Me(Le(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,ps.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,ps.default)().activeElement)):!1}),Me(Le(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var c=a.props.axis,d=c==="horizontal",p={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},h=d?p.ArrowRight:p.ArrowDown,w=d?p.ArrowLeft:p.ArrowUp;h===l.keyCode?a.increment():w===l.keyCode&&a.decrement()}}),Me(Le(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",c=a.itemsRef[0];if(c){var d=l?c.clientWidth:c.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Me(Le(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Me(Le(a),"handleClickItem",function(l,c){if(Ke.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,c),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Me(Le(a),"handleOnChange",function(l,c){Ke.Children.count(a.props.children)<=1||a.props.onChange(l,c)}),Me(Le(a),"handleClickThumb",function(l,c){a.props.onClickThumb(l,c),a.moveTo(l)}),Me(Le(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Me(Le(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Me(Le(a),"onSwipeMove",function(l,c){a.props.onSwipeMove(c);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Le(a)));return a.setState(Br({},d)),!!Object.keys(d).length}),Me(Le(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),Me(Le(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),Me(Le(a),"moveTo",function(l){if(typeof l=="number"){var c=Ke.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?c:0),l>c&&(l=a.props.infiniteLoop?0:c),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Me(Le(a),"onClickNext",function(){a.increment(1)}),Me(Le(a),"onClickPrev",function(){a.decrement(1)}),Me(Le(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Me(Le(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Me(Le(a),"changeItem",function(l){return function(c){(!(0,$o.isKeyboardEvent)(c)||c.key==="Enter")&&a.moveTo(l)}}),Me(Le(a),"selectItem",function(l){a.setState(Br({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,Ke.Children.toArray(a.props.children)[l.selectedItem])}),Me(Le(a),"getInitialImage",function(){var l=a.props.selectedItem,c=a.itemsRef&&a.itemsRef[l],d=c&&c.getElementsByTagName("img")||[];return d[0]}),Me(Le(a),"getVariableItemHeight",function(l){var c=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&c&&c.children.length){var d=c.children[0].getElementsByTagName("img")||[];if(d.length>0){var p=d[0];if(!p.complete){var h=function v(){a.forceUpdate(),p.removeEventListener("load",v)};p.addEventListener("load",h)}}var w=d[0]||c.children[0],S=w.clientHeight;return S>0?S:null}return null});var s={initialized:!1,previousItem:i.selectedItem,selectedItem:i.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:i.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof i.animationHandler=="function"&&i.animationHandler||i.animationHandler==="fade"&&Fs.fadeAnimationHandler||Fs.slideAnimationHandler,a.state=Br(Br({},s),a.animationHandler(i,s)),a}return LC(r,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,s){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(Br({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var a=this;this.bindEvents(),this.state.autoPlay&&Ke.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var s=a.getInitialImage();s&&!s.complete?s.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,hs.default)().addEventListener("resize",this.updateSizes),(0,hs.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,ps.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,hs.default)().removeEventListener("resize",this.updateSizes),(0,hs.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,ps.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var s=this;return this.props.children?Ke.Children.map(this.props.children,function(l,c){var d=c===s.state.selectedItem,p=c===s.state.previousItem,h=d&&s.state.selectedStyle||p&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(h=Br(Br({},h),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(h=Br(Br({},h),{},{pointerEvents:"none"}));var w={ref:function(v){return s.setItemsRef(v,c)},key:"itemKey"+c+(a?"clone":""),className:wn.default.ITEM(!0,c===s.state.selectedItem,c===s.state.previousItem),onClick:s.handleClickItem.bind(s,c,l),style:h};return Ke.default.createElement("li",w,s.props.renderItem(l,{isSelected:c===s.state.selectedItem,isPrevious:c===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,s=this.props,l=s.showIndicators,c=s.labels,d=s.renderIndicator,p=s.children;return l?Ke.default.createElement("ul",{className:"control-dots"},Ke.Children.map(p,function(h,w){return d&&d(a.changeItem(w),w===a.state.selectedItem,w,c.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?Ke.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,Ke.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||Ke.Children.count(this.props.children)===0?null:Ke.default.createElement(IC.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var a=this;if(!this.props.children||Ke.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&Ke.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",c=this.props.showArrows&&Ke.Children.count(this.props.children)>1,d=c&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,p=c&&(this.state.selectedItem<Ke.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,h=this.renderItems(!0),w=h.shift(),S=h.pop(),v={className:wn.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},_={};if(l){if(v.onSwipeLeft=this.onSwipeForward,v.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var g=this.getVariableItemHeight(this.state.selectedItem);_.height=g||"auto"}}else v.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,v.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,v.style=Br(Br({},v.style),{},{height:this.state.itemSize}),_.height=this.state.itemSize;return Ke.default.createElement("div",{"aria-label":this.props.ariaLabel,className:wn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},Ke.default.createElement("div",{className:wn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),Ke.default.createElement("div",{className:wn.default.WRAPPER(!0,this.props.axis),style:_},s?Ke.default.createElement(PC.default,Sc({tagName:"ul",innerRef:this.setListRef},v,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&S,this.renderItems(),this.props.infiniteLoop&&w):Ke.default.createElement("ul",{className:wn.default.SLIDER(!0,this.state.swiping),ref:function(C){return a.setListRef(C)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&S,this.renderItems(),this.props.infiniteLoop&&w)),this.props.renderArrowNext(this.onClickNext,p,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),r}(Ke.default.Component);Ks.default=tf;Me(tf,"displayName","Carousel");Me(tf,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:$o.noop,onClickThumb:$o.noop,onChange:$o.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(t,r,i){return Ke.default.createElement("button",{type:"button","aria-label":i,className:wn.default.ARROW_PREV(!r),onClick:t})},renderArrowNext:function(t,r,i){return Ke.default.createElement("button",{type:"button","aria-label":i,className:wn.default.ARROW_NEXT(!r),onClick:t})},renderIndicator:function(t,r,i,a){return Ke.default.createElement("li",{className:wn.default.DOT(r),onClick:t,onKeyDown:t,value:i,key:i,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(i+1)})},renderItem:function(t){return t},renderThumbs:function(t){var r=Ke.Children.map(t,function(i){var a=i;if(i.type!=="img"&&(a=Ke.Children.toArray(i.props.children).find(function(s){return s.type==="img"})),!!a)return a});return r.filter(function(i){return i}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):r},statusFormatter:$o.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:Fs.slideSwipeAnimationHandler,stopSwipingHandler:Fs.slideStopSwipingHandler});var jC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=a(Ks),r=jC,i=a(oa);function a(s){return s&&s.__esModule?s:{default:s}}})(Km);const WC=({tip:e})=>k.jsx("div",{className:"px-8 pb-8",children:eg(e,!0)}),UC=({pages:e})=>k.jsx("div",{className:"min-h-[10rem] w-96",children:k.jsx(Km.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>k.jsx(WC,{tip:t},t.key))})}),HC=({body:e,isInsideCarousel:t})=>k.jsx("article",{className:Dt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:k.jsx(Rs,{children:e,options:{overrides:{a:{component:({children:r,...i})=>k.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,k.jsx(Kv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),BC=({video:e,body:t,title:r,isInsideCarousel:i})=>k.jsxs("div",{className:Dt([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[k.jsx("div",{className:Dt([{"mr-1":!i,"mb-1":i}]),children:k.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),k.jsx("article",{className:Dt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:k.jsx(Rs,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>k.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,k.jsx(Kv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),eg=(e,t)=>{switch(e.type){case xs.TEXT:return k.jsx(HC,{body:e.body,isInsideCarousel:t});case xs.VIDEO:return k.jsx(BC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case xs.CAROUSEL:return k.jsx(UC,{pages:e.pages})}},tg=N.createContext(void 0);function pv(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const zC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=N.useState({tips:{},show:!0});N.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(d=>d.json()).then(d=>{const p=d.reduce((h,w)=>pv(d,w.key).length>1?{...h,[w.key]:{type:"carousel",pages:pv(d,w.key)}}:{...h,[w.key]:w},{});s(h=>({...h,tips:p}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!a}))};return k.jsx(tg.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},rg=e=>{const t=N.useContext(tg);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},qC=Ps(BR)`
142
140
  &[data-state='open'] > * {
143
141
  display: block !important;
144
142
  }
145
- `,cR=({tipKey:e,side:r="right",alwaysOn:n,asButton:o=!1})=>{const{tip:a,enabled:u}=Kv(e),[l,f]=N.useState(!1),d=N.useRef(null);return N.useEffect(()=>{if(d.current){const v=new IntersectionObserver(g=>{g[0].isIntersecting||f(!1)});return v.observe(d.current),()=>{d.current&&v.unobserve(d.current)}}},[]),a&&u?$.jsxs(aC,{open:l,onOpenChange:f,children:[$.jsx(lR,{ref:d,className:Ot("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":o}),onClick:v=>v.stopPropagation(),children:$.jsx("span",{className:Ot("group-hover:block",{hidden:!n}),children:$.jsx(CE,{className:"h-4 w-4 text-yellow-300"})})}),$.jsx(uC,{side:r,sideOffset:5,children:$.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:qv(a)})})]}):null};var fR=Object.defineProperty,dR=(e,r,n)=>r in e?fR(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,tl=(e,r,n)=>(dR(e,typeof r!="symbol"?r+"":r,n),n);let pR=class{constructor(){tl(this,"current",this.detect()),tl(this,"handoffState","pending"),tl(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ci=new pR,Wn=(e,r)=>{Ci.isServer?N.useEffect(e,r):N.useLayoutEffect(e,r)};function Ri(e){let r=N.useRef(e);return Wn(()=>{r.current=e},[e]),r}function hR(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function Co(){let e=[],r={addEventListener(n,o,a,u){return n.addEventListener(o,a,u),r.add(()=>n.removeEventListener(o,a,u))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return r.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return hR(()=>{o.current&&n[0]()}),r.add(()=>{o.current=!1})},style(n,o,a){let u=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:a}),this.add(()=>{Object.assign(n.style,{[o]:u})})},group(n){let o=Co();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let a of e.splice(o,1))a()}},dispose(){for(let n of e.splice(0))n()}};return r}function ac(){let[e]=N.useState(Co);return N.useEffect(()=>()=>e.dispose(),[e]),e}let Dt=function(e){let r=Ri(e);return N.useCallback((...n)=>r.current(...n),[r])};function vR(){let e=typeof document>"u";return"useSyncExternalStore"in L?(r=>r.useSyncExternalStore)(L)(()=>()=>{},()=>!1,()=>!e):!1}function sc(){let e=vR(),[r,n]=L.useState(Ci.isHandoffComplete);return r&&Ci.isHandoffComplete===!1&&n(!1),L.useEffect(()=>{r!==!0&&n(!0)},[r]),L.useEffect(()=>Ci.handoff(),[]),e?!1:r}var fh;let uc=(fh=N.useId)!=null?fh:function(){let e=sc(),[r,n]=N.useState(e?()=>Ci.nextId():null);return Wn(()=>{r===null&&n(Ci.nextId())},[r]),r!=null?""+r:void 0};function $n(e,r,...n){if(e in r){let a=r[e];return typeof a=="function"?a(...n):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,$n),o}function dh(e){var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function mR(e,r){let[n,o]=N.useState(()=>dh(e));return Wn(()=>{o(dh(e))},[e.type,e.as]),Wn(()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")},[n,r]),n}let gR=Symbol();function Ro(...e){let r=N.useRef(e);N.useEffect(()=>{r.current=e},[e]);let n=Dt(o=>{for(let a of r.current)a!=null&&(typeof a=="function"?a(o):a.current=o)});return e.every(o=>o==null||(o==null?void 0:o[gR]))?void 0:n}function Za(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}var Yv=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Yv||{}),wr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(wr||{});function ei({ourProps:e,theirProps:r,slot:n,defaultTag:o,features:a,visible:u=!0,name:l}){let f=Xv(r,e);if(u)return Da(f,n,o,l);let d=a??0;if(d&2){let{static:v=!1,...g}=f;if(v)return Da(g,n,o,l)}if(d&1){let{unmount:v=!0,...g}=f;return $n(v?0:1,{0(){return null},1(){return Da({...g,hidden:!0,style:{display:"none"}},n,o,l)}})}return Da(f,n,o,l)}function Da(e,r={},n,o){let{as:a=n,children:u,refName:l="ref",...f}=nl(e,["unmount","static"]),d=e.ref!==void 0?{[l]:e.ref}:{},v=typeof u=="function"?u(r):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(r));let g={};if(r){let _=!1,O=[];for(let[m,S]of Object.entries(r))typeof S=="boolean"&&(_=!0),S===!0&&O.push(m);_&&(g["data-headlessui-state"]=O.join(" "))}if(a===N.Fragment&&Object.keys(Il(f)).length>0){if(!N.isValidElement(v)||Array.isArray(v)&&v.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(S=>` - ${S}`).join(`
146
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(`
143
+ `,ZC=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=rg(e),[l,c]=N.useState(!1),d=N.useRef(null);return N.useEffect(()=>{if(d.current){const p=new IntersectionObserver(h=>{h[0].isIntersecting||c(!1)});return p.observe(d.current),()=>{d.current&&p.unobserve(d.current)}}},[]),a&&s?k.jsxs(HR,{open:l,onOpenChange:c,children:[k.jsx(qC,{ref:d,className:Dt("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:p=>p.stopPropagation(),children:k.jsx("span",{className:Dt("group-hover:block",{hidden:!r}),children:k.jsx(lO,{className:"h-4 w-4 text-yellow-300"})})}),k.jsx(zR,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:k.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:eg(a)})})]}):null};var GC=Object.defineProperty,KC=(e,t,r)=>t in e?GC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ql=(e,t,r)=>(KC(e,typeof t!="symbol"?t+"":t,r),r);let YC=class{constructor(){ql(this,"current",this.detect()),ql(this,"handoffState","pending"),ql(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},to=new YC,on=(e,t)=>{to.isServer?N.useEffect(e,t):N.useLayoutEffect(e,t)};function ro(e){let t=N.useRef(e);return on(()=>{t.current=e},[e]),t}function VC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ua(){let e=[],t={addEventListener(r,i,a,s){return r.addEventListener(i,a,s),t.add(()=>r.removeEventListener(i,a,s))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return VC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,a){let s=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:a}),this.add(()=>{Object.assign(r.style,{[i]:s})})},group(r){let i=ua();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let a of e.splice(i,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function rf(){let[e]=N.useState(ua);return N.useEffect(()=>()=>e.dispose(),[e]),e}let Gt=function(e){let t=ro(e);return N.useCallback((...r)=>t.current(...r),[t])};function XC(){let e=typeof document>"u";return"useSyncExternalStore"in F?(t=>t.useSyncExternalStore)(F)(()=>()=>{},()=>!1,()=>!e):!1}function nf(){let e=XC(),[t,r]=F.useState(to.isHandoffComplete);return t&&to.isHandoffComplete===!1&&r(!1),F.useEffect(()=>{t!==!0&&r(!0)},[t]),F.useEffect(()=>to.handoff(),[]),e?!1:t}var hv;let of=(hv=N.useId)!=null?hv:function(){let e=nf(),[t,r]=N.useState(e?()=>to.nextId():null);return on(()=>{t===null&&r(to.nextId())},[t]),t!=null?""+t:void 0};function tn(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,tn),i}function vv(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function JC(e,t){let[r,i]=N.useState(()=>vv(e));return on(()=>{i(vv(e))},[e.type,e.as]),on(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let QC=Symbol();function la(...e){let t=N.useRef(e);N.useEffect(()=>{t.current=e},[e]);let r=Gt(i=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[QC]))?void 0:r}function $s(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var ng=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ng||{}),Bn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Bn||{});function Ri({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:a,visible:s=!0,name:l}){let c=ig(t,e);if(s)return vs(c,r,i,l);let d=a??0;if(d&2){let{static:p=!1,...h}=c;if(p)return vs(h,r,i,l)}if(d&1){let{unmount:p=!0,...h}=c;return tn(p?0:1,{0(){return null},1(){return vs({...h,hidden:!0,style:{display:"none"}},r,i,l)}})}return vs(c,r,i,l)}function vs(e,t={},r,i){let{as:a=r,children:s,refName:l="ref",...c}=Zl(e,["unmount","static"]),d=e.ref!==void 0?{[l]:e.ref}:{},p=typeof s=="function"?s(t):s;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let h={};if(t){let w=!1,S=[];for(let[v,_]of Object.entries(t))typeof _=="boolean"&&(w=!0),_===!0&&S.push(v);w&&(h["data-headlessui-state"]=S.join(" "))}if(a===N.Fragment&&Object.keys(_c(c)).length>0){if(!N.isValidElement(p)||Array.isArray(p)&&p.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(_=>` - ${_}`).join(`
144
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(_=>` - ${_}`).join(`
147
145
  `)].join(`
148
- `));let _=v.props,O=typeof(_==null?void 0:_.className)=="function"?(...S)=>Za(_==null?void 0:_.className(...S),f.className):Za(_==null?void 0:_.className,f.className),m=O?{className:O}:{};return N.cloneElement(v,Object.assign({},Xv(v.props,Il(nl(f,["ref"]))),g,d,yR(v.ref,d.ref),m))}return N.createElement(a,Object.assign({},nl(f,["ref"]),a!==N.Fragment&&d,a!==N.Fragment&&g),v)}function yR(...e){return{ref:e.every(r=>r==null)?void 0:r=>{for(let n of e)n!=null&&(typeof n=="function"?n(r):n.current=r)}}}function Xv(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let o of e)for(let a in o)a.startsWith("on")&&typeof o[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(o[a])):r[a]=o[a];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(r,{[o](a,...u){let l=n[o];for(let f of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;f(a,...u)}}});return r}function ti(e){var r;return Object.assign(N.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function Il(e){let r=Object.assign({},e);for(let n in r)r[n]===void 0&&delete r[n];return r}function nl(e,r=[]){let n=Object.assign({},e);for(let o of r)o in n&&delete n[o];return n}function wR(e){let r=e.parentElement,n=null;for(;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(n=r),r=r.parentElement;let o=(r==null?void 0:r.getAttribute("disabled"))==="";return o&&bR(n)?!1:o}function bR(e){if(!e)return!1;let r=e.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}function _R(e){var r,n;let o=(r=e==null?void 0:e.form)!=null?r:e.closest("form");if(o){for(let a of o.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(n=o.requestSubmit)==null||n.call(o)}}let SR="div";var Vv=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Vv||{});function ER(e,r){let{features:n=1,...o}=e,a={ref:r,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return ei({ourProps:a,theirProps:o,slot:{},defaultTag:SR,name:"Hidden"})}let xR=ti(ER),lc=N.createContext(null);lc.displayName="OpenClosedContext";var er=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(er||{});function Jv(){return N.useContext(lc)}function OR({value:e,children:r}){return N.createElement(lc.Provider,{value:e},r)}var Ll=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ll||{});function TR(e,r,n){let[o,a]=N.useState(n),u=e!==void 0,l=N.useRef(u),f=N.useRef(!1),d=N.useRef(!1);return u&&!l.current&&!f.current?(f.current=!0,l.current=u,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!u&&l.current&&!d.current&&(d.current=!0,l.current=u,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[u?e:o,Dt(v=>(u||a(v),r==null?void 0:r(v)))]}function cc(){let e=N.useRef(!1);return Wn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let Zv=N.createContext(null);function Qv(){let e=N.useContext(Zv);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Qv),r}return e}function CR(){let[e,r]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(n){let o=Dt(u=>(r(l=>[...l,u]),()=>r(l=>{let f=l.slice(),d=f.indexOf(u);return d!==-1&&f.splice(d,1),f}))),a=N.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return N.createElement(Zv.Provider,{value:a},n.children)},[r])]}let RR="p";function PR(e,r){let n=uc(),{id:o=`headlessui-description-${n}`,...a}=e,u=Qv(),l=Ro(r);Wn(()=>u.register(o),[o,u.register]);let f={ref:l,...u.props,id:o};return ei({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:RR,name:u.name||"Description"})}let AR=ti(PR),IR=Object.assign(AR,{});function LR(e=0){let[r,n]=N.useState(e),o=cc(),a=N.useCallback(d=>{o.current&&n(v=>v|d)},[r,o]),u=N.useCallback(d=>!!(r&d),[r]),l=N.useCallback(d=>{o.current&&n(v=>v&~d)},[n,o]),f=N.useCallback(d=>{o.current&&n(v=>v^d)},[n]);return{flags:r,addFlag:a,hasFlag:u,removeFlag:l,toggleFlag:f}}let em=N.createContext(null);function tm(){let e=N.useContext(em);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,tm),r}return e}function MR(){let[e,r]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(n){let o=Dt(u=>(r(l=>[...l,u]),()=>r(l=>{let f=l.slice(),d=f.indexOf(u);return d!==-1&&f.splice(d,1),f}))),a=N.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return N.createElement(em.Provider,{value:a},n.children)},[r])]}let DR="label";function kR(e,r){let n=uc(),{id:o=`headlessui-label-${n}`,passive:a=!1,...u}=e,l=tm(),f=Ro(r);Wn(()=>l.register(o),[o,l.register]);let d={ref:f,...l.props,id:o};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in u&&delete u.onClick),ei({ourProps:d,theirProps:u,slot:l.slot||{},defaultTag:DR,name:l.name||"Label"})}let NR=ti(kR),$R=Object.assign(NR,{}),fc=N.createContext(null);fc.displayName="GroupContext";let jR=N.Fragment;function FR(e){var r;let[n,o]=N.useState(null),[a,u]=MR(),[l,f]=CR(),d=N.useMemo(()=>({switch:n,setSwitch:o,labelledby:a,describedby:l}),[n,o,a,l]),v={},g=e;return N.createElement(f,{name:"Switch.Description"},N.createElement(u,{name:"Switch.Label",props:{htmlFor:(r=d.switch)==null?void 0:r.id,onClick(_){n&&(_.currentTarget.tagName==="LABEL"&&_.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},N.createElement(fc.Provider,{value:d},ei({ourProps:v,theirProps:g,defaultTag:jR,name:"Switch.Group"}))))}let WR="button";function HR(e,r){let n=uc(),{id:o=`headlessui-switch-${n}`,checked:a,defaultChecked:u=!1,onChange:l,name:f,value:d,form:v,...g}=e,_=N.useContext(fc),O=N.useRef(null),m=Ro(O,r,_===null?null:_.setSwitch),[S,y]=TR(a,l,u),E=Dt(()=>y==null?void 0:y(!S)),D=Dt(U=>{if(wR(U.currentTarget))return U.preventDefault();U.preventDefault(),E()}),I=Dt(U=>{U.key===Ll.Space?(U.preventDefault(),E()):U.key===Ll.Enter&&_R(U.currentTarget)}),C=Dt(U=>U.preventDefault()),k=N.useMemo(()=>({checked:S}),[S]),T={id:o,ref:m,role:"switch",type:mR(e,O),tabIndex:0,"aria-checked":S,"aria-labelledby":_==null?void 0:_.labelledby,"aria-describedby":_==null?void 0:_.describedby,onClick:D,onKeyUp:I,onKeyPress:C},H=ac();return N.useEffect(()=>{var U;let j=(U=O.current)==null?void 0:U.closest("form");j&&u!==void 0&&H.addEventListener(j,"reset",()=>{y(u)})},[O,y]),N.createElement(N.Fragment,null,f!=null&&S&&N.createElement(xR,{features:Vv.Hidden,...Il({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:v,checked:S,name:f,value:d})}),ei({ourProps:T,theirProps:g,slot:k,defaultTag:WR,name:"Switch"}))}let UR=ti(HR),BR=FR,zR=Object.assign(UR,{Group:BR,Label:$R,Description:IR});function qR(e){let r={called:!1};return(...n)=>{if(!r.called)return r.called=!0,e(...n)}}function rl(e,...r){e&&r.length>0&&e.classList.add(...r)}function il(e,...r){e&&r.length>0&&e.classList.remove(...r)}function GR(e,r){let n=Co();if(!e)return n.dispose;let{transitionDuration:o,transitionDelay:a}=getComputedStyle(e),[u,l]=[o,a].map(d=>{let[v=0]=d.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,_)=>_-g);return v}),f=u+l;if(f!==0){n.group(v=>{v.setTimeout(()=>{r(),v.dispose()},f),v.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&v.dispose()})});let d=n.addEventListener(e,"transitionend",v=>{v.target===v.currentTarget&&(r(),d())})}else r();return n.add(()=>r()),n.dispose}function KR(e,r,n,o){let a=n?"enter":"leave",u=Co(),l=o!==void 0?qR(o):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let f=$n(a,{enter:()=>r.enter,leave:()=>r.leave}),d=$n(a,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),v=$n(a,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom});return il(e,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),rl(e,...r.base,...f,...v),u.nextFrame(()=>{il(e,...r.base,...f,...v),rl(e,...r.base,...f,...d),GR(e,()=>(il(e,...r.base,...f),rl(e,...r.base,...r.entered),l()))}),u.dispose}function YR({immediate:e,container:r,direction:n,classes:o,onStart:a,onStop:u}){let l=cc(),f=ac(),d=Ri(n);Wn(()=>{e&&(d.current="enter")},[e]),Wn(()=>{let v=Co();f.add(v.dispose);let g=r.current;if(g&&d.current!=="idle"&&l.current)return v.dispose(),a.current(d.current),v.add(KR(g,o.current,d.current==="enter",()=>{v.dispose(),u.current(d.current)})),v.dispose},[n])}function gr(e=""){return e.split(" ").filter(r=>r.trim().length>1)}let fs=N.createContext(null);fs.displayName="TransitionContext";var XR=(e=>(e.Visible="visible",e.Hidden="hidden",e))(XR||{});function VR(){let e=N.useContext(fs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function JR(){let e=N.useContext(ds);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ds=N.createContext(null);ds.displayName="NestingContext";function ps(e){return"children"in e?ps(e.children):e.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function nm(e,r){let n=Ri(e),o=N.useRef([]),a=cc(),u=ac(),l=Dt((m,S=wr.Hidden)=>{let y=o.current.findIndex(({el:E})=>E===m);y!==-1&&($n(S,{[wr.Unmount](){o.current.splice(y,1)},[wr.Hidden](){o.current[y].state="hidden"}}),u.microTask(()=>{var E;!ps(o)&&a.current&&((E=n.current)==null||E.call(n))}))}),f=Dt(m=>{let S=o.current.find(({el:y})=>y===m);return S?S.state!=="visible"&&(S.state="visible"):o.current.push({el:m,state:"visible"}),()=>l(m,wr.Unmount)}),d=N.useRef([]),v=N.useRef(Promise.resolve()),g=N.useRef({enter:[],leave:[],idle:[]}),_=Dt((m,S,y)=>{d.current.splice(0),r&&(r.chains.current[S]=r.chains.current[S].filter(([E])=>E!==m)),r==null||r.chains.current[S].push([m,new Promise(E=>{d.current.push(E)})]),r==null||r.chains.current[S].push([m,new Promise(E=>{Promise.all(g.current[S].map(([D,I])=>I)).then(()=>E())})]),S==="enter"?v.current=v.current.then(()=>r==null?void 0:r.wait.current).then(()=>y(S)):y(S)}),O=Dt((m,S,y)=>{Promise.all(g.current[S].splice(0).map(([E,D])=>D)).then(()=>{var E;(E=d.current.shift())==null||E()}).then(()=>y(S))});return N.useMemo(()=>({children:o,register:f,unregister:l,onStart:_,onStop:O,wait:v,chains:g}),[f,l,o,_,O,g,v])}function ZR(){}let QR=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ph(e){var r;let n={};for(let o of QR)n[o]=(r=e[o])!=null?r:ZR;return n}function eP(e){let r=N.useRef(ph(e));return N.useEffect(()=>{r.current=ph(e)},[e]),r}let tP="div",rm=Yv.RenderStrategy;function nP(e,r){var n,o;let{beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:f,enter:d,enterFrom:v,enterTo:g,entered:_,leave:O,leaveFrom:m,leaveTo:S,...y}=e,E=N.useRef(null),D=Ro(E,r),I=(n=y.unmount)==null||n?wr.Unmount:wr.Hidden,{show:C,appear:k,initial:T}=VR(),[H,U]=N.useState(C?"visible":"hidden"),j=JR(),{register:J,unregister:ee}=j;N.useEffect(()=>J(E),[J,E]),N.useEffect(()=>{if(I===wr.Hidden&&E.current){if(C&&H!=="visible"){U("visible");return}return $n(H,{hidden:()=>ee(E),visible:()=>J(E)})}},[H,E,J,ee,C,I]);let ge=Ri({base:gr(y.className),enter:gr(d),enterFrom:gr(v),enterTo:gr(g),entered:gr(_),leave:gr(O),leaveFrom:gr(m),leaveTo:gr(S)}),Ce=eP({beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:f}),_e=sc();N.useEffect(()=>{if(_e&&H==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,H,_e]);let se=T&&!k,Le=k&&C&&T,we=(()=>!_e||se?"idle":C?"enter":"leave")(),xe=LR(0),We=Dt(ie=>$n(ie,{enter:()=>{xe.addFlag(er.Opening),Ce.current.beforeEnter()},leave:()=>{xe.addFlag(er.Closing),Ce.current.beforeLeave()},idle:()=>{}})),ut=Dt(ie=>$n(ie,{enter:()=>{xe.removeFlag(er.Opening),Ce.current.afterEnter()},leave:()=>{xe.removeFlag(er.Closing),Ce.current.afterLeave()},idle:()=>{}})),G=nm(()=>{U("hidden"),ee(E)},j);YR({immediate:Le,container:E,classes:ge,direction:we,onStart:Ri(ie=>{G.onStart(E,ie,We)}),onStop:Ri(ie=>{G.onStop(E,ie,ut),ie==="leave"&&!ps(G)&&(U("hidden"),ee(E))})});let X=y,de={ref:D};return Le?X={...X,className:Za(y.className,...ge.current.enter,...ge.current.enterFrom)}:(X.className=Za(y.className,(o=E.current)==null?void 0:o.className),X.className===""&&delete X.className),N.createElement(ds.Provider,{value:G},N.createElement(OR,{value:$n(H,{visible:er.Open,hidden:er.Closed})|xe.flags},ei({ourProps:de,theirProps:X,defaultTag:tP,features:rm,visible:H==="visible",name:"Transition.Child"})))}function rP(e,r){let{show:n,appear:o=!1,unmount:a=!0,...u}=e,l=N.useRef(null),f=Ro(l,r);sc();let d=Jv();if(n===void 0&&d!==null&&(n=(d&er.Open)===er.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,g]=N.useState(n?"visible":"hidden"),_=nm(()=>{g("hidden")}),[O,m]=N.useState(!0),S=N.useRef([n]);Wn(()=>{O!==!1&&S.current[S.current.length-1]!==n&&(S.current.push(n),m(!1))},[S,n]);let y=N.useMemo(()=>({show:n,appear:o,initial:O}),[n,o,O]);N.useEffect(()=>{if(n)g("visible");else if(!ps(_))g("hidden");else{let C=l.current;if(!C)return;let k=C.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&g("hidden")}},[n,_]);let E={unmount:a},D=Dt(()=>{var C;O&&m(!1),(C=e.beforeEnter)==null||C.call(e)}),I=Dt(()=>{var C;O&&m(!1),(C=e.beforeLeave)==null||C.call(e)});return N.createElement(ds.Provider,{value:_},N.createElement(fs.Provider,{value:y},ei({ourProps:{...E,as:N.Fragment,children:N.createElement(im,{ref:f,...E,...u,beforeEnter:D,beforeLeave:I})},theirProps:{},defaultTag:N.Fragment,features:rm,visible:v==="visible",name:"Transition"})))}function iP(e,r){let n=N.useContext(fs)!==null,o=Jv()!==null;return N.createElement(N.Fragment,null,!n&&o?N.createElement(Ml,{ref:r,...e}):N.createElement(im,{ref:r,...e}))}let Ml=ti(rP),im=ti(nP),oP=ti(iP),Qa=Object.assign(Ml,{Child:oP,Root:Ml});const ol={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},om=N.forwardRef(({onChange:e,value:r,size:n="md",className:o="ml-auto"},a)=>{const u=l=>{e(l)};return $.jsx("div",{className:Ot("flex items-center",o),children:$.jsx(zR,{ref:a,checked:r,onChange:u,onKeyDown:l=>{l.key==="Enter"&&u(!r)},className:`${r?"bg-primary-dark":"bg-grey-200"}
149
- relative inline-flex shrink-0 ${ol[n].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:$.jsx("span",{"aria-hidden":"true",className:`${r?ol[n].translate:"translate-x-0"}
150
- pointer-events-none inline-block ${ol[n].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),aP=({children:e,label:r,placement:n="top",className:o})=>{const[a,u]=N.useState(null),[l,f]=N.useState(null),[d,v]=N.useState(!1),{styles:g,attributes:_}=kh(a,l,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),O=N.Children.map(e,m=>N.isValidElement(m)?N.cloneElement(m,{ref:u,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)}):m);return $.jsxs($.Fragment,{children:[O,d&&yo.createPortal($.jsx("div",{ref:f,style:g.popper,..._.popper,className:Ot("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:r}),document.querySelector("body"))]})},sP=hl.keyframes`
146
+ `));let w=p.props,S=typeof(w==null?void 0:w.className)=="function"?(..._)=>$s(w==null?void 0:w.className(..._),c.className):$s(w==null?void 0:w.className,c.className),v=S?{className:S}:{};return N.cloneElement(p,Object.assign({},ig(p.props,_c(Zl(c,["ref"]))),h,d,eP(p.ref,d.ref),v))}return N.createElement(a,Object.assign({},Zl(c,["ref"]),a!==N.Fragment&&d,a!==N.Fragment&&h),p)}function eP(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function ig(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](a,...s){let l=r[i];for(let c of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;c(a,...s)}}});return t}function Ci(e){var t;return Object.assign(N.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function _c(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Zl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}function tP(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&rP(r)?!1:i}function rP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function nP(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(r=i.requestSubmit)==null||r.call(i)}}let iP="div";var og=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(og||{});function oP(e,t){let{features:r=1,...i}=e,a={ref:t,"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Ri({ourProps:a,theirProps:i,slot:{},defaultTag:iP,name:"Hidden"})}let aP=Ci(oP),af=N.createContext(null);af.displayName="OpenClosedContext";var bn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(bn||{});function ag(){return N.useContext(af)}function sP({value:e,children:t}){return N.createElement(af.Provider,{value:e},t)}var xc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(xc||{});function uP(e,t,r){let[i,a]=N.useState(r),s=e!==void 0,l=N.useRef(s),c=N.useRef(!1),d=N.useRef(!1);return s&&!l.current&&!c.current?(c.current=!0,l.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&l.current&&!d.current&&(d.current=!0,l.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[s?e:i,Gt(p=>(s||a(p),t==null?void 0:t(p)))]}function sf(){let e=N.useRef(!1);return on(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let sg=N.createContext(null);function ug(){let e=N.useContext(sg);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ug),t}return e}function lP(){let[e,t]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(r){let i=Gt(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=N.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return N.createElement(sg.Provider,{value:a},r.children)},[t])]}let cP="p";function fP(e,t){let r=of(),{id:i=`headlessui-description-${r}`,...a}=e,s=ug(),l=la(t);on(()=>s.register(i),[i,s.register]);let c={ref:l,...s.props,id:i};return Ri({ourProps:c,theirProps:a,slot:s.slot||{},defaultTag:cP,name:s.name||"Description"})}let dP=Ci(fP),pP=Object.assign(dP,{});function hP(e=0){let[t,r]=N.useState(e),i=sf(),a=N.useCallback(d=>{i.current&&r(p=>p|d)},[t,i]),s=N.useCallback(d=>!!(t&d),[t]),l=N.useCallback(d=>{i.current&&r(p=>p&~d)},[r,i]),c=N.useCallback(d=>{i.current&&r(p=>p^d)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:c}}let lg=N.createContext(null);function cg(){let e=N.useContext(lg);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,cg),t}return e}function vP(){let[e,t]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(r){let i=Gt(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=N.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return N.createElement(lg.Provider,{value:a},r.children)},[t])]}let mP="label";function gP(e,t){let r=of(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=cg(),c=la(t);on(()=>l.register(i),[i,l.register]);let d={ref:c,...l.props,id:i};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in s&&delete s.onClick),Ri({ourProps:d,theirProps:s,slot:l.slot||{},defaultTag:mP,name:l.name||"Label"})}let yP=Ci(gP),wP=Object.assign(yP,{}),uf=N.createContext(null);uf.displayName="GroupContext";let bP=N.Fragment;function SP(e){var t;let[r,i]=N.useState(null),[a,s]=vP(),[l,c]=lP(),d=N.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),p={},h=e;return N.createElement(c,{name:"Switch.Description"},N.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=d.switch)==null?void 0:t.id,onClick(w){r&&(w.currentTarget.tagName==="LABEL"&&w.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},N.createElement(uf.Provider,{value:d},Ri({ourProps:p,theirProps:h,defaultTag:bP,name:"Switch.Group"}))))}let EP="button";function _P(e,t){let r=of(),{id:i=`headlessui-switch-${r}`,checked:a,defaultChecked:s=!1,onChange:l,name:c,value:d,form:p,...h}=e,w=N.useContext(uf),S=N.useRef(null),v=la(S,t,w===null?null:w.setSwitch),[_,g]=uP(a,l,s),x=Gt(()=>g==null?void 0:g(!_)),C=Gt(H=>{if(tP(H.currentTarget))return H.preventDefault();H.preventDefault(),x()}),P=Gt(H=>{H.key===xc.Space?(H.preventDefault(),x()):H.key===xc.Enter&&nP(H.currentTarget)}),T=Gt(H=>H.preventDefault()),$=N.useMemo(()=>({checked:_}),[_]),A={id:i,ref:v,role:"switch",type:JC(e,S),tabIndex:0,"aria-checked":_,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,onClick:C,onKeyUp:P,onKeyPress:T},D=rf();return N.useEffect(()=>{var H;let j=(H=S.current)==null?void 0:H.closest("form");j&&s!==void 0&&D.addEventListener(j,"reset",()=>{g(s)})},[S,g]),N.createElement(N.Fragment,null,c!=null&&_&&N.createElement(aP,{features:og.Hidden,..._c({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:p,checked:_,name:c,value:d})}),Ri({ourProps:A,theirProps:h,slot:$,defaultTag:EP,name:"Switch"}))}let xP=Ci(_P),OP=SP,AP=Object.assign(xP,{Group:OP,Label:wP,Description:pP});function TP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Gl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Kl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function RP(e,t){let r=ua();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(d=>{let[p=0]=d.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,w)=>w-h);return p}),c=s+l;if(c!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},c),p.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&p.dispose()})});let d=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),d())})}else t();return r.add(()=>t()),r.dispose}function CP(e,t,r,i){let a=r?"enter":"leave",s=ua(),l=i!==void 0?TP(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=tn(a,{enter:()=>t.enter,leave:()=>t.leave}),d=tn(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=tn(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Kl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Gl(e,...t.base,...c,...p),s.nextFrame(()=>{Kl(e,...t.base,...c,...p),Gl(e,...t.base,...c,...d),RP(e,()=>(Kl(e,...t.base,...c),Gl(e,...t.base,...t.entered),l()))}),s.dispose}function PP({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=sf(),c=rf(),d=ro(r);on(()=>{e&&(d.current="enter")},[e]),on(()=>{let p=ua();c.add(p.dispose);let h=t.current;if(h&&d.current!=="idle"&&l.current)return p.dispose(),a.current(d.current),p.add(CP(h,i.current,d.current==="enter",()=>{p.dispose(),s.current(d.current)})),p.dispose},[r])}function jn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Js=N.createContext(null);Js.displayName="TransitionContext";var IP=(e=>(e.Visible="visible",e.Hidden="hidden",e))(IP||{});function MP(){let e=N.useContext(Js);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function FP(){let e=N.useContext(Qs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Qs=N.createContext(null);Qs.displayName="NestingContext";function eu(e){return"children"in e?eu(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function fg(e,t){let r=ro(e),i=N.useRef([]),a=sf(),s=rf(),l=Gt((v,_=Bn.Hidden)=>{let g=i.current.findIndex(({el:x})=>x===v);g!==-1&&(tn(_,{[Bn.Unmount](){i.current.splice(g,1)},[Bn.Hidden](){i.current[g].state="hidden"}}),s.microTask(()=>{var x;!eu(i)&&a.current&&((x=r.current)==null||x.call(r))}))}),c=Gt(v=>{let _=i.current.find(({el:g})=>g===v);return _?_.state!=="visible"&&(_.state="visible"):i.current.push({el:v,state:"visible"}),()=>l(v,Bn.Unmount)}),d=N.useRef([]),p=N.useRef(Promise.resolve()),h=N.useRef({enter:[],leave:[],idle:[]}),w=Gt((v,_,g)=>{d.current.splice(0),t&&(t.chains.current[_]=t.chains.current[_].filter(([x])=>x!==v)),t==null||t.chains.current[_].push([v,new Promise(x=>{d.current.push(x)})]),t==null||t.chains.current[_].push([v,new Promise(x=>{Promise.all(h.current[_].map(([C,P])=>P)).then(()=>x())})]),_==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(_)):g(_)}),S=Gt((v,_,g)=>{Promise.all(h.current[_].splice(0).map(([x,C])=>C)).then(()=>{var x;(x=d.current.shift())==null||x()}).then(()=>g(_))});return N.useMemo(()=>({children:i,register:c,unregister:l,onStart:w,onStop:S,wait:p,chains:h}),[c,l,i,w,S,h,p])}function LP(){}let $P=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function mv(e){var t;let r={};for(let i of $P)r[i]=(t=e[i])!=null?t:LP;return r}function DP(e){let t=N.useRef(mv(e));return N.useEffect(()=>{t.current=mv(e)},[e]),t}let NP="div",dg=ng.RenderStrategy;function kP(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c,enter:d,enterFrom:p,enterTo:h,entered:w,leave:S,leaveFrom:v,leaveTo:_,...g}=e,x=N.useRef(null),C=la(x,t),P=(r=g.unmount)==null||r?Bn.Unmount:Bn.Hidden,{show:T,appear:$,initial:A}=MP(),[D,H]=N.useState(T?"visible":"hidden"),j=FP(),{register:V,unregister:ee}=j;N.useEffect(()=>V(x),[V,x]),N.useEffect(()=>{if(P===Bn.Hidden&&x.current){if(T&&D!=="visible"){H("visible");return}return tn(D,{hidden:()=>ee(x),visible:()=>V(x)})}},[D,x,V,ee,T,P]);let ye=ro({base:jn(g.className),enter:jn(d),enterFrom:jn(p),enterTo:jn(h),entered:jn(w),leave:jn(S),leaveFrom:jn(v),leaveTo:jn(_)}),Re=DP({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c}),Ee=nf();N.useEffect(()=>{if(Ee&&D==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,D,Ee]);let se=A&&!$,Fe=$&&T&&A,be=(()=>!Ee||se?"idle":T?"enter":"leave")(),Oe=hP(0),Be=Gt(oe=>tn(oe,{enter:()=>{Oe.addFlag(bn.Opening),Re.current.beforeEnter()},leave:()=>{Oe.addFlag(bn.Closing),Re.current.beforeLeave()},idle:()=>{}})),pt=Gt(oe=>tn(oe,{enter:()=>{Oe.removeFlag(bn.Opening),Re.current.afterEnter()},leave:()=>{Oe.removeFlag(bn.Closing),Re.current.afterLeave()},idle:()=>{}})),Z=fg(()=>{H("hidden"),ee(x)},j);PP({immediate:Fe,container:x,classes:ye,direction:be,onStart:ro(oe=>{Z.onStart(x,oe,Be)}),onStop:ro(oe=>{Z.onStop(x,oe,pt),oe==="leave"&&!eu(Z)&&(H("hidden"),ee(x))})});let Y=g,pe={ref:C};return Fe?Y={...Y,className:$s(g.className,...ye.current.enter,...ye.current.enterFrom)}:(Y.className=$s(g.className,(i=x.current)==null?void 0:i.className),Y.className===""&&delete Y.className),N.createElement(Qs.Provider,{value:Z},N.createElement(sP,{value:tn(D,{visible:bn.Open,hidden:bn.Closed})|Oe.flags},Ri({ourProps:pe,theirProps:Y,defaultTag:NP,features:dg,visible:D==="visible",name:"Transition.Child"})))}function jP(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=N.useRef(null),c=la(l,t);nf();let d=ag();if(r===void 0&&d!==null&&(r=(d&bn.Open)===bn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,h]=N.useState(r?"visible":"hidden"),w=fg(()=>{h("hidden")}),[S,v]=N.useState(!0),_=N.useRef([r]);on(()=>{S!==!1&&_.current[_.current.length-1]!==r&&(_.current.push(r),v(!1))},[_,r]);let g=N.useMemo(()=>({show:r,appear:i,initial:S}),[r,i,S]);N.useEffect(()=>{if(r)h("visible");else if(!eu(w))h("hidden");else{let T=l.current;if(!T)return;let $=T.getBoundingClientRect();$.x===0&&$.y===0&&$.width===0&&$.height===0&&h("hidden")}},[r,w]);let x={unmount:a},C=Gt(()=>{var T;S&&v(!1),(T=e.beforeEnter)==null||T.call(e)}),P=Gt(()=>{var T;S&&v(!1),(T=e.beforeLeave)==null||T.call(e)});return N.createElement(Qs.Provider,{value:w},N.createElement(Js.Provider,{value:g},Ri({ourProps:{...x,as:N.Fragment,children:N.createElement(pg,{ref:c,...x,...s,beforeEnter:C,beforeLeave:P})},theirProps:{},defaultTag:N.Fragment,features:dg,visible:p==="visible",name:"Transition"})))}function WP(e,t){let r=N.useContext(Js)!==null,i=ag()!==null;return N.createElement(N.Fragment,null,!r&&i?N.createElement(Oc,{ref:t,...e}):N.createElement(pg,{ref:t,...e}))}let Oc=Ci(jP),pg=Ci(kP),UP=Ci(WP),Ds=Object.assign(Oc,{Child:UP,Root:Oc});const Yl={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},hg=N.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return k.jsx("div",{className:Dt("flex items-center",i),children:k.jsx(AP,{ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
147
+ relative inline-flex shrink-0 ${Yl[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:k.jsx("span",{"aria-hidden":"true",className:`${t?Yl[r].translate:"translate-x-0"}
148
+ pointer-events-none inline-block ${Yl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),HP=({children:e,label:t,placement:r="top",className:i})=>{const[a,s]=N.useState(null),[l,c]=N.useState(null),[d,p]=N.useState(!1),{styles:h,attributes:w}=zv(a,l,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),S=N.Children.map(e,v=>N.isValidElement(v)?N.cloneElement(v,{ref:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)}):v);return k.jsxs(k.Fragment,{children:[S,d&&Qo.createPortal(k.jsx("div",{ref:c,style:h.popper,...w.popper,className:Dt("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",i),children:t}),document.querySelector("body"))]})},BP=ac.keyframes`
151
149
  to {
152
150
  fill: url(#d);
153
151
  stroke-dashoffset: 0;
154
152
  }
155
- `,am=Ka.svg`
153
+ `,vg=Ps.svg`
156
154
  & .e {
157
155
  fill: url(#d);
158
156
  }
@@ -163,7 +161,7 @@ pointer-events-none inline-block ${ol[n].switch} transform rounded-full bg-white
163
161
  fill: transparent;
164
162
  stroke-dasharray: 700;
165
163
  stroke-dashoffset: 700;
166
- animation: ${sP} 1.5s ease-in-out infinite alternate-reverse;
164
+ animation: ${BP} 1.5s ease-in-out infinite alternate-reverse;
167
165
  }
168
166
 
169
167
  & #circle {
@@ -173,34 +171,37 @@ pointer-events-none inline-block ${ol[n].switch} transform rounded-full bg-white
173
171
  stroke-dasharray: 700;
174
172
  stroke-dashoffset: 700;
175
173
  }
176
- `,uP=({message:e,version:r})=>$.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:$.jsxs("div",{className:"flex flex-col text-center",children:[$.jsx("div",{className:"relative mr-4 self-center",children:$.jsx("div",{className:"flex items-center justify-center rounded",children:$.jsxs(am,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[$.jsx("defs",{children:$.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[$.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:$.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),$.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:$.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),$.jsx("g",{id:"a"}),$.jsx("g",{id:"b",children:$.jsx("g",{id:"c",children:$.jsxs("g",{children:[$.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),$.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),$.jsxs("div",{children:[$.jsx("span",{className:"text-xs text-grey-200",children:r}),$.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var es={exports:{}};/**
174
+ `,zP=({message:e,version:t})=>k.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:k.jsxs("div",{className:"flex flex-col text-center",children:[k.jsx("div",{className:"relative mr-4 self-center",children:k.jsx("div",{className:"flex items-center justify-center rounded",children:k.jsxs(vg,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[k.jsx("defs",{children:k.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[k.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:k.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),k.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:k.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),k.jsx("g",{id:"a"}),k.jsx("g",{id:"b",children:k.jsx("g",{id:"c",children:k.jsxs("g",{children:[k.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),k.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),k.jsxs("div",{children:[k.jsx("span",{className:"text-xs text-grey-200",children:t}),k.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var Ns={exports:{}};/**
177
175
  * @license
178
176
  * Lodash <https://lodash.com/>
179
177
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
180
178
  * Released under MIT license <https://lodash.com/license>
181
179
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
182
180
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
183
- */es.exports;(function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",v=500,g="__lodash_placeholder__",_=1,O=2,m=4,S=1,y=2,E=1,D=2,I=4,C=8,k=16,T=32,H=64,U=128,j=256,J=512,ee=30,ge="...",Ce=800,_e=16,se=1,Le=2,we=3,xe=1/0,We=9007199254740991,ut=17976931348623157e292,G=0/0,X=4294967295,de=X-1,ie=X>>>1,ce=[["ary",U],["bind",E],["bindKey",D],["curry",C],["curryRight",k],["flip",J],["partial",T],["partialRight",H],["rearg",j]],fe="[object Arguments]",ue="[object Array]",pe="[object AsyncFunction]",le="[object Boolean]",ye="[object Date]",be="[object DOMException]",Ke="[object Error]",V="[object Function]",rt="[object GeneratorFunction]",it="[object Map]",dt="[object Number]",An="[object Null]",gt="[object Object]",Wt="[object Promise]",Sr="[object Proxy]",Je="[object RegExp]",Qe="[object Set]",rn="[object String]",Kt="[object Symbol]",yn="[object Undefined]",Tt="[object WeakMap]",rr="[object WeakSet]",on="[object ArrayBuffer]",Yt="[object DataView]",Er="[object Float32Array]",xr="[object Float64Array]",Or="[object Int8Array]",Tr="[object Int16Array]",wn="[object Int32Array]",Un="[object Uint8Array]",bt="[object Uint8ClampedArray]",bn="[object Uint16Array]",_n="[object Uint32Array]",Cr=/\b__p \+= '';/g,ki=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ii=/&(?:amp|lt|gt|quot|#39);/g,ir=/[&<>"']/g,Pr=RegExp(ii.source),Ni=RegExp(ir.source),$i=/<%-([\s\S]+?)%>/g,Ar=/<%([\s\S]+?)%>/g,oi=/<%=([\s\S]+?)%>/g,ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fi=/^\w*$/,Wi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/[\\^$.*+?()[\]{}|]/g,P=RegExp(p.source),F=/^\s+/,Y=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,te=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,Se=/\\(\\)?/g,Oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,kt=/^[-+]0x[0-9a-f]+$/i,Ir=/^0b[01]+$/i,lt=/^\[object .+?Constructor\]$/,Ym=/^0o[0-7]+$/i,Xm=/^(?:0|[1-9]\d*)$/,Vm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Io=/($^)/,Jm=/['\n\r\u2028\u2029\\]/g,Lo="\\ud800-\\udfff",Zm="\\u0300-\\u036f",Qm="\\ufe20-\\ufe2f",eg="\\u20d0-\\u20ff",bc=Zm+Qm+eg,_c="\\u2700-\\u27bf",Sc="a-z\\xdf-\\xf6\\xf8-\\xff",tg="\\xac\\xb1\\xd7\\xf7",ng="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rg="\\u2000-\\u206f",ig=" \\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",Ec="A-Z\\xc0-\\xd6\\xd8-\\xde",xc="\\ufe0e\\ufe0f",Oc=tg+ng+rg+ig,gs="['’]",og="["+Lo+"]",Tc="["+Oc+"]",Mo="["+bc+"]",Cc="\\d+",ag="["+_c+"]",Rc="["+Sc+"]",Pc="[^"+Lo+Oc+Cc+_c+Sc+Ec+"]",ys="\\ud83c[\\udffb-\\udfff]",sg="(?:"+Mo+"|"+ys+")",Ac="[^"+Lo+"]",ws="(?:\\ud83c[\\udde6-\\uddff]){2}",bs="[\\ud800-\\udbff][\\udc00-\\udfff]",ai="["+Ec+"]",Ic="\\u200d",Lc="(?:"+Rc+"|"+Pc+")",ug="(?:"+ai+"|"+Pc+")",Mc="(?:"+gs+"(?:d|ll|m|re|s|t|ve))?",Dc="(?:"+gs+"(?:D|LL|M|RE|S|T|VE))?",kc=sg+"?",Nc="["+xc+"]?",lg="(?:"+Ic+"(?:"+[Ac,ws,bs].join("|")+")"+Nc+kc+")*",cg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$c=Nc+kc+lg,dg="(?:"+[ag,ws,bs].join("|")+")"+$c,pg="(?:"+[Ac+Mo+"?",Mo,ws,bs,og].join("|")+")",hg=RegExp(gs,"g"),vg=RegExp(Mo,"g"),_s=RegExp(ys+"(?="+ys+")|"+pg+$c,"g"),mg=RegExp([ai+"?"+Rc+"+"+Mc+"(?="+[Tc,ai,"$"].join("|")+")",ug+"+"+Dc+"(?="+[Tc,ai+Lc,"$"].join("|")+")",ai+"?"+Lc+"+"+Mc,ai+"+"+Dc,fg,cg,Cc,dg].join("|"),"g"),gg=RegExp("["+Ic+Lo+bc+xc+"]"),yg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bg=-1,Ze={};Ze[Er]=Ze[xr]=Ze[Or]=Ze[Tr]=Ze[wn]=Ze[Un]=Ze[bt]=Ze[bn]=Ze[_n]=!0,Ze[fe]=Ze[ue]=Ze[on]=Ze[le]=Ze[Yt]=Ze[ye]=Ze[Ke]=Ze[V]=Ze[it]=Ze[dt]=Ze[gt]=Ze[Je]=Ze[Qe]=Ze[rn]=Ze[Tt]=!1;var Xe={};Xe[fe]=Xe[ue]=Xe[on]=Xe[Yt]=Xe[le]=Xe[ye]=Xe[Er]=Xe[xr]=Xe[Or]=Xe[Tr]=Xe[wn]=Xe[it]=Xe[dt]=Xe[gt]=Xe[Je]=Xe[Qe]=Xe[rn]=Xe[Kt]=Xe[Un]=Xe[bt]=Xe[bn]=Xe[_n]=!0,Xe[Ke]=Xe[V]=Xe[Tt]=!1;var _g={À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Sg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Eg={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Og=parseFloat,Tg=parseInt,jc=typeof zr=="object"&&zr&&zr.Object===Object&&zr,Cg=typeof self=="object"&&self&&self.Object===Object&&self,_t=jc||Cg||Function("return this")(),Ss=r&&!r.nodeType&&r,Lr=Ss&&!0&&e&&!e.nodeType&&e,Fc=Lr&&Lr.exports===Ss,Es=Fc&&jc.process,an=function(){try{var A=Lr&&Lr.require&&Lr.require("util").types;return A||Es&&Es.binding&&Es.binding("util")}catch{}}(),Wc=an&&an.isArrayBuffer,Hc=an&&an.isDate,Uc=an&&an.isMap,Bc=an&&an.isRegExp,zc=an&&an.isSet,qc=an&&an.isTypedArray;function Xt(A,B,W){switch(W.length){case 0:return A.call(B);case 1:return A.call(B,W[0]);case 2:return A.call(B,W[0],W[1]);case 3:return A.call(B,W[0],W[1],W[2])}return A.apply(B,W)}function Rg(A,B,W,ne){for(var Ee=-1,Fe=A==null?0:A.length;++Ee<Fe;){var ht=A[Ee];B(ne,ht,W(ht),A)}return ne}function sn(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne&&B(A[W],W,A)!==!1;);return A}function Pg(A,B){for(var W=A==null?0:A.length;W--&&B(A[W],W,A)!==!1;);return A}function Gc(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(!B(A[W],W,A))return!1;return!0}function or(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=0,Fe=[];++W<ne;){var ht=A[W];B(ht,W,A)&&(Fe[Ee++]=ht)}return Fe}function Do(A,B){var W=A==null?0:A.length;return!!W&&si(A,B,0)>-1}function xs(A,B,W){for(var ne=-1,Ee=A==null?0:A.length;++ne<Ee;)if(W(B,A[ne]))return!0;return!1}function et(A,B){for(var W=-1,ne=A==null?0:A.length,Ee=Array(ne);++W<ne;)Ee[W]=B(A[W],W,A);return Ee}function ar(A,B){for(var W=-1,ne=B.length,Ee=A.length;++W<ne;)A[Ee+W]=B[W];return A}function Os(A,B,W,ne){var Ee=-1,Fe=A==null?0:A.length;for(ne&&Fe&&(W=A[++Ee]);++Ee<Fe;)W=B(W,A[Ee],Ee,A);return W}function Ag(A,B,W,ne){var Ee=A==null?0:A.length;for(ne&&Ee&&(W=A[--Ee]);Ee--;)W=B(W,A[Ee],Ee,A);return W}function Ts(A,B){for(var W=-1,ne=A==null?0:A.length;++W<ne;)if(B(A[W],W,A))return!0;return!1}var Ig=Cs("length");function Lg(A){return A.split("")}function Mg(A){return A.match(Q)||[]}function Kc(A,B,W){var ne;return W(A,function(Ee,Fe,ht){if(B(Ee,Fe,ht))return ne=Fe,!1}),ne}function ko(A,B,W,ne){for(var Ee=A.length,Fe=W+(ne?1:-1);ne?Fe--:++Fe<Ee;)if(B(A[Fe],Fe,A))return Fe;return-1}function si(A,B,W){return B===B?qg(A,B,W):ko(A,Yc,W)}function Dg(A,B,W,ne){for(var Ee=W-1,Fe=A.length;++Ee<Fe;)if(ne(A[Ee],B))return Ee;return-1}function Yc(A){return A!==A}function Xc(A,B){var W=A==null?0:A.length;return W?Ps(A,B)/W:G}function Cs(A){return function(B){return B==null?n:B[A]}}function Rs(A){return function(B){return A==null?n:A[B]}}function Vc(A,B,W,ne,Ee){return Ee(A,function(Fe,ht,Ye){W=ne?(ne=!1,Fe):B(W,Fe,ht,Ye)}),W}function kg(A,B){var W=A.length;for(A.sort(B);W--;)A[W]=A[W].value;return A}function Ps(A,B){for(var W,ne=-1,Ee=A.length;++ne<Ee;){var Fe=B(A[ne]);Fe!==n&&(W=W===n?Fe:W+Fe)}return W}function As(A,B){for(var W=-1,ne=Array(A);++W<A;)ne[W]=B(W);return ne}function Ng(A,B){return et(B,function(W){return[W,A[W]]})}function Jc(A){return A&&A.slice(0,tf(A)+1).replace(F,"")}function Vt(A){return function(B){return A(B)}}function Is(A,B){return et(B,function(W){return A[W]})}function Hi(A,B){return A.has(B)}function Zc(A,B){for(var W=-1,ne=A.length;++W<ne&&si(B,A[W],0)>-1;);return W}function Qc(A,B){for(var W=A.length;W--&&si(B,A[W],0)>-1;);return W}function $g(A,B){for(var W=A.length,ne=0;W--;)A[W]===B&&++ne;return ne}var jg=Rs(_g),Fg=Rs(Sg);function Wg(A){return"\\"+xg[A]}function Hg(A,B){return A==null?n:A[B]}function ui(A){return gg.test(A)}function Ug(A){return yg.test(A)}function Bg(A){for(var B,W=[];!(B=A.next()).done;)W.push(B.value);return W}function Ls(A){var B=-1,W=Array(A.size);return A.forEach(function(ne,Ee){W[++B]=[Ee,ne]}),W}function ef(A,B){return function(W){return A(B(W))}}function sr(A,B){for(var W=-1,ne=A.length,Ee=0,Fe=[];++W<ne;){var ht=A[W];(ht===B||ht===g)&&(A[W]=g,Fe[Ee++]=W)}return Fe}function No(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=ne}),W}function zg(A){var B=-1,W=Array(A.size);return A.forEach(function(ne){W[++B]=[ne,ne]}),W}function qg(A,B,W){for(var ne=W-1,Ee=A.length;++ne<Ee;)if(A[ne]===B)return ne;return-1}function Gg(A,B,W){for(var ne=W+1;ne--;)if(A[ne]===B)return ne;return ne}function li(A){return ui(A)?Yg(A):Ig(A)}function Sn(A){return ui(A)?Xg(A):Lg(A)}function tf(A){for(var B=A.length;B--&&Y.test(A.charAt(B)););return B}var Kg=Rs(Eg);function Yg(A){for(var B=_s.lastIndex=0;_s.test(A);)++B;return B}function Xg(A){return A.match(_s)||[]}function Vg(A){return A.match(mg)||[]}var Jg=function A(B){B=B==null?_t:ci.defaults(_t.Object(),B,ci.pick(_t,wg));var W=B.Array,ne=B.Date,Ee=B.Error,Fe=B.Function,ht=B.Math,Ye=B.Object,Ms=B.RegExp,Zg=B.String,un=B.TypeError,$o=W.prototype,Qg=Fe.prototype,fi=Ye.prototype,jo=B["__core-js_shared__"],Fo=Qg.toString,ze=fi.hasOwnProperty,e0=0,nf=function(){var t=/[^.]+$/.exec(jo&&jo.keys&&jo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Wo=fi.toString,t0=Fo.call(Ye),n0=_t._,r0=Ms("^"+Fo.call(ze).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ho=Fc?B.Buffer:n,ur=B.Symbol,Uo=B.Uint8Array,rf=Ho?Ho.allocUnsafe:n,Bo=ef(Ye.getPrototypeOf,Ye),of=Ye.create,af=fi.propertyIsEnumerable,zo=$o.splice,sf=ur?ur.isConcatSpreadable:n,Ui=ur?ur.iterator:n,Mr=ur?ur.toStringTag:n,qo=function(){try{var t=jr(Ye,"defineProperty");return t({},"",{}),t}catch{}}(),i0=B.clearTimeout!==_t.clearTimeout&&B.clearTimeout,o0=ne&&ne.now!==_t.Date.now&&ne.now,a0=B.setTimeout!==_t.setTimeout&&B.setTimeout,Go=ht.ceil,Ko=ht.floor,Ds=Ye.getOwnPropertySymbols,s0=Ho?Ho.isBuffer:n,uf=B.isFinite,u0=$o.join,l0=ef(Ye.keys,Ye),vt=ht.max,Ct=ht.min,c0=ne.now,f0=B.parseInt,lf=ht.random,d0=$o.reverse,ks=jr(B,"DataView"),Bi=jr(B,"Map"),Ns=jr(B,"Promise"),di=jr(B,"Set"),zi=jr(B,"WeakMap"),qi=jr(Ye,"create"),Yo=zi&&new zi,pi={},p0=Fr(ks),h0=Fr(Bi),v0=Fr(Ns),m0=Fr(di),g0=Fr(zi),Xo=ur?ur.prototype:n,Gi=Xo?Xo.valueOf:n,cf=Xo?Xo.toString:n;function w(t){if(at(t)&&!Te(t)&&!(t instanceof ke)){if(t instanceof ln)return t;if(ze.call(t,"__wrapped__"))return fd(t)}return new ln(t)}var hi=function(){function t(){}return function(i){if(!tt(i))return{};if(of)return of(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function Vo(){}function ln(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}w.templateSettings={escape:$i,evaluate:Ar,interpolate:oi,variable:"",imports:{_:w}},w.prototype=Vo.prototype,w.prototype.constructor=w,ln.prototype=hi(Vo.prototype),ln.prototype.constructor=ln;function ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function y0(){var t=new ke(this.__wrapped__);return t.__actions__=Ht(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ht(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ht(this.__views__),t}function w0(){if(this.__filtered__){var t=new ke(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function b0(){var t=this.__wrapped__.value(),i=this.__dir__,s=Te(t),c=i<0,h=s?t.length:0,b=Ly(0,h,this.__views__),x=b.start,R=b.end,M=R-x,z=c?R:x-1,q=this.__iteratees__,K=q.length,Z=0,re=Ct(M,this.__takeCount__);if(!s||!c&&h==M&&re==M)return Df(t,this.__actions__);var ve=[];e:for(;M--&&Z<re;){z+=i;for(var Pe=-1,me=t[z];++Pe<K;){var De=q[Pe],Ne=De.iteratee,Qt=De.type,jt=Ne(me);if(Qt==Le)me=jt;else if(!jt){if(Qt==se)continue e;break e}}ve[Z++]=me}return ve}ke.prototype=hi(Vo.prototype),ke.prototype.constructor=ke;function Dr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function _0(){this.__data__=qi?qi(null):{},this.size=0}function S0(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function E0(t){var i=this.__data__;if(qi){var s=i[t];return s===d?n:s}return ze.call(i,t)?i[t]:n}function x0(t){var i=this.__data__;return qi?i[t]!==n:ze.call(i,t)}function O0(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=qi&&i===n?d:i,this}Dr.prototype.clear=_0,Dr.prototype.delete=S0,Dr.prototype.get=E0,Dr.prototype.has=x0,Dr.prototype.set=O0;function Bn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function T0(){this.__data__=[],this.size=0}function C0(t){var i=this.__data__,s=Jo(i,t);if(s<0)return!1;var c=i.length-1;return s==c?i.pop():zo.call(i,s,1),--this.size,!0}function R0(t){var i=this.__data__,s=Jo(i,t);return s<0?n:i[s][1]}function P0(t){return Jo(this.__data__,t)>-1}function A0(t,i){var s=this.__data__,c=Jo(s,t);return c<0?(++this.size,s.push([t,i])):s[c][1]=i,this}Bn.prototype.clear=T0,Bn.prototype.delete=C0,Bn.prototype.get=R0,Bn.prototype.has=P0,Bn.prototype.set=A0;function zn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function I0(){this.size=0,this.__data__={hash:new Dr,map:new(Bi||Bn),string:new Dr}}function L0(t){var i=la(this,t).delete(t);return this.size-=i?1:0,i}function M0(t){return la(this,t).get(t)}function D0(t){return la(this,t).has(t)}function k0(t,i){var s=la(this,t),c=s.size;return s.set(t,i),this.size+=s.size==c?0:1,this}zn.prototype.clear=I0,zn.prototype.delete=L0,zn.prototype.get=M0,zn.prototype.has=D0,zn.prototype.set=k0;function kr(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new zn;++i<s;)this.add(t[i])}function N0(t){return this.__data__.set(t,d),this}function $0(t){return this.__data__.has(t)}kr.prototype.add=kr.prototype.push=N0,kr.prototype.has=$0;function En(t){var i=this.__data__=new Bn(t);this.size=i.size}function j0(){this.__data__=new Bn,this.size=0}function F0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function W0(t){return this.__data__.get(t)}function H0(t){return this.__data__.has(t)}function U0(t,i){var s=this.__data__;if(s instanceof Bn){var c=s.__data__;if(!Bi||c.length<a-1)return c.push([t,i]),this.size=++s.size,this;s=this.__data__=new zn(c)}return s.set(t,i),this.size=s.size,this}En.prototype.clear=j0,En.prototype.delete=F0,En.prototype.get=W0,En.prototype.has=H0,En.prototype.set=U0;function ff(t,i){var s=Te(t),c=!s&&Wr(t),h=!s&&!c&&pr(t),b=!s&&!c&&!h&&yi(t),x=s||c||h||b,R=x?As(t.length,Zg):[],M=R.length;for(var z in t)(i||ze.call(t,z))&&!(x&&(z=="length"||h&&(z=="offset"||z=="parent")||b&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Yn(z,M)))&&R.push(z);return R}function df(t){var i=t.length;return i?t[Ks(0,i-1)]:n}function B0(t,i){return ca(Ht(t),Nr(i,0,t.length))}function z0(t){return ca(Ht(t))}function $s(t,i,s){(s!==n&&!xn(t[i],s)||s===n&&!(i in t))&&qn(t,i,s)}function Ki(t,i,s){var c=t[i];(!(ze.call(t,i)&&xn(c,s))||s===n&&!(i in t))&&qn(t,i,s)}function Jo(t,i){for(var s=t.length;s--;)if(xn(t[s][0],i))return s;return-1}function q0(t,i,s,c){return lr(t,function(h,b,x){i(c,h,s(h),x)}),c}function pf(t,i){return t&&Ln(i,yt(i),t)}function G0(t,i){return t&&Ln(i,Bt(i),t)}function qn(t,i,s){i=="__proto__"&&qo?qo(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function js(t,i){for(var s=-1,c=i.length,h=W(c),b=t==null;++s<c;)h[s]=b?n:yu(t,i[s]);return h}function Nr(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function cn(t,i,s,c,h,b){var x,R=i&_,M=i&O,z=i&m;if(s&&(x=h?s(t,c,h,b):s(t)),x!==n)return x;if(!tt(t))return t;var q=Te(t);if(q){if(x=Dy(t),!R)return Ht(t,x)}else{var K=Rt(t),Z=K==V||K==rt;if(pr(t))return $f(t,R);if(K==gt||K==fe||Z&&!h){if(x=M||Z?{}:nd(t),!R)return M?Ey(t,G0(x,t)):Sy(t,pf(x,t))}else{if(!Xe[K])return h?t:{};x=ky(t,K,R)}}b||(b=new En);var re=b.get(t);if(re)return re;b.set(t,x),Id(t)?t.forEach(function(me){x.add(cn(me,i,s,me,t,b))}):Pd(t)&&t.forEach(function(me,De){x.set(De,cn(me,i,s,De,t,b))});var ve=z?M?iu:ru:M?Bt:yt,Pe=q?n:ve(t);return sn(Pe||t,function(me,De){Pe&&(De=me,me=t[De]),Ki(x,De,cn(me,i,s,De,t,b))}),x}function K0(t){var i=yt(t);return function(s){return hf(s,t,i)}}function hf(t,i,s){var c=s.length;if(t==null)return!c;for(t=Ye(t);c--;){var h=s[c],b=i[h],x=t[h];if(x===n&&!(h in t)||!b(x))return!1}return!0}function vf(t,i,s){if(typeof t!="function")throw new un(l);return eo(function(){t.apply(n,s)},i)}function Yi(t,i,s,c){var h=-1,b=Do,x=!0,R=t.length,M=[],z=i.length;if(!R)return M;s&&(i=et(i,Vt(s))),c?(b=xs,x=!1):i.length>=a&&(b=Hi,x=!1,i=new kr(i));e:for(;++h<R;){var q=t[h],K=s==null?q:s(q);if(q=c||q!==0?q:0,x&&K===K){for(var Z=z;Z--;)if(i[Z]===K)continue e;M.push(q)}else b(i,K,c)||M.push(q)}return M}var lr=Uf(In),mf=Uf(Ws,!0);function Y0(t,i){var s=!0;return lr(t,function(c,h,b){return s=!!i(c,h,b),s}),s}function Zo(t,i,s){for(var c=-1,h=t.length;++c<h;){var b=t[c],x=i(b);if(x!=null&&(R===n?x===x&&!Zt(x):s(x,R)))var R=x,M=b}return M}function X0(t,i,s,c){var h=t.length;for(s=Re(s),s<0&&(s=-s>h?0:h+s),c=c===n||c>h?h:Re(c),c<0&&(c+=h),c=s>c?0:Md(c);s<c;)t[s++]=i;return t}function gf(t,i){var s=[];return lr(t,function(c,h,b){i(c,h,b)&&s.push(c)}),s}function St(t,i,s,c,h){var b=-1,x=t.length;for(s||(s=$y),h||(h=[]);++b<x;){var R=t[b];i>0&&s(R)?i>1?St(R,i-1,s,c,h):ar(h,R):c||(h[h.length]=R)}return h}var Fs=Bf(),yf=Bf(!0);function In(t,i){return t&&Fs(t,i,yt)}function Ws(t,i){return t&&yf(t,i,yt)}function Qo(t,i){return or(i,function(s){return Xn(t[s])})}function $r(t,i){i=fr(i,t);for(var s=0,c=i.length;t!=null&&s<c;)t=t[Mn(i[s++])];return s&&s==c?t:n}function wf(t,i,s){var c=i(t);return Te(t)?c:ar(c,s(t))}function Nt(t){return t==null?t===n?yn:An:Mr&&Mr in Ye(t)?Iy(t):zy(t)}function Hs(t,i){return t>i}function V0(t,i){return t!=null&&ze.call(t,i)}function J0(t,i){return t!=null&&i in Ye(t)}function Z0(t,i,s){return t>=Ct(i,s)&&t<vt(i,s)}function Us(t,i,s){for(var c=s?xs:Do,h=t[0].length,b=t.length,x=b,R=W(b),M=1/0,z=[];x--;){var q=t[x];x&&i&&(q=et(q,Vt(i))),M=Ct(q.length,M),R[x]=!s&&(i||h>=120&&q.length>=120)?new kr(x&&q):n}q=t[0];var K=-1,Z=R[0];e:for(;++K<h&&z.length<M;){var re=q[K],ve=i?i(re):re;if(re=s||re!==0?re:0,!(Z?Hi(Z,ve):c(z,ve,s))){for(x=b;--x;){var Pe=R[x];if(!(Pe?Hi(Pe,ve):c(t[x],ve,s)))continue e}Z&&Z.push(ve),z.push(re)}}return z}function Q0(t,i,s,c){return In(t,function(h,b,x){i(c,s(h),b,x)}),c}function Xi(t,i,s){i=fr(i,t),t=ad(t,i);var c=t==null?t:t[Mn(dn(i))];return c==null?n:Xt(c,t,s)}function bf(t){return at(t)&&Nt(t)==fe}function ey(t){return at(t)&&Nt(t)==on}function ty(t){return at(t)&&Nt(t)==ye}function Vi(t,i,s,c,h){return t===i?!0:t==null||i==null||!at(t)&&!at(i)?t!==t&&i!==i:ny(t,i,s,c,Vi,h)}function ny(t,i,s,c,h,b){var x=Te(t),R=Te(i),M=x?ue:Rt(t),z=R?ue:Rt(i);M=M==fe?gt:M,z=z==fe?gt:z;var q=M==gt,K=z==gt,Z=M==z;if(Z&&pr(t)){if(!pr(i))return!1;x=!0,q=!1}if(Z&&!q)return b||(b=new En),x||yi(t)?Qf(t,i,s,c,h,b):Py(t,i,M,s,c,h,b);if(!(s&S)){var re=q&&ze.call(t,"__wrapped__"),ve=K&&ze.call(i,"__wrapped__");if(re||ve){var Pe=re?t.value():t,me=ve?i.value():i;return b||(b=new En),h(Pe,me,s,c,b)}}return Z?(b||(b=new En),Ay(t,i,s,c,h,b)):!1}function ry(t){return at(t)&&Rt(t)==it}function Bs(t,i,s,c){var h=s.length,b=h,x=!c;if(t==null)return!b;for(t=Ye(t);h--;){var R=s[h];if(x&&R[2]?R[1]!==t[R[0]]:!(R[0]in t))return!1}for(;++h<b;){R=s[h];var M=R[0],z=t[M],q=R[1];if(x&&R[2]){if(z===n&&!(M in t))return!1}else{var K=new En;if(c)var Z=c(z,q,M,t,i,K);if(!(Z===n?Vi(q,z,S|y,c,K):Z))return!1}}return!0}function _f(t){if(!tt(t)||Fy(t))return!1;var i=Xn(t)?r0:lt;return i.test(Fr(t))}function iy(t){return at(t)&&Nt(t)==Je}function oy(t){return at(t)&&Rt(t)==Qe}function ay(t){return at(t)&&ma(t.length)&&!!Ze[Nt(t)]}function Sf(t){return typeof t=="function"?t:t==null?zt:typeof t=="object"?Te(t)?Of(t[0],t[1]):xf(t):zd(t)}function zs(t){if(!Qi(t))return l0(t);var i=[];for(var s in Ye(t))ze.call(t,s)&&s!="constructor"&&i.push(s);return i}function sy(t){if(!tt(t))return By(t);var i=Qi(t),s=[];for(var c in t)c=="constructor"&&(i||!ze.call(t,c))||s.push(c);return s}function qs(t,i){return t<i}function Ef(t,i){var s=-1,c=Ut(t)?W(t.length):[];return lr(t,function(h,b,x){c[++s]=i(h,b,x)}),c}function xf(t){var i=au(t);return i.length==1&&i[0][2]?id(i[0][0],i[0][1]):function(s){return s===t||Bs(s,t,i)}}function Of(t,i){return uu(t)&&rd(i)?id(Mn(t),i):function(s){var c=yu(s,t);return c===n&&c===i?wu(s,t):Vi(i,c,S|y)}}function ea(t,i,s,c,h){t!==i&&Fs(i,function(b,x){if(h||(h=new En),tt(b))uy(t,i,x,s,ea,c,h);else{var R=c?c(cu(t,x),b,x+"",t,i,h):n;R===n&&(R=b),$s(t,x,R)}},Bt)}function uy(t,i,s,c,h,b,x){var R=cu(t,s),M=cu(i,s),z=x.get(M);if(z){$s(t,s,z);return}var q=b?b(R,M,s+"",t,i,x):n,K=q===n;if(K){var Z=Te(M),re=!Z&&pr(M),ve=!Z&&!re&&yi(M);q=M,Z||re||ve?Te(R)?q=R:ct(R)?q=Ht(R):re?(K=!1,q=$f(M,!0)):ve?(K=!1,q=jf(M,!0)):q=[]:to(M)||Wr(M)?(q=R,Wr(R)?q=Dd(R):(!tt(R)||Xn(R))&&(q=nd(M))):K=!1}K&&(x.set(M,q),h(q,M,c,b,x),x.delete(M)),$s(t,s,q)}function Tf(t,i){var s=t.length;if(s)return i+=i<0?s:0,Yn(i,s)?t[i]:n}function Cf(t,i,s){i.length?i=et(i,function(b){return Te(b)?function(x){return $r(x,b.length===1?b[0]:b)}:b}):i=[zt];var c=-1;i=et(i,Vt(he()));var h=Ef(t,function(b,x,R){var M=et(i,function(z){return z(b)});return{criteria:M,index:++c,value:b}});return kg(h,function(b,x){return _y(b,x,s)})}function ly(t,i){return Rf(t,i,function(s,c){return wu(t,c)})}function Rf(t,i,s){for(var c=-1,h=i.length,b={};++c<h;){var x=i[c],R=$r(t,x);s(R,x)&&Ji(b,fr(x,t),R)}return b}function cy(t){return function(i){return $r(i,t)}}function Gs(t,i,s,c){var h=c?Dg:si,b=-1,x=i.length,R=t;for(t===i&&(i=Ht(i)),s&&(R=et(t,Vt(s)));++b<x;)for(var M=0,z=i[b],q=s?s(z):z;(M=h(R,q,M,c))>-1;)R!==t&&zo.call(R,M,1),zo.call(t,M,1);return t}function Pf(t,i){for(var s=t?i.length:0,c=s-1;s--;){var h=i[s];if(s==c||h!==b){var b=h;Yn(h)?zo.call(t,h,1):Vs(t,h)}}return t}function Ks(t,i){return t+Ko(lf()*(i-t+1))}function fy(t,i,s,c){for(var h=-1,b=vt(Go((i-t)/(s||1)),0),x=W(b);b--;)x[c?b:++h]=t,t+=s;return x}function Ys(t,i){var s="";if(!t||i<1||i>We)return s;do i%2&&(s+=t),i=Ko(i/2),i&&(t+=t);while(i);return s}function Ae(t,i){return fu(od(t,i,zt),t+"")}function dy(t){return df(wi(t))}function py(t,i){var s=wi(t);return ca(s,Nr(i,0,s.length))}function Ji(t,i,s,c){if(!tt(t))return t;i=fr(i,t);for(var h=-1,b=i.length,x=b-1,R=t;R!=null&&++h<b;){var M=Mn(i[h]),z=s;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=x){var q=R[M];z=c?c(q,M,R):n,z===n&&(z=tt(q)?q:Yn(i[h+1])?[]:{})}Ki(R,M,z),R=R[M]}return t}var Af=Yo?function(t,i){return Yo.set(t,i),t}:zt,hy=qo?function(t,i){return qo(t,"toString",{configurable:!0,enumerable:!1,value:_u(i),writable:!0})}:zt;function vy(t){return ca(wi(t))}function fn(t,i,s){var c=-1,h=t.length;i<0&&(i=-i>h?0:h+i),s=s>h?h:s,s<0&&(s+=h),h=i>s?0:s-i>>>0,i>>>=0;for(var b=W(h);++c<h;)b[c]=t[c+i];return b}function my(t,i){var s;return lr(t,function(c,h,b){return s=i(c,h,b),!s}),!!s}function ta(t,i,s){var c=0,h=t==null?c:t.length;if(typeof i=="number"&&i===i&&h<=ie){for(;c<h;){var b=c+h>>>1,x=t[b];x!==null&&!Zt(x)&&(s?x<=i:x<i)?c=b+1:h=b}return h}return Xs(t,i,zt,s)}function Xs(t,i,s,c){var h=0,b=t==null?0:t.length;if(b===0)return 0;i=s(i);for(var x=i!==i,R=i===null,M=Zt(i),z=i===n;h<b;){var q=Ko((h+b)/2),K=s(t[q]),Z=K!==n,re=K===null,ve=K===K,Pe=Zt(K);if(x)var me=c||ve;else z?me=ve&&(c||Z):R?me=ve&&Z&&(c||!re):M?me=ve&&Z&&!re&&(c||!Pe):re||Pe?me=!1:me=c?K<=i:K<i;me?h=q+1:b=q}return Ct(b,de)}function If(t,i){for(var s=-1,c=t.length,h=0,b=[];++s<c;){var x=t[s],R=i?i(x):x;if(!s||!xn(R,M)){var M=R;b[h++]=x===0?0:x}}return b}function Lf(t){return typeof t=="number"?t:Zt(t)?G:+t}function Jt(t){if(typeof t=="string")return t;if(Te(t))return et(t,Jt)+"";if(Zt(t))return cf?cf.call(t):"";var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function cr(t,i,s){var c=-1,h=Do,b=t.length,x=!0,R=[],M=R;if(s)x=!1,h=xs;else if(b>=a){var z=i?null:Cy(t);if(z)return No(z);x=!1,h=Hi,M=new kr}else M=i?[]:R;e:for(;++c<b;){var q=t[c],K=i?i(q):q;if(q=s||q!==0?q:0,x&&K===K){for(var Z=M.length;Z--;)if(M[Z]===K)continue e;i&&M.push(K),R.push(q)}else h(M,K,s)||(M!==R&&M.push(K),R.push(q))}return R}function Vs(t,i){return i=fr(i,t),t=ad(t,i),t==null||delete t[Mn(dn(i))]}function Mf(t,i,s,c){return Ji(t,i,s($r(t,i)),c)}function na(t,i,s,c){for(var h=t.length,b=c?h:-1;(c?b--:++b<h)&&i(t[b],b,t););return s?fn(t,c?0:b,c?b+1:h):fn(t,c?b+1:0,c?h:b)}function Df(t,i){var s=t;return s instanceof ke&&(s=s.value()),Os(i,function(c,h){return h.func.apply(h.thisArg,ar([c],h.args))},s)}function Js(t,i,s){var c=t.length;if(c<2)return c?cr(t[0]):[];for(var h=-1,b=W(c);++h<c;)for(var x=t[h],R=-1;++R<c;)R!=h&&(b[h]=Yi(b[h]||x,t[R],i,s));return cr(St(b,1),i,s)}function kf(t,i,s){for(var c=-1,h=t.length,b=i.length,x={};++c<h;){var R=c<b?i[c]:n;s(x,t[c],R)}return x}function Zs(t){return ct(t)?t:[]}function Qs(t){return typeof t=="function"?t:zt}function fr(t,i){return Te(t)?t:uu(t,i)?[t]:cd(He(t))}var gy=Ae;function dr(t,i,s){var c=t.length;return s=s===n?c:s,!i&&s>=c?t:fn(t,i,s)}var Nf=i0||function(t){return _t.clearTimeout(t)};function $f(t,i){if(i)return t.slice();var s=t.length,c=rf?rf(s):new t.constructor(s);return t.copy(c),c}function eu(t){var i=new t.constructor(t.byteLength);return new Uo(i).set(new Uo(t)),i}function yy(t,i){var s=i?eu(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function wy(t){var i=new t.constructor(t.source,ot.exec(t));return i.lastIndex=t.lastIndex,i}function by(t){return Gi?Ye(Gi.call(t)):{}}function jf(t,i){var s=i?eu(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Ff(t,i){if(t!==i){var s=t!==n,c=t===null,h=t===t,b=Zt(t),x=i!==n,R=i===null,M=i===i,z=Zt(i);if(!R&&!z&&!b&&t>i||b&&x&&M&&!R&&!z||c&&x&&M||!s&&M||!h)return 1;if(!c&&!b&&!z&&t<i||z&&s&&h&&!c&&!b||R&&s&&h||!x&&h||!M)return-1}return 0}function _y(t,i,s){for(var c=-1,h=t.criteria,b=i.criteria,x=h.length,R=s.length;++c<x;){var M=Ff(h[c],b[c]);if(M){if(c>=R)return M;var z=s[c];return M*(z=="desc"?-1:1)}}return t.index-i.index}function Wf(t,i,s,c){for(var h=-1,b=t.length,x=s.length,R=-1,M=i.length,z=vt(b-x,0),q=W(M+z),K=!c;++R<M;)q[R]=i[R];for(;++h<x;)(K||h<b)&&(q[s[h]]=t[h]);for(;z--;)q[R++]=t[h++];return q}function Hf(t,i,s,c){for(var h=-1,b=t.length,x=-1,R=s.length,M=-1,z=i.length,q=vt(b-R,0),K=W(q+z),Z=!c;++h<q;)K[h]=t[h];for(var re=h;++M<z;)K[re+M]=i[M];for(;++x<R;)(Z||h<b)&&(K[re+s[x]]=t[h++]);return K}function Ht(t,i){var s=-1,c=t.length;for(i||(i=W(c));++s<c;)i[s]=t[s];return i}function Ln(t,i,s,c){var h=!s;s||(s={});for(var b=-1,x=i.length;++b<x;){var R=i[b],M=c?c(s[R],t[R],R,s,t):n;M===n&&(M=t[R]),h?qn(s,R,M):Ki(s,R,M)}return s}function Sy(t,i){return Ln(t,su(t),i)}function Ey(t,i){return Ln(t,ed(t),i)}function ra(t,i){return function(s,c){var h=Te(s)?Rg:q0,b=i?i():{};return h(s,t,he(c,2),b)}}function vi(t){return Ae(function(i,s){var c=-1,h=s.length,b=h>1?s[h-1]:n,x=h>2?s[2]:n;for(b=t.length>3&&typeof b=="function"?(h--,b):n,x&&$t(s[0],s[1],x)&&(b=h<3?n:b,h=1),i=Ye(i);++c<h;){var R=s[c];R&&t(i,R,c,b)}return i})}function Uf(t,i){return function(s,c){if(s==null)return s;if(!Ut(s))return t(s,c);for(var h=s.length,b=i?h:-1,x=Ye(s);(i?b--:++b<h)&&c(x[b],b,x)!==!1;);return s}}function Bf(t){return function(i,s,c){for(var h=-1,b=Ye(i),x=c(i),R=x.length;R--;){var M=x[t?R:++h];if(s(b[M],M,b)===!1)break}return i}}function xy(t,i,s){var c=i&E,h=Zi(t);function b(){var x=this&&this!==_t&&this instanceof b?h:t;return x.apply(c?s:this,arguments)}return b}function zf(t){return function(i){i=He(i);var s=ui(i)?Sn(i):n,c=s?s[0]:i.charAt(0),h=s?dr(s,1).join(""):i.slice(1);return c[t]()+h}}function mi(t){return function(i){return Os(Ud(Hd(i).replace(hg,"")),t,"")}}function Zi(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=hi(t.prototype),c=t.apply(s,i);return tt(c)?c:s}}function Oy(t,i,s){var c=Zi(t);function h(){for(var b=arguments.length,x=W(b),R=b,M=gi(h);R--;)x[R]=arguments[R];var z=b<3&&x[0]!==M&&x[b-1]!==M?[]:sr(x,M);if(b-=z.length,b<s)return Xf(t,i,ia,h.placeholder,n,x,z,n,n,s-b);var q=this&&this!==_t&&this instanceof h?c:t;return Xt(q,this,x)}return h}function qf(t){return function(i,s,c){var h=Ye(i);if(!Ut(i)){var b=he(s,3);i=yt(i),s=function(R){return b(h[R],R,h)}}var x=t(i,s,c);return x>-1?h[b?i[x]:x]:n}}function Gf(t){return Kn(function(i){var s=i.length,c=s,h=ln.prototype.thru;for(t&&i.reverse();c--;){var b=i[c];if(typeof b!="function")throw new un(l);if(h&&!x&&ua(b)=="wrapper")var x=new ln([],!0)}for(c=x?c:s;++c<s;){b=i[c];var R=ua(b),M=R=="wrapper"?ou(b):n;M&&lu(M[0])&&M[1]==(U|C|T|j)&&!M[4].length&&M[9]==1?x=x[ua(M[0])].apply(x,M[3]):x=b.length==1&&lu(b)?x[R]():x.thru(b)}return function(){var z=arguments,q=z[0];if(x&&z.length==1&&Te(q))return x.plant(q).value();for(var K=0,Z=s?i[K].apply(this,z):q;++K<s;)Z=i[K].call(this,Z);return Z}})}function ia(t,i,s,c,h,b,x,R,M,z){var q=i&U,K=i&E,Z=i&D,re=i&(C|k),ve=i&J,Pe=Z?n:Zi(t);function me(){for(var De=arguments.length,Ne=W(De),Qt=De;Qt--;)Ne[Qt]=arguments[Qt];if(re)var jt=gi(me),en=$g(Ne,jt);if(c&&(Ne=Wf(Ne,c,h,re)),b&&(Ne=Hf(Ne,b,x,re)),De-=en,re&&De<z){var ft=sr(Ne,jt);return Xf(t,i,ia,me.placeholder,s,Ne,ft,R,M,z-De)}var On=K?s:this,Jn=Z?On[t]:t;return De=Ne.length,R?Ne=qy(Ne,R):ve&&De>1&&Ne.reverse(),q&&M<De&&(Ne.length=M),this&&this!==_t&&this instanceof me&&(Jn=Pe||Zi(Jn)),Jn.apply(On,Ne)}return me}function Kf(t,i){return function(s,c){return Q0(s,t,i(c),{})}}function oa(t,i){return function(s,c){var h;if(s===n&&c===n)return i;if(s!==n&&(h=s),c!==n){if(h===n)return c;typeof s=="string"||typeof c=="string"?(s=Jt(s),c=Jt(c)):(s=Lf(s),c=Lf(c)),h=t(s,c)}return h}}function tu(t){return Kn(function(i){return i=et(i,Vt(he())),Ae(function(s){var c=this;return t(i,function(h){return Xt(h,c,s)})})})}function aa(t,i){i=i===n?" ":Jt(i);var s=i.length;if(s<2)return s?Ys(i,t):i;var c=Ys(i,Go(t/li(i)));return ui(i)?dr(Sn(c),0,t).join(""):c.slice(0,t)}function Ty(t,i,s,c){var h=i&E,b=Zi(t);function x(){for(var R=-1,M=arguments.length,z=-1,q=c.length,K=W(q+M),Z=this&&this!==_t&&this instanceof x?b:t;++z<q;)K[z]=c[z];for(;M--;)K[z++]=arguments[++R];return Xt(Z,h?s:this,K)}return x}function Yf(t){return function(i,s,c){return c&&typeof c!="number"&&$t(i,s,c)&&(s=c=n),i=Vn(i),s===n?(s=i,i=0):s=Vn(s),c=c===n?i<s?1:-1:Vn(c),fy(i,s,c,t)}}function sa(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=pn(i),s=pn(s)),t(i,s)}}function Xf(t,i,s,c,h,b,x,R,M,z){var q=i&C,K=q?x:n,Z=q?n:x,re=q?b:n,ve=q?n:b;i|=q?T:H,i&=~(q?H:T),i&I||(i&=~(E|D));var Pe=[t,i,h,re,K,ve,Z,R,M,z],me=s.apply(n,Pe);return lu(t)&&sd(me,Pe),me.placeholder=c,ud(me,t,i)}function nu(t){var i=ht[t];return function(s,c){if(s=pn(s),c=c==null?0:Ct(Re(c),292),c&&uf(s)){var h=(He(s)+"e").split("e"),b=i(h[0]+"e"+(+h[1]+c));return h=(He(b)+"e").split("e"),+(h[0]+"e"+(+h[1]-c))}return i(s)}}var Cy=di&&1/No(new di([,-0]))[1]==xe?function(t){return new di(t)}:xu;function Vf(t){return function(i){var s=Rt(i);return s==it?Ls(i):s==Qe?zg(i):Ng(i,t(i))}}function Gn(t,i,s,c,h,b,x,R){var M=i&D;if(!M&&typeof t!="function")throw new un(l);var z=c?c.length:0;if(z||(i&=~(T|H),c=h=n),x=x===n?x:vt(Re(x),0),R=R===n?R:Re(R),z-=h?h.length:0,i&H){var q=c,K=h;c=h=n}var Z=M?n:ou(t),re=[t,i,s,c,h,q,K,b,x,R];if(Z&&Uy(re,Z),t=re[0],i=re[1],s=re[2],c=re[3],h=re[4],R=re[9]=re[9]===n?M?0:t.length:vt(re[9]-z,0),!R&&i&(C|k)&&(i&=~(C|k)),!i||i==E)var ve=xy(t,i,s);else i==C||i==k?ve=Oy(t,i,R):(i==T||i==(E|T))&&!h.length?ve=Ty(t,i,s,c):ve=ia.apply(n,re);var Pe=Z?Af:sd;return ud(Pe(ve,re),t,i)}function Jf(t,i,s,c){return t===n||xn(t,fi[s])&&!ze.call(c,s)?i:t}function Zf(t,i,s,c,h,b){return tt(t)&&tt(i)&&(b.set(i,t),ea(t,i,n,Zf,b),b.delete(i)),t}function Ry(t){return to(t)?n:t}function Qf(t,i,s,c,h,b){var x=s&S,R=t.length,M=i.length;if(R!=M&&!(x&&M>R))return!1;var z=b.get(t),q=b.get(i);if(z&&q)return z==i&&q==t;var K=-1,Z=!0,re=s&y?new kr:n;for(b.set(t,i),b.set(i,t);++K<R;){var ve=t[K],Pe=i[K];if(c)var me=x?c(Pe,ve,K,i,t,b):c(ve,Pe,K,t,i,b);if(me!==n){if(me)continue;Z=!1;break}if(re){if(!Ts(i,function(De,Ne){if(!Hi(re,Ne)&&(ve===De||h(ve,De,s,c,b)))return re.push(Ne)})){Z=!1;break}}else if(!(ve===Pe||h(ve,Pe,s,c,b))){Z=!1;break}}return b.delete(t),b.delete(i),Z}function Py(t,i,s,c,h,b,x){switch(s){case Yt:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case on:return!(t.byteLength!=i.byteLength||!b(new Uo(t),new Uo(i)));case le:case ye:case dt:return xn(+t,+i);case Ke:return t.name==i.name&&t.message==i.message;case Je:case rn:return t==i+"";case it:var R=Ls;case Qe:var M=c&S;if(R||(R=No),t.size!=i.size&&!M)return!1;var z=x.get(t);if(z)return z==i;c|=y,x.set(t,i);var q=Qf(R(t),R(i),c,h,b,x);return x.delete(t),q;case Kt:if(Gi)return Gi.call(t)==Gi.call(i)}return!1}function Ay(t,i,s,c,h,b){var x=s&S,R=ru(t),M=R.length,z=ru(i),q=z.length;if(M!=q&&!x)return!1;for(var K=M;K--;){var Z=R[K];if(!(x?Z in i:ze.call(i,Z)))return!1}var re=b.get(t),ve=b.get(i);if(re&&ve)return re==i&&ve==t;var Pe=!0;b.set(t,i),b.set(i,t);for(var me=x;++K<M;){Z=R[K];var De=t[Z],Ne=i[Z];if(c)var Qt=x?c(Ne,De,Z,i,t,b):c(De,Ne,Z,t,i,b);if(!(Qt===n?De===Ne||h(De,Ne,s,c,b):Qt)){Pe=!1;break}me||(me=Z=="constructor")}if(Pe&&!me){var jt=t.constructor,en=i.constructor;jt!=en&&"constructor"in t&&"constructor"in i&&!(typeof jt=="function"&&jt instanceof jt&&typeof en=="function"&&en instanceof en)&&(Pe=!1)}return b.delete(t),b.delete(i),Pe}function Kn(t){return fu(od(t,n,hd),t+"")}function ru(t){return wf(t,yt,su)}function iu(t){return wf(t,Bt,ed)}var ou=Yo?function(t){return Yo.get(t)}:xu;function ua(t){for(var i=t.name+"",s=pi[i],c=ze.call(pi,i)?s.length:0;c--;){var h=s[c],b=h.func;if(b==null||b==t)return h.name}return i}function gi(t){var i=ze.call(w,"placeholder")?w:t;return i.placeholder}function he(){var t=w.iteratee||Su;return t=t===Su?Sf:t,arguments.length?t(arguments[0],arguments[1]):t}function la(t,i){var s=t.__data__;return jy(i)?s[typeof i=="string"?"string":"hash"]:s.map}function au(t){for(var i=yt(t),s=i.length;s--;){var c=i[s],h=t[c];i[s]=[c,h,rd(h)]}return i}function jr(t,i){var s=Hg(t,i);return _f(s)?s:n}function Iy(t){var i=ze.call(t,Mr),s=t[Mr];try{t[Mr]=n;var c=!0}catch{}var h=Wo.call(t);return c&&(i?t[Mr]=s:delete t[Mr]),h}var su=Ds?function(t){return t==null?[]:(t=Ye(t),or(Ds(t),function(i){return af.call(t,i)}))}:Ou,ed=Ds?function(t){for(var i=[];t;)ar(i,su(t)),t=Bo(t);return i}:Ou,Rt=Nt;(ks&&Rt(new ks(new ArrayBuffer(1)))!=Yt||Bi&&Rt(new Bi)!=it||Ns&&Rt(Ns.resolve())!=Wt||di&&Rt(new di)!=Qe||zi&&Rt(new zi)!=Tt)&&(Rt=function(t){var i=Nt(t),s=i==gt?t.constructor:n,c=s?Fr(s):"";if(c)switch(c){case p0:return Yt;case h0:return it;case v0:return Wt;case m0:return Qe;case g0:return Tt}return i});function Ly(t,i,s){for(var c=-1,h=s.length;++c<h;){var b=s[c],x=b.size;switch(b.type){case"drop":t+=x;break;case"dropRight":i-=x;break;case"take":i=Ct(i,t+x);break;case"takeRight":t=vt(t,i-x);break}}return{start:t,end:i}}function My(t){var i=t.match(ae);return i?i[1].split(te):[]}function td(t,i,s){i=fr(i,t);for(var c=-1,h=i.length,b=!1;++c<h;){var x=Mn(i[c]);if(!(b=t!=null&&s(t,x)))break;t=t[x]}return b||++c!=h?b:(h=t==null?0:t.length,!!h&&ma(h)&&Yn(x,h)&&(Te(t)||Wr(t)))}function Dy(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&ze.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function nd(t){return typeof t.constructor=="function"&&!Qi(t)?hi(Bo(t)):{}}function ky(t,i,s){var c=t.constructor;switch(i){case on:return eu(t);case le:case ye:return new c(+t);case Yt:return yy(t,s);case Er:case xr:case Or:case Tr:case wn:case Un:case bt:case bn:case _n:return jf(t,s);case it:return new c;case dt:case rn:return new c(t);case Je:return wy(t);case Qe:return new c;case Kt:return by(t)}}function Ny(t,i){var s=i.length;if(!s)return t;var c=s-1;return i[c]=(s>1?"& ":"")+i[c],i=i.join(s>2?", ":" "),t.replace(oe,`{
184
- /* [wrapped with `+i+`] */
185
- `)}function $y(t){return Te(t)||Wr(t)||!!(sf&&t&&t[sf])}function Yn(t,i){var s=typeof t;return i=i??We,!!i&&(s=="number"||s!="symbol"&&Xm.test(t))&&t>-1&&t%1==0&&t<i}function $t(t,i,s){if(!tt(s))return!1;var c=typeof i;return(c=="number"?Ut(s)&&Yn(i,s.length):c=="string"&&i in s)?xn(s[i],t):!1}function uu(t,i){if(Te(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Zt(t)?!0:Fi.test(t)||!ji.test(t)||i!=null&&t in Ye(i)}function jy(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function lu(t){var i=ua(t),s=w[i];if(typeof s!="function"||!(i in ke.prototype))return!1;if(t===s)return!0;var c=ou(s);return!!c&&t===c[0]}function Fy(t){return!!nf&&nf in t}var Wy=jo?Xn:Tu;function Qi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||fi;return t===s}function rd(t){return t===t&&!tt(t)}function id(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in Ye(s))}}function Hy(t){var i=ha(t,function(c){return s.size===v&&s.clear(),c}),s=i.cache;return i}function Uy(t,i){var s=t[1],c=i[1],h=s|c,b=h<(E|D|U),x=c==U&&s==C||c==U&&s==j&&t[7].length<=i[8]||c==(U|j)&&i[7].length<=i[8]&&s==C;if(!(b||x))return t;c&E&&(t[2]=i[2],h|=s&E?0:I);var R=i[3];if(R){var M=t[3];t[3]=M?Wf(M,R,i[4]):R,t[4]=M?sr(t[3],g):i[4]}return R=i[5],R&&(M=t[5],t[5]=M?Hf(M,R,i[6]):R,t[6]=M?sr(t[5],g):i[6]),R=i[7],R&&(t[7]=R),c&U&&(t[8]=t[8]==null?i[8]:Ct(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=h,t}function By(t){var i=[];if(t!=null)for(var s in Ye(t))i.push(s);return i}function zy(t){return Wo.call(t)}function od(t,i,s){return i=vt(i===n?t.length-1:i,0),function(){for(var c=arguments,h=-1,b=vt(c.length-i,0),x=W(b);++h<b;)x[h]=c[i+h];h=-1;for(var R=W(i+1);++h<i;)R[h]=c[h];return R[i]=s(x),Xt(t,this,R)}}function ad(t,i){return i.length<2?t:$r(t,fn(i,0,-1))}function qy(t,i){for(var s=t.length,c=Ct(i.length,s),h=Ht(t);c--;){var b=i[c];t[c]=Yn(b,s)?h[b]:n}return t}function cu(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var sd=ld(Af),eo=a0||function(t,i){return _t.setTimeout(t,i)},fu=ld(hy);function ud(t,i,s){var c=i+"";return fu(t,Ny(c,Gy(My(c),s)))}function ld(t){var i=0,s=0;return function(){var c=c0(),h=_e-(c-s);if(s=c,h>0){if(++i>=Ce)return arguments[0]}else i=0;return t.apply(n,arguments)}}function ca(t,i){var s=-1,c=t.length,h=c-1;for(i=i===n?c:i;++s<i;){var b=Ks(s,h),x=t[b];t[b]=t[s],t[s]=x}return t.length=i,t}var cd=Hy(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Wi,function(s,c,h,b){i.push(h?b.replace(Se,"$1"):c||s)}),i});function Mn(t){if(typeof t=="string"||Zt(t))return t;var i=t+"";return i=="0"&&1/t==-xe?"-0":i}function Fr(t){if(t!=null){try{return Fo.call(t)}catch{}try{return t+""}catch{}}return""}function Gy(t,i){return sn(ce,function(s){var c="_."+s[0];i&s[1]&&!Do(t,c)&&t.push(c)}),t.sort()}function fd(t){if(t instanceof ke)return t.clone();var i=new ln(t.__wrapped__,t.__chain__);return i.__actions__=Ht(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function Ky(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=vt(Re(i),0);var c=t==null?0:t.length;if(!c||i<1)return[];for(var h=0,b=0,x=W(Go(c/i));h<c;)x[b++]=fn(t,h,h+=i);return x}function Yy(t){for(var i=-1,s=t==null?0:t.length,c=0,h=[];++i<s;){var b=t[i];b&&(h[c++]=b)}return h}function Xy(){var t=arguments.length;if(!t)return[];for(var i=W(t-1),s=arguments[0],c=t;c--;)i[c-1]=arguments[c];return ar(Te(s)?Ht(s):[s],St(i,1))}var Vy=Ae(function(t,i){return ct(t)?Yi(t,St(i,1,ct,!0)):[]}),Jy=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Yi(t,St(i,1,ct,!0),he(s,2)):[]}),Zy=Ae(function(t,i){var s=dn(i);return ct(s)&&(s=n),ct(t)?Yi(t,St(i,1,ct,!0),n,s):[]});function Qy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),fn(t,i<0?0:i,c)):[]}function e1(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,0,i<0?0:i)):[]}function t1(t,i){return t&&t.length?na(t,he(i,3),!0,!0):[]}function n1(t,i){return t&&t.length?na(t,he(i,3),!0):[]}function r1(t,i,s,c){var h=t==null?0:t.length;return h?(s&&typeof s!="number"&&$t(t,i,s)&&(s=0,c=h),X0(t,i,s,c)):[]}function dd(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=vt(c+h,0)),ko(t,he(i,3),h)}function pd(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c-1;return s!==n&&(h=Re(s),h=s<0?vt(c+h,0):Ct(h,c-1)),ko(t,he(i,3),h,!0)}function hd(t){var i=t==null?0:t.length;return i?St(t,1):[]}function i1(t){var i=t==null?0:t.length;return i?St(t,xe):[]}function o1(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Re(i),St(t,i)):[]}function a1(t){for(var i=-1,s=t==null?0:t.length,c={};++i<s;){var h=t[i];c[h[0]]=h[1]}return c}function vd(t){return t&&t.length?t[0]:n}function s1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=s==null?0:Re(s);return h<0&&(h=vt(c+h,0)),si(t,i,h)}function u1(t){var i=t==null?0:t.length;return i?fn(t,0,-1):[]}var l1=Ae(function(t){var i=et(t,Zs);return i.length&&i[0]===t[0]?Us(i):[]}),c1=Ae(function(t){var i=dn(t),s=et(t,Zs);return i===dn(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Us(s,he(i,2)):[]}),f1=Ae(function(t){var i=dn(t),s=et(t,Zs);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Us(s,n,i):[]});function d1(t,i){return t==null?"":u0.call(t,i)}function dn(t){var i=t==null?0:t.length;return i?t[i-1]:n}function p1(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var h=c;return s!==n&&(h=Re(s),h=h<0?vt(c+h,0):Ct(h,c-1)),i===i?Gg(t,i,h):ko(t,Yc,h,!0)}function h1(t,i){return t&&t.length?Tf(t,Re(i)):n}var v1=Ae(md);function md(t,i){return t&&t.length&&i&&i.length?Gs(t,i):t}function m1(t,i,s){return t&&t.length&&i&&i.length?Gs(t,i,he(s,2)):t}function g1(t,i,s){return t&&t.length&&i&&i.length?Gs(t,i,n,s):t}var y1=Kn(function(t,i){var s=t==null?0:t.length,c=js(t,i);return Pf(t,et(i,function(h){return Yn(h,s)?+h:h}).sort(Ff)),c});function w1(t,i){var s=[];if(!(t&&t.length))return s;var c=-1,h=[],b=t.length;for(i=he(i,3);++c<b;){var x=t[c];i(x,c,t)&&(s.push(x),h.push(c))}return Pf(t,h),s}function du(t){return t==null?t:d0.call(t)}function b1(t,i,s){var c=t==null?0:t.length;return c?(s&&typeof s!="number"&&$t(t,i,s)?(i=0,s=c):(i=i==null?0:Re(i),s=s===n?c:Re(s)),fn(t,i,s)):[]}function _1(t,i){return ta(t,i)}function S1(t,i,s){return Xs(t,i,he(s,2))}function E1(t,i){var s=t==null?0:t.length;if(s){var c=ta(t,i);if(c<s&&xn(t[c],i))return c}return-1}function x1(t,i){return ta(t,i,!0)}function O1(t,i,s){return Xs(t,i,he(s,2),!0)}function T1(t,i){var s=t==null?0:t.length;if(s){var c=ta(t,i,!0)-1;if(xn(t[c],i))return c}return-1}function C1(t){return t&&t.length?If(t):[]}function R1(t,i){return t&&t.length?If(t,he(i,2)):[]}function P1(t){var i=t==null?0:t.length;return i?fn(t,1,i):[]}function A1(t,i,s){return t&&t.length?(i=s||i===n?1:Re(i),fn(t,0,i<0?0:i)):[]}function I1(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:Re(i),i=c-i,fn(t,i<0?0:i,c)):[]}function L1(t,i){return t&&t.length?na(t,he(i,3),!1,!0):[]}function M1(t,i){return t&&t.length?na(t,he(i,3)):[]}var D1=Ae(function(t){return cr(St(t,1,ct,!0))}),k1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),cr(St(t,1,ct,!0),he(i,2))}),N1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,cr(St(t,1,ct,!0),n,i)});function $1(t){return t&&t.length?cr(t):[]}function j1(t,i){return t&&t.length?cr(t,he(i,2)):[]}function F1(t,i){return i=typeof i=="function"?i:n,t&&t.length?cr(t,n,i):[]}function pu(t){if(!(t&&t.length))return[];var i=0;return t=or(t,function(s){if(ct(s))return i=vt(s.length,i),!0}),As(i,function(s){return et(t,Cs(s))})}function gd(t,i){if(!(t&&t.length))return[];var s=pu(t);return i==null?s:et(s,function(c){return Xt(i,n,c)})}var W1=Ae(function(t,i){return ct(t)?Yi(t,i):[]}),H1=Ae(function(t){return Js(or(t,ct))}),U1=Ae(function(t){var i=dn(t);return ct(i)&&(i=n),Js(or(t,ct),he(i,2))}),B1=Ae(function(t){var i=dn(t);return i=typeof i=="function"?i:n,Js(or(t,ct),n,i)}),z1=Ae(pu);function q1(t,i){return kf(t||[],i||[],Ki)}function G1(t,i){return kf(t||[],i||[],Ji)}var K1=Ae(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,gd(t,s)});function yd(t){var i=w(t);return i.__chain__=!0,i}function Y1(t,i){return i(t),t}function fa(t,i){return i(t)}var X1=Kn(function(t){var i=t.length,s=i?t[0]:0,c=this.__wrapped__,h=function(b){return js(b,t)};return i>1||this.__actions__.length||!(c instanceof ke)||!Yn(s)?this.thru(h):(c=c.slice(s,+s+(i?1:0)),c.__actions__.push({func:fa,args:[h],thisArg:n}),new ln(c,this.__chain__).thru(function(b){return i&&!b.length&&b.push(n),b}))});function V1(){return yd(this)}function J1(){return new ln(this.value(),this.__chain__)}function Z1(){this.__values__===n&&(this.__values__=Ld(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function Q1(){return this}function ew(t){for(var i,s=this;s instanceof Vo;){var c=fd(s);c.__index__=0,c.__values__=n,i?h.__wrapped__=c:i=c;var h=c;s=s.__wrapped__}return h.__wrapped__=t,i}function tw(){var t=this.__wrapped__;if(t instanceof ke){var i=t;return this.__actions__.length&&(i=new ke(this)),i=i.reverse(),i.__actions__.push({func:fa,args:[du],thisArg:n}),new ln(i,this.__chain__)}return this.thru(du)}function nw(){return Df(this.__wrapped__,this.__actions__)}var rw=ra(function(t,i,s){ze.call(t,s)?++t[s]:qn(t,s,1)});function iw(t,i,s){var c=Te(t)?Gc:Y0;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}function ow(t,i){var s=Te(t)?or:gf;return s(t,he(i,3))}var aw=qf(dd),sw=qf(pd);function uw(t,i){return St(da(t,i),1)}function lw(t,i){return St(da(t,i),xe)}function cw(t,i,s){return s=s===n?1:Re(s),St(da(t,i),s)}function wd(t,i){var s=Te(t)?sn:lr;return s(t,he(i,3))}function bd(t,i){var s=Te(t)?Pg:mf;return s(t,he(i,3))}var fw=ra(function(t,i,s){ze.call(t,s)?t[s].push(i):qn(t,s,[i])});function dw(t,i,s,c){t=Ut(t)?t:wi(t),s=s&&!c?Re(s):0;var h=t.length;return s<0&&(s=vt(h+s,0)),ga(t)?s<=h&&t.indexOf(i,s)>-1:!!h&&si(t,i,s)>-1}var pw=Ae(function(t,i,s){var c=-1,h=typeof i=="function",b=Ut(t)?W(t.length):[];return lr(t,function(x){b[++c]=h?Xt(i,x,s):Xi(x,i,s)}),b}),hw=ra(function(t,i,s){qn(t,s,i)});function da(t,i){var s=Te(t)?et:Ef;return s(t,he(i,3))}function vw(t,i,s,c){return t==null?[]:(Te(i)||(i=i==null?[]:[i]),s=c?n:s,Te(s)||(s=s==null?[]:[s]),Cf(t,i,s))}var mw=ra(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function gw(t,i,s){var c=Te(t)?Os:Vc,h=arguments.length<3;return c(t,he(i,4),s,h,lr)}function yw(t,i,s){var c=Te(t)?Ag:Vc,h=arguments.length<3;return c(t,he(i,4),s,h,mf)}function ww(t,i){var s=Te(t)?or:gf;return s(t,va(he(i,3)))}function bw(t){var i=Te(t)?df:dy;return i(t)}function _w(t,i,s){(s?$t(t,i,s):i===n)?i=1:i=Re(i);var c=Te(t)?B0:py;return c(t,i)}function Sw(t){var i=Te(t)?z0:vy;return i(t)}function Ew(t){if(t==null)return 0;if(Ut(t))return ga(t)?li(t):t.length;var i=Rt(t);return i==it||i==Qe?t.size:zs(t).length}function xw(t,i,s){var c=Te(t)?Ts:my;return s&&$t(t,i,s)&&(i=n),c(t,he(i,3))}var Ow=Ae(function(t,i){if(t==null)return[];var s=i.length;return s>1&&$t(t,i[0],i[1])?i=[]:s>2&&$t(i[0],i[1],i[2])&&(i=[i[0]]),Cf(t,St(i,1),[])}),pa=o0||function(){return _t.Date.now()};function Tw(t,i){if(typeof i!="function")throw new un(l);return t=Re(t),function(){if(--t<1)return i.apply(this,arguments)}}function _d(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Gn(t,U,n,n,n,n,i)}function Sd(t,i){var s;if(typeof i!="function")throw new un(l);return t=Re(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var hu=Ae(function(t,i,s){var c=E;if(s.length){var h=sr(s,gi(hu));c|=T}return Gn(t,c,i,s,h)}),Ed=Ae(function(t,i,s){var c=E|D;if(s.length){var h=sr(s,gi(Ed));c|=T}return Gn(i,c,t,s,h)});function xd(t,i,s){i=s?n:i;var c=Gn(t,C,n,n,n,n,n,i);return c.placeholder=xd.placeholder,c}function Od(t,i,s){i=s?n:i;var c=Gn(t,k,n,n,n,n,n,i);return c.placeholder=Od.placeholder,c}function Td(t,i,s){var c,h,b,x,R,M,z=0,q=!1,K=!1,Z=!0;if(typeof t!="function")throw new un(l);i=pn(i)||0,tt(s)&&(q=!!s.leading,K="maxWait"in s,b=K?vt(pn(s.maxWait)||0,i):b,Z="trailing"in s?!!s.trailing:Z);function re(ft){var On=c,Jn=h;return c=h=n,z=ft,x=t.apply(Jn,On),x}function ve(ft){return z=ft,R=eo(De,i),q?re(ft):x}function Pe(ft){var On=ft-M,Jn=ft-z,qd=i-On;return K?Ct(qd,b-Jn):qd}function me(ft){var On=ft-M,Jn=ft-z;return M===n||On>=i||On<0||K&&Jn>=b}function De(){var ft=pa();if(me(ft))return Ne(ft);R=eo(De,Pe(ft))}function Ne(ft){return R=n,Z&&c?re(ft):(c=h=n,x)}function Qt(){R!==n&&Nf(R),z=0,c=M=h=R=n}function jt(){return R===n?x:Ne(pa())}function en(){var ft=pa(),On=me(ft);if(c=arguments,h=this,M=ft,On){if(R===n)return ve(M);if(K)return Nf(R),R=eo(De,i),re(M)}return R===n&&(R=eo(De,i)),x}return en.cancel=Qt,en.flush=jt,en}var Cw=Ae(function(t,i){return vf(t,1,i)}),Rw=Ae(function(t,i,s){return vf(t,pn(i)||0,s)});function Pw(t){return Gn(t,J)}function ha(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new un(l);var s=function(){var c=arguments,h=i?i.apply(this,c):c[0],b=s.cache;if(b.has(h))return b.get(h);var x=t.apply(this,c);return s.cache=b.set(h,x)||b,x};return s.cache=new(ha.Cache||zn),s}ha.Cache=zn;function va(t){if(typeof t!="function")throw new un(l);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Aw(t){return Sd(2,t)}var Iw=gy(function(t,i){i=i.length==1&&Te(i[0])?et(i[0],Vt(he())):et(St(i,1),Vt(he()));var s=i.length;return Ae(function(c){for(var h=-1,b=Ct(c.length,s);++h<b;)c[h]=i[h].call(this,c[h]);return Xt(t,this,c)})}),vu=Ae(function(t,i){var s=sr(i,gi(vu));return Gn(t,T,n,i,s)}),Cd=Ae(function(t,i){var s=sr(i,gi(Cd));return Gn(t,H,n,i,s)}),Lw=Kn(function(t,i){return Gn(t,j,n,n,n,i)});function Mw(t,i){if(typeof t!="function")throw new un(l);return i=i===n?i:Re(i),Ae(t,i)}function Dw(t,i){if(typeof t!="function")throw new un(l);return i=i==null?0:vt(Re(i),0),Ae(function(s){var c=s[i],h=dr(s,0,i);return c&&ar(h,c),Xt(t,this,h)})}function kw(t,i,s){var c=!0,h=!0;if(typeof t!="function")throw new un(l);return tt(s)&&(c="leading"in s?!!s.leading:c,h="trailing"in s?!!s.trailing:h),Td(t,i,{leading:c,maxWait:i,trailing:h})}function Nw(t){return _d(t,1)}function $w(t,i){return vu(Qs(i),t)}function jw(){if(!arguments.length)return[];var t=arguments[0];return Te(t)?t:[t]}function Fw(t){return cn(t,m)}function Ww(t,i){return i=typeof i=="function"?i:n,cn(t,m,i)}function Hw(t){return cn(t,_|m)}function Uw(t,i){return i=typeof i=="function"?i:n,cn(t,_|m,i)}function Bw(t,i){return i==null||hf(t,i,yt(i))}function xn(t,i){return t===i||t!==t&&i!==i}var zw=sa(Hs),qw=sa(function(t,i){return t>=i}),Wr=bf(function(){return arguments}())?bf:function(t){return at(t)&&ze.call(t,"callee")&&!af.call(t,"callee")},Te=W.isArray,Gw=Wc?Vt(Wc):ey;function Ut(t){return t!=null&&ma(t.length)&&!Xn(t)}function ct(t){return at(t)&&Ut(t)}function Kw(t){return t===!0||t===!1||at(t)&&Nt(t)==le}var pr=s0||Tu,Yw=Hc?Vt(Hc):ty;function Xw(t){return at(t)&&t.nodeType===1&&!to(t)}function Vw(t){if(t==null)return!0;if(Ut(t)&&(Te(t)||typeof t=="string"||typeof t.splice=="function"||pr(t)||yi(t)||Wr(t)))return!t.length;var i=Rt(t);if(i==it||i==Qe)return!t.size;if(Qi(t))return!zs(t).length;for(var s in t)if(ze.call(t,s))return!1;return!0}function Jw(t,i){return Vi(t,i)}function Zw(t,i,s){s=typeof s=="function"?s:n;var c=s?s(t,i):n;return c===n?Vi(t,i,n,s):!!c}function mu(t){if(!at(t))return!1;var i=Nt(t);return i==Ke||i==be||typeof t.message=="string"&&typeof t.name=="string"&&!to(t)}function Qw(t){return typeof t=="number"&&uf(t)}function Xn(t){if(!tt(t))return!1;var i=Nt(t);return i==V||i==rt||i==pe||i==Sr}function Rd(t){return typeof t=="number"&&t==Re(t)}function ma(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=We}function tt(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function at(t){return t!=null&&typeof t=="object"}var Pd=Uc?Vt(Uc):ry;function eb(t,i){return t===i||Bs(t,i,au(i))}function tb(t,i,s){return s=typeof s=="function"?s:n,Bs(t,i,au(i),s)}function nb(t){return Ad(t)&&t!=+t}function rb(t){if(Wy(t))throw new Ee(u);return _f(t)}function ib(t){return t===null}function ob(t){return t==null}function Ad(t){return typeof t=="number"||at(t)&&Nt(t)==dt}function to(t){if(!at(t)||Nt(t)!=gt)return!1;var i=Bo(t);if(i===null)return!0;var s=ze.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&Fo.call(s)==t0}var gu=Bc?Vt(Bc):iy;function ab(t){return Rd(t)&&t>=-We&&t<=We}var Id=zc?Vt(zc):oy;function ga(t){return typeof t=="string"||!Te(t)&&at(t)&&Nt(t)==rn}function Zt(t){return typeof t=="symbol"||at(t)&&Nt(t)==Kt}var yi=qc?Vt(qc):ay;function sb(t){return t===n}function ub(t){return at(t)&&Rt(t)==Tt}function lb(t){return at(t)&&Nt(t)==rr}var cb=sa(qs),fb=sa(function(t,i){return t<=i});function Ld(t){if(!t)return[];if(Ut(t))return ga(t)?Sn(t):Ht(t);if(Ui&&t[Ui])return Bg(t[Ui]());var i=Rt(t),s=i==it?Ls:i==Qe?No:wi;return s(t)}function Vn(t){if(!t)return t===0?t:0;if(t=pn(t),t===xe||t===-xe){var i=t<0?-1:1;return i*ut}return t===t?t:0}function Re(t){var i=Vn(t),s=i%1;return i===i?s?i-s:i:0}function Md(t){return t?Nr(Re(t),0,X):0}function pn(t){if(typeof t=="number")return t;if(Zt(t))return G;if(tt(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=tt(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Jc(t);var s=Ir.test(t);return s||Ym.test(t)?Tg(t.slice(2),s?2:8):kt.test(t)?G:+t}function Dd(t){return Ln(t,Bt(t))}function db(t){return t?Nr(Re(t),-We,We):t===0?t:0}function He(t){return t==null?"":Jt(t)}var pb=vi(function(t,i){if(Qi(i)||Ut(i)){Ln(i,yt(i),t);return}for(var s in i)ze.call(i,s)&&Ki(t,s,i[s])}),kd=vi(function(t,i){Ln(i,Bt(i),t)}),ya=vi(function(t,i,s,c){Ln(i,Bt(i),t,c)}),hb=vi(function(t,i,s,c){Ln(i,yt(i),t,c)}),vb=Kn(js);function mb(t,i){var s=hi(t);return i==null?s:pf(s,i)}var gb=Ae(function(t,i){t=Ye(t);var s=-1,c=i.length,h=c>2?i[2]:n;for(h&&$t(i[0],i[1],h)&&(c=1);++s<c;)for(var b=i[s],x=Bt(b),R=-1,M=x.length;++R<M;){var z=x[R],q=t[z];(q===n||xn(q,fi[z])&&!ze.call(t,z))&&(t[z]=b[z])}return t}),yb=Ae(function(t){return t.push(n,Zf),Xt(Nd,n,t)});function wb(t,i){return Kc(t,he(i,3),In)}function bb(t,i){return Kc(t,he(i,3),Ws)}function _b(t,i){return t==null?t:Fs(t,he(i,3),Bt)}function Sb(t,i){return t==null?t:yf(t,he(i,3),Bt)}function Eb(t,i){return t&&In(t,he(i,3))}function xb(t,i){return t&&Ws(t,he(i,3))}function Ob(t){return t==null?[]:Qo(t,yt(t))}function Tb(t){return t==null?[]:Qo(t,Bt(t))}function yu(t,i,s){var c=t==null?n:$r(t,i);return c===n?s:c}function Cb(t,i){return t!=null&&td(t,i,V0)}function wu(t,i){return t!=null&&td(t,i,J0)}var Rb=Kf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Wo.call(i)),t[i]=s},_u(zt)),Pb=Kf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Wo.call(i)),ze.call(t,i)?t[i].push(s):t[i]=[s]},he),Ab=Ae(Xi);function yt(t){return Ut(t)?ff(t):zs(t)}function Bt(t){return Ut(t)?ff(t,!0):sy(t)}function Ib(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){qn(s,i(c,h,b),c)}),s}function Lb(t,i){var s={};return i=he(i,3),In(t,function(c,h,b){qn(s,h,i(c,h,b))}),s}var Mb=vi(function(t,i,s){ea(t,i,s)}),Nd=vi(function(t,i,s,c){ea(t,i,s,c)}),Db=Kn(function(t,i){var s={};if(t==null)return s;var c=!1;i=et(i,function(b){return b=fr(b,t),c||(c=b.length>1),b}),Ln(t,iu(t),s),c&&(s=cn(s,_|O|m,Ry));for(var h=i.length;h--;)Vs(s,i[h]);return s});function kb(t,i){return $d(t,va(he(i)))}var Nb=Kn(function(t,i){return t==null?{}:ly(t,i)});function $d(t,i){if(t==null)return{};var s=et(iu(t),function(c){return[c]});return i=he(i),Rf(t,s,function(c,h){return i(c,h[0])})}function $b(t,i,s){i=fr(i,t);var c=-1,h=i.length;for(h||(h=1,t=n);++c<h;){var b=t==null?n:t[Mn(i[c])];b===n&&(c=h,b=s),t=Xn(b)?b.call(t):b}return t}function jb(t,i,s){return t==null?t:Ji(t,i,s)}function Fb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Ji(t,i,s,c)}var jd=Vf(yt),Fd=Vf(Bt);function Wb(t,i,s){var c=Te(t),h=c||pr(t)||yi(t);if(i=he(i,4),s==null){var b=t&&t.constructor;h?s=c?new b:[]:tt(t)?s=Xn(b)?hi(Bo(t)):{}:s={}}return(h?sn:In)(t,function(x,R,M){return i(s,x,R,M)}),s}function Hb(t,i){return t==null?!0:Vs(t,i)}function Ub(t,i,s){return t==null?t:Mf(t,i,Qs(s))}function Bb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Mf(t,i,Qs(s),c)}function wi(t){return t==null?[]:Is(t,yt(t))}function zb(t){return t==null?[]:Is(t,Bt(t))}function qb(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=pn(s),s=s===s?s:0),i!==n&&(i=pn(i),i=i===i?i:0),Nr(pn(t),i,s)}function Gb(t,i,s){return i=Vn(i),s===n?(s=i,i=0):s=Vn(s),t=pn(t),Z0(t,i,s)}function Kb(t,i,s){if(s&&typeof s!="boolean"&&$t(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=Vn(t),i===n?(i=t,t=0):i=Vn(i)),t>i){var c=t;t=i,i=c}if(s||t%1||i%1){var h=lf();return Ct(t+h*(i-t+Og("1e-"+((h+"").length-1))),i)}return Ks(t,i)}var Yb=mi(function(t,i,s){return i=i.toLowerCase(),t+(s?Wd(i):i)});function Wd(t){return bu(He(t).toLowerCase())}function Hd(t){return t=He(t),t&&t.replace(Vm,jg).replace(vg,"")}function Xb(t,i,s){t=He(t),i=Jt(i);var c=t.length;s=s===n?c:Nr(Re(s),0,c);var h=s;return s-=i.length,s>=0&&t.slice(s,h)==i}function Vb(t){return t=He(t),t&&Ni.test(t)?t.replace(ir,Fg):t}function Jb(t){return t=He(t),t&&P.test(t)?t.replace(p,"\\$&"):t}var Zb=mi(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),Qb=mi(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),e_=zf("toLowerCase");function t_(t,i,s){t=He(t),i=Re(i);var c=i?li(t):0;if(!i||c>=i)return t;var h=(i-c)/2;return aa(Ko(h),s)+t+aa(Go(h),s)}function n_(t,i,s){t=He(t),i=Re(i);var c=i?li(t):0;return i&&c<i?t+aa(i-c,s):t}function r_(t,i,s){t=He(t),i=Re(i);var c=i?li(t):0;return i&&c<i?aa(i-c,s)+t:t}function i_(t,i,s){return s||i==null?i=0:i&&(i=+i),f0(He(t).replace(F,""),i||0)}function o_(t,i,s){return(s?$t(t,i,s):i===n)?i=1:i=Re(i),Ys(He(t),i)}function a_(){var t=arguments,i=He(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var s_=mi(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function u_(t,i,s){return s&&typeof s!="number"&&$t(t,i,s)&&(i=s=n),s=s===n?X:s>>>0,s?(t=He(t),t&&(typeof i=="string"||i!=null&&!gu(i))&&(i=Jt(i),!i&&ui(t))?dr(Sn(t),0,s):t.split(i,s)):[]}var l_=mi(function(t,i,s){return t+(s?" ":"")+bu(i)});function c_(t,i,s){return t=He(t),s=s==null?0:Nr(Re(s),0,t.length),i=Jt(i),t.slice(s,s+i.length)==i}function f_(t,i,s){var c=w.templateSettings;s&&$t(t,i,s)&&(i=n),t=He(t),i=ya({},i,c,Jf);var h=ya({},i.imports,c.imports,Jf),b=yt(h),x=Is(h,b),R,M,z=0,q=i.interpolate||Io,K="__p += '",Z=Ms((i.escape||Io).source+"|"+q.source+"|"+(q===oi?Oe:Io).source+"|"+(i.evaluate||Io).source+"|$","g"),re="//# sourceURL="+(ze.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bg+"]")+`
186
- `;t.replace(Z,function(me,De,Ne,Qt,jt,en){return Ne||(Ne=Qt),K+=t.slice(z,en).replace(Jm,Wg),De&&(R=!0,K+=`' +
187
- __e(`+De+`) +
188
- '`),jt&&(M=!0,K+=`';
189
- `+jt+`;
190
- __p += '`),Ne&&(K+=`' +
181
+ */Ns.exports;(function(e,t){(function(){var r,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",w=1,S=2,v=4,_=1,g=2,x=1,C=2,P=4,T=8,$=16,A=32,D=64,H=128,j=256,V=512,ee=30,ye="...",Re=800,Ee=16,se=1,Fe=2,be=3,Oe=1/0,Be=9007199254740991,pt=17976931348623157e292,Z=0/0,Y=4294967295,pe=Y-1,oe=Y>>>1,fe=[["ary",H],["bind",x],["bindKey",C],["curry",T],["curryRight",$],["flip",V],["partial",A],["partialRight",D],["rearg",j]],de="[object Arguments]",ue="[object Array]",he="[object AsyncFunction]",le="[object Boolean]",we="[object Date]",Se="[object DOMException]",Ve="[object Error]",J="[object Function]",st="[object GeneratorFunction]",ut="[object Map]",yt="[object Number]",Gr="[object Null]",At="[object Object]",er="[object Promise]",Kn="[object Proxy]",et="[object RegExp]",rt="[object Set]",yr="[object String]",sr="[object Symbol]",Lr="[object Undefined]",Nt="[object WeakMap]",xn="[object WeakSet]",wr="[object ArrayBuffer]",ur="[object DataView]",Yn="[object Float32Array]",Vn="[object Float64Array]",Xn="[object Int8Array]",Jn="[object Int16Array]",$r="[object Int32Array]",un="[object Uint8Array]",It="[object Uint8ClampedArray]",Dr="[object Uint16Array]",Nr="[object Uint32Array]",Qn=/\b__p \+= '';/g,co=/\b(__p \+=) '' \+/g,ei=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mi=/&(?:amp|lt|gt|quot|#39);/g,On=/[&<>"']/g,ti=RegExp(Mi.source),fo=RegExp(On.source),po=/<%-([\s\S]+?)%>/g,ri=/<%([\s\S]+?)%>/g,Fi=/<%=([\s\S]+?)%>/g,ho=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vo=/^\w*$/,mo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m=/[\\^$.*+?()[\]{}|]/g,I=RegExp(m.source),W=/^\s+/,K=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,re=/,? & /,te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,_e=/\\(\\)?/g,Ae=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,P0=/^0o[0-7]+$/i,I0=/^(?:0|[1-9]\d*)$/,M0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,F0=/['\n\r\u2028\u2029\\]/g,pa="\\ud800-\\udfff",L0="\\u0300-\\u036f",$0="\\ufe20-\\ufe2f",D0="\\u20d0-\\u20ff",Of=L0+$0+D0,Af="\\u2700-\\u27bf",Tf="a-z\\xdf-\\xf6\\xf8-\\xff",N0="\\xac\\xb1\\xd7\\xf7",k0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",j0="\\u2000-\\u206f",W0=" \\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",Rf="A-Z\\xc0-\\xd6\\xd8-\\xde",Cf="\\ufe0e\\ufe0f",Pf=N0+k0+j0+W0,au="['’]",U0="["+pa+"]",If="["+Pf+"]",ha="["+Of+"]",Mf="\\d+",H0="["+Af+"]",Ff="["+Tf+"]",Lf="[^"+pa+Pf+Mf+Af+Tf+Rf+"]",su="\\ud83c[\\udffb-\\udfff]",B0="(?:"+ha+"|"+su+")",$f="[^"+pa+"]",uu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",Li="["+Rf+"]",Df="\\u200d",Nf="(?:"+Ff+"|"+Lf+")",z0="(?:"+Li+"|"+Lf+")",kf="(?:"+au+"(?:d|ll|m|re|s|t|ve))?",jf="(?:"+au+"(?:D|LL|M|RE|S|T|VE))?",Wf=B0+"?",Uf="["+Cf+"]?",q0="(?:"+Df+"(?:"+[$f,uu,lu].join("|")+")"+Uf+Wf+")*",Z0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",G0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hf=Uf+Wf+q0,K0="(?:"+[H0,uu,lu].join("|")+")"+Hf,Y0="(?:"+[$f+ha+"?",ha,uu,lu,U0].join("|")+")",V0=RegExp(au,"g"),X0=RegExp(ha,"g"),cu=RegExp(su+"(?="+su+")|"+Y0+Hf,"g"),J0=RegExp([Li+"?"+Ff+"+"+kf+"(?="+[If,Li,"$"].join("|")+")",z0+"+"+jf+"(?="+[If,Li+Nf,"$"].join("|")+")",Li+"?"+Nf+"+"+kf,Li+"+"+jf,G0,Z0,Mf,K0].join("|"),"g"),Q0=RegExp("["+Df+pa+Of+Cf+"]"),ey=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ty=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ry=-1,tt={};tt[Yn]=tt[Vn]=tt[Xn]=tt[Jn]=tt[$r]=tt[un]=tt[It]=tt[Dr]=tt[Nr]=!0,tt[de]=tt[ue]=tt[wr]=tt[le]=tt[ur]=tt[we]=tt[Ve]=tt[J]=tt[ut]=tt[yt]=tt[At]=tt[et]=tt[rt]=tt[yr]=tt[Nt]=!1;var Je={};Je[de]=Je[ue]=Je[wr]=Je[ur]=Je[le]=Je[we]=Je[Yn]=Je[Vn]=Je[Xn]=Je[Jn]=Je[$r]=Je[ut]=Je[yt]=Je[At]=Je[et]=Je[rt]=Je[yr]=Je[sr]=Je[un]=Je[It]=Je[Dr]=Je[Nr]=!0,Je[Ve]=Je[J]=Je[Nt]=!1;var ny={À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},iy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},oy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ay={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sy=parseFloat,uy=parseInt,Bf=typeof mi=="object"&&mi&&mi.Object===Object&&mi,ly=typeof self=="object"&&self&&self.Object===Object&&self,Mt=Bf||ly||Function("return this")(),fu=t&&!t.nodeType&&t,ii=fu&&!0&&e&&!e.nodeType&&e,zf=ii&&ii.exports===fu,du=zf&&Bf.process,br=function(){try{var M=ii&&ii.require&&ii.require("util").types;return M||du&&du.binding&&du.binding("util")}catch{}}(),qf=br&&br.isArrayBuffer,Zf=br&&br.isDate,Gf=br&&br.isMap,Kf=br&&br.isRegExp,Yf=br&&br.isSet,Vf=br&&br.isTypedArray;function lr(M,B,U){switch(U.length){case 0:return M.call(B);case 1:return M.call(B,U[0]);case 2:return M.call(B,U[0],U[1]);case 3:return M.call(B,U[0],U[1],U[2])}return M.apply(B,U)}function cy(M,B,U,ne){for(var xe=-1,He=M==null?0:M.length;++xe<He;){var Et=M[xe];B(ne,Et,U(Et),M)}return ne}function Sr(M,B){for(var U=-1,ne=M==null?0:M.length;++U<ne&&B(M[U],U,M)!==!1;);return M}function fy(M,B){for(var U=M==null?0:M.length;U--&&B(M[U],U,M)!==!1;);return M}function Xf(M,B){for(var U=-1,ne=M==null?0:M.length;++U<ne;)if(!B(M[U],U,M))return!1;return!0}function An(M,B){for(var U=-1,ne=M==null?0:M.length,xe=0,He=[];++U<ne;){var Et=M[U];B(Et,U,M)&&(He[xe++]=Et)}return He}function va(M,B){var U=M==null?0:M.length;return!!U&&$i(M,B,0)>-1}function pu(M,B,U){for(var ne=-1,xe=M==null?0:M.length;++ne<xe;)if(U(B,M[ne]))return!0;return!1}function nt(M,B){for(var U=-1,ne=M==null?0:M.length,xe=Array(ne);++U<ne;)xe[U]=B(M[U],U,M);return xe}function Tn(M,B){for(var U=-1,ne=B.length,xe=M.length;++U<ne;)M[xe+U]=B[U];return M}function hu(M,B,U,ne){var xe=-1,He=M==null?0:M.length;for(ne&&He&&(U=M[++xe]);++xe<He;)U=B(U,M[xe],xe,M);return U}function dy(M,B,U,ne){var xe=M==null?0:M.length;for(ne&&xe&&(U=M[--xe]);xe--;)U=B(U,M[xe],xe,M);return U}function vu(M,B){for(var U=-1,ne=M==null?0:M.length;++U<ne;)if(B(M[U],U,M))return!0;return!1}var py=mu("length");function hy(M){return M.split("")}function vy(M){return M.match(te)||[]}function Jf(M,B,U){var ne;return U(M,function(xe,He,Et){if(B(xe,He,Et))return ne=He,!1}),ne}function ma(M,B,U,ne){for(var xe=M.length,He=U+(ne?1:-1);ne?He--:++He<xe;)if(B(M[He],He,M))return He;return-1}function $i(M,B,U){return B===B?Ty(M,B,U):ma(M,Qf,U)}function my(M,B,U,ne){for(var xe=U-1,He=M.length;++xe<He;)if(ne(M[xe],B))return xe;return-1}function Qf(M){return M!==M}function ed(M,B){var U=M==null?0:M.length;return U?yu(M,B)/U:Z}function mu(M){return function(B){return B==null?r:B[M]}}function gu(M){return function(B){return M==null?r:M[B]}}function td(M,B,U,ne,xe){return xe(M,function(He,Et,Xe){U=ne?(ne=!1,He):B(U,He,Et,Xe)}),U}function gy(M,B){var U=M.length;for(M.sort(B);U--;)M[U]=M[U].value;return M}function yu(M,B){for(var U,ne=-1,xe=M.length;++ne<xe;){var He=B(M[ne]);He!==r&&(U=U===r?He:U+He)}return U}function wu(M,B){for(var U=-1,ne=Array(M);++U<M;)ne[U]=B(U);return ne}function yy(M,B){return nt(B,function(U){return[U,M[U]]})}function rd(M){return M&&M.slice(0,ad(M)+1).replace(W,"")}function cr(M){return function(B){return M(B)}}function bu(M,B){return nt(B,function(U){return M[U]})}function go(M,B){return M.has(B)}function nd(M,B){for(var U=-1,ne=M.length;++U<ne&&$i(B,M[U],0)>-1;);return U}function id(M,B){for(var U=M.length;U--&&$i(B,M[U],0)>-1;);return U}function wy(M,B){for(var U=M.length,ne=0;U--;)M[U]===B&&++ne;return ne}var by=gu(ny),Sy=gu(iy);function Ey(M){return"\\"+ay[M]}function _y(M,B){return M==null?r:M[B]}function Di(M){return Q0.test(M)}function xy(M){return ey.test(M)}function Oy(M){for(var B,U=[];!(B=M.next()).done;)U.push(B.value);return U}function Su(M){var B=-1,U=Array(M.size);return M.forEach(function(ne,xe){U[++B]=[xe,ne]}),U}function od(M,B){return function(U){return M(B(U))}}function Rn(M,B){for(var U=-1,ne=M.length,xe=0,He=[];++U<ne;){var Et=M[U];(Et===B||Et===h)&&(M[U]=h,He[xe++]=U)}return He}function ga(M){var B=-1,U=Array(M.size);return M.forEach(function(ne){U[++B]=ne}),U}function Ay(M){var B=-1,U=Array(M.size);return M.forEach(function(ne){U[++B]=[ne,ne]}),U}function Ty(M,B,U){for(var ne=U-1,xe=M.length;++ne<xe;)if(M[ne]===B)return ne;return-1}function Ry(M,B,U){for(var ne=U+1;ne--;)if(M[ne]===B)return ne;return ne}function Ni(M){return Di(M)?Py(M):py(M)}function kr(M){return Di(M)?Iy(M):hy(M)}function ad(M){for(var B=M.length;B--&&K.test(M.charAt(B)););return B}var Cy=gu(oy);function Py(M){for(var B=cu.lastIndex=0;cu.test(M);)++B;return B}function Iy(M){return M.match(cu)||[]}function My(M){return M.match(J0)||[]}var Fy=function M(B){B=B==null?Mt:ki.defaults(Mt.Object(),B,ki.pick(Mt,ty));var U=B.Array,ne=B.Date,xe=B.Error,He=B.Function,Et=B.Math,Xe=B.Object,Eu=B.RegExp,Ly=B.String,Er=B.TypeError,ya=U.prototype,$y=He.prototype,ji=Xe.prototype,wa=B["__core-js_shared__"],ba=$y.toString,Ge=ji.hasOwnProperty,Dy=0,sd=function(){var n=/[^.]+$/.exec(wa&&wa.keys&&wa.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Sa=ji.toString,Ny=ba.call(Xe),ky=Mt._,jy=Eu("^"+ba.call(Ge).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ea=zf?B.Buffer:r,Cn=B.Symbol,_a=B.Uint8Array,ud=Ea?Ea.allocUnsafe:r,xa=od(Xe.getPrototypeOf,Xe),ld=Xe.create,cd=ji.propertyIsEnumerable,Oa=ya.splice,fd=Cn?Cn.isConcatSpreadable:r,yo=Cn?Cn.iterator:r,oi=Cn?Cn.toStringTag:r,Aa=function(){try{var n=ci(Xe,"defineProperty");return n({},"",{}),n}catch{}}(),Wy=B.clearTimeout!==Mt.clearTimeout&&B.clearTimeout,Uy=ne&&ne.now!==Mt.Date.now&&ne.now,Hy=B.setTimeout!==Mt.setTimeout&&B.setTimeout,Ta=Et.ceil,Ra=Et.floor,_u=Xe.getOwnPropertySymbols,By=Ea?Ea.isBuffer:r,dd=B.isFinite,zy=ya.join,qy=od(Xe.keys,Xe),_t=Et.max,kt=Et.min,Zy=ne.now,Gy=B.parseInt,pd=Et.random,Ky=ya.reverse,xu=ci(B,"DataView"),wo=ci(B,"Map"),Ou=ci(B,"Promise"),Wi=ci(B,"Set"),bo=ci(B,"WeakMap"),So=ci(Xe,"create"),Ca=bo&&new bo,Ui={},Yy=fi(xu),Vy=fi(wo),Xy=fi(Ou),Jy=fi(Wi),Qy=fi(bo),Pa=Cn?Cn.prototype:r,Eo=Pa?Pa.valueOf:r,hd=Pa?Pa.toString:r;function b(n){if(ct(n)&&!Te(n)&&!(n instanceof De)){if(n instanceof _r)return n;if(Ge.call(n,"__wrapped__"))return vp(n)}return new _r(n)}var Hi=function(){function n(){}return function(o){if(!ot(o))return{};if(ld)return ld(o);n.prototype=o;var u=new n;return n.prototype=r,u}}();function Ia(){}function _r(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}b.templateSettings={escape:po,evaluate:ri,interpolate:Fi,variable:"",imports:{_:b}},b.prototype=Ia.prototype,b.prototype.constructor=b,_r.prototype=Hi(Ia.prototype),_r.prototype.constructor=_r;function De(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function e1(){var n=new De(this.__wrapped__);return n.__actions__=tr(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=tr(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=tr(this.__views__),n}function t1(){if(this.__filtered__){var n=new De(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function r1(){var n=this.__wrapped__.value(),o=this.__dir__,u=Te(n),f=o<0,y=u?n.length:0,E=hw(0,y,this.__views__),O=E.start,R=E.end,L=R-O,z=f?R:O-1,q=this.__iteratees__,G=q.length,Q=0,ie=kt(L,this.__takeCount__);if(!u||!f&&y==L&&ie==L)return kd(n,this.__actions__);var me=[];e:for(;L--&&Q<ie;){z+=o;for(var Pe=-1,ge=n[z];++Pe<G;){var $e=q[Pe],Ne=$e.iteratee,pr=$e.type,Jt=Ne(ge);if(pr==Fe)ge=Jt;else if(!Jt){if(pr==se)continue e;break e}}me[Q++]=ge}return me}De.prototype=Hi(Ia.prototype),De.prototype.constructor=De;function ai(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function n1(){this.__data__=So?So(null):{},this.size=0}function i1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function o1(n){var o=this.__data__;if(So){var u=o[n];return u===d?r:u}return Ge.call(o,n)?o[n]:r}function a1(n){var o=this.__data__;return So?o[n]!==r:Ge.call(o,n)}function s1(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=So&&o===r?d:o,this}ai.prototype.clear=n1,ai.prototype.delete=i1,ai.prototype.get=o1,ai.prototype.has=a1,ai.prototype.set=s1;function ln(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function u1(){this.__data__=[],this.size=0}function l1(n){var o=this.__data__,u=Ma(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():Oa.call(o,u,1),--this.size,!0}function c1(n){var o=this.__data__,u=Ma(o,n);return u<0?r:o[u][1]}function f1(n){return Ma(this.__data__,n)>-1}function d1(n,o){var u=this.__data__,f=Ma(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}ln.prototype.clear=u1,ln.prototype.delete=l1,ln.prototype.get=c1,ln.prototype.has=f1,ln.prototype.set=d1;function cn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function p1(){this.size=0,this.__data__={hash:new ai,map:new(wo||ln),string:new ai}}function h1(n){var o=za(this,n).delete(n);return this.size-=o?1:0,o}function v1(n){return za(this,n).get(n)}function m1(n){return za(this,n).has(n)}function g1(n,o){var u=za(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}cn.prototype.clear=p1,cn.prototype.delete=h1,cn.prototype.get=v1,cn.prototype.has=m1,cn.prototype.set=g1;function si(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new cn;++o<u;)this.add(n[o])}function y1(n){return this.__data__.set(n,d),this}function w1(n){return this.__data__.has(n)}si.prototype.add=si.prototype.push=y1,si.prototype.has=w1;function jr(n){var o=this.__data__=new ln(n);this.size=o.size}function b1(){this.__data__=new ln,this.size=0}function S1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function E1(n){return this.__data__.get(n)}function _1(n){return this.__data__.has(n)}function x1(n,o){var u=this.__data__;if(u instanceof ln){var f=u.__data__;if(!wo||f.length<a-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new cn(f)}return u.set(n,o),this.size=u.size,this}jr.prototype.clear=b1,jr.prototype.delete=S1,jr.prototype.get=E1,jr.prototype.has=_1,jr.prototype.set=x1;function vd(n,o){var u=Te(n),f=!u&&di(n),y=!u&&!f&&Ln(n),E=!u&&!f&&!y&&Zi(n),O=u||f||y||E,R=O?wu(n.length,Ly):[],L=R.length;for(var z in n)(o||Ge.call(n,z))&&!(O&&(z=="length"||y&&(z=="offset"||z=="parent")||E&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||hn(z,L)))&&R.push(z);return R}function md(n){var o=n.length;return o?n[Du(0,o-1)]:r}function O1(n,o){return qa(tr(n),ui(o,0,n.length))}function A1(n){return qa(tr(n))}function Au(n,o,u){(u!==r&&!Wr(n[o],u)||u===r&&!(o in n))&&fn(n,o,u)}function _o(n,o,u){var f=n[o];(!(Ge.call(n,o)&&Wr(f,u))||u===r&&!(o in n))&&fn(n,o,u)}function Ma(n,o){for(var u=n.length;u--;)if(Wr(n[u][0],o))return u;return-1}function T1(n,o,u,f){return Pn(n,function(y,E,O){o(f,y,u(y),O)}),f}function gd(n,o){return n&&Yr(o,Tt(o),n)}function R1(n,o){return n&&Yr(o,nr(o),n)}function fn(n,o,u){o=="__proto__"&&Aa?Aa(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Tu(n,o){for(var u=-1,f=o.length,y=U(f),E=n==null;++u<f;)y[u]=E?r:sl(n,o[u]);return y}function ui(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function xr(n,o,u,f,y,E){var O,R=o&w,L=o&S,z=o&v;if(u&&(O=y?u(n,f,y,E):u(n)),O!==r)return O;if(!ot(n))return n;var q=Te(n);if(q){if(O=mw(n),!R)return tr(n,O)}else{var G=jt(n),Q=G==J||G==st;if(Ln(n))return Ud(n,R);if(G==At||G==de||Q&&!y){if(O=L||Q?{}:ap(n),!R)return L?ow(n,R1(O,n)):iw(n,gd(O,n))}else{if(!Je[G])return y?n:{};O=gw(n,G,R)}}E||(E=new jr);var ie=E.get(n);if(ie)return ie;E.set(n,O),$p(n)?n.forEach(function(ge){O.add(xr(ge,o,u,ge,n,E))}):Fp(n)&&n.forEach(function(ge,$e){O.set($e,xr(ge,o,u,$e,n,E))});var me=z?L?Gu:Zu:L?nr:Tt,Pe=q?r:me(n);return Sr(Pe||n,function(ge,$e){Pe&&($e=ge,ge=n[$e]),_o(O,$e,xr(ge,o,u,$e,n,E))}),O}function C1(n){var o=Tt(n);return function(u){return yd(u,n,o)}}function yd(n,o,u){var f=u.length;if(n==null)return!f;for(n=Xe(n);f--;){var y=u[f],E=o[y],O=n[y];if(O===r&&!(y in n)||!E(O))return!1}return!0}function wd(n,o,u){if(typeof n!="function")throw new Er(l);return Po(function(){n.apply(r,u)},o)}function xo(n,o,u,f){var y=-1,E=va,O=!0,R=n.length,L=[],z=o.length;if(!R)return L;u&&(o=nt(o,cr(u))),f?(E=pu,O=!1):o.length>=a&&(E=go,O=!1,o=new si(o));e:for(;++y<R;){var q=n[y],G=u==null?q:u(q);if(q=f||q!==0?q:0,O&&G===G){for(var Q=z;Q--;)if(o[Q]===G)continue e;L.push(q)}else E(o,G,f)||L.push(q)}return L}var Pn=Zd(Kr),bd=Zd(Cu,!0);function P1(n,o){var u=!0;return Pn(n,function(f,y,E){return u=!!o(f,y,E),u}),u}function Fa(n,o,u){for(var f=-1,y=n.length;++f<y;){var E=n[f],O=o(E);if(O!=null&&(R===r?O===O&&!dr(O):u(O,R)))var R=O,L=E}return L}function I1(n,o,u,f){var y=n.length;for(u=Ce(u),u<0&&(u=-u>y?0:y+u),f=f===r||f>y?y:Ce(f),f<0&&(f+=y),f=u>f?0:Np(f);u<f;)n[u++]=o;return n}function Sd(n,o){var u=[];return Pn(n,function(f,y,E){o(f,y,E)&&u.push(f)}),u}function Ft(n,o,u,f,y){var E=-1,O=n.length;for(u||(u=ww),y||(y=[]);++E<O;){var R=n[E];o>0&&u(R)?o>1?Ft(R,o-1,u,f,y):Tn(y,R):f||(y[y.length]=R)}return y}var Ru=Gd(),Ed=Gd(!0);function Kr(n,o){return n&&Ru(n,o,Tt)}function Cu(n,o){return n&&Ed(n,o,Tt)}function La(n,o){return An(o,function(u){return vn(n[u])})}function li(n,o){o=Mn(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[Vr(o[u++])];return u&&u==f?n:r}function _d(n,o,u){var f=o(n);return Te(n)?f:Tn(f,u(n))}function Vt(n){return n==null?n===r?Lr:Gr:oi&&oi in Xe(n)?pw(n):Aw(n)}function Pu(n,o){return n>o}function M1(n,o){return n!=null&&Ge.call(n,o)}function F1(n,o){return n!=null&&o in Xe(n)}function L1(n,o,u){return n>=kt(o,u)&&n<_t(o,u)}function Iu(n,o,u){for(var f=u?pu:va,y=n[0].length,E=n.length,O=E,R=U(E),L=1/0,z=[];O--;){var q=n[O];O&&o&&(q=nt(q,cr(o))),L=kt(q.length,L),R[O]=!u&&(o||y>=120&&q.length>=120)?new si(O&&q):r}q=n[0];var G=-1,Q=R[0];e:for(;++G<y&&z.length<L;){var ie=q[G],me=o?o(ie):ie;if(ie=u||ie!==0?ie:0,!(Q?go(Q,me):f(z,me,u))){for(O=E;--O;){var Pe=R[O];if(!(Pe?go(Pe,me):f(n[O],me,u)))continue e}Q&&Q.push(me),z.push(ie)}}return z}function $1(n,o,u,f){return Kr(n,function(y,E,O){o(f,u(y),E,O)}),f}function Oo(n,o,u){o=Mn(o,n),n=cp(n,o);var f=n==null?n:n[Vr(Ar(o))];return f==null?r:lr(f,n,u)}function xd(n){return ct(n)&&Vt(n)==de}function D1(n){return ct(n)&&Vt(n)==wr}function N1(n){return ct(n)&&Vt(n)==we}function Ao(n,o,u,f,y){return n===o?!0:n==null||o==null||!ct(n)&&!ct(o)?n!==n&&o!==o:k1(n,o,u,f,Ao,y)}function k1(n,o,u,f,y,E){var O=Te(n),R=Te(o),L=O?ue:jt(n),z=R?ue:jt(o);L=L==de?At:L,z=z==de?At:z;var q=L==At,G=z==At,Q=L==z;if(Q&&Ln(n)){if(!Ln(o))return!1;O=!0,q=!1}if(Q&&!q)return E||(E=new jr),O||Zi(n)?np(n,o,u,f,y,E):fw(n,o,L,u,f,y,E);if(!(u&_)){var ie=q&&Ge.call(n,"__wrapped__"),me=G&&Ge.call(o,"__wrapped__");if(ie||me){var Pe=ie?n.value():n,ge=me?o.value():o;return E||(E=new jr),y(Pe,ge,u,f,E)}}return Q?(E||(E=new jr),dw(n,o,u,f,y,E)):!1}function j1(n){return ct(n)&&jt(n)==ut}function Mu(n,o,u,f){var y=u.length,E=y,O=!f;if(n==null)return!E;for(n=Xe(n);y--;){var R=u[y];if(O&&R[2]?R[1]!==n[R[0]]:!(R[0]in n))return!1}for(;++y<E;){R=u[y];var L=R[0],z=n[L],q=R[1];if(O&&R[2]){if(z===r&&!(L in n))return!1}else{var G=new jr;if(f)var Q=f(z,q,L,n,o,G);if(!(Q===r?Ao(q,z,_|g,f,G):Q))return!1}}return!0}function Od(n){if(!ot(n)||Sw(n))return!1;var o=vn(n)?jy:ht;return o.test(fi(n))}function W1(n){return ct(n)&&Vt(n)==et}function U1(n){return ct(n)&&jt(n)==rt}function H1(n){return ct(n)&&Xa(n.length)&&!!tt[Vt(n)]}function Ad(n){return typeof n=="function"?n:n==null?ir:typeof n=="object"?Te(n)?Cd(n[0],n[1]):Rd(n):Kp(n)}function Fu(n){if(!Co(n))return qy(n);var o=[];for(var u in Xe(n))Ge.call(n,u)&&u!="constructor"&&o.push(u);return o}function B1(n){if(!ot(n))return Ow(n);var o=Co(n),u=[];for(var f in n)f=="constructor"&&(o||!Ge.call(n,f))||u.push(f);return u}function Lu(n,o){return n<o}function Td(n,o){var u=-1,f=rr(n)?U(n.length):[];return Pn(n,function(y,E,O){f[++u]=o(y,E,O)}),f}function Rd(n){var o=Yu(n);return o.length==1&&o[0][2]?up(o[0][0],o[0][1]):function(u){return u===n||Mu(u,n,o)}}function Cd(n,o){return Xu(n)&&sp(o)?up(Vr(n),o):function(u){var f=sl(u,n);return f===r&&f===o?ul(u,n):Ao(o,f,_|g)}}function $a(n,o,u,f,y){n!==o&&Ru(o,function(E,O){if(y||(y=new jr),ot(E))z1(n,o,O,u,$a,f,y);else{var R=f?f(Qu(n,O),E,O+"",n,o,y):r;R===r&&(R=E),Au(n,O,R)}},nr)}function z1(n,o,u,f,y,E,O){var R=Qu(n,u),L=Qu(o,u),z=O.get(L);if(z){Au(n,u,z);return}var q=E?E(R,L,u+"",n,o,O):r,G=q===r;if(G){var Q=Te(L),ie=!Q&&Ln(L),me=!Q&&!ie&&Zi(L);q=L,Q||ie||me?Te(R)?q=R:vt(R)?q=tr(R):ie?(G=!1,q=Ud(L,!0)):me?(G=!1,q=Hd(L,!0)):q=[]:Io(L)||di(L)?(q=R,di(R)?q=kp(R):(!ot(R)||vn(R))&&(q=ap(L))):G=!1}G&&(O.set(L,q),y(q,L,f,E,O),O.delete(L)),Au(n,u,q)}function Pd(n,o){var u=n.length;if(u)return o+=o<0?u:0,hn(o,u)?n[o]:r}function Id(n,o,u){o.length?o=nt(o,function(E){return Te(E)?function(O){return li(O,E.length===1?E[0]:E)}:E}):o=[ir];var f=-1;o=nt(o,cr(ve()));var y=Td(n,function(E,O,R){var L=nt(o,function(z){return z(E)});return{criteria:L,index:++f,value:E}});return gy(y,function(E,O){return nw(E,O,u)})}function q1(n,o){return Md(n,o,function(u,f){return ul(n,f)})}function Md(n,o,u){for(var f=-1,y=o.length,E={};++f<y;){var O=o[f],R=li(n,O);u(R,O)&&To(E,Mn(O,n),R)}return E}function Z1(n){return function(o){return li(o,n)}}function $u(n,o,u,f){var y=f?my:$i,E=-1,O=o.length,R=n;for(n===o&&(o=tr(o)),u&&(R=nt(n,cr(u)));++E<O;)for(var L=0,z=o[E],q=u?u(z):z;(L=y(R,q,L,f))>-1;)R!==n&&Oa.call(R,L,1),Oa.call(n,L,1);return n}function Fd(n,o){for(var u=n?o.length:0,f=u-1;u--;){var y=o[u];if(u==f||y!==E){var E=y;hn(y)?Oa.call(n,y,1):ju(n,y)}}return n}function Du(n,o){return n+Ra(pd()*(o-n+1))}function G1(n,o,u,f){for(var y=-1,E=_t(Ta((o-n)/(u||1)),0),O=U(E);E--;)O[f?E:++y]=n,n+=u;return O}function Nu(n,o){var u="";if(!n||o<1||o>Be)return u;do o%2&&(u+=n),o=Ra(o/2),o&&(n+=n);while(o);return u}function Ie(n,o){return el(lp(n,o,ir),n+"")}function K1(n){return md(Gi(n))}function Y1(n,o){var u=Gi(n);return qa(u,ui(o,0,u.length))}function To(n,o,u,f){if(!ot(n))return n;o=Mn(o,n);for(var y=-1,E=o.length,O=E-1,R=n;R!=null&&++y<E;){var L=Vr(o[y]),z=u;if(L==="__proto__"||L==="constructor"||L==="prototype")return n;if(y!=O){var q=R[L];z=f?f(q,L,R):r,z===r&&(z=ot(q)?q:hn(o[y+1])?[]:{})}_o(R,L,z),R=R[L]}return n}var Ld=Ca?function(n,o){return Ca.set(n,o),n}:ir,V1=Aa?function(n,o){return Aa(n,"toString",{configurable:!0,enumerable:!1,value:cl(o),writable:!0})}:ir;function X1(n){return qa(Gi(n))}function Or(n,o,u){var f=-1,y=n.length;o<0&&(o=-o>y?0:y+o),u=u>y?y:u,u<0&&(u+=y),y=o>u?0:u-o>>>0,o>>>=0;for(var E=U(y);++f<y;)E[f]=n[f+o];return E}function J1(n,o){var u;return Pn(n,function(f,y,E){return u=o(f,y,E),!u}),!!u}function Da(n,o,u){var f=0,y=n==null?f:n.length;if(typeof o=="number"&&o===o&&y<=oe){for(;f<y;){var E=f+y>>>1,O=n[E];O!==null&&!dr(O)&&(u?O<=o:O<o)?f=E+1:y=E}return y}return ku(n,o,ir,u)}function ku(n,o,u,f){var y=0,E=n==null?0:n.length;if(E===0)return 0;o=u(o);for(var O=o!==o,R=o===null,L=dr(o),z=o===r;y<E;){var q=Ra((y+E)/2),G=u(n[q]),Q=G!==r,ie=G===null,me=G===G,Pe=dr(G);if(O)var ge=f||me;else z?ge=me&&(f||Q):R?ge=me&&Q&&(f||!ie):L?ge=me&&Q&&!ie&&(f||!Pe):ie||Pe?ge=!1:ge=f?G<=o:G<o;ge?y=q+1:E=q}return kt(E,pe)}function $d(n,o){for(var u=-1,f=n.length,y=0,E=[];++u<f;){var O=n[u],R=o?o(O):O;if(!u||!Wr(R,L)){var L=R;E[y++]=O===0?0:O}}return E}function Dd(n){return typeof n=="number"?n:dr(n)?Z:+n}function fr(n){if(typeof n=="string")return n;if(Te(n))return nt(n,fr)+"";if(dr(n))return hd?hd.call(n):"";var o=n+"";return o=="0"&&1/n==-Oe?"-0":o}function In(n,o,u){var f=-1,y=va,E=n.length,O=!0,R=[],L=R;if(u)O=!1,y=pu;else if(E>=a){var z=o?null:lw(n);if(z)return ga(z);O=!1,y=go,L=new si}else L=o?[]:R;e:for(;++f<E;){var q=n[f],G=o?o(q):q;if(q=u||q!==0?q:0,O&&G===G){for(var Q=L.length;Q--;)if(L[Q]===G)continue e;o&&L.push(G),R.push(q)}else y(L,G,u)||(L!==R&&L.push(G),R.push(q))}return R}function ju(n,o){return o=Mn(o,n),n=cp(n,o),n==null||delete n[Vr(Ar(o))]}function Nd(n,o,u,f){return To(n,o,u(li(n,o)),f)}function Na(n,o,u,f){for(var y=n.length,E=f?y:-1;(f?E--:++E<y)&&o(n[E],E,n););return u?Or(n,f?0:E,f?E+1:y):Or(n,f?E+1:0,f?y:E)}function kd(n,o){var u=n;return u instanceof De&&(u=u.value()),hu(o,function(f,y){return y.func.apply(y.thisArg,Tn([f],y.args))},u)}function Wu(n,o,u){var f=n.length;if(f<2)return f?In(n[0]):[];for(var y=-1,E=U(f);++y<f;)for(var O=n[y],R=-1;++R<f;)R!=y&&(E[y]=xo(E[y]||O,n[R],o,u));return In(Ft(E,1),o,u)}function jd(n,o,u){for(var f=-1,y=n.length,E=o.length,O={};++f<y;){var R=f<E?o[f]:r;u(O,n[f],R)}return O}function Uu(n){return vt(n)?n:[]}function Hu(n){return typeof n=="function"?n:ir}function Mn(n,o){return Te(n)?n:Xu(n,o)?[n]:hp(ze(n))}var Q1=Ie;function Fn(n,o,u){var f=n.length;return u=u===r?f:u,!o&&u>=f?n:Or(n,o,u)}var Wd=Wy||function(n){return Mt.clearTimeout(n)};function Ud(n,o){if(o)return n.slice();var u=n.length,f=ud?ud(u):new n.constructor(u);return n.copy(f),f}function Bu(n){var o=new n.constructor(n.byteLength);return new _a(o).set(new _a(n)),o}function ew(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function tw(n){var o=new n.constructor(n.source,lt.exec(n));return o.lastIndex=n.lastIndex,o}function rw(n){return Eo?Xe(Eo.call(n)):{}}function Hd(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Bd(n,o){if(n!==o){var u=n!==r,f=n===null,y=n===n,E=dr(n),O=o!==r,R=o===null,L=o===o,z=dr(o);if(!R&&!z&&!E&&n>o||E&&O&&L&&!R&&!z||f&&O&&L||!u&&L||!y)return 1;if(!f&&!E&&!z&&n<o||z&&u&&y&&!f&&!E||R&&u&&y||!O&&y||!L)return-1}return 0}function nw(n,o,u){for(var f=-1,y=n.criteria,E=o.criteria,O=y.length,R=u.length;++f<O;){var L=Bd(y[f],E[f]);if(L){if(f>=R)return L;var z=u[f];return L*(z=="desc"?-1:1)}}return n.index-o.index}function zd(n,o,u,f){for(var y=-1,E=n.length,O=u.length,R=-1,L=o.length,z=_t(E-O,0),q=U(L+z),G=!f;++R<L;)q[R]=o[R];for(;++y<O;)(G||y<E)&&(q[u[y]]=n[y]);for(;z--;)q[R++]=n[y++];return q}function qd(n,o,u,f){for(var y=-1,E=n.length,O=-1,R=u.length,L=-1,z=o.length,q=_t(E-R,0),G=U(q+z),Q=!f;++y<q;)G[y]=n[y];for(var ie=y;++L<z;)G[ie+L]=o[L];for(;++O<R;)(Q||y<E)&&(G[ie+u[O]]=n[y++]);return G}function tr(n,o){var u=-1,f=n.length;for(o||(o=U(f));++u<f;)o[u]=n[u];return o}function Yr(n,o,u,f){var y=!u;u||(u={});for(var E=-1,O=o.length;++E<O;){var R=o[E],L=f?f(u[R],n[R],R,u,n):r;L===r&&(L=n[R]),y?fn(u,R,L):_o(u,R,L)}return u}function iw(n,o){return Yr(n,Vu(n),o)}function ow(n,o){return Yr(n,ip(n),o)}function ka(n,o){return function(u,f){var y=Te(u)?cy:T1,E=o?o():{};return y(u,n,ve(f,2),E)}}function Bi(n){return Ie(function(o,u){var f=-1,y=u.length,E=y>1?u[y-1]:r,O=y>2?u[2]:r;for(E=n.length>3&&typeof E=="function"?(y--,E):r,O&&Xt(u[0],u[1],O)&&(E=y<3?r:E,y=1),o=Xe(o);++f<y;){var R=u[f];R&&n(o,R,f,E)}return o})}function Zd(n,o){return function(u,f){if(u==null)return u;if(!rr(u))return n(u,f);for(var y=u.length,E=o?y:-1,O=Xe(u);(o?E--:++E<y)&&f(O[E],E,O)!==!1;);return u}}function Gd(n){return function(o,u,f){for(var y=-1,E=Xe(o),O=f(o),R=O.length;R--;){var L=O[n?R:++y];if(u(E[L],L,E)===!1)break}return o}}function aw(n,o,u){var f=o&x,y=Ro(n);function E(){var O=this&&this!==Mt&&this instanceof E?y:n;return O.apply(f?u:this,arguments)}return E}function Kd(n){return function(o){o=ze(o);var u=Di(o)?kr(o):r,f=u?u[0]:o.charAt(0),y=u?Fn(u,1).join(""):o.slice(1);return f[n]()+y}}function zi(n){return function(o){return hu(Zp(qp(o).replace(V0,"")),n,"")}}function Ro(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=Hi(n.prototype),f=n.apply(u,o);return ot(f)?f:u}}function sw(n,o,u){var f=Ro(n);function y(){for(var E=arguments.length,O=U(E),R=E,L=qi(y);R--;)O[R]=arguments[R];var z=E<3&&O[0]!==L&&O[E-1]!==L?[]:Rn(O,L);if(E-=z.length,E<u)return Qd(n,o,ja,y.placeholder,r,O,z,r,r,u-E);var q=this&&this!==Mt&&this instanceof y?f:n;return lr(q,this,O)}return y}function Yd(n){return function(o,u,f){var y=Xe(o);if(!rr(o)){var E=ve(u,3);o=Tt(o),u=function(R){return E(y[R],R,y)}}var O=n(o,u,f);return O>-1?y[E?o[O]:O]:r}}function Vd(n){return pn(function(o){var u=o.length,f=u,y=_r.prototype.thru;for(n&&o.reverse();f--;){var E=o[f];if(typeof E!="function")throw new Er(l);if(y&&!O&&Ba(E)=="wrapper")var O=new _r([],!0)}for(f=O?f:u;++f<u;){E=o[f];var R=Ba(E),L=R=="wrapper"?Ku(E):r;L&&Ju(L[0])&&L[1]==(H|T|A|j)&&!L[4].length&&L[9]==1?O=O[Ba(L[0])].apply(O,L[3]):O=E.length==1&&Ju(E)?O[R]():O.thru(E)}return function(){var z=arguments,q=z[0];if(O&&z.length==1&&Te(q))return O.plant(q).value();for(var G=0,Q=u?o[G].apply(this,z):q;++G<u;)Q=o[G].call(this,Q);return Q}})}function ja(n,o,u,f,y,E,O,R,L,z){var q=o&H,G=o&x,Q=o&C,ie=o&(T|$),me=o&V,Pe=Q?r:Ro(n);function ge(){for(var $e=arguments.length,Ne=U($e),pr=$e;pr--;)Ne[pr]=arguments[pr];if(ie)var Jt=qi(ge),hr=wy(Ne,Jt);if(f&&(Ne=zd(Ne,f,y,ie)),E&&(Ne=qd(Ne,E,O,ie)),$e-=hr,ie&&$e<z){var mt=Rn(Ne,Jt);return Qd(n,o,ja,ge.placeholder,u,Ne,mt,R,L,z-$e)}var Ur=G?u:this,gn=Q?Ur[n]:n;return $e=Ne.length,R?Ne=Tw(Ne,R):me&&$e>1&&Ne.reverse(),q&&L<$e&&(Ne.length=L),this&&this!==Mt&&this instanceof ge&&(gn=Pe||Ro(gn)),gn.apply(Ur,Ne)}return ge}function Xd(n,o){return function(u,f){return $1(u,n,o(f),{})}}function Wa(n,o){return function(u,f){var y;if(u===r&&f===r)return o;if(u!==r&&(y=u),f!==r){if(y===r)return f;typeof u=="string"||typeof f=="string"?(u=fr(u),f=fr(f)):(u=Dd(u),f=Dd(f)),y=n(u,f)}return y}}function zu(n){return pn(function(o){return o=nt(o,cr(ve())),Ie(function(u){var f=this;return n(o,function(y){return lr(y,f,u)})})})}function Ua(n,o){o=o===r?" ":fr(o);var u=o.length;if(u<2)return u?Nu(o,n):o;var f=Nu(o,Ta(n/Ni(o)));return Di(o)?Fn(kr(f),0,n).join(""):f.slice(0,n)}function uw(n,o,u,f){var y=o&x,E=Ro(n);function O(){for(var R=-1,L=arguments.length,z=-1,q=f.length,G=U(q+L),Q=this&&this!==Mt&&this instanceof O?E:n;++z<q;)G[z]=f[z];for(;L--;)G[z++]=arguments[++R];return lr(Q,y?u:this,G)}return O}function Jd(n){return function(o,u,f){return f&&typeof f!="number"&&Xt(o,u,f)&&(u=f=r),o=mn(o),u===r?(u=o,o=0):u=mn(u),f=f===r?o<u?1:-1:mn(f),G1(o,u,f,n)}}function Ha(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=Tr(o),u=Tr(u)),n(o,u)}}function Qd(n,o,u,f,y,E,O,R,L,z){var q=o&T,G=q?O:r,Q=q?r:O,ie=q?E:r,me=q?r:E;o|=q?A:D,o&=~(q?D:A),o&P||(o&=~(x|C));var Pe=[n,o,y,ie,G,me,Q,R,L,z],ge=u.apply(r,Pe);return Ju(n)&&fp(ge,Pe),ge.placeholder=f,dp(ge,n,o)}function qu(n){var o=Et[n];return function(u,f){if(u=Tr(u),f=f==null?0:kt(Ce(f),292),f&&dd(u)){var y=(ze(u)+"e").split("e"),E=o(y[0]+"e"+(+y[1]+f));return y=(ze(E)+"e").split("e"),+(y[0]+"e"+(+y[1]-f))}return o(u)}}var lw=Wi&&1/ga(new Wi([,-0]))[1]==Oe?function(n){return new Wi(n)}:pl;function ep(n){return function(o){var u=jt(o);return u==ut?Su(o):u==rt?Ay(o):yy(o,n(o))}}function dn(n,o,u,f,y,E,O,R){var L=o&C;if(!L&&typeof n!="function")throw new Er(l);var z=f?f.length:0;if(z||(o&=~(A|D),f=y=r),O=O===r?O:_t(Ce(O),0),R=R===r?R:Ce(R),z-=y?y.length:0,o&D){var q=f,G=y;f=y=r}var Q=L?r:Ku(n),ie=[n,o,u,f,y,q,G,E,O,R];if(Q&&xw(ie,Q),n=ie[0],o=ie[1],u=ie[2],f=ie[3],y=ie[4],R=ie[9]=ie[9]===r?L?0:n.length:_t(ie[9]-z,0),!R&&o&(T|$)&&(o&=~(T|$)),!o||o==x)var me=aw(n,o,u);else o==T||o==$?me=sw(n,o,R):(o==A||o==(x|A))&&!y.length?me=uw(n,o,u,f):me=ja.apply(r,ie);var Pe=Q?Ld:fp;return dp(Pe(me,ie),n,o)}function tp(n,o,u,f){return n===r||Wr(n,ji[u])&&!Ge.call(f,u)?o:n}function rp(n,o,u,f,y,E){return ot(n)&&ot(o)&&(E.set(o,n),$a(n,o,r,rp,E),E.delete(o)),n}function cw(n){return Io(n)?r:n}function np(n,o,u,f,y,E){var O=u&_,R=n.length,L=o.length;if(R!=L&&!(O&&L>R))return!1;var z=E.get(n),q=E.get(o);if(z&&q)return z==o&&q==n;var G=-1,Q=!0,ie=u&g?new si:r;for(E.set(n,o),E.set(o,n);++G<R;){var me=n[G],Pe=o[G];if(f)var ge=O?f(Pe,me,G,o,n,E):f(me,Pe,G,n,o,E);if(ge!==r){if(ge)continue;Q=!1;break}if(ie){if(!vu(o,function($e,Ne){if(!go(ie,Ne)&&(me===$e||y(me,$e,u,f,E)))return ie.push(Ne)})){Q=!1;break}}else if(!(me===Pe||y(me,Pe,u,f,E))){Q=!1;break}}return E.delete(n),E.delete(o),Q}function fw(n,o,u,f,y,E,O){switch(u){case ur:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case wr:return!(n.byteLength!=o.byteLength||!E(new _a(n),new _a(o)));case le:case we:case yt:return Wr(+n,+o);case Ve:return n.name==o.name&&n.message==o.message;case et:case yr:return n==o+"";case ut:var R=Su;case rt:var L=f&_;if(R||(R=ga),n.size!=o.size&&!L)return!1;var z=O.get(n);if(z)return z==o;f|=g,O.set(n,o);var q=np(R(n),R(o),f,y,E,O);return O.delete(n),q;case sr:if(Eo)return Eo.call(n)==Eo.call(o)}return!1}function dw(n,o,u,f,y,E){var O=u&_,R=Zu(n),L=R.length,z=Zu(o),q=z.length;if(L!=q&&!O)return!1;for(var G=L;G--;){var Q=R[G];if(!(O?Q in o:Ge.call(o,Q)))return!1}var ie=E.get(n),me=E.get(o);if(ie&&me)return ie==o&&me==n;var Pe=!0;E.set(n,o),E.set(o,n);for(var ge=O;++G<L;){Q=R[G];var $e=n[Q],Ne=o[Q];if(f)var pr=O?f(Ne,$e,Q,o,n,E):f($e,Ne,Q,n,o,E);if(!(pr===r?$e===Ne||y($e,Ne,u,f,E):pr)){Pe=!1;break}ge||(ge=Q=="constructor")}if(Pe&&!ge){var Jt=n.constructor,hr=o.constructor;Jt!=hr&&"constructor"in n&&"constructor"in o&&!(typeof Jt=="function"&&Jt instanceof Jt&&typeof hr=="function"&&hr instanceof hr)&&(Pe=!1)}return E.delete(n),E.delete(o),Pe}function pn(n){return el(lp(n,r,yp),n+"")}function Zu(n){return _d(n,Tt,Vu)}function Gu(n){return _d(n,nr,ip)}var Ku=Ca?function(n){return Ca.get(n)}:pl;function Ba(n){for(var o=n.name+"",u=Ui[o],f=Ge.call(Ui,o)?u.length:0;f--;){var y=u[f],E=y.func;if(E==null||E==n)return y.name}return o}function qi(n){var o=Ge.call(b,"placeholder")?b:n;return o.placeholder}function ve(){var n=b.iteratee||fl;return n=n===fl?Ad:n,arguments.length?n(arguments[0],arguments[1]):n}function za(n,o){var u=n.__data__;return bw(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Yu(n){for(var o=Tt(n),u=o.length;u--;){var f=o[u],y=n[f];o[u]=[f,y,sp(y)]}return o}function ci(n,o){var u=_y(n,o);return Od(u)?u:r}function pw(n){var o=Ge.call(n,oi),u=n[oi];try{n[oi]=r;var f=!0}catch{}var y=Sa.call(n);return f&&(o?n[oi]=u:delete n[oi]),y}var Vu=_u?function(n){return n==null?[]:(n=Xe(n),An(_u(n),function(o){return cd.call(n,o)}))}:hl,ip=_u?function(n){for(var o=[];n;)Tn(o,Vu(n)),n=xa(n);return o}:hl,jt=Vt;(xu&&jt(new xu(new ArrayBuffer(1)))!=ur||wo&&jt(new wo)!=ut||Ou&&jt(Ou.resolve())!=er||Wi&&jt(new Wi)!=rt||bo&&jt(new bo)!=Nt)&&(jt=function(n){var o=Vt(n),u=o==At?n.constructor:r,f=u?fi(u):"";if(f)switch(f){case Yy:return ur;case Vy:return ut;case Xy:return er;case Jy:return rt;case Qy:return Nt}return o});function hw(n,o,u){for(var f=-1,y=u.length;++f<y;){var E=u[f],O=E.size;switch(E.type){case"drop":n+=O;break;case"dropRight":o-=O;break;case"take":o=kt(o,n+O);break;case"takeRight":n=_t(n,o-O);break}}return{start:n,end:o}}function vw(n){var o=n.match(ae);return o?o[1].split(re):[]}function op(n,o,u){o=Mn(o,n);for(var f=-1,y=o.length,E=!1;++f<y;){var O=Vr(o[f]);if(!(E=n!=null&&u(n,O)))break;n=n[O]}return E||++f!=y?E:(y=n==null?0:n.length,!!y&&Xa(y)&&hn(O,y)&&(Te(n)||di(n)))}function mw(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Ge.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function ap(n){return typeof n.constructor=="function"&&!Co(n)?Hi(xa(n)):{}}function gw(n,o,u){var f=n.constructor;switch(o){case wr:return Bu(n);case le:case we:return new f(+n);case ur:return ew(n,u);case Yn:case Vn:case Xn:case Jn:case $r:case un:case It:case Dr:case Nr:return Hd(n,u);case ut:return new f;case yt:case yr:return new f(n);case et:return tw(n);case rt:return new f;case sr:return rw(n)}}function yw(n,o){var u=o.length;if(!u)return n;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),n.replace(ce,`{
182
+ /* [wrapped with `+o+`] */
183
+ `)}function ww(n){return Te(n)||di(n)||!!(fd&&n&&n[fd])}function hn(n,o){var u=typeof n;return o=o??Be,!!o&&(u=="number"||u!="symbol"&&I0.test(n))&&n>-1&&n%1==0&&n<o}function Xt(n,o,u){if(!ot(u))return!1;var f=typeof o;return(f=="number"?rr(u)&&hn(o,u.length):f=="string"&&o in u)?Wr(u[o],n):!1}function Xu(n,o){if(Te(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||dr(n)?!0:vo.test(n)||!ho.test(n)||o!=null&&n in Xe(o)}function bw(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ju(n){var o=Ba(n),u=b[o];if(typeof u!="function"||!(o in De.prototype))return!1;if(n===u)return!0;var f=Ku(u);return!!f&&n===f[0]}function Sw(n){return!!sd&&sd in n}var Ew=wa?vn:vl;function Co(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ji;return n===u}function sp(n){return n===n&&!ot(n)}function up(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in Xe(u))}}function _w(n){var o=Ya(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function xw(n,o){var u=n[1],f=o[1],y=u|f,E=y<(x|C|H),O=f==H&&u==T||f==H&&u==j&&n[7].length<=o[8]||f==(H|j)&&o[7].length<=o[8]&&u==T;if(!(E||O))return n;f&x&&(n[2]=o[2],y|=u&x?0:P);var R=o[3];if(R){var L=n[3];n[3]=L?zd(L,R,o[4]):R,n[4]=L?Rn(n[3],h):o[4]}return R=o[5],R&&(L=n[5],n[5]=L?qd(L,R,o[6]):R,n[6]=L?Rn(n[5],h):o[6]),R=o[7],R&&(n[7]=R),f&H&&(n[8]=n[8]==null?o[8]:kt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=y,n}function Ow(n){var o=[];if(n!=null)for(var u in Xe(n))o.push(u);return o}function Aw(n){return Sa.call(n)}function lp(n,o,u){return o=_t(o===r?n.length-1:o,0),function(){for(var f=arguments,y=-1,E=_t(f.length-o,0),O=U(E);++y<E;)O[y]=f[o+y];y=-1;for(var R=U(o+1);++y<o;)R[y]=f[y];return R[o]=u(O),lr(n,this,R)}}function cp(n,o){return o.length<2?n:li(n,Or(o,0,-1))}function Tw(n,o){for(var u=n.length,f=kt(o.length,u),y=tr(n);f--;){var E=o[f];n[f]=hn(E,u)?y[E]:r}return n}function Qu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var fp=pp(Ld),Po=Hy||function(n,o){return Mt.setTimeout(n,o)},el=pp(V1);function dp(n,o,u){var f=o+"";return el(n,yw(f,Rw(vw(f),u)))}function pp(n){var o=0,u=0;return function(){var f=Zy(),y=Ee-(f-u);if(u=f,y>0){if(++o>=Re)return arguments[0]}else o=0;return n.apply(r,arguments)}}function qa(n,o){var u=-1,f=n.length,y=f-1;for(o=o===r?f:o;++u<o;){var E=Du(u,y),O=n[E];n[E]=n[u],n[u]=O}return n.length=o,n}var hp=_w(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(mo,function(u,f,y,E){o.push(y?E.replace(_e,"$1"):f||u)}),o});function Vr(n){if(typeof n=="string"||dr(n))return n;var o=n+"";return o=="0"&&1/n==-Oe?"-0":o}function fi(n){if(n!=null){try{return ba.call(n)}catch{}try{return n+""}catch{}}return""}function Rw(n,o){return Sr(fe,function(u){var f="_."+u[0];o&u[1]&&!va(n,f)&&n.push(f)}),n.sort()}function vp(n){if(n instanceof De)return n.clone();var o=new _r(n.__wrapped__,n.__chain__);return o.__actions__=tr(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Cw(n,o,u){(u?Xt(n,o,u):o===r)?o=1:o=_t(Ce(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var y=0,E=0,O=U(Ta(f/o));y<f;)O[E++]=Or(n,y,y+=o);return O}function Pw(n){for(var o=-1,u=n==null?0:n.length,f=0,y=[];++o<u;){var E=n[o];E&&(y[f++]=E)}return y}function Iw(){var n=arguments.length;if(!n)return[];for(var o=U(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return Tn(Te(u)?tr(u):[u],Ft(o,1))}var Mw=Ie(function(n,o){return vt(n)?xo(n,Ft(o,1,vt,!0)):[]}),Fw=Ie(function(n,o){var u=Ar(o);return vt(u)&&(u=r),vt(n)?xo(n,Ft(o,1,vt,!0),ve(u,2)):[]}),Lw=Ie(function(n,o){var u=Ar(o);return vt(u)&&(u=r),vt(n)?xo(n,Ft(o,1,vt,!0),r,u):[]});function $w(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ce(o),Or(n,o<0?0:o,f)):[]}function Dw(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ce(o),o=f-o,Or(n,0,o<0?0:o)):[]}function Nw(n,o){return n&&n.length?Na(n,ve(o,3),!0,!0):[]}function kw(n,o){return n&&n.length?Na(n,ve(o,3),!0):[]}function jw(n,o,u,f){var y=n==null?0:n.length;return y?(u&&typeof u!="number"&&Xt(n,o,u)&&(u=0,f=y),I1(n,o,u,f)):[]}function mp(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=u==null?0:Ce(u);return y<0&&(y=_t(f+y,0)),ma(n,ve(o,3),y)}function gp(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=f-1;return u!==r&&(y=Ce(u),y=u<0?_t(f+y,0):kt(y,f-1)),ma(n,ve(o,3),y,!0)}function yp(n){var o=n==null?0:n.length;return o?Ft(n,1):[]}function Ww(n){var o=n==null?0:n.length;return o?Ft(n,Oe):[]}function Uw(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:Ce(o),Ft(n,o)):[]}function Hw(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var y=n[o];f[y[0]]=y[1]}return f}function wp(n){return n&&n.length?n[0]:r}function Bw(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=u==null?0:Ce(u);return y<0&&(y=_t(f+y,0)),$i(n,o,y)}function zw(n){var o=n==null?0:n.length;return o?Or(n,0,-1):[]}var qw=Ie(function(n){var o=nt(n,Uu);return o.length&&o[0]===n[0]?Iu(o):[]}),Zw=Ie(function(n){var o=Ar(n),u=nt(n,Uu);return o===Ar(u)?o=r:u.pop(),u.length&&u[0]===n[0]?Iu(u,ve(o,2)):[]}),Gw=Ie(function(n){var o=Ar(n),u=nt(n,Uu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?Iu(u,r,o):[]});function Kw(n,o){return n==null?"":zy.call(n,o)}function Ar(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Yw(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=f;return u!==r&&(y=Ce(u),y=y<0?_t(f+y,0):kt(y,f-1)),o===o?Ry(n,o,y):ma(n,Qf,y,!0)}function Vw(n,o){return n&&n.length?Pd(n,Ce(o)):r}var Xw=Ie(bp);function bp(n,o){return n&&n.length&&o&&o.length?$u(n,o):n}function Jw(n,o,u){return n&&n.length&&o&&o.length?$u(n,o,ve(u,2)):n}function Qw(n,o,u){return n&&n.length&&o&&o.length?$u(n,o,r,u):n}var eb=pn(function(n,o){var u=n==null?0:n.length,f=Tu(n,o);return Fd(n,nt(o,function(y){return hn(y,u)?+y:y}).sort(Bd)),f});function tb(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,y=[],E=n.length;for(o=ve(o,3);++f<E;){var O=n[f];o(O,f,n)&&(u.push(O),y.push(f))}return Fd(n,y),u}function tl(n){return n==null?n:Ky.call(n)}function rb(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Xt(n,o,u)?(o=0,u=f):(o=o==null?0:Ce(o),u=u===r?f:Ce(u)),Or(n,o,u)):[]}function nb(n,o){return Da(n,o)}function ib(n,o,u){return ku(n,o,ve(u,2))}function ob(n,o){var u=n==null?0:n.length;if(u){var f=Da(n,o);if(f<u&&Wr(n[f],o))return f}return-1}function ab(n,o){return Da(n,o,!0)}function sb(n,o,u){return ku(n,o,ve(u,2),!0)}function ub(n,o){var u=n==null?0:n.length;if(u){var f=Da(n,o,!0)-1;if(Wr(n[f],o))return f}return-1}function lb(n){return n&&n.length?$d(n):[]}function cb(n,o){return n&&n.length?$d(n,ve(o,2)):[]}function fb(n){var o=n==null?0:n.length;return o?Or(n,1,o):[]}function db(n,o,u){return n&&n.length?(o=u||o===r?1:Ce(o),Or(n,0,o<0?0:o)):[]}function pb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ce(o),o=f-o,Or(n,o<0?0:o,f)):[]}function hb(n,o){return n&&n.length?Na(n,ve(o,3),!1,!0):[]}function vb(n,o){return n&&n.length?Na(n,ve(o,3)):[]}var mb=Ie(function(n){return In(Ft(n,1,vt,!0))}),gb=Ie(function(n){var o=Ar(n);return vt(o)&&(o=r),In(Ft(n,1,vt,!0),ve(o,2))}),yb=Ie(function(n){var o=Ar(n);return o=typeof o=="function"?o:r,In(Ft(n,1,vt,!0),r,o)});function wb(n){return n&&n.length?In(n):[]}function bb(n,o){return n&&n.length?In(n,ve(o,2)):[]}function Sb(n,o){return o=typeof o=="function"?o:r,n&&n.length?In(n,r,o):[]}function rl(n){if(!(n&&n.length))return[];var o=0;return n=An(n,function(u){if(vt(u))return o=_t(u.length,o),!0}),wu(o,function(u){return nt(n,mu(u))})}function Sp(n,o){if(!(n&&n.length))return[];var u=rl(n);return o==null?u:nt(u,function(f){return lr(o,r,f)})}var Eb=Ie(function(n,o){return vt(n)?xo(n,o):[]}),_b=Ie(function(n){return Wu(An(n,vt))}),xb=Ie(function(n){var o=Ar(n);return vt(o)&&(o=r),Wu(An(n,vt),ve(o,2))}),Ob=Ie(function(n){var o=Ar(n);return o=typeof o=="function"?o:r,Wu(An(n,vt),r,o)}),Ab=Ie(rl);function Tb(n,o){return jd(n||[],o||[],_o)}function Rb(n,o){return jd(n||[],o||[],To)}var Cb=Ie(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Sp(n,u)});function Ep(n){var o=b(n);return o.__chain__=!0,o}function Pb(n,o){return o(n),n}function Za(n,o){return o(n)}var Ib=pn(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,y=function(E){return Tu(E,n)};return o>1||this.__actions__.length||!(f instanceof De)||!hn(u)?this.thru(y):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Za,args:[y],thisArg:r}),new _r(f,this.__chain__).thru(function(E){return o&&!E.length&&E.push(r),E}))});function Mb(){return Ep(this)}function Fb(){return new _r(this.value(),this.__chain__)}function Lb(){this.__values__===r&&(this.__values__=Dp(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function $b(){return this}function Db(n){for(var o,u=this;u instanceof Ia;){var f=vp(u);f.__index__=0,f.__values__=r,o?y.__wrapped__=f:o=f;var y=f;u=u.__wrapped__}return y.__wrapped__=n,o}function Nb(){var n=this.__wrapped__;if(n instanceof De){var o=n;return this.__actions__.length&&(o=new De(this)),o=o.reverse(),o.__actions__.push({func:Za,args:[tl],thisArg:r}),new _r(o,this.__chain__)}return this.thru(tl)}function kb(){return kd(this.__wrapped__,this.__actions__)}var jb=ka(function(n,o,u){Ge.call(n,u)?++n[u]:fn(n,u,1)});function Wb(n,o,u){var f=Te(n)?Xf:P1;return u&&Xt(n,o,u)&&(o=r),f(n,ve(o,3))}function Ub(n,o){var u=Te(n)?An:Sd;return u(n,ve(o,3))}var Hb=Yd(mp),Bb=Yd(gp);function zb(n,o){return Ft(Ga(n,o),1)}function qb(n,o){return Ft(Ga(n,o),Oe)}function Zb(n,o,u){return u=u===r?1:Ce(u),Ft(Ga(n,o),u)}function _p(n,o){var u=Te(n)?Sr:Pn;return u(n,ve(o,3))}function xp(n,o){var u=Te(n)?fy:bd;return u(n,ve(o,3))}var Gb=ka(function(n,o,u){Ge.call(n,u)?n[u].push(o):fn(n,u,[o])});function Kb(n,o,u,f){n=rr(n)?n:Gi(n),u=u&&!f?Ce(u):0;var y=n.length;return u<0&&(u=_t(y+u,0)),Ja(n)?u<=y&&n.indexOf(o,u)>-1:!!y&&$i(n,o,u)>-1}var Yb=Ie(function(n,o,u){var f=-1,y=typeof o=="function",E=rr(n)?U(n.length):[];return Pn(n,function(O){E[++f]=y?lr(o,O,u):Oo(O,o,u)}),E}),Vb=ka(function(n,o,u){fn(n,u,o)});function Ga(n,o){var u=Te(n)?nt:Td;return u(n,ve(o,3))}function Xb(n,o,u,f){return n==null?[]:(Te(o)||(o=o==null?[]:[o]),u=f?r:u,Te(u)||(u=u==null?[]:[u]),Id(n,o,u))}var Jb=ka(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function Qb(n,o,u){var f=Te(n)?hu:td,y=arguments.length<3;return f(n,ve(o,4),u,y,Pn)}function eS(n,o,u){var f=Te(n)?dy:td,y=arguments.length<3;return f(n,ve(o,4),u,y,bd)}function tS(n,o){var u=Te(n)?An:Sd;return u(n,Va(ve(o,3)))}function rS(n){var o=Te(n)?md:K1;return o(n)}function nS(n,o,u){(u?Xt(n,o,u):o===r)?o=1:o=Ce(o);var f=Te(n)?O1:Y1;return f(n,o)}function iS(n){var o=Te(n)?A1:X1;return o(n)}function oS(n){if(n==null)return 0;if(rr(n))return Ja(n)?Ni(n):n.length;var o=jt(n);return o==ut||o==rt?n.size:Fu(n).length}function aS(n,o,u){var f=Te(n)?vu:J1;return u&&Xt(n,o,u)&&(o=r),f(n,ve(o,3))}var sS=Ie(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Xt(n,o[0],o[1])?o=[]:u>2&&Xt(o[0],o[1],o[2])&&(o=[o[0]]),Id(n,Ft(o,1),[])}),Ka=Uy||function(){return Mt.Date.now()};function uS(n,o){if(typeof o!="function")throw new Er(l);return n=Ce(n),function(){if(--n<1)return o.apply(this,arguments)}}function Op(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,dn(n,H,r,r,r,r,o)}function Ap(n,o){var u;if(typeof o!="function")throw new Er(l);return n=Ce(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var nl=Ie(function(n,o,u){var f=x;if(u.length){var y=Rn(u,qi(nl));f|=A}return dn(n,f,o,u,y)}),Tp=Ie(function(n,o,u){var f=x|C;if(u.length){var y=Rn(u,qi(Tp));f|=A}return dn(o,f,n,u,y)});function Rp(n,o,u){o=u?r:o;var f=dn(n,T,r,r,r,r,r,o);return f.placeholder=Rp.placeholder,f}function Cp(n,o,u){o=u?r:o;var f=dn(n,$,r,r,r,r,r,o);return f.placeholder=Cp.placeholder,f}function Pp(n,o,u){var f,y,E,O,R,L,z=0,q=!1,G=!1,Q=!0;if(typeof n!="function")throw new Er(l);o=Tr(o)||0,ot(u)&&(q=!!u.leading,G="maxWait"in u,E=G?_t(Tr(u.maxWait)||0,o):E,Q="trailing"in u?!!u.trailing:Q);function ie(mt){var Ur=f,gn=y;return f=y=r,z=mt,O=n.apply(gn,Ur),O}function me(mt){return z=mt,R=Po($e,o),q?ie(mt):O}function Pe(mt){var Ur=mt-L,gn=mt-z,Yp=o-Ur;return G?kt(Yp,E-gn):Yp}function ge(mt){var Ur=mt-L,gn=mt-z;return L===r||Ur>=o||Ur<0||G&&gn>=E}function $e(){var mt=Ka();if(ge(mt))return Ne(mt);R=Po($e,Pe(mt))}function Ne(mt){return R=r,Q&&f?ie(mt):(f=y=r,O)}function pr(){R!==r&&Wd(R),z=0,f=L=y=R=r}function Jt(){return R===r?O:Ne(Ka())}function hr(){var mt=Ka(),Ur=ge(mt);if(f=arguments,y=this,L=mt,Ur){if(R===r)return me(L);if(G)return Wd(R),R=Po($e,o),ie(L)}return R===r&&(R=Po($e,o)),O}return hr.cancel=pr,hr.flush=Jt,hr}var lS=Ie(function(n,o){return wd(n,1,o)}),cS=Ie(function(n,o,u){return wd(n,Tr(o)||0,u)});function fS(n){return dn(n,V)}function Ya(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Er(l);var u=function(){var f=arguments,y=o?o.apply(this,f):f[0],E=u.cache;if(E.has(y))return E.get(y);var O=n.apply(this,f);return u.cache=E.set(y,O)||E,O};return u.cache=new(Ya.Cache||cn),u}Ya.Cache=cn;function Va(n){if(typeof n!="function")throw new Er(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function dS(n){return Ap(2,n)}var pS=Q1(function(n,o){o=o.length==1&&Te(o[0])?nt(o[0],cr(ve())):nt(Ft(o,1),cr(ve()));var u=o.length;return Ie(function(f){for(var y=-1,E=kt(f.length,u);++y<E;)f[y]=o[y].call(this,f[y]);return lr(n,this,f)})}),il=Ie(function(n,o){var u=Rn(o,qi(il));return dn(n,A,r,o,u)}),Ip=Ie(function(n,o){var u=Rn(o,qi(Ip));return dn(n,D,r,o,u)}),hS=pn(function(n,o){return dn(n,j,r,r,r,o)});function vS(n,o){if(typeof n!="function")throw new Er(l);return o=o===r?o:Ce(o),Ie(n,o)}function mS(n,o){if(typeof n!="function")throw new Er(l);return o=o==null?0:_t(Ce(o),0),Ie(function(u){var f=u[o],y=Fn(u,0,o);return f&&Tn(y,f),lr(n,this,y)})}function gS(n,o,u){var f=!0,y=!0;if(typeof n!="function")throw new Er(l);return ot(u)&&(f="leading"in u?!!u.leading:f,y="trailing"in u?!!u.trailing:y),Pp(n,o,{leading:f,maxWait:o,trailing:y})}function yS(n){return Op(n,1)}function wS(n,o){return il(Hu(o),n)}function bS(){if(!arguments.length)return[];var n=arguments[0];return Te(n)?n:[n]}function SS(n){return xr(n,v)}function ES(n,o){return o=typeof o=="function"?o:r,xr(n,v,o)}function _S(n){return xr(n,w|v)}function xS(n,o){return o=typeof o=="function"?o:r,xr(n,w|v,o)}function OS(n,o){return o==null||yd(n,o,Tt(o))}function Wr(n,o){return n===o||n!==n&&o!==o}var AS=Ha(Pu),TS=Ha(function(n,o){return n>=o}),di=xd(function(){return arguments}())?xd:function(n){return ct(n)&&Ge.call(n,"callee")&&!cd.call(n,"callee")},Te=U.isArray,RS=qf?cr(qf):D1;function rr(n){return n!=null&&Xa(n.length)&&!vn(n)}function vt(n){return ct(n)&&rr(n)}function CS(n){return n===!0||n===!1||ct(n)&&Vt(n)==le}var Ln=By||vl,PS=Zf?cr(Zf):N1;function IS(n){return ct(n)&&n.nodeType===1&&!Io(n)}function MS(n){if(n==null)return!0;if(rr(n)&&(Te(n)||typeof n=="string"||typeof n.splice=="function"||Ln(n)||Zi(n)||di(n)))return!n.length;var o=jt(n);if(o==ut||o==rt)return!n.size;if(Co(n))return!Fu(n).length;for(var u in n)if(Ge.call(n,u))return!1;return!0}function FS(n,o){return Ao(n,o)}function LS(n,o,u){u=typeof u=="function"?u:r;var f=u?u(n,o):r;return f===r?Ao(n,o,r,u):!!f}function ol(n){if(!ct(n))return!1;var o=Vt(n);return o==Ve||o==Se||typeof n.message=="string"&&typeof n.name=="string"&&!Io(n)}function $S(n){return typeof n=="number"&&dd(n)}function vn(n){if(!ot(n))return!1;var o=Vt(n);return o==J||o==st||o==he||o==Kn}function Mp(n){return typeof n=="number"&&n==Ce(n)}function Xa(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Be}function ot(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function ct(n){return n!=null&&typeof n=="object"}var Fp=Gf?cr(Gf):j1;function DS(n,o){return n===o||Mu(n,o,Yu(o))}function NS(n,o,u){return u=typeof u=="function"?u:r,Mu(n,o,Yu(o),u)}function kS(n){return Lp(n)&&n!=+n}function jS(n){if(Ew(n))throw new xe(s);return Od(n)}function WS(n){return n===null}function US(n){return n==null}function Lp(n){return typeof n=="number"||ct(n)&&Vt(n)==yt}function Io(n){if(!ct(n)||Vt(n)!=At)return!1;var o=xa(n);if(o===null)return!0;var u=Ge.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&ba.call(u)==Ny}var al=Kf?cr(Kf):W1;function HS(n){return Mp(n)&&n>=-Be&&n<=Be}var $p=Yf?cr(Yf):U1;function Ja(n){return typeof n=="string"||!Te(n)&&ct(n)&&Vt(n)==yr}function dr(n){return typeof n=="symbol"||ct(n)&&Vt(n)==sr}var Zi=Vf?cr(Vf):H1;function BS(n){return n===r}function zS(n){return ct(n)&&jt(n)==Nt}function qS(n){return ct(n)&&Vt(n)==xn}var ZS=Ha(Lu),GS=Ha(function(n,o){return n<=o});function Dp(n){if(!n)return[];if(rr(n))return Ja(n)?kr(n):tr(n);if(yo&&n[yo])return Oy(n[yo]());var o=jt(n),u=o==ut?Su:o==rt?ga:Gi;return u(n)}function mn(n){if(!n)return n===0?n:0;if(n=Tr(n),n===Oe||n===-Oe){var o=n<0?-1:1;return o*pt}return n===n?n:0}function Ce(n){var o=mn(n),u=o%1;return o===o?u?o-u:o:0}function Np(n){return n?ui(Ce(n),0,Y):0}function Tr(n){if(typeof n=="number")return n;if(dr(n))return Z;if(ot(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=ot(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=rd(n);var u=ni.test(n);return u||P0.test(n)?uy(n.slice(2),u?2:8):Yt.test(n)?Z:+n}function kp(n){return Yr(n,nr(n))}function KS(n){return n?ui(Ce(n),-Be,Be):n===0?n:0}function ze(n){return n==null?"":fr(n)}var YS=Bi(function(n,o){if(Co(o)||rr(o)){Yr(o,Tt(o),n);return}for(var u in o)Ge.call(o,u)&&_o(n,u,o[u])}),jp=Bi(function(n,o){Yr(o,nr(o),n)}),Qa=Bi(function(n,o,u,f){Yr(o,nr(o),n,f)}),VS=Bi(function(n,o,u,f){Yr(o,Tt(o),n,f)}),XS=pn(Tu);function JS(n,o){var u=Hi(n);return o==null?u:gd(u,o)}var QS=Ie(function(n,o){n=Xe(n);var u=-1,f=o.length,y=f>2?o[2]:r;for(y&&Xt(o[0],o[1],y)&&(f=1);++u<f;)for(var E=o[u],O=nr(E),R=-1,L=O.length;++R<L;){var z=O[R],q=n[z];(q===r||Wr(q,ji[z])&&!Ge.call(n,z))&&(n[z]=E[z])}return n}),eE=Ie(function(n){return n.push(r,rp),lr(Wp,r,n)});function tE(n,o){return Jf(n,ve(o,3),Kr)}function rE(n,o){return Jf(n,ve(o,3),Cu)}function nE(n,o){return n==null?n:Ru(n,ve(o,3),nr)}function iE(n,o){return n==null?n:Ed(n,ve(o,3),nr)}function oE(n,o){return n&&Kr(n,ve(o,3))}function aE(n,o){return n&&Cu(n,ve(o,3))}function sE(n){return n==null?[]:La(n,Tt(n))}function uE(n){return n==null?[]:La(n,nr(n))}function sl(n,o,u){var f=n==null?r:li(n,o);return f===r?u:f}function lE(n,o){return n!=null&&op(n,o,M1)}function ul(n,o){return n!=null&&op(n,o,F1)}var cE=Xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Sa.call(o)),n[o]=u},cl(ir)),fE=Xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Sa.call(o)),Ge.call(n,o)?n[o].push(u):n[o]=[u]},ve),dE=Ie(Oo);function Tt(n){return rr(n)?vd(n):Fu(n)}function nr(n){return rr(n)?vd(n,!0):B1(n)}function pE(n,o){var u={};return o=ve(o,3),Kr(n,function(f,y,E){fn(u,o(f,y,E),f)}),u}function hE(n,o){var u={};return o=ve(o,3),Kr(n,function(f,y,E){fn(u,y,o(f,y,E))}),u}var vE=Bi(function(n,o,u){$a(n,o,u)}),Wp=Bi(function(n,o,u,f){$a(n,o,u,f)}),mE=pn(function(n,o){var u={};if(n==null)return u;var f=!1;o=nt(o,function(E){return E=Mn(E,n),f||(f=E.length>1),E}),Yr(n,Gu(n),u),f&&(u=xr(u,w|S|v,cw));for(var y=o.length;y--;)ju(u,o[y]);return u});function gE(n,o){return Up(n,Va(ve(o)))}var yE=pn(function(n,o){return n==null?{}:q1(n,o)});function Up(n,o){if(n==null)return{};var u=nt(Gu(n),function(f){return[f]});return o=ve(o),Md(n,u,function(f,y){return o(f,y[0])})}function wE(n,o,u){o=Mn(o,n);var f=-1,y=o.length;for(y||(y=1,n=r);++f<y;){var E=n==null?r:n[Vr(o[f])];E===r&&(f=y,E=u),n=vn(E)?E.call(n):E}return n}function bE(n,o,u){return n==null?n:To(n,o,u)}function SE(n,o,u,f){return f=typeof f=="function"?f:r,n==null?n:To(n,o,u,f)}var Hp=ep(Tt),Bp=ep(nr);function EE(n,o,u){var f=Te(n),y=f||Ln(n)||Zi(n);if(o=ve(o,4),u==null){var E=n&&n.constructor;y?u=f?new E:[]:ot(n)?u=vn(E)?Hi(xa(n)):{}:u={}}return(y?Sr:Kr)(n,function(O,R,L){return o(u,O,R,L)}),u}function _E(n,o){return n==null?!0:ju(n,o)}function xE(n,o,u){return n==null?n:Nd(n,o,Hu(u))}function OE(n,o,u,f){return f=typeof f=="function"?f:r,n==null?n:Nd(n,o,Hu(u),f)}function Gi(n){return n==null?[]:bu(n,Tt(n))}function AE(n){return n==null?[]:bu(n,nr(n))}function TE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=Tr(u),u=u===u?u:0),o!==r&&(o=Tr(o),o=o===o?o:0),ui(Tr(n),o,u)}function RE(n,o,u){return o=mn(o),u===r?(u=o,o=0):u=mn(u),n=Tr(n),L1(n,o,u)}function CE(n,o,u){if(u&&typeof u!="boolean"&&Xt(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=mn(n),o===r?(o=n,n=0):o=mn(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var y=pd();return kt(n+y*(o-n+sy("1e-"+((y+"").length-1))),o)}return Du(n,o)}var PE=zi(function(n,o,u){return o=o.toLowerCase(),n+(u?zp(o):o)});function zp(n){return ll(ze(n).toLowerCase())}function qp(n){return n=ze(n),n&&n.replace(M0,by).replace(X0,"")}function IE(n,o,u){n=ze(n),o=fr(o);var f=n.length;u=u===r?f:ui(Ce(u),0,f);var y=u;return u-=o.length,u>=0&&n.slice(u,y)==o}function ME(n){return n=ze(n),n&&fo.test(n)?n.replace(On,Sy):n}function FE(n){return n=ze(n),n&&I.test(n)?n.replace(m,"\\$&"):n}var LE=zi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),$E=zi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),DE=Kd("toLowerCase");function NE(n,o,u){n=ze(n),o=Ce(o);var f=o?Ni(n):0;if(!o||f>=o)return n;var y=(o-f)/2;return Ua(Ra(y),u)+n+Ua(Ta(y),u)}function kE(n,o,u){n=ze(n),o=Ce(o);var f=o?Ni(n):0;return o&&f<o?n+Ua(o-f,u):n}function jE(n,o,u){n=ze(n),o=Ce(o);var f=o?Ni(n):0;return o&&f<o?Ua(o-f,u)+n:n}function WE(n,o,u){return u||o==null?o=0:o&&(o=+o),Gy(ze(n).replace(W,""),o||0)}function UE(n,o,u){return(u?Xt(n,o,u):o===r)?o=1:o=Ce(o),Nu(ze(n),o)}function HE(){var n=arguments,o=ze(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var BE=zi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function zE(n,o,u){return u&&typeof u!="number"&&Xt(n,o,u)&&(o=u=r),u=u===r?Y:u>>>0,u?(n=ze(n),n&&(typeof o=="string"||o!=null&&!al(o))&&(o=fr(o),!o&&Di(n))?Fn(kr(n),0,u):n.split(o,u)):[]}var qE=zi(function(n,o,u){return n+(u?" ":"")+ll(o)});function ZE(n,o,u){return n=ze(n),u=u==null?0:ui(Ce(u),0,n.length),o=fr(o),n.slice(u,u+o.length)==o}function GE(n,o,u){var f=b.templateSettings;u&&Xt(n,o,u)&&(o=r),n=ze(n),o=Qa({},o,f,tp);var y=Qa({},o.imports,f.imports,tp),E=Tt(y),O=bu(y,E),R,L,z=0,q=o.interpolate||da,G="__p += '",Q=Eu((o.escape||da).source+"|"+q.source+"|"+(q===Fi?Ae:da).source+"|"+(o.evaluate||da).source+"|$","g"),ie="//# sourceURL="+(Ge.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ry+"]")+`
184
+ `;n.replace(Q,function(ge,$e,Ne,pr,Jt,hr){return Ne||(Ne=pr),G+=n.slice(z,hr).replace(F0,Ey),$e&&(R=!0,G+=`' +
185
+ __e(`+$e+`) +
186
+ '`),Jt&&(L=!0,G+=`';
187
+ `+Jt+`;
188
+ __p += '`),Ne&&(G+=`' +
191
189
  ((__t = (`+Ne+`)) == null ? '' : __t) +
192
- '`),z=en+me.length,me}),K+=`';
193
- `;var ve=ze.call(i,"variable")&&i.variable;if(!ve)K=`with (obj) {
194
- `+K+`
190
+ '`),z=hr+ge.length,ge}),G+=`';
191
+ `;var me=Ge.call(o,"variable")&&o.variable;if(!me)G=`with (obj) {
192
+ `+G+`
195
193
  }
196
- `;else if(je.test(ve))throw new Ee(f);K=(M?K.replace(Cr,""):K).replace(ki,"$1").replace(Rr,"$1;"),K="function("+(ve||"obj")+`) {
197
- `+(ve?"":`obj || (obj = {});
198
- `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
194
+ `;else if(je.test(me))throw new xe(c);G=(L?G.replace(Qn,""):G).replace(co,"$1").replace(ei,"$1;"),G="function("+(me||"obj")+`) {
195
+ `+(me?"":`obj || (obj = {});
196
+ `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
199
197
  function print() { __p += __j.call(arguments, '') }
200
198
  `:`;
201
- `)+K+`return __p
202
- }`;var Pe=Bd(function(){return Fe(b,re+"return "+K).apply(n,x)});if(Pe.source=K,mu(Pe))throw Pe;return Pe}function d_(t){return He(t).toLowerCase()}function p_(t){return He(t).toUpperCase()}function h_(t,i,s){if(t=He(t),t&&(s||i===n))return Jc(t);if(!t||!(i=Jt(i)))return t;var c=Sn(t),h=Sn(i),b=Zc(c,h),x=Qc(c,h)+1;return dr(c,b,x).join("")}function v_(t,i,s){if(t=He(t),t&&(s||i===n))return t.slice(0,tf(t)+1);if(!t||!(i=Jt(i)))return t;var c=Sn(t),h=Qc(c,Sn(i))+1;return dr(c,0,h).join("")}function m_(t,i,s){if(t=He(t),t&&(s||i===n))return t.replace(F,"");if(!t||!(i=Jt(i)))return t;var c=Sn(t),h=Zc(c,Sn(i));return dr(c,h).join("")}function g_(t,i){var s=ee,c=ge;if(tt(i)){var h="separator"in i?i.separator:h;s="length"in i?Re(i.length):s,c="omission"in i?Jt(i.omission):c}t=He(t);var b=t.length;if(ui(t)){var x=Sn(t);b=x.length}if(s>=b)return t;var R=s-li(c);if(R<1)return c;var M=x?dr(x,0,R).join(""):t.slice(0,R);if(h===n)return M+c;if(x&&(R+=M.length-R),gu(h)){if(t.slice(R).search(h)){var z,q=M;for(h.global||(h=Ms(h.source,He(ot.exec(h))+"g")),h.lastIndex=0;z=h.exec(q);)var K=z.index;M=M.slice(0,K===n?R:K)}}else if(t.indexOf(Jt(h),R)!=R){var Z=M.lastIndexOf(h);Z>-1&&(M=M.slice(0,Z))}return M+c}function y_(t){return t=He(t),t&&Pr.test(t)?t.replace(ii,Kg):t}var w_=mi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),bu=zf("toUpperCase");function Ud(t,i,s){return t=He(t),i=s?n:i,i===n?Ug(t)?Vg(t):Mg(t):t.match(i)||[]}var Bd=Ae(function(t,i){try{return Xt(t,n,i)}catch(s){return mu(s)?s:new Ee(s)}}),b_=Kn(function(t,i){return sn(i,function(s){s=Mn(s),qn(t,s,hu(t[s],t))}),t});function __(t){var i=t==null?0:t.length,s=he();return t=i?et(t,function(c){if(typeof c[1]!="function")throw new un(l);return[s(c[0]),c[1]]}):[],Ae(function(c){for(var h=-1;++h<i;){var b=t[h];if(Xt(b[0],this,c))return Xt(b[1],this,c)}})}function S_(t){return K0(cn(t,_))}function _u(t){return function(){return t}}function E_(t,i){return t==null||t!==t?i:t}var x_=Gf(),O_=Gf(!0);function zt(t){return t}function Su(t){return Sf(typeof t=="function"?t:cn(t,_))}function T_(t){return xf(cn(t,_))}function C_(t,i){return Of(t,cn(i,_))}var R_=Ae(function(t,i){return function(s){return Xi(s,t,i)}}),P_=Ae(function(t,i){return function(s){return Xi(t,s,i)}});function Eu(t,i,s){var c=yt(i),h=Qo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Qo(i,yt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,x=Xn(t);return sn(h,function(R){var M=i[R];t[R]=M,x&&(t.prototype[R]=function(){var z=this.__chain__;if(b||z){var q=t(this.__wrapped__),K=q.__actions__=Ht(this.__actions__);return K.push({func:M,args:arguments,thisArg:t}),q.__chain__=z,q}return M.apply(t,ar([this.value()],arguments))})}),t}function A_(){return _t._===this&&(_t._=n0),this}function xu(){}function I_(t){return t=Re(t),Ae(function(i){return Tf(i,t)})}var L_=tu(et),M_=tu(Gc),D_=tu(Ts);function zd(t){return uu(t)?Cs(Mn(t)):cy(t)}function k_(t){return function(i){return t==null?n:$r(t,i)}}var N_=Yf(),$_=Yf(!0);function Ou(){return[]}function Tu(){return!1}function j_(){return{}}function F_(){return""}function W_(){return!0}function H_(t,i){if(t=Re(t),t<1||t>We)return[];var s=X,c=Ct(t,X);i=he(i),t-=X;for(var h=As(c,i);++s<t;)i(s);return h}function U_(t){return Te(t)?et(t,Mn):Zt(t)?[t]:Ht(cd(He(t)))}function B_(t){var i=++e0;return He(t)+i}var z_=oa(function(t,i){return t+i},0),q_=nu("ceil"),G_=oa(function(t,i){return t/i},1),K_=nu("floor");function Y_(t){return t&&t.length?Zo(t,zt,Hs):n}function X_(t,i){return t&&t.length?Zo(t,he(i,2),Hs):n}function V_(t){return Xc(t,zt)}function J_(t,i){return Xc(t,he(i,2))}function Z_(t){return t&&t.length?Zo(t,zt,qs):n}function Q_(t,i){return t&&t.length?Zo(t,he(i,2),qs):n}var eS=oa(function(t,i){return t*i},1),tS=nu("round"),nS=oa(function(t,i){return t-i},0);function rS(t){return t&&t.length?Ps(t,zt):0}function iS(t,i){return t&&t.length?Ps(t,he(i,2)):0}return w.after=Tw,w.ary=_d,w.assign=pb,w.assignIn=kd,w.assignInWith=ya,w.assignWith=hb,w.at=vb,w.before=Sd,w.bind=hu,w.bindAll=b_,w.bindKey=Ed,w.castArray=jw,w.chain=yd,w.chunk=Ky,w.compact=Yy,w.concat=Xy,w.cond=__,w.conforms=S_,w.constant=_u,w.countBy=rw,w.create=mb,w.curry=xd,w.curryRight=Od,w.debounce=Td,w.defaults=gb,w.defaultsDeep=yb,w.defer=Cw,w.delay=Rw,w.difference=Vy,w.differenceBy=Jy,w.differenceWith=Zy,w.drop=Qy,w.dropRight=e1,w.dropRightWhile=t1,w.dropWhile=n1,w.fill=r1,w.filter=ow,w.flatMap=uw,w.flatMapDeep=lw,w.flatMapDepth=cw,w.flatten=hd,w.flattenDeep=i1,w.flattenDepth=o1,w.flip=Pw,w.flow=x_,w.flowRight=O_,w.fromPairs=a1,w.functions=Ob,w.functionsIn=Tb,w.groupBy=fw,w.initial=u1,w.intersection=l1,w.intersectionBy=c1,w.intersectionWith=f1,w.invert=Rb,w.invertBy=Pb,w.invokeMap=pw,w.iteratee=Su,w.keyBy=hw,w.keys=yt,w.keysIn=Bt,w.map=da,w.mapKeys=Ib,w.mapValues=Lb,w.matches=T_,w.matchesProperty=C_,w.memoize=ha,w.merge=Mb,w.mergeWith=Nd,w.method=R_,w.methodOf=P_,w.mixin=Eu,w.negate=va,w.nthArg=I_,w.omit=Db,w.omitBy=kb,w.once=Aw,w.orderBy=vw,w.over=L_,w.overArgs=Iw,w.overEvery=M_,w.overSome=D_,w.partial=vu,w.partialRight=Cd,w.partition=mw,w.pick=Nb,w.pickBy=$d,w.property=zd,w.propertyOf=k_,w.pull=v1,w.pullAll=md,w.pullAllBy=m1,w.pullAllWith=g1,w.pullAt=y1,w.range=N_,w.rangeRight=$_,w.rearg=Lw,w.reject=ww,w.remove=w1,w.rest=Mw,w.reverse=du,w.sampleSize=_w,w.set=jb,w.setWith=Fb,w.shuffle=Sw,w.slice=b1,w.sortBy=Ow,w.sortedUniq=C1,w.sortedUniqBy=R1,w.split=u_,w.spread=Dw,w.tail=P1,w.take=A1,w.takeRight=I1,w.takeRightWhile=L1,w.takeWhile=M1,w.tap=Y1,w.throttle=kw,w.thru=fa,w.toArray=Ld,w.toPairs=jd,w.toPairsIn=Fd,w.toPath=U_,w.toPlainObject=Dd,w.transform=Wb,w.unary=Nw,w.union=D1,w.unionBy=k1,w.unionWith=N1,w.uniq=$1,w.uniqBy=j1,w.uniqWith=F1,w.unset=Hb,w.unzip=pu,w.unzipWith=gd,w.update=Ub,w.updateWith=Bb,w.values=wi,w.valuesIn=zb,w.without=W1,w.words=Ud,w.wrap=$w,w.xor=H1,w.xorBy=U1,w.xorWith=B1,w.zip=z1,w.zipObject=q1,w.zipObjectDeep=G1,w.zipWith=K1,w.entries=jd,w.entriesIn=Fd,w.extend=kd,w.extendWith=ya,Eu(w,w),w.add=z_,w.attempt=Bd,w.camelCase=Yb,w.capitalize=Wd,w.ceil=q_,w.clamp=qb,w.clone=Fw,w.cloneDeep=Hw,w.cloneDeepWith=Uw,w.cloneWith=Ww,w.conformsTo=Bw,w.deburr=Hd,w.defaultTo=E_,w.divide=G_,w.endsWith=Xb,w.eq=xn,w.escape=Vb,w.escapeRegExp=Jb,w.every=iw,w.find=aw,w.findIndex=dd,w.findKey=wb,w.findLast=sw,w.findLastIndex=pd,w.findLastKey=bb,w.floor=K_,w.forEach=wd,w.forEachRight=bd,w.forIn=_b,w.forInRight=Sb,w.forOwn=Eb,w.forOwnRight=xb,w.get=yu,w.gt=zw,w.gte=qw,w.has=Cb,w.hasIn=wu,w.head=vd,w.identity=zt,w.includes=dw,w.indexOf=s1,w.inRange=Gb,w.invoke=Ab,w.isArguments=Wr,w.isArray=Te,w.isArrayBuffer=Gw,w.isArrayLike=Ut,w.isArrayLikeObject=ct,w.isBoolean=Kw,w.isBuffer=pr,w.isDate=Yw,w.isElement=Xw,w.isEmpty=Vw,w.isEqual=Jw,w.isEqualWith=Zw,w.isError=mu,w.isFinite=Qw,w.isFunction=Xn,w.isInteger=Rd,w.isLength=ma,w.isMap=Pd,w.isMatch=eb,w.isMatchWith=tb,w.isNaN=nb,w.isNative=rb,w.isNil=ob,w.isNull=ib,w.isNumber=Ad,w.isObject=tt,w.isObjectLike=at,w.isPlainObject=to,w.isRegExp=gu,w.isSafeInteger=ab,w.isSet=Id,w.isString=ga,w.isSymbol=Zt,w.isTypedArray=yi,w.isUndefined=sb,w.isWeakMap=ub,w.isWeakSet=lb,w.join=d1,w.kebabCase=Zb,w.last=dn,w.lastIndexOf=p1,w.lowerCase=Qb,w.lowerFirst=e_,w.lt=cb,w.lte=fb,w.max=Y_,w.maxBy=X_,w.mean=V_,w.meanBy=J_,w.min=Z_,w.minBy=Q_,w.stubArray=Ou,w.stubFalse=Tu,w.stubObject=j_,w.stubString=F_,w.stubTrue=W_,w.multiply=eS,w.nth=h1,w.noConflict=A_,w.noop=xu,w.now=pa,w.pad=t_,w.padEnd=n_,w.padStart=r_,w.parseInt=i_,w.random=Kb,w.reduce=gw,w.reduceRight=yw,w.repeat=o_,w.replace=a_,w.result=$b,w.round=tS,w.runInContext=A,w.sample=bw,w.size=Ew,w.snakeCase=s_,w.some=xw,w.sortedIndex=_1,w.sortedIndexBy=S1,w.sortedIndexOf=E1,w.sortedLastIndex=x1,w.sortedLastIndexBy=O1,w.sortedLastIndexOf=T1,w.startCase=l_,w.startsWith=c_,w.subtract=nS,w.sum=rS,w.sumBy=iS,w.template=f_,w.times=H_,w.toFinite=Vn,w.toInteger=Re,w.toLength=Md,w.toLower=d_,w.toNumber=pn,w.toSafeInteger=db,w.toString=He,w.toUpper=p_,w.trim=h_,w.trimEnd=v_,w.trimStart=m_,w.truncate=g_,w.unescape=y_,w.uniqueId=B_,w.upperCase=w_,w.upperFirst=bu,w.each=wd,w.eachRight=bd,w.first=vd,Eu(w,function(){var t={};return In(w,function(i,s){ze.call(w.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),w.VERSION=o,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){w[t].placeholder=w}),sn(["drop","take"],function(t,i){ke.prototype[t]=function(s){s=s===n?1:vt(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Ct(s,c.__takeCount__):c.__views__.push({size:Ct(s,X),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),sn(["filter","map","takeWhile"],function(t,i){var s=i+1,c=s==se||s==we;ke.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:he(h,3),type:s}),b.__filtered__=b.__filtered__||c,b}}),sn(["head","last"],function(t,i){var s="take"+(i?"Right":"");ke.prototype[t]=function(){return this[s](1).value()[0]}}),sn(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[s](1)}}),ke.prototype.compact=function(){return this.filter(zt)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=Ae(function(t,i){return typeof t=="function"?new ke(this):this.map(function(s){return Xi(s,t,i)})}),ke.prototype.reject=function(t){return this.filter(va(he(t)))},ke.prototype.slice=function(t,i){t=Re(t);var s=this;return s.__filtered__&&(t>0||i<0)?new ke(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(X)},In(ke.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=w[c?"take"+(i=="last"?"Right":""):i],b=c||/^find/.test(i);h&&(w.prototype[i]=function(){var x=this.__wrapped__,R=c?[1]:arguments,M=x instanceof ke,z=R[0],q=M||Te(x),K=function(De){var Ne=h.apply(w,ar([De],R));return c&&Z?Ne[0]:Ne};q&&s&&typeof z=="function"&&z.length!=1&&(M=q=!1);var Z=this.__chain__,re=!!this.__actions__.length,ve=b&&!Z,Pe=M&&!re;if(!b&&q){x=Pe?x:new ke(this);var me=t.apply(x,R);return me.__actions__.push({func:fa,args:[K],thisArg:n}),new ln(me,Z)}return ve&&Pe?t.apply(this,R):(me=this.thru(K),ve?c?me.value()[0]:me.value():me)})}),sn(["pop","push","shift","sort","splice","unshift"],function(t){var i=$o[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var b=this.value();return i.apply(Te(b)?b:[],h)}return this[s](function(x){return i.apply(Te(x)?x:[],h)})}}),In(ke.prototype,function(t,i){var s=w[i];if(s){var c=s.name+"";ze.call(pi,c)||(pi[c]=[]),pi[c].push({name:i,func:s})}}),pi[ia(n,D).name]=[{name:"wrapper",func:n}],ke.prototype.clone=y0,ke.prototype.reverse=w0,ke.prototype.value=b0,w.prototype.at=X1,w.prototype.chain=V1,w.prototype.commit=J1,w.prototype.next=Z1,w.prototype.plant=ew,w.prototype.reverse=tw,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=nw,w.prototype.first=w.prototype.head,Ui&&(w.prototype[Ui]=Q1),w},ci=Jg();Lr?((Lr.exports=ci)._=ci,Ss._=ci):_t._=ci}).call(zr)})(es,es.exports);var pt=es.exports;const Dl={FdSave:LE,FdWarningDanger:Yl,FdInfoCircle:PE,FdInfoBold:wl};var dc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(dc||{}),Vr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Vr||{}),Ti=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Ti||{});const sm={[Vr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Vr.DANGER]:{icon:"red-500",button:"primary-dark"},[Vr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},al=({color:e=Vr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=sm[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-white hover:text-${u}`;return $.jsx("button",{autoFocus:o,className:Ot("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},lP=({name:e,color:r=Vr.PRIMARY,className:n="w-10 h-10"})=>{const o=Dl[e]||Dl.FdInfoCircle,a=`text-${sm[r].icon}`;return $.jsx(o,{className:Ot(n,a)})},cP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:f,width:d=520,hasOverlay:v=!0,onClose:g,onEdit:_})=>{const O=y=>{g({id:e,reason:y})};N.useEffect(()=>{function y(E){E.key==="Escape"&&O(Ti.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const m=pt.merge(pt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),S=(y,E)=>{var I;if(!(f!=null&&f.toggles))return;const D=pt.cloneDeep(f);(I=D.toggles)!=null&&I[y]&&(D.toggles[y].value=E),_({id:e,views:D})};return yo.createPortal($.jsx(Qa,{appear:!0,show:!0,as:N.Fragment,children:$.jsx("div",{className:Ot("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":v}),style:{zIndex:l},onClick:()=>O(Ti.CANCELED),children:$.jsx(Qa.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[o?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(lP,{name:o,color:u})}):null,$.jsx(fP,{condition:r,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),$.jsx("div",{className:"text-xs text-white",children:pt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(om,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(dP,{warnings:m}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===dc.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(al,{autoFocus:!0,color:u,onClick:()=>O(Ti.CONFIRMED),children:"Confirm"}),$.jsx(al,{color:u,variant:"outlined",onClick:()=>O(Ti.CANCELED),children:"Cancel"})]}):$.jsx(al,{autoFocus:!0,onClick:()=>O(),children:"OK"})})]})})})})}),document.querySelector("body"))},fP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,dP=e=>e.warnings?$.jsx(Qa,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((r,n)=>$.jsx(Qa.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Yl,{className:Ot({"h-3 w-3":!0,"text-orange-400":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;function pP(e,r){const n=N.useRef(!1);N.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var sl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function ul(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function um(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function lm(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function hP(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var vo={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":sl?173:189,"=":sl?61:187,";":sl?59:186,"'":222,"[":219,"]":221,"\\":220},Hn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},kl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},xt={16:!1,18:!1,17:!1,91:!1},st={};for(var ka=1;ka<20;ka++)vo["f".concat(ka)]=111+ka;var Ve=[],hh=!1,cm="all",fm=[],Po=function(r){return vo[r.toLowerCase()]||Hn[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},vP=function(r){return Object.keys(vo).find(function(n){return vo[n]===r})},mP=function(r){return Object.keys(Hn).find(function(n){return Hn[n]===r})};function dm(e){cm=e||"all"}function mo(){return cm||"all"}function gP(){return Ve.slice(0)}function yP(){return Ve.map(function(e){return vP(e)||mP(e)||String.fromCharCode(e)})}function wP(){var e=[];return Object.keys(st).forEach(function(r){st[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,l=n.shortcut;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(function(f){return Po(f)})})})}),e}function bP(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function _P(e){return typeof e=="string"&&(e=Po(e)),Ve.indexOf(e)!==-1}function SP(e,r){var n,o;e||(e=mo());for(var a in st)if(Object.prototype.hasOwnProperty.call(st,a))for(n=st[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;mo()===e&&dm(r||"all")}function EP(e){var r=e.keyCode||e.which||e.charCode,n=Ve.indexOf(r);if(n>=0&&Ve.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(r===93||r===224)&&(r=91),r in xt){xt[r]=!1;for(var o in Hn)Hn[o]===r&&(Pn[o]=!1)}}function xP(e){if(typeof e>"u")Object.keys(st).forEach(function(l){return delete st[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&ll(l)});else if(typeof e=="object")e.key&&ll(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),ll({key:e,scope:a,method:u,splitKey:"+"})}}var ll=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,l=u===void 0?"+":u,f=lm(n);f.forEach(function(d){var v=d.split(l),g=v.length,_=v[g-1],O=_==="*"?"*":Po(_);if(st[O]){o||(o=mo());var m=g>1?um(Hn,v):[];st[O]=st[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&hP(S.mods,m))})}})};function vh(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(!xt[u]&&r.mods.indexOf(+u)>-1||xt[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!xt[16]&&!xt[18]&&!xt[17]&&!xt[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(Ve),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function mh(e,r){var n=st["*"],o=e.keyCode||e.which||e.charCode;if(Pn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Ve.indexOf(o)===-1&&o!==229&&Ve.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=kl[S];e[S]&&Ve.indexOf(y)===-1?Ve.push(y):!e[S]&&Ve.indexOf(y)>-1?Ve.splice(Ve.indexOf(y),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(y))))}),o in xt){xt[o]=!0;for(var a in Hn)Hn[a]===o&&(Pn[a]=!0);if(!n)return}for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(xt[u]=e[kl[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),xt[17]=!0,xt[18]=!0);var l=mo();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&vh(e,n[f],l,r);if(o in st){for(var d=0;d<st[o].length;d++)if((e.type==="keydown"&&st[o][d].keydown||e.type==="keyup"&&st[o][d].keyup)&&st[o][d].key){for(var v=st[o][d],g=v.splitKey,_=v.key.split(g),O=[],m=0;m<_.length;m++)O.push(Po(_[m]));O.sort().join("")===Ve.sort().join("")&&vh(e,v,l,r)}}}}function OP(e){return fm.indexOf(e)>-1}function Pn(e,r,n){Ve=[];var o=lm(e),a=[],u="all",l=document,f=0,d=!1,v=!0,g="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(d=r.keyup),r.keydown!==void 0&&(v=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(g=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(g),a=[],e.length>1&&(a=um(Hn,e)),e=e[e.length-1],e=e==="*"?"*":Po(e),e in st||(st[e]=[]),st[e].push({keyup:d,keydown:v,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:g,element:l});typeof l<"u"&&!OP(l)&&window&&(fm.push(l),ul(l,"keydown",function(O){mh(O,l)},_),hh||(hh=!0,ul(window,"focus",function(){Ve=[]},_)),ul(l,"keyup",function(O){mh(O,l),EP(O)},_))}function TP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(st).forEach(function(n){var o=st[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var cl={getPressedKeyString:yP,setScope:dm,getScope:mo,deleteScope:SP,getPressedKeyCodes:gP,getAllKeyCodes:wP,isPressed:_P,filter:bP,trigger:TP,unbind:xP,keyMap:vo,modifier:Hn,modifierMap:kl};for(var fl in cl)Object.prototype.hasOwnProperty.call(cl,fl)&&(Pn[fl]=cl[fl]);if(typeof window<"u"){var CP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=CP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function RP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=N.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>r(f,d))},o),l=()=>{Pn.unbind(e,u)};N.useEffect(()=>(Pn(e,n,u),l),[e,n,u])}const PP=e=>{const r=N.useRef(null);return N.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function AP(e){const r=N.useRef();return N.useEffect(()=>{r.current=e},[e]),r.current}function IP(e){const r=N.useRef(e);return N.useEffect(()=>{r.current=e},[e]),r}function LP(e){const r=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}function MP(e){const[r,n]=N.useState(e),o=(u,l)=>{n(f=>({...f,features:{...f.features,[u]:{enabled:l}}}))},a=N.useCallback((...u)=>u.every(l=>{var f;return(f=r.features[l])==null?void 0:f.enabled}),[r.features]);return{setFeature:o,isFeatureEnabled:a}}const pm=N.createContext(""),DP=e=>$.jsx(pm.Provider,{value:e.value,children:e.children}),kP=()=>{const e=N.useContext(pm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function NP(e){const[r,n]=N.useState(e),o=N.useMemo(()=>$P(r,n),[]);return{state:r,actions:{...o,set:a=>{n(typeof a=="function"?a:u=>({...u,...a}))}}}}function $P(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${pt.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const jP=(e,r,n={})=>{n={timeout:200,...n};const o=N.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return N.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function tr(e){return typeof e=="function"}function hm(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var dl=hm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
203
- `+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
204
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Nl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var hs=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var f=El(l),d=f.next();!d.done;d=f.next()){var v=d.value;v.remove(this)}}catch(y){r={error:y}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}else l.remove(this);var g=this.initialTeardown;if(tr(g))try{g()}catch(y){u=y instanceof dl?y.errors:[y]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var O=El(_),m=O.next();!m.done;m=O.next()){var S=m.value;try{gh(S)}catch(y){u=u??[],y instanceof dl?u=po(po([],Ya(u)),Ya(y.errors)):u.push(y)}}}catch(y){o={error:y}}finally{try{m&&!m.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}}if(u)throw new dl(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)gh(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&Nl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&Nl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),vm=hs.EMPTY;function mm(e){return e instanceof hs||e&&"closed"in e&&tr(e.remove)&&tr(e.add)&&tr(e.unsubscribe)}function gh(e){tr(e)?e():e.unsubscribe()}var gm={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},$l={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=$l.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,po([e,r],Ya(n))):setTimeout.apply(void 0,po([e,r],Ya(n)))},clearTimeout:function(e){var r=$l.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function FP(e){$l.setTimeout(function(){throw e})}function yh(){}function Ba(e){e()}var ym=function(e){os(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,mm(n)&&n.add(o)):o.destination=BP,o}return r.create=function(n,o,a){return new jl(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(hs),WP=Function.prototype.bind;function pl(e,r){return WP.call(e,r)}var HP=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){Na(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){Na(o)}else Na(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){Na(n)}},e}(),jl=function(e){os(r,e);function r(n,o,a){var u=e.call(this)||this,l;if(tr(n)||!n)l={next:n??void 0,error:o??void 0,complete:a??void 0};else{var f;u&&gm.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return u.unsubscribe()},l={next:n.next&&pl(n.next,f),error:n.error&&pl(n.error,f),complete:n.complete&&pl(n.complete,f)}):l=n}return u.destination=new HP(l),u}return r}(ym);function Na(e){FP(e)}function UP(e){throw e}var BP={closed:!0,next:yh,error:UP,complete:yh},zP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function qP(e){return e}function GP(e){return e.length===0?qP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var wh=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=YP(r)?r:new jl(r,n,o);return Ba(function(){var l=a,f=l.operator,d=l.source;u.add(f?f.call(u,d):d?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=bh(n),new n(function(a,u){var l=new jl({next:function(f){try{r(f)}catch(d){u(d),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[zP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return GP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=bh(r),new r(function(o,a){var u;n.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function bh(e){var r;return(r=e??gm.Promise)!==null&&r!==void 0?r:Promise}function KP(e){return e&&tr(e.next)&&tr(e.error)&&tr(e.complete)}function YP(e){return e&&e instanceof ym||KP(e)&&mm(e)}var XP=hm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ni=function(e){os(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new _h(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new XP},r.prototype.next=function(n){var o=this;Ba(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=El(o.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(n)}}catch(v){a={error:v}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Ba(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Ba(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,l=a.isStopped,f=a.observers;return u||l?vm:(this.currentObservers=null,f.push(n),new hs(function(){o.currentObservers=null,Nl(f,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?n.error(u):l&&n.complete()},r.prototype.asObservable=function(){var n=new wh;return n.source=this,n},r.create=function(n,o){return new _h(n,o)},r}(wh),_h=function(e){os(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:vm},r}(ni),wm=(e=>(e.RELOAD="reload",e))(wm||{}),bm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(bm||{});const VP=new ni,JP=new ni,ZP=new ni;var _m=(e=>(e.SAVE_ALL="save-all",e))(_m||{});const QP=new ni;var Sm=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(Sm||{});const eA=new ni;var Em=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Em||{});const tA=new ni,pc=31;var hc=(e=>(e.EMPTY="Please enter a valid name",e[e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${pc} characters`]="LENGTH_EXCEEDED",e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(hc||{});function xm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>pc)throw new Error(hc.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function nA(e){if(!e)return null;if(typeof e=="string")try{xm(e)}catch(r){return r.message}}function rA(e,r){let n="";if(["array","object"].includes(r))try{const o=JSON.parse(e);r==="array"&&(!Array.isArray(o)||!pt.isObject(o))&&(n=`Invalid value for type ${r}`),r==="object"&&(!pt.isObject(o)||Array.isArray(o))&&(n=`Invalid value for type ${r}`)}catch{n=`Invalid value for type ${r}`}return r==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(n=`Invalid value for type ${r}`)),r==="number"&&isNaN(+e)&&(n=`Invalid value for type ${r}`),["boolean","bool"].includes(r)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(n=`Invalid value for type ${r}`),n}function vs(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(r,"")}var vc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(vc||{});const br={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var hn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(hn||{}),ri=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(ri||{}),mc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(mc||{});const Om="roles.json",Tm="qodlyApp.json",iA="model.4DModel",Cm="HTTPHandlers.json";function Rm(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return hn.MODEL;case n==="WebForm":return hn.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===br.METHODS):return hn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===br.CLASSES):return hn.CLASS;case e===Om:return hn.ROLES;case e===Cm:return hn.HTTP_HANDLERS;case e===Tm:return hn.SETTINGS;default:return hn.TEXT}}function oA(e,r=!1){switch(e){case br.REPORTS:case"report":return"QoDoc";case br.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case br.CLASSES:case br.METHODS:return r?"4qs":"4dm";default:return""}}function aA(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Pm{constructor(){Gd(this,"current",Promise.resolve())}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Am(){const e=new Pm;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Im=pt.curry((e,r,n)=>e&&pt.get(n,e)===r),sA=pt.curry((e,r,n)=>pt.get(n,e)!==r),uA=pt.curry((e,r)=>pt.get(r,"id")!==e),lA=pt.curry((e,r)=>pt.get(r,"id")===e),cA=pt.curry((e,r)=>pt.get(r,"path")===e);function fA(e="id",r,n){return n.findIndex(Im(e,r))!==-1}function dA(e){if(!e)return"";const{id:r,namespace:n}=e;return n&&r?`${n}:${r}`:r}function Lm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function pA(e){return e.type==="object"}function Mm(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Dm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Lm(e)}function hA(e){return Mm(e)||Dm(e)}function vA(e){return e.applyTo==="dataStore"}function mA(e){return e.applyTo==="dataClass"}function gA(e){return e.applyTo==="entity"}function yA(e){return e.applyTo==="entityCollection"}function wA(e){return e.type==="entity"}function bA(e){return e.type==="entitysel"}function km(e){return e.dataType==="array"}function Nm(e){return e.dataType==="object"}function $m(e){return e.type==="scalar"}function _A(e){return km(e)||Nm(e)||$m(e)}const SA=e=>e!=null&&e.type==="entity",EA=e=>e.type==="entitysel",xA=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",OA=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",TA=e=>e.type==="scalar"&&e.dataType==="date";function CA(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}var go=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(go||{}),jm=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(jm||{}),gc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(gc||{});const RA={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function PA(e){var u;let r={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(l)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:go.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:gc.table}},...o}}function Fm(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[go.capable,go.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function AA(e,r,n=!1){const o=pt.isString(r)?r:Fm(r);if(!n&&Wm(e))return e;const a=Hm(e);return`//%attributes = ${o}\r
205
- ${a}`}function Wm(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Hm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const IA=()=>Zl.uuid().replaceAll("-","").toUpperCase(),mt="/rest/$designer",Ao="/rest/$designer-ext";function LA(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class Fl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function Ge(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new Fl(e,n,u)}catch{a=new Fl(e,n)}throw a.log(),a}return await n.json()}const Kr="/$shared",Sh={[`${Kr}/saved_conditions.json`]:{conditions:[]},[`${Kr}/shared_datasources.json`]:{},[`${Kr}/shared_css.json`]:{classes:[]},[`${Kr}/CustomComponents/manifest.json`]:[],"WebForms/crafted_components.json":[]};function yc(e){if(!Object.keys(Sh).includes(e))return;const r=e.replace(`${Kr}/`,"Shared/"),n=Sh[e];wc({name:r,content:n,asText:typeof n=="string"})}function ms({path:e,createIfNotExists:r=!1}){const n=`${Kr}/${e}`;return Ge(`${n}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(o=>typeof o=="string"?JSON.parse(o):o).catch(o=>{var a;throw((a=o==null?void 0:o.response)==null?void 0:a.status)===404&&r&&yc(n),o})}function MA(e){return Ge(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function DA(e){return Ge(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Um=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:mc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function kA(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Ge(mt,{method:"POST",body:JSON.stringify({verb:ri.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),Um()}}async function Bm(e){return await Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function NA(...e){return(await Promise.all(e.map(o=>Bm({root:o,verb:ri.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function $A(e,r={}){const{sanitize:n=!0}=r;return Ge(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!n)return o;const a=new Map;return{...o,components:pt.entries(o.components).map(([u,l])=>{const f=u,{resolvedName:d}=l.type;if(d==="WebformLoader"){const v=Zl.generate();a.set(u,v),u=v}return[u,l,f]}).reduce((u,[l,f,d])=>{var v;return f.nodes&&(f.nodes=f.nodes.map(g=>a.get(g)||g)),f.linkedNodes&&(f.linkedNodes=pt.entries(f.linkedNodes).reduce((g,[_,O])=>({...g,[_]:a.get(O)||O}),{})),(v=f.props)!=null&&v.events&&(f.props.events=f.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=a.get(g.loader)||g.loader),g))),{...u,[l]:{...f,props:{...f.props,__originalID:d}}}},{})}})}function jA(e){return Ge(mt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[hn.METHOD,hn.CLASS].includes(r.type)?vs(r.content):r.content}))}function FA(e){return e.type==="folder"?Ge(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function WA(e){return e.type==="folder"?(await Ge(Ao,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function HA(e){return Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function UA(e){return Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function BA(e){return(await Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function zA(...e){return await Ge(mt,{method:"POST",body:JSON.stringify({verb:ri.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function qA(e){const r=await Ge("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function GA(){return await Ge("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function KA({name:e,path:r="",root:n="root",asText:o=!1}){return Ge(mt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function YA(e={}){try{return await ms({path:"shared_datasources.json",...e})}catch{return{}}}async function XA(e={}){try{return await ms({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function VA(e={}){try{return await ms({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function JA(){try{return await Ge("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function ZA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const QA=Am(),eI=async e=>{const r={verb:ri.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return QA(async()=>(await Ge(mt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},wc=async e=>{const r=await Ge(mt,{method:"POST",body:JSON.stringify({...e,verb:ri.SET_FILE_CONTENT,root:vc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Rm(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},tI=async e=>await wc({name:"crafted_components.json",path:br.WEBFORMS,content:e});function nI(e){return Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function rI(e){return Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function iI(e){return Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function oI(e){return Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?vs(r.content):r.content}).catch(r=>{var n,o;throw((o=(n=r.data)==null?void 0:n.__ERROR[0])==null?void 0:o.errCode)===1839&&yc(e.path),r})}function aI(e){return Ge(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function sI(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function uI(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function lI(e){const r=sI(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=uI(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function cI(e,r){const o=e.split(".").pop();try{const a=await Ge(mt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=vs(a.content);const{params:u,result:l}=lI(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var zm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(zm||{});function fI(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var qm=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(qm||{}),Gm=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(Gm||{}),Km=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(Km||{});const dI={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},pI={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=mt;exports.AppLoader=uP;exports.ControlledSwitch=om;exports.DATASOURCE_THEMES=dI;exports.DatasourcesActions=bm;exports.DebuggerActions=Em;exports.DesignerRequestVerb=ri;exports.Dialog=xE;exports.DialogBody=$h;exports.EActivity=zm;exports.EDITOR=pI;exports.EIDENTIFIERS=Gm;exports.ERROR_CODES=Km;exports.EWebFormStyleClassScope=qm;exports.EXT_API_PREFIX=Ao;exports.FileFolderType=hn;exports.FolderRootPath=br;exports.FolderRootType=vc;exports.HTTPError=Fl;exports.HTTP_HANDLERS_PATH=Cm;exports.IPreemptive=go;exports.IPublished=jm;exports.IPublishedRestScope=gc;exports.IdentityProvider=DP;exports.Incase=mO;exports.IndentLines=dv;exports.LogoSVG=am;exports.LspActions=Sm;exports.MAX_FILE_NAME_LENGTH=pc;exports.MODEL_TAB_PATH=iA;exports.Modal=cP;exports.ModalCloseReason=Ti;exports.ModalColor=Vr;exports.ModalIcons=Dl;exports.ModalType=dc;exports.Mutex=Pm;exports.NameError=hc;exports.Overlay=Nh;exports.Portal=Oh;exports.PublishOptions=RA;exports.ROLES_TAB_PATH=Om;exports.RemoteDebuggerMode=mc;exports.SETTINGS_TAB_PATH=Tm;exports.SHARED_API_PREFIX=Kr;exports.Switcher=pv;exports.TabEventsActions=_m;exports.Tip=cR;exports.TipsProvider=uR;exports.Toast=Nx;exports.Tooltip=aP;exports.Tree=vO;exports.TreeIcon=sv;exports.TreeNode=Ql;exports.WebformActions=wm;exports._isArrayDatasource=xA;exports._isObjectDatasource=OA;exports.addAttributesToContent=AA;exports.addFolder=HA;exports.by=Im;exports.byId=lA;exports.byPath=cA;exports.checkUpdates=MA;exports.createFolder=nI;exports.datasourcesSubject=VP;exports.debuggerSubject=tA;exports.dropFile=WA;exports.dropFolder=BA;exports.exists=fA;exports.extractWebformName=aA;exports.generateUUID=IA;exports.getAppSettings=kA;exports.getCatalog=GA;exports.getDatasourceId=dA;exports.getDefaultAppSettings=Um;exports.getFile=jA;exports.getFileContent=KA;exports.getFileExtentionFromType=oA;exports.getFilesInfo=zA;exports.getFolder=Bm;exports.getFolders=NA;exports.getFunctionContent=cI;exports.getMonacoTheme=ZA;exports.getNodeInfo=oI;exports.getSavedConditions=VA;exports.getSharedCSS=XA;exports.getSharedDatasources=YA;exports.getSharedResource=ms;exports.getTypeFromExtension=Rm;exports.getUserPrivileges=JA;exports.getWebForm=$A;exports.hasAttributesString=Wm;exports.http=Ge;exports.installUpdates=DA;exports.isArrayDatasource=km;exports.isDataClassMethod=mA;exports.isDataStoreMethod=vA;exports.isDateDatasource=TA;exports.isEntity=SA;exports.isEntityDatasource=wA;exports.isEntityMethod=gA;exports.isEntitySelection=EA;exports.isEntitySelectionDatasource=bA;exports.isEntitySelectionMethod=yA;exports.isObjectAttribute=pA;exports.isObjectDatasource=Nm;exports.isRelatedAttribute=hA;exports.isRelatedEntitiesAttribute=Mm;exports.isRelatedEntityAttribute=Dm;exports.isScalarDatasource=$m;exports.isSimpleAttribute=Lm;exports.isSimpleDatasource=_A;exports.loadDS=CA;exports.log=fI;exports.login=qA;exports.lspSubject=eA;exports.moveItem=iI;exports.outBy=sA;exports.outById=uA;exports.parseAttributes=PA;exports.queue=Am;exports.removeAttributesString=Hm;exports.removeItem=rI;exports.renameFile=FA;exports.renameFolder=UA;exports.sanitizeContent=vs;exports.saveContent=aI;exports.setCraftedComponents=tI;exports.setFileContent=wc;exports.setSharedSources=eI;exports.stringifyAttributes=Fm;exports.tabEventsSubject=QP;exports.toastSubject=ZP;exports.transformDates=LA;exports.tryCreateSharedResource=yc;exports.useDidMountEffect=pP;exports.useDoubleClick=jP;exports.useFeatureFlags=MP;exports.useForwardedRef=LP;exports.useHotkeys=RP;exports.useIdentity=kP;exports.useOutsideClick=PP;exports.usePrevious=AP;exports.useStateObject=NP;exports.useStateRef=IP;exports.useTip=Kv;exports.validateName=xm;exports.validateServerSide=nA;exports.validateValue=rA;exports.webformSubject=JP;
199
+ `)+G+`return __p
200
+ }`;var Pe=Gp(function(){return He(E,ie+"return "+G).apply(r,O)});if(Pe.source=G,ol(Pe))throw Pe;return Pe}function KE(n){return ze(n).toLowerCase()}function YE(n){return ze(n).toUpperCase()}function VE(n,o,u){if(n=ze(n),n&&(u||o===r))return rd(n);if(!n||!(o=fr(o)))return n;var f=kr(n),y=kr(o),E=nd(f,y),O=id(f,y)+1;return Fn(f,E,O).join("")}function XE(n,o,u){if(n=ze(n),n&&(u||o===r))return n.slice(0,ad(n)+1);if(!n||!(o=fr(o)))return n;var f=kr(n),y=id(f,kr(o))+1;return Fn(f,0,y).join("")}function JE(n,o,u){if(n=ze(n),n&&(u||o===r))return n.replace(W,"");if(!n||!(o=fr(o)))return n;var f=kr(n),y=nd(f,kr(o));return Fn(f,y).join("")}function QE(n,o){var u=ee,f=ye;if(ot(o)){var y="separator"in o?o.separator:y;u="length"in o?Ce(o.length):u,f="omission"in o?fr(o.omission):f}n=ze(n);var E=n.length;if(Di(n)){var O=kr(n);E=O.length}if(u>=E)return n;var R=u-Ni(f);if(R<1)return f;var L=O?Fn(O,0,R).join(""):n.slice(0,R);if(y===r)return L+f;if(O&&(R+=L.length-R),al(y)){if(n.slice(R).search(y)){var z,q=L;for(y.global||(y=Eu(y.source,ze(lt.exec(y))+"g")),y.lastIndex=0;z=y.exec(q);)var G=z.index;L=L.slice(0,G===r?R:G)}}else if(n.indexOf(fr(y),R)!=R){var Q=L.lastIndexOf(y);Q>-1&&(L=L.slice(0,Q))}return L+f}function e_(n){return n=ze(n),n&&ti.test(n)?n.replace(Mi,Cy):n}var t_=zi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ll=Kd("toUpperCase");function Zp(n,o,u){return n=ze(n),o=u?r:o,o===r?xy(n)?My(n):vy(n):n.match(o)||[]}var Gp=Ie(function(n,o){try{return lr(n,r,o)}catch(u){return ol(u)?u:new xe(u)}}),r_=pn(function(n,o){return Sr(o,function(u){u=Vr(u),fn(n,u,nl(n[u],n))}),n});function n_(n){var o=n==null?0:n.length,u=ve();return n=o?nt(n,function(f){if(typeof f[1]!="function")throw new Er(l);return[u(f[0]),f[1]]}):[],Ie(function(f){for(var y=-1;++y<o;){var E=n[y];if(lr(E[0],this,f))return lr(E[1],this,f)}})}function i_(n){return C1(xr(n,w))}function cl(n){return function(){return n}}function o_(n,o){return n==null||n!==n?o:n}var a_=Vd(),s_=Vd(!0);function ir(n){return n}function fl(n){return Ad(typeof n=="function"?n:xr(n,w))}function u_(n){return Rd(xr(n,w))}function l_(n,o){return Cd(n,xr(o,w))}var c_=Ie(function(n,o){return function(u){return Oo(u,n,o)}}),f_=Ie(function(n,o){return function(u){return Oo(n,u,o)}});function dl(n,o,u){var f=Tt(o),y=La(o,f);u==null&&!(ot(o)&&(y.length||!f.length))&&(u=o,o=n,n=this,y=La(o,Tt(o)));var E=!(ot(u)&&"chain"in u)||!!u.chain,O=vn(n);return Sr(y,function(R){var L=o[R];n[R]=L,O&&(n.prototype[R]=function(){var z=this.__chain__;if(E||z){var q=n(this.__wrapped__),G=q.__actions__=tr(this.__actions__);return G.push({func:L,args:arguments,thisArg:n}),q.__chain__=z,q}return L.apply(n,Tn([this.value()],arguments))})}),n}function d_(){return Mt._===this&&(Mt._=ky),this}function pl(){}function p_(n){return n=Ce(n),Ie(function(o){return Pd(o,n)})}var h_=zu(nt),v_=zu(Xf),m_=zu(vu);function Kp(n){return Xu(n)?mu(Vr(n)):Z1(n)}function g_(n){return function(o){return n==null?r:li(n,o)}}var y_=Jd(),w_=Jd(!0);function hl(){return[]}function vl(){return!1}function b_(){return{}}function S_(){return""}function E_(){return!0}function __(n,o){if(n=Ce(n),n<1||n>Be)return[];var u=Y,f=kt(n,Y);o=ve(o),n-=Y;for(var y=wu(f,o);++u<n;)o(u);return y}function x_(n){return Te(n)?nt(n,Vr):dr(n)?[n]:tr(hp(ze(n)))}function O_(n){var o=++Dy;return ze(n)+o}var A_=Wa(function(n,o){return n+o},0),T_=qu("ceil"),R_=Wa(function(n,o){return n/o},1),C_=qu("floor");function P_(n){return n&&n.length?Fa(n,ir,Pu):r}function I_(n,o){return n&&n.length?Fa(n,ve(o,2),Pu):r}function M_(n){return ed(n,ir)}function F_(n,o){return ed(n,ve(o,2))}function L_(n){return n&&n.length?Fa(n,ir,Lu):r}function $_(n,o){return n&&n.length?Fa(n,ve(o,2),Lu):r}var D_=Wa(function(n,o){return n*o},1),N_=qu("round"),k_=Wa(function(n,o){return n-o},0);function j_(n){return n&&n.length?yu(n,ir):0}function W_(n,o){return n&&n.length?yu(n,ve(o,2)):0}return b.after=uS,b.ary=Op,b.assign=YS,b.assignIn=jp,b.assignInWith=Qa,b.assignWith=VS,b.at=XS,b.before=Ap,b.bind=nl,b.bindAll=r_,b.bindKey=Tp,b.castArray=bS,b.chain=Ep,b.chunk=Cw,b.compact=Pw,b.concat=Iw,b.cond=n_,b.conforms=i_,b.constant=cl,b.countBy=jb,b.create=JS,b.curry=Rp,b.curryRight=Cp,b.debounce=Pp,b.defaults=QS,b.defaultsDeep=eE,b.defer=lS,b.delay=cS,b.difference=Mw,b.differenceBy=Fw,b.differenceWith=Lw,b.drop=$w,b.dropRight=Dw,b.dropRightWhile=Nw,b.dropWhile=kw,b.fill=jw,b.filter=Ub,b.flatMap=zb,b.flatMapDeep=qb,b.flatMapDepth=Zb,b.flatten=yp,b.flattenDeep=Ww,b.flattenDepth=Uw,b.flip=fS,b.flow=a_,b.flowRight=s_,b.fromPairs=Hw,b.functions=sE,b.functionsIn=uE,b.groupBy=Gb,b.initial=zw,b.intersection=qw,b.intersectionBy=Zw,b.intersectionWith=Gw,b.invert=cE,b.invertBy=fE,b.invokeMap=Yb,b.iteratee=fl,b.keyBy=Vb,b.keys=Tt,b.keysIn=nr,b.map=Ga,b.mapKeys=pE,b.mapValues=hE,b.matches=u_,b.matchesProperty=l_,b.memoize=Ya,b.merge=vE,b.mergeWith=Wp,b.method=c_,b.methodOf=f_,b.mixin=dl,b.negate=Va,b.nthArg=p_,b.omit=mE,b.omitBy=gE,b.once=dS,b.orderBy=Xb,b.over=h_,b.overArgs=pS,b.overEvery=v_,b.overSome=m_,b.partial=il,b.partialRight=Ip,b.partition=Jb,b.pick=yE,b.pickBy=Up,b.property=Kp,b.propertyOf=g_,b.pull=Xw,b.pullAll=bp,b.pullAllBy=Jw,b.pullAllWith=Qw,b.pullAt=eb,b.range=y_,b.rangeRight=w_,b.rearg=hS,b.reject=tS,b.remove=tb,b.rest=vS,b.reverse=tl,b.sampleSize=nS,b.set=bE,b.setWith=SE,b.shuffle=iS,b.slice=rb,b.sortBy=sS,b.sortedUniq=lb,b.sortedUniqBy=cb,b.split=zE,b.spread=mS,b.tail=fb,b.take=db,b.takeRight=pb,b.takeRightWhile=hb,b.takeWhile=vb,b.tap=Pb,b.throttle=gS,b.thru=Za,b.toArray=Dp,b.toPairs=Hp,b.toPairsIn=Bp,b.toPath=x_,b.toPlainObject=kp,b.transform=EE,b.unary=yS,b.union=mb,b.unionBy=gb,b.unionWith=yb,b.uniq=wb,b.uniqBy=bb,b.uniqWith=Sb,b.unset=_E,b.unzip=rl,b.unzipWith=Sp,b.update=xE,b.updateWith=OE,b.values=Gi,b.valuesIn=AE,b.without=Eb,b.words=Zp,b.wrap=wS,b.xor=_b,b.xorBy=xb,b.xorWith=Ob,b.zip=Ab,b.zipObject=Tb,b.zipObjectDeep=Rb,b.zipWith=Cb,b.entries=Hp,b.entriesIn=Bp,b.extend=jp,b.extendWith=Qa,dl(b,b),b.add=A_,b.attempt=Gp,b.camelCase=PE,b.capitalize=zp,b.ceil=T_,b.clamp=TE,b.clone=SS,b.cloneDeep=_S,b.cloneDeepWith=xS,b.cloneWith=ES,b.conformsTo=OS,b.deburr=qp,b.defaultTo=o_,b.divide=R_,b.endsWith=IE,b.eq=Wr,b.escape=ME,b.escapeRegExp=FE,b.every=Wb,b.find=Hb,b.findIndex=mp,b.findKey=tE,b.findLast=Bb,b.findLastIndex=gp,b.findLastKey=rE,b.floor=C_,b.forEach=_p,b.forEachRight=xp,b.forIn=nE,b.forInRight=iE,b.forOwn=oE,b.forOwnRight=aE,b.get=sl,b.gt=AS,b.gte=TS,b.has=lE,b.hasIn=ul,b.head=wp,b.identity=ir,b.includes=Kb,b.indexOf=Bw,b.inRange=RE,b.invoke=dE,b.isArguments=di,b.isArray=Te,b.isArrayBuffer=RS,b.isArrayLike=rr,b.isArrayLikeObject=vt,b.isBoolean=CS,b.isBuffer=Ln,b.isDate=PS,b.isElement=IS,b.isEmpty=MS,b.isEqual=FS,b.isEqualWith=LS,b.isError=ol,b.isFinite=$S,b.isFunction=vn,b.isInteger=Mp,b.isLength=Xa,b.isMap=Fp,b.isMatch=DS,b.isMatchWith=NS,b.isNaN=kS,b.isNative=jS,b.isNil=US,b.isNull=WS,b.isNumber=Lp,b.isObject=ot,b.isObjectLike=ct,b.isPlainObject=Io,b.isRegExp=al,b.isSafeInteger=HS,b.isSet=$p,b.isString=Ja,b.isSymbol=dr,b.isTypedArray=Zi,b.isUndefined=BS,b.isWeakMap=zS,b.isWeakSet=qS,b.join=Kw,b.kebabCase=LE,b.last=Ar,b.lastIndexOf=Yw,b.lowerCase=$E,b.lowerFirst=DE,b.lt=ZS,b.lte=GS,b.max=P_,b.maxBy=I_,b.mean=M_,b.meanBy=F_,b.min=L_,b.minBy=$_,b.stubArray=hl,b.stubFalse=vl,b.stubObject=b_,b.stubString=S_,b.stubTrue=E_,b.multiply=D_,b.nth=Vw,b.noConflict=d_,b.noop=pl,b.now=Ka,b.pad=NE,b.padEnd=kE,b.padStart=jE,b.parseInt=WE,b.random=CE,b.reduce=Qb,b.reduceRight=eS,b.repeat=UE,b.replace=HE,b.result=wE,b.round=N_,b.runInContext=M,b.sample=rS,b.size=oS,b.snakeCase=BE,b.some=aS,b.sortedIndex=nb,b.sortedIndexBy=ib,b.sortedIndexOf=ob,b.sortedLastIndex=ab,b.sortedLastIndexBy=sb,b.sortedLastIndexOf=ub,b.startCase=qE,b.startsWith=ZE,b.subtract=k_,b.sum=j_,b.sumBy=W_,b.template=GE,b.times=__,b.toFinite=mn,b.toInteger=Ce,b.toLength=Np,b.toLower=KE,b.toNumber=Tr,b.toSafeInteger=KS,b.toString=ze,b.toUpper=YE,b.trim=VE,b.trimEnd=XE,b.trimStart=JE,b.truncate=QE,b.unescape=e_,b.uniqueId=O_,b.upperCase=t_,b.upperFirst=ll,b.each=_p,b.eachRight=xp,b.first=wp,dl(b,function(){var n={};return Kr(b,function(o,u){Ge.call(b.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),b.VERSION=i,Sr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){b[n].placeholder=b}),Sr(["drop","take"],function(n,o){De.prototype[n]=function(u){u=u===r?1:_t(Ce(u),0);var f=this.__filtered__&&!o?new De(this):this.clone();return f.__filtered__?f.__takeCount__=kt(u,f.__takeCount__):f.__views__.push({size:kt(u,Y),type:n+(f.__dir__<0?"Right":"")}),f},De.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Sr(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==se||u==be;De.prototype[n]=function(y){var E=this.clone();return E.__iteratees__.push({iteratee:ve(y,3),type:u}),E.__filtered__=E.__filtered__||f,E}}),Sr(["head","last"],function(n,o){var u="take"+(o?"Right":"");De.prototype[n]=function(){return this[u](1).value()[0]}}),Sr(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");De.prototype[n]=function(){return this.__filtered__?new De(this):this[u](1)}}),De.prototype.compact=function(){return this.filter(ir)},De.prototype.find=function(n){return this.filter(n).head()},De.prototype.findLast=function(n){return this.reverse().find(n)},De.prototype.invokeMap=Ie(function(n,o){return typeof n=="function"?new De(this):this.map(function(u){return Oo(u,n,o)})}),De.prototype.reject=function(n){return this.filter(Va(ve(n)))},De.prototype.slice=function(n,o){n=Ce(n);var u=this;return u.__filtered__&&(n>0||o<0)?new De(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=Ce(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},De.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},De.prototype.toArray=function(){return this.take(Y)},Kr(De.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),y=b[f?"take"+(o=="last"?"Right":""):o],E=f||/^find/.test(o);y&&(b.prototype[o]=function(){var O=this.__wrapped__,R=f?[1]:arguments,L=O instanceof De,z=R[0],q=L||Te(O),G=function($e){var Ne=y.apply(b,Tn([$e],R));return f&&Q?Ne[0]:Ne};q&&u&&typeof z=="function"&&z.length!=1&&(L=q=!1);var Q=this.__chain__,ie=!!this.__actions__.length,me=E&&!Q,Pe=L&&!ie;if(!E&&q){O=Pe?O:new De(this);var ge=n.apply(O,R);return ge.__actions__.push({func:Za,args:[G],thisArg:r}),new _r(ge,Q)}return me&&Pe?n.apply(this,R):(ge=this.thru(G),me?f?ge.value()[0]:ge.value():ge)})}),Sr(["pop","push","shift","sort","splice","unshift"],function(n){var o=ya[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);b.prototype[n]=function(){var y=arguments;if(f&&!this.__chain__){var E=this.value();return o.apply(Te(E)?E:[],y)}return this[u](function(O){return o.apply(Te(O)?O:[],y)})}}),Kr(De.prototype,function(n,o){var u=b[o];if(u){var f=u.name+"";Ge.call(Ui,f)||(Ui[f]=[]),Ui[f].push({name:o,func:u})}}),Ui[ja(r,C).name]=[{name:"wrapper",func:r}],De.prototype.clone=e1,De.prototype.reverse=t1,De.prototype.value=r1,b.prototype.at=Ib,b.prototype.chain=Mb,b.prototype.commit=Fb,b.prototype.next=Lb,b.prototype.plant=Db,b.prototype.reverse=Nb,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=kb,b.prototype.first=b.prototype.head,yo&&(b.prototype[yo]=$b),b},ki=Fy();ii?((ii.exports=ki)._=ki,fu._=ki):Mt._=ki}).call(mi)})(Ns,Ns.exports);var St=Ns.exports;const Ac={FdSave:hO,FdWarningDanger:zc,FdInfoCircle:fO,FdInfoBold:fc};var lf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(lf||{}),_i=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(_i||{}),eo=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(eo||{});const mg={[_i.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[_i.DANGER]:{icon:"red-500",button:"primary-dark"},[_i.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Vl=({color:e=_i.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=mg[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${s}`:`text-white bg-${s} border border-${s} hover:border-white hover:bg-white hover:text-${s}`;return k.jsx("button",{autoFocus:i,className:Dt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},qP=({name:e,color:t=_i.PRIMARY,className:r="w-10 h-10"})=>{const i=Ac[e]||Ac.FdInfoCircle,a=`text-${mg[t].icon}`;return k.jsx(i,{className:Dt(r,a)})},ZP=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:c,width:d=520,hasOverlay:p=!0,onClose:h,onEdit:w})=>{const S=g=>{h({id:e,reason:g})};N.useEffect(()=>{function g(x){x.key==="Escape"&&S(eo.CANCELED)}return window.addEventListener("keyup",g),()=>{window.removeEventListener("keyup",g)}},[]);const v=St.merge(St.values(c==null?void 0:c.toggles).flatMap(g=>g.value?g.warnings||[]:[]),c==null?void 0:c.tips),_=(g,x)=>{var P;if(!(c!=null&&c.toggles))return;const C=St.cloneDeep(c);(P=C.toggles)!=null&&P[g]&&(C.toggles[g].value=x),w({id:e,views:C})};return Qo.createPortal(k.jsx(Ds,{appear:!0,show:!0,as:N.Fragment,children:k.jsx("div",{className:Dt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:l},onClick:()=>S(eo.CANCELED),children:k.jsx(Ds.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:k.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:g=>g.stopPropagation(),children:k.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[i?k.jsx("div",{className:"flex items-center justify-center",children:k.jsx(qP,{name:i,color:s})}):null,k.jsx(GP,{condition:t,children:k.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),k.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),k.jsx("div",{className:"text-xs text-white",children:St.values(c==null?void 0:c.toggles).map(g=>k.jsx("div",{children:k.jsxs("label",{htmlFor:g.key,className:"flex items-center",children:[k.jsx(hg,{size:"xs",value:g.value,onChange:x=>_(g.key,x)}),k.jsx("span",{className:"ml-1",children:g.title})]})},g.key))}),k.jsx(KP,{warnings:v}),k.jsx("div",{className:"flex items-center gap-4 p-1",children:a===lf.CONFIRM?k.jsxs(k.Fragment,{children:[k.jsx(Vl,{autoFocus:!0,color:s,onClick:()=>S(eo.CONFIRMED),children:"Confirm"}),k.jsx(Vl,{color:s,variant:"outlined",onClick:()=>S(eo.CANCELED),children:"Cancel"})]}):k.jsx(Vl,{autoFocus:!0,onClick:()=>S(),children:"OK"})})]})})})})}),document.querySelector("body"))},GP=e=>e.condition?k.jsx(k.Fragment,{children:e.children}):null,KP=e=>e.warnings?k.jsx(Ds,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:k.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>k.jsx(Ds.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:k.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[k.jsx(zc,{className:Dt({"h-3 w-3":!0,"text-orange-400":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),k.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;function YP(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(r.current)return e();r.current=!0},t)}var Xl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Jl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function gg(e,t){for(var r=t.slice(0,t.length-1),i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function yg(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function VP(e,t){for(var r=e.length>=t.length?e:t,i=e.length>=t.length?t:e,a=!0,s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}var Go={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Xl?173:189,"=":Xl?61:187,";":Xl?59:186,"'":222,"[":219,"]":221,"\\":220},an={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Tc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},$t={16:!1,18:!1,17:!1,91:!1},ft={};for(var ms=1;ms<20;ms++)Go["f".concat(ms)]=111+ms;var Qe=[],gv=!1,wg="all",bg=[],ca=function(t){return Go[t.toLowerCase()]||an[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)},XP=function(t){return Object.keys(Go).find(function(r){return Go[r]===t})},JP=function(t){return Object.keys(an).find(function(r){return an[r]===t})};function Sg(e){wg=e||"all"}function Ko(){return wg||"all"}function QP(){return Qe.slice(0)}function e2(){return Qe.map(function(e){return XP(e)||JP(e)||String.fromCharCode(e)})}function t2(){var e=[];return Object.keys(ft).forEach(function(t){ft[t].forEach(function(r){var i=r.key,a=r.scope,s=r.mods,l=r.shortcut;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(function(c){return ca(c)})})})}),e}function r2(e){var t=e.target||e.srcElement,r=t.tagName,i=!0;return(t.isContentEditable||(r==="INPUT"||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function n2(e){return typeof e=="string"&&(e=ca(e)),Qe.indexOf(e)!==-1}function i2(e,t){var r,i;e||(e=Ko());for(var a in ft)if(Object.prototype.hasOwnProperty.call(ft,a))for(r=ft[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1):i++;Ko()===e&&Sg(t||"all")}function o2(e){var t=e.keyCode||e.which||e.charCode,r=Qe.indexOf(t);if(r>=0&&Qe.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Qe.splice(0,Qe.length),(t===93||t===224)&&(t=91),t in $t){$t[t]=!1;for(var i in an)an[i]===t&&(Zr[i]=!1)}}function a2(e){if(typeof e>"u")Object.keys(ft).forEach(function(l){return delete ft[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&Ql(l)});else if(typeof e=="object")e.key&&Ql(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var a=r[0],s=r[1];typeof a=="function"&&(s=a,a=""),Ql({key:e,scope:a,method:s,splitKey:"+"})}}var Ql=function(t){var r=t.key,i=t.scope,a=t.method,s=t.splitKey,l=s===void 0?"+":s,c=yg(r);c.forEach(function(d){var p=d.split(l),h=p.length,w=p[h-1],S=w==="*"?"*":ca(w);if(ft[S]){i||(i=Ko());var v=h>1?gg(an,p):[];ft[S]=ft[S].filter(function(_){var g=a?_.method===a:!0;return!(g&&_.scope===i&&VP(_.mods,v))})}})};function yv(e,t,r,i){if(t.element===i){var a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(var s in $t)Object.prototype.hasOwnProperty.call($t,s)&&(!$t[s]&&t.mods.indexOf(+s)>-1||$t[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!$t[16]&&!$t[18]&&!$t[17]&&!$t[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Qe),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function wv(e,t){var r=ft["*"],i=e.keyCode||e.which||e.charCode;if(Zr.filter.call(this,e)){if((i===93||i===224)&&(i=91),Qe.indexOf(i)===-1&&i!==229&&Qe.push(i),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(_){var g=Tc[_];e[_]&&Qe.indexOf(g)===-1?Qe.push(g):!e[_]&&Qe.indexOf(g)>-1?Qe.splice(Qe.indexOf(g),1):_==="metaKey"&&e[_]&&Qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Qe=Qe.slice(Qe.indexOf(g))))}),i in $t){$t[i]=!0;for(var a in an)an[a]===i&&(Zr[a]=!0);if(!r)return}for(var s in $t)Object.prototype.hasOwnProperty.call($t,s)&&($t[s]=e[Tc[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Qe.indexOf(17)===-1&&Qe.push(17),Qe.indexOf(18)===-1&&Qe.push(18),$t[17]=!0,$t[18]=!0);var l=Ko();if(r)for(var c=0;c<r.length;c++)r[c].scope===l&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&yv(e,r[c],l,t);if(i in ft){for(var d=0;d<ft[i].length;d++)if((e.type==="keydown"&&ft[i][d].keydown||e.type==="keyup"&&ft[i][d].keyup)&&ft[i][d].key){for(var p=ft[i][d],h=p.splitKey,w=p.key.split(h),S=[],v=0;v<w.length;v++)S.push(ca(w[v]));S.sort().join("")===Qe.sort().join("")&&yv(e,p,l,t)}}}}function s2(e){return bg.indexOf(e)>-1}function Zr(e,t,r){Qe=[];var i=yg(e),a=[],s="all",l=document,c=0,d=!1,p=!0,h="+",w=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(d=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(w=t.capture),typeof t.splitKey=="string"&&(h=t.splitKey)),typeof t=="string"&&(s=t);c<i.length;c++)e=i[c].split(h),a=[],e.length>1&&(a=gg(an,e)),e=e[e.length-1],e=e==="*"?"*":ca(e),e in ft||(ft[e]=[]),ft[e].push({keyup:d,keydown:p,scope:s,mods:a,shortcut:i[c],method:r,key:i[c],splitKey:h,element:l});typeof l<"u"&&!s2(l)&&window&&(bg.push(l),Jl(l,"keydown",function(S){wv(S,l)},w),gv||(gv=!0,Jl(window,"focus",function(){Qe=[]},w)),Jl(l,"keyup",function(S){wv(S,l),o2(S)},w))}function u2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ft).forEach(function(r){var i=ft[r].filter(function(a){return a.scope===t&&a.shortcut===e});i.forEach(function(a){a&&a.method&&a.method()})})}var ec={getPressedKeyString:e2,setScope:Sg,getScope:Ko,deleteScope:i2,getPressedKeyCodes:QP,getAllKeyCodes:t2,isPressed:n2,filter:r2,trigger:u2,unbind:a2,keyMap:Go,modifier:an,modifierMap:Tc};for(var tc in ec)Object.prototype.hasOwnProperty.call(ec,tc)&&(Zr[tc]=ec[tc]);if(typeof window<"u"){var l2=window.hotkeys;Zr.noConflict=function(e){return e&&window.hotkeys===Zr&&(window.hotkeys=l2),Zr},window.hotkeys=Zr}Zr.filter=()=>!0;function c2(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=N.useCallback((c,d)=>{a&&c.preventDefault(),setTimeout(()=>t(c,d))},i),l=()=>{Zr.unbind(e,s)};N.useEffect(()=>(Zr(e,r,s),l),[e,r,s])}const f2=e=>{const t=N.useRef(null);return N.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function d2(e){const t=N.useRef();return N.useEffect(()=>{t.current=e},[e]),t.current}function p2(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e},[e]),t}function h2(e){const t=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function v2(e){const[t,r]=N.useState(e),i=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},a=N.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const Eg=N.createContext(""),m2=e=>k.jsx(Eg.Provider,{value:e.value,children:e.children}),g2=()=>{const e=N.useContext(Eg);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function y2(e){const[t,r]=N.useState(e),i=N.useMemo(()=>w2(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function w2(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${St.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const b2=(e,t,r={})=>{r={timeout:200,...r};const i=N.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return N.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function En(e){return typeof e=="function"}function _g(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var rc=_g(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
201
+ `+r.map(function(i,a){return a+1+") "+i.toString()}).join(`
202
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Rc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var tu=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=vc(l),d=c.next();!d.done;d=c.next()){var p=d.value;p.remove(this)}}catch(g){t={error:g}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var h=this.initialTeardown;if(En(h))try{h()}catch(g){s=g instanceof rc?g.errors:[g]}var w=this._finalizers;if(w){this._finalizers=null;try{for(var S=vc(w),v=S.next();!v.done;v=S.next()){var _=v.value;try{bv(_)}catch(g){s=s??[],g instanceof rc?s=qo(qo([],Is(s)),Is(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{v&&!v.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}}if(s)throw new rc(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)bv(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Rc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Rc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),xg=tu.EMPTY;function Og(e){return e instanceof tu||e&&"closed"in e&&En(e.remove)&&En(e.add)&&En(e.unsubscribe)}function bv(e){En(e)?e():e.unsubscribe()}var Ag={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Cc={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=Cc.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,qo([e,t],Is(r))):setTimeout.apply(void 0,qo([e,t],Is(r)))},clearTimeout:function(e){var t=Cc.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function S2(e){Cc.setTimeout(function(){throw e})}function Sv(){}function Os(e){e()}var Tg=function(e){Zs(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Og(r)&&r.add(i)):i.destination=O2,i}return t.create=function(r,i,a){return new Pc(r,i,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tu),E2=Function.prototype.bind;function nc(e,t){return E2.call(e,t)}var _2=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){gs(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){gs(i)}else gs(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){gs(r)}},e}(),Pc=function(e){Zs(t,e);function t(r,i,a){var s=e.call(this)||this,l;if(En(r)||!r)l={next:r??void 0,error:i??void 0,complete:a??void 0};else{var c;s&&Ag.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return s.unsubscribe()},l={next:r.next&&nc(r.next,c),error:r.error&&nc(r.error,c),complete:r.complete&&nc(r.complete,c)}):l=r}return s.destination=new _2(l),s}return t}(Tg);function gs(e){S2(e)}function x2(e){throw e}var O2={closed:!0,next:Sv,error:x2,complete:Sv},A2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function T2(e){return e}function R2(e){return e.length===0?T2:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var Ev=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var a=this,s=P2(t)?t:new Pc(t,r,i);return Os(function(){var l=a,c=l.operator,d=l.source;s.add(c?c.call(s,d):d?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=_v(r),new r(function(a,s){var l=new Pc({next:function(c){try{t(c)}catch(d){s(d),l.unsubscribe()}},error:s,complete:a});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[A2]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return R2(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=_v(t),new t(function(i,a){var s;r.subscribe(function(l){return s=l},function(l){return a(l)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function _v(e){var t;return(t=e??Ag.Promise)!==null&&t!==void 0?t:Promise}function C2(e){return e&&En(e.next)&&En(e.error)&&En(e.complete)}function P2(e){return e&&e instanceof Tg||C2(e)&&Og(e)}var I2=_g(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pi=function(e){Zs(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new xv(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new I2},t.prototype.next=function(r){var i=this;Os(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=vc(i.currentObservers),c=l.next();!c.done;c=l.next()){var d=c.value;d.next(r)}}catch(p){a={error:p}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;Os(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var a=i.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Os(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,a=this,s=a.hasError,l=a.isStopped,c=a.observers;return s||l?xg:(this.currentObservers=null,c.push(r),new tu(function(){i.currentObservers=null,Rc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new Ev;return r.source=this,r},t.create=function(r,i){return new xv(r,i)},t}(Ev),xv=function(e){Zs(t,e);function t(r,i){var a=e.call(this)||this;return a.destination=r,a.source=i,a}return t.prototype.next=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.next)===null||a===void 0||a.call(i,r)},t.prototype.error=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.error)===null||a===void 0||a.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,a;return(a=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&a!==void 0?a:xg},t}(Pi),Rg=(e=>(e.RELOAD="reload",e))(Rg||{}),Cg=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Cg||{});const M2=new Pi,F2=new Pi,Pg=new Pi;var Ig=(e=>(e.SAVE_ALL="save-all",e))(Ig||{});const L2=new Pi;var Mg=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(Mg||{});const $2=new Pi;var Fg=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Fg||{});const D2=new Pi,cf=31;var ff=(e=>(e.EMPTY="Please enter a valid name",e[e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${cf} characters`]="LENGTH_EXCEEDED",e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(ff||{});function Lg(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>cf)throw new Error(ff.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function N2(e){if(!e)return null;if(typeof e=="string")try{Lg(e)}catch(t){return t.message}}function k2(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!St.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!St.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function ru(e){const t=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(t,"")}var df=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(df||{});const zn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Pr=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Pr||{}),Ii=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(Ii||{}),pf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(pf||{});const $g="roles.json",Dg="qodlyApp.json",j2="model.4DModel",Ng="HTTPHandlers.json";function kg(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Pr.MODEL;case r==="WebForm":return Pr.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===zn.METHODS):return Pr.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===zn.CLASSES):return Pr.CLASS;case e===$g:return Pr.ROLES;case e===Ng:return Pr.HTTP_HANDLERS;case e===Dg:return Pr.SETTINGS;default:return Pr.TEXT}}function W2(e,t=!1){switch(e){case zn.REPORTS:case"report":return"QoDoc";case zn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case zn.CLASSES:case zn.METHODS:return t?"4qs":"4dm";default:return""}}function U2(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class jg{constructor(){wt(this,"current",Promise.resolve())}lock(){let t;const r=new Promise(a=>{t=a}),i=this.current.then(()=>t);return this.current=r,i}}function Wg(){const e=new jg;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const Ug=St.curry((e,t,r)=>e&&St.get(r,e)===t),H2=St.curry((e,t,r)=>St.get(r,e)!==t),B2=St.curry((e,t)=>St.get(t,"id")!==e),z2=St.curry((e,t)=>St.get(t,"id")===e),q2=St.curry((e,t)=>St.get(t,"path")===e);function Z2(e="id",t,r){return r.findIndex(Ug(e,t))!==-1}function G2(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Hg(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function K2(e){return e.type==="object"}function Bg(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function zg(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Hg(e)}function Y2(e){return Bg(e)||zg(e)}function V2(e){return e.applyTo==="dataStore"}function X2(e){return e.applyTo==="dataClass"}function J2(e){return e.applyTo==="entity"}function Q2(e){return e.applyTo==="entityCollection"}function eI(e){return e.type==="entity"}function tI(e){return e.type==="entitysel"}function qg(e){return e.dataType==="array"}function Zg(e){return e.dataType==="object"}function Gg(e){return e.type==="scalar"}function rI(e){return qg(e)||Zg(e)||Gg(e)}const nI=e=>e!=null&&e.type==="entity",iI=e=>e.type==="entitysel",oI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",aI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",sI=e=>e.type==="scalar"&&e.dataType==="date";function uI(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}var Yo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Yo||{}),Kg=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Kg||{}),hf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(hf||{});const lI={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function cI(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Yo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:hf.table}},...i}}function Yg(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Yo.capable,Yo.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function fI(e,t,r=!1){const i=St.isString(t)?t:Yg(t);if(!r&&Vg(e))return e;const a=Xg(e);return`//%attributes = ${i}\r
203
+ ${a}`}function Vg(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Xg(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const dI=()=>Kc.uuid().replaceAll("-","").toUpperCase(),Ot="/rest/$designer",fa="/rest/$designer-ext";function pI(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(i=>{typeof r[i]=="string"&&(r[i]=new Date(r[i]))}),r}}class Ic extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Ye(e,t){const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const s=await r.json();a=new Ic(e,r,s)}catch{a=new Ic(e,r)}throw a.log(),a}return await r.json()}var dt={},Mc=dt.ValidationError=function(t,r,i,a,s,l){if(Array.isArray(a)?(this.path=a,this.property=a.reduce(function(d,p){return d+Jg(p)},"instance")):a!==void 0&&(this.property=a),t&&(this.message=t),i){var c=i.$id||i.id;this.schema=c||i}r!==void 0&&(this.instance=r),this.name=s,this.argument=l,this.stack=this.toString()};Mc.prototype.toString=function(){return this.property+" "+this.message};var nu=dt.ValidatorResult=function(t,r,i,a){this.instance=t,this.schema=r,this.options=i,this.path=a.path,this.propertyPath=a.propertyPath,this.errors=[],this.throwError=i&&i.throwError,this.throwFirst=i&&i.throwFirst,this.throwAll=i&&i.throwAll,this.disableFormat=i&&i.disableFormat===!0};nu.prototype.addError=function(t){var r;if(typeof t=="string")r=new Mc(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");r=new Mc(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(r),this.throwFirst)throw new Ai(this);if(this.throwError)throw r;return r};nu.prototype.importErrors=function(t){typeof t=="string"||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))};function hI(e,t){return t+": "+e.toString()+`
204
+ `}nu.prototype.toString=function(t){return this.errors.map(hI).join("")};Object.defineProperty(nu.prototype,"valid",{get:function(){return!this.errors.length}});dt.ValidatorResultError=Ai;function Ai(e){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ai),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}Ai.prototype=new Error;Ai.prototype.constructor=Ai;Ai.prototype.name="Validation Error";var Ov=dt.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)};Ov.prototype=Object.create(Error.prototype,{constructor:{value:Ov,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var Fc=dt.SchemaContext=function(t,r,i,a,s){this.schema=t,this.options=r,Array.isArray(i)?(this.path=i,this.propertyPath=i.reduce(function(l,c){return l+Jg(c)},"instance")):this.propertyPath=i,this.base=a,this.schemas=s};Fc.prototype.resolve=function(t){return(()=>Qg(this.base,t))()};Fc.prototype.makeChild=function(t,r){var i=r===void 0?this.path:this.path.concat([r]),a=t.$id||t.id;let s=(()=>Qg(this.base,a||""))();var l=new Fc(t,this.options,i,s,Object.create(this.schemas));return a&&!l.schemas[s]&&(l.schemas[s]=t),l};var qr=dt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return typeof e=="string"&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};qr.regexp=qr.regex;qr.pattern=qr.regex;qr.ipv4=qr["ip-address"];dt.isFormat=function(t,r,i){if(typeof t=="string"&&qr[r]!==void 0){if(qr[r]instanceof RegExp)return qr[r].test(t);if(typeof qr[r]=="function")return qr[r](t)}else if(i&&i.customFormats&&typeof i.customFormats[r]=="function")return i.customFormats[r](t);return!0};var Jg=dt.makeSuffix=function(t){return t=t.toString(),!t.match(/[.\s\[\]]/)&&!t.match(/^[\d]/)?"."+t:t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]"};dt.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!Array.isArray(r)||t.length!==r.length?!1:t.every(function(s,l){return e(t[l],r[l])});if(typeof t=="object"){if(!t||!r)return t===r;var i=Object.keys(t),a=Object.keys(r);return i.length!==a.length?!1:i.every(function(s){return e(t[s],r[s])})}return t===r};function vI(e,t,r,i){typeof r=="object"?t[i]=vf(e[i],r):e.indexOf(r)===-1&&t.push(r)}function mI(e,t,r){t[r]=e[r]}function gI(e,t,r,i){typeof t[i]!="object"||!t[i]?r[i]=t[i]:e[i]?r[i]=vf(e[i],t[i]):r[i]=t[i]}function vf(e,t){var r=Array.isArray(t),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach(vI.bind(null,e,i))):(e&&typeof e=="object"&&Object.keys(e).forEach(mI.bind(null,e,i)),Object.keys(t).forEach(gI.bind(null,e,t,i))),i}dt.deepMerge=vf;dt.objectGetPath=function(t,r){for(var i=r.split("/").slice(1),a;typeof(a=i.shift())=="string";){var s=decodeURIComponent(a.replace(/~0/,"~").replace(/~1/g,"/"));if(!(s in t))return;t=t[s]}return t};function yI(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}dt.encodePath=function(t){return t.map(yI).join("")};dt.getDecimalPlaces=function(t){var r=0;if(isNaN(t))return r;typeof t!="number"&&(t=Number(t));var i=t.toString().split("e");if(i.length===2){if(i[1][0]!=="-")return r;r=Number(i[1].slice(1))}var a=i[0].split(".");return a.length===2&&(r+=a[1].length),r};dt.isSchema=function(t){return typeof t=="object"&&t||typeof t=="boolean"};var Qg=dt.resolveUrl=function(t,r){const i=new URL(r,new URL(t,"resolve://"));if(i.protocol==="resolve:"){const{pathname:a,search:s,hash:l}=i;return a+s+l}return i.toString()},mr=dt,We=mr.ValidatorResult,Zn=mr.SchemaError,mf={};mf.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var Ue=mf.validators={};Ue.type=function(t,r,i,a){if(t===void 0)return null;var s=new We(t,r,i,a),l=Array.isArray(r.type)?r.type:[r.type];if(!l.some(this.testType.bind(this,t,r,i,a))){var c=l.map(function(d){if(d){var p=d.$id||d.id;return p?"<"+p+">":d+""}});s.addError({name:"type",argument:c,message:"is not of a type(s) "+c})}return s};function gf(e,t,r,i,a){var s=t.throwError,l=t.throwAll;t.throwError=!1,t.throwAll=!1;var c=this.validateSchema(e,a,t,r);return t.throwError=s,t.throwAll=l,!c.valid&&i instanceof Function&&i(c),c.valid}Ue.anyOf=function(t,r,i,a){if(t===void 0)return null;var s=new We(t,r,i,a),l=new We(t,r,i,a);if(!Array.isArray(r.anyOf))throw new Zn("anyOf must be an array");if(!r.anyOf.some(gf.bind(this,t,i,a,function(d){l.importErrors(d)}))){var c=r.anyOf.map(function(d,p){var h=d.$id||d.id;return h?"<"+h+">":d.title&&JSON.stringify(d.title)||d.$ref&&"<"+d.$ref+">"||"[subschema "+p+"]"});i.nestedErrors&&s.importErrors(l),s.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return s};Ue.allOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.allOf))throw new Zn("allOf must be an array");var s=new We(t,r,i,a),l=this;return r.allOf.forEach(function(c,d){var p=l.validateSchema(t,c,i,a);if(!p.valid){var h=c.$id||c.id,w=h||c.title&&JSON.stringify(c.title)||c.$ref&&"<"+c.$ref+">"||"[subschema "+d+"]";s.addError({name:"allOf",argument:{id:w,length:p.errors.length,valid:p},message:"does not match allOf schema "+w+" with "+p.errors.length+" error[s]:"}),s.importErrors(p)}}),s};Ue.oneOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.oneOf))throw new Zn("oneOf must be an array");var s=new We(t,r,i,a),l=new We(t,r,i,a),c=r.oneOf.filter(gf.bind(this,t,i,a,function(p){l.importErrors(p)})).length,d=r.oneOf.map(function(p,h){var w=p.$id||p.id;return w||p.title&&JSON.stringify(p.title)||p.$ref&&"<"+p.$ref+">"||"[subschema "+h+"]"});return c!==1&&(i.nestedErrors&&s.importErrors(l),s.addError({name:"oneOf",argument:d,message:"is not exactly one from "+d.join(",")})),s};Ue.if=function(t,r,i,a){if(t===void 0)return null;if(!mr.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var s=gf.call(this,t,i,a,null,r.if),l=new We(t,r,i,a),c;if(s){if(r.then===void 0)return;if(!mr.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');c=this.validateSchema(t,r.then,i,a.makeChild(r.then)),l.importErrors(c)}else{if(r.else===void 0)return;if(!mr.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');c=this.validateSchema(t,r.else,i,a.makeChild(r.else)),l.importErrors(c)}return l};function yf(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}Ue.propertyNames=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=r.propertyNames!==void 0?r.propertyNames:{};if(!mr.isSchema(l))throw new Zn('Expected "propertyNames" to be a schema (object or boolean)');for(var c in t)if(yf(t,c)!==void 0){var d=this.validateSchema(c,l,i,a.makeChild(l));s.importErrors(d)}return s}};Ue.properties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=r.properties||{};for(var c in l){var d=l[c];if(d!==void 0){if(d===null)throw new Zn('Unexpected null, expected schema in "properties"');typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,c,d,i,a);var p=yf(t,c),h=this.validateSchema(p,d,i,a.makeChild(d,c));h.instance!==s.instance[c]&&(s.instance[c]=h.instance),s.importErrors(h)}}return s}};function e0(e,t,r,i,a,s){if(this.types.object(e)&&!(t.properties&&t.properties[a]!==void 0))if(t.additionalProperties===!1)s.addError({name:"additionalProperties",argument:a,message:"is not allowed to have the additional property "+JSON.stringify(a)});else{var l=t.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(e,a,l,r,i);var c=this.validateSchema(e[a],l,r,i.makeChild(l,a));c.instance!==s.instance[a]&&(s.instance[a]=c.instance),s.importErrors(c)}}Ue.patternProperties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=r.patternProperties||{};for(var c in t){var d=!0;for(var p in l){var h=l[p];if(h!==void 0){if(h===null)throw new Zn('Unexpected null, expected schema in "patternProperties"');try{var w=new RegExp(p,"u")}catch{w=new RegExp(p)}if(w.test(c)){d=!1,typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,c,h,i,a);var S=this.validateSchema(t[c],h,i,a.makeChild(h,c));S.instance!==s.instance[c]&&(s.instance[c]=S.instance),s.importErrors(S)}}}d&&e0.call(this,t,r,i,a,c,s)}return s}};Ue.additionalProperties=function(t,r,i,a){if(this.types.object(t)){if(r.patternProperties)return null;var s=new We(t,r,i,a);for(var l in t)e0.call(this,t,r,i,a,l,s);return s}};Ue.minProperties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=Object.keys(t);return l.length>=r.minProperties||s.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),s}};Ue.maxProperties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=Object.keys(t);return l.length<=r.maxProperties||s.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),s}};Ue.items=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.items!==void 0){var l=new We(t,r,i,a);return t.every(function(c,d){if(Array.isArray(r.items))var p=r.items[d]===void 0?r.additionalItems:r.items[d];else var p=r.items;if(p===void 0)return!0;if(p===!1)return l.addError({name:"items",message:"additionalItems not permitted"}),!1;var h=s.validateSchema(c,p,i,a.makeChild(p,d));return h.instance!==l.instance[d]&&(l.instance[d]=h.instance),l.importErrors(h),!0}),l}};Ue.contains=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.contains!==void 0){if(!mr.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var l=new We(t,r,i,a),c=t.some(function(d,p){var h=s.validateSchema(d,r.contains,i,a.makeChild(r.contains,p));return h.errors.length===0});return c===!1&&l.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),l}};Ue.minimum=function(t,r,i,a){if(this.types.number(t)){var s=new We(t,r,i,a);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?t>r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):t>=r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),s}};Ue.maximum=function(t,r,i,a){if(this.types.number(t)){var s=new We(t,r,i,a);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?t<r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than "+r.maximum}):t<=r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than or equal to "+r.maximum}),s}};Ue.exclusiveMinimum=function(t,r,i,a){if(typeof r.exclusiveMinimum!="boolean"&&this.types.number(t)){var s=new We(t,r,i,a),l=t>r.exclusiveMinimum;return l||s.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),s}};Ue.exclusiveMaximum=function(t,r,i,a){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(t)){var s=new We(t,r,i,a),l=t<r.exclusiveMaximum;return l||s.addError({name:"exclusiveMaximum",argument:r.exclusiveMaximum,message:"must be strictly less than "+r.exclusiveMaximum}),s}};var t0=function(t,r,i,a,s,l){if(this.types.number(t)){var c=r[s];if(c==0)throw new Zn(s+" cannot be zero");var d=new We(t,r,i,a),p=mr.getDecimalPlaces(t),h=mr.getDecimalPlaces(c),w=Math.max(p,h),S=Math.pow(10,w);return Math.round(t*S)%Math.round(c*S)!==0&&d.addError({name:s,argument:c,message:l+JSON.stringify(c)}),d}};Ue.multipleOf=function(t,r,i,a){return t0.call(this,t,r,i,a,"multipleOf","is not a multiple of (divisible by) ")};Ue.divisibleBy=function(t,r,i,a){return t0.call(this,t,r,i,a,"divisibleBy","is not divisible by (multiple of) ")};Ue.required=function(t,r,i,a){var s=new We(t,r,i,a);return t===void 0&&r.required===!0?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(r.required)&&r.required.forEach(function(l){yf(t,l)===void 0&&s.addError({name:"required",argument:l,message:"requires property "+JSON.stringify(l)})}),s};Ue.pattern=function(t,r,i,a){if(this.types.string(t)){var s=new We(t,r,i,a),l=r.pattern;try{var c=new RegExp(l,"u")}catch{c=new RegExp(l)}return t.match(c)||s.addError({name:"pattern",argument:r.pattern,message:"does not match pattern "+JSON.stringify(r.pattern.toString())}),s}};Ue.format=function(t,r,i,a){if(t!==void 0){var s=new We(t,r,i,a);return!s.disableFormat&&!mr.isFormat(t,r.format,this)&&s.addError({name:"format",argument:r.format,message:"does not conform to the "+JSON.stringify(r.format)+" format"}),s}};Ue.minLength=function(t,r,i,a){if(this.types.string(t)){var s=new We(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),c=t.length-(l?l.length:0);return c>=r.minLength||s.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),s}};Ue.maxLength=function(t,r,i,a){if(this.types.string(t)){var s=new We(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),c=t.length-(l?l.length:0);return c<=r.maxLength||s.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),s}};Ue.minItems=function(t,r,i,a){if(this.types.array(t)){var s=new We(t,r,i,a);return t.length>=r.minItems||s.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),s}};Ue.maxItems=function(t,r,i,a){if(this.types.array(t)){var s=new We(t,r,i,a);return t.length<=r.maxItems||s.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),s}};function wI(e,t,r){var i,a=r.length;for(i=t+1,a;i<a;i++)if(mr.deepCompareStrict(e,r[i]))return!1;return!0}Ue.uniqueItems=function(t,r,i,a){if(r.uniqueItems===!0&&this.types.array(t)){var s=new We(t,r,i,a);return t.every(wI)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}};Ue.dependencies=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a);for(var l in r.dependencies)if(t[l]!==void 0){var c=r.dependencies[l],d=a.makeChild(c,l);if(typeof c=="string"&&(c=[c]),Array.isArray(c))c.forEach(function(h){t[h]===void 0&&s.addError({name:"dependencies",argument:d.propertyPath,message:"property "+h+" not found, required by "+d.propertyPath})});else{var p=this.validateSchema(t,c,i,d);s.instance!==p.instance&&(s.instance=p.instance),p&&p.errors.length&&(s.addError({name:"dependencies",argument:d.propertyPath,message:"does not meet dependency required by "+d.propertyPath}),s.importErrors(p))}}return s}};Ue.enum=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.enum))throw new Zn("enum expects an array",r);var s=new We(t,r,i,a);return r.enum.some(mr.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:r.enum,message:"is not one of enum values: "+r.enum.map(String).join(",")}),s};Ue.const=function(t,r,i,a){if(t===void 0)return null;var s=new We(t,r,i,a);return mr.deepCompareStrict(r.const,t)||s.addError({name:"const",argument:r.const,message:"does not exactly match expected constant: "+r.const}),s};Ue.not=Ue.disallow=function(t,r,i,a){var s=this;if(t===void 0)return null;var l=new We(t,r,i,a),c=r.not||r.disallow;return c?(Array.isArray(c)||(c=[c]),c.forEach(function(d){if(s.testType(t,r,i,a,d)){var p=d&&(d.$id||d.id),h=p||d;l.addError({name:"not",argument:h,message:"is of prohibited type "+h})}}),l):null};var bI=mf,wf={},ic=dt;wf.SchemaScanResult=r0;function r0(e,t){this.id=e,this.ref=t}wf.scan=function(t,r){function i(d,p){if(!p||typeof p!="object")return;if(p.$ref){let v=ic.resolveUrl(d,p.$ref);c[v]=c[v]?c[v]+1:0;return}var h=p.$id||p.id;let w=ic.resolveUrl(d,h);var S=h?w:d;if(S){if(S.indexOf("#")<0&&(S+="#"),l[S]){if(!ic.deepCompareStrict(l[S],p))throw new Error("Schema <"+S+"> already exists with different definition");return l[S]}l[S]=p,S[S.length-1]=="#"&&(l[S.substring(0,S.length-1)]=p)}a(S+"/items",Array.isArray(p.items)?p.items:[p.items]),a(S+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),i(S+"/additionalItems",p.additionalItems),s(S+"/properties",p.properties),i(S+"/additionalProperties",p.additionalProperties),s(S+"/definitions",p.definitions),s(S+"/patternProperties",p.patternProperties),s(S+"/dependencies",p.dependencies),a(S+"/disallow",p.disallow),a(S+"/allOf",p.allOf),a(S+"/anyOf",p.anyOf),a(S+"/oneOf",p.oneOf),i(S+"/not",p.not)}function a(d,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)i(d+"/"+h,p[h])}function s(d,p){if(!(!p||typeof p!="object"))for(var h in p)i(d+"/"+h,p[h])}var l={},c={};return i(t,r),new r0(l,c)};var n0=bI,Gn=dt,i0=wf.scan,o0=Gn.ValidatorResult,SI=Gn.ValidatorResultError,Vo=Gn.SchemaError,a0=Gn.SchemaContext,EI="/",Pt=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(sn),this.attributes=Object.create(n0.validators)};Pt.prototype.customFormats={};Pt.prototype.schemas=null;Pt.prototype.types=null;Pt.prototype.attributes=null;Pt.prototype.unresolvedRefs=null;Pt.prototype.addSchema=function(t,r){var i=this;if(!t)return null;var a=i0(r||EI,t),s=r||t.$id||t.id;for(var l in a.id)this.schemas[l]=a.id[l];for(var l in a.ref)this.unresolvedRefs.push(l);return this.unresolvedRefs=this.unresolvedRefs.filter(function(c){return typeof i.schemas[c]>"u"}),this.schemas[s]};Pt.prototype.addSubSchemaArray=function(t,r){if(Array.isArray(r))for(var i=0;i<r.length;i++)this.addSubSchema(t,r[i])};Pt.prototype.addSubSchemaObject=function(t,r){if(!(!r||typeof r!="object"))for(var i in r)this.addSubSchema(t,r[i])};Pt.prototype.setSchemas=function(t){this.schemas=t};Pt.prototype.getSchema=function(t){return this.schemas[t]};Pt.prototype.validate=function(t,r,i,a){if(typeof r!="boolean"&&typeof r!="object"||r===null)throw new Vo("Expected `schema` to be an object or boolean");i||(i={});var s=r.$id||r.id;let l=Gn.resolveUrl(i.base,s||"");if(!a){a=new a0(r,i,[],l,Object.create(this.schemas)),a.schemas[l]||(a.schemas[l]=r);var c=i0(l,r);for(var d in c.id){var p=c.id[d];a.schemas[d]=p}}if(i.required&&t===void 0){var h=new o0(t,r,i,a);return h.addError("is required, but is undefined"),h}var h=this.validateSchema(t,r,i,a);if(h){if(i.throwAll&&h.errors.length)throw new SI(h)}else throw new Error("Result undefined");return h};function s0(e){var t=typeof e=="string"?e:e.$ref;return typeof t=="string"?t:!1}Pt.prototype.validateSchema=function(t,r,i,a){var s=new o0(t,r,i,a);if(typeof r=="boolean")r===!0?r={}:r===!1&&(r={type:[]});else if(!r)throw new Error("schema is undefined");if(r.extends)if(Array.isArray(r.extends)){var l={schema:r,ctx:a};r.extends.forEach(this.schemaTraverser.bind(this,l)),r=l.schema,l.schema=null,l.ctx=null,l=null}else r=Gn.deepMerge(r,this.superResolve(r.extends,a));var c=s0(r);if(c){var d=this.resolve(r,c,a),p=new a0(d.subschema,i,a.path,d.switchSchema,a.schemas);return this.validateSchema(t,d.subschema,i,p)}var h=i&&i.skipAttributes||[];for(var w in r)if(!n0.ignoreProperties[w]&&h.indexOf(w)<0){var S=null,v=this.attributes[w];if(v)S=v.call(this,t,r,i,a);else if(i.allowUnknownAttributes===!1)throw new Vo("Unsupported attribute: "+w,r);S&&s.importErrors(S)}if(typeof i.rewrite=="function"){var _=i.rewrite.call(this,t,r,i,a);s.instance=_}return s};Pt.prototype.schemaTraverser=function(t,r){t.schema=Gn.deepMerge(t.schema,this.superResolve(r,t.ctx))};Pt.prototype.superResolve=function(t,r){var i=s0(t);return i?this.resolve(t,i,r).subschema:t};Pt.prototype.resolve=function(t,r,i){if(r=i.resolve(r),i.schemas[r])return{subschema:i.schemas[r],switchSchema:r};let s=new URL(r,"thismessage::/").hash;var l=s&&s.length&&r.substr(0,r.length-s.length);if(!l||!i.schemas[l])throw new Vo("no such schema <"+r+">",t);var c=Gn.objectGetPath(i.schemas[l],s.substr(1));if(c===void 0)throw new Vo("no such schema "+s+" located in <"+l+">",t);return{subschema:c,switchSchema:r}};Pt.prototype.testType=function(t,r,i,a,s){if(s!==void 0){if(s===null)throw new Vo('Unexpected null in "type" keyword');if(typeof this.types[s]=="function")return this.types[s].call(this,t);if(s&&typeof s=="object"){var l=this.validateSchema(t,s,i,a);return l===void 0||!(l&&l.errors.length)}return!0}};var sn=Pt.prototype.types={};sn.string=function(t){return typeof t=="string"};sn.number=function(t){return typeof t=="number"&&isFinite(t)};sn.integer=function(t){return typeof t=="number"&&t%1===0};sn.boolean=function(t){return typeof t=="boolean"};sn.array=function(t){return Array.isArray(t)};sn.null=function(t){return t===null};sn.date=function(t){return t instanceof Date};sn.any=function(t){return!0};sn.object=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)};var _I=Pt,u0;u0=_I;dt.ValidatorResult;dt.ValidatorResultError;dt.ValidationError;dt.SchemaError;var xI=l0;function l0(e,t,r){e instanceof RegExp&&(e=Av(e,r)),t instanceof RegExp&&(t=Av(t,r));var i=c0(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function Av(e,t){var r=t.match(e);return r?r[0]:null}l0.range=c0;function c0(e,t,r){var i,a,s,l,c,d=r.indexOf(e),p=r.indexOf(t,d+1),h=d;if(d>=0&&p>0){if(e===t)return[d,p];for(i=[],s=r.length;h>=0&&!c;)h==d?(i.push(h),d=r.indexOf(e,h+1)):i.length==1?c=[i.pop(),p]:(a=i.pop(),a<s&&(s=a,l=p),p=r.indexOf(t,h+1)),h=d<p&&d>=0?d:p;i.length&&(c=[s,l])}return c}var f0=xI,OI=RI,d0="\0SLASH"+Math.random()+"\0",p0="\0OPEN"+Math.random()+"\0",bf="\0CLOSE"+Math.random()+"\0",h0="\0COMMA"+Math.random()+"\0",v0="\0PERIOD"+Math.random()+"\0";function oc(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function AI(e){return e.split("\\\\").join(d0).split("\\{").join(p0).split("\\}").join(bf).split("\\,").join(h0).split("\\.").join(v0)}function TI(e){return e.split(d0).join("\\").split(p0).join("{").split(bf).join("}").split(h0).join(",").split(v0).join(".")}function m0(e){if(!e)return[""];var t=[],r=f0("{","}",e);if(!r)return e.split(",");var i=r.pre,a=r.body,s=r.post,l=i.split(",");l[l.length-1]+="{"+a+"}";var c=m0(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function RI(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Do(AI(e),!0).map(TI)):[]}function CI(e){return"{"+e+"}"}function PI(e){return/^-?0\d/.test(e)}function II(e,t){return e<=t}function MI(e,t){return e>=t}function Do(e,t){var r=[],i=f0("{","}",e);if(!i)return[e];var a=i.pre,s=i.post.length?Do(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var c=a+"{"+i.body+"}"+s[l];r.push(c)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=d||p,w=i.body.indexOf(",")>=0;if(!h&&!w)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+bf+i.post,Do(e)):[e];var S;if(h)S=i.body.split(/\.\./);else if(S=m0(i.body),S.length===1&&(S=Do(S[0],!1).map(CI),S.length===1))return s.map(function(ee){return i.pre+S[0]+ee});var v;if(h){var _=oc(S[0]),g=oc(S[1]),x=Math.max(S[0].length,S[1].length),C=S.length==3?Math.abs(oc(S[2])):1,P=II,T=g<_;T&&(C*=-1,P=MI);var $=S.some(PI);v=[];for(var A=_;P(A,g);A+=C){var D;if(p)D=String.fromCharCode(A),D==="\\"&&(D="");else if(D=String(A),$){var H=x-D.length;if(H>0){var j=new Array(H+1).join("0");A<0?D="-"+j+D.slice(1):D=j+D}}v.push(D)}}else{v=[];for(var V=0;V<S.length;V++)v.push.apply(v,Do(S[V],!1))}for(var V=0;V<v.length;V++)for(var l=0;l<s.length;l++){var c=a+v[V]+s[l];(!t||h||c)&&r.push(c)}}return r}const FI=$c(OI),LI=1024*64,ks=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>LI)throw new TypeError("pattern is too long")},$I={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Lo=e=>e.replace(/[[\]\\-]/g,"\\$&"),DI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Tv=e=>e.join(""),NI=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,c=!1,d=!1,p=!1,h=r,w="";e:for(;s<e.length;){const g=e.charAt(s);if((g==="!"||g==="^")&&s===r+1){p=!0,s++;continue}if(g==="]"&&l&&!d){h=s+1;break}if(l=!0,g==="\\"&&!d){d=!0,s++;continue}if(g==="["&&!d){for(const[x,[C,P,T]]of Object.entries($I))if(e.startsWith(x,s)){if(w)return["$.",!1,e.length-r,!0];s+=x.length,T?a.push(C):i.push(C),c=c||P;continue e}}if(d=!1,w){g>w?i.push(Lo(w)+"-"+Lo(g)):g===w&&i.push(Lo(g)),w="",s++;continue}if(e.startsWith("-]",s+1)){i.push(Lo(g+"-")),s+=2;continue}if(e.startsWith("-",s+1)){w=g,s+=2;continue}i.push(Lo(g)),s++}if(h<s)return["",!1,0,!1];if(!i.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!p){const g=i[0].length===2?i[0].slice(-1):i[0];return[DI(g),!1,h-r,!1]}const S="["+(p?"^":"")+Tv(i)+"]",v="["+(p?"":"^")+Tv(a)+"]";return[i.length&&a.length?"("+S+"|"+v+")":i.length?S:v,c,h-r,!0]},No=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),kI=new Set(["!","?","+","*","@"]),Rv=e=>kI.has(e),jI="(?!(?:^|/)\\.\\.?(?:$|/))",ys="(?!\\.)",WI=new Set(["[","."]),UI=new Set(["..","."]),HI=new Set("().*{}+?[]^$\\!"),BI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Sf="[^/]",Cv=Sf+"*?",Pv=Sf+"+?";var xt,Rt,Sn,it,bt,Wn,wi,Un,Xr,bi,Xo,Ws,g0,no,As,Jo,Lc,Us,y0;const Zt=class Zt{constructor(t,r,i={}){Wt(this,Ws);Wt(this,Jo);wt(this,"type");Wt(this,xt,void 0);Wt(this,Rt,void 0);Wt(this,Sn,!1);Wt(this,it,[]);Wt(this,bt,void 0);Wt(this,Wn,void 0);Wt(this,wi,void 0);Wt(this,Un,!1);Wt(this,Xr,void 0);Wt(this,bi,void 0);Wt(this,Xo,!1);this.type=t,t&&gt(this,Rt,!0),gt(this,bt,r),gt(this,xt,X(this,bt)?X(X(this,bt),xt):this),gt(this,Xr,X(this,xt)===this?i:X(X(this,xt),Xr)),gt(this,wi,X(this,xt)===this?[]:X(X(this,xt),wi)),t==="!"&&!X(X(this,xt),Un)&&X(this,wi).push(this),gt(this,Wn,X(this,bt)?X(X(this,bt),it).length:0)}get hasMagic(){if(X(this,Rt)!==void 0)return X(this,Rt);for(const t of X(this,it))if(typeof t!="string"&&(t.type||t.hasMagic))return gt(this,Rt,!0);return X(this,Rt)}toString(){return X(this,bi)!==void 0?X(this,bi):this.type?gt(this,bi,this.type+"("+X(this,it).map(t=>String(t)).join("|")+")"):gt(this,bi,X(this,it).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Zt&&X(r,bt)===this))throw new Error("invalid part: "+r);X(this,it).push(r)}}toJSON(){var r;const t=this.type===null?X(this,it).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...X(this,it).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===X(this,xt)||X(X(this,xt),Un)&&((r=X(this,bt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(X(this,xt)===this)return!0;if(!((r=X(this,bt))!=null&&r.isStart()))return!1;if(X(this,Wn)===0)return!0;const t=X(this,bt);for(let i=0;i<X(this,Wn);i++){const a=X(t,it)[i];if(!(a instanceof Zt&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(X(this,xt)===this||((r=X(this,bt))==null?void 0:r.type)==="!")return!0;if(!((i=X(this,bt))!=null&&i.isEnd()))return!1;if(!this.type)return(a=X(this,bt))==null?void 0:a.isEnd();const t=X(this,bt)?X(X(this,bt),it).length:0;return X(this,Wn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Zt(this.type,t);for(const i of X(this,it))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new Zt(null,void 0,r);return $n(a=Zt,no,As).call(a,t,i,0,r),i}toMMPattern(){if(this!==X(this,xt))return X(this,xt).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||X(this,Rt)||X(this,Xr).nocase&&!X(this,Xr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(X(this,Xr).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return X(this,Xr)}toRegExpSource(t){var d;const r=t??!!X(this,Xr).dot;if(X(this,xt)===this&&$n(this,Ws,g0).call(this),!this.type){const p=this.isStart()&&this.isEnd(),h=X(this,it).map(_=>{var T;const[g,x,C,P]=typeof _=="string"?$n(T=Zt,Us,y0).call(T,_,X(this,Rt),p):_.toRegExpSource(t);return gt(this,Rt,X(this,Rt)||C),gt(this,Sn,X(this,Sn)||P),g}).join("");let w="";if(this.isStart()&&typeof X(this,it)[0]=="string"&&!(X(this,it).length===1&&UI.has(X(this,it)[0]))){const g=WI,x=r&&g.has(h.charAt(0))||h.startsWith("\\.")&&g.has(h.charAt(2))||h.startsWith("\\.\\.")&&g.has(h.charAt(4)),C=!r&&!t&&g.has(h.charAt(0));w=x?jI:C?ys:""}let S="";return this.isEnd()&&X(X(this,xt),Un)&&((d=X(this,bt))==null?void 0:d.type)==="!"&&(S="(?:$|\\/)"),[w+h+S,No(h),gt(this,Rt,!!X(this,Rt)),X(this,Sn)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=$n(this,Jo,Lc).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const p=this.toString();return gt(this,it,[p]),this.type=null,gt(this,Rt,void 0),[p,No(this.toString()),!1,!1]}let l=!i||t||r||!ys?"":$n(this,Jo,Lc).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&X(this,Xo))c=(this.isStart()&&!r?ys:"")+Pv;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ys:"")+Cv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=a+s+p}return[c,No(s),gt(this,Rt,!!X(this,Rt)),X(this,Sn)]}};xt=new WeakMap,Rt=new WeakMap,Sn=new WeakMap,it=new WeakMap,bt=new WeakMap,Wn=new WeakMap,wi=new WeakMap,Un=new WeakMap,Xr=new WeakMap,bi=new WeakMap,Xo=new WeakMap,Ws=new WeakSet,g0=function(){if(this!==X(this,xt))throw new Error("should only call on root");if(X(this,Un))return this;this.toString(),gt(this,Un,!0);let t;for(;t=X(this,wi).pop();){if(t.type!=="!")continue;let r=t,i=X(r,bt);for(;i;){for(let a=X(r,Wn)+1;!i.type&&a<X(i,it).length;a++)for(const s of X(t,it)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(X(i,it)[a])}r=i,i=X(r,bt)}}return this},no=new WeakSet,As=function(t,r,i,a){var v,_;let s=!1,l=!1,c=-1,d=!1;if(r.type===null){let g=i,x="";for(;g<t.length;){const C=t.charAt(g++);if(s||C==="\\"){s=!s,x+=C;continue}if(l){g===c+1?(C==="^"||C==="!")&&(d=!0):C==="]"&&!(g===c+2&&d)&&(l=!1),x+=C;continue}else if(C==="["){l=!0,c=g,d=!1,x+=C;continue}if(!a.noext&&Rv(C)&&t.charAt(g)==="("){r.push(x),x="";const P=new Zt(C,r);g=$n(v=Zt,no,As).call(v,t,P,g,a),r.push(P);continue}x+=C}return r.push(x),g}let p=i+1,h=new Zt(null,r);const w=[];let S="";for(;p<t.length;){const g=t.charAt(p++);if(s||g==="\\"){s=!s,S+=g;continue}if(l){p===c+1?(g==="^"||g==="!")&&(d=!0):g==="]"&&!(p===c+2&&d)&&(l=!1),S+=g;continue}else if(g==="["){l=!0,c=p,d=!1,S+=g;continue}if(Rv(g)&&t.charAt(p)==="("){h.push(S),S="";const x=new Zt(g,h);h.push(x),p=$n(_=Zt,no,As).call(_,t,x,p,a);continue}if(g==="|"){h.push(S),S="",w.push(h),h=new Zt(null,r);continue}if(g===")")return S===""&&X(r,it).length===0&&gt(r,Xo,!0),h.push(S),S="",r.push(...w,h),p;S+=g}return r.type=null,gt(r,Rt,void 0),gt(r,it,[t.substring(i-1)]),p},Jo=new WeakSet,Lc=function(t){return X(this,it).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return gt(this,Sn,X(this,Sn)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Us=new WeakSet,y0=function(t,r,i=!1){let a=!1,s="",l=!1;for(let c=0;c<t.length;c++){const d=t.charAt(c);if(a){a=!1,s+=(HI.has(d)?"\\":"")+d;continue}if(d==="\\"){c===t.length-1?s+="\\\\":a=!0;continue}if(d==="["){const[p,h,w,S]=NI(t,c);if(w){s+=p,l=l||h,c+=w-1,r=r||S;continue}}if(d==="*"){i&&t==="*"?s+=Pv:s+=Cv,r=!0;continue}if(d==="?"){s+=Sf,r=!0;continue}s+=BI(d)}return[s,No(t),!!r,l]},Wt(Zt,no),Wt(Zt,Us);let js=Zt;const zI=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Kt=(e,t,r={})=>(ks(t),!r.nocomment&&t.charAt(0)==="#"?!1:new iu(t,r).match(e)),qI=/^\*+([^+@!?\*\[\(]*)$/,ZI=e=>t=>!t.startsWith(".")&&t.endsWith(e),GI=e=>t=>t.endsWith(e),KI=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),YI=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),VI=/^\*+\.\*+$/,XI=e=>!e.startsWith(".")&&e.includes("."),JI=e=>e!=="."&&e!==".."&&e.includes("."),QI=/^\.\*+$/,eM=e=>e!=="."&&e!==".."&&e.startsWith("."),tM=/^\*+$/,rM=e=>e.length!==0&&!e.startsWith("."),nM=e=>e.length!==0&&e!=="."&&e!=="..",iM=/^\?+([^+@!?\*\[\(]*)?$/,oM=([e,t=""])=>{const r=w0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},aM=([e,t=""])=>{const r=b0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},sM=([e,t=""])=>{const r=b0([e]);return t?i=>r(i)&&i.endsWith(t):r},uM=([e,t=""])=>{const r=w0([e]);return t?i=>r(i)&&i.endsWith(t):r},w0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},b0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},S0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Iv={win32:{sep:"\\"},posix:{sep:"/"}},lM=S0==="win32"?Iv.win32.sep:Iv.posix.sep;Kt.sep=lM;const Cr=Symbol("globstar **");Kt.GLOBSTAR=Cr;const cM="[^/]",fM=cM+"*?",dM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",pM="(?:(?!(?:\\/|^)\\.).)*?",hM=(e,t={})=>r=>Kt(r,e,t);Kt.filter=hM;const Rr=(e,t={})=>Object.assign({},e,t),vM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Kt;const t=Kt;return Object.assign((i,a,s={})=>t(i,a,Rr(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,Rr(e,s))}static defaults(a){return t.defaults(Rr(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,Rr(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,Rr(e,s))}},unescape:(i,a={})=>t.unescape(i,Rr(e,a)),escape:(i,a={})=>t.escape(i,Rr(e,a)),filter:(i,a={})=>t.filter(i,Rr(e,a)),defaults:i=>t.defaults(Rr(e,i)),makeRe:(i,a={})=>t.makeRe(i,Rr(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,Rr(e,a)),match:(i,a,s={})=>t.match(i,a,Rr(e,s)),sep:t.sep,GLOBSTAR:Cr})};Kt.defaults=vM;const E0=(e,t={})=>(ks(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:FI(e));Kt.braceExpand=E0;const mM=(e,t={})=>new iu(e,t).makeRe();Kt.makeRe=mM;const gM=(e,t,r={})=>{const i=new iu(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Kt.match=gM;const Mv=/[?*]|[+@!]\(.*?\)|\[|\]/,yM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class iu{constructor(t,r={}){wt(this,"options");wt(this,"set");wt(this,"pattern");wt(this,"windowsPathsNoEscape");wt(this,"nonegate");wt(this,"negate");wt(this,"comment");wt(this,"empty");wt(this,"preserveMultipleSlashes");wt(this,"partial");wt(this,"globSet");wt(this,"globParts");wt(this,"nocase");wt(this,"isWindows");wt(this,"platform");wt(this,"windowsNoMagicRoot");wt(this,"regexp");ks(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||S0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!Mv.test(s[2]))&&!Mv.test(s[3]),p=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(h=>this.parse(h))];if(p)return[s[0],...s.slice(1).map(h=>this.parse(h))]}return s.map(d=>this.parse(d))});if(this.debug(this.pattern,a),this.set=a.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let a=0;a<t[i].length;a++)t[i][a]==="**"&&(t[i][a]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a!==i&&r.splice(i,a-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,a)=>{const s=i[i.length-1];return a==="**"&&s==="**"?i:a===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(a),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let a=1;a<t.length-1;a++){const s=t[a];a===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(a,1),a--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const a=t[i-1];a&&a!=="."&&a!==".."&&a!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let a=-1;for(;(a=i.indexOf("**",a+1))!==-1;){let l=a;for(;i[l+1]==="**";)l++;l>a&&i.splice(a+1,l-a);let c=i[a+1];const d=i[a+2],p=i[a+3];if(c!==".."||!d||d==="."||d===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(a,1);const h=i.slice(0);h[a]="**",t.push(h),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const d=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...d),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const a=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(a){t[r]=[],t[i]=a;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let a=0,s=0,l=[],c="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(c==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),a++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=this.options;if(this.isWindows){const g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),C=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),P=!C&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),T=x?3:g?0:void 0,$=P?3:C?0:void 0;if(typeof T=="number"&&typeof $=="number"){const[A,D]=[t[T],r[$]];A.toLowerCase()===D.toLowerCase()&&(r[$]=A,$>T?r=r.slice($):T>$&&(t=t.slice(T)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,d=t.length,p=r.length;l<d&&c<p;l++,c++){this.debug("matchOne loop");var h=r[c],w=t[l];if(this.debug(r,h,w),h===!1)return!1;if(h===Cr){this.debug("GLOBSTAR",[r,h,w]);var S=l,v=c+1;if(v===p){for(this.debug("** at the end");l<d;l++)if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;S<d;){var _=t[S];if(this.debug(`
205
+ globstar while`,t,S,r,v,_),this.matchOne(t.slice(S),r.slice(v),i))return this.debug("globstar found match!",S,d,_),!0;if(_==="."||_===".."||!a.dot&&_.charAt(0)==="."){this.debug("dot detected!",t,S,r,v);break}this.debug("globstar swallow a segment, and continue"),S++}return!!(i&&(this.debug(`
206
+ >>> no match, partial?`,t,S,r,v),S===d))}let g;if(typeof h=="string"?(g=w===h,this.debug("string match",h,w,g)):(g=h.test(w),this.debug("pattern match",h,w,g)),!g)return!1}if(l===d&&c===p)return!0;if(l===d)return i;if(c===p)return l===d-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return E0(this.pattern,this.options)}parse(t){ks(t);const r=this.options;if(t==="**")return Cr;if(t==="")return"";let i,a=null;(i=t.match(tM))?a=r.dot?nM:rM:(i=t.match(qI))?a=(r.nocase?r.dot?YI:KI:r.dot?GI:ZI)(i[1]):(i=t.match(iM))?a=(r.nocase?r.dot?aM:oM:r.dot?sM:uM)(i):(i=t.match(VI))?a=r.dot?JI:XI:(i=t.match(QI))&&(a=eM);const s=js.fromGlob(t,this.options).toMMPattern();return a&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:a}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?fM:r.dot?dM:pM,a=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const p=d.map(h=>{if(h instanceof RegExp)for(const w of h.flags.split(""))a.add(w);return typeof h=="string"?yM(h):h===Cr?Cr:h._src});return p.forEach((h,w)=>{const S=p[w+1],v=p[w-1];h!==Cr||v===Cr||(v===void 0?S!==void 0&&S!==Cr?p[w+1]="(?:\\/|"+i+"\\/)?"+S:p[w]=i:S===void 0?p[w-1]=v+"(?:\\/|"+i+")?":S!==Cr&&(p[w-1]=v+"(?:\\/|\\/"+i+"\\/)"+S,p[w+1]=Cr))}),p.filter(h=>h!==Cr).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let c=a.length-2;!l&&c>=0;c--)l=a[c];for(let c=0;c<s.length;c++){const d=s[c];let p=a;if(i.matchBase&&d.length===1&&(p=[l]),this.matchOne(p,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Kt.defaults(t).Minimatch}}Kt.AST=js;Kt.Minimatch=iu;Kt.escape=zI;Kt.unescape=No;const Ef="/$shared",wM={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/*.json":{parser:"json",content:{}}};function _0(e){const t=Object.entries(wM).find(([r])=>Kt(e,r));return t==null?void 0:t[1]}function _f(e){var i;const t=(i=_0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Ef}/`,"Shared/");xf({name:r,content:t,asText:typeof t=="string"})}function ou({path:e,createIfNotExists:t=!1}){const r=`${Ef}/${e}`;return Ye(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=_0(e);let s=i;if(!a)return s;if(typeof s=="string")try{switch(a.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new u0().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(bM(i)&&t){const a=SM(i,e);Pg.next({message:a,kind:"warning"}),_f(r)}throw i})}function bM(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function SM(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function EM(e){return Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function _M(e){return Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const x0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:pf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function xM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await Ye(Ot,{method:"POST",body:JSON.stringify({verb:Ii.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,c=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?c:l:a.webServerHTTPPort?l:c})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),x0()}}async function O0(e){return await Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function OM(...e){return(await Promise.all(e.map(i=>O0({root:i,verb:Ii.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function AM(e,t={}){const{sanitize:r=!0}=t;return Ye(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const a=new Map;return{...i,components:St.entries(i.components).map(([s,l])=>{const c=s,{resolvedName:d}=l.type;if(d==="WebformLoader"){const p=Kc.generate();a.set(s,p),s=p}return[s,l,c]}).reduce((s,[l,c,d])=>{var p;return c.nodes&&(c.nodes=c.nodes.map(h=>a.get(h)||h)),c.linkedNodes&&(c.linkedNodes=St.entries(c.linkedNodes).reduce((h,[w,S])=>({...h,[w]:a.get(S)||S}),{})),(p=c.props)!=null&&p.events&&(c.props.events=c.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=a.get(h.loader)||h.loader),h))),{...s,[l]:{...c,props:{...c.props,__originalID:d}}}},{})}})}function TM(e){return Ye(Ot,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Pr.METHOD,Pr.CLASS].includes(t.type)?ru(t.content):t.content}))}function RM(e){return e.type==="folder"?Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function CM(e){return e.type==="folder"?(await Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function PM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function IM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function MM(e){return(await Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function FM(...e){return await Ye(Ot,{method:"POST",body:JSON.stringify({verb:Ii.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function LM(e){const t=await Ye("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function $M(){return await Ye("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function DM({name:e,path:t="",root:r="root",asText:i=!1}){return Ye(Ot,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function NM(e={}){try{return await ou({path:"shared_datasources.json",...e})}catch{return{}}}async function kM(e={}){try{return await ou({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function jM(e={}){try{return await ou({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function WM(){try{return await Ye("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function UM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const HM=Wg(),BM=async e=>{const t={verb:Ii.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return HM(async()=>(await Ye(Ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},xf=async e=>{const t=await Ye(Ot,{method:"POST",body:JSON.stringify({...e,verb:Ii.SET_FILE_CONTENT,root:df.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=kg(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},zM=async e=>await xf({name:"crafted_components.json",path:zn.WEBFORMS,content:e});function qM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ZM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function GM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function KM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?ru(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&_f(e.path),t})}function YM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function VM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function XM(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function JM(e){const t=VM(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=XM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function QM(e,t){const i=e.split(".").pop();try{const a=await Ye(Ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=ru(a.content);const{params:s,result:l}=JM(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var A0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(A0||{});function eF(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}var T0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(T0||{}),R0=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(R0||{}),C0=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(C0||{});const tF={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},rF={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=Ot;exports.AppLoader=zP;exports.ControlledSwitch=hg;exports.DATASOURCE_THEMES=tF;exports.DatasourcesActions=Cg;exports.DebuggerActions=Fg;exports.DesignerRequestVerb=Ii;exports.Dialog=aO;exports.DialogBody=Zv;exports.EActivity=A0;exports.EDITOR=rF;exports.EIDENTIFIERS=R0;exports.ERROR_CODES=C0;exports.EWebFormStyleClassScope=T0;exports.EXT_API_PREFIX=fa;exports.FileFolderType=Pr;exports.FolderRootPath=zn;exports.FolderRootType=df;exports.HTTPError=Ic;exports.HTTP_HANDLERS_PATH=Ng;exports.IPreemptive=Yo;exports.IPublished=Kg;exports.IPublishedRestScope=hf;exports.IdentityProvider=m2;exports.Incase=JA;exports.IndentLines=Sm;exports.LogoSVG=vg;exports.LspActions=Mg;exports.MAX_FILE_NAME_LENGTH=cf;exports.MODEL_TAB_PATH=j2;exports.Modal=ZP;exports.ModalCloseReason=eo;exports.ModalColor=_i;exports.ModalIcons=Ac;exports.ModalType=lf;exports.Mutex=jg;exports.NameError=ff;exports.Overlay=qv;exports.Portal=Lv;exports.PublishOptions=lI;exports.ROLES_TAB_PATH=$g;exports.RemoteDebuggerMode=pf;exports.SETTINGS_TAB_PATH=Dg;exports.SHARED_API_PREFIX=Ef;exports.Switcher=Em;exports.TabEventsActions=Ig;exports.Tip=ZC;exports.TipsProvider=zC;exports.Toast=yA;exports.Tooltip=HP;exports.Tree=XA;exports.TreeIcon=mm;exports.TreeNode=Yc;exports.WebformActions=Rg;exports._isArrayDatasource=oI;exports._isObjectDatasource=aI;exports.addAttributesToContent=fI;exports.addFolder=PM;exports.by=Ug;exports.byId=z2;exports.byPath=q2;exports.checkUpdates=EM;exports.createFolder=qM;exports.datasourcesSubject=M2;exports.debuggerSubject=D2;exports.dropFile=CM;exports.dropFolder=MM;exports.exists=Z2;exports.extractWebformName=U2;exports.generateUUID=dI;exports.getAppSettings=xM;exports.getCatalog=$M;exports.getDatasourceId=G2;exports.getDefaultAppSettings=x0;exports.getFile=TM;exports.getFileContent=DM;exports.getFileExtentionFromType=W2;exports.getFilesInfo=FM;exports.getFolder=O0;exports.getFolders=OM;exports.getFunctionContent=QM;exports.getMonacoTheme=UM;exports.getNodeInfo=KM;exports.getSavedConditions=jM;exports.getSharedCSS=kM;exports.getSharedDatasources=NM;exports.getSharedResource=ou;exports.getTypeFromExtension=kg;exports.getUserPrivileges=WM;exports.getWebForm=AM;exports.hasAttributesString=Vg;exports.http=Ye;exports.installUpdates=_M;exports.isArrayDatasource=qg;exports.isDataClassMethod=X2;exports.isDataStoreMethod=V2;exports.isDateDatasource=sI;exports.isEntity=nI;exports.isEntityDatasource=eI;exports.isEntityMethod=J2;exports.isEntitySelection=iI;exports.isEntitySelectionDatasource=tI;exports.isEntitySelectionMethod=Q2;exports.isObjectAttribute=K2;exports.isObjectDatasource=Zg;exports.isRelatedAttribute=Y2;exports.isRelatedEntitiesAttribute=Bg;exports.isRelatedEntityAttribute=zg;exports.isScalarDatasource=Gg;exports.isSimpleAttribute=Hg;exports.isSimpleDatasource=rI;exports.loadDS=uI;exports.log=eF;exports.login=LM;exports.lspSubject=$2;exports.moveItem=GM;exports.outBy=H2;exports.outById=B2;exports.parseAttributes=cI;exports.queue=Wg;exports.removeAttributesString=Xg;exports.removeItem=ZM;exports.renameFile=RM;exports.renameFolder=IM;exports.sanitizeContent=ru;exports.saveContent=YM;exports.setCraftedComponents=zM;exports.setFileContent=xf;exports.setSharedSources=BM;exports.stringifyAttributes=Yg;exports.tabEventsSubject=L2;exports.toastSubject=Pg;exports.transformDates=pI;exports.tryCreateSharedResource=_f;exports.useDidMountEffect=YP;exports.useDoubleClick=b2;exports.useFeatureFlags=v2;exports.useForwardedRef=h2;exports.useHotkeys=c2;exports.useIdentity=g2;exports.useOutsideClick=f2;exports.usePrevious=d2;exports.useStateObject=y2;exports.useStateRef=p2;exports.useTip=rg;exports.validateName=Lg;exports.validateServerSide=N2;exports.validateValue=k2;exports.webformSubject=F2;
206
207
  //# sourceMappingURL=index.cjs.js.map