import{c as ae,g as ue,r as fe,_ as M,D as hs}from"./env-c3598210.js";function hi(n,e){for(var t=0;t<e.length;t++){const r=e[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in n)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}/*! Capacitor: https://capacitorjs.com/ - MIT License */const ds=n=>{const e=new Map;e.set("web",{name:"web"});const t=n.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},r=(s,a)=>{t.platforms.set(s,a)},i=s=>{t.platforms.has(s)&&(t.currentPlatform=t.platforms.get(s))};return t.addPlatform=r,t.setPlatform=i,t},ps=n=>n.CapacitorPlatforms=ds(n),di=ps(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});di.addPlatform;di.setPlatform;var Pe;(function(n){n.Unimplemented="UNIMPLEMENTED",n.Unavailable="UNAVAILABLE"})(Pe||(Pe={}));class fn extends Error{constructor(e,t,r){super(e),this.message=e,this.code=t,this.data=r}}const gs=n=>{var e,t;return n!=null&&n.androidBridge?"android":!((t=(e=n==null?void 0:n.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||t===void 0)&&t.bridge?"ios":"web"},ms=n=>{var e,t,r,i,s;const a=n.CapacitorCustomPlatform||null,o=n.Capacitor||{},u=o.Plugins=o.Plugins||{},c=n.CapacitorPlatforms,l=()=>a!==null?a.name:gs(n),f=((e=c==null?void 0:c.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||l,h=()=>f()!=="web",w=((t=c==null?void 0:c.currentPlatform)===null||t===void 0?void 0:t.isNativePlatform)||h,y=O=>{const $=x.get(O);return!!($!=null&&$.platforms.has(f())||j(O))},A=((r=c==null?void 0:c.currentPlatform)===null||r===void 0?void 0:r.isPluginAvailable)||y,L=O=>{var $;return($=o.PluginHeaders)===null||$===void 0?void 0:$.find(q=>q.name===O)},j=((i=c==null?void 0:c.currentPlatform)===null||i===void 0?void 0:i.getPluginHeader)||L,k=O=>n.console.error(O),D=(O,$,q)=>Promise.reject(`${q} does not have an implementation of "${$}".`),x=new Map,I=(O,$={})=>{const q=x.get(O);if(q)return console.warn(`Capacitor plugin "${O}" already registered. Cannot register plugins twice.`),q.proxy;const R=f(),E=j(O);let V;const K=async()=>(!V&&R in $?V=typeof $[R]=="function"?V=await $[R]():V=$[R]:a!==null&&!V&&"web"in $&&(V=typeof $.web=="function"?V=await $.web():V=$.web),V),d=(T,P)=>{var N,H;if(E){const U=E==null?void 0:E.methods.find(B=>P===B.name);if(U)return U.rtype==="promise"?B=>o.nativePromise(O,P.toString(),B):(B,te)=>o.nativeCallback(O,P.toString(),B,te);if(T)return(N=T[P])===null||N===void 0?void 0:N.bind(T)}else{if(T)return(H=T[P])===null||H===void 0?void 0:H.bind(T);throw new fn(`"${O}" plugin is not implemented on ${R}`,Pe.Unimplemented)}},p=T=>{let P;const N=(...H)=>{const U=K().then(B=>{const te=d(B,T);if(te){const X=te(...H);return P=X==null?void 0:X.remove,X}else throw new fn(`"${O}.${T}()" is not implemented on ${R}`,Pe.Unimplemented)});return T==="addListener"&&(U.remove=async()=>P()),U};return N.toString=()=>`${T.toString()}() { [capacitor code] }`,Object.defineProperty(N,"name",{value:T,writable:!1,configurable:!1}),N},g=p("addListener"),v=p("removeListener"),m=(T,P)=>{const N=g({eventName:T},P),H=async()=>{const B=await N;v({eventName:T,callbackId:B},P)},U=new Promise(B=>N.then(()=>B({remove:H})));return U.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await H()},U},S=new Proxy({},{get(T,P){switch(P){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return E?m:g;case"removeListener":return v;default:return p(P)}}});return u[O]=S,x.set(O,{name:O,proxy:S,platforms:new Set([...Object.keys($),...E?[R]:[]])}),S},_=((s=c==null?void 0:c.currentPlatform)===null||s===void 0?void 0:s.registerPlugin)||I;return o.convertFileSrc||(o.convertFileSrc=O=>O),o.getPlatform=f,o.handleError=k,o.isNativePlatform=w,o.isPluginAvailable=A,o.pluginMethodNoop=D,o.registerPlugin=_,o.Exception=fn,o.DEBUG=!!o.DEBUG,o.isLoggingEnabled=!!o.isLoggingEnabled,o.platform=o.getPlatform(),o.isNative=o.isNativePlatform(),o},ys=n=>n.Capacitor=ms(n),Ae=ys(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Zt=Ae.registerPlugin;Ae.Plugins;class pi{constructor(e){this.listeners={},this.retainedEventArguments={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,t){let r=!1;this.listeners[e]||(this.listeners[e]=[],r=!0),this.listeners[e].push(t);const s=this.windowListeners[e];s&&!s.registered&&this.addWindowListener(s),r&&this.sendRetainedArgumentsForEvent(e);const a=async()=>this.removeListener(e,t);return Promise.resolve({remove:a})}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,r){const i=this.listeners[e];if(!i){if(r){let s=this.retainedEventArguments[e];s||(s=[]),s.push(t),this.retainedEventArguments[e]=s}return}i.forEach(s=>s(t))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:r=>{this.notifyListeners(t,r)}}}unimplemented(e="not implemented"){return new Ae.Exception(e,Pe.Unimplemented)}unavailable(e="not available"){return new Ae.Exception(e,Pe.Unavailable)}async removeListener(e,t){const r=this.listeners[e];if(!r)return;const i=r.indexOf(t);this.listeners[e].splice(i,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){const t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(r=>{this.notifyListeners(e,r)}))}}const nr=n=>encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),rr=n=>n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class vs extends pi{async getCookies(){const e=document.cookie,t={};return e.split(";").forEach(r=>{if(r.length<=0)return;let[i,s]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");i=rr(i).trim(),s=rr(s).trim(),t[i]=s}),t}async setCookie(e){try{const t=nr(e.key),r=nr(e.value),i=`; expires=${(e.expires||"").replace("expires=","")}`,s=(e.path||"/").replace("path=",""),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${t}=${r||""}${i}; path=${s}; ${a};`}catch(t){return Promise.reject(t)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(t){return Promise.reject(t)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const t of e)document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}const Kg=Zt("CapacitorCookies",{web:()=>new vs}),bs=async n=>new Promise((e,t)=>{const r=new FileReader;r.onload=()=>{const i=r.result;e(i.indexOf(",")>=0?i.split(",")[1]:i)},r.onerror=i=>t(i),r.readAsDataURL(n)}),ws=(n={})=>{const e=Object.keys(n);return Object.keys(n).map(i=>i.toLocaleLowerCase()).reduce((i,s,a)=>(i[s]=n[e[a]],i),{})},Ss=(n,e=!0)=>n?Object.entries(n).reduce((r,i)=>{const[s,a]=i;let o,u;return Array.isArray(a)?(u="",a.forEach(c=>{o=e?encodeURIComponent(c):c,u+=`${s}=${o}&`}),u.slice(0,-1)):(o=e?encodeURIComponent(a):a,u=`${s}=${o}`),`${r}&${u}`},"").substr(1):null,Ts=(n,e={})=>{const t=Object.assign({method:n.method||"GET",headers:n.headers},e),i=ws(n.headers)["content-type"]||"";if(typeof n.data=="string")t.body=n.data;else if(i.includes("application/x-www-form-urlencoded")){const s=new URLSearchParams;for(const[a,o]of Object.entries(n.data||{}))s.set(a,o);t.body=s.toString()}else if(i.includes("multipart/form-data")||n.data instanceof FormData){const s=new FormData;if(n.data instanceof FormData)n.data.forEach((o,u)=>{s.append(u,o)});else for(const o of Object.keys(n.data))s.append(o,n.data[o]);t.body=s;const a=new Headers(t.headers);a.delete("content-type"),t.headers=a}else(i.includes("application/json")||typeof n.data=="object")&&(t.body=JSON.stringify(n.data));return t};class Es extends pi{async request(e){const t=Ts(e,e.webFetchExtra),r=Ss(e.params,e.shouldEncodeUrlParams),i=r?`${e.url}?${r}`:e.url,s=await fetch(i,t),a=s.headers.get("content-type")||"";let{responseType:o="text"}=s.ok?e:{};a.includes("application/json")&&(o="json");let u,c;switch(o){case"arraybuffer":case"blob":c=await s.blob(),u=await bs(c);break;case"json":u=await s.json();break;case"document":case"text":default:u=await s.text()}const l={};return s.headers.forEach((f,h)=>{l[h]=f}),{data:u,headers:l,status:s.status,url:s.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}const _s=Zt("CapacitorHttp",{web:()=>new Es});var gi={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(ae,function(){var t=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",c="day",l="week",f="month",h="quarter",w="year",y="date",A="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|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,k={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 p=["th","st","nd","rd"],g=d%100;return"["+d+(p[(g-20)%10]||p[g]||p[0])+"]"}},D=function(d,p,g){var v=String(d);return!v||v.length>=p?d:""+Array(p+1-v.length).join(g)+d},x={s:D,z:function(d){var p=-d.utcOffset(),g=Math.abs(p),v=Math.floor(g/60),m=g%60;return(p<=0?"+":"-")+D(v,2,"0")+":"+D(m,2,"0")},m:function d(p,g){if(p.date()<g.date())return-d(g,p);var v=12*(g.year()-p.year())+(g.month()-p.month()),m=p.clone().add(v,f),S=g-m<0,T=p.clone().add(v+(S?-1:1),f);return+(-(v+(g-m)/(S?m-T:T-m))||0)},a:function(d){return d<0?Math.ceil(d)||0:Math.floor(d)},p:function(d){return{M:f,y:w,w:l,d:c,D:y,h:u,m:o,s:a,ms:s,Q:h}[d]||String(d||"").toLowerCase().replace(/s$/,"")},u:function(d){return d===void 0}},I="en",_={};_[I]=k;var O="$isDayjsObject",$=function(d){return d instanceof V||!(!d||!d[O])},q=function d(p,g,v){var m;if(!p)return I;if(typeof p=="string"){var S=p.toLowerCase();_[S]&&(m=S),g&&(_[S]=g,m=S);var T=p.split("-");if(!m&&T.length>1)return d(T[0])}else{var P=p.name;_[P]=p,m=P}return!v&&m&&(I=m),m||!v&&I},R=function(d,p){if($(d))return d.clone();var g=typeof p=="object"?p:{};return g.date=d,g.args=arguments,new V(g)},E=x;E.l=q,E.i=$,E.w=function(d,p){return R(d,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var V=function(){function d(g){this.$L=q(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[O]=!0}var p=d.prototype;return p.parse=function(g){this.$d=function(v){var m=v.date,S=v.utc;if(m===null)return new Date(NaN);if(E.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var T=m.match(L);if(T){var P=T[2]-1||0,N=(T[7]||"0").substring(0,3);return S?new Date(Date.UTC(T[1],P,T[3]||1,T[4]||0,T[5]||0,T[6]||0,N)):new Date(T[1],P,T[3]||1,T[4]||0,T[5]||0,T[6]||0,N)}}return new Date(m)}(g),this.init()},p.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},p.$utils=function(){return E},p.isValid=function(){return this.$d.toString()!==A},p.isSame=function(g,v){var m=R(g);return this.startOf(v)<=m&&m<=this.endOf(v)},p.isAfter=function(g,v){return R(g)<this.startOf(v)},p.isBefore=function(g,v){return this.endOf(v)<R(g)},p.$g=function(g,v,m){return E.u(g)?this[v]:this.set(m,g)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(g,v){var m=this,S=!!E.u(v)||v,T=E.p(g),P=function(be,Y){var de=E.w(m.$u?Date.UTC(m.$y,Y,be):new Date(m.$y,Y,be),m);return S?de:de.endOf(c)},N=function(be,Y){return E.w(m.toDate()[be].apply(m.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(Y)),m)},H=this.$W,U=this.$M,B=this.$D,te="set"+(this.$u?"UTC":"");switch(T){case w:return S?P(1,0):P(31,11);case f:return S?P(1,U):P(0,U+1);case l:var X=this.$locale().weekStart||0,Ne=(H<X?H+7:H)-X;return P(S?B-Ne:B+(6-Ne),U);case c:case y:return N(te+"Hours",0);case u:return N(te+"Minutes",1);case o:return N(te+"Seconds",2);case a:return N(te+"Milliseconds",3);default:return this.clone()}},p.endOf=function(g){return this.startOf(g,!1)},p.$set=function(g,v){var m,S=E.p(g),T="set"+(this.$u?"UTC":""),P=(m={},m[c]=T+"Date",m[y]=T+"Date",m[f]=T+"Month",m[w]=T+"FullYear",m[u]=T+"Hours",m[o]=T+"Minutes",m[a]=T+"Seconds",m[s]=T+"Milliseconds",m)[S],N=S===c?this.$D+(v-this.$W):v;if(S===f||S===w){var H=this.clone().set(y,1);H.$d[P](N),H.init(),this.$d=H.set(y,Math.min(this.$D,H.daysInMonth())).$d}else P&&this.$d[P](N);return this.init(),this},p.set=function(g,v){return this.clone().$set(g,v)},p.get=function(g){return this[E.p(g)]()},p.add=function(g,v){var m,S=this;g=Number(g);var T=E.p(v),P=function(U){var B=R(S);return E.w(B.date(B.date()+Math.round(U*g)),S)};if(T===f)return this.set(f,this.$M+g);if(T===w)return this.set(w,this.$y+g);if(T===c)return P(1);if(T===l)return P(7);var N=(m={},m[o]=r,m[u]=i,m[a]=t,m)[T]||1,H=this.$d.getTime()+g*N;return E.w(H,this)},p.subtract=function(g,v){return this.add(-1*g,v)},p.format=function(g){var v=this,m=this.$locale();if(!this.isValid())return m.invalidDate||A;var S=g||"YYYY-MM-DDTHH:mm:ssZ",T=E.z(this),P=this.$H,N=this.$m,H=this.$M,U=m.weekdays,B=m.months,te=m.meridiem,X=function(Y,de,je,Ze){return Y&&(Y[de]||Y(v,S))||je[de].slice(0,Ze)},Ne=function(Y){return E.s(P%12||12,Y,"0")},be=te||function(Y,de,je){var Ze=Y<12?"AM":"PM";return je?Ze.toLowerCase():Ze};return S.replace(j,function(Y,de){return de||function(je){switch(je){case"YY":return String(v.$y).slice(-2);case"YYYY":return E.s(v.$y,4,"0");case"M":return H+1;case"MM":return E.s(H+1,2,"0");case"MMM":return X(m.monthsShort,H,B,3);case"MMMM":return X(B,H);case"D":return v.$D;case"DD":return E.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return X(m.weekdaysMin,v.$W,U,2);case"ddd":return X(m.weekdaysShort,v.$W,U,3);case"dddd":return U[v.$W];case"H":return String(P);case"HH":return E.s(P,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return be(P,N,!0);case"A":return be(P,N,!1);case"m":return String(N);case"mm":return E.s(N,2,"0");case"s":return String(v.$s);case"ss":return E.s(v.$s,2,"0");case"SSS":return E.s(v.$ms,3,"0");case"Z":return T}return null}(Y)||T.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(g,v,m){var S,T=this,P=E.p(v),N=R(g),H=(N.utcOffset()-this.utcOffset())*r,U=this-N,B=function(){return E.m(T,N)};switch(P){case w:S=B()/12;break;case f:S=B();break;case h:S=B()/3;break;case l:S=(U-H)/6048e5;break;case c:S=(U-H)/864e5;break;case u:S=U/i;break;case o:S=U/r;break;case a:S=U/t;break;default:S=U}return m?S:E.a(S)},p.daysInMonth=function(){return this.endOf(f).$D},p.$locale=function(){return _[this.$L]},p.locale=function(g,v){if(!g)return this.$L;var m=this.clone(),S=q(g,v,!0);return S&&(m.$L=S),m},p.clone=function(){return E.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),K=V.prototype;return R.prototype=K,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",c],["$M",f],["$y",w],["$D",y]].forEach(function(d){K[d[1]]=function(p){return this.$g(p,d[0],d[1])}}),R.extend=function(d,p){return d.$i||(d(p,V,R),d.$i=!0),R},R.locale=q,R.isDayjs=$,R.unix=function(d){return R(1e3*d)},R.en=_[I],R.Ls=_,R.p={},R})})(gi);var Os=gi.exports;const jn=ue(Os);var ir;(function(n){n.Dark="DARK",n.Light="LIGHT",n.Default="DEFAULT"})(ir||(ir={}));var sr;(function(n){n.Body="body",n.Ionic="ionic",n.Native="native",n.None="none"})(sr||(sr={}));const et=Zt("Keyboard");var vn;(function(n){n.Dark="DARK",n.Light="LIGHT",n.Default="DEFAULT"})(vn||(vn={}));var ar;(function(n){n.None="NONE",n.Slide="SLIDE",n.Fade="FADE"})(ar||(ar={}));const or=Zt("StatusBar");function Ps(){if(typeof process>"u"){var n=typeof window<"u"?window:{},e=5e3,t=Date.now(),r=!1;n.document.addEventListener("deviceready",function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-t)+" ms"),r=!0}),setTimeout(function(){!r&&n.cordova&&console.warn("Ionic Native: deviceready did not fire within "+e+"ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")},e)}}/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var bn=function(n,e){return bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},bn(n,e)};function Mn(n,e){bn(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function lt(n){return typeof n=="function"}var ur=!1,se={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){var e=new Error;""+e.stack}ur=n},get useDeprecatedSynchronousErrorHandling(){return ur}};function Be(n){setTimeout(function(){throw n},0)}var ft={closed:!0,next:function(n){},error:function(n){if(se.useDeprecatedSynchronousErrorHandling)throw n;Be(n)},complete:function(){}},mi=function(){return Array.isArray||function(n){return n&&typeof n.length=="number"}}();function As(n){return n!==null&&typeof n=="object"}var Ls=function(){function n(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription:
`+e.map(function(t,r){return r+1+") "+t.toString()}).join(`
  `):"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n}(),ot=Ls,xs=function(){function n(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return n.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this,r=t._parentOrParents,i=t._ctorUnsubscribe,s=t._unsubscribe,a=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof n)r.remove(this);else if(r!==null)for(var o=0;o<r.length;++o){var u=r[o];u.remove(this)}if(lt(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(f){e=f instanceof ot?cr(f.errors):[f]}}if(mi(a))for(var o=-1,c=a.length;++o<c;){var l=a[o];if(As(l))try{l.unsubscribe()}catch(h){e=e||[],h instanceof ot?e=e.concat(cr(h.errors)):e.push(h)}}if(e)throw new ot(e)}},n.prototype.add=function(e){var t=e;if(!e)return n.EMPTY;switch(typeof e){case"function":t=new n(e);case"object":if(t===this||t.closed||typeof t.unsubscribe!="function")return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof n)){var r=t;t=new n,t._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=t._parentOrParents;if(i===null)t._parentOrParents=this;else if(i instanceof n){if(i===this)return t;t._parentOrParents=[i,this]}else if(i.indexOf(this)===-1)i.push(this);else return t;var s=this._subscriptions;return s===null?this._subscriptions=[t]:s.push(t),t},n.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);r!==-1&&t.splice(r,1)}},n.EMPTY=function(e){return e.closed=!0,e}(new n),n}();function cr(n){return n.reduce(function(e,t){return e.concat(t instanceof ot?t.errors:t)},[])}var wn=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),Oe=function(n){Mn(e,n);function e(t,r,i){var s=n.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=ft;break;case 1:if(!t){s.destination=ft;break}if(typeof t=="object"){t instanceof e?(s.syncErrorThrowable=t.syncErrorThrowable,s.destination=t,t.add(s)):(s.syncErrorThrowable=!0,s.destination=new lr(s,t));break}default:s.syncErrorThrowable=!0,s.destination=new lr(s,t,r,i);break}return s}return e.prototype[wn]=function(){return this},e.create=function(t,r,i){var s=new e(t,r,i);return s.syncErrorThrowable=!1,s},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(xs),lr=function(n){Mn(e,n);function e(t,r,i,s){var a=n.call(this)||this;a._parentSubscriber=t;var o,u=a;return lt(r)?o=r:r&&(o=r.next,i=r.error,s=r.complete,r!==ft&&(u=Object.create(r),lt(u.unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=o,a._error=i,a._complete=s,a}return e.prototype.next=function(t){if(!this.isStopped&&this._next){var r=this._parentSubscriber;!se.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(r,this._next,t)&&this.unsubscribe()}},e.prototype.error=function(t){if(!this.isStopped){var r=this._parentSubscriber,i=se.useDeprecatedSynchronousErrorHandling;if(this._error)!i||!r.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(r,this._error,t),this.unsubscribe());else if(r.syncErrorThrowable)i?(r.syncErrorValue=t,r.syncErrorThrown=!0):Be(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Be(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var i=function(){return t._complete.call(t._context)};!se.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(r,i),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,r){try{t.call(this._context,r)}catch(i){if(this.unsubscribe(),se.useDeprecatedSynchronousErrorHandling)throw i;Be(i)}},e.prototype.__tryOrSetError=function(t,r,i){if(!se.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,i)}catch(s){return se.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(Be(s),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Oe);function Cs(n){for(;n;){var e=n,t=e.closed,r=e.destination,i=e.isStopped;if(t||i)return!1;r&&r instanceof Oe?n=r:n=null}return!0}function $s(n,e,t){if(n){if(n instanceof Oe)return n;if(n[wn])return n[wn]()}return!n&&!e&&!t?new Oe(ft):new Oe(n,e,t)}var Ds=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ks(n){return n}function Is(n){return n.length===0?ks:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}var Hn=function(){function n(e){this._isScalar=!1,e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var i=this.operator,s=$s(e,t,r);if(i?s.add(i.call(s,this.source)):s.add(this.source||se.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),se.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){se.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Cs(e)?e.error(t):console.warn(t)}},n.prototype.forEach=function(e,t){var r=this;return t=fr(t),new t(function(i,s){var a;a=r.subscribe(function(o){try{e(o)}catch(u){s(u),a&&a.unsubscribe()}},s,i)})},n.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},n.prototype[Ds]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?this:Is(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=fr(e),new e(function(r,i){var s;t.subscribe(function(a){return s=a},function(a){return i(a)},function(){return r(s)})})},n.create=function(e){return new n(e)},n}();function fr(n){if(n||(n=Promise),!n)throw new Error("no Promise impl found");return n}function Rs(n,e){return function(r){if(typeof n!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Ns(n,e))}}var Ns=function(){function n(e,t){this.project=e,this.thisArg=t}return n.prototype.call=function(e,t){return t.subscribe(new js(e,this.project,this.thisArg))},n}(),js=function(n){Mn(e,n);function e(t,r,i){var s=n.call(this,t)||this;return s.project=r,s.count=0,s.thisArg=i||s,s}return e.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(i){this.destination.error(i);return}this.destination.next(r)},e}(Oe);function yi(n,e,t,r){return lt(t)&&(r=t,t=void 0),r?yi(n,e,t).pipe(Rs(function(i){return mi(i)?r.apply(void 0,i):r(i)})):new Hn(function(i){function s(a){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(a)}vi(n,e,s,i,t)})}function vi(n,e,t,r,i){var s;if(Us(n)){var a=n;n.addEventListener(e,t,i),s=function(){return a.removeEventListener(e,t,i)}}else if(Hs(n)){var o=n;n.on(e,t),s=function(){return o.off(e,t)}}else if(Ms(n)){var u=n;n.addListener(e,t),s=function(){return u.removeListener(e,t)}}else if(n&&n.length)for(var c=0,l=n.length;c<l;c++)vi(n[c],e,t,r,i);else throw new TypeError("Invalid event target");r.add(s)}function Ms(n){return n&&typeof n.addListener=="function"&&typeof n.removeListener=="function"}function Hs(n){return n&&typeof n.on=="function"&&typeof n.off=="function"}function Us(n){return n&&typeof n.addEventListener=="function"&&typeof n.removeEventListener=="function"}var Fs={error:"cordova_not_available"},Bs={error:"plugin_not_installed"};function ht(n){var e=function(){if(Promise)return new Promise(function(s,a){n(s,a)});console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")};if(typeof window<"u"&&window.angular){var t=window.document,r=window.angular.element(t.querySelector("[ng-app]")||t.body).injector();if(r){var i=r.get("$q");return i(function(s,a){n(s,a)})}console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return e()}function Vs(n,e,t,r){r===void 0&&(r={});var i,s,a=ht(function(o,u){r.destruct?i=ye(n,e,t,r,function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return o(c)},function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return u(c)}):i=ye(n,e,t,r,o,u),s=u});return i&&i.error&&(a.catch(function(){}),typeof s=="function"&&s(i.error)),a}function zs(n,e,t,r){return r===void 0&&(r={}),ht(function(i,s){var a=ye(n,e,t,r);a?a.error?s(a.error):a.then&&a.then(i).catch(s):s({error:"unexpected_error"})})}function Ks(n,e,t,r){return r===void 0&&(r={}),new Hn(function(i){var s;return r.destruct?s=ye(n,e,t,r,function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return i.next(a)},function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return i.error(a)}):s=ye(n,e,t,r,i.next.bind(i),i.error.bind(i)),s&&s.error&&(i.error(s.error),i.complete()),function(){try{if(r.clearFunction)return r.clearWithArgs?ye(n,r.clearFunction,t,r,i.next.bind(i),i.error.bind(i)):ye(n,r.clearFunction,[])}catch(a){console.warn("Unable to clear the previous observable watch for",n.constructor.getPluginName(),e),console.warn(a)}}})}function qs(n,e){return e=typeof window<"u"&&e?wi(window,e):e||(typeof window<"u"?window:{}),yi(e,n)}function en(n,e,t){var r,i,s;return typeof n=="string"?r=n:(r=n.constructor.getPluginRef(),t=n.constructor.getPluginName(),s=n.constructor.getPluginInstallName()),i=tn(r),!i||e&&typeof i[e]>"u"?typeof window>"u"||!window.cordova?(Ys(t,e),Fs):(Gs(t,s,e),Bs):!0}function Ws(n,e){return n._objectInstance&&(!e||typeof n._objectInstance[e]<"u")}function bi(n,e,t,r){if(e===void 0&&(e={}),e.sync)return n;if(e.callbackOrder==="reverse")n.unshift(r),n.unshift(t);else if(e.callbackStyle==="node")n.push(function(o,u){o?r(o):t(u)});else if(e.callbackStyle==="object"&&e.successName&&e.errorName){var i={};i[e.successName]=t,i[e.errorName]=r,n.push(i)}else if(typeof e.successIndex<"u"||typeof e.errorIndex<"u"){var s=function(){e.successIndex>n.length?n[e.successIndex]=t:n.splice(e.successIndex,0,t)},a=function(){e.errorIndex>n.length?n[e.errorIndex]=r:n.splice(e.errorIndex,0,r)};e.successIndex>e.errorIndex?(a(),s()):(s(),a())}else n.push(t),n.push(r);return n}function ye(n,e,t,r,i,s){r===void 0&&(r={}),t=bi(t,r,i,s);var a=en(n,e);if(a===!0){var o=tn(n.constructor.getPluginRef());return o[e].apply(o,t)}else return a}function ce(n,e,t,r,i,s){if(r===void 0&&(r={}),t=bi(t,r,i,s),Ws(n,e))return n._objectInstance[e].apply(n._objectInstance,t)}function tn(n){return typeof window<"u"?wi(window,n):null}function wi(n,e){for(var t=e.split("."),r=n,i=0;i<t.length;i++){if(!r)return null;r=r[t[i]]}return r}function Gs(n,e,t){console.warn(t?"Native: tried calling "+n+"."+t+", but the "+n+" plugin is not installed.":"Native: tried accessing the "+n+" plugin but it's not installed."),e&&console.warn("Install the "+n+" plugin: 'ionic cordova plugin add "+e+"'")}function Ys(n,e){typeof process>"u"&&console.warn(e?"Native: tried calling "+n+"."+e+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator":"Native: tried accessing the "+n+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator")}var Js=function(n,e,t){return t===void 0&&(t={}),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.sync?ye(n,e,r,t):t.observable?Ks(n,e,r,t):t.eventObservable&&t.event?qs(t.event,t.element):t.otherPromise?zs(n,e,r,t):Vs(n,e,r,t)}};function qg(n,e,t){return t===void 0&&(t={}),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t.sync)return ce(n,e,r,t);if(t.observable)return new Hn(function(u){var c;return t.destruct?c=ce(n,e,r,t,function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return u.next(l)},function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return u.error(l)}):c=ce(n,e,r,t,u.next.bind(u),u.error.bind(u)),c&&c.error&&u.error(c.error),function(){try{return t.clearWithArgs?ce(n,t.clearFunction,r,t,u.next.bind(u),u.error.bind(u)):ce(n,t.clearFunction,[])}catch(l){console.warn("Unable to clear the previous observable watch for",n.constructor.getPluginName(),e),console.warn(l)}}});if(t.otherPromise)return ht(function(u,c){var l;t.destruct?l=ce(n,e,r,t,function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return u(f)},function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return c(f)}):l=ce(n,e,r,t,u,c),l&&l.then?l.then(u,c):c()});var s,a,o=ht(function(u,c){t.destruct?s=ce(n,e,r,t,function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return u(l)},function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return c(l)}):s=ce(n,e,r,t,u,c),a=c});return s&&s.error&&(o.catch(function(){}),typeof a=="function"&&a(s.error)),o}}function Qs(n,e){for(var t=e.split("."),r=n,i=0;i<t.length;i++){if(!r)return null;r=r[t[i]]}return r}var Si=function(){function n(){}return n.installed=function(){var e=en(this.pluginRef)===!0;return e},n.getPlugin=function(){return typeof window<"u"?Qs(window,this.pluginRef):null},n.getPluginName=function(){var e=this.pluginName;return e},n.getPluginRef=function(){var e=this.pluginRef;return e},n.getPluginInstallName=function(){var e=this.plugin;return e},n.getSupportedPlatforms=function(){var e=this.platforms;return e},n.pluginName="",n.pluginRef="",n.plugin="",n.repo="",n.platforms=[],n.install="",n}();function J(n,e,t,r){return Js(n,e,t).apply(this,r)}function Xs(n,e){return en(n,e)===!0?tn(n.constructor.getPluginRef())[e]:null}function Zs(n,e,t){en(n,e)===!0&&(tn(n.constructor.getPluginRef())[e]=t)}Ps();var ea=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),hr;(function(n){n[n.Visible=0]="Visible",n[n.LowProfile=1]="LowProfile",n[n.HideNavigation=2]="HideNavigation",n[n.Fullscreen=4]="Fullscreen",n[n.LayoutStable=256]="LayoutStable",n[n.LayoutHideNavigation=512]="LayoutHideNavigation",n[n.LayoutFullscreen=1024]="LayoutFullscreen",n[n.Immersive=2048]="Immersive",n[n.ImmersiveSticky=4096]="ImmersiveSticky",n[n.LightStatusBar=8192]="LightStatusBar"})(hr||(hr={}));var ta=function(n){ea(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.isSupported=function(){return J(this,"isSupported",{},arguments)},e.prototype.isImmersiveModeSupported=function(){return J(this,"isImmersiveModeSupported",{},arguments)},e.prototype.immersiveWidth=function(){return J(this,"immersiveWidth",{},arguments)},e.prototype.immersiveHeight=function(){return J(this,"immersiveHeight",{},arguments)},e.prototype.leanMode=function(){return J(this,"leanMode",{},arguments)},e.prototype.showSystemUI=function(){return J(this,"showSystemUI",{},arguments)},e.prototype.showUnderStatusBar=function(){return J(this,"showUnderStatusBar",{},arguments)},e.prototype.showUnderSystemUI=function(){return J(this,"showUnderSystemUI",{},arguments)},e.prototype.immersiveMode=function(){return J(this,"immersiveMode",{},arguments)},e.prototype.setSystemUiVisibility=function(t){return J(this,"setSystemUiVisibility",{},arguments)},e.pluginName="AndroidFullScreen",e.plugin="cordova-plugin-fullscreen",e.pluginRef="AndroidFullScreen",e.repo="https://github.com/mesmotronic/cordova-plugin-fullscreen",e.platforms=["Android"],e}(Si),tt=new ta,na=globalThis&&globalThis.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ra=function(n){na(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.ORIENTATIONS={PORTRAIT_PRIMARY:"portrait-primary",PORTRAIT_SECONDARY:"portrait-secondary",LANDSCAPE_PRIMARY:"landscape-primary",LANDSCAPE_SECONDARY:"landscape-secondary",PORTRAIT:"portrait",LANDSCAPE:"landscape",ANY:"any"},t}return e.prototype.onChange=function(){return J(this,"onChange",{eventObservable:!0,event:"orientationchange",element:"window"},arguments)},e.prototype.lock=function(t){return J(this,"lock",{otherPromise:!0},arguments)},e.prototype.unlock=function(){return J(this,"unlock",{sync:!0},arguments)},Object.defineProperty(e.prototype,"type",{get:function(){return Xs(this,"type")},set:function(t){Zs(this,"type",t)},enumerable:!1,configurable:!0}),e.pluginName="ScreenOrientation",e.plugin="cordova-plugin-screen-orientation",e.pluginRef="screen.orientation",e.repo="https://github.com/apache/cordova-plugin-screen-orientation",e.platforms=["Android","iOS","Windows"],e}(Si),dr=new ra,ia=Array.isArray,xe=ia;const Wg=ue(xe);var sa=typeof ae=="object"&&ae&&ae.Object===Object&&ae,Ti=sa,aa=Ti,oa=typeof self=="object"&&self&&self.Object===Object&&self,ua=aa||oa||Function("return this")(),Ce=ua,ca=Ce,la=ca.Symbol,Un=la,pr=Un,Ei=Object.prototype,fa=Ei.hasOwnProperty,ha=Ei.toString,Me=pr?pr.toStringTag:void 0;function da(n){var e=fa.call(n,Me),t=n[Me];try{n[Me]=void 0;var r=!0}catch{}var i=ha.call(n);return r&&(e?n[Me]=t:delete n[Me]),i}var pa=da,ga=Object.prototype,ma=ga.toString;function ya(n){return ma.call(n)}var va=ya,gr=Un,ba=pa,wa=va,Sa="[object Null]",Ta="[object Undefined]",mr=gr?gr.toStringTag:void 0;function Ea(n){return n==null?n===void 0?Ta:Sa:mr&&mr in Object(n)?ba(n):wa(n)}var Xe=Ea;function _a(n){return n!=null&&typeof n=="object"}var $e=_a,Oa=Xe,Pa=$e,Aa="[object Symbol]";function La(n){return typeof n=="symbol"||Pa(n)&&Oa(n)==Aa}var Fn=La,xa=xe,Ca=Fn,$a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Da=/^\w*$/;function ka(n,e){if(xa(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||Ca(n)?!0:Da.test(n)||!$a.test(n)||e!=null&&n in Object(e)}var Ia=ka;function Ra(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var ve=Ra;const Gg=ue(ve);var Na=Xe,ja=ve,Ma="[object AsyncFunction]",Ha="[object Function]",Ua="[object GeneratorFunction]",Fa="[object Proxy]";function Ba(n){if(!ja(n))return!1;var e=Na(n);return e==Ha||e==Ua||e==Ma||e==Fa}var nn=Ba;const Yg=ue(nn);var Va=Ce,za=Va["__core-js_shared__"],Ka=za,hn=Ka,yr=function(){var n=/[^.]+$/.exec(hn&&hn.keys&&hn.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function qa(n){return!!yr&&yr in n}var Wa=qa,Ga=Function.prototype,Ya=Ga.toString;function Ja(n){if(n!=null){try{return Ya.call(n)}catch{}try{return n+""}catch{}}return""}var Qa=Ja,Xa=nn,Za=Wa,eo=ve,to=Qa,no=/[\\^$.*+?()[\]{}|]/g,ro=/^\[object .+?Constructor\]$/,io=Function.prototype,so=Object.prototype,ao=io.toString,oo=so.hasOwnProperty,uo=RegExp("^"+ao.call(oo).replace(no,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function co(n){if(!eo(n)||Za(n))return!1;var e=Xa(n)?uo:ro;return e.test(to(n))}var lo=co;function fo(n,e){return n==null?void 0:n[e]}var ho=fo,po=lo,go=ho;function mo(n,e){var t=go(n,e);return po(t)?t:void 0}var Bn=mo,yo=Bn,vo=yo(Object,"create"),rn=vo,vr=rn;function bo(){this.__data__=vr?vr(null):{},this.size=0}var wo=bo;function So(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var To=So,Eo=rn,_o="__lodash_hash_undefined__",Oo=Object.prototype,Po=Oo.hasOwnProperty;function Ao(n){var e=this.__data__;if(Eo){var t=e[n];return t===_o?void 0:t}return Po.call(e,n)?e[n]:void 0}var Lo=Ao,xo=rn,Co=Object.prototype,$o=Co.hasOwnProperty;function Do(n){var e=this.__data__;return xo?e[n]!==void 0:$o.call(e,n)}var ko=Do,Io=rn,Ro="__lodash_hash_undefined__";function No(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Io&&e===void 0?Ro:e,this}var jo=No,Mo=wo,Ho=To,Uo=Lo,Fo=ko,Bo=jo;function De(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}De.prototype.clear=Mo;De.prototype.delete=Ho;De.prototype.get=Uo;De.prototype.has=Fo;De.prototype.set=Bo;var Vo=De;function zo(){this.__data__=[],this.size=0}var Ko=zo;function qo(n,e){return n===e||n!==n&&e!==e}var sn=qo,Wo=sn;function Go(n,e){for(var t=n.length;t--;)if(Wo(n[t][0],e))return t;return-1}var an=Go,Yo=an,Jo=Array.prototype,Qo=Jo.splice;function Xo(n){var e=this.__data__,t=Yo(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():Qo.call(e,t,1),--this.size,!0}var Zo=Xo,eu=an;function tu(n){var e=this.__data__,t=eu(e,n);return t<0?void 0:e[t][1]}var nu=tu,ru=an;function iu(n){return ru(this.__data__,n)>-1}var su=iu,au=an;function ou(n,e){var t=this.__data__,r=au(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var uu=ou,cu=Ko,lu=Zo,fu=nu,hu=su,du=uu;function ke(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}ke.prototype.clear=cu;ke.prototype.delete=lu;ke.prototype.get=fu;ke.prototype.has=hu;ke.prototype.set=du;var on=ke,pu=Bn,gu=Ce,mu=pu(gu,"Map"),_i=mu,br=Vo,yu=on,vu=_i;function bu(){this.size=0,this.__data__={hash:new br,map:new(vu||yu),string:new br}}var wu=bu;function Su(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var Tu=Su,Eu=Tu;function _u(n,e){var t=n.__data__;return Eu(e)?t[typeof e=="string"?"string":"hash"]:t.map}var un=_u,Ou=un;function Pu(n){var e=Ou(this,n).delete(n);return this.size-=e?1:0,e}var Au=Pu,Lu=un;function xu(n){return Lu(this,n).get(n)}var Cu=xu,$u=un;function Du(n){return $u(this,n).has(n)}var ku=Du,Iu=un;function Ru(n,e){var t=Iu(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}var Nu=Ru,ju=wu,Mu=Au,Hu=Cu,Uu=ku,Fu=Nu;function Ie(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Ie.prototype.clear=ju;Ie.prototype.delete=Mu;Ie.prototype.get=Hu;Ie.prototype.has=Uu;Ie.prototype.set=Fu;var Oi=Ie,Pi=Oi,Bu="Expected a function";function Vn(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(Bu);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=t.cache;if(s.has(i))return s.get(i);var a=n.apply(this,r);return t.cache=s.set(i,a)||s,a};return t.cache=new(Vn.Cache||Pi),t}Vn.Cache=Pi;var Vu=Vn,zu=Vu,Ku=500;function qu(n){var e=zu(n,function(r){return t.size===Ku&&t.clear(),r}),t=e.cache;return e}var Wu=qu,Gu=Wu,Yu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ju=/\\(\\)?/g,Qu=Gu(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(Yu,function(t,r,i,s){e.push(i?s.replace(Ju,"$1"):r||t)}),e}),Xu=Qu;function Zu(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}var ec=Zu,wr=Un,tc=ec,nc=xe,rc=Fn,ic=1/0,Sr=wr?wr.prototype:void 0,Tr=Sr?Sr.toString:void 0;function Ai(n){if(typeof n=="string")return n;if(nc(n))return tc(n,Ai)+"";if(rc(n))return Tr?Tr.call(n):"";var e=n+"";return e=="0"&&1/n==-ic?"-0":e}var sc=Ai,ac=sc;function oc(n){return n==null?"":ac(n)}var uc=oc,cc=xe,lc=Ia,fc=Xu,hc=uc;function dc(n,e){return cc(n)?n:lc(n,e)?[n]:fc(hc(n))}var pc=dc,gc=Fn,mc=1/0;function yc(n){if(typeof n=="string"||gc(n))return n;var e=n+"";return e=="0"&&1/n==-mc?"-0":e}var vc=yc,bc=pc,wc=vc;function Sc(n,e){e=bc(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[wc(e[t++])];return t&&t==r?n:void 0}var Tc=Sc,Ec=Tc;function _c(n,e,t){var r=n==null?void 0:Ec(n,e);return r===void 0?t:r}var Oc=_c;const Pc=ue(Oc);var Ac=(n=>(n.IOS="ios",n.ANDROID="android",n))(Ac||{});function Lc(){return window.AuthenticatorAssertionResponse===void 0&&window.AuthenticatorAttestationResponse===void 0&&window.AuthenticatorResponse===void 0&&window.Credential===void 0&&window.CredentialsContainer===void 0&&window.DeviceMotionEvent!==void 0&&window.DeviceOrientationEvent!==void 0&&navigator.maxTouchPoints===5&&navigator.plugins.length===0&&navigator.platform!=="iPhone"}function Li(){var n;return((n=window.Capacitor)==null?void 0:n.platform)==="ios"||Lc()||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}function Er(){return/android/i.test(navigator.userAgent)}function xc(){return window.screen.width>=530&&window.screen.height>=530}const Jg=(n=768,e=!0)=>e?window.innerWidth>window.innerHeight&&window.innerWidth>=n:window.innerWidth>=n,Cc="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",$c="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Le=(n,e)=>{for(const t in e)n[t]=e[t];return n},Sn="numeric",Tn="ascii",En="alpha",ut="asciinumeric",nt="alphanumeric",_n="domain",xi="emoji",Dc="scheme",kc="slashscheme",_r="whitespace";function Ic(n,e){return n in e||(e[n]=[]),e[n]}function we(n,e,t){e[Sn]&&(e[ut]=!0,e[nt]=!0),e[Tn]&&(e[ut]=!0,e[En]=!0),e[ut]&&(e[nt]=!0),e[En]&&(e[nt]=!0),e[nt]&&(e[_n]=!0),e[xi]&&(e[_n]=!0);for(const r in e){const i=Ic(r,t);i.indexOf(n)<0&&i.push(n)}}function Rc(n,e){const t={};for(const r in e)e[r].indexOf(n)>=0&&(t[r]=!0);return t}function Q(n){n===void 0&&(n=null),this.j={},this.jr=[],this.jd=null,this.t=n}Q.groups={};Q.prototype={accepts(){return!!this.t},go(n){const e=this,t=e.j[n];if(t)return t;for(let r=0;r<e.jr.length;r++){const i=e.jr[r][0],s=e.jr[r][1];if(s&&i.test(n))return s}return e.jd},has(n,e){return e===void 0&&(e=!1),e?n in this.j:!!this.go(n)},ta(n,e,t,r){for(let i=0;i<n.length;i++)this.tt(n[i],e,t,r)},tr(n,e,t,r){r=r||Q.groups;let i;return e&&e.j?i=e:(i=new Q(e),t&&r&&we(e,t,r)),this.jr.push([n,i]),i},ts(n,e,t,r){let i=this;const s=n.length;if(!s)return i;for(let a=0;a<s-1;a++)i=i.tt(n[a]);return i.tt(n[s-1],e,t,r)},tt(n,e,t,r){r=r||Q.groups;const i=this;if(e&&e.j)return i.j[n]=e,e;const s=e;let a,o=i.go(n);if(o?(a=new Q,Le(a.j,o.j),a.jr.push.apply(a.jr,o.jr),a.jd=o.jd,a.t=o.t):a=new Q,s){if(r)if(a.t&&typeof a.t=="string"){const u=Le(Rc(a.t,r),t);we(s,u,r)}else t&&we(s,t,r);a.t=s}return i.j[n]=a,a}};const C=(n,e,t,r,i)=>n.ta(e,t,r,i),Z=(n,e,t,r,i)=>n.tr(e,t,r,i),Or=(n,e,t,r,i)=>n.ts(e,t,r,i),b=(n,e,t,r,i)=>n.tt(e,t,r,i),le="WORD",On="UWORD",qe="LOCALHOST",Pn="TLD",An="UTLD",ct="SCHEME",_e="SLASH_SCHEME",zn="NUM",Ci="WS",Kn="NL",Ve="OPENBRACE",ze="CLOSEBRACE",dt="OPENBRACKET",pt="CLOSEBRACKET",gt="OPENPAREN",mt="CLOSEPAREN",yt="OPENANGLEBRACKET",vt="CLOSEANGLEBRACKET",bt="FULLWIDTHLEFTPAREN",wt="FULLWIDTHRIGHTPAREN",St="LEFTCORNERBRACKET",Tt="RIGHTCORNERBRACKET",Et="LEFTWHITECORNERBRACKET",_t="RIGHTWHITECORNERBRACKET",Ot="FULLWIDTHLESSTHAN",Pt="FULLWIDTHGREATERTHAN",At="AMPERSAND",Lt="APOSTROPHE",xt="ASTERISK",ge="AT",Ct="BACKSLASH",$t="BACKTICK",Dt="CARET",me="COLON",qn="COMMA",kt="DOLLAR",ne="DOT",It="EQUALS",Wn="EXCLAMATION",re="HYPHEN",Rt="PERCENT",Nt="PIPE",jt="PLUS",Mt="POUND",Ht="QUERY",Gn="QUOTE",Yn="SEMI",ie="SLASH",Ke="TILDE",Ut="UNDERSCORE",$i="EMOJI",Ft="SYM";var Di=Object.freeze({__proto__:null,WORD:le,UWORD:On,LOCALHOST:qe,TLD:Pn,UTLD:An,SCHEME:ct,SLASH_SCHEME:_e,NUM:zn,WS:Ci,NL:Kn,OPENBRACE:Ve,CLOSEBRACE:ze,OPENBRACKET:dt,CLOSEBRACKET:pt,OPENPAREN:gt,CLOSEPAREN:mt,OPENANGLEBRACKET:yt,CLOSEANGLEBRACKET:vt,FULLWIDTHLEFTPAREN:bt,FULLWIDTHRIGHTPAREN:wt,LEFTCORNERBRACKET:St,RIGHTCORNERBRACKET:Tt,LEFTWHITECORNERBRACKET:Et,RIGHTWHITECORNERBRACKET:_t,FULLWIDTHLESSTHAN:Ot,FULLWIDTHGREATERTHAN:Pt,AMPERSAND:At,APOSTROPHE:Lt,ASTERISK:xt,AT:ge,BACKSLASH:Ct,BACKTICK:$t,CARET:Dt,COLON:me,COMMA:qn,DOLLAR:kt,DOT:ne,EQUALS:It,EXCLAMATION:Wn,HYPHEN:re,PERCENT:Rt,PIPE:Nt,PLUS:jt,POUND:Mt,QUERY:Ht,QUOTE:Gn,SEMI:Yn,SLASH:ie,TILDE:Ke,UNDERSCORE:Ut,EMOJI:$i,SYM:Ft});const Se=/[a-z]/,dn=/\p{L}/u,pn=/\p{Emoji}/u,gn=/\d/,Pr=/\s/,Ar=`
`,Nc="️",jc="‍";let rt=null,it=null;function Mc(n){n===void 0&&(n=[]);const e={};Q.groups=e;const t=new Q;rt==null&&(rt=Lr(Cc)),it==null&&(it=Lr($c)),b(t,"'",Lt),b(t,"{",Ve),b(t,"}",ze),b(t,"[",dt),b(t,"]",pt),b(t,"(",gt),b(t,")",mt),b(t,"<",yt),b(t,">",vt),b(t,"（",bt),b(t,"）",wt),b(t,"「",St),b(t,"」",Tt),b(t,"『",Et),b(t,"』",_t),b(t,"＜",Ot),b(t,"＞",Pt),b(t,"&",At),b(t,"*",xt),b(t,"@",ge),b(t,"`",$t),b(t,"^",Dt),b(t,":",me),b(t,",",qn),b(t,"$",kt),b(t,".",ne),b(t,"=",It),b(t,"!",Wn),b(t,"-",re),b(t,"%",Rt),b(t,"|",Nt),b(t,"+",jt),b(t,"#",Mt),b(t,"?",Ht),b(t,'"',Gn),b(t,"/",ie),b(t,";",Yn),b(t,"~",Ke),b(t,"_",Ut),b(t,"\\",Ct);const r=Z(t,gn,zn,{[Sn]:!0});Z(r,gn,r);const i=Z(t,Se,le,{[Tn]:!0});Z(i,Se,i);const s=Z(t,dn,On,{[En]:!0});Z(s,Se),Z(s,dn,s);const a=Z(t,Pr,Ci,{[_r]:!0});b(t,Ar,Kn,{[_r]:!0}),b(a,Ar),Z(a,Pr,a);const o=Z(t,pn,$i,{[xi]:!0});Z(o,pn,o),b(o,Nc,o);const u=b(o,jc);Z(u,pn,o);const c=[[Se,i]],l=[[Se,null],[dn,s]];for(let f=0;f<rt.length;f++)pe(t,rt[f],Pn,le,c);for(let f=0;f<it.length;f++)pe(t,it[f],An,On,l);we(Pn,{tld:!0,ascii:!0},e),we(An,{utld:!0,alpha:!0},e),pe(t,"file",ct,le,c),pe(t,"mailto",ct,le,c),pe(t,"http",_e,le,c),pe(t,"https",_e,le,c),pe(t,"ftp",_e,le,c),pe(t,"ftps",_e,le,c),we(ct,{scheme:!0,ascii:!0},e),we(_e,{slashscheme:!0,ascii:!0},e),n=n.sort((f,h)=>f[0]>h[0]?1:-1);for(let f=0;f<n.length;f++){const h=n[f][0],y=n[f][1]?{[Dc]:!0}:{[kc]:!0};h.indexOf("-")>=0?y[_n]=!0:Se.test(h)?gn.test(h)?y[ut]=!0:y[Tn]=!0:y[Sn]=!0,Or(t,h,h,y)}return Or(t,"localhost",qe,{ascii:!0}),t.jd=new Q(Ft),{start:t,tokens:Le({groups:e},Di)}}function Hc(n,e){const t=Uc(e.replace(/[A-Z]/g,o=>o.toLowerCase())),r=t.length,i=[];let s=0,a=0;for(;a<r;){let o=n,u=null,c=0,l=null,f=-1,h=-1;for(;a<r&&(u=o.go(t[a]));)o=u,o.accepts()?(f=0,h=0,l=o):f>=0&&(f+=t[a].length,h++),c+=t[a].length,s+=t[a].length,a++;s-=f,a-=h,c-=f,i.push({t:l.t,v:e.slice(s-c,s),s:s-c,e:s})}return i}function Uc(n){const e=[],t=n.length;let r=0;for(;r<t;){let i=n.charCodeAt(r),s,a=i<55296||i>56319||r+1===t||(s=n.charCodeAt(r+1))<56320||s>57343?n[r]:n.slice(r,r+2);e.push(a),r+=a.length}return e}function pe(n,e,t,r,i){let s;const a=e.length;for(let o=0;o<a-1;o++){const u=e[o];n.j[u]?s=n.j[u]:(s=new Q(r),s.jr=i.slice(),n.j[u]=s),n=s}return s=new Q(t),s.jr=i.slice(),n.j[e[a-1]]=s,s}function Lr(n){const e=[],t=[];let r=0,i="0123456789";for(;r<n.length;){let s=0;for(;i.indexOf(n[r+s])>=0;)s++;if(s>0){e.push(t.join(""));for(let a=parseInt(n.substring(r,r+s),10);a>0;a--)t.pop();r+=s}else t.push(n[r]),r++}return e}const We={defaultProtocol:"http",events:null,format:xr,formatHref:xr,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Jn(n,e){e===void 0&&(e=null);let t=Le({},We);n&&(t=Le(t,n instanceof Jn?n.o:n));const r=t.ignoreTags,i=[];for(let s=0;s<r.length;s++)i.push(r[s].toUpperCase());this.o=t,e&&(this.defaultRender=e),this.ignoreTags=i}Jn.prototype={o:We,ignoreTags:[],defaultRender(n){return n},check(n){return this.get("validate",n.toString(),n)},get(n,e,t){const r=e!=null;let i=this.o[n];return i&&(typeof i=="object"?(i=t.t in i?i[t.t]:We[n],typeof i=="function"&&r&&(i=i(e,t))):typeof i=="function"&&r&&(i=i(e,t.t,t)),i)},getObj(n,e,t){let r=this.o[n];return typeof r=="function"&&e!=null&&(r=r(e,t.t,t)),r},render(n){const e=n.render(this);return(this.get("render",null,n)||this.defaultRender)(e,n.t,n)}};function xr(n){return n}function ki(n,e){this.t="token",this.v=n,this.tk=e}ki.prototype={isLink:!1,toString(){return this.v},toHref(n){return this.toString()},toFormattedString(n){const e=this.toString(),t=n.get("truncate",e,this),r=n.get("format",e,this);return t&&r.length>t?r.substring(0,t)+"…":r},toFormattedHref(n){return n.get("formatHref",this.toHref(n.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(n){return n===void 0&&(n=We.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(n),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(n){return{type:this.t,value:this.toFormattedString(n),isLink:this.isLink,href:this.toFormattedHref(n),start:this.startIndex(),end:this.endIndex()}},validate(n){return n.get("validate",this.toString(),this)},render(n){const e=this,t=this.toHref(n.get("defaultProtocol")),r=n.get("formatHref",t,this),i=n.get("tagName",t,e),s=this.toFormattedString(n),a={},o=n.get("className",t,e),u=n.get("target",t,e),c=n.get("rel",t,e),l=n.getObj("attributes",t,e),f=n.getObj("events",t,e);return a.href=r,o&&(a.class=o),u&&(a.target=u),c&&(a.rel=c),l&&Le(a,l),{tagName:i,attributes:a,content:s,eventListeners:f}}};function cn(n,e){class t extends ki{constructor(i,s){super(i,s),this.t=n}}for(const r in e)t.prototype[r]=e[r];return t.t=n,t}const Cr=cn("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),$r=cn("text"),Fc=cn("nl"),st=cn("url",{isLink:!0,toHref(n){return n===void 0&&(n=We.defaultProtocol),this.hasProtocol()?this.v:`${n}://${this.v}`},hasProtocol(){const n=this.tk;return n.length>=2&&n[0].t!==qe&&n[1].t===me}}),ee=n=>new Q(n);function Bc(n){let{groups:e}=n;const t=e.domain.concat([At,xt,ge,Ct,$t,Dt,kt,It,re,zn,Rt,Nt,jt,Mt,ie,Ft,Ke,Ut]),r=[Lt,me,qn,ne,Wn,Ht,Gn,Yn,yt,vt,Ve,ze,pt,dt,gt,mt,bt,wt,St,Tt,Et,_t,Ot,Pt],i=[At,Lt,xt,Ct,$t,Dt,kt,It,re,Ve,ze,Rt,Nt,jt,Mt,Ht,ie,Ft,Ke,Ut],s=ee(),a=b(s,Ke);C(a,i,a),C(a,e.domain,a);const o=ee(),u=ee(),c=ee();C(s,e.domain,o),C(s,e.scheme,u),C(s,e.slashscheme,c),C(o,i,a),C(o,e.domain,o);const l=b(o,ge);b(a,ge,l),b(u,ge,l),b(c,ge,l);const f=b(a,ne);C(f,i,a),C(f,e.domain,a);const h=ee();C(l,e.domain,h),C(h,e.domain,h);const w=b(h,ne);C(w,e.domain,h);const y=ee(Cr);C(w,e.tld,y),C(w,e.utld,y),b(l,qe,y);const A=b(h,re);C(A,e.domain,h),C(y,e.domain,h),b(y,ne,w),b(y,re,A);const L=b(y,me);C(L,e.numeric,Cr);const j=b(o,re),k=b(o,ne);C(j,e.domain,o),C(k,i,a),C(k,e.domain,o);const D=ee(st);C(k,e.tld,D),C(k,e.utld,D),C(D,e.domain,o),C(D,i,a),b(D,ne,k),b(D,re,j),b(D,ge,l);const x=b(D,me),I=ee(st);C(x,e.numeric,I);const _=ee(st),O=ee();C(_,t,_),C(_,r,O),C(O,t,_),C(O,r,O),b(D,ie,_),b(I,ie,_);const $=b(u,me),q=b(c,me),R=b(q,ie),E=b(R,ie);C(u,e.domain,o),b(u,ne,k),b(u,re,j),C(c,e.domain,o),b(c,ne,k),b(c,re,j),C($,e.domain,_),b($,ie,_),C(E,e.domain,_),C(E,t,_),b(E,ie,_);const V=[[Ve,ze],[dt,pt],[gt,mt],[yt,vt],[bt,wt],[St,Tt],[Et,_t],[Ot,Pt]];for(let K=0;K<V.length;K++){const[d,p]=V[K],g=b(_,d);b(O,d,g),b(g,p,_);const v=ee(st);C(g,t,v);const m=ee();C(g,r),C(v,t,v),C(v,r,m),C(m,t,v),C(m,r,m),b(v,p,_),b(m,p,_)}return b(s,qe,D),b(s,Kn,Fc),{start:s,tokens:Di}}function Vc(n,e,t){let r=t.length,i=0,s=[],a=[];for(;i<r;){let o=n,u=null,c=null,l=0,f=null,h=-1;for(;i<r&&!(u=o.go(t[i].t));)a.push(t[i++]);for(;i<r&&(c=u||o.go(t[i].t));)u=null,o=c,o.accepts()?(h=0,f=o):h>=0&&h++,i++,l++;if(h<0)i-=l,i<r&&(a.push(t[i]),i++);else{a.length>0&&(s.push(mn($r,e,a)),a=[]),i-=h,l-=h;const w=f.t,y=t.slice(i-l,i);s.push(mn(w,e,y))}}return a.length>0&&s.push(mn($r,e,a)),s}function mn(n,e,t){const r=t[0].s,i=t[t.length-1].e,s=e.slice(r,i);return new n(s,t)}const G={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function zc(){G.scanner=Mc(G.customSchemes);for(let n=0;n<G.tokenQueue.length;n++)G.tokenQueue[n][1]({scanner:G.scanner});G.parser=Bc(G.scanner.tokens);for(let n=0;n<G.pluginQueue.length;n++)G.pluginQueue[n][1]({scanner:G.scanner,parser:G.parser});G.initialized=!0}function Kc(n){return G.initialized||zc(),Vc(G.parser.start,n,Hc(G.scanner.start,n))}var qc={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"'},Wc=/^#[xX]([A-Fa-f0-9]+)$/,Gc=/^#([0-9]+)$/,Yc=/^([A-Za-z0-9]+)$/,Jc=function(){function n(e){this.named=e}return n.prototype.parse=function(e){if(e){var t=e.match(Wc);if(t)return String.fromCharCode(parseInt(t[1],16));if(t=e.match(Gc),t)return String.fromCharCode(parseInt(t[1],10));if(t=e.match(Yc),t)return this.named[t[1]]||"&"+t[1]+";"}},n}(),Qc=/[\t\n\f ]/,Xc=/[A-Za-z]/,Zc=/\r\n?/g;function W(n){return Qc.test(n)}function Dr(n){return Xc.test(n)}function el(n){return n.replace(Zc,`
`)}var tl=function(){function n(e,t,r){r===void 0&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var i=this.peek();if(i==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&i===`
`){var s=this.tagNameBuffer.toLowerCase();(s==="pre"||s==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var i=this.peek(),s=this.tagNameBuffer;i==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):i==="&"&&s!=="script"&&s!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(i))},tagOpen:function(){var i=this.consume();i==="!"?this.transitionTo("markupDeclarationOpen"):i==="/"?this.transitionTo("endTagOpen"):(i==="@"||i===":"||Dr(i))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(i))},markupDeclarationOpen:function(){var i=this.consume();if(i==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var s=i.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();s==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var i=this.consume();W(i)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var i=this.consume();W(i)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase()))},doctypeName:function(){var i=this.consume();W(i)?this.transitionTo("afterDoctypeName"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase())},afterDoctypeName:function(){var i=this.consume();if(!W(i))if(i===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var s=i.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=s.toUpperCase()==="PUBLIC",o=s.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var i=this.peek();W(i)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):i==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):i==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):i===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},doctypePublicIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},afterDoctypePublicIdentifier:function(){var i=this.consume();W(i)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var i=this.consume();W(i)||(i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},doctypeSystemIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},afterDoctypeSystemIdentifier:function(){var i=this.consume();W(i)||i===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var i=this.consume();i==="-"?this.transitionTo("commentStartDash"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(i),this.transitionTo("comment"))},commentStartDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var i=this.consume();i==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(i)},commentEndDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+i),this.transitionTo("comment"))},commentEnd:function(){var i=this.consume();i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+i),this.transitionTo("comment"))},tagName:function(){var i=this.consume();W(i)?this.transitionTo("beforeAttributeName"):i==="/"?this.transitionTo("selfClosingStartTag"):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(i)},endTagName:function(){var i=this.consume();W(i)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):i==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(i)},beforeAttributeName:function(){var i=this.peek();if(W(i)){this.consume();return}else i==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var i=this.peek();W(i)?(this.transitionTo("afterAttributeName"),this.consume()):i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==='"'||i==="'"||i==="<"?(this.delegate.reportSyntaxError(i+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(i)):(this.consume(),this.delegate.appendToAttributeName(i))},afterAttributeName:function(){var i=this.peek();if(W(i)){this.consume();return}else i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i))},beforeAttributeValue:function(){var i=this.peek();W(i)?this.consume():i==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(i))},attributeValueDoubleQuoted:function(){var i=this.consume();i==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueSingleQuoted:function(){var i=this.consume();i==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueUnquoted:function(){var i=this.peek();W(i)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):i===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(i))},afterAttributeValueQuoted:function(){var i=this.peek();W(i)?(this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var i=this.peek();i===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var i=this.consume();(i==="@"||i===":"||Dr(i))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(i))}},this.reset()}return n.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},n.prototype.transitionTo=function(e){this.state=e},n.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},n.prototype.tokenizePart=function(e){for(this.input+=el(e);this.index<this.input.length;){var t=this.states[this.state];if(t!==void 0)t.call(this);else throw new Error("unhandled state "+this.state)}},n.prototype.tokenizeEOF=function(){this.flushData()},n.prototype.flushData=function(){this.state==="data"&&(this.delegate.finishData(),this.transitionTo("beforeData"))},n.prototype.peek=function(){return this.input.charAt(this.index)},n.prototype.consume=function(){var e=this.peek();return this.index++,e===`
`?(this.line++,this.column=0):this.column++,e},n.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(e!==-1){var t=this.input.slice(this.index,e),r=this.entityParser.parse(t);if(r){for(var i=t.length;i;)this.consume(),i--;return this.consume(),r}}},n.prototype.markTagStart=function(){this.delegate.tagOpen()},n.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},n.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return e==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||e==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||e==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},n}(),nl=function(){function n(e,t){t===void 0&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new tl(this,e,t.mode),this._currentAttribute=void 0}return n.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},n.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},n.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},n.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},n.prototype.current=function(){var e=this.token;if(e===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return e;for(var t=0;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},n.prototype.push=function(e){this.token=e,this.tokens.push(e)},n.prototype.currentAttribute=function(){return this._currentAttribute},n.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},n.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},n.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},n.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current("Doctype");t.publicIdentifier===void 0?t.publicIdentifier=e:t.publicIdentifier+=e},n.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current("Doctype");t.systemIdentifier===void 0?t.systemIdentifier=e:t.systemIdentifier+=e},n.prototype.endDoctype=function(){this.addLocInfo()},n.prototype.beginData=function(){this.push({type:"Chars",chars:""})},n.prototype.appendToData=function(e){this.current("Chars").chars+=e},n.prototype.finishData=function(){this.addLocInfo()},n.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},n.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},n.prototype.finishComment=function(){this.addLocInfo()},n.prototype.tagOpen=function(){},n.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},n.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},n.prototype.finishTag=function(){this.addLocInfo()},n.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},n.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},n.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},n.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},n.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},n.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},n.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},n.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},n}();function rl(n,e){var t=new nl(new Jc(qc),e);return t.tokenize(n)}const Ii="LinkifyResult",Bt="StartTag",Ri="EndTag",Ln="Chars",il="Comment",sl="Doctype";function Qg(n,e){e===void 0&&(e={});const t=rl(n),r=[],i=[],s=new Jn(e,ul);for(let a=0;a<t.length;a++){const o=t[a];if(o.type===Bt){r.push(o);const u=o.tagName.toUpperCase();if(!(u==="A"||s.ignoreTags.indexOf(u)>=0))continue;let l=r.length;ol(u,t,++a,r),a+=r.length-l-1}else if(o.type!==Ln)r.push(o);else{const u=al(o.chars,s);r.push.apply(r,u)}}for(let a=0;a<r.length;a++){const o=r[a];switch(o.type){case Ii:i.push(o.rendered);break;case Bt:{let u="<"+o.tagName;o.attributes.length>0&&(u+=" "+ll(o.attributes).join(" ")),o.selfClosing&&(u+=" /"),u+=">",i.push(u);break}case Ri:i.push(`</${o.tagName}>`);break;case Ln:i.push(xn(o.chars));break;case il:i.push(`<!--${xn(o.chars)}-->`);break;case sl:{let u=`<!DOCTYPE ${o.name}`;o.publicIdentifier&&(u+=` PUBLIC "${o.publicIdentifier}"`),o.systemIdentifier&&(u+=` "${o.systemIdentifier}"`),u+=">",i.push(u);break}}}return i.join("")}function al(n,e){const t=Kc(n),r=[];for(let i=0;i<t.length;i++){const s=t[i];s.t==="nl"&&e.get("nl2br")?r.push({type:Bt,tagName:"br",attributes:[],selfClosing:!0}):!s.isLink||!e.check(s)?r.push({type:Ln,chars:s.toString()}):r.push({type:Ii,rendered:e.render(s)})}return r}function ol(n,e,t,r){let i=1;for(;t<e.length&&i>0;){let s=e[t];s.type===Bt&&s.tagName.toUpperCase()===n?i++:s.type===Ri&&s.tagName.toUpperCase()===n&&i--,r.push(s),t++}return r}function ul(n){let{tagName:e,attributes:t,content:r}=n;return`<${e} ${cl(t)}>${xn(r)}</${e}>`}function xn(n){return n.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ni(n){return n.replace(/"/g,"&quot;")}function cl(n){const e=[];for(const t in n){const r=n[t]+"";e.push(`${t}="${Ni(r)}"`)}return e.join(" ")}function ll(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t][0],i=n[t][1]+"";e.push(`${r}="${Ni(i)}"`)}return e}var fl=on;function hl(){this.__data__=new fl,this.size=0}var dl=hl;function pl(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}var gl=pl;function ml(n){return this.__data__.get(n)}var yl=ml;function vl(n){return this.__data__.has(n)}var bl=vl,wl=on,Sl=_i,Tl=Oi,El=200;function _l(n,e){var t=this.__data__;if(t instanceof wl){var r=t.__data__;if(!Sl||r.length<El-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Tl(r)}return t.set(n,e),this.size=t.size,this}var Ol=_l,Pl=on,Al=dl,Ll=gl,xl=yl,Cl=bl,$l=Ol;function Re(n){var e=this.__data__=new Pl(n);this.size=e.size}Re.prototype.clear=Al;Re.prototype.delete=Ll;Re.prototype.get=xl;Re.prototype.has=Cl;Re.prototype.set=$l;var Dl=Re,kl=Bn,Il=function(){try{var n=kl(Object,"defineProperty");return n({},"",{}),n}catch{}}(),ji=Il,kr=ji;function Rl(n,e,t){e=="__proto__"&&kr?kr(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var Qn=Rl,Nl=Qn,jl=sn;function Ml(n,e,t){(t!==void 0&&!jl(n[e],t)||t===void 0&&!(e in n))&&Nl(n,e,t)}var Mi=Ml;function Hl(n){return function(e,t,r){for(var i=-1,s=Object(e),a=r(e),o=a.length;o--;){var u=a[n?o:++i];if(t(s[u],u,s)===!1)break}return e}}var Ul=Hl,Fl=Ul,Bl=Fl(),Vl=Bl,Vt={exports:{}};Vt.exports;(function(n,e){var t=Ce,r=e&&!e.nodeType&&e,i=r&&!0&&n&&!n.nodeType&&n,s=i&&i.exports===r,a=s?t.Buffer:void 0,o=a?a.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var f=c.length,h=o?o(f):new c.constructor(f);return c.copy(h),h}n.exports=u})(Vt,Vt.exports);var zl=Vt.exports,Kl=Ce,ql=Kl.Uint8Array,Wl=ql,Ir=Wl;function Gl(n){var e=new n.constructor(n.byteLength);return new Ir(e).set(new Ir(n)),e}var Yl=Gl,Jl=Yl;function Ql(n,e){var t=e?Jl(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var Xl=Ql;function Zl(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var ef=Zl,tf=ve,Rr=Object.create,nf=function(){function n(){}return function(e){if(!tf(e))return{};if(Rr)return Rr(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}(),rf=nf;function sf(n,e){return function(t){return n(e(t))}}var af=sf,of=af,uf=of(Object.getPrototypeOf,Object),Hi=uf,cf=Object.prototype;function lf(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||cf;return n===t}var Ui=lf,ff=rf,hf=Hi,df=Ui;function pf(n){return typeof n.constructor=="function"&&!df(n)?ff(hf(n)):{}}var gf=pf,mf=Xe,yf=$e,vf="[object Arguments]";function bf(n){return yf(n)&&mf(n)==vf}var wf=bf,Nr=wf,Sf=$e,Fi=Object.prototype,Tf=Fi.hasOwnProperty,Ef=Fi.propertyIsEnumerable,_f=Nr(function(){return arguments}())?Nr:function(n){return Sf(n)&&Tf.call(n,"callee")&&!Ef.call(n,"callee")},Bi=_f,Of=9007199254740991;function Pf(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Of}var Vi=Pf,Af=nn,Lf=Vi;function xf(n){return n!=null&&Lf(n.length)&&!Af(n)}var Xn=xf,Cf=Xn,$f=$e;function Df(n){return $f(n)&&Cf(n)}var kf=Df,zt={exports:{}};function If(){return!1}var Rf=If;zt.exports;(function(n,e){var t=Ce,r=Rf,i=e&&!e.nodeType&&e,s=i&&!0&&n&&!n.nodeType&&n,a=s&&s.exports===i,o=a?t.Buffer:void 0,u=o?o.isBuffer:void 0,c=u||r;n.exports=c})(zt,zt.exports);var zi=zt.exports,Nf=Xe,jf=Hi,Mf=$e,Hf="[object Object]",Uf=Function.prototype,Ff=Object.prototype,Ki=Uf.toString,Bf=Ff.hasOwnProperty,Vf=Ki.call(Object);function zf(n){if(!Mf(n)||Nf(n)!=Hf)return!1;var e=jf(n);if(e===null)return!0;var t=Bf.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Ki.call(t)==Vf}var qi=zf;const Xg=ue(qi);var Kf=Xe,qf=Vi,Wf=$e,Gf="[object Arguments]",Yf="[object Array]",Jf="[object Boolean]",Qf="[object Date]",Xf="[object Error]",Zf="[object Function]",eh="[object Map]",th="[object Number]",nh="[object Object]",rh="[object RegExp]",ih="[object Set]",sh="[object String]",ah="[object WeakMap]",oh="[object ArrayBuffer]",uh="[object DataView]",ch="[object Float32Array]",lh="[object Float64Array]",fh="[object Int8Array]",hh="[object Int16Array]",dh="[object Int32Array]",ph="[object Uint8Array]",gh="[object Uint8ClampedArray]",mh="[object Uint16Array]",yh="[object Uint32Array]",F={};F[ch]=F[lh]=F[fh]=F[hh]=F[dh]=F[ph]=F[gh]=F[mh]=F[yh]=!0;F[Gf]=F[Yf]=F[oh]=F[Jf]=F[uh]=F[Qf]=F[Xf]=F[Zf]=F[eh]=F[th]=F[nh]=F[rh]=F[ih]=F[sh]=F[ah]=!1;function vh(n){return Wf(n)&&qf(n.length)&&!!F[Kf(n)]}var bh=vh;function wh(n){return function(e){return n(e)}}var Sh=wh,Kt={exports:{}};Kt.exports;(function(n,e){var t=Ti,r=e&&!e.nodeType&&e,i=r&&!0&&n&&!n.nodeType&&n,s=i&&i.exports===r,a=s&&t.process,o=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();n.exports=o})(Kt,Kt.exports);var Th=Kt.exports,Eh=bh,_h=Sh,jr=Th,Mr=jr&&jr.isTypedArray,Oh=Mr?_h(Mr):Eh,Wi=Oh;function Ph(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var Gi=Ph,Ah=Qn,Lh=sn,xh=Object.prototype,Ch=xh.hasOwnProperty;function $h(n,e,t){var r=n[e];(!(Ch.call(n,e)&&Lh(r,t))||t===void 0&&!(e in n))&&Ah(n,e,t)}var Dh=$h,kh=Dh,Ih=Qn;function Rh(n,e,t,r){var i=!t;t||(t={});for(var s=-1,a=e.length;++s<a;){var o=e[s],u=r?r(t[o],n[o],o,t,n):void 0;u===void 0&&(u=n[o]),i?Ih(t,o,u):kh(t,o,u)}return t}var Nh=Rh;function jh(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var Mh=jh,Hh=9007199254740991,Uh=/^(?:0|[1-9]\d*)$/;function Fh(n,e){var t=typeof n;return e=e??Hh,!!e&&(t=="number"||t!="symbol"&&Uh.test(n))&&n>-1&&n%1==0&&n<e}var Yi=Fh,Bh=Mh,Vh=Bi,zh=xe,Kh=zi,qh=Yi,Wh=Wi,Gh=Object.prototype,Yh=Gh.hasOwnProperty;function Jh(n,e){var t=zh(n),r=!t&&Vh(n),i=!t&&!r&&Kh(n),s=!t&&!r&&!i&&Wh(n),a=t||r||i||s,o=a?Bh(n.length,String):[],u=o.length;for(var c in n)(e||Yh.call(n,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qh(c,u)))&&o.push(c);return o}var Qh=Jh;function Xh(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var Zh=Xh,ed=ve,td=Ui,nd=Zh,rd=Object.prototype,id=rd.hasOwnProperty;function sd(n){if(!ed(n))return nd(n);var e=td(n),t=[];for(var r in n)r=="constructor"&&(e||!id.call(n,r))||t.push(r);return t}var ad=sd,od=Qh,ud=ad,cd=Xn;function ld(n){return cd(n)?od(n,!0):ud(n)}var Ji=ld,fd=Nh,hd=Ji;function dd(n){return fd(n,hd(n))}var pd=dd,Hr=Mi,gd=zl,md=Xl,yd=ef,vd=gf,Ur=Bi,Fr=xe,bd=kf,wd=zi,Sd=nn,Td=ve,Ed=qi,_d=Wi,Br=Gi,Od=pd;function Pd(n,e,t,r,i,s,a){var o=Br(n,t),u=Br(e,t),c=a.get(u);if(c){Hr(n,t,c);return}var l=s?s(o,u,t+"",n,e,a):void 0,f=l===void 0;if(f){var h=Fr(u),w=!h&&wd(u),y=!h&&!w&&_d(u);l=u,h||w||y?Fr(o)?l=o:bd(o)?l=yd(o):w?(f=!1,l=gd(u,!0)):y?(f=!1,l=md(u,!0)):l=[]:Ed(u)||Ur(u)?(l=o,Ur(o)?l=Od(o):(!Td(o)||Sd(o))&&(l=vd(u))):f=!1}f&&(a.set(u,l),i(l,u,r,s,a),a.delete(u)),Hr(n,t,l)}var Ad=Pd,Ld=Dl,xd=Mi,Cd=Vl,$d=Ad,Dd=ve,kd=Ji,Id=Gi;function Qi(n,e,t,r,i){n!==e&&Cd(e,function(s,a){if(i||(i=new Ld),Dd(s))$d(n,e,a,t,Qi,r,i);else{var o=r?r(Id(n,a),s,a+"",n,e,i):void 0;o===void 0&&(o=s),xd(n,a,o)}},kd)}var Rd=Qi;function Nd(n){return n}var Xi=Nd;function jd(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var Md=jd,Hd=Md,Vr=Math.max;function Ud(n,e,t){return e=Vr(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,s=Vr(r.length-e,0),a=Array(s);++i<s;)a[i]=r[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=r[i];return o[e]=t(a),Hd(n,this,o)}}var Fd=Ud;function Bd(n){return function(){return n}}var Vd=Bd,zd=Vd,zr=ji,Kd=Xi,qd=zr?function(n,e){return zr(n,"toString",{configurable:!0,enumerable:!1,value:zd(e),writable:!0})}:Kd,Wd=qd,Gd=800,Yd=16,Jd=Date.now;function Qd(n){var e=0,t=0;return function(){var r=Jd(),i=Yd-(r-t);if(t=r,i>0){if(++e>=Gd)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var Xd=Qd,Zd=Wd,ep=Xd,tp=ep(Zd),np=tp,rp=Xi,ip=Fd,sp=np;function ap(n,e){return sp(ip(n,e,rp),n+"")}var op=ap,up=sn,cp=Xn,lp=Yi,fp=ve;function hp(n,e,t){if(!fp(t))return!1;var r=typeof e;return(r=="number"?cp(t)&&lp(e,t.length):r=="string"&&e in t)?up(t[e],n):!1}var dp=hp,pp=op,gp=dp;function mp(n){return pp(function(e,t){var r=-1,i=t.length,s=i>1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(s=n.length>3&&typeof s=="function"?(i--,s):void 0,a&&gp(t[0],t[1],a)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var o=t[r];o&&n(e,o,r,s)}return e})}var yp=mp,vp=Rd,bp=yp,wp=bp(function(n,e,t){vp(n,e,t)}),Sp=wp;const Zg=ue(Sp),Tp=()=>window.appStore,Ep={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console&&console[n]&&console[n].apply(console,e)}};class qt{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ep,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new qt(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new qt(this.logger,e)}}var oe=new qt;class ln{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(r=>r!==t)}}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach(a=>{a(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(a=>{a.apply(a,[e,...r])})}}function He(){let n,e;const t=new Promise((r,i)=>{n=r,e=i});return t.resolve=n,t.reject=e,t}function Kr(n){return n==null?"":""+n}function _p(n,e,t){n.forEach(r=>{e[r]&&(t[r]=e[r])})}function Zn(n,e,t){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function i(){return!n||typeof n=="string"}const s=typeof e!="string"?[].concat(e):e.split(".");for(;s.length>1;){if(i())return{};const a=r(s.shift());!n[a]&&t&&(n[a]=new t),Object.prototype.hasOwnProperty.call(n,a)?n=n[a]:n={}}return i()?{}:{obj:n,k:r(s.shift())}}function qr(n,e,t){const{obj:r,k:i}=Zn(n,e,Object);r[i]=t}function Op(n,e,t,r){const{obj:i,k:s}=Zn(n,e,Object);i[s]=i[s]||[],r&&(i[s]=i[s].concat(t)),r||i[s].push(t)}function Wt(n,e){const{obj:t,k:r}=Zn(n,e);if(t)return t[r]}function Pp(n,e,t){const r=Wt(n,t);return r!==void 0?r:Wt(e,t)}function Zi(n,e,t){for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in n?typeof n[r]=="string"||n[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?t&&(n[r]=e[r]):Zi(n[r],e[r],t):n[r]=e[r]);return n}function Te(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Lp(n){return typeof n=="string"?n.replace(/[&<>"'\/]/g,e=>Ap[e]):n}const xp=[" ",",","?","!",";"];function Cp(n,e,t){e=e||"",t=t||"";const r=xp.filter(a=>e.indexOf(a)<0&&t.indexOf(a)<0);if(r.length===0)return!0;const i=new RegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let s=!i.test(n);if(!s){const a=n.indexOf(t);a>0&&!i.test(n.substring(0,a))&&(s=!0)}return s}function Gt(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return n[e];const r=e.split(t);let i=n;for(let s=0;s<r.length;++s){if(!i||typeof i[r[s]]=="string"&&s+1<r.length)return;if(i[r[s]]===void 0){let a=2,o=r.slice(s,s+a).join(t),u=i[o];for(;u===void 0&&r.length>s+a;)a++,o=r.slice(s,s+a).join(t),u=i[o];if(u===void 0)return;if(u===null)return null;if(e.endsWith(o)){if(typeof u=="string")return u;if(o&&typeof u[o]=="string")return u[o]}const c=r.slice(s+a).join(t);return c?Gt(u,c,t):void 0}i=i[r[s]]}return i}function Yt(n){return n&&n.indexOf("_")>0?n.replace("_","-"):n}class Wr extends ln{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o=[e,t];r&&typeof r!="string"&&(o=o.concat(r)),r&&typeof r=="string"&&(o=o.concat(s?r.split(s):r)),e.indexOf(".")>-1&&(o=e.split("."));const u=Wt(this.data,o);return u||!a||typeof r!="string"?u:Gt(this.data&&this.data[e]&&this.data[e][t],r,s)}addResource(e,t,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let o=[e,t];r&&(o=o.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(o=e.split("."),i=t,t=o[1]),this.addNamespaces(t),qr(this.data,o,i),s.silent||this.emit("added",e,t,r,i)}addResources(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Object.prototype.toString.apply(r[s])==="[object Array]")&&this.addResource(e,t,s,r[s],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,i,s){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),i=r,r=t,t=o[1]),this.addNamespaces(t);let u=Wt(this.data,o)||{};i?Zi(u,r,s):u={...u,...r},qr(this.data,o,u),a.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(i=>t[i]&&Object.keys(t[i]).length>0)}toJSON(){return this.data}}var es={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,r,i){return n.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,t,r,i))}),e}};const Gr={};class Jt extends ln{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),_p(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=oe.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,t);return r&&r.res!==void 0}extractFromKey(e,t){let r=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const a=r&&e.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Cp(e,r,i);if(a&&!o){const u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:s};const c=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),e=c.join(i)}return typeof s=="string"&&(s=[s]),{key:e,namespaces:s}}translate(e,t,r){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(e[e.length-1],t),u=o[o.length-1],c=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(l){const x=t.nsSeparator||this.options.nsSeparator;return i?{res:`${u}${x}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:u}:`${u}${x}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:u}:a}const f=this.resolve(e,t);let h=f&&f.res;const w=f&&f.usedKey||a,y=f&&f.exactUsedKey||a,A=Object.prototype.toString.apply(h),L=["[object Number]","[object Function]","[object RegExp]"],j=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject;if(k&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&L.indexOf(A)<0&&!(typeof j=="string"&&A==="[object Array]")){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,h,{...t,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(f.res=x,f):x}if(s){const x=A==="[object Array]",I=x?[]:{},_=x?y:w;for(const O in h)if(Object.prototype.hasOwnProperty.call(h,O)){const $=`${_}${s}${O}`;I[O]=this.translate($,{...t,joinArrays:!1,ns:o}),I[O]===$&&(I[O]=h[O])}h=I}}else if(k&&typeof j=="string"&&A==="[object Array]")h=h.join(j),h&&(h=this.extendTranslation(h,e,t,r));else{let x=!1,I=!1;const _=t.count!==void 0&&typeof t.count!="string",O=Jt.hasDefaultValue(t),$=_?this.pluralResolver.getSuffix(c,t.count,t):"",q=t.ordinal&&_?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",R=t[`defaultValue${$}`]||t[`defaultValue${q}`]||t.defaultValue;!this.isValidLookup(h)&&O&&(x=!0,h=R),this.isValidLookup(h)||(I=!0,h=a);const V=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:h,K=O&&R!==h&&this.options.updateMissing;if(I||x||K){if(this.logger.log(K?"updateKey":"missingKey",c,u,a,K?R:h),s){const v=this.resolve(a,{...t,keySeparator:!1});v&&v.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let d=[];const p=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&p&&p[0])for(let v=0;v<p.length;v++)d.push(p[v]);else this.options.saveMissingTo==="all"?d=this.languageUtils.toResolveHierarchy(t.lng||this.language):d.push(t.lng||this.language);const g=(v,m,S)=>{const T=O&&S!==h?S:V;this.options.missingKeyHandler?this.options.missingKeyHandler(v,u,m,T,K,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(v,u,m,T,K,t),this.emit("missingKey",v,u,m,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?d.forEach(v=>{this.pluralResolver.getSuffixes(v,t).forEach(m=>{g([v],a+m,t[`defaultValue${m}`]||R)})}):g(d,a,R))}h=this.extendTranslation(h,e,t,f,r),I&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${u}:${a}`),(I||x)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${a}`:a,x?h:void 0):h=this.options.parseMissingKeyHandler(h))}return i?(f.res=h,f):h}extendTranslation(e,t,r,i,s){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof e=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(c){const h=e.match(this.interpolator.nestingRegexp);l=h&&h.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,r.lng||this.language,r),c){const h=e.match(this.interpolator.nestingRegexp),w=h&&h.length;l<w&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var h=arguments.length,w=new Array(h),y=0;y<h;y++)w[y]=arguments[y];return s&&s[0]===w[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${w[0]} in key: ${t[0]}`),null):a.translate(...w,t)},r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,u=typeof o=="string"?[o]:o;return e!=null&&u&&u.length&&r.applyPostProcessor!==!1&&(e=es.handle(u,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...r}:r,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,a,o;return typeof e=="string"&&(e=[e]),e.forEach(u=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(u,t),l=c.key;i=l;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=t.count!==void 0&&typeof t.count!="string",w=h&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),y=t.context!==void 0&&(typeof t.context=="string"||typeof t.context=="number")&&t.context!=="",A=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(L=>{this.isValidLookup(r)||(o=L,!Gr[`${A[0]}-${L}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Gr[`${A[0]}-${L}`]=!0,this.logger.warn(`key "${i}" for languages "${A.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),A.forEach(j=>{if(this.isValidLookup(r))return;a=j;const k=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(k,l,j,L,t);else{let x;h&&(x=this.pluralResolver.getSuffix(j,t.count,t));const I=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(k.push(l+x),t.ordinal&&x.indexOf(_)===0&&k.push(l+x.replace(_,this.options.pluralSeparator)),w&&k.push(l+I)),y){const O=`${l}${this.options.contextSeparator}${t.context}`;k.push(O),h&&(k.push(O+x),t.ordinal&&x.indexOf(_)===0&&k.push(O+x.replace(_,this.options.pluralSeparator)),w&&k.push(O+I))}}let D;for(;D=k.pop();)this.isValidLookup(r)||(s=D,r=this.getResource(j,L,D,t))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,i):this.resourceStore.getResource(e,t,r,i)}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&e[r]!==void 0)return!0;return!1}}function yn(n){return n.charAt(0).toUpperCase()+n.slice(1)}class Yr{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oe.create("languageUtils")}getScriptPartFromCode(e){if(e=Yt(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Yt(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=yn(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=yn(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=yn(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(r=>{if(t)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(r=>{if(t)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&s.indexOf(i)===0)return s})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],s=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):typeof e=="string"&&s(this.formatLanguageCode(e)),r.forEach(a=>{i.indexOf(a)<0&&s(this.formatLanguageCode(a))}),i}}let $p=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Dp={1:function(n){return+(n>1)},2:function(n){return+(n!=1)},3:function(n){return 0},4:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},5:function(n){return n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},6:function(n){return n==1?0:n>=2&&n<=4?1:2},7:function(n){return n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},8:function(n){return n==1?0:n==2?1:n!=8&&n!=11?2:3},9:function(n){return+(n>=2)},10:function(n){return n==1?0:n==2?1:n<7?2:n<11?3:4},11:function(n){return n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3},12:function(n){return+(n%10!=1||n%100==11)},13:function(n){return+(n!==0)},14:function(n){return n==1?0:n==2?1:n==3?2:3},15:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2},16:function(n){return n%10==1&&n%100!=11?0:n!==0?1:2},17:function(n){return n==1||n%10==1&&n%100!=11?0:1},18:function(n){return n==0?0:n==1?1:2},19:function(n){return n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3},20:function(n){return n==1?0:n==0||n%100>0&&n%100<20?1:2},21:function(n){return n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0},22:function(n){return n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3}};const kp=["v1","v2","v3"],Ip=["v4"],Jr={zero:0,one:1,two:2,few:3,many:4,other:5};function Rp(){const n={};return $p.forEach(e=>{e.lngs.forEach(t=>{n[t]={numbers:e.nr,plurals:Dp[e.fc]}})}),n}class Np{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=oe.create("pluralResolver"),(!this.options.compatibilityJSON||Ip.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Rp()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Yt(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(i=>`${t}${i}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,s)=>Jr[i]-Jr[s]).map(i=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(e,i,t)):[]}getSuffix(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:this.getSuffixRetroCompatible(i,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let i=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!kp.includes(this.options.compatibilityJSON)}}function Qr(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Pp(n,e,t);return!s&&i&&typeof t=="string"&&(s=Gt(n,t,r),s===void 0&&(s=Gt(e,t,r))),s}class jp{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oe.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=t.escape!==void 0?t.escape:Lp,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?Te(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Te(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Te(t.nestingPrefix):t.nestingPrefixEscaped||Te("$t("),this.nestingSuffix=t.nestingSuffix?Te(t.nestingSuffix):t.nestingSuffixEscaped||Te(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(e,t,r,i){let s,a,o;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(y){return y.replace(/\$/g,"$$$$")}const l=y=>{if(y.indexOf(this.formatSeparator)<0){const k=Qr(t,u,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,r,{...i,...t,interpolationkey:y}):k}const A=y.split(this.formatSeparator),L=A.shift().trim(),j=A.join(this.formatSeparator).trim();return this.format(Qr(t,u,L,this.options.keySeparator,this.options.ignoreJSONStructure),j,r,{...i,...t,interpolationkey:L})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>c(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?c(this.escape(y)):c(y)}].forEach(y=>{for(o=0;s=y.regex.exec(e);){const A=s[1].trim();if(a=l(A),a===void 0)if(typeof f=="function"){const j=f(e,s,i);a=typeof j=="string"?j:""}else if(i&&Object.prototype.hasOwnProperty.call(i,A))a="";else if(h){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${A} for interpolating ${e}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=Kr(a));const L=y.safeValue(a);if(e=e.replace(s[0],L),h?(y.regex.lastIndex+=a.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,a;function o(u,c){const l=this.nestingOptionsSeparator;if(u.indexOf(l)<0)return u;const f=u.split(new RegExp(`${l}[ ]*{`));let h=`{${f[1]}`;u=f[0],h=this.interpolate(h,a);const w=h.match(/'/g),y=h.match(/"/g);(w&&w.length%2===0&&!y||y.length%2!==0)&&(h=h.replace(/'/g,'"'));try{a=JSON.parse(h),c&&(a={...c,...a})}catch(A){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,A),`${u}${l}${h}`}return delete a.defaultValue,u}for(;i=this.nestingRegexp.exec(e);){let u=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const l=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=l.shift(),u=l,c=!0}if(s=t(o.call(this,i[1].trim(),a),a),s&&i[0]===e&&typeof s!="string")return s;typeof s!="string"&&(s=Kr(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),c&&(s=u.reduce((l,f)=>this.format(l,f,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}function Mp(n){let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const r=n.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(a=>{if(!a)return;const[o,...u]=a.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,"");t[o.trim()]||(t[o.trim()]=c),c==="false"&&(t[o.trim()]=!1),c==="true"&&(t[o.trim()]=!0),isNaN(c)||(t[o.trim()]=parseInt(c,10))})}return{formatName:e,formatOptions:t}}function Ee(n){const e={};return function(r,i,s){const a=i+JSON.stringify(s);let o=e[a];return o||(o=n(Yt(i),s),e[a]=o),o(r)}}class Hp{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oe.create("formatter"),this.options=e,this.formats={number:Ee((t,r)=>{const i=new Intl.NumberFormat(t,{...r});return s=>i.format(s)}),currency:Ee((t,r)=>{const i=new Intl.NumberFormat(t,{...r,style:"currency"});return s=>i.format(s)}),datetime:Ee((t,r)=>{const i=new Intl.DateTimeFormat(t,{...r});return s=>i.format(s)}),relativetime:Ee((t,r)=>{const i=new Intl.RelativeTimeFormat(t,{...r});return s=>i.format(s,r.range||"day")}),list:Ee((t,r)=>{const i=new Intl.ListFormat(t,{...r});return s=>i.format(s)})},this.init(e)}init(e){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ee(t)}format(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return t.split(this.formatSeparator).reduce((o,u)=>{const{formatName:c,formatOptions:l}=Mp(u);if(this.formats[c]){let f=o;try{const h=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},w=h.locale||h.lng||i.locale||i.lng||r;f=this.formats[c](o,w,{...l,...i,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${c}`);return o},e)}}function Up(n,e){n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)}class Fp extends ln{constructor(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=oe.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(e,t,r,i){const s={},a={},o={},u={};return e.forEach(c=>{let l=!0;t.forEach(f=>{const h=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?a[h]===void 0&&(a[h]=!0):(this.state[h]=1,l=!1,a[h]===void 0&&(a[h]=!0),s[h]===void 0&&(s[h]=!0),u[f]===void 0&&(u[f]=!0)))}),l||(o[c]=!0)}),(Object.keys(s).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(u)}}loaded(e,t,r){const i=e.split("|"),s=i[0],a=i[1];t&&this.emit("failedLoading",s,a,t),r&&this.store.addResourceBundle(s,a,r),this.state[e]=t?-1:2;const o={};this.queue.forEach(u=>{Op(u.loaded,[s],a),Up(u,e),t&&u.errors.push(t),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{o[c]||(o[c]={});const l=u.loaded[c];l.length&&l.forEach(f=>{o[c][f]===void 0&&(o[c][f]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(u=>!u.done)}read(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:i,wait:s,callback:a});return}this.readingCalls++;const o=(c,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&l&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,r,i+1,s*2,a)},s);return}a(c,l)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const c=u(e,t);c&&typeof c.then=="function"?c.then(l=>o(null,l)).catch(o):o(null,c)}catch(c){o(c)}return}return u(e,t,o)}prepareLoading(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t=="string"&&(t=[t]);const s=this.queueLoad(e,t,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(a=>{this.loadOne(a)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${t}loading namespace ${s} for language ${i} failed`,a),!a&&o&&this.logger.log(`${t}loaded namespace ${s} for language ${i}`,o),this.loaded(e,a,o)})}saveMissing(e,t,r,i,s){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const u={...a,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let l;c.length===5?l=c(e,t,r,i,u):l=c(e,t,r,i),l&&typeof l.then=="function"?l.then(f=>o(null,f)).catch(o):o(null,l)}catch(l){o(l)}else c(e,t,r,i,o,u)}!e||!e[0]||this.store.addResource(e[0],t,r,i)}}}function Xr(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(i=>{t[i]=r[i]})}return t},interpolation:{escapeValue:!0,format:(n,e,t,r)=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Zr(n){return typeof n.ns=="string"&&(n.ns=[n.ns]),typeof n.fallbackLng=="string"&&(n.fallbackLng=[n.fallbackLng]),typeof n.fallbackNS=="string"&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n}function at(){}function Bp(n){Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})}class Ge extends ln{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Zr(e),this.services={},this.logger=oe,this.modules={external:[]},Bp(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof t=="function"&&(r=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns=="string"?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=Xr();this.options={...i,...this.options,...Zr(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);function s(l){return l?typeof l=="function"?new l:l:null}if(!this.options.isClone){this.modules.logger?oe.init(s(this.modules.logger),this.options):oe.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=Hp);const f=new Yr(this.options);this.store=new Wr(this.options.resources,this.options);const h=this.services;h.logger=oe,h.resourceStore=this.store,h.languageUtils=f,h.pluralResolver=new Np(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(h.formatter=s(l),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new jp(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Fp(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(w){for(var y=arguments.length,A=new Array(y>1?y-1:0),L=1;L<y;L++)A[L-1]=arguments[L];e.emit(w,...A)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Jt(this.services,this.options),this.translator.on("*",function(w){for(var y=arguments.length,A=new Array(y>1?y-1:0),L=1;L<y;L++)A[L-1]=arguments[L];e.emit(w,...A)}),this.modules.external.forEach(w=>{w.init&&w.init(this)})}if(this.format=this.options.interpolation.format,r||(r=at),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=function(){return e.store[l](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=function(){return e.store[l](...arguments),e}});const u=He(),c=()=>{const l=(f,h)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(h),r(f,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at;const i=typeof e=="string"?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],a=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>a(u)),this.options.preload&&this.options.preload.forEach(o=>a(o)),this.services.backendConnector.load(s,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(o)})}else r(null)}reloadResources(e,t,r){const i=He();return e||(e=this.languages),t||(t=this.options.ns),r||(r=at),this.services.backendConnector.reload(e,t,s=>{i.resolve(),r(s)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&es.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;const i=He();this.emit("languageChanging",e);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},a=(u,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),t&&t(u,function(){return r.t(...arguments)})},o=u=>{!e&&!u&&this.services.languageDetector&&(u=[]);const c=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,l=>{a(l,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),i}getFixedT(e,t,r){var i=this;const s=function(a,o){let u;if(typeof o!="object"){for(var c=arguments.length,l=new Array(c>2?c-2:0),f=2;f<c;f++)l[f-2]=arguments[f];u=i.options.overloadTranslationOptionHandler([a,o].concat(l))}else u={...o};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix=u.keyPrefix||r||s.keyPrefix;const h=i.options.keySeparator||".";let w;return u.keyPrefix&&Array.isArray(a)?w=a.map(y=>`${u.keyPrefix}${h}${y}`):w=u.keyPrefix?`${u.keyPrefix}${h}${a}`:a,i.t(w,u)};return typeof e=="string"?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(o,u)=>{const c=this.services.backendConnector.state[`${o}|${u}`];return c===-1||c===2};if(t.precheck){const o=t.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!i||a(s,e)))}loadNamespaces(e,t){const r=He();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),t&&t(i)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=He();typeof e=="string"&&(e=[e]);const i=this.options.preload||[],s=e.filter(a=>i.indexOf(a)<0);return s.length?(this.options.preload=i.concat(s),this.loadResources(a=>{r.resolve(),t&&t(a)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Yr(Xr());return t.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Ge(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},s=new Ge(i);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new Wr(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Jt(s.services,i),s.translator.on("*",function(o){for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];s.emit(o,...c)}),s.init(i,t),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const z=Ge.createInstance();z.createInstance=Ge.createInstance;z.createInstance;z.dir;z.init;z.loadResources;z.reloadResources;z.use;z.changeLanguage;z.getFixedT;z.t;z.exists;z.setDefaultNamespace;z.hasLoadedNamespace;z.loadNamespaces;z.loadLanguages;function Vp(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Ye(n){"@babel/helpers - typeof";return Ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ye(n)}function zp(n,e){if(Ye(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Ye(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Kp(n){var e=zp(n,"string");return Ye(e)=="symbol"?e:e+""}function ei(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,Kp(r.key),r)}}function qp(n,e,t){return e&&ei(n.prototype,e),t&&ei(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}var ts=[],Wp=ts.forEach,Gp=ts.slice;function Yp(n){return Wp.call(Gp.call(arguments,1),function(e){if(e)for(var t in e)n[t]===void 0&&(n[t]=e[t])}),n}var ti=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Jp=function(e,t,r){var i=r||{};i.path=i.path||"/";var s=encodeURIComponent(t),a="".concat(e,"=").concat(s);if(i.maxAge>0){var o=i.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(o))}if(i.domain){if(!ti.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!ti.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var u=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(u){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},ni={create:function(e,t,r,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+r*60*1e3)),i&&(s.domain=i),document.cookie=Jp(e,encodeURIComponent(t),s)},read:function(e){for(var t="".concat(e,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var s=r[i];s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return null},remove:function(e){this.create(e,"",-1)}},Qp={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&typeof document<"u"){var r=ni.read(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&typeof document<"u"&&ni.create(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},Xp={name:"querystring",lookup:function(e){var t;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),s=i.split("&"),a=0;a<s.length;a++){var o=s[a].indexOf("=");if(o>0){var u=s[a].substring(0,o);u===e.lookupQuerystring&&(t=s[a].substring(o+1))}}}return t}},Ue=null,ri=function(){if(Ue!==null)return Ue;try{Ue=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Ue=!1}return Ue},Zp={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&ri()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&ri()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},Fe=null,ii=function(){if(Fe!==null)return Fe;try{Fe=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Fe=!1}return Fe},eg={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&ii()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&ii()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},tg={name:"navigator",lookup:function(e){var t=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)t.push(navigator.languages[r]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},ng={name:"htmlTag",lookup:function(e){var t,r=e.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(t=r.getAttribute("lang")),t}},rg={name:"path",lookup:function(e){var t;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;t=r[e.lookupFromPathIndex].replace("/","")}else t=r[0].replace("/","")}return t}},ig={name:"subdomain",lookup:function(e){var t=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[t]}};function sg(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var ns=function(){function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vp(this,n),this.type="languageDetector",this.detectors={},this.init(e,t)}return qp(n,[{key:"init",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Yp(r,this.options||{},sg()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(s){return s.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Qp),this.addDetector(Xp),this.addDetector(Zp),this.addDetector(eg),this.addDetector(tg),this.addDetector(ng),this.addDetector(rg),this.addDetector(ig)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var r=this;t||(t=this.options.order);var i=[];return t.forEach(function(s){if(r.detectors[s]){var a=r.detectors[s].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.map(function(s){return r.options.convertDetectedLanguage(s)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(t,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||r.forEach(function(s){i.detectors[s]&&i.detectors[s].cacheUserLanguage(t,i.options)}))}}]),n}();ns.type="languageDetector";function Cn(n){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cn(n)}var rs=[],ag=rs.forEach,og=rs.slice;function $n(n){return ag.call(og.call(arguments,1),function(e){if(e)for(var t in e)n[t]===void 0&&(n[t]=e[t])}),n}function is(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Cn(XMLHttpRequest))==="object"}function ug(n){return!!n&&typeof n.then=="function"}function cg(n){return ug(n)?n:Promise.resolve(n)}function lg(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Dn={exports:{}},kn={exports:{}};(function(n,e){var t=typeof self<"u"?self:ae,r=function(){function s(){this.fetch=!1,this.DOMException=t.DOMException}return s.prototype=t,new s}();(function(s){(function(a){var o={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(d){return d&&DataView.prototype.isPrototypeOf(d)}if(o.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(d){return d&&c.indexOf(Object.prototype.toString.call(d))>-1};function f(d){if(typeof d!="string"&&(d=String(d)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(d))throw new TypeError("Invalid character in header field name");return d.toLowerCase()}function h(d){return typeof d!="string"&&(d=String(d)),d}function w(d){var p={next:function(){var g=d.shift();return{done:g===void 0,value:g}}};return o.iterable&&(p[Symbol.iterator]=function(){return p}),p}function y(d){this.map={},d instanceof y?d.forEach(function(p,g){this.append(g,p)},this):Array.isArray(d)?d.forEach(function(p){this.append(p[0],p[1])},this):d&&Object.getOwnPropertyNames(d).forEach(function(p){this.append(p,d[p])},this)}y.prototype.append=function(d,p){d=f(d),p=h(p);var g=this.map[d];this.map[d]=g?g+", "+p:p},y.prototype.delete=function(d){delete this.map[f(d)]},y.prototype.get=function(d){return d=f(d),this.has(d)?this.map[d]:null},y.prototype.has=function(d){return this.map.hasOwnProperty(f(d))},y.prototype.set=function(d,p){this.map[f(d)]=h(p)},y.prototype.forEach=function(d,p){for(var g in this.map)this.map.hasOwnProperty(g)&&d.call(p,this.map[g],g,this)},y.prototype.keys=function(){var d=[];return this.forEach(function(p,g){d.push(g)}),w(d)},y.prototype.values=function(){var d=[];return this.forEach(function(p){d.push(p)}),w(d)},y.prototype.entries=function(){var d=[];return this.forEach(function(p,g){d.push([g,p])}),w(d)},o.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function A(d){if(d.bodyUsed)return Promise.reject(new TypeError("Already read"));d.bodyUsed=!0}function L(d){return new Promise(function(p,g){d.onload=function(){p(d.result)},d.onerror=function(){g(d.error)}})}function j(d){var p=new FileReader,g=L(p);return p.readAsArrayBuffer(d),g}function k(d){var p=new FileReader,g=L(p);return p.readAsText(d),g}function D(d){for(var p=new Uint8Array(d),g=new Array(p.length),v=0;v<p.length;v++)g[v]=String.fromCharCode(p[v]);return g.join("")}function x(d){if(d.slice)return d.slice(0);var p=new Uint8Array(d.byteLength);return p.set(new Uint8Array(d)),p.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(d){this._bodyInit=d,d?typeof d=="string"?this._bodyText=d:o.blob&&Blob.prototype.isPrototypeOf(d)?this._bodyBlob=d:o.formData&&FormData.prototype.isPrototypeOf(d)?this._bodyFormData=d:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(d)?this._bodyText=d.toString():o.arrayBuffer&&o.blob&&u(d)?(this._bodyArrayBuffer=x(d.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(d)||l(d))?this._bodyArrayBuffer=x(d):this._bodyText=d=Object.prototype.toString.call(d):this._bodyText="",this.headers.get("content-type")||(typeof d=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(d)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var d=A(this);if(d)return d;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?A(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var d=A(this);if(d)return d;if(this._bodyBlob)return k(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(D(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(d){var p=d.toUpperCase();return _.indexOf(p)>-1?p:d}function $(d,p){p=p||{};var g=p.body;if(d instanceof $){if(d.bodyUsed)throw new TypeError("Already read");this.url=d.url,this.credentials=d.credentials,p.headers||(this.headers=new y(d.headers)),this.method=d.method,this.mode=d.mode,this.signal=d.signal,!g&&d._bodyInit!=null&&(g=d._bodyInit,d.bodyUsed=!0)}else this.url=String(d);if(this.credentials=p.credentials||this.credentials||"same-origin",(p.headers||!this.headers)&&(this.headers=new y(p.headers)),this.method=O(p.method||this.method||"GET"),this.mode=p.mode||this.mode||null,this.signal=p.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&g)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(g)}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})};function q(d){var p=new FormData;return d.trim().split("&").forEach(function(g){if(g){var v=g.split("="),m=v.shift().replace(/\+/g," "),S=v.join("=").replace(/\+/g," ");p.append(decodeURIComponent(m),decodeURIComponent(S))}}),p}function R(d){var p=new y,g=d.replace(/\r?\n[\t ]+/g," ");return g.split(/\r?\n/).forEach(function(v){var m=v.split(":"),S=m.shift().trim();if(S){var T=m.join(":").trim();p.append(S,T)}}),p}I.call($.prototype);function E(d,p){p||(p={}),this.type="default",this.status=p.status===void 0?200:p.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in p?p.statusText:"OK",this.headers=new y(p.headers),this.url=p.url||"",this._initBody(d)}I.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},E.error=function(){var d=new E(null,{status:0,statusText:""});return d.type="error",d};var V=[301,302,303,307,308];E.redirect=function(d,p){if(V.indexOf(p)===-1)throw new RangeError("Invalid status code");return new E(null,{status:p,headers:{location:d}})},a.DOMException=s.DOMException;try{new a.DOMException}catch{a.DOMException=function(p,g){this.message=p,this.name=g;var v=Error(p);this.stack=v.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function K(d,p){return new Promise(function(g,v){var m=new $(d,p);if(m.signal&&m.signal.aborted)return v(new a.DOMException("Aborted","AbortError"));var S=new XMLHttpRequest;function T(){S.abort()}S.onload=function(){var P={status:S.status,statusText:S.statusText,headers:R(S.getAllResponseHeaders()||"")};P.url="responseURL"in S?S.responseURL:P.headers.get("X-Request-URL");var N="response"in S?S.response:S.responseText;g(new E(N,P))},S.onerror=function(){v(new TypeError("Network request failed"))},S.ontimeout=function(){v(new TypeError("Network request failed"))},S.onabort=function(){v(new a.DOMException("Aborted","AbortError"))},S.open(m.method,m.url,!0),m.credentials==="include"?S.withCredentials=!0:m.credentials==="omit"&&(S.withCredentials=!1),"responseType"in S&&o.blob&&(S.responseType="blob"),m.headers.forEach(function(P,N){S.setRequestHeader(N,P)}),m.signal&&(m.signal.addEventListener("abort",T),S.onreadystatechange=function(){S.readyState===4&&m.signal.removeEventListener("abort",T)}),S.send(typeof m._bodyInit>"u"?null:m._bodyInit)})}return K.polyfill=!0,s.fetch||(s.fetch=K,s.Headers=y,s.Request=$,s.Response=E),a.Headers=y,a.Request=$,a.Response=E,a.fetch=K,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,n.exports=e})(kn,kn.exports);var er=kn.exports;const fg=ue(er),em=hi({__proto__:null,default:fg},[er]);(function(n,e){var t;if(typeof fetch=="function"&&(typeof ae<"u"&&ae.fetch?t=ae.fetch:typeof window<"u"&&window.fetch?t=window.fetch:t=fetch),typeof lg<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=t||er;r.default&&(r=r.default),e.default=r,n.exports=e.default}})(Dn,Dn.exports);var ss=Dn.exports;const as=ue(ss),si=hi({__proto__:null,default:as},[ss]);function Qt(n){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qt(n)}var he;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?he=global.fetch:typeof window<"u"&&window.fetch?he=window.fetch:he=fetch);var Je;is()&&(typeof global<"u"&&global.XMLHttpRequest?Je=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Je=window.XMLHttpRequest));var Xt;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Xt=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Xt=window.ActiveXObject));!he&&si&&!Je&&!Xt&&(he=as||si);typeof he!="function"&&(he=void 0);var In=function(e,t){if(t&&Qt(t)==="object"){var r="";for(var i in t)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},ai=function(e,t,r){var i=function(a){if(!a.ok)return r(a.statusText||"Error",{status:a.status});a.text().then(function(o){r(null,{status:a.status,data:o})}).catch(r)};typeof fetch=="function"?fetch(e,t).then(i).catch(r):he(e,t).then(i).catch(r)},oi=!1,hg=function(e,t,r,i){e.queryStringParams&&(t=In(t,e.queryStringParams));var s=$n({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);r&&(s["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,o=$n({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:s},oi?{}:a);try{ai(t,o,i)}catch(u){if(!a||Object.keys(a).length===0||!u.message||u.message.indexOf("not implemented")<0)return i(u);try{Object.keys(a).forEach(function(c){delete o[c]}),ai(t,o,i),oi=!0}catch(c){i(c)}}},dg=function(e,t,r,i){r&&Qt(r)==="object"&&(r=In("",r).slice(1)),e.queryStringParams&&(t=In(t,e.queryStringParams));try{var s;Je?s=new Je:s=new Xt("MSXML2.XMLHTTP.3.0"),s.open(r?"POST":"GET",t,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var o in a)s.setRequestHeader(o,a[o]);s.onreadystatechange=function(){s.readyState>3&&i(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(u){console&&console.log(u)}},pg=function(e,t,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},he&&t.indexOf("file:")!==0)return hg(e,t,r,i);if(is()||typeof ActiveXObject=="function")return dg(e,t,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Qe(n){"@babel/helpers - typeof";return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(n)}function gg(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ui(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,os(r.key),r)}}function mg(n,e,t){return e&&ui(n.prototype,e),t&&ui(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function yg(n,e,t){return e=os(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function os(n){var e=vg(n,"string");return Qe(e)==="symbol"?e:String(e)}function vg(n,e){if(Qe(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Qe(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var bg=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,r,i){return yg({},r,i||"")},parseLoadPayload:function(t,r){},request:pg,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},us=function(){function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};gg(this,n),this.services=e,this.options=t,this.allOptions=r,this.type="backend",this.init(e,t,r)}return mg(n,[{key:"init",value:function(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=$n(i,this.options||{},bg()),this.allOptions=s,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(t,r,i){this._readAny(t,t,r,r,i)}},{key:"read",value:function(t,r,i){this._readAny([t],t,[r],r,i)}},{key:"_readAny",value:function(t,r,i,s,a){var o=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(t,i)),u=cg(u),u.then(function(c){if(!c)return a(null,{});var l=o.services.interpolator.interpolate(c,{lng:t.join("+"),ns:i.join("+")});o.loadUrl(l,a,r,s)})}},{key:"loadUrl",value:function(t,r,i,s){var a=this,o=typeof i=="string"?[i]:i,u=typeof s=="string"?[s]:s,c=this.options.parseLoadPayload(o,u);this.options.request(this.options,t,c,function(l,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+t+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+t+"; status code: "+f.status,!1);if(!f&&l&&l.message&&l.message.indexOf("Failed to fetch")>-1)return r("failed loading "+t+": "+l.message,!0);if(l)return r(l,!1);var h,w;try{typeof f.data=="string"?h=a.options.parse(f.data,i,s):h=f.data}catch{w="failed parsing "+t+" to json"}if(w)return r(w,!1);r(null,h)})}},{key:"create",value:function(t,r,i,s,a){var o=this;if(this.options.addPath){typeof t=="string"&&(t=[t]);var u=this.options.parsePayload(r,i,s),c=0,l=[],f=[];t.forEach(function(h){var w=o.options.addPath;typeof o.options.addPath=="function"&&(w=o.options.addPath(h,r));var y=o.services.interpolator.interpolate(w,{lng:h,ns:r});o.options.request(o.options,y,u,function(A,L){c+=1,l.push(A),f.push(L),c===t.length&&typeof a=="function"&&a(l,f)})})}}},{key:"reload",value:function(){var t=this,r=this.services,i=r.backendConnector,s=r.languageUtils,a=r.logger,o=i.language;if(!(o&&o.toLowerCase()==="cimode")){var u=[],c=function(f){var h=s.toResolveHierarchy(f);h.forEach(function(w){u.indexOf(w)<0&&u.push(w)})};c(o),this.allOptions.preload&&this.allOptions.preload.forEach(function(l){return c(l)}),u.forEach(function(l){t.allOptions.ns.forEach(function(f){i.read(l,f,"read",null,null,function(h,w){h&&a.warn("loading namespace ".concat(f," for language ").concat(l," failed"),h),!h&&w&&a.log("loaded namespace ".concat(f," for language ").concat(l),w),i.loaded("".concat(l,"|").concat(f),h,w)})})})}}}]),n}();us.type="backend";var cs={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(ae,function(){var t={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,i,s){var a=i.prototype,o=a.format;s.en.formats=t,a.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,l=function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,y,A){var L=A&&A.toUpperCase();return y||h[A]||t[A]||h[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,k,D){return k||D.slice(1)})})}(u,c===void 0?{}:c);return o.call(this,l)}}})})(cs);var wg=cs.exports;const Sg=ue(wg);function Tg(){if(console&&console.warn){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];typeof e[0]=="string"&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const ci={};function Rn(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];typeof e[0]=="string"&&ci[e[0]]||(typeof e[0]=="string"&&(ci[e[0]]=new Date),Tg(...e))}const ls=(n,e)=>()=>{if(n.isInitialized)e();else{const t=()=>{setTimeout(()=>{n.off("initialized",t)},0),e()};n.on("initialized",t)}};function li(n,e,t){n.loadNamespaces(e,ls(n,t))}function fi(n,e,t,r){typeof t=="string"&&(t=[t]),t.forEach(i=>{n.options.ns.indexOf(i)<0&&n.options.ns.push(i)}),n.loadLanguages(e,ls(n,r))}function Eg(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],i=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(o,u)=>{const c=e.services.backendConnector.state[`${o}|${u}`];return c===-1||c===2};return t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,n)?!1:!!(e.hasResourceBundle(r,n)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,n)&&(!i||a(s,n)))}function _g(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(Rn("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(n,{lng:t.lng,precheck:(i,s)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,n))return!1}}):Eg(n,e,t)}function tm(n){return n.displayName||n.name||(typeof n=="string"&&n.length>0?n:"Unknown")}const Og=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Pg={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ag=n=>Pg[n],Lg=n=>n.replace(Og,Ag);let Nn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Lg};function xg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nn={...Nn,...n}}function Cg(){return Nn}let fs;function $g(n){fs=n}function Dg(){return fs}const kg={type:"3rdParty",init(n){xg(n.options.react),$g(n)}},Ig=fe.createContext();class Rg{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Ng=(n,e)=>{const t=fe.useRef();return fe.useEffect(()=>{t.current=e?t.current:n},[n,e]),t.current};function jg(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:t}=e,{i18n:r,defaultNS:i}=fe.useContext(Ig)||{},s=t||r||Dg();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Rg),!s){Rn("You will need to pass in an i18next instance by using initReactI18next");const D=(I,_)=>typeof _=="string"?_:_&&typeof _=="object"&&typeof _.defaultValue=="string"?_.defaultValue:Array.isArray(I)?I[I.length-1]:I,x=[D,{},!1];return x.t=D,x.i18n={},x.ready=!1,x}s.options.react&&s.options.react.wait!==void 0&&Rn("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...Cg(),...s.options.react,...e},{useSuspense:o,keyPrefix:u}=a;let c=n||i||s.options&&s.options.defaultNS;c=typeof c=="string"?[c]:c||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(c);const l=(s.isInitialized||s.initializedStoreOnce)&&c.every(D=>_g(D,s,a));function f(){return s.getFixedT(e.lng||null,a.nsMode==="fallback"?c:c[0],u)}const[h,w]=fe.useState(f);let y=c.join();e.lng&&(y=`${e.lng}${y}`);const A=Ng(y),L=fe.useRef(!0);fe.useEffect(()=>{const{bindI18n:D,bindI18nStore:x}=a;L.current=!0,!l&&!o&&(e.lng?fi(s,e.lng,c,()=>{L.current&&w(f)}):li(s,c,()=>{L.current&&w(f)})),l&&A&&A!==y&&L.current&&w(f);function I(){L.current&&w(f)}return D&&s&&s.on(D,I),x&&s&&s.store.on(x,I),()=>{L.current=!1,D&&s&&D.split(" ").forEach(_=>s.off(_,I)),x&&s&&x.split(" ").forEach(_=>s.store.off(_,I))}},[s,y]);const j=fe.useRef(!0);fe.useEffect(()=>{L.current&&!j.current&&w(f),j.current=!1},[s,u]);const k=[h,s,l];if(k.t=h,k.i18n=s,k.ready=l,l||!l&&!o)return k;throw new Promise(D=>{e.lng?fi(s,e.lng,c,()=>D()):li(s,c,()=>D())})}let tr;const Mg=n=>{tr=n},nm=n=>jg(n,{i18n:tr}),rm=function(n,e,t={},r=""){const{language:i,t:s,services:a}=tr;t.defaultValue=n;let o=s(n,t);return t.count===1||i.startsWith("en")&&(o=a.interpolator.interpolate(e,{...t},i,t.interpolation||{})),o};jn.extend(Sg);const Hg=Object.assign({"../../play-ui/src/translations/ar.po":()=>M(()=>import("./ar-5848714a.js"),[]),"../../play-ui/src/translations/bg.po":()=>M(()=>import("./bg-6ac8fe79.js"),[]),"../../play-ui/src/translations/cz.po":()=>M(()=>import("./cz-c6bb6916.js"),[]),"../../play-ui/src/translations/de.po":()=>M(()=>import("./de-517841ab.js"),[]),"../../play-ui/src/translations/en.po":()=>M(()=>import("./en-b25bb000.js"),[]),"../../play-ui/src/translations/fr-CH.po":()=>M(()=>import("./fr-CH-209cfb7e.js"),[]),"../../play-ui/src/translations/hu.po":()=>M(()=>import("./hu-173d542c.js"),[]),"../../play-ui/src/translations/it-CH.po":()=>M(()=>import("./it-CH-83d1df75.js"),[]),"../../play-ui/src/translations/nl.po":()=>M(()=>import("./nl-33cee27c.js"),[]),"../../play-ui/src/translations/pl.po":()=>M(()=>import("./pl-ceb1b656.js"),[]),"../../play-ui/src/translations/ro.po":()=>M(()=>import("./ro-1166cdc8.js"),[]),"../../play-ui/src/translations/ru.po":()=>M(()=>import("./ru-a2fe823b.js"),[]),"../../play-ui/src/translations/si.po":()=>M(()=>import("./si-07836c06.js"),[]),"../../play-ui/src/translations/sk.po":()=>M(()=>import("./sk-fdc0be95.js"),[])}),Ug=Object.assign({"../translations/ar.po":()=>M(()=>import("./ar-25cb5e90.js"),[]),"../translations/bg.po":()=>M(()=>import("./bg-460426f6.js"),[]),"../translations/cz.po":()=>M(()=>import("./cz-2a6db2ba.js"),[]),"../translations/de.po":()=>M(()=>import("./de-e11b2828.js"),[]),"../translations/en.po":()=>M(()=>import("./en-54944da4.js"),[]),"../translations/fr-CH.po":()=>M(()=>import("./fr-CH-be36ff09.js"),[]),"../translations/hu.po":()=>M(()=>import("./hu-b8b54a95.js"),[]),"../translations/it-CH.po":()=>M(()=>import("./it-CH-0d971ed6.js"),[]),"../translations/nl.po":()=>M(()=>import("./nl-8ba3d414.js"),[]),"../translations/pl.po":()=>M(()=>import("./pl-7b82d86b.js"),[]),"../translations/ro.po":()=>M(()=>import("./ro-be88f5c9.js"),[]),"../translations/ru.po":()=>M(()=>import("./ru-d03067b5.js"),[]),"../translations/si.po":()=>M(()=>import("./si-9c4680d5.js"),[]),"../translations/sk.po":()=>M(()=>import("./sk-d75eeae3.js"),[])});z.use(ns).use(kg).use(us).init({backend:{loadPath:"{{ns}}/{{lng}}.po",async request(n,e,t,r){const[i,s]=e.split("/"),a=i==="play-ui"?Hg:Ug,o=Object.keys(a).find(c=>c.endsWith(s)),u=await a[o]();r(null,{status:200,data:JSON.stringify(u.default)})}},supportedLngs:["en","de","fr-CH","it-CH","cz","sk","ru","pl","hu","ro","nl","si","ar"],fallbackLng:{fr:["fr-CH"],it:["it-CH"],default:["en"]},keySeparator:!1,nsSeparator:!1,ns:["app","play-ui"],defaultNS:"app",interpolation:{escapeValue:!1},compatibilityJSON:"v3"},n=>{jn.locale(z.language),n&&console.error("error while initializing i18next: "+JSON.stringify(n))});z.on("languageChanged",n=>{console.info(`Changed language to "${n}"`),jn.locale(n)});Mg(z);const Fg=hs("ovosplay:native"),Bg={method:"GET"},Vg=async(n,e={})=>{const{method:t,headers:r,body:i}=Object.assign({},Bg,e);let s=i;if(typeof n!="string")throw new Error("Only use capacitorFetch with (url: string, options: RequestInit)");try{typeof i=="string"&&r&&"content-type"in r&&r["content-type"]==="application/json"&&(s=JSON.parse(i));const a=await _s.request({url:n,headers:{"x-client-version":"2.85.0","x-language":z.language,...r},data:s,method:t.toUpperCase(),webFetchExtra:{credentials:"include"}});return Object.defineProperty(a.headers,"forEach",{value:o=>Object.keys(a.headers).forEach(u=>o(a.headers[u],u)),enumerable:!1}),Object.defineProperty(a.headers,"get",{value:o=>a.headers[o],enumerable:!1}),{...a,headers:a.headers,ok:a.status>=200&&a.status<=299,text:()=>Promise.resolve(typeof a.data=="object"?JSON.stringify(a.data):a.data),json:()=>Promise.resolve(typeof a.data=="object"?a.data:JSON.parse(a.data)),statusText:`${a.status}`}}catch(a){throw console.error("An error occurred during capacitorFetch:",a),a}},im=!Ae.isNativePlatform()||localStorage.getItem("useFetch")==="true"?(n,e={})=>fetch(n,{...e,credentials:"include",headers:{"x-client-version":"2.85.0","x-language":z.language,...e.headers||{}}}):Vg;function sm(){Ae.isNativePlatform()&&(xc()||dr.lock(dr.ORIENTATIONS.PORTRAIT),or.setStyle({style:vn.Dark}),Er()&&or.hide(),et.addListener("keyboardDidShow",n=>{document.activeElement.scrollIntoView({behavior:"instant",block:"nearest"})}),Li()&&(Fg("Setting up iOS specific functionality..."),et.setAccessoryBarVisible({isVisible:!0}),document.addEventListener("click",n=>{var t;const e=n.target;if(e.tagName==="A"&&((t=e.getAttribute("target"))!=null&&t.startsWith("_blank"))){const r=e.getAttribute("href");r&&r.startsWith("#/")&&(n.preventDefault(),window.location.href=r)}})),Er()&&tt&&(tt.immersiveMode(),et.addListener("keyboardWillShow",()=>{tt.showSystemUI()}),et.addListener("keyboardDidHide",()=>{tt.immersiveMode()})))}function am(){document.activeElement instanceof HTMLElement&&document.activeElement.nodeName==="INPUT"&&document.activeElement.blur()}function om(n){return`${n}?native=${Li()?window.MOBILE_APP_IOS_APPID:window.MOBILE_APP_ANDROID_APPID}`}const um=(n,e)=>{for(const t of e){const r=n[t];(!r||Array.isArray(r)&&r.length<=0||t==="__typename")&&delete n[t]}return n};function cm(n=""){const e=Tp().getState();return n.replace(/{{([a-zA-Z.\-_]*)}}/gi,(t,r)=>{const i=Pc(e,r);return i==null?(console.warn(`No value found for key: ${r}`),""):encodeURIComponent(String(i))})}export{Jg as $,Xe as A,Qa as B,Ae as C,Dl as D,zi as E,Wi as F,$e as G,Nh as H,Ji as I,Hi as J,Yl as K,Xl as L,Th as M,Sh as N,zl as O,ef as P,gf as Q,ve as R,Dh as S,lg as T,fg as U,em as V,pi as W,er as X,uc as Y,Fn as Z,Oi as _,Li as a,xc as a0,pc as a1,Yi as a2,vc as a3,Er as a4,Ac as a5,Kp as a6,Pc as a7,um as a8,Tc as a9,Ws as aA,kf as aB,qi as aa,ec as ab,Fd as ac,np as ad,Bi as ae,cm as af,et as ag,Vi as ah,Wg as ai,Yg as aj,sc as ak,Gg as al,Xi as am,dp as an,Qn as ao,Qg as ap,op as aq,Oc as ar,Ia as as,Vl as at,rm as au,Xg as av,qg as aw,fn as ax,Si as ay,en as az,Tp as b,tr as c,jn as d,Kg as e,im as f,tm as g,om as h,z as i,nm as j,am as k,Un as l,Zg as m,Wl as n,sn as o,xe as p,af as q,Zt as r,sm as s,Ui as t,jg as u,Qh as v,Xn as w,Bn as x,Ce as y,_i as z};
//# sourceMappingURL=util-9ab2f0b7.js.map
