var bn,V,Ea,ru,dt,Xo,Sa,qr,Ta,fn={},_o=[],ou=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ur=Array.isArray;function Ye(e,t){for(var n in t)e[n]=t[n];return e}function xa(e){var t=e.parentNode;t&&t.removeChild(e)}function te(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?bn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return un(e,a,r,o,null)}function un(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Ea,__i:-1,__u:0};return o==null&&V.vnode!=null&&V.vnode(i),i}function vo(){return{current:null}}function Ie(e){return e.children}function Re(e,t){this.props=e,this.context=t}function $t(e,t){if(t==null)return e.__?$t(e.__,e.__i+1):null;for(var n;tn?(Kr(r,t,o),o.length=r.length=0,t=void 0,dt.sort(qr)):t&&V.__c&&V.__c(t,_o));t&&Kr(r,t,o),zn.__r=0}function Aa(e,t,n,r,o,i,a,u,s,l,d){var c,f,h,p,m,_=r&&r.__k||_o,v=t.length;for(n.__d=s,au(n,t,_),s=n.__d,c=0;c0?un(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,u=su(o,n,a,d),o.__i=u,i=null,u!==-1&&(d--,(i=n[u])&&(i.__u|=131072)),i==null||i.__v===null?(u==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):u!==a&&(u===a+1?c++:u>a?d>s-a?c+=u-a:c--:u(s!=null&&!(131072&s.__u)?1:0))for(;a>=0||u=0){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&i===s.type)return a;a--}if(u2&&(u.children=arguments.length>3?bn.call(arguments,2):n),un(e.type,u,r||e.key,o||e.ref,null)}function Ee(e,t){var n={__c:t="__cC"+Ta++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(function(u){u.__e=!0,Wr(u)})},this.sub=function(a){o.push(a);var u=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),u&&u.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}bn=_o.slice,V={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(u){e=u}throw e}},Ea=0,ru=function(e){return e!=null&&e.constructor==null},Re.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ye({},this.state),typeof e=="function"&&(e=e(Ye({},n),this.props)),e&&Ye(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Wr(this))},Re.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Wr(this))},Re.prototype.render=Ie,dt=[],Sa=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qr=function(e,t){return e.__v.__b-t.__v.__b},zn.__r=0,Ta=0;var Je,oe,xr,ni,jt=0,Pa=[],Nn=[],ue=V,ri=ue.__b,oi=ue.__r,ii=ue.diffed,ai=ue.__c,si=ue.unmount,ui=ue.__;function _t(e,t){ue.__h&&ue.__h(oe,e,jt||t),jt=0;var n=oe.__H||(oe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Nn}),n.__[e]}function _e(e){return jt=1,cr(La,e)}function cr(e,t,n){var r=_t(Je++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):La(void 0,t),function(u){var s=r.__N?r.__N[0]:r.__[0],l=r.t(s,u);s!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=oe,!oe.u)){var o=function(u,s,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!i||i.call(this,u,s,l);var c=!1;return d.forEach(function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(c=!0)}}),!(!c&&r.__c.props===u)&&(!i||i.call(this,u,s,l))};oe.u=!0;var i=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(u,s,l){if(this.__e){var d=i;i=void 0,o(u,s,l),i=d}a&&a.call(this,u,s,l)},oe.shouldComponentUpdate=o}return r.__N||r.__}function ie(e,t){var n=_t(Je++,3);!ue.__s&&bo(n.__H,t)&&(n.__=e,n.i=t,oe.__H.__h.push(n))}function Xe(e,t){var n=_t(Je++,4);!ue.__s&&bo(n.__H,t)&&(n.__=e,n.i=t,oe.__h.push(n))}function W(e){return jt=5,ae(function(){return{current:e}},[])}function lr(e,t,n){jt=6,Xe(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ae(e,t){var n=_t(Je++,7);return bo(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ve(e,t){return jt=8,ae(function(){return e},t)}function ne(e){var t=oe.context[e.__c],n=_t(Je++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(oe)),t.props.value):e.__}function wo(e,t){ue.useDebugValue&&ue.useDebugValue(t?t(e):e)}function du(e){var t=_t(Je++,10),n=_e();return t.__=e,oe.componentDidCatch||(oe.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Ra(){var e=_t(Je++,11);if(!e.__){for(var t=oe.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function fu(){for(var e;e=Pa.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($n),e.__H.__h.forEach(Yr),e.__H.__h=[]}catch(t){e.__H.__h=[],ue.__e(t,e.__v)}}ue.__b=function(e){oe=null,ri&&ri(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ui&&ui(e,t)},ue.__r=function(e){oi&&oi(e),Je=0;var t=(oe=e.__c).__H;t&&(xr===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Nn,n.__N=n.i=void 0})):(t.__h.forEach($n),t.__h.forEach(Yr),t.__h=[],Je=0)),xr=oe},ue.diffed=function(e){ii&&ii(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Pa.push(t)!==1&&ni===ue.requestAnimationFrame||((ni=ue.requestAnimationFrame)||hu)(fu)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Nn&&(n.__=n.__V),n.i=void 0,n.__V=Nn})),xr=oe=null},ue.__c=function(e,t){t.some(function(n){try{n.__h.forEach($n),n.__h=n.__h.filter(function(r){return!r.__||Yr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ue.__e(r,n.__v)}}),ai&&ai(e,t)},ue.unmount=function(e){si&&si(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{$n(r)}catch(o){t=o}}),n.__H=void 0,t&&ue.__e(t,n.__v))};var ci=typeof requestAnimationFrame=="function";function hu(e){var t,n=function(){clearTimeout(r),ci&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ci&&(t=requestAnimationFrame(n))}function $n(e){var t=oe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),oe=t}function Yr(e){var t=oe;e.__c=e.__(),oe=t}function bo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function La(e,t){return typeof t=="function"?t(e):t}function Da(e,t){for(var n in t)e[n]=t[n];return e}function Zr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Fn(e,t){this.props=e,this.context=t}function En(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Zr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,te(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Fn.prototype=new Re).isPureReactComponent=!0,Fn.prototype.shouldComponentUpdate=function(e,t){return Zr(this.props,e)||Zr(this.state,t)};var li=V.__b;V.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),li&&li(e)};var pu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function at(e){function t(n){var r=Da({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=pu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var di=function(e,t){return e==null?null:Ve(Ve(e).map(t))},dr={map:di,forEach:di,count:function(e){return e?Ve(e).length:0},only:function(e){var t=Ve(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ve},mu=V.__e;V.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}mu(e,t,n,r)};var fi=V.unmount;function Ia(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Da({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ia(r,t,n)})),e}function ka(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ka(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function cn(){this.__u=0,this.t=null,this.__b=null}function Na(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function $a(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return te(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Pt(){this.u=null,this.o=null}V.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),fi&&fi(e)},(cn.prototype=new Re).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Na(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=a;var u=function(){if(!--r.__u){if(r.state.__a){var s=r.state.__a;r.__v.__k[0]=ka(s,s.__c.__P,s.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},cn.prototype.componentWillUnmount=function(){this.t=[]},cn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ia(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&te(Ie,null,e.fallback);return o&&(o.__u&=-33),[te(Ie,null,t.__a?null:e.children),o]};var hi=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(r)}}),hn(te(_u,{context:t.context},e.__v),t.l)}function pn(e,t){var n=te(vu,{__v:e,i:t});return n.containerInfo=t,n}(Pt.prototype=new Re).__a=function(e){var t=this,n=Na(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),hi(t,e,r)):o()};n?n(i):i()}},Pt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ve(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Pt.prototype.componentDidUpdate=Pt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){hi(e,n,t)})};var ja=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,yu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,gu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,wu=/[A-Z0-9]/g,bu=typeof document<"u",Eu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function za(e,t,n){return t.__k==null&&(t.textContent=""),hn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Fa(e,t,n){return Ma(e,t),typeof n=="function"&&n(),e?e.__c:null}Re.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Re.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var pi=V.event;function Su(){}function Tu(){return this.cancelBubble}function xu(){return this.defaultPrevented}V.event=function(e){return pi&&(e=pi(e)),e.persist=Su,e.isPropagationStopped=Tu,e.isDefaultPrevented=xu,e.nativeEvent=e};var Eo,Cu={enumerable:!1,configurable:!0,get:function(){return this.class}},mi=V.vnode;V.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||bu&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var u=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u==="ondoubleclick"?i="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Eu(n.type)?u==="onfocus"?i="onfocusin":u==="onblur"?i="onfocusout":gu.test(i)?i=u:r.indexOf("-")===-1&&yu.test(i)?i=i.replace(wu,"-$&").toLowerCase():a===null&&(a=void 0):u=i="oninput",u==="oninput"&&o[i=u]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ve(n.children).forEach(function(s){s.props.selected=o.value.indexOf(s.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ve(n.children).forEach(function(s){s.props.selected=o.multiple?o.defaultValue.indexOf(s.props.value)!=-1:o.defaultValue==s.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Cu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=ja,mi&&mi(e)};var _i=V.__r;V.__r=function(e){_i&&_i(e),Eo=e.__c};var vi=V.diffed;V.diffed=function(e){vi&&vi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Eo=null};var Ha={ReactCurrentDispatcher:{current:{readContext:function(e){return Eo.__n[e.__c].props.value}}}},Au="17.0.2";function Ba(e){return te.bind(null,e)}function Ut(e){return!!e&&e.$$typeof===ja}function Ua(e){return Ut(e)&&e.type===Ie}function fr(e){return Ut(e)?lu.apply(null,arguments):e}function qa(e){return!!e.__k&&(hn(null,e),!0)}function Wa(e){return e&&(e.base||e.nodeType===1&&e)||null}var So=function(e,t){return e(t)},To=function(e,t){return e(t)},Ka=Ie;function xo(e){e()}function Ga(e){return e}function Ya(){return[!1,xo]}var Za=Xe,Va=Ut;function Ja(e,t){var n=t(),r=_e({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Xe(function(){o.__=n,o.v=t,Cr(o)&&i({h:o})},[e,n,t]),ie(function(){return Cr(o)&&i({h:o}),e(function(){Cr(o)&&i({h:o})})},[e]),n}function Cr(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Rt={useState:_e,useId:Ra,useReducer:cr,useEffect:ie,useLayoutEffect:Xe,useInsertionEffect:Za,useTransition:Ya,useDeferredValue:Ga,useSyncExternalStore:Ja,startTransition:xo,useRef:W,useImperativeHandle:lr,useMemo:ae,useCallback:ve,useContext:ne,useDebugValue:wo,version:"17.0.2",Children:dr,render:za,hydrate:Fa,unmountComponentAtNode:qa,createPortal:pn,createElement:te,createContext:Ee,createFactory:Ba,cloneElement:fr,createRef:vo,Fragment:Ie,isValidElement:Ut,isElement:Va,isFragment:Ua,findDOMNode:Wa,Component:Re,PureComponent:Fn,memo:En,forwardRef:at,flushSync:To,unstable_batchedUpdates:So,StrictMode:Ka,Suspense:cn,SuspenseList:Pt,lazy:$a,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ha};const Hn=Object.freeze(Object.defineProperty({__proto__:null,Children:dr,Component:Re,Fragment:Ie,PureComponent:Fn,StrictMode:Ka,Suspense:cn,SuspenseList:Pt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ha,cloneElement:fr,createContext:Ee,createElement:te,createFactory:Ba,createPortal:pn,createRef:vo,default:Rt,findDOMNode:Wa,flushSync:To,forwardRef:at,hydrate:Fa,isElement:Va,isFragment:Ua,isValidElement:Ut,lazy:$a,memo:En,render:za,startTransition:xo,unmountComponentAtNode:qa,unstable_batchedUpdates:So,useCallback:ve,useContext:ne,useDebugValue:wo,useDeferredValue:Ga,useEffect:ie,useErrorBoundary:du,useId:Ra,useImperativeHandle:lr,useInsertionEffect:Za,useLayoutEffect:Xe,useMemo:ae,useReducer:cr,useRef:W,useState:_e,useSyncExternalStore:Ja,useTransition:Ya,version:Au},Symbol.toStringTag,{value:"Module"}));/** * @remix-run/router v1.2.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Mu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Pu(){return Math.random().toString(36).substr(2,8)}function gi(e){return{usr:e.state,key:e.key}}function Vr(e,t,n,r){return n===void 0&&(n=null),Bn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vt(t):t,{state:n,key:t&&t.key||r||Pu()})}function Co(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function vt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ru(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:Co(e);return ye(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function Lu(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=nt.Pop,s=null;function l(){u=nt.Pop,s&&s({action:u,location:f.location})}function d(h,p){u=nt.Push;let m=Vr(f.location,h,p);n&&n(m,h);let _=gi(m),v=f.createHref(m);try{a.pushState(_,"",v)}catch{o.location.assign(v)}i&&s&&s({action:u,location:f.location})}function c(h,p){u=nt.Replace;let m=Vr(f.location,h,p);n&&n(m,h);let _=gi(m),v=f.createHref(m);a.replaceState(_,"",v),i&&s&&s({action:u,location:f.location})}let f={get action(){return u},get location(){return e(o,a)},listen(h){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(yi,l),s=h,()=>{o.removeEventListener(yi,l),s=null}},createHref(h){return t(o,h)},encodeLocation(h){let p=Ru(typeof h=="string"?h:Co(h));return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:c,go(h){return a.go(h)}};return f}var wi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(wi||(wi={}));function Du(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?vt(t):t,o=es(r.pathname||"/",n);if(o==null)return null;let i=Xa(e);Iu(i);let a=null;for(let u=0;a==null&&u{let s={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(ye(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let l=ht([r,s.relativePath]),d=n.concat(s);i.children&&i.children.length>0&&(ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),Xa(i.children,t,d,l)),!(i.path==null&&!i.index)&&t.push({path:l,score:Hu(l,i.index),routesMeta:d})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let s of Qa(i.path))o(i,a,s)}),t}function Qa(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Qa(r.join("/")),u=[];return u.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&u.push(...a),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Iu(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Bu(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ku=/^:\w+$/,Nu=3,$u=2,ju=1,zu=10,Fu=-2,bi=e=>e==="*";function Hu(e,t){let n=e.split("/"),r=n.length;return n.some(bi)&&(r+=Fu),t&&(r+=$u),n.filter(o=>!bi(o)).reduce((o,i)=>o+(ku.test(i)?Nu:i===""?ju:zu),r)}function Bu(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Uu(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(d==="*"){let f=u[c]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return l[d]=Gu(u[c]||"",d),l},{}),pathname:i,pathnameBase:a,pattern:e}}function Wu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ao(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,u)=>(r.push(u),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Ku(e){try{return decodeURI(e)}catch(t){return Ao(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Gu(e,t){try{return decodeURIComponent(e)}catch(n){return Ao(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function es(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ao(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Yu(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?vt(e):e;return{pathname:n?n.startsWith("/")?n:Zu(n,t):t,search:Qu(r),hash:ec(o)}}function Zu(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ar(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Vu(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ju(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=vt(e):(o=Bn({},e),ye(!o.pathname||!o.pathname.includes("?"),Ar("?","pathname","search",o)),ye(!o.pathname||!o.pathname.includes("#"),Ar("#","pathname","hash",o)),ye(!o.search||!o.search.includes("#"),Ar("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,u;if(r||a==null)u=n;else{let c=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),c-=1;o.pathname=f.join("/")}u=c>=0?t[c]:"/"}let s=Yu(o,u),l=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(l||d)&&(s.pathname+="/"),s}const ht=e=>e.join("/").replace(/\/\/+/g,"/"),Xu=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Qu=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ec=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class tc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function nc(e){return e instanceof tc}const ts=["post","put","patch","delete"],dp=new Set(ts),rc=["get",...ts],fp=new Set(rc);const hp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";/** * React Router v6.6.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.value=r,o.getSnapshot=t,Or(o)&&i({inst:o})},[e,r,t]),sc(()=>(Or(o)&&i({inst:o}),e(()=>{Or(o)&&i({inst:o})})),[e]),cc(r),r}function Or(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!ic(n,r)}catch{return!0}}function dc(e,t,n){return t()}const fc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hc=!fc,pc=hc?dc:lc,pp="useSyncExternalStore"in Hn?(e=>e.useSyncExternalStore)(Hn):pc,ns=Ee(null),rs=Ee(null);const Oo=Ee(null),hr=Ee(null),qt=Ee({outlet:null,matches:[]}),os=Ee(null);function pr(){return ne(hr)!=null}function Mo(){return pr()||ye(!1),ne(hr).location}function mc(){pr()||ye(!1);let{basename:e,navigator:t}=ne(Oo),{matches:n}=ne(qt),{pathname:r}=Mo(),o=JSON.stringify(Vu(n).map(u=>u.pathnameBase)),i=W(!1);return ie(()=>{i.current=!0}),ve(function(u,s){if(s===void 0&&(s={}),!i.current)return;if(typeof u=="number"){t.go(u);return}let l=Ju(u,JSON.parse(o),r,s.relative==="path");e!=="/"&&(l.pathname=l.pathname==="/"?e:ht([e,l.pathname])),(s.replace?t.replace:t.push)(l,s.state,s)},[e,t,o,r])}function mp(){let{matches:e}=ne(qt),t=e[e.length-1];return t?t.params:{}}function _c(e,t){pr()||ye(!1);let{navigator:n}=ne(Oo),r=ne(rs),{matches:o}=ne(qt),i=o[o.length-1],a=i?i.params:{},u=i?i.pathname:"/",s=i?i.pathnameBase:"/",l=i&&i.route,d=Mo(),c;if(t){var f;let v=typeof t=="string"?vt(t):t;s==="/"||(f=v.pathname)!=null&&f.startsWith(s)||ye(!1),c=v}else c=d;let h=c.pathname||"/",p=s==="/"?h:h.slice(s.length)||"/",m=Du(e,{pathname:p}),_=wc(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:ht([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:ht([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r||void 0);return t&&_?te(hr.Provider,{value:{location:Jr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:nt.Pop}},_):_}function vc(){let e=Tc(),t=nc(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return te(Ie,null,te("h2",null,"Unhandled Thrown Error!"),te("h3",{style:{fontStyle:"italic"}},t),n?te("pre",{style:o},n):null,te("p",null,"💿 Hey developer 👋"),te("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",te("code",{style:i},"errorElement")," props on ",te("code",{style:i},"")))}class yc extends Re{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?te(qt.Provider,{value:this.props.routeContext},te(os.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gc(e){let{routeContext:t,match:n,children:r}=e,o=ne(ns);return o&&o.static&&o.staticContext&&n.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),te(qt.Provider,{value:t},r)}function wc(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||ye(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,u)=>{let s=a.route.id?o==null?void 0:o[a.route.id]:null,l=n?a.route.errorElement||te(vc,null):null,d=t.concat(r.slice(0,u+1)),c=()=>te(gc,{match:a,routeContext:{outlet:i,matches:d}},s?l:a.route.element!==void 0?a.route.element:i);return n&&(a.route.errorElement||u===0)?te(yc,{location:n.location,component:l,error:s,children:c(),routeContext:{outlet:null,matches:d}}):c()},null)}var Ei;(function(e){e.UseRevalidator="useRevalidator"})(Ei||(Ei={}));var Un;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Un||(Un={}));function bc(e){let t=ne(rs);return t||ye(!1),t}function Ec(e){let t=ne(qt);return t||ye(!1),t}function Sc(e){let t=Ec(e),n=t.matches[t.matches.length-1];return n.route.id||ye(!1),n.route.id}function Tc(){var e;let t=ne(os),n=bc(Un.UseRouteError),r=Sc(Un.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function xc(e){ye(!1)}function Cc(e){let{basename:t="/",children:n=null,location:r,navigationType:o=nt.Pop,navigator:i,static:a=!1}=e;pr()&&ye(!1);let u=t.replace(/^\/*/,"/"),s=ae(()=>({basename:u,navigator:i,static:a}),[u,i,a]);typeof r=="string"&&(r=vt(r));let{pathname:l="/",search:d="",hash:c="",state:f=null,key:h="default"}=r,p=ae(()=>{let m=es(l,u);return m==null?null:{pathname:m,search:d,hash:c,state:f,key:h}},[u,l,d,c,f,h]);return p==null?null:te(Oo.Provider,{value:s},te(hr.Provider,{children:n,value:{location:p,navigationType:o}}))}function _p(e){let{children:t,location:n}=e,r=ne(ns),o=r&&!t?r.router.routes:Xr(t);return _c(o,n)}var Si;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Si||(Si={}));const vp=new Promise(()=>{});function Xr(e,t){t===void 0&&(t=[]);let n=[];return dr.forEach(e,(r,o)=>{if(!Ut(r))return;if(r.type===Ie){n.push.apply(n,Xr(r.props.children,t));return}r.type!==xc&&ye(!1),!r.props.index||!r.props.children||ye(!1);let i=[...t,o],a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=Xr(r.props.children,i)),n.push(a)}),n}/** * React Router DOM v6.6.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Qr(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Ac(e,t){let n=Qr(e);for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}function yp(e){let{basename:t,children:n,window:r}=e,o=W();o.current==null&&(o.current=Ou({window:r,v5Compat:!0}));let i=o.current,[a,u]=_e({action:i.action,location:i.location});return Xe(()=>i.listen(u),[i]),te(Cc,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}var Ti;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Ti||(Ti={}));var xi;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xi||(xi={}));function gp(e){let t=W(Qr(e)),n=Mo(),r=ae(()=>Ac(n.search,t.current),[n.search]),o=mc(),i=ve((a,u)=>{const s=Qr(typeof a=="function"?a(r):a);o("?"+s,u)},[o,r]);return[r,i]}var wp=Oc;function Oc(e,t,n){var r=null,o=null,i=function(){r&&(clearTimeout(r),o=null,r=null)},a=function(){var s=o;i(),s&&s()},u=function(){if(!t)return e.apply(this,arguments);var s=this,l=arguments,d=n&&!r;if(i(),o=function(){e.apply(s,l)},r=setTimeout(function(){if(r=null,!d){var c=o;return o=null,c()}},t),d)return o()};return u.cancel=i,u.flush=a,u}/*! * swiped-events.js - v@version@ * Pure JavaScript swipe events * https://github.com/john-doherty/swiped-events * @inspiration https://stackoverflow.com/questions/16348031/disable-scrolling-when-touch-moving-certain-element * @author John Doherty * @license MIT */(function(e,t){"use strict";typeof e.CustomEvent!="function"&&(e.CustomEvent=function(h,p){p=p||{bubbles:!1,cancelable:!1,detail:void 0};var m=t.createEvent("CustomEvent");return m.initCustomEvent(h,p.bubbles,p.cancelable,p.detail),m},e.CustomEvent.prototype=e.Event.prototype),t.addEventListener("touchstart",d,!1),t.addEventListener("touchmove",c,!1),t.addEventListener("touchend",l,!1);var n=null,r=null,o=null,i=null,a=null,u=null,s=0;function l(h){if(u===h.target){var p=parseInt(f(u,"data-swipe-threshold","20"),10),m=f(u,"data-swipe-unit","px"),_=parseInt(f(u,"data-swipe-timeout","500"),10),v=Date.now()-a,y="",T=h.changedTouches||h.touches||[];if(m==="vh"&&(p=Math.round(p/100*t.documentElement.clientHeight)),m==="vw"&&(p=Math.round(p/100*t.documentElement.clientWidth)),Math.abs(o)>Math.abs(i)?Math.abs(o)>p&&v<_&&(o>0?y="swiped-left":y="swiped-right"):Math.abs(i)>p&&v<_&&(i>0?y="swiped-up":y="swiped-down"),y!==""){var M={dir:y.replace(/swiped-/,""),touchType:(T[0]||{}).touchType||"direct",fingers:s,xStart:parseInt(n,10),xEnd:parseInt((T[0]||{}).clientX||-1,10),yStart:parseInt(r,10),yEnd:parseInt((T[0]||{}).clientY||-1,10)};u.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:M})),u.dispatchEvent(new CustomEvent(y,{bubbles:!0,cancelable:!0,detail:M}))}n=null,r=null,a=null}}function d(h){h.target.getAttribute("data-swipe-ignore")!=="true"&&(u=h.target,a=Date.now(),n=h.touches[0].clientX,r=h.touches[0].clientY,o=0,i=0,s=h.touches.length)}function c(h){if(!(!n||!r)){var p=h.touches[0].clientX,m=h.touches[0].clientY;o=n-p,i=r-m}}function f(h,p,m){for(;h&&h!==t.documentElement;){var _=h.getAttribute(p);if(_)return _;h=h.parentNode}return m}})(window,document);const Mc=Symbol(),Po=Symbol(),Xt="a",ln="w";let Pc=(e,t)=>new Proxy(e,t);const eo=Object.getPrototypeOf,to=new WeakMap,is=e=>e&&(to.has(e)?to.get(e):eo(e)===Object.prototype||eo(e)===Array.prototype),qn=e=>typeof e=="object"&&e!==null,Ci=new WeakMap,Ro=e=>e[Po]||e,as=(e,t,n)=>{if(!is(e))return e;const r=Ro(e),o=(a=>Object.isFrozen(a)||Object.values(Object.getOwnPropertyDescriptors(a)).some(u=>!u.writable))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((a,u)=>{const s={f:u};let l=!1;const d=(f,h)=>{if(!l){let p=s[Xt].get(a);if(p||(p={},s[Xt].set(a,p)),f===ln)p[ln]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(h)}}},c={get:(f,h)=>h===Po?a:(d("k",h),as(Reflect.get(f,h),s[Xt],s.c)),has:(f,h)=>h===Mc?(l=!0,s[Xt].delete(a),!0):(d("h",h),Reflect.has(f,h)),getOwnPropertyDescriptor:(f,h)=>(d("o",h),Reflect.getOwnPropertyDescriptor(f,h)),ownKeys:f=>(d(ln),Reflect.ownKeys(f))};return u&&(c.set=c.deleteProperty=()=>!1),[c,s]})(r,o),i[1].p=Pc(o?(a=>{let u=Ci.get(a);if(!u){if(Array.isArray(a))u=Array.from(a);else{const s=Object.getOwnPropertyDescriptors(a);Object.values(s).forEach(l=>{l.configurable=!0}),u=Object.create(eo(a),s)}Ci.set(a,u)}return u})(r):r,i[0]),n&&n.set(r,i)),i[1][Xt]=t,i[1].c=n,i[1].p},ss=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!qn(e)||!qn(t))return!0;const o=n.get(Ro(e));if(!o)return!0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[ln]===!0){if(i=((a,u)=>{const s=Reflect.ownKeys(a),l=Reflect.ownKeys(u);return s.length!==l.length||s.some((d,c)=>d!==l[c])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=ss(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}};const Rc=e=>is(e)&&e[Po]||null,Ai=(e,t=!0)=>{to.set(e,t)},Lc=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,u)=>{if(o.has(a))return;qn(a)&&o.add(a);const s=qn(a)&&t.get(Ro(a));if(s){var l,d;if((l=s.h)==null||l.forEach(f=>{const h=`:has(${String(f)})`;r.push(u?[...u,h]:[h])}),s[ln]===!0){const f=":ownKeys";r.push(u?[...u,f]:[f])}else{var c;(c=s.o)==null||c.forEach(f=>{const h=`:hasOwn(${String(f)})`;r.push(u?[...u,h]:[h])})}(d=s.k)==null||d.forEach(f=>{n&&!("value"in(Object.getOwnPropertyDescriptor(a,f)||{}))||i(a[f],u?[...u,f]:[f])})}else u&&r.push(u)};return i(e),r};var Wn={PHANPY_CLIENT_NAME:"Phanpy",PHANPY_WEBSITE:"https://phanpy.social",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",VITE_APP_ENV:"production",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Mr=e=>typeof e=="object"&&e!==null,ft=new WeakMap,An=new WeakSet,Dc=(e=Object.is,t=(l,d)=>new Proxy(l,d),n=l=>Mr(l)&&!An.has(l)&&(Array.isArray(l)||!(Symbol.iterator in l))&&!(l instanceof WeakMap)&&!(l instanceof WeakSet)&&!(l instanceof Error)&&!(l instanceof Number)&&!(l instanceof Date)&&!(l instanceof String)&&!(l instanceof RegExp)&&!(l instanceof ArrayBuffer),r=l=>{switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:throw l}},o=new WeakMap,i=(l,d,c=r)=>{const f=o.get(l);if((f==null?void 0:f[0])===d)return f[1];const h=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l));return Ai(h,!0),o.set(l,[d,h]),Reflect.ownKeys(l).forEach(p=>{const m=Reflect.get(l,p);An.has(m)?(Ai(m,!1),h[p]=m):m instanceof Promise?Object.defineProperty(h,p,{get(){return c(m)}}):ft.has(m)?h[p]=no(m,c):h[p]=m}),Object.freeze(h)},a=new WeakMap,u=[1,1],s=l=>{if(!Mr(l))throw new Error("object required");const d=a.get(l);if(d)return d;let c=u[0];const f=new Set,h=(S,L=++u[0])=>{c!==L&&(c=L,f.forEach(w=>w(S,L)))};let p=u[1];const m=(S=++u[1])=>(p!==S&&!f.size&&(p=S,v.forEach(([L])=>{const w=L[1](S);w>c&&(c=w)})),c),_=S=>(L,w)=>{const I=[...L];I[1]=[S,...I[1]],h(I,w)},v=new Map,y=(S,L)=>{if((Wn&&"production")!=="production"&&v.has(S))throw new Error("prop listener already exists");if(f.size){const w=L[3](_(S));v.set(S,[L,w])}else v.set(S,[L])},T=S=>{var L;const w=v.get(S);w&&(v.delete(S),(L=w[1])==null||L.call(w))},M=S=>(f.add(S),f.size===1&&v.forEach(([w,I],q)=>{if((Wn&&"production")!=="production"&&I)throw new Error("remove already exists");const D=w[3](_(q));v.set(q,[w,D])}),()=>{f.delete(S),f.size===0&&v.forEach(([w,I],q)=>{I&&(I(),v.set(q,[w]))})}),x=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),C=t(x,{deleteProperty(S,L){const w=Reflect.get(S,L);T(L);const I=Reflect.deleteProperty(S,L);return I&&h(["delete",[L],w]),I},set(S,L,w,I){var q;const D=Reflect.has(S,L),A=Reflect.get(S,L,I);if(D&&e(A,w))return!0;T(L),Mr(w)&&(w=Rc(w)||w);let O=w;if(!((q=Object.getOwnPropertyDescriptor(S,L))!=null&&q.set))if(w instanceof Promise)w.then(P=>{w.status="fulfilled",w.value=P,h(["resolve",[L],P])}).catch(P=>{w.status="rejected",w.reason=P,h(["reject",[L],P])});else{!ft.has(w)&&n(w)&&(O=kc(w));const P=!An.has(O)&&ft.get(O);P&&y(L,P)}return Reflect.set(S,L,O,I),h(["set",[L],w,A]),!0}});a.set(l,C);const B=[x,m,i,M];return ft.set(C,B),Reflect.ownKeys(l).forEach(S=>{const L=Object.getOwnPropertyDescriptor(l,S);L.get||L.set?Object.defineProperty(x,S,L):C[S]=l[S]}),C})=>[s,ft,An,e,t,n,r,o,i,a,u],[Ic]=Dc();function kc(e={}){return Ic(e)}function us(e,t,n){const r=ft.get(e);(Wn&&"production")!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],a=r[3];let u=!1;const l=a(d=>{if(i.push(d),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,u&&t(i.splice(0))}))});return u=!0,()=>{u=!1,l()}}function no(e,t){const n=ft.get(e);(Wn&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Lo={exports:{}},cs={};const $c=Nc(Hn);/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zt=$c;function jc(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zc=typeof Object.is=="function"?Object.is:jc,Fc=zt.useState,Hc=zt.useEffect,Bc=zt.useLayoutEffect,Uc=zt.useDebugValue;function qc(e,t){var n=t(),r=Fc({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Bc(function(){o.value=n,o.getSnapshot=t,Pr(o)&&i({inst:o})},[e,n,t]),Hc(function(){return Pr(o)&&i({inst:o}),e(function(){Pr(o)&&i({inst:o})})},[e]),Uc(n),n}function Pr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zc(e,n)}catch{return!0}}function Wc(e,t){return t()}var Kc=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Wc:qc,bp=cs.useSyncExternalStore=zt.useSyncExternalStore!==void 0?zt.useSyncExternalStore:Kc,Ep=Lo.exports;Lo.exports=cs;var Gc=Lo.exports;const Yc=Qe(Gc);var Zc={PHANPY_CLIENT_NAME:"Phanpy",PHANPY_WEBSITE:"https://phanpy.social",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",VITE_APP_ENV:"production",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:Oi}=Rt,{useSyncExternalStore:Vc}=Yc,Jc=(e,t)=>{const n=W();ie(()=>{n.current=Lc(e,t,!0)}),wo(n.current)};function Sp(e,t){const n=t==null?void 0:t.sync,r=W(),o=W();let i=!0;const a=Vc(ve(l=>{const d=us(e,l,n);return l(),d},[e,n]),()=>{const l=no(e,Oi);try{if(!i&&r.current&&o.current&&!ss(r.current,l,o.current,new WeakMap))return r.current}catch{}return l},()=>no(e,Oi));i=!1;const u=new WeakMap;ie(()=>{r.current=a,o.current=u}),(Zc&&"production")!=="production"&&Jc(a,u);const s=ae(()=>new WeakMap,[]);return as(a,u,s)}var Xc=0,Tp=Array.isArray;function se(e,t,n,r,o,i){var a,u,s={};for(u in t)u=="ref"?a=t[u]:s[u]=t[u];var l={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Xc,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(u in a)s[u]===void 0&&(s[u]=a[u]);return V.vnode&&V.vnode(l),l}function ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var al=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,i=n.meta,a=n.mod,u=n.shift,s=n.ctrl,l=n.keys,d=t.key,c=t.code,f=t.ctrlKey,h=t.metaKey,p=t.shiftKey,m=t.altKey,_=rt(c),v=d.toLowerCase();if(!(l!=null&&l.includes(_))&&!(l!=null&&l.includes(v))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(_))return!1;if(!r){if(o===!m&&v!=="alt"||u===!p&&v!=="shift")return!1;if(a){if(!h&&!f)return!1}else if(i===!h&&v!=="meta"&&v!=="os"||s===!f&&v!=="ctrl"&&v!=="control")return!1}return l&&l.length===1&&(l.includes(v)||l.includes(_))?!0:l?tl(l):!l},sl=Ee(void 0),ul=function(){return ne(sl)};function ps(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&ps(e[r],t[r])},!0):e===t}var cl=Ee({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),ll=function(){return ne(cl)};function dl(e){var t=W(void 0);return ps(t.current,e)||(t.current=e),t.current}var Mi=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},fl=typeof window<"u"?Xe:ie;function xp(e,t,n,r){var o=W(null),i=W(!1),a=n instanceof Array?r instanceof Array?void 0:r:n,u=Do(e)?e.join(a==null?void 0:a.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,l=ve(t,s??[]),d=W(l);s?d.current=l:d.current=t;var c=dl(a),f=ll(),h=f.enabledScopes,p=ul();return fl(function(){if(!((c==null?void 0:c.enabled)===!1||!il(h,c==null?void 0:c.scopes))){var m=function(M,x){var b;if(x===void 0&&(x=!1),!(ol(M)&&!hs(M,c==null?void 0:c.enableOnFormTags))){if(o.current!==null){var C=o.current.getRootNode();if((C instanceof Document||C instanceof ShadowRoot)&&C.activeElement!==o.current&&!o.current.contains(C.activeElement)){Mi(M);return}}(b=M.target)!=null&&b.isContentEditable&&!(c!=null&&c.enableOnContentEditable)||Rr(u,c==null?void 0:c.splitKey).forEach(function(B){var S,L=Lr(B,c==null?void 0:c.combinationKey);if(al(M,L,c==null?void 0:c.ignoreModifiers)||(S=L.keys)!=null&&S.includes("*")){if(c!=null&&c.ignoreEventWhen!=null&&c.ignoreEventWhen(M)||x&&i.current)return;if(nl(M,L,c==null?void 0:c.preventDefault),!rl(M,L,c==null?void 0:c.enabled)){Mi(M);return}d.current(M,L),x||(i.current=!0)}})}},_=function(M){M.key!==void 0&&(ds(rt(M.code)),((c==null?void 0:c.keydown)===void 0&&(c==null?void 0:c.keyup)!==!0||c!=null&&c.keydown)&&m(M))},v=function(M){M.key!==void 0&&(fs(rt(M.code)),i.current=!1,c!=null&&c.keyup&&m(M,!0))},y=o.current||(a==null?void 0:a.document)||document;return y.addEventListener("keyup",v),y.addEventListener("keydown",_),p&&Rr(u,c==null?void 0:c.splitKey).forEach(function(T){return p.addHotkey(Lr(T,c==null?void 0:c.combinationKey,c==null?void 0:c.description))}),function(){y.removeEventListener("keyup",v),y.removeEventListener("keydown",_),p&&Rr(u,c==null?void 0:c.splitKey).forEach(function(T){return p.removeHotkey(Lr(T,c==null?void 0:c.combinationKey,c==null?void 0:c.description))})}}},[u,c,h]),o}function hl(e,t){var n=Object.setPrototypeOf;n?n(e,t):e.__proto__=t}function pl(e,t){t===void 0&&(t=e.constructor);var n=Error.captureStackTrace;n&&n(e,t)}var ml=function(){var e=function(n,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},e(n,r)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt=function(e){ml(t,e);function t(n,r){var o=this.constructor,i=e.call(this,n,r)||this;return Object.defineProperty(i,"name",{value:o.name,enumerable:!1,configurable:!0}),hl(i,o.prototype),pl(i),i}return t}(Error);var _l=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")};const Io=Qe(_l);function vl(){let e,t;const n=new Promise((...r)=>[e,t]=r);return Object.freeze({resolve:e,reject:t,promise:n})}function yl(e,t){const n=[],r=[],o=e((...d)=>{const c=r.shift();c?c.resolve({value:d,done:!1}):n.push(d)}),i=t==null?void 0:t.signal;let a=!1,u=null;const s=()=>{u=new Error("Abort Error")},l=()=>{o==null||o(),i==null||i.removeEventListener("abort",s)};return i==null||i.addEventListener("abort",s,{once:!0}),{async next(){const d=n.shift();if(d)return{value:d,done:!1};if(a)return{value:void 0,done:!0};if(u)return Promise.reject(u);const c=vl();return r.push(c),c.promise},async return(){a=!0,l();for(const d of r)d.resolve({value:void 0,done:!0});return{value:void 0,done:!0}},async throw(d){return u=d,l(),{value:void 0,done:!0}},[Symbol.asyncIterator](){return this}}}var oo=function(e,t){return oo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},oo(e,t)};function gl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");oo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function Sl(e,t){return t===void 0&&(t={}),ms(e,he({delimiter:"",transform:_s},t))}function Tl(e,t){return t===0?e.toLowerCase():_s(e,t)}function xl(e,t){return t===void 0&&(t={}),Sl(e,he({transform:Tl},t))}function Cl(e,t){return t===void 0&&(t={}),ms(e,he({delimiter:"."},t))}function ko(e,t){return t===void 0&&(t={}),Cl(e,he({delimiter:"_"},t))}class pt extends Wt{}class Ri extends Wt{constructor(t,n,r,o){super(t,o),this.contentType=n,this.data=r}}class vs extends Wt{constructor(t,n){super(t.message,n),this.statusCode=t.statusCode,this.message=t.message,this.description=t.description,this.additionalProperties=t.additionalProperties,this.details=t.details}}class ys extends Wt{}class Li extends Wt{constructor(t,n){super(t,n),this.message=t}}function gs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xe(e){return this instanceof xe?(this.v=e,this):new xe(e)}function Gn(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||u(f,h)})})}function u(f,h){try{s(r[f](h))}catch(p){c(i[0][3],p)}}function s(f){f.value instanceof xe?Promise.resolve(f.value.v).then(l,d):c(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function c(f,h){f(h),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Yn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Di=="function"?Di(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(a){return new Promise(function(u,s){a=e[i](a),o(u,s,a.done,a.value)})}}function o(i,a,u,s){Promise.resolve(s).then(function(l){i({value:l,done:u})},a)}}const ws=e=>new Promise(t=>setTimeout(()=>t(),e)),mr=e=>typeof e=="object"&&e!==null&&e.constructor.name==="Object";function Al(){}class Ol extends Wt{constructor(t,n){super(`Maximum number of attempts reached: ${t}`,n)}}class Ml{constructor(t={}){this.props=t,this.attempts=0}sleep(){return je(this,void 0,void 0,function*(){if(this.attempts>=this.maxAttempts)throw new Ol(this.attempts);yield ws(this.getTimeout()),this.attempts++})}clear(){this.attempts=0}get factor(){var t;return(t=this.props.factor)!==null&&t!==void 0?t:1e3}get base(){var t;return(t=this.props.base)!==null&&t!==void 0?t:2}get maxAttempts(){var t;return(t=this.props.maxAttempts)!==null&&t!==void 0?t:Number.POSITIVE_INFINITY}getTimeout(){return this.factor*Math.pow(this.base,this.attempts)}values(){return Gn(this,arguments,function*(){for(;this.attempts{let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}},Rl=e=>{const t=new Map;for(const n of e.split(",")){const r=n.match(/<([^>]+)>;\s*rel="([^"]+)"/);r&&t.set(r[2],r[1])}return t};class Zn{constructor(t,n,r,o,i="next"){this.http=t,this.nextPath=n,this.nextParams=r,this.meta=o,this.direction=i}next(){return je(this,void 0,void 0,function*(){if(this.nextPath==null)return{done:!0,value:void 0};const t=yield this.http.request(Object.assign({method:"GET",path:this.nextPath,search:this.nextParams},this.meta)),n=this.getLink(t.headers.get("link"));return this.nextPath=n==null?void 0:n.pathname,this.nextParams=n==null?void 0:n.search.replace(/^\?/,""),{done:!1,value:yield t.data}})}return(t){return je(this,void 0,void 0,function*(){return this.clear(),{done:!0,value:yield t}})}throw(t){return je(this,void 0,void 0,function*(){throw this.clear(),t})}then(t=Promise.resolve.bind(Promise),n=Promise.reject.bind(Promise)){return this.next().then(r=>t(r.value),n)}values(){return this[Symbol.asyncIterator]()}getDirection(){return this.direction}setDirection(t){return new Zn(this.http,this.nextPath,this.nextParams,this.meta,t)}[Symbol.asyncIterator](){return this}getLink(t){if(t==null)return;const n=Rl(t).get(this.direction);if(n!=null)return new URL(n)}clear(){this.nextPath=void 0,this.nextParams=void 0}clone(){return new Zn(this.http,this.nextPath,this.nextParams,this.meta,this.direction)}}class Ll{constructor(t,n){this.http=t,this.hook=n}dispatch(t){this.hook!=null&&(t=this.hook.beforeDispatch(t));let n;switch(t.type){case"fetch":{n=this.http.get(t.path,t.data,t.meta);break}case"create":{n=this.http.post(t.path,t.data,t.meta);break}case"update":{n=this.http.patch(t.path,t.data,t.meta);break}case"remove":{n=this.http.delete(t.path,t.data,t.meta);break}case"list":{n=new Zn(this.http,t.path,t.data);break}}return n instanceof Promise?n.then(r=>{var o;return(o=this.hook)===null||o===void 0?void 0:o.afterDispatch(t,r)}):this.hook.afterDispatch(t,n)}}function Dl(e){return e.readyState===Io.OPEN?Promise.resolve():new Promise((t,n)=>{const r=a=>{n(a)},o=()=>{n(new Error("WebSocket closed"))},i=()=>{t()};e.addEventListener("error",r,{once:!0}),e.addEventListener("close",o,{once:!0}),e.addEventListener("open",i,{once:!0})})}function Il(e){return e.readyState===Io.CLOSED?Promise.resolve():new Promise(t=>{const n=()=>{t()};e.addEventListener("error",n,{once:!0}),e.addEventListener("close",n,{once:!0})})}class kl{constructor(t,n){this.props=t,this.logger=n,this.queue=[],this.disableRetry=!1,this.initialized=!1,this.init=()=>je(this,void 0,void 0,function*(){var r,o,i,a,u,s,l,d,c,f;if(!this.initialized){this.initialized=!0;try{for(var h=!0,p=Yn(this.backoff),m;m=yield p.next(),r=m.done,!r;h=!0){a=m.value,h=!1;const _=a;(u=this.ws)===null||u===void 0||u.close();try{(s=this.logger)===null||s===void 0||s.log("info","Connecting to WebSocket...");{const v=(l=this.props.implementation)!==null&&l!==void 0?l:Io,y=new v(...this.props.constructorParameters);yield Dl(y),this.ws=y}(d=this.logger)===null||d===void 0||d.log("info","Connected to WebSocket");for(const{resolve:v}of this.queue)v(this.ws);this.queue=[],yield Il(this.ws),(c=this.logger)===null||c===void 0||c.log("info","WebSocket closed"),this.backoff.clear()}catch(v){(f=this.logger)===null||f===void 0||f.log("error","WebSocket error:",v)}if(this.disableRetry)break}}catch(_){o={error:_}}finally{try{!h&&!r&&(i=p.return)&&(yield i.call(p))}finally{if(o)throw o.error}}for(const{reject:_}of this.queue)_(new Li(`Failed to connect to WebSocket after ${this.props.maxAttempts} attempts`));this.queue=[]}}),this.backoff=new Ml({maxAttempts:this.props.maxAttempts})}canAcquire(){return!this.disableRetry}acquire(){return je(this,void 0,void 0,function*(){if(this.init(),this.ws!=null)return this.ws;const t=Pl();return this.queue.push(t),yield t.promise})}close(){var t;this.disableRetry=!0,(t=this.ws)===null||t===void 0||t.close(),this.backoff.clear();for(const{reject:n}of this.queue)n(new Li("WebSocket closed"));this.queue=[]}}function Nl(e){return Gn(this,arguments,function*(){var n,r,o,i;const a=f=>je(this,void 0,void 0,function*(){if(s.return==null)throw new pt("events.return is undefined");yield s.return(f)}),u=f=>je(this,void 0,void 0,function*(){if(s.return==null)throw new pt("events.return is undefined");yield s.return(f)}),s=yl(f=>(e.addEventListener("message",f),e.addEventListener("error",u),e.addEventListener("close",a),()=>{e.removeEventListener("message",f),e.removeEventListener("error",u),e.removeEventListener("close",a)}));try{for(var l=!0,d=Yn(s),c;c=yield xe(d.next()),n=c.done,!n;l=!0){i=c.value,l=!1;const[f]=i;yield yield xe(f)}}catch(f){r={error:f}}finally{try{!l&&!n&&(o=d.return)&&(yield xe(o.call(d)))}finally{if(r)throw r.error}}})}class $l{constructor(t,n,r,o,i){this.connector=t,this.serializer=n,this.stream=r,this.logger=o,this.params=i}values(){var t,n,r;return Gn(this,arguments,function*(){var i,a,u,s;for((t=this.logger)===null||t===void 0||t.log("info","Subscribing to stream",this.stream);this.connector.canAcquire();){this.connection=yield xe(this.connector.acquire());const f=Nl(this.connection),h=this.serializer.serialize("json",Object.assign({type:"subscribe",stream:this.stream},this.params));(n=this.logger)===null||n===void 0||n.log("debug","↑ WEBSOCKET",h),this.connection.send(h);try{for(var l=!0,d=(a=void 0,Yn(this.transformIntoEvents(f))),c;c=yield xe(d.next()),i=c.done,!i;l=!0){s=c.value,l=!1;const p=s;this.matches(p)&&((r=this.logger)===null||r===void 0||r.log("debug","↓ WEBSOCKET",p),yield yield xe(p))}}catch(p){a={error:p}}finally{try{!l&&!i&&(u=d.return)&&(yield xe(u.call(d)))}finally{if(a)throw a.error}}}})}unsubscribe(){if(this.connection==null)return;const t=this.serializer.serialize("json",Object.assign({type:"unsubscribe",stream:this.stream},this.params));this.connection.send(t)}[Symbol.asyncIterator](){return this.values()}[Symbol.dispose](){this.unsubscribe()}matches(t){var n;const r=(n=this.params)!==null&&n!==void 0?n:{},o=Object.values(r);return[this.stream,...o].every(a=>t.stream.includes(a))}transformIntoEvents(t){return Gn(this,arguments,function*(){var r,o,i,a;try{for(var u=!0,s=Yn(t),l;l=yield xe(s.next()),r=l.done,!r;u=!0){a=l.value,u=!1;const d=a,c=yield xe(this.parseMessage(d.data));yield yield xe(c)}}catch(d){o={error:d}}finally{try{!u&&!r&&(i=s.return)&&(yield xe(i.call(s)))}finally{if(o)throw o.error}}})}parseMessage(t){return je(this,void 0,void 0,function*(){const n=this.serializer.deserialize("json",t);if("error"in n)throw new pt(n.error);const r=n.event==="delete"||n.payload==null?n.payload:this.serializer.deserialize("json",n.payload);return{stream:n.stream,event:n.event,payload:r}})}}class jl{constructor(t,n,r){this.connector=t,this.serializer=n,this.logger=r}dispatch(t){var n;if(t.type==="close")return this.connector.close(),{};if(t.type==="prepare")return this.connector.acquire();if(t.type!=="subscribe")throw new pt(`Unknown action type ${t.type}`);const r=(n=t.data)!==null&&n!==void 0?n:{},o=t.path.replace(/^\//,"").replaceAll("/",":");return new $l(this.connector,this.serializer,o,this.logger,Object.assign({},r))}[Symbol.dispose](){this.connector.close()}}const mn=(e,t={})=>{const{context:n=[],applicable:r=!1}=t;let o={};const i={get:Fl(e,n)};return r&&(o=Al,i.apply=Hl(e,n)),new Proxy(o,i)},zl=new Set(["then","catch","finally","inspect","toString","valueOf","toJSON","constructor","prototype","length","name","caller","callee","arguments","bind","apply","call"]),Fl=(e,t)=>(n,r)=>{if(!(typeof r=="string"&&zl.has(r))){if(r===Symbol.dispose)return e[Symbol.dispose];if(typeof r!="symbol")return r.startsWith("$")?mn(e,{context:[...t,r],applicable:!0}):mn(e,{context:[...t,ko(r)],applicable:!0})}},Hl=(e,t)=>(n,r,o)=>{const i=t.pop();if(i==null)throw new Error("No action specified");if(i==="$select")return mn(e,{context:[...t,...o],applicable:!0});const a="/"+t.join("/"),[u,s]=o;return e.dispatch({type:i,path:a,data:u,meta:s})};function bs(e){return["fetch","create","update","remove","list"].includes(e)}function Bl(e){if(bs(e))return e;switch(e){case"lookup":case"verify_credentials":return"fetch";case"update_credentials":return"update";default:return"create"}}function Ul(e,t){return e==="create"&&t==="/api/v1/accounts"||e==="update"&&t==="/api/v1/accounts/update_credentials"||e==="create"&&t==="/api/v1/email"||e==="create"&&t==="/api/v1/featured_tag"||e==="create"&&t==="/api/v1/media"||e==="create"&&t==="/api/v2/media"?"multipart-form":"json"}function ql(e,t,n){return je(this,void 0,void 0,function*(){let r;const o=AbortSignal.timeout(t);for(;r==null;){if(o.aborted)throw new ys(`Media processing timed out of ${t}ms`);try{yield ws(1e3);const i=yield n.get(`/api/v1/media/${e}`);i.url!=null&&(r=i)}catch(i){if(i instanceof vs&&i.statusCode===404)continue;throw i}}return r})}class Wl{constructor(t,n=1e3*60){this.http=t,this.mediaTimeout=n}beforeDispatch(t){const n=Bl(t.type),r=bs(t.type)?t.path:t.path+"/"+ko(t.type),o=Ul(n,r),i=Object.assign(Object.assign({},t.meta),{encoding:o});return{type:n,path:r,data:t.data,meta:i}}afterDispatch(t,n){var r;if(t.type==="create"&&t.path==="/api/v2/media"){const o=n;return mr(t.data)&&((r=t.data)===null||r===void 0?void 0:r.skipPolling)===!0?o:ql(o.id,this.mediaTimeout,this.http)}return n}}const Kl=e=>{const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(),{once:!0});return t.signal},Gl=([e,...t])=>{const n=new Headers(e);for(const r of t)for(const[o,i]of new Headers(r).entries())n.set(o,i);return n},Yl=1e3*300;class Zl{constructor(t,n){this.props=t,this.serializer=n}mergeRequestInitWithDefaults(t={}){const n=Object.assign({},this.props.requestInit);{const{headers:r,signal:o}=t,i=gs(t,["headers","signal"]);Object.assign(n,i),n.headers=this.mergeHeadersWithDefaults(r),n.signal=this.mergeAbortSignalWithDefaults(o)}return n}resolvePath(t,n){const r=new URL(t,this.props.url);return typeof n=="string"?r.search=n:n!=null&&(r.search=this.serializer.serialize("querystring",n)),r}createTimeout(){var t;return AbortSignal.timeout((t=this.props.timeout)!==null&&t!==void 0?t:Yl)}mergeHeadersWithDefaults(t={}){var n,r;const o=Gl([(r=(n=this.props.requestInit)===null||n===void 0?void 0:n.headers)!==null&&r!==void 0?r:{},t]),i=new Headers(o);return this.props.accessToken&&i.set("Authorization",`Bearer ${this.props.accessToken}`),new Headers(i)}mergeAbortSignalWithDefaults(t){var n;const o=[this.createTimeout()];return!((n=this.props.requestInit)===null||n===void 0)&&n.signal&&o.push(this.props.requestInit.signal),t!=null&&o.push(t),Kl(o)}}class Vl{constructor(t,n){this.props=t,this.serializer=n}getProtocols(t=[]){return this.props.useInsecureAccessToken||this.props.accessToken==null?[...t]:[this.props.accessToken,...t]}resolvePath(t,n={}){const r=new URL(t,this.props.streamingApiUrl);return this.props.useInsecureAccessToken&&(n.accessToken=this.props.accessToken),r.search=this.serializer.serialize("querystring",n),r}getMaxAttempts(){return this.props.retry===!0||this.props.retry==null?Number.POSITIVE_INFINITY:this.props.retry===!1?1:this.props.retry}}class Jl{get(t,n,r={}){return this.request(Object.assign({method:"GET",path:t,search:n},r)).then(o=>o.data)}post(t,n,r={}){return this.request(Object.assign({method:"POST",path:t,body:n},r)).then(o=>o.data)}delete(t,n,r={}){return this.request(Object.assign({method:"DELETE",path:t,body:n},r)).then(o=>o.data)}put(t,n,r={}){return this.request(Object.assign({method:"PUT",path:t,body:n},r)).then(o=>o.data)}patch(t,n,r={}){return this.request(Object.assign({method:"PATCH",path:t,body:n},r)).then(o=>o.data)}}const Ii=e=>{var t;const n=(t=e.get("Content-Type"))===null||t===void 0?void 0:t.replace(/\s*;.*$/,"");if(typeof n=="string")switch(n){case"application/json":return"json";case"multipart/form-data":return"multipart-form";default:return}};class Xl extends Jl{constructor(t,n,r){super(),this.serializer=t,this.config=n,this.logger=r}request(t){var n,r,o,i,a;return je(this,void 0,void 0,function*(){const u=this.createRequest(t);try{(n=this.logger)===null||n===void 0||n.log("info",`↑ ${u.method} ${u.url}`),(r=this.logger)===null||r===void 0||r.log("debug"," body",{encoding:t.encoding,body:t.body});const s=yield fetch(u);if(!s.ok)throw s;const l=yield s.text(),d=Ii(s.headers);if(d==null)throw new pt("The server returned data with an unknown encoding.");const c=this.serializer.deserialize(d,l);return(o=this.logger)===null||o===void 0||o.log("info",`↓ ${u.method} ${u.url}`),(i=this.logger)===null||i===void 0||i.log("debug"," body",l),{headers:s.headers,data:c}}catch(s){throw(a=this.logger)===null||a===void 0||a.log("debug","HTTP failed",s),yield this.createError(s)}})}createRequest(t){const{method:n,path:r,search:o,encoding:i="json",requestInit:a={}}=t,u=this.config.resolvePath(r,o),s=this.serializer.serialize(i,t.body),l=this.config.mergeRequestInitWithDefaults(a),d=new Request(u,Object.assign({method:n,body:s},l));return typeof s=="string"&&i==="json"&&d.headers.set("Content-Type","application/json"),d}createError(t){return je(this,void 0,void 0,function*(){if(t instanceof Response){const n=Ii(t.headers);if(n==null)throw new pt("The server returned data with an unknown encoding. The server may be down.");const r=this.serializer.deserialize(n,yield t.text()),{error:o,errorDescription:i,details:a}=r,u=gs(r,["error","errorDescription","details"]);return new vs({statusCode:t.status,message:o,description:i,details:a,additionalProperties:u},{cause:t})}return t!=null&&t.name==="AbortError"?new ys("Request timed out",{cause:t}):t})}}class Ql{constructor(t){this.level=t}log(t,n,r){if(!this.level.satisfies(t))return;const o=r==null?[n]:[n,r];switch(t){case"debug":{console.debug(...o);return}case"info":{console.info(...o);return}case"warn":{console.warn(...o);return}case"error":{console.error(...o);return}}}}const Pe=Object.freeze({DEBUG:1,INFO:2,WARN:4,ERROR:8});class Lt{constructor(t){this.level=t}satisfies(t){switch(t){case"debug":return!!(this.level&Pe.DEBUG);case"info":return!!(this.level&Pe.INFO);case"warn":return!!(this.level&Pe.WARN);case"error":return!!(this.level&Pe.ERROR)}}static from(t){switch(t){case"debug":return new Lt(Pe.DEBUG|Pe.INFO|Pe.WARN|Pe.ERROR);case"info":return new Lt(Pe.INFO|Pe.WARN|Pe.ERROR);case"warn":return new Lt(Pe.WARN|Pe.ERROR);case"error":return new Lt(Pe.ERROR)}}}const Es=e=>{const t=Lt.from(e??"warn");return new Ql(t)},io=(e,t="")=>Array.isArray(e)?e.map((n,r)=>io(n,t==""?r.toString():`${t}[${r}]`)).reduce((n,r)=>Object.assign(n,r),{}):mr(e)?Object.entries(e).map(([n,r])=>io(r,t===""?n:`${t}[${n}]`)).reduce((n,r)=>Object.assign(n,r),{}):t===""?e:{[t]:e},ao=(e,t="")=>Array.isArray(e)?e.flatMap((n,r)=>ao(n,t==""?r.toString():`${t}[]`)):mr(e)?Object.entries(e).flatMap(([n,r])=>ao(r,t===""?n:`${t}[${n}]`)):[[t,e]],ed=e=>ao(e).filter(([,t])=>t!=null).map(([t,n])=>`${t}=${encodeURIComponent(n)}`).join("&"),td={stringify:ed},so=(e,t)=>Array.isArray(e)?e.map(n=>so(n,t)):mr(e)?Object.fromEntries(Object.entries(e).map(([n,r])=>[t(n),so(r,t)])):e,ki=(e,t)=>so(e,r=>r.includes(":")||r.startsWith("_")?r:t(r));class Ss{serialize(t,n){const r=ki(n,ko);switch(t){case"json":return JSON.stringify(r);case"multipart-form":{const o=new FormData;for(const[i,a]of Object.entries(io(r)))o.append(i,a);return o}case"querystring":return td.stringify(r);default:throw new pt(`Unknown content type ${t} to serialize.`)}}deserialize(t,n){switch(t){case"json":try{return ki(JSON.parse(n),xl)}catch{throw new Ri(`Malformed JSON ${n} returned from the server.`,t,n)}default:throw new Ri(`Unknown content type ${t} returned from the server.`,t,n)}}}const Cp=e=>{const t=new Ss,n=new Zl(e,t),r=Es(e.log),o=new Xl(t,n,r),i=new Wl(o),a=new Ll(o,i);return mn(a,{context:["api"]})};function Ap(e){const t=new Ss,n=new Vl(e,t),r=Es(e.log),o=new kl({constructorParameters:[n.resolvePath("/api/v1/streaming"),n.getProtocols()],implementation:e.implementation,maxAttempts:n.getMaxAttempts()},r),i=new jl(o,t,r);return mn(i)}var No={exports:{}};/*! * Toastify js 1.12.0 * https://github.com/apvarun/toastify-js * @license MIT licensed * * Copyright (C) 2018 Varun A P */var Op=No.exports;(function(e){(function(t,n){e.exports?e.exports=n():t.Toastify=n()})(st,function(t){var n=function(a){return new n.lib.init(a)},r="1.12.0";n.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},n.lib=n.prototype={toastify:r,constructor:n,init:function(a){return a||(a={}),this.options={},this.toastElement=null,this.options.text=a.text||n.defaults.text,this.options.node=a.node||n.defaults.node,this.options.duration=a.duration===0?0:a.duration||n.defaults.duration,this.options.selector=a.selector||n.defaults.selector,this.options.callback=a.callback||n.defaults.callback,this.options.destination=a.destination||n.defaults.destination,this.options.newWindow=a.newWindow||n.defaults.newWindow,this.options.close=a.close||n.defaults.close,this.options.gravity=a.gravity==="bottom"?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=a.positionLeft||n.defaults.positionLeft,this.options.position=a.position||n.defaults.position,this.options.backgroundColor=a.backgroundColor||n.defaults.backgroundColor,this.options.avatar=a.avatar||n.defaults.avatar,this.options.className=a.className||n.defaults.className,this.options.stopOnFocus=a.stopOnFocus===void 0?n.defaults.stopOnFocus:a.stopOnFocus,this.options.onClick=a.onClick||n.defaults.onClick,this.options.offset=a.offset||n.defaults.offset,this.options.escapeMarkup=a.escapeMarkup!==void 0?a.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=a.ariaLive||n.defaults.ariaLive,this.options.style=a.style||n.defaults.style,a.backgroundColor&&(this.options.style.background=a.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var a=document.createElement("div");a.className="toastify on "+this.options.className,this.options.position?a.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(a.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):a.className+=" toastify-right",a.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var u in this.options.style)a.style[u]=this.options.style[u];if(this.options.ariaLive&&a.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)a.appendChild(this.options.node);else if(this.options.escapeMarkup?a.innerText=this.options.text:a.innerHTML=this.options.text,this.options.avatar!==""){var s=document.createElement("img");s.src=this.options.avatar,s.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?a.appendChild(s):a.insertAdjacentElement("afterbegin",s)}if(this.options.close===!0){var l=document.createElement("button");l.type="button",l.setAttribute("aria-label","Close"),l.className="toast-close",l.innerHTML="✖",l.addEventListener("click",(function(_){_.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var d=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&d>360?a.insertAdjacentElement("afterbegin",l):a.appendChild(l)}if(this.options.stopOnFocus&&this.options.duration>0){var c=this;a.addEventListener("mouseover",function(_){window.clearTimeout(a.timeOutValue)}),a.addEventListener("mouseleave",function(){a.timeOutValue=window.setTimeout(function(){c.removeElement(a)},c.options.duration)})}if(typeof this.options.destination<"u"&&a.addEventListener("click",(function(_){_.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}).bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&a.addEventListener("click",(function(_){_.stopPropagation(),this.options.onClick()}).bind(this)),typeof this.options.offset=="object"){var f=o("x",this.options),h=o("y",this.options),p=this.options.position=="left"?f:"-"+f,m=this.options.gravity=="toastify-top"?h:"-"+h;a.style.transform="translate("+p+","+m+")"}return a},showToast:function(){this.toastElement=this.buildToast();var a;if(typeof this.options.selector=="string"?a=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?a=this.options.selector:a=document.body,!a)throw"Root element is not defined";var u=n.defaults.oldestFirst?a.firstChild:a.lastChild;return a.insertBefore(this.toastElement,u),n.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout((function(){this.removeElement(this.toastElement)}).bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(a){a.className=a.className.replace(" on",""),window.setTimeout((function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),a.parentNode&&a.parentNode.removeChild(a),this.options.callback.call(a),n.reposition()}).bind(this),400)}},n.reposition=function(){for(var a={top:15,bottom:15},u={top:15,bottom:15},s={top:15,bottom:15},l=document.getElementsByClassName("toastify"),d,c=0;c0?window.innerWidth:screen.width;p<=360?(l[c].style[d]=s[d]+"px",s[d]+=f+h):i(l[c],"toastify-left")===!0?(l[c].style[d]=a[d]+"px",a[d]+=f+h):(l[c].style[d]=u[d]+"px",u[d]+=f+h)}return this};function o(a,u){return u.offset[a]?isNaN(u.offset[a])?u.offset[a]:u.offset[a]+"px":"0px"}function i(a,u){return!a||typeof u!="string"?!1:!!(a.className&&a.className.trim().split(/\s+/gi).indexOf(u)>-1)}return n.lib.init.prototype=n.lib,n})})(No);var nd=No.exports;const Mp=Qe(nd);var rd=Object.getOwnPropertyNames,od=Object.getOwnPropertySymbols,id=Object.prototype.hasOwnProperty;function Ni(e,t){return function(r,o,i){return e(r,o,i)&&t(r,o,i)}}function On(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);var i=o.cache,a=i.get(n),u=i.get(r);if(a&&u)return a===r&&u===n;i.set(n,r),i.set(r,n);var s=e(n,r,o);return i.delete(n),i.delete(r),s}}function $i(e){return rd(e).concat(od(e))}var Ts=Object.hasOwn||function(e,t){return id.call(e,t)};function Kt(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var xs="_owner",ji=Object.getOwnPropertyDescriptor,zi=Object.keys;function ad(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function sd(e,t){return Kt(e.getTime(),t.getTime())}function Fi(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.entries(),i=0,a,u;(a=o.next())&&!a.done;){for(var s=t.entries(),l=!1,d=0;(u=s.next())&&!u.done;){var c=a.value,f=c[0],h=c[1],p=u.value,m=p[0],_=p[1];!l&&!r[d]&&(l=n.equals(f,m,i,d,e,t,n)&&n.equals(h,_,f,m,e,t,n))&&(r[d]=!0),d++}if(!l)return!1;i++}return!0}function ud(e,t,n){var r=zi(e),o=r.length;if(zi(t).length!==o)return!1;for(var i;o-- >0;)if(i=r[o],i===xs&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Ts(t,i)||!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function Qt(e,t,n){var r=$i(e),o=r.length;if($i(t).length!==o)return!1;for(var i,a,u;o-- >0;)if(i=r[o],i===xs&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Ts(t,i)||!n.equals(e[i],t[i],i,i,e,t,n)||(a=ji(e,i),u=ji(t,i),(a||u)&&(!a||!u||a.configurable!==u.configurable||a.enumerable!==u.enumerable||a.writable!==u.writable)))return!1;return!0}function cd(e,t){return Kt(e.valueOf(),t.valueOf())}function ld(e,t){return e.source===t.source&&e.flags===t.flags}function Hi(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.values(),i,a;(i=o.next())&&!i.done;){for(var u=t.values(),s=!1,l=0;(a=u.next())&&!a.done;)!s&&!r[l]&&(s=n.equals(i.value,a.value,i.value,a.value,e,t,n))&&(r[l]=!0),l++;if(!s)return!1}return!0}function dd(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var fd="[object Arguments]",hd="[object Boolean]",pd="[object Date]",md="[object Map]",_d="[object Number]",vd="[object Object]",yd="[object RegExp]",gd="[object Set]",wd="[object String]",bd=Array.isArray,Bi=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Ui=Object.assign,Ed=Object.prototype.toString.call.bind(Object.prototype.toString);function Sd(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,u=e.areSetsEqual,s=e.areTypedArraysEqual;return function(d,c,f){if(d===c)return!0;if(d==null||c==null||typeof d!="object"||typeof c!="object")return d!==d&&c!==c;var h=d.constructor;if(h!==c.constructor)return!1;if(h===Object)return o(d,c,f);if(bd(d))return t(d,c,f);if(Bi!=null&&Bi(d))return s(d,c,f);if(h===Date)return n(d,c,f);if(h===RegExp)return a(d,c,f);if(h===Map)return r(d,c,f);if(h===Set)return u(d,c,f);var p=Ed(d);return p===pd?n(d,c,f):p===yd?a(d,c,f):p===md?r(d,c,f):p===gd?u(d,c,f):p===vd?typeof d.then!="function"&&typeof c.then!="function"&&o(d,c,f):p===fd?o(d,c,f):p===hd||p===_d||p===wd?i(d,c,f):!1}}function Td(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?Qt:ad,areDatesEqual:sd,areMapsEqual:r?Ni(Fi,Qt):Fi,areObjectsEqual:r?Qt:ud,arePrimitiveWrappersEqual:cd,areRegExpsEqual:ld,areSetsEqual:r?Ni(Hi,Qt):Hi,areTypedArraysEqual:r?Qt:dd};if(n&&(o=Ui({},o,n(o))),t){var i=On(o.areArraysEqual),a=On(o.areMapsEqual),u=On(o.areObjectsEqual),s=On(o.areSetsEqual);o=Ui({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:s})}return o}function xd(e){return function(t,n,r,o,i,a,u){return e(t,n,u)}}function Cd(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(s,l){var d=r(),c=d.cache,f=c===void 0?t?new WeakMap:void 0:c,h=d.meta;return n(s,l,{cache:f,equals:o,meta:h,strict:i})};if(t)return function(s,l){return n(s,l,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(s,l){return n(s,l,a)}}var Pp=ut(),Rp=ut({strict:!0}),Lp=ut({circular:!0}),Dp=ut({circular:!0,strict:!0}),Ip=ut({createInternalComparator:function(){return Kt}}),kp=ut({strict:!0,createInternalComparator:function(){return Kt}}),Np=ut({circular:!0,createInternalComparator:function(){return Kt}}),$p=ut({circular:!0,createInternalComparator:function(){return Kt},strict:!0});function ut(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=i===void 0?!1:i,u=Td(e),s=Sd(u),l=r?r(s):xd(s);return Cd({circular:n,comparator:s,createState:o,equals:l,strict:a})}function jp(e,t,n,r){let o=e[t];return us(e,()=>{const i=e[t];Object.is(o,i)||n(o=i)},r)}const zp=Symbol();var Vn={exports:{}},nn={exports:{}},Fp=nn.exports,qi;function Ad(){return qi||(qi=1,function(e,t){(function(n,r){e.exports=r()})(st,function(){"use strict";var n={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},r=Array.prototype.slice;function o(c){var f=c.length;return f?f===1?[c[0]]:f===2?[c[0],c[1]]:f===3?[c[0],c[1],c[2]]:r.call(c,0):[]}function i(c){var f={};for(var h in c)n[h]||(f[h]=c[h]);return f}function a(c){return typeof c=="function"&&c.isMemoized}function u(c,f){return c===f||c!==c&&f!==f}function s(c,f){var h={};for(var p in c)h[p]=c[p];for(var p in f)h[p]=f[p];return h}var l=function(){function c(f){this.keys=[],this.values=[],this.options=f;var h=typeof f.isMatchingKey=="function";h?this.getKeyIndex=this._getKeyIndexFromMatchingKey:f.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey=typeof f.transformKey=="function",this.shouldCloneArguments=this.canTransformKey||h,this.shouldUpdateOnAdd=typeof f.onCacheAdd=="function",this.shouldUpdateOnChange=typeof f.onCacheChange=="function",this.shouldUpdateOnHit=typeof f.onCacheHit=="function"}return Object.defineProperty(c.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"snapshot",{get:function(){return{keys:o(this.keys),size:this.size,values:o(this.values)}},enumerable:!1,configurable:!0}),c.prototype._getKeyIndexFromMatchingKey=function(f){var h=this.options,p=h.isMatchingKey,m=h.maxSize,_=this.keys,v=_.length;if(!v)return-1;if(p(_[0],f))return 0;if(m>1){for(var y=1;y1){for(var T=0;T1){for(var v=0;v=T&&(m.length=_.length=T)},c.prototype.updateAsyncCache=function(f){var h=this,p=this.options,m=p.onCacheChange,_=p.onCacheHit,v=this.keys[0],y=this.values[0];this.values[0]=y.then(function(T){return h.shouldUpdateOnHit&&_(h,h.options,f),h.shouldUpdateOnChange&&m(h,h.options,f),T},function(T){var M=h.getKeyIndex(v);throw M!==-1&&(h.keys.splice(M,1),h.values.splice(M,1)),T})},c}();function d(c,f){if(f===void 0&&(f={}),a(c))return d(c.fn,s(c.options,f));if(typeof c!="function")throw new TypeError("You must pass a function to `memoize`.");var h=f.isEqual,p=h===void 0?u:h,m=f.isMatchingKey,_=f.isPromise,v=_===void 0?!1:_,y=f.maxSize,T=y===void 0?1:y,M=f.onCacheAdd,x=f.onCacheChange,b=f.onCacheHit,C=f.transformKey,B=s({isEqual:p,isMatchingKey:m,isPromise:v,maxSize:T,onCacheAdd:M,onCacheChange:x,onCacheHit:b,transformKey:C},i(f)),S=new l(B),L=S.keys,w=S.values,I=S.canTransformKey,q=S.shouldCloneArguments,D=S.shouldUpdateOnAdd,A=S.shouldUpdateOnChange,O=S.shouldUpdateOnHit,P=function(){var R=q?o(arguments):arguments;I&&(R=C(R));var U=L.length?S.getKeyIndex(R):-1;if(U!==-1)O&&b(S,B,P),U&&(S.orderByLru(L[U],w[U],U),A&&x(S,B,P));else{var F=c.apply(this,arguments),K=q?R:o(arguments);S.orderByLru(K,F,L.length),v&&S.updateAsyncCache(P),D&&M(S,B,P),A&&x(S,B,P)}return w[0]};return P.cache=S,P.fn=c,P.isMemoized=!0,P.options=B,P}return d})}(nn,nn.exports)),nn.exports}var rn={exports:{}},Hp=rn.exports,Wi;function Od(){return Wi||(Wi=1,function(e,t){(function(n,r){r(t)})(st,function(n){"use strict";var r=typeof WeakMap=="function",o=Object.keys;function i(w,I){return w===I||w!==w&&I!==I}function a(w){return w.constructor===Object||w.constructor==null}function u(w){return!!w&&typeof w.then=="function"}function s(w){return!!(w&&w.$$typeof)}function l(){var w=[];return{delete:function(I){for(var q=0;q0;)if(!q(w[A],I[A],A,A,w,I,D))return!1;return!0}function h(w,I,q,D){var A=w.size===I.size;if(A&&w.size){var O={},P=0;w.forEach(function(R,U){if(A){var F=!1,K=0;I.forEach(function(Y,Q){!F&&!O[K]&&(F=q(U,Q,P,K,w,I,D)&&q(R,Y,U,Q,w,I,D),F&&(O[K]=!0)),K++}),P++,A=F}})}return A}var p="_owner",m=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function _(w,I,q,D){var A=o(w),O=A.length;if(o(I).length!==O)return!1;if(O)for(var P=void 0;O-- >0;){if(P=A[O],P===p){var R=s(w),U=s(I);if((R||U)&&R!==U)return!1}if(!m(I,P)||!q(w[P],I[P],P,P,w,I,D))return!1}return!0}var v=function(){return/foo/g.flags==="g"?function(I,q){return I.source===q.source&&I.flags===q.flags}:function(I,q){return I.source===q.source&&I.global===q.global&&I.ignoreCase===q.ignoreCase&&I.multiline===q.multiline&&I.unicode===q.unicode&&I.sticky===q.sticky&&I.lastIndex===q.lastIndex}}();function y(w,I,q,D){var A=w.size===I.size;if(A&&w.size){var O={};w.forEach(function(P,R){if(A){var U=!1,F=0;I.forEach(function(K,Y){!U&&!O[F]&&(U=q(P,K,R,Y,w,I,D),U&&(O[F]=!0)),F++}),A=U}})}return A}var T=typeof Map=="function",M=typeof Set=="function",x=Object.prototype.valueOf;function b(w){var I=typeof w=="function"?w(q):function(D,A,O,P,R,U,F){return q(D,A,F)};function q(D,A,O){if(D===A)return!0;if(D&&A&&typeof D=="object"&&typeof A=="object"){if(a(D)&&a(A))return _(D,A,I,O);var P=Array.isArray(D),R=Array.isArray(A);return P||R?P===R&&f(D,A,I,O):(P=D instanceof Date,R=A instanceof Date,P||R?P===R&&i(D.getTime(),A.getTime()):(P=D instanceof RegExp,R=A instanceof RegExp,P||R?P===R&&v(D,A):u(D)||u(A)?D===A:T&&(P=D instanceof Map,R=A instanceof Map,P||R)?P===R&&h(D,A,I,O):M&&(P=D instanceof Set,R=A instanceof Set,P||R)?P===R&&y(D,A,I,O):D.valueOf!==x||A.valueOf!==x?i(D.valueOf(),A.valueOf()):_(D,A,I,O)))}return D!==D&&A!==A}return q}var C=b(),B=b(function(){return i}),S=b(c()),L=b(c(i));n.circularDeepEqual=S,n.circularShallowEqual=L,n.createCustomEqual=b,n.deepEqual=C,n.sameValueZeroEqual=i,n.shallowEqual=B,Object.defineProperty(n,"__esModule",{value:!0})})}(rn,rn.exports)),rn.exports}var Bp=Vn.exports;(function(e,t){(function(n,r){e.exports=r(Ad(),Od())})(st,function(n,r){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(g){for(var E=1;E=0)&&(j[z]=g[z]);return j}var a={isDeepEqual:!1,isPromise:!1,isReact:!1,isSerialized:!1,isShallowEqual:!1,matchesArg:void 0,matchesKey:void 0,maxAge:void 0,maxArgs:void 0,maxSize:1,onExpire:void 0,profileName:void 0,serializer:void 0,updateCacheForKey:void 0,transformArgs:void 0,updateExpire:!1};function u(){for(var g=arguments.length,E=new Array(g),j=0;jMe&&(ee.keys.length=Me,ee.values.length=Me),ee.keys.unshift(tt),ee.values.unshift(Z),de.isPromise&&ee.updateAsyncCache(N),fe&&fe(ee,de,N),Ne&&Ne(ee,de,N)}else{var ct=ee.keys[Be];ee.values[Be]=Z,Be>0&&ee.orderByLru(ct,Z,Be),de.isPromise&&ee.updateAsyncCache(N),typeof Ne=="function"&&Ne(ee,de,N)}},N.values=function(){return N.cacheSnapshot.values}}function O(g,E){var j=E.expirations,k=E.options,z=E.originalFunction,N=g.options;Object.defineProperties(g,{_microMemoizeOptions:{configurable:!0,get:function(){return N}},cacheSnapshot:{configurable:!0,get:function(){var J=g.cache;return{keys:J.keys.slice(0),size:J.size,values:J.values.slice(0)}}},expirations:{configurable:!0,get:function(){return j}},expirationsSnapshot:{configurable:!0,get:function(){return j.slice(0)}},isMoized:{configurable:!0,get:function(){return!0}},options:{configurable:!0,get:function(){return k}},originalFunction:{configurable:!0,get:function(){return z}}});var $=g;D(z,$)}function P(g,E){return A(g,E),O(g,E),g}var R=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function U(g,E,j){var k=g(o({maxArgs:2,isShallowEqual:!0},j,{isReact:!1}));E.displayName||(E.displayName=E.name||"Component");function z(N,$,Z){this.props=N,this.context=$,this.updater=Z,this.MoizedComponent=k(E)}return z.prototype.isReactComponent={},z.prototype.render=function(){return{$$typeof:R,type:this.MoizedComponent,props:this.props,ref:null,key:null,_owner:null}},D(E,z,["contextType","contextTypes"]),z.displayName="Moized("+(E.displayName||E.name||"Component")+")",h(z,E.name,j.profileName),z}function F(g){return function(E){if(g>=E.length)return E;if(g===0)return[];if(g===1)return[E[0]];if(g===2)return[E[0],E[1]];if(g===3)return[E[0],E[1],E[2]];for(var j=[],k=0;k=0?k.maxAge:a.maxAge,maxArgs:typeof k.maxArgs=="number"&&k.maxArgs>=0?k.maxArgs:a.maxArgs,maxSize:typeof k.maxSize=="number"&&k.maxSize>=0?k.maxSize:a.maxSize,profileName:k.profileName||S(E)}),Z=[];$.matchesArg,$.isDeepEqual;var J=$.isPromise;$.isReact,$.isSerialized,$.isShallowEqual,$.matchesKey,$.maxAge,$.maxArgs;var ee=$.maxSize,de=$.onCacheAdd,fe=$.onCacheChange,Ne=$.onCacheHit;$.onExpire,$.profileName,$.serializer;var He=$.updateCacheForKey;$.transformArgs,$.updateExpire;var tt=i($,ke),Be=Fe($),Me=Ae($),ct=y(Z,$,Be,Me),Sn=I($),Zt=le($),Vt=o({},tt,{isEqual:Be,isMatchingKey:Me,isPromise:J,maxSize:ee,onCacheAdd:me(u(de,ct.onCacheAdd,Sn.onCacheAdd)),onCacheChange:me(fe),onCacheHit:me(u(Ne,ct.onCacheHit,Sn.onCacheHit)),transformKey:Zt}),wr=n(E,Vt),bt=P(wr,{expirations:Z,options:$,originalFunction:E});return He&&(bt=Oe(bt)),h(bt,E.name,k.profileName),bt};H.clearStats=x,H.collectStats=b,H.compose=function(){return s.apply(void 0,arguments)||H},H.deep=H({isDeepEqual:!0}),H.getStats=w,H.infinite=H({maxSize:1/0}),H.isCollectingStats=function(){return T.isCollectingStats},H.isMoized=function(E){return typeof E=="function"&&!!E.isMoized},H.matchesArg=function(g){return H({matchesArg:g})},H.matchesKey=function(g){return H({matchesKey:g})};function ge(g,E){if(E===!0)return H({maxAge:g,updateExpire:E});if(typeof E=="object"){var j=E.onExpire,k=E.updateExpire;return H({maxAge:g,onExpire:j,updateExpire:k})}return H(typeof E=="function"?{maxAge:g,onExpire:E,updateExpire:!0}:{maxAge:g})}return H.maxAge=ge,H.maxArgs=function(g){return H({maxArgs:g})},H.maxSize=function(g){return H({maxSize:g})},H.profile=function(g){return H({profileName:g})},H.promise=H({isPromise:!0,updateExpire:!0}),H.react=H({isReact:!0}),H.serialize=H({isSerialized:!0}),H.serializeWith=function(g){return H({isSerialized:!0,serializer:g})},H.shallow=H({isShallowEqual:!0}),H.transformArgs=function(g){return H({transformArgs:g})},H.updateCacheForKey=function(g){return H({updateCacheForKey:g})},Object.defineProperty(H,"default",{configurable:!1,enumerable:!1,value:H,writable:!1}),H})})(Vn,Vn.exports);var Md=Vn.exports;const Up=Qe(Md);let Pd=class extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}};function Wp({limit:e,interval:t,strict:n,onDelay:r}){if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const o=new Map;let i=0,a=0;function u(){const c=Date.now();return c-i>t?(a=1,i=c,0):(a0&&c-s.at(-1)>t&&(s.length=0),s.length{const f=function(...h){if(!f.isEnabled)return(async()=>c.apply(this,h))();let p;return new Promise((m,_)=>{const v=()=>{m(c.apply(this,h)),o.delete(p)},y=d();y>0?(p=setTimeout(v,y),o.set(p,_),r==null||r()):v()})};return f.abort=()=>{for(const h of o.keys())clearTimeout(h),o.get(h)(new Pd);o.clear(),s.splice(0,s.length)},f.isEnabled=!0,Object.defineProperty(f,"queueSize",{get(){return o.size}}),f}}const Cs=new Set,Le=new WeakMap,Ft=new WeakMap,mt=new WeakMap,uo=new WeakMap,Rd=new WeakMap,Ht=new WeakMap,Jn=new WeakMap,on=new WeakSet;let it,$o=0,jo=0;const Ze="__aa_tgt",_n="__aa_del",Xn="__aa_new",Ld=e=>{const t=$d(e);t&&t.forEach(n=>jd(n))},Dd=e=>{e.forEach(t=>{t.target===it&&kd(),Le.has(t.target)&&yt(t.target)})};function Id(e){const t=uo.get(e);t==null||t.disconnect();let n=Le.get(e),r=0;const o=5;n||(n=Bt(e),Le.set(e,n));const{offsetWidth:i,offsetHeight:a}=it,s=[n.top-o,i-(n.left+o+n.width),a-(n.top+o+n.height),n.left-o].map(d=>`${-1*Math.floor(d)}px`).join(" "),l=new IntersectionObserver(()=>{++r>1&&yt(e)},{root:it,threshold:1,rootMargin:s});l.observe(e),uo.set(e,l)}function yt(e){clearTimeout(Jn.get(e));const t=_r(e),n=vn(t)?500:t.duration;Jn.set(e,setTimeout(async()=>{const r=mt.get(e);try{await(r==null?void 0:r.finished),Le.set(e,Bt(e)),Id(e)}catch{}},n))}function kd(){clearTimeout(Jn.get(it)),Jn.set(it,setTimeout(()=>{Cs.forEach(e=>Ps(e,t=>As(()=>yt(t))))},100))}function Nd(e){setTimeout(()=>{Rd.set(e,setInterval(()=>As(yt.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function As(e){typeof requestIdleCallback=="function"?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let co,Dt;typeof window<"u"&&(it=document.documentElement,co=new MutationObserver(Ld),Dt=new ResizeObserver(Dd),window.addEventListener("scroll",()=>{jo=window.scrollY,$o=window.scrollX}),Dt.observe(it));function $d(e){return e.reduce((r,o)=>[...r,...Array.from(o.addedNodes),...Array.from(o.removedNodes)],[]).every(r=>r.nodeName==="#comment")?!1:e.reduce((r,o)=>{if(r===!1)return!1;if(o.target instanceof Element){if(Dr(o.target),!r.has(o.target)){r.add(o.target);for(let i=0;in(e,Ht.has(e)));for(let n=0;no(r,Ht.has(r)))}}function Fo(e){return Array.isArray(e)?e:[e]}function vn(e){return typeof e=="function"}function Fd(e){const t=Le.get(e),n=Bt(e);if(!zo(e))return Le.set(e,n);let r;if(!t)return;const o=_r(e);if(typeof o!="function"){const i=t.left-n.left,a=t.top-n.top,[u,s,l,d]=Os(e,t,n),c={transform:`translate(${i}px, ${a}px)`},f={transform:"translate(0, 0)"};u!==s&&(c.width=`${u}px`,f.width=`${s}px`),l!==d&&(c.height=`${l}px`,f.height=`${d}px`),r=e.animate([c,f],{duration:o.duration,easing:o.easing})}else{const[i]=Fo(o(e,"remain",t,n));r=new Animation(i),r.play()}mt.set(e,r),Le.set(e,n),r.addEventListener("finish",yt.bind(null,e))}function Ki(e){Xn in e&&delete e[Xn];const t=Bt(e);Le.set(e,t);const n=_r(e);if(!zo(e))return;let r;if(typeof n!="function")r=e.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:n.duration*1.5,easing:"ease-in"});else{const[o]=Fo(n(e,"add",t));r=new Animation(o),r.play()}mt.set(e,r),r.addEventListener("finish",yt.bind(null,e))}function Gi(e,t){var n;e.remove(),Le.delete(e),Ft.delete(e),mt.delete(e),(n=uo.get(e))===null||n===void 0||n.disconnect(),setTimeout(()=>{if(_n in e&&delete e[_n],Object.defineProperty(e,Xn,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(const r in t)e.style[r]=""},0)}function Hd(e){var t;if(!Ft.has(e)||!Le.has(e))return;const[n,r]=Ft.get(e);Object.defineProperty(e,_n,{value:!0,configurable:!0});const o=window.scrollX,i=window.scrollY;if(r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):n&&n.parentNode?n.parentNode.appendChild(e):(t=Ms(e))===null||t===void 0||t.appendChild(e),!zo(e))return Gi(e);const[a,u,s,l]=Ud(e),d=_r(e),c=Le.get(e);(o!==$o||i!==jo)&&Bd(e,o,i,d);let f,h={position:"absolute",top:`${a}px`,left:`${u}px`,width:`${s}px`,height:`${l}px`,margin:"0",pointerEvents:"none",transformOrigin:"center",zIndex:"100"};if(!vn(d))Object.assign(e.style,h),f=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:d.duration,easing:"ease-out"});else{const[p,m]=Fo(d(e,"remove",c));(m==null?void 0:m.styleReset)!==!1&&(h=(m==null?void 0:m.styleReset)||h,Object.assign(e.style,h)),f=new Animation(p),f.play()}mt.set(e,f),f.addEventListener("finish",Gi.bind(null,e,h))}function Bd(e,t,n,r){const o=$o-t,i=jo-n,a=document.documentElement.style.scrollBehavior;if(getComputedStyle(it).scrollBehavior==="smooth"&&(document.documentElement.style.scrollBehavior="auto"),window.scrollTo(window.scrollX+o,window.scrollY+i),!e.parentElement)return;const s=e.parentElement;let l=s.clientHeight,d=s.clientWidth;const c=performance.now();function f(){requestAnimationFrame(()=>{if(!vn(r)){const h=l-s.clientHeight,p=d-s.clientWidth;c+r.duration>performance.now()?(window.scrollTo({left:window.scrollX-p,top:window.scrollY-h}),l=s.clientHeight,d=s.clientWidth,f()):document.documentElement.style.scrollBehavior=a}})}f()}function Ud(e){const t=Le.get(e),[n,,r]=Os(e,t,Bt(e));let o=e.parentElement;for(;o&&(getComputedStyle(o).position==="static"||o instanceof HTMLBodyElement);)o=o.parentElement;o||(o=document.body);const i=getComputedStyle(o),a=Le.get(o)||Bt(o),u=Math.round(t.top-a.top)-qe(i.borderTopWidth),s=Math.round(t.left-a.left)-qe(i.borderLeftWidth);return[u,s,n,r]}function qd(e,t={}){return co&&Dt&&(window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!vn(t)&&!t.disrespectUserMotionPreference||(on.add(e),getComputedStyle(e).position==="static"&&Object.assign(e.style,{position:"relative"}),Ps(e,yt,Nd,o=>Dt==null?void 0:Dt.observe(o)),vn(t)?Ht.set(e,t):Ht.set(e,{duration:250,easing:"ease-in-out",...t}),co.observe(e,{childList:!0}),Cs.add(e))),Object.freeze({parent:e,enable:()=>{on.add(e)},disable:()=>{on.delete(e)},isEnabled:()=>on.has(e)})}function Kp(e){const t=W(null),[n,r]=_e(),o=i=>{n&&(i?n.enable():n.disable())};return ie(()=>{t.current instanceof HTMLElement&&r(qd(t.current,e||{}))},[]),[t,o]}var Ho={exports:{}},Wd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Kd=Wd;var Gd=Kd;function Rs(){}function Ls(){}Ls.resetWarningCache=Rs;var Yd=function(){function e(r,o,i,a,u,s){if(s!==Gd){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ls,resetWarningCache:Rs};return n.PropTypes=n,n};var Gp=Ho.exports;if(!1)var Yp,Zp;else Ho.exports=Yd();var G=Ho.exports;const Bo=e=>!!e&&e[0]==="o",lo=So||(e=>e());const At=(e,t,n=1e-4)=>Math.abs(e-t)e===!0||!!(e&&e[t]),Ce=(e,t)=>typeof e=="function"?e(t):e,Zd="_szhsinMenu",Vd=e=>e[Zd];const Gt=(e,t)=>(t&&Object.keys(t).forEach(n=>{const r=e[n],o=t[n];typeof o=="function"&&r?e[n]=(...i)=>{o(...i),r(...i)}:e[n]=o}),e),Jd=e=>{if(typeof e!="string")return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),n=isNaN(t[0])?0:t[0],r=isNaN(t[1])?n:t[1];return{top:n,right:r,bottom:isNaN(t[2])?n:t[2],left:isNaN(t[3])?r:t[3]}},Ir=e=>{for(;e;){if(e=e.parentNode,!e||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:n,overflowY:r}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+r+n))return e}};function vr(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function Yi(e,t){for(let n=0;n({[e?`${e}ClassName`:"className"]:G.oneOfType([G.string,G.func])}),Qd={className:G.string,...Xd("menu"),arrowProps:G.object,focusProps:G.object,menuStyle:G.object,arrow:G.bool,setDownOverflow:G.bool,gap:G.number,shift:G.number,align:G.oneOf(["start","center","end"]),direction:G.oneOf(["left","right","top","bottom"]),position:G.oneOf(["auto","anchor","initial"]),overflow:G.oneOf(["auto","visible","hidden"])},Vp={...Qd,containerProps:G.object,initialMounted:G.bool,unmountOnClose:G.bool,transition:G.oneOfType([G.bool,G.exact({open:G.bool,close:G.bool,item:G.bool})]),transitionTimeout:G.number,boundingBoxRef:G.object,boundingBoxPadding:G.string,reposition:G.oneOf(["auto","initial"]),repositionFlag:G.oneOfType([G.string,G.number]),viewScroll:G.oneOf(["auto","close","initial"]),submenuOpenDelay:G.number,submenuCloseDelay:G.number,portal:G.oneOfType([G.bool,G.exact({target:G.object,stablePosition:G.bool})]),theming:G.string,onItemClick:G.func},Jp={instanceRef:G.oneOfType([G.object,G.func]),onMenuChange:G.func},Ke=({block:e,element:t,modifiers:n,className:r})=>ae(()=>{const o=t?`${e}__${t}`:e;let i=o;n&&Object.keys(n).forEach(u=>{const s=n[u];s&&(i+=` ${o}--${s===!0?u:`${u}-${s}`}`)});let a=typeof r=="function"?r(n):r;return typeof a=="string"&&(a=a.trim(),a&&(i+=` ${a}`)),i},[e,t,n,r]),ef="szh-menu-container",We="szh-menu";const tf="arrow",Uo="item",nf="divider",rf="header",of="group",af="submenu";const Ds=Ee(),qo=Ee({}),Qn=Ee({}),Wo=Ee({}),sf=Ee({}),yr=Ee({}),be=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),pe=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),gn=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),kt=Object.freeze({FIRST:"first",LAST:"last"}),uf=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),kr="absolute",Ko="presentation",gr="menuitem",Zi={"aria-hidden":!0,role:gr};const cf=({className:e,containerRef:t,containerProps:n,children:r,isOpen:o,theming:i,transition:a,onClose:u})=>{const s=yn(a,"item");return se("div",{...Gt({onKeyDown:({key:c})=>{switch(c){case be.ESC:Ce(u,{key:c,reason:gn.CANCEL});break}},onBlur:c=>{o&&!c.currentTarget.contains(c.relatedTarget)&&Ce(u,{reason:gn.BLUR})}},n),className:Ke({block:ef,modifiers:ae(()=>({theme:i,itemTransition:s}),[i,s]),className:e}),style:{position:"absolute",...n==null?void 0:n.style},ref:t,children:r})},lf=()=>{let e,t=0;return{toggle:n=>{n?t++:t--,t=Math.max(t,0)},on:(n,r,o)=>{t?e||(e=setTimeout(()=>{e=0,r()},n)):o==null||o()},off:()=>{e&&(clearTimeout(e),e=0)}}},df=(e,t)=>{const[n,r]=_e(),i=W({items:[],hoverIndex:-1,sorted:!1}).current,a=ve((s,l)=>{const{items:d}=i;if(!s)i.items=[];else if(l)d.push(s);else{const c=d.indexOf(s);c>-1&&(d.splice(c,1),s.contains(document.activeElement)&&(t.current.focus(),r()))}i.hoverIndex=-1,i.sorted=!1},[i,t]),u=ve((s,l,d)=>{const{items:c,hoverIndex:f}=i,h=()=>{if(i.sorted)return;const _=e.current.querySelectorAll(".szh-menu__item");c.sort((v,y)=>Yi(_,v)-Yi(_,y)),i.sorted=!0};let p=-1,m;switch(s){case pe.RESET:break;case pe.SET:m=l;break;case pe.UNSET:m=_=>_===l?void 0:_;break;case pe.FIRST:h(),p=0,m=c[p];break;case pe.LAST:h(),p=c.length-1,m=c[p];break;case pe.SET_INDEX:h(),p=d,m=c[p];break;case pe.INCREASE:h(),p=f,p<0&&(p=c.indexOf(l)),p++,p>=c.length&&(p=0),m=c[p];break;case pe.DECREASE:h(),p=f,p<0&&(p=c.indexOf(l)),p--,p<0&&(p=c.length-1),m=c[p];break;default:}m||(p=-1),r(m),i.hoverIndex=p},[e,i]);return{hoverItem:n,dispatch:u,updateItems:a}},ff=(e,t,n,r)=>{const o=t.current.getBoundingClientRect(),i=e.current.getBoundingClientRect(),a=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),u=Jd(r),s=p=>p+i.left-a.left-u.left,l=p=>p+i.left+o.width-a.right+u.right,d=p=>p+i.top-a.top-u.top,c=p=>p+i.top+o.height-a.bottom+u.bottom;return{menuRect:o,containerRect:i,getLeftOverflow:s,getRightOverflow:l,getTopOverflow:d,getBottomOverflow:c,confineHorizontally:p=>{let m=s(p);if(m<0)p-=m;else{const _=l(p);_>0&&(p-=_,m=s(p),m<0&&(p-=m))}return p},confineVertically:p=>{let m=d(p);if(m<0)p-=m;else{const _=c(p);_>0&&(p-=_,m=d(p),m<0&&(p-=m))}return p}}},hf=({arrowRef:e,menuY:t,anchorRect:n,containerRect:r,menuRect:o})=>{let i=n.top-r.top-t+n.height/2;const a=e.current.offsetHeight*1.25;return i=Math.max(a,i),i=Math.min(i,o.height-a),i},pf=({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:r,placeLeftX:o,placeRightX:i,getLeftOverflow:a,getRightOverflow:u,confineHorizontally:s,confineVertically:l,arrowRef:d,arrow:c,direction:f,position:h})=>{let p=f,m=r;h!=="initial"&&(m=l(m),h==="anchor"&&(m=Math.min(m,e.bottom-t.top),m=Math.max(m,e.top-t.top-n.height)));let _,v,y;return p==="left"?(_=o,h!=="initial"&&(v=a(_),v<0&&(y=u(i),(y<=0||-v>y)&&(_=i,p="right")))):(_=i,h!=="initial"&&(y=u(_),y>0&&(v=a(o),(v>=0||-v{let i=n.left-r.left-t+n.width/2;const a=e.current.offsetWidth*1.25;return i=Math.max(a,i),i=Math.min(i,o.width-a),i},_f=({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:r,placeTopY:o,placeBottomY:i,getTopOverflow:a,getBottomOverflow:u,confineHorizontally:s,confineVertically:l,arrowRef:d,arrow:c,direction:f,position:h})=>{let p=f==="top"?"top":"bottom",m=r;h!=="initial"&&(m=s(m),h==="anchor"&&(m=Math.min(m,e.right-t.left),m=Math.max(m,e.left-t.left-n.width)));let _,v,y;return p==="top"?(_=o,h!=="initial"&&(v=a(_),v<0&&(y=u(i),(y<=0||-v>y)&&(_=i,p="bottom")))):(_=i,h!=="initial"&&(y=u(_),y>0&&(v=a(o),(v>=0||-v{const{menuRect:l,containerRect:d}=s,c=n==="left"||n==="right";let f=c?r:o,h=c?o:r;if(e){const x=u.current;c?f+=x.offsetWidth:h+=x.offsetHeight}const p=a.left-d.left-l.width-f,m=a.right-d.left+f,_=a.top-d.top-l.height-h,v=a.bottom-d.top+h;let y,T;t==="end"?(y=a.right-d.left-l.width,T=a.bottom-d.top-l.height):t==="center"?(y=a.left-d.left-(l.width-a.width)/2,T=a.top-d.top-(l.height-a.height)/2):(y=a.left-d.left,T=a.top-d.top),y+=f,T+=h;const M={...s,anchorRect:a,placeLeftX:p,placeRightX:m,placeLeftorRightY:T,placeTopY:_,placeBottomY:v,placeToporBottomX:y,arrowRef:u,arrow:e,direction:n,position:i};switch(n){case"left":case"right":return pf(M);case"top":case"bottom":default:return _f(M)}},Nt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Xe:ie;function Vi(e,t){typeof e=="function"?e(t):e.current=t}const Yt=(e,t)=>ae(()=>e?t?n=>{Vi(e,n),Vi(t,n)}:e:t,[e,t]),Ji=-9999,Is=({ariaLabel:e,menuClassName:t,menuStyle:n,arrow:r,arrowProps:o={},anchorPoint:i,anchorRef:a,containerRef:u,containerProps:s,focusProps:l,externalRef:d,parentScrollingRef:c,align:f="start",direction:h="bottom",position:p="auto",overflow:m="visible",setDownOverflow:_,repositionFlag:v,captureFocus:y=!0,state:T,endTransition:M,isDisabled:x,menuItemFocus:b,gap:C=0,shift:B=0,children:S,onClose:L,...w})=>{const[I,q]=_e({x:Ji,y:Ji}),[D,A]=_e({}),[O,P]=_e(),[R,U]=_e(h),[F]=_e(lf),[K,Y]=cr(X=>X+1,1),{transition:Q,boundingBoxRef:re,boundingBoxPadding:ce,rootMenuRef:Se,rootAnchorRef:me,scrollNodesRef:Fe,reposition:Ae,viewScroll:le,submenuCloseDelay:Oe}=ne(yr),{submenuCtx:ke,reposSubmenu:H=v}=ne(Qn),ge=W(null),g=W(),E=W(),j=W(!1),k=W({width:0,height:0}),z=W(()=>{}),{hoverItem:N,dispatch:$,updateItems:Z}=df(ge,g),J=Bo(T),ee=yn(Q,"open"),de=yn(Q,"close"),fe=Fe.current,Ne=X=>{switch(X.key){case be.HOME:$(pe.FIRST);break;case be.END:$(pe.LAST);break;case be.UP:$(pe.DECREASE,N);break;case be.DOWN:$(pe.INCREASE,N);break;case be.SPACE:X.target&&X.target.className.indexOf(We)!==-1&&X.preventDefault();return;default:return}X.preventDefault(),X.stopPropagation()},He=()=>{T==="closing"&&P(),Ce(M)},tt=X=>{X.stopPropagation(),F.on(Oe,()=>{$(pe.RESET),g.current.focus()})},Be=X=>{X.target===X.currentTarget&&F.off()},Me=ve(X=>{var Te;const Ue=a?(Te=a.current)==null?void 0:Te.getBoundingClientRect():i?{left:i.x,right:i.x,top:i.y,bottom:i.y,width:0,height:0}:null;if(!Ue)return;fe.menu||(fe.menu=(re?re.current:Ir(Se.current))||window);const $e=ff(u,ge,fe.menu,ce);let{arrowX:we,arrowY:St,x:Tt,y:Ge,computedDirection:Sr}=vf({arrow:r,align:f,direction:h,gap:C,shift:B,position:p,anchorRect:Ue,arrowRef:E,positionHelpers:$e});const{menuRect:Vo}=$e;let xt=Vo.height;if(!X&&m!=="visible"){const{getTopOverflow:tu,getBottomOverflow:nu}=$e;let Ct,Tr;const Jo=k.current.height,xn=nu(Ge);if(xn>0||At(xn,0)&&At(xt,Jo))Ct=xt-xn,Tr=xn;else{const Jt=tu(Ge);(Jt<0||At(Jt,0)&&At(xt,Jo))&&(Ct=xt+Jt,Tr=0-Jt,Ct>=0&&(Ge-=Jt))}Ct>=0?(xt=Ct,P({height:Ct,overflowAmt:Tr})):P()}r&&A({x:we,y:St}),q({x:Tt,y:Ge}),U(Sr),k.current={width:Vo.width,height:xt}},[r,f,ce,h,C,B,p,m,i,a,u,re,Se,fe]);Nt(()=>{J&&(Me(),j.current&&Y()),j.current=J,z.current=Me},[J,Me,H]),Nt(()=>{O&&!_&&(ge.current.scrollTop=0)},[O,_]),Nt(()=>Z,[Z]),ie(()=>{let{menu:X}=fe;if(!J||!X)return;if(X=X.addEventListener?X:window,!fe.anchors){fe.anchors=[];let we=Ir(me&&me.current);for(;we&&we!==X;)fe.anchors.push(we),we=Ir(we)}let Te=le;if(fe.anchors.length&&Te==="initial"&&(Te="auto"),Te==="initial")return;const Ue=()=>{Te==="auto"?lo(()=>Me(!0)):Ce(L,{reason:gn.SCROLL})},$e=fe.anchors.concat(le!=="initial"?X:[]);return $e.forEach(we=>we.addEventListener("scroll",Ue)),()=>$e.forEach(we=>we.removeEventListener("scroll",Ue))},[me,fe,J,L,le,Me]);const ct=!!O&&O.overflowAmt>0;ie(()=>{if(ct||!J||!c)return;const X=()=>lo(Me),Te=c.current;return Te.addEventListener("scroll",X),()=>Te.removeEventListener("scroll",X)},[J,ct,c,Me]),ie(()=>{if(typeof ResizeObserver!="function"||Ae==="initial")return;const X=new ResizeObserver(([Ue])=>{const{borderBoxSize:$e,target:we}=Ue;let St,Tt;if($e){const{inlineSize:Ge,blockSize:Sr}=$e[0]||$e;St=Ge,Tt=Sr}else{const Ge=we.getBoundingClientRect();St=Ge.width,Tt=Ge.height}St===0||Tt===0||At(St,k.current.width,1)&&At(Tt,k.current.height,1)||To(()=>{z.current(),Y()})}),Te=ge.current;return X.observe(Te,{box:"border-box"}),()=>X.unobserve(Te)},[Ae]),ie(()=>{if(!J){$(pe.RESET),de||P();return}const{position:X,alwaysUpdate:Te}=b||{},Ue=()=>{X===kt.FIRST?$(pe.FIRST):X===kt.LAST?$(pe.LAST):X>=-1&&$(pe.SET_INDEX,void 0,X)};if(Te)Ue();else if(y){const $e=setTimeout(()=>{const we=ge.current;we&&!we.contains(document.activeElement)&&(g.current.focus(),Ue())},ee?170:100);return()=>clearTimeout($e)}},[J,ee,de,y,b,$]);const Sn=ae(()=>({isParentOpen:J,submenuCtx:F,dispatch:$,updateItems:Z}),[J,F,$,Z]);let Zt,Vt;O&&(_?Vt=O.overflowAmt:Zt=O.height);const wr=ae(()=>({reposSubmenu:K,submenuCtx:F,overflow:m,overflowAmt:Vt,parentMenuRef:ge,parentDir:R}),[K,F,m,Vt,R]),bt=Zt>=0?{maxHeight:Zt,overflow:m}:void 0,Et=ae(()=>({state:T,dir:R}),[T,R]),br=ae(()=>({dir:R}),[R]),Er=Ke({block:We,element:tf,modifiers:br,className:o.className}),Tn=se("ul",{role:"menu","aria-label":e,...vr(x),...Gt({onPointerEnter:ke==null?void 0:ke.off,onPointerMove:tt,onPointerLeave:Be,onKeyDown:Ne,onAnimationEnd:He},w),ref:Yt(d,ge),className:Ke({block:We,modifiers:Et,className:t}),style:{...n,...bt,margin:0,display:T==="closed"?"none":void 0,position:kr,left:I.x,top:I.y},children:[se("li",{tabIndex:-1,style:{position:kr,left:0,top:0,display:"block",outline:"none"},ref:g,...Zi,...l}),r&&se("li",{...Zi,...o,className:Er,style:{display:"block",position:kr,left:D.x,top:D.y,...o.style},ref:E}),se(Qn.Provider,{value:wr,children:se(qo.Provider,{value:Sn,children:se(Ds.Provider,{value:N,children:Ce(S,Et)})})})]});return s?se(cf,{...s,isOpen:J,children:Tn}):Tn},yf=at(function({"aria-label":t,className:n,containerProps:r,initialMounted:o,unmountOnClose:i,transition:a,transitionTimeout:u,boundingBoxRef:s,boundingBoxPadding:l,reposition:d="auto",submenuOpenDelay:c=300,submenuCloseDelay:f=150,viewScroll:h="initial",portal:p,theming:m,onItemClick:_,...v},y){const T=W(null),M=W({}),{anchorRef:x,state:b,onClose:C}=v,B=ae(()=>({initialMounted:o,unmountOnClose:i,transition:a,transitionTimeout:u,boundingBoxRef:s,boundingBoxPadding:l,rootMenuRef:T,rootAnchorRef:x,scrollNodesRef:M,reposition:d,viewScroll:h,submenuOpenDelay:c,submenuCloseDelay:f}),[o,i,a,u,x,s,l,d,h,c,f]),S=ae(()=>({handleClick(w,I){w.stopPropagation||Ce(_,w);let q=w.keepOpen;q===void 0&&(q=I&&w.key===be.SPACE),q||Ce(C,{value:w.value,key:w.key,reason:gn.CLICK})},handleClose(w){Ce(C,{key:w,reason:gn.CLICK})}}),[_,C]);if(!b)return null;const L=se(yr.Provider,{value:B,children:se(Wo.Provider,{value:S,children:se(Is,{...v,ariaLabel:t||"Menu",externalRef:y,containerRef:T,containerProps:{className:n,containerRef:T,containerProps:r,theming:m,transition:a,onClose:C}})})});return p===!0&&typeof document<"u"?pn(L,document.body):p?p.target?pn(L,p.target):p.stablePosition?null:L:L}),fo=0,ho=1,er=2,tr=3,nr=4,gf=5,ks=6,wf=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Ns=e=>({_s:e,status:wf[e],isEnter:enr}),po=e=>e?ks:gf,bf=(e,t)=>{switch(e){case ho:case fo:return er;case nr:case tr:return po(t)}},Ef=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],Xi=(e,t,n,r,o)=>{clearTimeout(r.current);const i=Ns(e);t(i),n.current=i,o&&o({current:i})},Sf=({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:o,initialEntered:i,mountOnEnter:a,unmountOnExit:u,onStateChange:s}={})=>{const[l,d]=_e(()=>Ns(i?er:po(a))),c=W(l),f=W(),[h,p]=Ef(o),m=ve(()=>{const v=bf(c.current._s,u);v&&Xi(v,d,c,f,s)},[s,u]),_=ve(v=>{const y=M=>{switch(Xi(M,d,c,f,s),M){case ho:h>=0&&(f.current=setTimeout(m,h));break;case nr:p>=0&&(f.current=setTimeout(m,p));break;case fo:case tr:f.current=setTimeout(()=>y(M+1),0);break}},T=c.current.isEnter;typeof v!="boolean"&&(v=!T),v?!T&&y(e?n?fo:ho:er):T&&y(t?r?tr:nr:po(u))},[m,s,e,t,n,r,h,p,u]);return ie(()=>()=>clearTimeout(f.current),[]),[l,_,m]};const Tf=({initialOpen:e,initialMounted:t,unmountOnClose:n,transition:r,transitionTimeout:o=500}={})=>{const[{status:i},a,u]=Sf({initialEntered:e,mountOnEnter:!t,unmountOnExit:n,timeout:o,enter:yn(r,"open"),exit:yn(r,"close")});return[{state:uf[i],endTransition:u},a]},$s=e=>{const[t,n]=Tf(e),[r,o]=_e(),i=(a,u)=>{o({position:a,alwaysUpdate:u}),n(!0)};return[{menuItemFocus:r,...t},n,i]},xf=(e,t)=>{const[n]=_e({});return{onMouseDown:()=>{n.v=e&&e!=="closed"},onClick:r=>n.v?n.v=!1:t(!0,r)}},js=(e,t)=>{const n=W(t);ie(()=>{n.current!==t&&Ce(e,{open:t}),n.current=t},[e,t])},Xp=at(function({"aria-label":t,captureFocus:n,initialOpen:r,menuButton:o,instanceRef:i,onMenuChange:a,...u},s){const[l,d,c]=$s(u),{state:f}=l,h=Bo(f),p=W(null),m=xf(f,(x,b)=>c(b.detail?void 0:kt.FIRST)),_=ve(x=>{d(!1),x.key&&p.current.focus()},[d]),v=x=>{switch(x.key){case be.UP:c(kt.LAST);break;case be.DOWN:c(kt.FIRST);break;default:return}x.preventDefault()},y=Ce(o,{open:h});if(!y||!y.type)throw new Error("Menu requires a menuButton prop.");const T={ref:Yt(y.ref,p),...Gt({onKeyDown:v,...m},y.props)};Vd(y.type)==="MenuButton"&&(T.isOpen=h);const M=fr(y,T);return js(a,h),lr(i,()=>({openMenu:c,closeMenu:()=>d(!1)})),se(Ie,{children:[M,se(yf,{...u,...l,"aria-label":t||(typeof y.props.children=="string"?y.props.children:"Menu"),anchorRef:p,ref:s,onClose:_})]})}),Go=(e,t)=>{const n=En(t),r=at((o,i)=>{const a=W(null);return se(n,{...o,itemRef:a,externalRef:i,isHovering:ne(Ds)===a.current})});return r.displayName=`WithHovering(${e})`,r},zs=(e,t,n)=>{Nt(()=>{if(e)return;const r=t.current;return n(r,!0),()=>{n(r)}},[e,t,n])},Qp=Go("SubMenu",function({"aria-label":t,className:n,disabled:r,direction:o,label:i,openTrigger:a,onMenuChange:u,isHovering:s,instanceRef:l,itemRef:d,captureFocus:c,repositionFlag:f,itemProps:h={},...p}){const m=ne(yr),{rootMenuRef:_,submenuOpenDelay:v,submenuCloseDelay:y}=m,{parentMenuRef:T,parentDir:M,overflow:x}=ne(Qn),{isParentOpen:b,submenuCtx:C,dispatch:B,updateItems:S}=ne(qo),L=x!=="visible",[w,I,q]=$s(m),{state:D}=w,A=!!r,O=Bo(D),P=W(null),[R]=_e({v:0}),U=()=>{C.off(),R.v&&(clearTimeout(R.v),R.v=0)},F=(...H)=>{U(),K(),!A&&q(...H)},K=()=>!s&&!A&&B(pe.SET,d.current),Y=H=>{K(),a||(R.v=setTimeout(()=>lo(F),Math.max(H,0)))},Q=H=>{A||(H.stopPropagation(),!(R.v||O)&&C.on(y,()=>Y(v-y),()=>Y(v)))},re=()=>{U(),O||B(pe.UNSET,d.current)},ce=H=>{if(s)switch(H.key){case be.ENTER:H.preventDefault();case be.SPACE:case be.RIGHT:a!=="none"&&F(kt.FIRST)}},Se=H=>{let ge=!1;switch(H.key){case be.LEFT:O&&(d.current.focus(),I(!1),ge=!0);break;case be.RIGHT:O||(ge=!0);break}ge&&(H.preventDefault(),H.stopPropagation())};zs(A,d,S),js(u,O),ie(()=>C.toggle(O),[C,O]),ie(()=>()=>clearTimeout(R.v),[R]),ie(()=>{s&&b?d.current.focus():I(!1)},[s,b,I,d]),lr(l,()=>({openMenu:(...H)=>{b&&F(...H)},closeMenu:()=>{O&&(d.current.focus(),I(!1))}}));const me=ae(()=>({open:O,hover:s,disabled:A,submenu:!0}),[O,s,A]),{ref:Fe,className:Ae,...le}=h,Oe=Gt({onPointerEnter:C.off,onPointerMove:Q,onPointerLeave:re,onKeyDown:ce,onClick:()=>a!=="none"&&F()},le),ke=()=>{const H=se(Is,{...p,...w,ariaLabel:t||(typeof i=="string"?i:"Submenu"),anchorRef:d,containerRef:L?_:P,direction:o||(M==="right"||M==="left"?M:"right"),parentScrollingRef:L&&T,isDisabled:A}),ge=_.current;return L&&ge?pn(H,ge):H};return se("li",{className:Ke({block:We,element:af,className:n}),style:{position:"relative"},role:Ko,ref:P,onKeyDown:Se,children:[se("div",{role:gr,"aria-haspopup":!0,"aria-expanded":O,...vr(A,s),...Oe,ref:Yt(Fe,d),className:Ke({block:We,element:Uo,modifiers:me,className:Ae}),children:ae(()=>Ce(i,me),[i,me])}),D&&ke()]})}),Fs=(e,t,n,r)=>{const{submenuCloseDelay:o}=ne(yr),{isParentOpen:i,submenuCtx:a,dispatch:u,updateItems:s}=ne(qo),l=()=>{!n&&!r&&u(pe.SET,e.current)},d=()=>{!r&&u(pe.UNSET,e.current)},c=p=>{n&&!p.currentTarget.contains(p.relatedTarget)&&d()},f=p=>{r||(p.stopPropagation(),a.on(o,l,l))},h=(p,m)=>{a.off(),!m&&d()};return zs(r,e,s),ie(()=>{n&&i&&t.current&&t.current.focus()},[t,n,i]),{setHover:l,onBlur:c,onPointerMove:f,onPointerLeave:h}},em=Go("MenuItem",function({className:t,value:n,href:r,type:o,checked:i,disabled:a,children:u,onClick:s,isHovering:l,itemRef:d,externalRef:c,...f}){const h=!!a,{setHover:p,...m}=Fs(d,d,l,h),_=ne(Wo),v=ne(sf),y=o==="radio",T=o==="checkbox",M=!!r&&!h&&!y&&!T,x=y?v.value===n:T?!!i:!1,b=w=>{if(h){w.stopPropagation(),w.preventDefault();return}const I={value:n,syntheticEvent:w};w.key!==void 0&&(I.key=w.key),T&&(I.checked=!x),y&&(I.name=v.name),Ce(s,I),y&&Ce(v.onRadioChange,I),_.handleClick(I,T||y)},C=w=>{if(l)switch(w.key){case be.ENTER:w.preventDefault();case be.SPACE:M?d.current.click():b(w)}},B=ae(()=>({type:o,disabled:h,hover:l,checked:x,anchor:M}),[o,h,l,x,M]),S=Gt({...m,onPointerDown:p,onKeyDown:C,onClick:b},f),L={role:y?"menuitemradio":T?"menuitemcheckbox":gr,"aria-checked":y||T?x:void 0,...vr(h,l),...S,ref:Yt(c,d),className:Ke({block:We,element:Uo,modifiers:B,className:t}),children:ae(()=>Ce(u,B),[u,B])};return M?se("li",{role:Ko,children:se("a",{href:r,...L})}):se("li",{...L})}),tm=Go("FocusableItem",function({className:t,disabled:n,children:r,isHovering:o,itemRef:i,externalRef:a,...u}){const s=!!n,l=W(null),{setHover:d,onPointerLeave:c,...f}=Fs(i,l,o,s),{handleClose:h}=ne(Wo),p=ae(()=>({disabled:s,hover:o,focusable:!0}),[s,o]),m=ae(()=>Ce(r,{...p,ref:l,closeMenu:h}),[r,p,h]),_=Gt({...f,onPointerLeave:v=>c(v,!0),onFocus:d},u);return se("li",{role:gr,...vr(s),..._,ref:Yt(a,i),className:Ke({block:We,element:Uo,modifiers:p,className:t}),children:m})}),nm=En(at(function({className:t,...n},r){return se("li",{role:"separator",...n,ref:r,className:Ke({block:We,element:nf,className:t})})})),rm=En(at(function({className:t,...n},r){return se("li",{role:Ko,...n,ref:r,className:Ke({block:We,element:rf,className:t})})})),om=at(function({className:t,style:n,takeOverflow:r,...o},i){const a=W(null),[u,s]=_e(),{overflow:l,overflowAmt:d}=ne(Qn);return Nt(()=>{let c;r&&d>=0&&(c=a.current.getBoundingClientRect().height-d,c<0&&(c=0)),s(c>=0?{maxHeight:c,overflow:l}:void 0)},[r,l,d]),Nt(()=>{u&&(a.current.scrollTop=0)},[u]),se("div",{...o,ref:Yt(i,a),className:Ke({block:We,element:of,className:t}),style:{...n,...u}})});function im(){const[e,t]=_e({width:null,height:null});return Xe(()=>{const n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),e}var rr={exports:{}},am=rr.exports;(function(e,t){(function(n,r){e.exports=r()})(st,function(){"use strict";var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",u="minute",s="hour",l="day",d="week",c="month",f="quarter",h="year",p="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var A=["th","st","nd","rd"],O=D%100;return"["+D+(A[(O-20)%10]||A[O]||A[0])+"]"}},T=function(D,A,O){var P=String(D);return!P||P.length>=A?D:""+Array(A+1-P.length).join(O)+D},M={s:T,z:function(D){var A=-D.utcOffset(),O=Math.abs(A),P=Math.floor(O/60),R=O%60;return(A<=0?"+":"-")+T(P,2,"0")+":"+T(R,2,"0")},m:function D(A,O){if(A.date()1)return D(F[0])}else{var K=A.name;b[K]=A,R=K}return!P&&R&&(x=R),R||!P&&x},L=function(D,A){if(B(D))return D.clone();var O=typeof A=="object"?A:{};return O.date=D,O.args=arguments,new I(O)},w=M;w.l=S,w.i=B,w.w=function(D,A){return L(D,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var I=function(){function D(O){this.$L=S(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[C]=!0}var A=D.prototype;return A.parse=function(O){this.$d=function(P){var R=P.date,U=P.utc;if(R===null)return new Date(NaN);if(w.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var F=R.match(_);if(F){var K=F[2]-1||0,Y=(F[7]||"0").substring(0,3);return U?new Date(Date.UTC(F[1],K,F[3]||1,F[4]||0,F[5]||0,F[6]||0,Y)):new Date(F[1],K,F[3]||1,F[4]||0,F[5]||0,F[6]||0,Y)}}return new Date(R)}(O),this.init()},A.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},A.$utils=function(){return w},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(O,P){var R=L(O);return this.startOf(P)<=R&&R<=this.endOf(P)},A.isAfter=function(O,P){return L(O)new s(l).valueOf()},s.prototype.isLessThan=function(l){return this.valueOf()-1)||(_=new a.a(p)[m]()),m==="days"||m==="years"){var v=u[h][m];return c.format(v)}return u[h][m].replace("%d",_)}(this)}}}])})})(or,or.exports);var Af=or.exports;const cm=Qe(Af);var ir={exports:{}},lm=ir.exports;(function(e,t){(function(n,r){e.exports=r()})(st,function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,u=a.format;i.en.formats=n,a.format=function(s){s===void 0&&(s="YYYY-MM-DDTHH:mm:ssZ");var l=this.$locale().formats,d=function(c,f){return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,p,m){var _=m&&m.toUpperCase();return p||f[m]||n[m]||f[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,T){return y||T.slice(1)})})}(s,l===void 0?{}:l);return u.call(this,d)}}})})(ir,ir.exports);var Of=ir.exports;const dm=Qe(Of);var ar={exports:{}},fm=ar.exports;(function(e,t){(function(n,r){e.exports=r()})(st,function(){"use strict";return function(n,r,o){n=n||{};var i=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(l,d,c,f){return i.fromToBase(l,d,c,f)}o.en.relativeTime=a,i.fromToBase=function(l,d,c,f,h){for(var p,m,_,v=c.$locale().relativeTime||a,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],T=y.length,M=0;M0,b<=x.r||!x.r){b<=1&&M>0&&(x=y[M-1]);var C=v[x.l];h&&(b=h(""+b)),m=typeof C=="string"?C.replace("%d",b):C(b,d,x.l,_);break}}if(d)return m;var B=_?v.future:v.past;return typeof B=="function"?B(m):B.replace("%s",m)},i.to=function(l,d){return u(l,d,this,!0)},i.from=function(l,d){return u(l,d,this)};var s=function(l){return l.$u?o.utc():o()};i.toNow=function(l){return this.to(s(this),l)},i.fromNow=function(l){return this.from(s(this),l)}}})})(ar,ar.exports);var Mf=ar.exports;const hm=Qe(Mf);function Pf(e){return Intl.getCanonicalLocales(e)}var Nr={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}},Rf={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]},Hs=/-u(?:-[0-9a-z]{2,8})+/gi;function Mt(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var Lf=838,$r;function Df(){var e,t;if(!$r){var n=(t=(e=Nr.supplemental.languageMatching["written-new"][0])===null||e===void 0?void 0:e.paradigmLocales)===null||t===void 0?void 0:t._locales.split(" "),r=Nr.supplemental.languageMatching["written-new"].slice(1,5),o=Nr.supplemental.languageMatching["written-new"].slice(5),i=o.map(function(a){var u=Object.keys(a)[0],s=a[u];return{supported:u,desired:s._desired,distance:+s._distance,oneway:s.oneway==="true"}},{});$r={matches:i,matchVariables:r.reduce(function(a,u){var s=Object.keys(u)[0],l=u[s];return a[s.slice(1)]=l._value.split("+"),a},{}),paradigmLocales:Kn(Kn([],n,!0),n.map(function(a){return new Intl.Locale(a.replace(/_/g,"-")).maximize().toString()}),!0)}}return $r}function Mn(e,t,n){var r=t.split("-"),o=r[0],i=r[1],a=r[2],u=!0;if(a&&a[0]==="$"){var s=a[1]!=="!",l=s?n[a.slice(1)]:n[a.slice(2)],d=l.map(function(c){return Rf[c]||[c]}).reduce(function(c,f){return Kn(Kn([],c,!0),f,!0)},[]);u&&(u=d.indexOf(e.region||"")>1==s)}else u&&(u=e.region?a==="*"||a===e.region:!0);return u&&(u=e.script?i==="*"||i===e.script:!0),u&&(u=e.language?o==="*"||o===e.language:!0),u}function Qi(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function jr(e,t,n){for(var r=0,o=n.matches;r-1!=n.paradigmLocales.indexOf(Qi(t))>-1?u-1:u}}throw new Error("No matching distance found")}function If(e,t){var n=new Intl.Locale(e).maximize(),r=new Intl.Locale(t).maximize(),o={language:n.language,script:n.script||"",region:n.region||""},i={language:r.language,script:r.script||"",region:r.region||""},a=0,u=Df();return o.language!==i.language&&(a+=jr({language:n.language,script:"",region:""},{language:r.language,script:"",region:""},u)),o.script!==i.script&&(a+=jr({language:n.language,script:o.script,region:""},{language:r.language,script:o.script,region:""},u)),o.region!==i.region&&(a+=jr(o,i,u)),a}function kf(e,t,n){n===void 0&&(n=Lf);var r=1/0,o={matchedDesiredLocale:"",distances:{}};return e.forEach(function(i,a){o.distances[i]||(o.distances[i]={}),t.forEach(function(u){var s=If(i,u)+0+a*40;o.distances[i][u]=s,s=n&&(o.matchedDesiredLocale=void 0,o.matchedSupportedLocale=void 0),o}function Nf(e,t,n){var r,o,i=[],a=t.reduce(function(s,l){var d=l.replace(Hs,"");return i.push(d),s[d]=l,s},{}),u=kf(i,e);return u.matchedSupportedLocale&&u.matchedDesiredLocale&&(r=u.matchedSupportedLocale,o=a[u.matchedDesiredLocale].slice(u.matchedDesiredLocale.length)||void 0),r?{locale:r,extension:o}:{locale:n()}}function $f(e,t){for(var n=t;;){if(e.indexOf(n)>-1)return n;var r=n.lastIndexOf("-");if(!~r)return;r>=2&&n[r-2]==="-"&&(r-=2),n=n.slice(0,r)}}function jf(e,t,n){for(var r={locale:""},o=0,i=t;o"u"||T===null,"optionsValue must be String, Undefined or Null"),~m.indexOf(T)&&T!==_&&(_=T,v="")}l[h]=_,d+=v}if(d.length>2){var M=s.indexOf("-x-");if(M===-1)s=s+d;else{var x=s.slice(0,M),b=s.slice(M,s.length);s=x+d+b}s=Intl.getCanonicalLocales(s)[0]}return l.locale=s,l}function pm(e,t,n,r){return Ff(t,Pf(e),{localeMatcher:(r==null?void 0:r.algorithm)||"best fit"},[],{},function(){return n}).locale}const Hf=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,sr=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Hf);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},ea=e=>e==="*"||e==="x"||e==="X",ta=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Bf=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Uf=(e,t)=>{if(ea(e)||ea(t))return 0;const[n,r]=Bf(ta(e),ta(t));return n>r?1:n{for(let n=0;n{const n=sr(e),r=sr(t),o=n.pop(),i=r.pop(),a=It(n,r);return a!==0?a:o&&i?It(o.split("."),i.split(".")):o||i?o?-1:1:0},Wf=(e,t,n)=>{Kf(n);const r=qf(e,t);return Bs[n].includes(r)},Bs={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},na=Object.keys(Bs),Kf=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(na.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${na.join("|")}`)},zr=(e,t)=>{if(t=t.replace(/([><=]+)\s+/g,"$1"),t.includes("||"))return t.split("||").some(_=>zr(e,_));if(t.includes(" - ")){const[_,v]=t.split(" - ",2);return zr(e,`>=${_} <=${v}`)}else if(t.includes(" "))return t.trim().replace(/\s{2,}/g," ").split(" ").every(_=>zr(e,_));const n=t.match(/^([<>=~^]+)/),r=n?n[1]:"=";if(r!=="^"&&r!=="~")return Wf(e,t,r);const[o,i,a,,u]=sr(e),[s,l,d,,c]=sr(t),f=[o,i,a],h=[s,l??"x",d??"x"];if(c&&(!u||It(f,h)!==0||It(u.split("."),c.split("."))===-1))return!1;const p=h.findIndex(_=>_!=="0")+1,m=r==="~"?2:p>1?p:1;return!(It(f.slice(0,m),h.slice(0,m))!==0||It(f.slice(m),h.slice(m))===-1)};var Us={};function ze(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var Gf=ze;ze.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};ze.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};ze.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n),this._options.unref&&this._timer.unref(),!0};ze.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};ze.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};ze.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};ze.prototype.start=ze.prototype.try;ze.prototype.errors=function(){return this._errors};ze.prototype.attempts=function(){return this._attempts};ze.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r=n&&(t=o,n=a)}return t};(function(e){var t=Gf;e.operation=function(n){var r=e.timeouts(n);return new t(r,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var o in n)r[o]=n[o];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;aVf.call(e)==="[object Error]",Xf=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed"]);function Qf(e){return e&&Jf(e)&&e.name==="TypeError"&&typeof e.message=="string"?e.message==="Load failed"?e.stack===void 0:Xf.has(e.message):!1}class eh extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}}const ra=(e,t,n)=>{const r=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=r,e};async function mm(e,t){return new Promise((n,r)=>{t={onFailedAttempt(){},retries:10,shouldRetry:()=>!0,...t};const o=Zf.operation(t),i=()=>{var u;o.stop(),r((u=t.signal)==null?void 0:u.reason)};t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",i,{once:!0});const a=()=>{var u;(u=t.signal)==null||u.removeEventListener("abort",i),o.stop()};o.attempt(async u=>{try{const s=await e(u);a(),n(s)}catch(s){try{if(!(s instanceof Error))throw new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`);if(s instanceof eh)throw s.originalError;if(s instanceof TypeError&&!Qf(s))throw s;if(ra(s,u,t),await t.shouldRetry(s)||(o.stop(),r(s)),await t.onFailedAttempt(s),!o.retry(s))throw o.mainError()}catch(l){ra(l,u,t),a(),r(l)}}})})}class th{constructor(t,n,{tabInsertsSuggestions:r,defaultFirstOption:o}={}){this.input=t,this.list=n,this.tabInsertsSuggestions=r??!0,this.defaultFirstOption=o??!1,this.isComposing=!1,n.id||(n.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=i=>nh(i,this),this.compositionEventHandler=i=>oh(i,this),this.inputHandler=this.clearSelection.bind(this),t.setAttribute("role","combobox"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",oa),this.indicateDefaultOption()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",oa)}indicateDefaultOption(){var t;this.defaultFirstOption&&((t=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(Fr)[0])===null||t===void 0||t.setAttribute("data-combobox-option-default","true"))}navigate(t=1){const n=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(Fr)[0],r=Array.from(this.list.querySelectorAll('[role="option"]')).filter(Fr),o=r.indexOf(n);if(o===r.length-1&&t===1||o===0&&t===-1){this.clearSelection(),this.input.focus();return}let i=t===1?0:r.length-1;if(n&&o>=0){const u=o+t;u>=0&&u0||e.offsetHeight>0)}function oh(e,t){t.isComposing=e.type==="compositionstart",document.getElementById(t.input.getAttribute("aria-controls")||"")&&t.clearSelection()}function ih(e,t){ah(e,t)||(e.scrollTop=t.offsetTop)}function ah(e,t){const n=e.scrollTop,r=n+e.clientHeight,o=t.offsetTop,i=o+t.clientHeight;return o>=n&&i<=r}const sh=/\s|\(|\[/;function uh(e,t,n,{multiWord:r,lookBackIndex:o,lastMatchPosition:i}={multiWord:!1,lookBackIndex:0,lastMatchPosition:null}){let a=e.lastIndexOf(t,n-1);if(a===-1||a=a+t.length+1||e.lastIndexOf(` `,n-1)>a||e.lastIndexOf(".",n-1)>a)return}else if(e.lastIndexOf(" ",n-1)>a)return;const u=e[a-1];return u&&!sh.test(u)?void 0:{text:e.substring(a+t.length,n),position:a+t.length}}const ch=["position:absolute;","overflow:auto;","word-wrap:break-word;","top:0px;","left:-9999px;"],aa=["box-sizing","font-family","font-size","font-style","font-variant","font-weight","height","letter-spacing","line-height","max-height","min-height","padding-bottom","padding-left","padding-right","padding-top","border-bottom","border-left","border-right","border-top","text-decoration","text-indent","text-transform","width","word-spacing"],sa=new WeakMap;function lh(e,t){const n=e.nodeName.toLowerCase();if(n!=="textarea"&&n!=="input")throw new Error("expected textField to a textarea or input");let r=sa.get(e);if(r&&r.parentElement===e.parentElement)r.innerHTML="";else{r=document.createElement("div"),sa.set(e,r);const u=window.getComputedStyle(e),s=ch.slice(0);n==="textarea"?s.push("white-space:pre-wrap;"):s.push("white-space:nowrap;");for(let l=0,d=aa.length;l{n.remove()},5e3),{top:i.top-o.top,left:i.left-o.left}}const Pn=new WeakMap;function fh(e){try{if(e.matches(":popover-open"))return!0}catch{}try{if(e.matches("dialog:modal"))return!0}catch{}try{if(e.matches(":fullscreen"))return!0}catch{}return!1}class hh{constructor(t,n){this.expander=t,this.input=n,this.combobox=null,this.menu=null,this.match=null,this.justPasted=!1,this.lookBackIndex=0,this.oninput=this.onInput.bind(this),this.onpaste=this.onPaste.bind(this),this.onkeydown=this.onKeydown.bind(this),this.oncommit=this.onCommit.bind(this),this.onmousedown=this.onMousedown.bind(this),this.onblur=this.onBlur.bind(this),this.interactingWithList=!1,n.addEventListener("paste",this.onpaste),n.addEventListener("input",this.oninput),n.addEventListener("keydown",this.onkeydown),n.addEventListener("blur",this.onblur)}destroy(){this.input.removeEventListener("paste",this.onpaste),this.input.removeEventListener("input",this.oninput),this.input.removeEventListener("keydown",this.onkeydown),this.input.removeEventListener("blur",this.onblur)}dismissMenu(){this.deactivate()&&(this.lookBackIndex=this.input.selectionEnd||this.lookBackIndex)}activate(t,n){var r,o;if(this.input!==document.activeElement&&this.input!==((o=(r=document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||o===void 0?void 0:o.activeElement))return;this.deactivate(),this.menu=n,n.id||(n.id=`text-expander-${Math.floor(Math.random()*1e5).toString()}`),this.expander.append(n),this.combobox=new th(this.input,n),this.expander.dispatchEvent(new Event("text-expander-activate"));let{top:i,left:a}=dh(this.input,t.position);if(fh(n)){const u=this.input.getBoundingClientRect();i+=u.top,a+=u.left,getComputedStyle(n).position==="absolute"&&(i+=window.scrollY,a+=window.scrollX)}n.style.top=`${i}px`,n.style.left=`${a}px`,this.combobox.start(),n.addEventListener("combobox-commit",this.oncommit),n.addEventListener("mousedown",this.onmousedown),this.combobox.navigate(1)}deactivate(){const t=this.menu;return!t||!this.combobox?!1:(this.expander.dispatchEvent(new Event("text-expander-deactivate")),this.menu=null,t.removeEventListener("combobox-commit",this.oncommit),t.removeEventListener("mousedown",this.onmousedown),this.combobox.destroy(),this.combobox=null,t.remove(),!0)}onCommit({target:t}){var n;const r=t;if(!(r instanceof HTMLElement)||!this.combobox)return;const o=this.match;if(!o)return;const i=this.input.value.substring(0,o.position-o.key.length),a=this.input.value.substring(o.position+o.text.length),u={item:r,key:o.key,value:null,continue:!1};if(!this.expander.dispatchEvent(new CustomEvent("text-expander-value",{cancelable:!0,detail:u}))||!u.value)return;let l=(n=this.expander.getAttribute("suffix"))!==null&&n!==void 0?n:" ";u.continue&&(l="");const d=`${u.value}${l}`;this.input.value=i+d+a;const c=i.length+d.length;this.deactivate(),this.input.focus({preventScroll:!0}),this.input.selectionStart=c,this.input.selectionEnd=c,u.continue||(this.lookBackIndex=c,this.match=null),this.expander.dispatchEvent(new CustomEvent("text-expander-committed",{cancelable:!1,detail:{input:this.input}}))}onBlur(){if(this.interactingWithList){this.interactingWithList=!1;return}this.deactivate()}onPaste(){this.justPasted=!0}async onInput(){if(this.justPasted){this.justPasted=!1;return}const t=this.findMatch();if(t){this.match=t;const n=await this.notifyProviders(t);if(!this.match)return;n?this.activate(t,n):this.deactivate()}else this.match=null,this.deactivate()}findMatch(){const t=this.input.selectionEnd||0,n=this.input.value;t<=this.lookBackIndex&&(this.lookBackIndex=t-1);for(const{key:r,multiWord:o}of this.expander.keys){const i=uh(n,r,t,{multiWord:o,lookBackIndex:this.lookBackIndex,lastMatchPosition:this.match?this.match.position:null});if(i)return{text:i.text,key:r,position:i.position}}}async notifyProviders(t){const n=[],r=u=>n.push(u);return this.expander.dispatchEvent(new CustomEvent("text-expander-change",{cancelable:!0,detail:{provide:r,text:t.text,key:t.key}}))?(await Promise.all(n)).filter(u=>u.matched).map(u=>u.fragment)[0]:void 0}onMousedown(){this.interactingWithList=!0}onKeydown(t){t.key==="Escape"&&(this.match=null,this.deactivate()&&(this.lookBackIndex=this.input.selectionEnd||this.lookBackIndex,t.stopImmediatePropagation(),t.preventDefault()))}}class ua extends HTMLElement{get keys(){const t=this.getAttribute("keys"),n=t?t.split(" "):[],r=this.getAttribute("multiword"),o=r?r.split(" "):[],i=o.length===0&&this.hasAttribute("multiword");return n.map(a=>({key:a,multiWord:i||o.includes(a)}))}connectedCallback(){const t=this.querySelector('input[type="text"], textarea');if(!(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement))return;const n=new hh(this,t);Pn.set(this,n)}disconnectedCallback(){const t=Pn.get(this);t&&(t.destroy(),Pn.delete(this))}dismiss(){const t=Pn.get(this);t&&t.dismissMenu()}}window.customElements.get("text-expander")||(window.TextExpanderElement=ua,window.customElements.define("text-expander",ua));var ca;(function(e){e[e.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",e[e.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",e[e.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",e[e.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",e[e.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",e[e.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",e[e.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",e[e.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",e[e.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",e[e.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",e[e.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",e[e.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",e[e.TAGS_START=917504]="TAGS_START",e[e.TAGS_END=917631]="TAGS_END",e[e.ZWJ=8205]="ZWJ"})(ca||(ca={}));const ph=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var la;function mh(e){if(typeof e!="string")throw new TypeError("string cannot be undefined or null");const t=[];let n=0,r=0;for(;n=t&&e<=n}function _m(e,t,n){const r=mh(e);if(t===void 0)return e;if(t>=r.length)return"";const o=r.length-t;let i=t+(n===void 0?o:n);return i>t+o&&(i=void 0),r.slice(t,i).join("")}(function(e){e[e.unit_1=1]="unit_1",e[e.unit_2=2]="unit_2",e[e.unit_4=4]="unit_4"})(la||(la={}));function xh({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}const Ch=xh();function Ah(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Ch,"")}function Oh(){const e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o="\\u1ab0-\\u1aff",i="\\u1dc0-\\u1dff",a=t+n+r+o+i,u="\\ufe0e\\ufe0f",s="\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c14\\u0c60-\\u0c61",l="\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4c\\u0c62-\\u0c63",d="\\u0c15-\\u0c28\\u0c2a-\\u0c39",c="\\u0c58-\\u0c5a",f="\\u0c01-\\u0c03\\u0c4d\\u0c55\\u0c56",p=`[${s}(?:${d}(?!\\u0c4d))\\u0c66-\\u0c6f\\u0c78-\\u0c7e${c}]`,m=`[${d}${c}][${l}]|[${d}${c}][${f}`,v=`(?:${`[${d}]\\u0c4d[${d}]`}|${m}|${p})`,y=`[${e}]`,T=`[${a}]`,M="\\ud83c[\\udffb-\\udfff]",x=`(?:${T}|${M})`,b=`[^${e}]`,C="(?:\\ud83c[\\udde6-\\uddff]){2}",B="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",L="(?:\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40(?:\\udc65|\\udc73|\\udc77)\\udb40(?:\\udc6e|\\udc63|\\udc6c)\\udb40(?:\\udc67|\\udc74|\\udc73)\\udb40\\udc7f)",w=`${x}?`,I=`[${u}]?`,q=`(?:${S}(?:${[b,C,B].join("|")})${I+w})*`,D=I+w+q,A=`${b}${T}?`,O=`(?:${[L,A,T,C,B,y].join("|")})`;return new RegExp(`${M}(?=${M})|${v}|${O+D}`,"g")}function vm(e,{countAnsiEscapeCodes:t=!1}={}){return e===""||(t||(e=Ah(e)),e==="")?0:e.match(Oh()).length}var fa=36,qs="";for(;fa--;)qs+=fa.toString(36);function ym(e){for(var t="",n=e||11;n--;)t+=qs[Math.random()*36|0];return t}function Mh(e,t,n){var r=this,o=W(null),i=W(0),a=W(null),u=W([]),s=W(),l=W(),d=W(e),c=W(!0);d.current=e;var f=typeof window<"u",h=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,_="maxWait"in n,v="debounceOnServer"in n&&!!n.debounceOnServer,y=_?Math.max(+n.maxWait||0,t):null;ie(function(){return c.current=!0,function(){c.current=!1}},[]);var T=ae(function(){var M=function(L){var w=u.current,I=s.current;return u.current=s.current=null,i.current=L,l.current=d.current.apply(I,w)},x=function(L,w){h&&cancelAnimationFrame(a.current),a.current=h?requestAnimationFrame(L):setTimeout(L,w)},b=function(L){if(!c.current)return!1;var w=L-o.current;return!o.current||w>=t||w<0||_&&L-i.current>=y},C=function(L){return a.current=null,m&&u.current?M(L):(u.current=s.current=null,l.current)},B=function L(){var w=Date.now();if(b(w))return C(w);if(c.current){var I=t-(w-o.current),q=_?Math.min(I,y-(w-i.current)):I;x(L,q)}},S=function(){if(f||v){var L=Date.now(),w=b(L);if(u.current=[].slice.call(arguments),s.current=r,o.current=L,w){if(!a.current&&c.current)return i.current=o.current,x(B,t),p?M(o.current):l.current;if(_)return x(B,t),M(o.current)}return a.current||x(B,t),l.current}};return S.cancel=function(){a.current&&(h?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,u.current=o.current=s.current=a.current=null},S.isPending=function(){return!!a.current},S.flush=function(){return a.current?C(Date.now()):l.current},S},[p,_,t,y,m,h,f,v]);return T}function gm(e,t,n){var r=n===void 0?{}:n,o=r.leading,i=r.trailing;return Mh(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}function et(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Ph(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=et(n);return(o,i)=>r.then(a=>i(a.transaction(t,o).objectStore(t)))}let Hr;function wt(){return Hr||(Hr=Ph("keyval-store","keyval")),Hr}function wm(e,t=wt()){return t("readonly",n=>et(n.get(e)))}function bm(e,t,n=wt()){return n("readwrite",r=>(r.put(t,e),et(r.transaction)))}function Em(e,t=wt()){return t("readonly",n=>Promise.all(e.map(r=>et(n.get(r)))))}function Sm(e,t=wt()){return t("readwrite",n=>(n.delete(e),et(n.transaction)))}function Tm(e,t=wt()){return t("readwrite",n=>(e.forEach(r=>n.delete(r)),et(n.transaction)))}function xm(e=wt()){return e("readwrite",t=>(t.clear(),et(t.transaction)))}function Rh(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},et(e.transaction)}function Cm(e=wt()){return e("readonly",t=>{if(t.getAllKeys)return et(t.getAllKeys());const n=[];return Rh(t,r=>n.push(r.key)).then(()=>n)})}class De extends HTMLElement{constructor(){super(),this.isIframeLoaded=!1,this.setupDom()}static get observedAttributes(){return["videoid","playlistid"]}connectedCallback(){this.addEventListener("pointerover",De.warmConnections,{once:!0}),this.addEventListener("click",()=>this.addIframe())}get videoId(){return encodeURIComponent(this.getAttribute("videoid")||"")}set videoId(t){this.setAttribute("videoid",t)}get playlistId(){return encodeURIComponent(this.getAttribute("playlistid")||"")}set playlistId(t){this.setAttribute("playlistid",t)}get videoTitle(){return this.getAttribute("videotitle")||"Video"}set videoTitle(t){this.setAttribute("videotitle",t)}get videoPlay(){return this.getAttribute("videoPlay")||"Play"}set videoPlay(t){this.setAttribute("videoPlay",t)}get videoStartAt(){return this.getAttribute("videoStartAt")||"0"}get autoLoad(){return this.hasAttribute("autoload")}get noCookie(){return this.hasAttribute("nocookie")}get posterQuality(){return this.getAttribute("posterquality")||"hqdefault"}get posterLoading(){return this.getAttribute("posterloading")||"lazy"}get params(){return`start=${this.videoStartAt}&${this.getAttribute("params")}`}set params(t){this.setAttribute("params",t)}setupDom(){const t=this.attachShadow({mode:"open"});let n="";window.liteYouTubeNonce&&(n=`nonce="${window.liteYouTubeNonce}"`),t.innerHTML=`
`,this.domRefFrame=t.querySelector("#frame"),this.domRefImg={fallback:t.querySelector("#fallbackPlaceholder"),webp:t.querySelector("#webpPlaceholder"),jpeg:t.querySelector("#jpegPlaceholder")},this.domRefPlayButton=t.querySelector("#playButton")}setupComponent(){this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort())&&this.initIntersectionObserver()}attributeChangedCallback(t,n,r){switch(t){case"videoid":case"playlistid":case"videoTitle":case"videoPlay":{n!==r&&(this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1));break}default:break}}addIframe(t=!1){if(!this.isIframeLoaded){let n=t?0:1;const r=this.noCookie?"-nocookie":"";let o;this.playlistId?o=`?listType=playlist&list=${this.playlistId}&`:o=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,n=1);const i=` `;this.domRefFrame.insertAdjacentHTML("beforeend",i),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){var r,o;const t=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,n=`https://i.ytimg.com/vi/${this.videoId}/${this.posterQuality}.jpg`;this.domRefImg.fallback.loading=this.posterLoading,this.domRefImg.webp.srcset=t,this.domRefImg.jpeg.srcset=n,this.domRefImg.fallback.src=n,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(o=(r=this.domRefImg)==null?void 0:r.fallback)==null||o.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){const t={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((r,o)=>{r.forEach(i=>{i.isIntersecting&&!this.isIframeLoaded&&(De.warmConnections(),this.addIframe(!0),o.unobserve(this))})},t).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var t,n;(n=(t=this.shadowRoot.querySelector("iframe"))==null?void 0:t.contentWindow)==null||n.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(t,n){const r=document.createElement("link");r.rel=t,r.href=n,r.crossOrigin="true",document.head.append(r)}static warmConnections(){De.isPreconnected||window.liteYouTubeIsPreconnected||(De.addPrefetch("preconnect","https://i.ytimg.com/"),De.addPrefetch("preconnect","https://s.ytimg.com"),De.addPrefetch("preconnect","https://www.youtube.com"),De.addPrefetch("preconnect","https://www.google.com"),De.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),De.addPrefetch("preconnect","https://static.doubleclick.net"),De.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}De.isPreconnected=!1;customElements.define("lite-youtube",De);const Lh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",jn=(e,t,n)=>{let r=0;for(;te>10.31475?Ws(e/Gs+.052132,2.4):e/Ks,Br=e=>~~(e>1227e-8?Gs*Ws(e,.416666)-13.025:e*Ks+1),dn=e=>(e<0?-1:1)*e*e,ha=e=>{for(e+=wn/2;e>wn;)e-=Dh;const t=1.27323954*e-.405284735*dn(e);return .225*(dn(t)-t)+t};function kh(e){const t=jn(e,2,6);return[t>>16,t>>8&255,t&255]}function Am(e,t,n,r){const o=jn(e,0,1),i=o%9+1,a=~~(o/9)+1,u=i*a;let s=0,l=0,d=0,c=0,f=0,h=0,p=0,m=0,_=0,v=0,y=0,T=0,M=0,x=0;const b=(jn(e,1,2)+1)/13446*(r|1),C=new Float64Array(u*3),B=kh(e);for(s=0;s<3;s++)C[s]=Ih(B[s]);for(s=1;s(e.Mouse="mouse",e.Touch="touch",e.Pointer="pointer",e))(an||{}),sn=(e=>(e.CancelledByMovement="cancelled-by-movement",e.CancelledByRelease="cancelled-by-release",e.CancelledOutsideElement="cancelled-outside-element",e))(sn||{});const Ys=()=>typeof window=="object"?(window==null?void 0:window.PointerEvent)??null:null,Nh=()=>typeof window=="object"?(window==null?void 0:window.TouchEvent)??null:null;function Zs(e){const{nativeEvent:t}=e,n=Nh();return n&&t instanceof n||"touches"in e}function Vs(e){const t=Ys();return e.nativeEvent instanceof MouseEvent&&!(t&&e.nativeEvent instanceof t)}function Js(e){const{nativeEvent:t}=e;if(!t)return!1;const n=Ys();return n&&t instanceof n||"pointerId"in t}function pa(e){return Vs(e)||Zs(e)||Js(e)}function ma(e){return Zs(e)?{x:e.touches[0].pageX,y:e.touches[0].pageY}:Vs(e)||Js(e)?{x:e.pageX,y:e.pageY}:null}function $h(e){return{target:e.target,currentTarget:e.currentTarget,nativeEvent:e,persist:()=>{}}}function Om(e,{threshold:t=400,captureEvent:n=!1,detect:r=an.Pointer,cancelOnMovement:o=!1,cancelOutsideElement:i=!0,filterEvents:a,onStart:u,onMove:s,onFinish:l,onCancel:d}={}){const c=W(!1),f=W(!1),h=W(),p=W(),m=W(e),_=W(null),v=ve(x=>b=>{f.current||pa(b)&&(a!==void 0&&!a(b)||(n&&b.persist(),u==null||u(b,{context:x}),_.current=ma(b),f.current=!0,h.current=b.currentTarget,p.current=setTimeout(()=>{m.current&&(m.current(b,{context:x}),c.current=!0)},t)))},[n,a,u,t]),y=ve(x=>(b,C)=>{pa(b)&&f.current&&(_.current=null,n&&b.persist(),c.current?l==null||l(b,{context:x}):f.current&&(d==null||d(b,{context:x,reason:C??sn.CancelledByRelease})),c.current=!1,f.current=!1,p.current!==void 0&&clearTimeout(p.current))},[n,l,d]),T=ve(x=>b=>{if(s==null||s(b,{context:x}),o!==!1&&_.current){const C=ma(b);if(C){const B=o===!0?25:o,S={x:Math.abs(C.x-_.current.x),y:Math.abs(C.y-_.current.y)};(S.x>B||S.y>B)&&y(x)(b,sn.CancelledByMovement)}}},[y,o,s]),M=ve(x=>{if(e===null)return{};switch(r){case an.Mouse:{const b={onMouseDown:v(x),onMouseMove:T(x),onMouseUp:y(x)};return i&&(b.onMouseLeave=C=>{y(x)(C,sn.CancelledOutsideElement)}),b}case an.Touch:return{onTouchStart:v(x),onTouchMove:T(x),onTouchEnd:y(x)};case an.Pointer:{const b={onPointerDown:v(x),onPointerMove:T(x),onPointerUp:y(x)};return i&&(b.onPointerLeave=C=>y(x)(C,sn.CancelledOutsideElement)),b}}},[e,y,i,r,T,v]);return ie(()=>{if(!window)return;function x(b){const C=$h(b);y()(C)}return window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("pointerup",x),()=>{window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("pointerup",x)}},[y]),ie(()=>()=>{p.current!==void 0&&clearTimeout(p.current)},[]),ie(()=>{m.current=e},[e]),M}function jh(e,t){var n=W(null),r=W(null);r.current=t;var o=W(null);ie(function(){i()});var i=ve(function(){var a=o.current,u=r.current,s=a||(u?u instanceof Element?u:u.current:null);n.current&&n.current.element===s&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return ie(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),ve(function(a){o.current=a,i()},[i])}function _a(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function Mm(e){e===void 0&&(e={});var t=e.onResize,n=W(void 0);n.current=t;var r=e.round||Math.round,o=W(),i=_e({width:void 0,height:void 0}),a=i[0],u=i[1],s=W(!1);ie(function(){return s.current=!1,function(){s.current=!0}},[]);var l=W({width:void 0,height:void 0}),d=jh(ve(function(c){return(!o.current||o.current.box!==e.box||o.current.round!==r)&&(o.current={box:e.box,round:r,instance:new ResizeObserver(function(f){var h=f[0],p=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",m=_a(h,p,"inlineSize"),_=_a(h,p,"blockSize"),v=m?r(m):void 0,y=_?r(_):void 0;if(l.current.width!==v||l.current.height!==y){var T={width:v,height:y};l.current.width=v,l.current.height=y,n.current?n.current(T):s.current||u(T)}})}),o.current.instance.observe(c,{box:e.box}),function(){o.current&&o.current.instance.unobserve(c)}},[e.box,r]),e.ref);return ae(function(){return{ref:d,width:a.width,height:a.height}},[d,a.width,a.height])}var Xs="kvfysmfp",Qs="ufhsfnkm",zh=".".concat(Xs,"{overflow:hidden;touch-action:none}.").concat(Qs,"{transform-origin: 0 0}"),Fh=typeof window>"u",Hh=function(){return!Fh&&("ontouchstart"in window||navigator.maxTouchPoints>0)};var Pm=function(e){var t=e.x,n=e.y,r=e.scale;return"scale3d(".concat(r,",").concat(r,", 1) translate3d(").concat(t,"px, ").concat(n,"px, 0)")};var Bh=Math.min,Uh=Math.max;function va(e){var t=e.containerDimension,n=e.childDimension,r=e.padding,o=e.centerContained,i=n-t;return i+2*r<=0&&o?[i/2,i/2]:[Bh(i+r,0)-r,Uh(0,i+r)]}var ya=function(e,t){return t?"".concat(e," ").concat(t):e},Rn=Math.abs,qh=Math.min,Wh=Math.sqrt,eu=typeof window>"u",Kh=eu?!1:/(Mac)/i.test(navigator.platform),Ot=function(e){return e==="drag"},en=function(e){return e==="zoom"},Gh=function(e){return Kh&&e.ctrlKey},tn=function(e){e.stopPropagation(),e.preventDefault()},ga=function(e,t){var n=e.x-t.x,r=e.y-t.y;return Wh(n*n+r*r)},Yh=function(e,t){var n=ga(e[0],e[1]),r=ga(t[0],t[1]);return r/n},Zh=function(e,t){return e>t-.01&&et?t:n},Qh=function(e){return!(e.ctrlKey||e.metaKey)},ep=function(e){if(e){var t=e.offsetWidth,n=e.offsetHeight;if(t&&n)return{width:t,height:n};var r=getComputedStyle(e),o=parseFloat(r.width),i=parseFloat(r.height);if(i&&o)return{width:o,height:i}}return{width:0,height:0}},tp=function(e,t){return{x:t.x-e.x,y:t.y-e.y}},np=function(e,t){return e.x===t.x&&e.y===t.y},lt=function(){},Dn={x:0,y:0},Rm=function(e){gl(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._prevDragMovePoint=null,n._containerObserver=null,n._fingers=0,n._firstMove=!0,n._initialOffset=he({},Dn),n._interaction=null,n._isDoubleTap=!1,n._isOffsetsSet=!1,n._lastDragPosition=null,n._lastScale=1,n._lastTouchStart=0,n._lastZoomCenter=null,n._listenMouseMove=!1,n._nthZoom=0,n._offset=he({},Dn),n._startOffset=he({},Dn),n._startTouches=null,n._updatePlaned=!1,n._wheelTimeOut=null,n._zoomFactor=1,n._initialZoomFactor=1,n._draggingPoint=he({},Dn),n._ignoreNextClick=!1,n._containerRef=vo(),n._handleClick=function(r){n._ignoreNextClick&&(n._ignoreNextClick=!1,r.stopPropagation())},n._onResize=function(){var r;!((r=n._containerRef)===null||r===void 0)&&r.current&&(n._updateInitialZoomFactor(),n._setupOffsets(),n._update())},n._handlerOnTouchEnd=n._handlerIfEnable(function(r){n._fingers=r.touches.length,n.props.shouldCancelHandledTouchEndEvents&&(en(n._interaction)||Ot(n._interaction)&&(n._startOffset.x!==n._offset.x||n._startOffset.y!==n._offset.y))&&tn(r),Ot(n._interaction)&&!n._enoughToDrag()&&n._handleClick(r),n._updateInteraction(r)}),n._handlerOnTouchStart=n._handlerIfEnable(function(r){n._firstMove=!0,n._fingers=r.touches.length,n._detectDoubleTap(r)}),n._handlerOnTouchMove=n._handlerIfEnable(function(r){n._isDoubleTap||(n._collectInertia(r),n._firstMove?(n._updateInteraction(r),n._interaction&&tn(r),n._startOffset=he({},n._offset),n._startTouches=Ln(r.touches)):(en(n._interaction)?n._startTouches&&n._startTouches.length===2&&r.touches.length===2&&n._handleZoom(r,Yh(n._startTouches,Ln(r.touches))):Ot(n._interaction)&&n._handleDrag(r),n._interaction&&(tn(r),n._update())),n._firstMove=!1)}),n._handlerWheel=function(r){if(!n.props.shouldInterceptWheel(r)){tn(r);var o=r.pageX,i=r.pageY,a=r.deltaY,u=r.deltaMode,s=1;(Gh(r)||u===1)&&(s=15);var l={touches:[{pageX:o,pageY:i}]},d=n._getOffsetByFirstTouch(l),c=a*s;n._stopAnimation(),n._scaleTo(n._zoomFactor-c/n.props.wheelScaleFactor,d),n._update(),clearTimeout(n._wheelTimeOut),n._wheelTimeOut=setTimeout(function(){return n._sanitize()},100)}},n._handlers=n.props.isTouch()?[["touchstart",n._handlerOnTouchStart],["touchend",n._handlerOnTouchEnd],["touchmove",n._handlerOnTouchMove]]:[["mousemove",n.simulate(n._handlerOnTouchMove),n.props._document],["mouseup",n.simulate(n._handlerOnTouchEnd),n.props._document],["mousedown",n.simulate(n._handlerOnTouchStart)],["click",n._handleClick],["wheel",n._handlerWheel]],n}return t.prototype._handleDragStart=function(n){this._ignoreNextClick=!0,this.props.onDragStart(),this._stopAnimation(),this._resetInertia(),this._lastDragPosition=null,this._hasInteraction=!0,this._draggingPoint=this._offset,this._handleDrag(n)},t.prototype._handleDrag=function(n){var r=this._getOffsetByFirstTouch(n);this._enoughToDrag()?this._drag(r,this._lastDragPosition):this._virtualDrag(r,this._lastDragPosition),this._offset=this._sanitizeOffset(this._offset),this._lastDragPosition=r},t.prototype._resetInertia=function(){this._velocity=null,this._prevDragMovePoint=null},t.prototype._realizeInertia=function(){var n=this,r=this.props,o=r.inertiaFriction,i=r.inertia;if(!(!i||!this._velocity)){var a=this._velocity,u=a.x,s=a.y;if(u||s){this._stopAnimation(),this._resetInertia();var l=function(){if(u*=o,s*=o,!u&&!s)return n._stopAnimation();var d=he({},n._offset);if(n._addOffset({x:u,y:s}),n._offset=n._sanitizeOffset(n._offset),np(d,n._offset))return n._stopAnimation();n._update({isAnimation:!0})};this._animate(l,{duration:9999})}}},t.prototype._collectInertia=function(n){var r=n.touches;if(this.props.inertia){var o=Ln(r)[0],i=this._prevDragMovePoint;i&&(this._velocity=tp(o,i)),this._prevDragMovePoint=o}},t.prototype._handleDragEnd=function(){this.props.onDragEnd(),this._end(),this._realizeInertia()},t.prototype._handleZoomStart=function(){this.props.onZoomStart(),this._stopAnimation(),this._lastScale=1,this._nthZoom=0,this._lastZoomCenter=null,this._hasInteraction=!0},t.prototype._handleZoom=function(n,r){var o=Xh(this._getOffsetTouches(n)),i=r/this._lastScale;this._lastScale=r,this._nthZoom+=1,this._nthZoom>3&&(this._scale(i,o),this._drag(o,this._lastZoomCenter),this.props.enforceBoundsDuringZoom&&(this._offset=this._sanitizeOffset(this._offset))),this._lastZoomCenter=o},t.prototype._handleZoomEnd=function(){this.props.onZoomEnd(),this._end()},t.prototype._handleDoubleTap=function(n){var r=this;if(!(this._hasInteraction||this.props.tapZoomFactor===0)){var o=this.props.doubleTapZoomOutOnMaxScale&&this._zoomFactor===this.props.maxZoom||this.props.doubleTapToggleZoom&&this._zoomFactor>1;this.props.onDoubleTap(),this._ignoreNextClick=!0;var i=this._zoomFactor+this.props.tapZoomFactor,a=this._zoomFactor,u=function(l){r._scaleTo(a+l*(i-a),s)},s=this._getOffsetByFirstTouch(n);this._isDoubleTap=!0,a>i&&(s=this._getCurrentZoomCenter()),o?this._zoomOutAnimation():this._animate(u)}},t.prototype._computeInitialOffset=function(){var n=this._getContainerRect(),r=this._getChildSize(),o=r.width,i=r.height,a=-Rn(o*this._getInitialZoomFactor()-n.width)/2,u=-Rn(i*this._getInitialZoomFactor()-n.height)/2;this._initialOffset={x:a,y:u}},t.prototype._resetOffset=function(){this._offset=he({},this._initialOffset)},t.prototype._setupOffsets=function(){this.props.setOffsetsOnce&&this._isOffsetsSet||(this._isOffsetsSet=!0,this._computeInitialOffset(),this._resetOffset())},t.prototype._sanitizeOffset=function(n){var r=this._getContainerRect(),o=this._getChildSize(),i=o.width,a=o.height,u=i*this._getInitialZoomFactor()*this._zoomFactor,s=a*this._getInitialZoomFactor()*this._zoomFactor,l=va({containerDimension:r.width,childDimension:u,padding:this.props.horizontalPadding,centerContained:this.props.centerContained}),d=l[0],c=l[1],f=va({containerDimension:r.height,childDimension:s,padding:this.props.verticalPadding,centerContained:this.props.centerContained}),h=f[0],p=f[1];return{x:Ur(d,c,n.x),y:Ur(h,p,n.y)}},t.prototype.alignCenter=function(n){var r=this,o=he({duration:250,animated:!0},n),i=o.x,a=o.y,u=o.scale,s=o.animated,l=o.duration,d=i*this._initialZoomFactor,c=a*this._initialZoomFactor,f=this._zoomFactor,h=he({},this._offset),p=this._getContainerRect(),m={x:p.width/2,y:p.height/2};if(this._zoomFactor=1,this._offset={x:-(m.x-d),y:-(m.y-c)},this._scaleTo(u,m),this._stopAnimation(),!s)return this._update();var _=this._zoomFactor-f,v={x:this._offset.x-h.x,y:this._offset.y-h.y};this._zoomFactor=f,this._offset=he({},h);var y=function(T){var M=h.x+v.x*T,x=h.y+v.y*T;r._zoomFactor=f+_*T,r._offset=r._sanitizeOffset({x:M,y:x}),r._update()};this._animate(y,{callback:function(){return r._sanitize()},duration:l})},t.prototype.scaleTo=function(n){var r=this,o=he({duration:250,animated:!0},n),i=o.x,a=o.y,u=o.scale,s=o.animated,l=o.duration,d=this._zoomFactor,c=he({},this._offset);if(this._zoomFactor=1,this._offset={x:0,y:0},this._scaleTo(u,{x:i,y:a}),this._stopAnimation(),!s)return this._update();var f=this._zoomFactor-d,h={x:this._offset.x-c.x,y:this._offset.y-c.y};this._zoomFactor=d,this._offset=he({},c);var p=function(m){var _=c.x+h.x*m,v=c.y+h.y*m;r._zoomFactor=d+f*m,r._offset={x:_,y:v},r._update()};this._animate(p,{callback:function(){return r._sanitize()},duration:l})},t.prototype._scaleTo=function(n,r){this._scale(n/this._zoomFactor,r),this._offset=this._sanitizeOffset(this._offset)},t.prototype._scale=function(n,r){n=this._scaleZoomFactor(n),this._addOffset({x:(n-1)*(r.x+this._offset.x),y:(n-1)*(r.y+this._offset.y)}),this.props.onZoomUpdate()},t.prototype._scaleZoomFactor=function(n){var r=this._zoomFactor;return this._zoomFactor*=n,this._zoomFactor=Ur(this.props.minZoom,this.props.maxZoom,this._zoomFactor),this._zoomFactor/r},t.prototype._canDrag=function(){return this.props.draggableUnZoomed||!Zh(this._zoomFactor,1)},t.prototype._drag=function(n,r){if(r){var o=-(n.y-r.y),i=-(n.x-r.x);this.props.lockDragAxis?Rn(i)>Rn(o)?this._addOffset({x:i,y:0}):this._addOffset({y:o,x:0}):this._addOffset({x:i,y:o}),this.props.onDragUpdate()}},t.prototype._virtualDrag=function(n,r){if(r){var o=-(n.y-r.y),i=-(n.x-r.x);this._draggingPoint={x:i+this._draggingPoint.x,y:o+this._draggingPoint.y}}},t.prototype._addOffset=function(n){var r=this._offset,o=r.x,i=r.y;this._offset={x:o+n.x,y:i+n.y}},t.prototype._sanitize=function(){this._zoomFactor=l?(n(1),o._stopAnimation(),s(),o._update()):(f=u(f),n(f),o._update({isAnimation:!0}),requestAnimationFrame(d))}};this._inAnimation=!0,requestAnimationFrame(d)},t.prototype._stopAnimation=function(){this._inAnimation=!1},t.prototype._end=function(){this._hasInteraction=!1,this._sanitize(),this._update()},t.prototype._getContainerRect=function(){var n=this._containerRef.current;return n.getBoundingClientRect()},t.prototype._getChildSize=function(){var n=this._containerRef.current;return ep(n==null?void 0:n.firstElementChild)},t.prototype._updateInitialZoomFactor=function(){var n=this._getContainerRect(),r=this._getChildSize(),o=n.width/r.width,i=n.height/r.height;this._initialZoomFactor=qh(o,i)},t.prototype._bindEvents=function(){var n=this,r=this._containerRef.current;window.ResizeObserver?(this._containerObserver=new ResizeObserver(this._onResize),this._containerObserver.observe(r)):window.addEventListener("resize",this._onResize),this._handlers.forEach(function(o){var i=o[0],a=o[1],u=o[2];(u||r).addEventListener(i,a,!0)}),Array.from(r.querySelectorAll("img")).forEach(function(o){return o.addEventListener("load",n._onResize)})},t.prototype._unSubscribe=function(){var n=this,r=this._containerRef.current;this._containerObserver&&(this._containerObserver.disconnect(),this._containerObserver=null),window.removeEventListener("resize",this._onResize),this._handlers.forEach(function(o){var i=o[0],a=o[1],u=o[2];(u||r).removeEventListener(i,a,!0)}),Array.from(r.querySelectorAll("img")).forEach(function(o){return o.removeEventListener("load",n._onResize)})},t.prototype._update=function(n){var r=this;if(!this._updatePlaned){var o=function(){var i=r._getInitialZoomFactor()*r._zoomFactor,a=-r._offset.x/i,u=-r._offset.y/i;r.props.onUpdate({scale:i,x:a,y:u})};if(n!=null&&n.isAnimation)return o();this._updatePlaned=!0,requestAnimationFrame(function(){r._updatePlaned=!1,o()})}},t.prototype._handlerIfEnable=function(n){var r=this;return function(){for(var o=[],i=0;ir?n-r:r-n},t.prototype._enoughToDrag=function(){return this._distanceBetweenNumbers(this._startOffset.x,this._draggingPoint.x)>5||this._distanceBetweenNumbers(this._startOffset.y,this._draggingPoint.y)>5},t.prototype._updateInteraction=function(n){var r=this._fingers;if(r===2)return this._setInteraction("zoom",n);if(r===1&&this._canDrag())return this._setInteraction("drag",n);this._setInteraction(null,n)},t.prototype._detectDoubleTap=function(n){var r=new Date().getTime();this._fingers>1&&(this._lastTouchStart=0),r-this._lastTouchStart<300?(tn(n),this._handleDoubleTap(n),en(this._interaction)?this._handleZoomEnd():Ot(this._interaction)&&this._handleDragEnd()):this._isDoubleTap=!1,this._fingers===1&&(this._lastTouchStart=r)},t.prototype.simulate=function(n){var r=this;return function(o){var i=o.pageX,a=o.pageY,u=o.type,s=u==="mouseup",l=u==="mousedown";l&&(o.preventDefault(),r._listenMouseMove=!0),r._listenMouseMove&&(o.touches=s?[]:[{pageX:i,pageY:a}],n(o)),s&&(r._listenMouseMove=!1)}},t.prototype.componentDidMount=function(){this._bindEvents(),this._update()},t.prototype.componentWillUnmount=function(){this._stopAnimation(),this._unSubscribe()},t.prototype.render=function(){var n=this.props,r=n.children,o=n.containerProps,i=dr.only(r),a=o||{};return Rt.createElement(Rt.Fragment,null,Rt.createElement("style",null,zh),Rt.createElement("div",he({},a,{ref:this._containerRef,className:ya(Xs,a.className)}),fr(i,{className:ya(Qs,i.props.className)})))},t.defaultProps={animationDuration:250,draggableUnZoomed:!0,enforceBoundsDuringZoom:!1,centerContained:!1,enabled:!0,inertia:!0,inertiaFriction:.96,horizontalPadding:0,isTouch:Hh,lockDragAxis:!1,maxZoom:5,minZoom:.5,onDoubleTap:lt,onDragEnd:lt,onDragStart:lt,onDragUpdate:lt,onZoomEnd:lt,onZoomStart:lt,onZoomUpdate:lt,setOffsetsOnce:!1,shouldInterceptWheel:Qh,shouldCancelHandledTouchEndEvents:!1,tapZoomFactor:1,verticalPadding:0,wheelScaleFactor:1500,zoomOutFactor:1.3,doubleTapZoomOutOnMaxScale:!1,doubleTapToggleZoom:!1,_document:eu?null:window.document},t}(Re);if(!1)var Lm,Dm,Im,km,Nm,$m,jm;var rp=Object.defineProperty,op=(e,t,n)=>t in e?rp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,In=(e,t,n)=>(op(e,typeof t!="symbol"?t+"":t,n),n),mo=new Map,kn=new WeakMap,ba=0,ip=void 0;function ap(e){return e?(kn.has(e)||(ba+=1,kn.set(e,ba.toString())),kn.get(e)):"0"}function sp(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?ap(e.root):e[t]}`).toString()}function up(e){const t=sp(e);let n=mo.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(u=>{var s;const l=u.isIntersecting&&o.some(d=>u.intersectionRatio>=d);e.trackVisibility&&typeof u.isVisible>"u"&&(u.isVisible=l),(s=r.get(u.target))==null||s.forEach(d=>{d(l,u)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},mo.set(t,n)}return n}function cp(e,t,n={},r=ip){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=up(n),u=a.get(e)||[];return a.has(e)||a.set(e,u),u.push(t),i.observe(e),function(){u.splice(u.indexOf(t),1),u.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),mo.delete(o))}}function lp(e){return typeof e.children!="function"}var zm=class extends Re{constructor(e){super(e),In(this,"node",null),In(this,"_unobserveCb",null),In(this,"handleNode",t=>{this.node&&(this.unobserve(),!t&&!this.props.triggerOnce&&!this.props.skip&&this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=t||null,this.observeNode()}),In(this,"handleChange",(t,n)=>{t&&this.props.triggerOnce&&this.unobserve(),lp(this.props)||this.setState({inView:t,entry:n}),this.props.onChange&&this.props.onChange(t,n)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;const{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:o,fallbackInView:i}=this.props;this._unobserveCb=cp(this.node,this.handleChange,{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:o},i)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){const{children:e}=this.props;if(typeof e=="function"){const{inView:h,entry:p}=this.state;return e({inView:h,entry:p,ref:this.handleNode})}const{as:t,triggerOnce:n,threshold:r,root:o,rootMargin:i,onChange:a,skip:u,trackVisibility:s,delay:l,initialInView:d,fallbackInView:c,...f}=this.props;return te(t||"div",{ref:this.handleNode,...f},e)}};var Zo={exports:{}},Fm=Zo.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(s,l){if(!i[s]){i[s]={};for(var d=0;d>>8,d[c*2+1]=h%256}return d},decompressFromUint8Array:function(s){if(s==null)return u.decompress(s);for(var l=new Array(s.length/2),d=0,c=l.length;d>1}else{for(f=1,c=0;c>1}y--,y==0&&(y=Math.pow(2,M),M++),delete p[v]}else for(f=h[v],c=0;c>1;y--,y==0&&(y=Math.pow(2,M),M++),h[_]=T++,v=String(m)}if(v!==""){if(Object.prototype.hasOwnProperty.call(p,v)){if(v.charCodeAt(0)<256){for(c=0;c>1}else{for(f=1,c=0;c>1}y--,y==0&&(y=Math.pow(2,M),M++),delete p[v]}else for(f=h[v],c=0;c>1;y--,y==0&&(y=Math.pow(2,M),M++)}for(f=2,c=0;c>1;for(;;)if(b=b<<1,C==l-1){x.push(d(b));break}else C++;return x.join("")},decompress:function(s){return s==null?"":s==""?null:u._decompress(s.length,32768,function(l){return s.charCodeAt(l)})},_decompress:function(s,l,d){var c=[],f,h=4,p=4,m=3,_="",v=[],y,T,M,x,b,C,B,S={val:d(0),position:l,index:1};for(y=0;y<3;y+=1)c[y]=y;for(M=0,b=Math.pow(2,2),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;switch(f=M){case 0:for(M=0,b=Math.pow(2,8),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;B=n(M);break;case 1:for(M=0,b=Math.pow(2,16),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;B=n(M);break;case 2:return""}for(c[3]=B,T=B,v.push(B);;){if(S.index>s)return"";for(M=0,b=Math.pow(2,m),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;switch(B=M){case 0:for(M=0,b=Math.pow(2,8),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;c[p++]=n(M),B=p-1,h--;break;case 1:for(M=0,b=Math.pow(2,16),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;c[p++]=n(M),B=p-1,h--;break;case 2:return v.join("")}if(h==0&&(h=Math.pow(2,m),m++),c[B])_=c[B];else if(B===p)_=T+T.charAt(0);else return null;v.push(_),c[p++]=T+_.charAt(0),h--,T=_,h==0&&(h=Math.pow(2,m),m++)}}};return u}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Zo);var Hm=Zo.exports;export{lu as $,Xe as A,mm as B,yf as C,Mp as D,xc as E,W as F,hn as G,yp as H,zm as I,Om as J,Cp as K,Ap as L,em as M,at as N,Up as O,ne as P,Wp as Q,_p as R,Qp as S,lr as T,no as U,kc as V,Pp as W,pn as X,im as Y,Xp as Z,ie as _,se as a,cm as a0,sm as a1,dm as a2,hm as a3,pm as a4,zr as a5,Ph as a6,bm as a7,wm as a8,Em as a9,Sm as aa,Tm as ab,xm as ac,Cm as ad,Ee as ae,Mm as af,Pm as ag,Rm as ah,Am as ai,Ip as aj,_m as ak,ym as al,vm as am,Sp as b,Kp as c,nm as d,Mo as e,kh as f,Ie as g,mc as h,gp as i,gm as j,Mh as k,Hm as l,mp as m,rm as n,tm as o,_e as p,ae as q,om as r,us as s,jp as t,xp as u,qu as v,En as w,ve as x,cr as y,wp as z}; //# sourceMappingURL=vendor-7Tkqe_A2.js.map