PageSourceSearch

https://mitgestalten.speyer.de/assets/cl-intl.C4y3pUTH.chunk.js

js speyer.de collected 2026-10-02 04:01:57 UTC 195,121 bytes, 40 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`829619`}}catch{}})();import{o as e,t}from"./chunk.DWOaK67G.chunk.js";import{t as n}from"./react.CYZk_CtU.chunk.js";import{t as r}from"./jsx-runtime.Bznl9TfO.chunk.js";import{F as i,I as a,M as o,N as s,a as c,c as l,k as u,l as d,o as f,s as p}from"./prop-types.fZsyUefv.chunk.js";import{A as m,O as h,k as g,o as _,t as v}from"./history.BTnQtFIA.chunk.js";import{_ as y,b,c as x,d as S,f as C,g as w,i as T,n as ee,o as te,p as E,s as D,t as O,v as ne,y as k}from"./isUndefined.B6LTBodS.chunk.js";import{r as re,t as ie}from"./keys.D9klFhpv.chunk.js";import{Lt as A,Tt as ae,ut as oe,x as j,zt as M}from"./component-library.CtG4SDMh.chunk.js";import{t as se}from"./__vite-browser-external.DXmZuBA4.chunk.js";import{o as ce,t as N}from"./constants.DHIOLe8Q.chunk.js";import{l as P,o as F,t as I,u as le}from"./tslib.es6.CoBun8nx.chunk.js";import{a as ue,l as de}from"./Svg.BMI3pl-C.chunk.js";var L=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,R=globalThis,fe=`10.70.0`;function z(){return B(R),R}function B(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.70.0`,t[fe]=t[`10.70.0`]||{}}function V(e,t,n=R){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[fe]=r[`10.70.0`]||{};return i[e]||(i[e]=t())}var pe=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],me=`Sentry Logger `,he={};function ge(e){if(!(`console`in R))return e();let t=R.console,n={},r=Object.keys(he);r.forEach(e=>{let r=he[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function _e(){we().enabled=!0}function ve(){we().enabled=!1}function ye(){return we().enabled}function be(...e){Ce(`log`,...e)}function xe(...e){Ce(`warn`,...e)}function Se(...e){Ce(`error`,...e)}function Ce(e,...t){L&&ye()&&ge(()=>{R.console[e](`${me}[${e}]:`,...t)})}function we(){return L?V(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var H={enable:_e,disable:ve,isEnabled:ye,log:be,warn:xe,error:Se},Te=50,Ee=/\(error: (.*)\)/,De=/captureMessage|captureException/;function Oe(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
2`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=Ee.test(n)?n.replace(Ee,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=Te+r)break}}return Ae(i.slice(r))}}function ke(e){return Array.isArray(e)?Oe(...e):e}function Ae(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(je(t).function||``)&&t.pop(),t.reverse(),De.test(je(t).function||``)&&(t.pop(),De.test(je(t).function||``)&&t.pop()),t.slice(0,Te).map(e=>({...e,filename:e.filename||je(t).filename,function:e.function||`?`}))}function je(e){return e[e.length-1]||{}}var Me=`<anonymous>`;function Ne(e){try{return!e||typeof e!=`function`?Me:e.name||Me}catch{return Me}}function Pe(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var Fe=Object.prototype.toString;function Ie(e){switch(Fe.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Ye(e,Error)}}function Le(e,t){return Fe.call(e)===`[object ${t}]`}function Re(e){return Le(e,`ErrorEvent`)}function ze(e){return Le(e,`DOMError`)}function Be(e){return Le(e,`DOMException`)}function Ve(e){return Le(e,`String`)}function He(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Ue(e){return e===null||He(e)||typeof e!=`object`&&typeof e!=`function`}function We(e){return Le(e,`Object`)}function Ge(e){return typeof e==`object`&&!!e}function Ke(e){return typeof Event<`u`&&Ye(e,Event)}function qe(e){return Le(e,`RegExp`)}function Je(e){return!!(e?.then&&typeof e.then==`function`)}function Ye(e,t){try{return e instanceof t}catch{return!1}}function Xe(e){return typeof Request<`u`&&Ye(e,Request)}function Ze(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&$e(i,r);try{e[t]=i}catch{L&&H.log(`Failed to replace method "${t}" in object`,e)}}function Qe(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{L&&H.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function $e(e,t){try{e.prototype=t.prototype=t.prototype||{},Qe(e,`__sentry_original__`,t)}catch{}}function et(e){return e.__sentry_original__}function tt(e){if(Ie(e))return{message:e.message,name:e.name,stack:e.stack,...nt(e)};
2if(Ke(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...nt(e)}}return e}function nt(e){return Ge(e)?Object.fromEntries(Object.entries(e)):{}}function rt(e){let t=Object.keys(tt(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var it;function at(e){if(it!==void 0)return it?it(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=R;return t in n&&typeof n[t]==`function`?(it=n[t],it(e)):(it=null,e())}function ot(){return at(()=>Math.random())}function st(){return at(()=>Date.now())}var ct=Symbol.for(`sentry.skipNormalization`),lt=Symbol.for(`sentry.overrideNormalizationDepth`);function ut(e){return!!e[ct]}function dt(e){let t=e[lt];return typeof t==`number`?t:void 0}var ft;function pt(e){ft=e}function mt(e,t=100,n=1/0){try{return gt(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function ht(e,t=3,n=100*1024){let r=mt(e,t);return bt(r)>n?ht(e,t-1,n):r}function gt(e,t,n=1/0,r=1/0,i=xt()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=_t(e,t);if(!s.startsWith(`[object `))return s;if(ut(t))return t;let c=dt(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return gt(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=tt(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=gt(e,t,l-1,r,i),f++}return o(t),d}function _t(e,t){try{if(ft){let e=ft(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${Ne(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${vt(t)}]`}catch(e){return`**non-serializable** (${e})`}}function vt(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function yt(e){return~-encodeURI(e).split(/%..|./).length}function bt(e){return yt(JSON.stringify(e))}function xt(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function St(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ct(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];Ue(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(_t(void 0,r))}return n.join(t)}function wt(e,t,n=!1){return Ve(e)?qe(t)?t.test(e):Ve(t)?n?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function Tt(e,t=[],n=!1){for(let r of t)if(wt(e,r,n))return!0;return!1}function Et(){let e=R;return e.crypto||e.msCrypto}var Dt;function Ot(){return ot()*16}function kt(e=Et()){try{if(e?.randomUUID)return at(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Dt||=`10000000100040008000100000000000`,Dt.replace(/[018]/g,e=>(e^(Ot()&15)>>e/4).toString(16))}function At(e){return e.exception?.values?.[0]}function jt(e){let{message:t,event_id:n}=e;if(t)return t;let r=At(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Mt(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function Nt(e,t){let n=At(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function Pt(e){if(Ft(e))return!0;try{Qe(e,`__sentry_captured__`,!0)}catch{}return!1}function Ft(e){try{return e.__sentry_captured__}catch{}}var It=1e3;function Lt(){return st()/It}function Rt(){let{performance:e}=R;if(!e?.now||!e.timeOrigin)return Lt;let t=e.timeOrigin;return()=>(t+at(()=>e.now()))/It}var zt;function Bt(){return(zt??=Rt())()}var Vt=null;function Ht(){let{performance:e}=R;if(!e?.now)return;let t=3e5,n=at(()=>e.now()),r=st(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function Ut(){return Vt===null&&(Vt=Ht()),Vt}function Wt(e){let t=Bt(),n={sid:kt(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>qt(n)};return e&&Gt(n,e),n}function Gt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Bt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:kt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
2ypeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Kt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),Gt(e,n)}function qt(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Jt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Jt(r[e],t[e],n-1));return r}function Yt(){return kt()}function Xt(){return kt().substring(16)}function Zt(e){try{let t=R.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function Qt(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var $t=`_sentrySpan`;function en(e,t){t?Qe(e,$t,Zt(t)):delete e[$t]}function tn(e){return Qt(e[$t])}var nn=100,rn=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Yt(),sampleRand:ot()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,en(t,tn(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Gt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():We(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,en(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Yt(),sampleRand:ot()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:nn;if(n<=0)return this;let r={timestamp:Lt(),...e,message:e.message?St(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:tn(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Jt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||kt();if(!this._client)return L&&H.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||kt();if(!this._client)return L&&H.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||kt();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(L&&H.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),!1)}};function an(){return V(`defaultCurrentScope`,()=>new rn)}function on(){return V(`defaultIsolationScope`,()=>new rn)}var sn=e=>e instanceof Promise&&!e[cn],cn=Symbol(`chained PromiseLike`),ln=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return sn(r)&&sn(e)?r:un(e,r)},un=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[cn]:!0}),t},dn=class{constructor(e,t){let n;n=e||new rn;let r;r=t||new rn,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return Je(n)?ln(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function fn(){let e=B(z());return e.stack=e.stack||new dn(an(),on())}function pn(e){return fn().withScope(e)}function mn(e,t){let n=fn();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function hn(e){return fn().withScope(()=>e(fn().getIsolationScope()))}function gn(){return{withIsolationScope:hn,withScope:pn,withSetScope:mn,withSetIsolationScope:(e,t)=>hn(t),getCurrentScope:()=>fn().getScope(),getIsolationScope:()=>fn().getIsolationScope()}}function _n(e){let t=B(e);return t.acs?t.acs:gn()}function vn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function yn(e,t){let{value:n,unit:r}=vn(e)?e:{value:e,unit:void 0},i=xn(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function bn(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=yn(i,t);e&&(n[r]=e)}return n}function xn(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}var Sn;function Cn(){return Sn?.()}function wn(){return Sn!==void 0}function U(){return _n(z()).getCurrentScope()}function Tn(){return _n(z()).getIsolationScope()}function En(){return V(`globalScope`,()=>new rn)}function Dn(...e){let t=_n(z());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function W(){return U().getClient()}function On(e){let t=Cn();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||Xt()};return r&&(a.parent_span_id=r),a}var kn=`sentry.source`,An=`sentry.sample_rate`,jn=`sentry.previous_trace_sample_rate`,Mn=`sentry.op`,Nn=`sentry.origin`,Pn=`sentry.idle_span_finish_reason`,Fn=`sentry.measurement_unit`,In=`sentry.measurement_value`,Ln=`sentry.custom_span_name`,Rn=`sentry.profile_id`,zn=`sentry.exclusive_time`,Bn=`sentry.link.type`,Vn=`gen_ai.conversation.id`;function Hn(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function Un(e,t){e.setAttribute(`http.response.status_code`,t);let n=Hn(t);n.message!==`unknown_error`&&e.setStatus(n)}var Wn=`_sentryScope`,Gn=`_sentryIsolationScope`,Kn=Symbol.for(`sentry.otelSourceInference`),qn=Symbol.for(`sentry.otelSourceExplicitlySet`),Jn=Symbol.for(`sentry.tracerProviderSpan`);
2function Yn(e,t,n){e&&(Qe(e,Gn,Zt(n)),Qe(e,Wn,t))}function Xn(e){let t=e;return{scope:t[Wn],isolationScope:Qt(t[Gn])}}function Zn(e){return e[Kn]===!0}function Qn(e){Qe(e,qn,!0)}function $n(e){return e[Jn]===!0}var er=`sentry-`;function tr(e){let t=rr(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function nr(e){if(e)return ar(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${er}${t}`]=n),e),{}))}function rr(e){if(!(!e||!Ve(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=ir(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):ir(e)}function ir(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function ar(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(L&&H.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}var or=/^o(\d+)\./,sr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function cr(e){return e===`http`||e===`https`}function lr(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function ur(e){let t=sr.exec(e);if(!t){ge(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return dr({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function dr(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function fr(e){if(!L)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(H.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?cr(r)?t&&isNaN(parseInt(t,10))?(H.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(H.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(H.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function pr(e){return e.match(or)?.[1]}function mr(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=pr(n)),r}function hr(e){let t=typeof e==`string`?ur(e):dr(e);if(!(!t||!fr(t)))return t}function gr(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var _r=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function vr(e){if(!e)return;let t=e.match(_r);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function yr(e,t){let n=vr(e),r=tr(t);if(!n?.traceId)return{traceId:Yt(),sampleRand:ot()};let i=Sr(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function br(e=Yt(),t=Xt(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function xr(e=Yt(),t=Xt(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function Sr(e,t){let n=gr(t?.sample_rand);if(n!==void 0)return n;let r=gr(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?ot()*r:r+ot()*(1-r):ot()}var Cr=!1;function wr(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=G(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Tr(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:G(e).parent_span_id,a=Xn(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||Xt():t,trace_id:n}}function Er(e){let{traceId:t,spanId:n}=e.spanContext();return br(t,n,Lr(e))}function Dr(e){let{traceId:t,spanId:n}=e.spanContext();return xr(t,n,Lr(e))}function Or(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function kr(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function Ar(e){return typeof e==`number`?jr(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?jr(e.getTime()):Bt()}function jr(e){return e>9999999999?e/1e3:e}function G(e){if(Ir(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Fr(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Nr(e),start_timestamp:Ar(i),timestamp:Ar(o)||void 0,status:Rr(s),op:r[Mn],origin:r[Nn],links:Or(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Mr(e){if(Ir(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Fr(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:Nr(e),start_timestamp:Ar(i),end_timestamp:Ar(o),is_segment:e===qr(e),status:zr(s),attributes:Br(r,s),links:kr(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===qr(e)}}function Nr(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function Pr(e){return{...e,attributes:bn(e.attributes),links:e.links?.map(e=>({...e,attributes:bn(e.attributes)}))}}function Fr(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Ir(e){return typeof e.getSpanJSON==`function`}function Lr(e){let{traceFlags:t}=e.spanContext();return t===1}function Rr(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function zr(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}function Br(e,t){let n=zr(t)===`error`?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}var Vr=`_sentryChildSpans`,Hr=`_sentryRootSpan`;function Ur(e,t){Qe(t,Hr,e[Hr]||e),e[Vr]?e[Vr].add(t):Qe(e,Vr,new Set([t]))}function Wr(e,t){e[Vr]&&e[Vr].delete(t)}function Gr(e){let t=new Set;function n(e){if(!t.has(e)&&Lr(e)){t.add(e);let r=e[Vr]?Array.from(e[Vr]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var Kr=qr;function qr(e){return e[Hr]||e}function Jr(){let e=_n(z());return e.getActiveSpan?e.getActiveSpan():tn(U())}function Yr(){Cr||=(ge(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function Xr(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||W()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Zr(e){H.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Qr(e,t){if(!t?.length)return!1;for(let n of t){if(ti(n)){if(e.description&&wt(e.description,n))return L&&Zr(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=n.name?e.description&&wt(e.description,n.name):!0,i=n.op?e.op&&wt(e.op,n.op):!0,a=n.attributes?Object.entries(n.attributes).every(([t,n])=>$r(e.attributes?.[t],n)):!0;if(r&&i&&a)return L&&Zr(e),!0}return!1}function $r(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?wt(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function ei(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function ti(e){return typeof e==`string`||e instanceof RegExp}var ni=Symbol.for(`sentry.nonRecordingSpan`),ri=class{constructor(e={}){this._traceId=e.traceId||Yt(),this._spanId=e.spanId||Xt(),this.dropReason=e.dropReason,Qe(this,ni,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
2addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function ii(e){return!!e&&e[ni]===!0}var ai=`production`,oi=`_frozenDsc`;function si(e,t){Qe(e,oi,t)}function ci(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:mr(t)};return t.emit(`createDsc`,i),i}function li(e,t){let n=t.getPropagationContext();return n.dsc||ci(n.traceId,e)}function ui(e){let t=W();if(!t)return{};let n=Kr(e),r=G(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[oi];if(c)return s(c);let l=ii(n),u=l&&n.dropReason===`ignored`;if(l&&(!Xr(t.getOptions())||u)){let e=Xn(n).scope;if(e){let n={...li(t,e)};return u&&(n.sampled=`false`),s(n)}}let d=a?.get(`sentry.dsc`),f=d&&tr(d);if(f)return s(f);let p=ci(e.spanContext().traceId,t),m=i[`sentry.source`]??i[`sentry.segment.name.source`],h=r.description;return m!==`url`&&h&&(p.transaction=h),Xr()&&(p.sampled=String(Lr(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??Xn(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function di(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function fi(e,t=[]){return[e,t]}function pi(e,t){let[n,r]=e;return[n,[...r,t]]}function mi(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function hi(e,t){return mi(e,(e,n)=>t.includes(n))}function gi(e){let t=B(R);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function _i(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[gi(r),e]:r.push(typeof e==`string`?gi(e):e)}for(let e of n){let[t,n]=e;if(i(`
3${JSON.stringify(t)}
4`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(mt(n))}i(e)}}return typeof r==`string`?r:vi(r)}function vi(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function yi(e){return[{type:`span`},e]}function bi(e){let t=typeof e.data==`string`?gi(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var xi={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function Si(e){return e in xi}function Ci(e){return Si(e)?xi[e]:e}function wi(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ti(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(st()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:lr(r)},...i&&{trace:i}}}function Ei(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Di(e,t,n,r){let i=wi(n);return fi({sent_at:new Date(st()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:lr(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Oi(e,t,n,r){let i=wi(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Ei(e,n?.sdk);let o=Ti(e,i,r,t);return delete e.sdkProcessingMetadata,fi(o,[[{type:a},e]])}function ki(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=ui(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date(st()).toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:lr(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=G(e);return!Qr({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=G(e);return(di(s)?t:s(t))||(Yr(),t)}:G,f=[];for(let e of l){let t=d(e);t&&f.push(yi(t))}return fi(o,f)}function Ai(e){if(!L)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=G(e),{spanId:i}=e.spanContext(),a=Lr(e),o=Kr(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];
4if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=G(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}H.log(`${c}
5  ${l.join(`
6  `)}`)}function ji(e){if(!L)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=G(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${Kr(e)===e?`root `:``}span "${t}" with ID ${r}`;H.log(i)}function Mi(e,t,n,r=Jr()){let i=r&&Kr(r);i&&(L&&H.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[In]:t,[Fn]:n}))}function Ni(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Fn],i=n[In];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Pi(){return B(z()).segmentSpanCaptureStrategy}function Fi(e){return e.getOptions().traceLifecycle===`stream`}var Ii=1e3,Li=class{constructor(e={}){this._traceId=e.traceId||Yt(),this._spanId=e.spanId||Xt(),this._startTime=e.startTimestamp||Bt(),this._links=e.links,this._attributes={},this.setAttributes({[Nn]:`manual`,[Mn]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:(t===void 0?delete this._attributes[e]:this._attributes[e]=t,e===`sentry.source`&&t!==void 0&&Zn(this)&&Qn(this),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=Ar(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,Zn(this)||this.setAttribute(kn,`custom`),this)}end(e){if(this._endTime){this._frozen=$n(this);return}this._endTime=Ar(e),ji(this),this._onSpanEnded(),this._frozen=$n(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Mn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Rr(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Nn],profile_id:this._attributes[Rn],exclusive_time:this._attributes[zn],measurements:Ni(this._events),is_segment:this._isStandaloneSpan&&Kr(this)===this||void 0,segment_id:this._isStandaloneSpan?Kr(this).spanContext().spanId:void 0,links:Or(this._links)}}getStreamedSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===Kr(this),status:zr(this._status),attributes:Br(this._attributes,this._status),links:kr(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;L&&H.log(`[Tracing] Adding an event to span:`,e);let r=Ri(t)?t:n||Bt(),i=Ri(t)?{}:t||{},a={name:e,time:Ar(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=W();e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this));let t=Kr(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan){this._sampled?Vi(ki([this],e)):(L&&H.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}if(!n){let e=Pi();if(e){let n=Xn(this).scope||U();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&Fi(e)){e.emit(`afterSegmentSpanEnd`,this);return}let r=Xn(this).scope||U(),i=Pi();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!zi(G(this)))return;this._name||=(L&&H.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=Xn(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let i=[];for(let t of Gr(this)){if(t===this||Bi(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=G(t);zi(n)&&(e.onSpanCaptured?.(t),i.push(n))}let a=this._attributes[kn];delete this._attributes[Ln];let o=!1;
6i.forEach(e=>{delete e.data[Ln],e.op?.startsWith(`gen_ai.`)&&(o=!0)});let s={contexts:{trace:wr(this)},spans:i.length>Ii?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Ii):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:ui(this),hasGenAiSpans:o},request:r,...a&&{transaction_info:{source:a}}},c=Ni(this._events);return c&&Object.keys(c).length&&(L&&H.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(c,void 0,2)),s.measurements=c),s}};function Ri(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function zi(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Bi(e){return e instanceof Li&&e.isStandaloneSpan()}function Vi(e){let t=W();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Hi(e,t,n){if(!Xr(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=gr(i);if(a===void 0)return L&&H.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return L&&H.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||L&&H.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var Ui=`__SENTRY_SUPPRESS_TRACING__`;function Wi(e){let t=Zi();return t.startInactiveSpan?t.startInactiveSpan(e):Gi(e)}function Gi(e){let t=Xi(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>Dn(e.scope,t):r===void 0?e=>e():e=>Ki(r,e))(()=>{let i=U(),a=ea(i,r),o=W();return e.onlyIfParent&&!a?Ji(i,o):Yi({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}function Ki(e,t){let n=Zi();return n.withActiveSpan?n.withActiveSpan(e,t):Dn(n=>(en(n,e||void 0),t(n)))}function qi(e=U()){let t=Zi();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[Ui]===!0}function Ji(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new ri({traceId:e.getPropagationContext().traceId});return Yn(n,e,Tn()),n}function Yi({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i=Tn();if(!Xr()){let t={...i.getPropagationContext(),...r.getPropagationContext()},a=new ri({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&Ur(e,a),Yn(a,r,i),a}let a=W();if(ta(a,t)){qi(r)||a?.recordDroppedEvent(`ignored`,`span`);let t=new ri({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&Ur(e,t),Yn(t,r,i),t}let o;if(e&&!n)o=$i(e,r,t,i),Ur(e,o);else if(e){let n=ui(e),{traceId:a,spanId:s}=e.spanContext(),c=Lr(e);o=Qi({traceId:a,parentSpanId:s,...t},r,i,c),si(o,n)}else{let{traceId:e,dsc:n,parentSpanId:a,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};o=Qi({traceId:e,parentSpanId:a,...t},r,i,s),n&&si(o,n)}return Ai(o),o}function Xi(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=Ar(e.startTime),delete n.startTime,n}return t}function Zi(){return _n(z())}function Qi(e,t,n,r){let i=W(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),d=qi(t),[f,p,m]=d?[!1]:Hi(a,{name:o,parentSampled:c,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:gr(u.dsc?.sample_rate)},u.sampleRand),h=new Li({...e,attributes:{[kn]:`custom`,[An]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(L&&H.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,Fi(i)?`span`:`transaction`)),Yn(h,t,n),i&&i.emit(`spanStart`,h),h}function $i(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=qi(t),s=o?!1:Lr(e),c=s?new Li({...n,parentSpanId:i,traceId:a,sampled:s}):new ri({traceId:a});Ur(e,c),Yn(c,t,r);let l=W();return l?(Fi(l)&&ii(c)&&(ii(e)&&e.dropReason?(c.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,`span`)):o||(c.dropReason=`sample_rate`,l.recordDroppedEvent(`sample_rate`,`span`))),l.emit(`spanStart`,c),n.endTimestamp&&(l.emit(`spanEnd`,c),l.emit(`afterSpanEnd`,c)),c):c}function ea(e,t){if(t)return t;if(t===null)return;let n=tn(e);if(!n)return;let r=W();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Kr(n):n}function ta(e,t){let n=e?.getOptions().ignoreSpans;return!e||!Fi(e)||!n?.length?!1:Qr({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function na(e){return ii(e)&&e.dropReason===`ignored`}function ra(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;sa(e,t),r&&ua(e,r),da(e,n),ca(e,i),la(e,a)}function ia(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;
6aa(e,`extra`,n),aa(e,`tags`,r),aa(e,`attributes`,i),aa(e,`user`,a),aa(e,`contexts`,o),e.sdkProcessingMetadata=Jt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function aa(e,t,n){e[t]=Jt(e[t],n,1)}function oa(e,t){let n=En().getScopeData();return e&&ia(n,e.getScopeData()),t&&ia(n,t.getScopeData()),n}function sa(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function ca(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function la(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function ua(e,t){e.contexts={trace:Tr(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ui(t),...e.sdkProcessingMetadata};let n=G(Kr(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function da(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var fa=0,pa=1,ma=2;function ha(e){return new _a(t=>{t(e)})}function ga(e){return new _a((t,n)=>{n(e)})}var _a=class e{constructor(e){this._state=fa,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===fa)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===pa&&e[1](this._value),this._state===ma&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===fa){if(Je(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(pa,e)},r=e=>{t(ma,e)};try{e(n,r)}catch(e){r(e)}}};function va(e,t,n,r=0){try{let i=ya(t,n,e,r);return Je(i)?i:ha(i)}catch(e){return ga(e)}}function ya(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return L&&a===null&&H.log(`Event processor "${i.id||`?`}" dropped event`),Je(a)?a.then(e=>ya(e,t,n,r+1)):ya(a,t,n,r+1)}var ba,xa,Sa,Ca;function wa(e){let t=R._sentryDebugIds,n=R._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Ca&&r.length===xa&&i.length===Sa)return Ca;xa=r.length,Sa=i.length,Ca={},ba||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=ba?.[r];if(i&&Ca&&t)Ca[i[0]]=t,ba&&(ba[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&Ca&&ba){Ca[i]=t,ba[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),Ca}function Ta(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||kt(),timestamp:t.timestamp||Lt()},l=n.integrations||e.integrations.map(e=>e.name);Ea(c,e),ka(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Da(c,e.stackParser);let u=ja(r,n.captureContext);n.mechanism&&Nt(c,n.mechanism);let d=i?i.getEventProcessors():[],f=oa(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),ra(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?ha(c):va(m,c,n)).then(e=>(e&&Oa(e),typeof o==`number`&&o>0?Aa(e,o,s):e))}function Ea(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=St(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=St(e.value,a)})}function Da(e,t){let n=wa(t);
6e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Oa(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function ka(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Aa(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:mt(e.data,t,n)}}))},...e.user&&{user:mt(e.user,t,n)},...e.contexts&&{contexts:mt(e.contexts,t,n)},...e.extra&&{extra:mt(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=mt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:mt(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=mt(e.contexts.flags,3,n)),r}function ja(e,t){if(!t)return e;let n=e?e.clone():new rn;return n.update(t),n}function Ma(e){if(e)return Na(e)||Fa(e)?{captureContext:e}:e}function Na(e){return e instanceof rn||typeof e==`function`}var Pa=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Fa(e){return Object.keys(e).some(e=>Pa.includes(e))}function Ia(e,t){return U().captureException(e,Ma(t))}function La(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return U().captureMessage(e,n,r)}function Ra(e,t){return U().captureEvent(e,t)}function za(e,t){Tn().setContext(e,t)}function Ba(){return Tn().lastEventId()}function Va(){let e=W();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Ha(e){let t=Tn(),{user:n}=oa(t,U()),{userAgent:r}=R.navigator||{},i=Wt({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&Gt(a,{status:`exited`}),Ua(),t.setSession(i),i}function Ua(){let e=Tn(),t=U().getSession()||e.getSession();t&&Kt(t),Wa(),e.setSession()}function Wa(){let e=Tn(),t=W(),n=e.getSession();n&&t&&t.captureSession(n)}function Ga(e=!1){if(e){Ua();return}Wa()}var Ka=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}
6,qa=new class extends Ka{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Ja={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ya=new class{#e=Ja;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Xa(e){setTimeout(e,0)}var Za=typeof window>`u`||`Deno`in globalThis;function K(){}function Qa(e,t){return typeof e==`function`?e(t):e}function $a(e){return typeof e==`number`&&e>=0&&e!==1/0}function eo(e,t){return Math.max(e+(t||0)-Date.now(),0)}function to(e,t){return typeof e==`function`?e(t):e}function q(e,t){return typeof e==`function`?e(t):e}function no(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==io(o,t.options))return!1}else if(!oo(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function ro(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ao(t.options.mutationKey)!==ao(a))return!1}else if(!oo(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function io(e,t){return(t?.queryKeyHashFn||ao)(e)}function ao(e){return JSON.stringify(e,(e,t)=>fo(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function oo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!oo(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!oo(e[r],t[r]))return!1;return!0}return!1}var so=Object.prototype.hasOwnProperty;function co(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=uo(e)&&uo(t);if(!r&&!(fo(e)&&fo(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:so.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=co(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function lo(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function uo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fo(e){if(!po(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!po(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function po(e){return Object.prototype.toString.call(e)===`[object Object]`}function mo(e){return new Promise(t=>{Ya.setTimeout(t,e)})}function ho(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:co(e,t)}function go(e){return e}function _o(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function vo(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var yo=Symbol();function bo(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===yo?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xo(e,t){return typeof e==`function`?e(...t):!!e}function So(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Co=(()=>{let e=()=>Za;return{isServer(){return e()},setIsServer(t){e=t}}})();function wo(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var To=Xa;function Eo(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=To,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>
6{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var J=Eo(),Do=new class extends Ka{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Oo(e){return Math.min(1e3*2**e,3e4)}function ko(e){return(e??`online`)===`online`?Do.isOnline():!0}var Ao=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function jo(e){let t=!1,n=0,r,i=wo(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ao(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>qa.isFocused()&&(e.networkMode===`always`||Do.isOnline())&&e.canRun(),u=()=>ko(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Co.isServer()?0:3),o=e.retryDelay??Oo,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),mo(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Mo=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$a(this.gcTime)&&(this.#e=Ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Co.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Ya.clearTimeout(this.#e),this.#e=void 0)}};function No(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{So(e,()=>t.signal,()=>n=!0)},u=bo(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?vo:_o;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Fo:Po,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Po(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Po(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Fo(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Io(e,t){return t?Po(e,t)!=null:!1}function Lo(e,t){return!t||!e.getPreviousPageParam?!1:Fo(e,t)!=null}var Ro=class extends Mo{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Vo(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Vo(this.options);e.data!==void 0&&(this.setState(Bo(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=ho(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(K).catch(K):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>q(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yo||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
6Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>to(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!eo(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=bo(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?No(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=jo({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ao&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ao){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...zo(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Bo(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),J.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function zo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ko(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Bo(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Vo(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
vendor: 4,628 bytes, line 6
6Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Ho=class extends Ka{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=wo(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Wo(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Go(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Go(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof q(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!lo(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Ko(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||q(this.options.enabled,this.#t)!==q(t.enabled,this.#t)||to(this.options.staleTime,this.#t)!==to(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||q(this.options.enabled,this.#t)!==q(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Jo(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(K)),t}#g(){this.#b();let e=to(this.options.staleTime,this.#t);if(Co.isServer()||this.#r.isStale||!$a(e))return;let t=eo(this.#r.dataUpdatedAt,e)+1;this.#d=Ya.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(Co.isServer()||q(this.options.enabled,this.#t)===!1||!$a(this.#p)||this.#p===0)&&(this.#f=Ya.setInterval(()=>{(this.options.refetchIntervalInBackground||qa.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(Ya.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(Ya.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Wo(e,t),o=i&&Ko(e,n,t,r);(a||o)&&(l={...l,...zo(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=ho(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=ho(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdate
6Count:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:qo(e,t),refetch:this.refetch,promise:this.#o,isEnabled:q(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=wo())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!lo(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){J.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Uo(e,t){return q(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&q(t.retryOnMount,e)===!1)}function Wo(e,t){return Uo(e,t)||e.state.data!==void 0&&Go(e,t,t.refetchOnMount)}function Go(e,t,n){if(q(t.enabled,e)!==!1&&to(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&qo(e,t)}return!1}function Ko(e,t,n,r){return(e!==t||q(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&qo(e,n)}function qo(e,t){return q(t.enabled,e)!==!1&&e.isStaleByTime(to(t.staleTime,e))}function Jo(e,t){return!lo(e.getCurrentResult(),t)}var Yo=class extends Mo{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Xo(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=jo({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
6sed:!1,status:`error`}}};this.state=t(this.state),J.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Xo(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Zo=class extends Ka{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Yo({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Qo(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Qo(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Qo(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Qo(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
6t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){J.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ro(t,e))}findAll(e={}){return this.getAll().filter(t=>ro(e,t))}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return J.batch(()=>Promise.all(e.map(e=>e.continue().catch(K))))}};function Qo(e){return e.options.scope?.id}var $o=class extends Ka{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??io(r,t),a=this.get(i);return a||(a=new Ro({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){J.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>no(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>no(e,t)):t}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){J.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){J.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},es=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new $o,this.#t=e.mutationCache||new Zo,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=qa.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Do.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(to(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Qa(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return J.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;J.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return J.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=J.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(K).catch(K)}invalidateQueries(e,t={}){return J.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=J.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(K)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(K)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(to(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(K).catch(K)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(K).catch(K)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Do.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ao(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{oo(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ao(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{oo(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=io(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===yo&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Y=e(n(),1),ts=r(),ns=Y.createContext(void 0),rs=e=>{let t=Y.useContext(ns);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},is=({client:e,children:t})=>(Y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,ts.jsx)(ns.Provider,{value:e,children:t})),as=Y.createContext(!1),os=()=>Y.useContext(as);as.Provider;function ss(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
6var cs=Y.createContext(ss()),ls=()=>Y.useContext(cs),us=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?xo(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ds=e=>{Y.useEffect(()=>{e.clearReset()},[e])},fs=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||xo(n,[e.error,r])),ps=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},ms=(e,t)=>e.isLoading&&e.isFetching&&!t,hs=(e,t)=>e?.suspense&&t.isPending,gs=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _s(e,t,n){let r=os(),i=ls(),a=rs(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,ps(o),us(o,i,s),ds(i);let l=!a.getQueryCache().get(o.queryHash),[u]=Y.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(Y.useSyncExternalStore(Y.useCallback(e=>{let t=f?u.subscribe(J.batchCalls(e)):K;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),Y.useEffect(()=>{u.setOptions(o)},[o,u]),hs(o,d))throw gs(o,u,i);if(fs({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!Co.isServer()&&ms(d,r)&&(l?gs(o,u,i):s?.promise)?.catch(K).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function vs(e,t){return _s(e,Ho,t)}function ys(){}function bs(e,t){return!!(e!=null&&e.length)&&m(e,t,0)>-1}var xs=`[object DOMException]`,Ss=`[object Error]`;function Cs(e){if(!i(e))return!1;var t=a(e);return t==Ss||t==xs||typeof e.message==`string`&&typeof e.name==`string`&&!w(e)}var ws=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ne(t,C(e)),e=y(e);return t}:E;function Ts(e){return S(e,k,ws)}function Es(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Ds=Object.prototype.hasOwnProperty;function Os(e,t){return e!=null&&Ds.call(e,t)}function ks(e,t){return e!=null&&T(e,t,Os)}var As=`Expected a function`;function js(e){if(typeof e!=`function`)throw TypeError(As);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ms(e,t,n,r){if(!u(e))return e;t=d(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=l(t[i]),f=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var p=s[c];f=r?r(p,c,s):void 0,f===void 0&&(f=u(p)?p:re(t[i+1])?[]:{})}b(s,c,f),s=s[c]}return e}function Ns(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=p(e,o);n(s,o)&&Ms(a,d(o,e),s)}return a}function Ps(e,t){if(e==null)return{};var n=s(Ts(e),function(e){return[e]});return t=ee(t),Ns(e,n,function(e,n){return t(e,n[0])})}function Fs(e,t){return Ps(e,js(ee(t)))}var Is=c&&1/te(new c([,-0]))[1]==1/0?function(e){return new c(e)}:ys,Ls=200;function Rs(e,t,n){var r=-1,i=bs,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=Es;else if(a>=Ls){var l=t?null:Is(e);if(l)return te(l);o=!1,i=D,c=new x}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}
6else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function zs(e){return e&&e.length?Rs(e):[]}var Bs=t(((e,t)=>{t.exports=TypeError})),Vs=t(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,ee=typeof BigInt==`function`?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,E=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,D=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,O=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,ne=Object.prototype.propertyIsEnumerable,k=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function re(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var ie=se(),A=ie.custom,ae=R(A)?A:null,oe={__proto__:null,double:`"`,single:`'`},j={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(B(s,`quoteStyle`)&&!B(oe,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(B(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=B(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(s,`indent`)&&s.indent!==null&&s.indent!==`	`&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(B(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return xe(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?re(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?re(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return P(t)?`[Array]`:`[Object]`;var g=Ee(s,r);
vendor: 5,747 bytes, lines 6-9
6if(o===void 0)o=[];else if(me(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return B(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!I(t)){var x=pe(t),T=Oe(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(R(t)){var te=D?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):E.call(t);return typeof t==`object`&&!D?Ce(te):te}if(be(t)){for(var A=`<`+b.call(String(t.nodeName)),j=t.attributes||[],se=0;se<j.length;se++)A+=` `+j[se].name+`=`+M(ce(j[se].value),`double`,s);return A+=`>`,t.childNodes&&t.childNodes.length&&(A+=`...`),A+=`</`+b.call(String(t.nodeName))+`>`,A}if(P(t)){if(t.length===0)return`[]`;var N=Oe(t,y);return g&&!Te(N)?`[`+De(N,g)+`]`:`[ `+C.call(N,`, `)+` ]`}if(le(t)){var z=Oe(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!ne.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),z),`, `)+` }`:z.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(z,`, `)+` }`}if(typeof t==`object`&&u){if(ae&&typeof t[ae]==`function`&&ie)return ie(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(he(t)){var Se=[];return a&&a.call(t,function(e,n){Se.push(y(n,t,!0)+` => `+y(e,t))}),H(`Map`,i.call(t),Se,g)}if(ve(t)){var ke=[];return l&&l.call(t,function(e){ke.push(y(e,t))}),H(`Set`,c.call(t),ke,g)}if(ge(t))return we(`WeakMap`);if(ye(t))return we(`WeakSet`);if(_e(t))return we(`WeakRef`);if(de(t))return Ce(y(Number(t)));if(fe(t))return Ce(y(ee.call(t)));if(L(t))return Ce(p.call(t));if(ue(t))return Ce(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!F(t)&&!I(t)){var Ae=Oe(t,y),je=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,Me=t instanceof Object?``:`null prototype`,Ne=!je&&O&&Object(t)===t&&O in t?_.call(V(t),8,-1):Me?`Object`:``,Pe=(je||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Ne||Me?`[`+C.call(S.call([],Ne||[],Me||[]),`: `)+`] `:``);return Ae.length===0?Pe+`{}`:g?Pe+`{`+De(Ae,g)+`}`:Pe+`{ `+C.call(Ae,`, `)+` }`}return String(t)};function M(e,t,n){var r=oe[n.quoteStyle||t];return r+e+r}function ce(e){return v.call(String(e),/"/g,`&quot;`)}function N(e){return!O||!(typeof e==`object`&&(O in e||e[O]!==void 0))}function P(e){return V(e)===`[object Array]`&&N(e)}function F(e){return V(e)===`[object Date]`&&N(e)}function I(e){return V(e)===`[object RegExp]`&&N(e)}function le(e){return V(e)===`[object Error]`&&N(e)}function ue(e){return V(e)===`[object String]`&&N(e)}function de(e){return V(e)===`[object Number]`&&N(e)}function L(e){return V(e)===`[object Boolean]`&&N(e)}function R(e){if(D)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}function fe(e){if(!e||typeof e!=`object`||!ee)return!1;try{return ee.call(e),!0}catch{}return!1}var z=Object.prototype.hasOwnProperty||function(e){return e in this};function B(e,t){return z.call(e,t)}function V(e){return m.call(e)}function pe(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function me(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function he(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ge(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function _e(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function ve(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ye(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function be(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function xe(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return xe(_.call(e,0,t.maxStringLength),t)+r}var i=j[t.quoteStyle||`single`];return i.lastIndex=0,M(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,Se),`single`,t)}function Se(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function Ce(e){return`Object(`+e+`)`}function we(e){return e+` { ? }`}function H(e,t,n,r){var i=r?De(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Te(e){for(var t=0;t<e.length;t++)if(me(e[t],`
7`)>=0)return!1;return!0}function Ee(e,t){var n;if(e.indent===`	`)n=`	`;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function De(e,t){if(e.length===0)return``;var n=`
8`+t.prev+t.base;return n+C.call(e,`,`+n)+`
9`+t.prev}function Oe(e,t){var n=P(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=B(e,i)?t(e[i],e):``}var a=typeof te==`function`?te(e):[],o;if(D){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)B(e,c)&&(n&&String(Number(c))===c&&c<e.length||D&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof te==`function`)for(var l=0;l<a.length;l++)ne.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),Hs=t(((e,t)=>{var n=Vs(),r=Bs(),i=function(e,t,n){for(var r=e,i;
9(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=c(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),Us=t(((e,t)=>{t.exports=Object})),Ws=t(((e,t)=>{t.exports=Error})),Gs=t(((e,t)=>{t.exports=EvalError})),Ks=t(((e,t)=>{t.exports=RangeError})),qs=t(((e,t)=>{t.exports=ReferenceError})),Js=t(((e,t)=>{t.exports=SyntaxError})),Ys=t(((e,t)=>{t.exports=URIError})),Xs=t(((e,t)=>{t.exports=Math.abs})),Zs=t(((e,t)=>{t.exports=Math.floor})),Qs=t(((e,t)=>{t.exports=Math.max})),$s=t(((e,t)=>{t.exports=Math.min})),ec=t(((e,t)=>{t.exports=Math.pow})),tc=t(((e,t)=>{t.exports=Math.round})),nc=t(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),rc=t(((e,t)=>{var n=nc();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),ic=t(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),ac=t(((e,t)=>{var n=ic();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),oc=t(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),sc=t(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),cc=t(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=sc();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),lc=t(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),uc=t(((e,t)=>{t.exports=Us().getPrototypeOf||null})),dc=t(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),fc=t(((e,t)=>{var n=dc();t.exports=Function.prototype.bind||n})),pc=t(((e,t)=>{t.exports=Function.prototype.call})),mc=t(((e,t)=>{t.exports=Function.prototype.apply})),hc=t(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),gc=t(((e,t)=>{var n=fc(),r=mc(),i=pc();t.exports=hc()||n.call(i,r)})),_c=t(((e,t)=>{var n=fc(),r=Bs(),i=pc(),a=gc();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}
9)),vc=t(((e,t)=>{var n=_c(),r=ac(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),yc=t(((e,t)=>{var n=lc(),r=uc(),i=vc();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),bc=t(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=fc().call(n,r)})),xc=t(((e,t)=>{var n,r=Us(),i=Ws(),a=Gs(),o=Ks(),s=qs(),c=Js(),l=Bs(),u=Ys(),d=Xs(),f=Zs(),p=Qs(),m=$s(),h=ec(),g=tc(),_=rc(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=ac(),x=oc(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=cc()(),T=yc(),ee=uc(),te=lc(),E=mc(),D=pc(),O={},ne=typeof Uint8Array>`u`||!T?n:T(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>
9`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":ne,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":E,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":ee,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":te};if(T)try{null.error}catch(e){k[`%Error.prototype%`]=T(T(e))}var re=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return k[t]=n,n},ie={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},A=fc(),ae=bc(),oe=A.call(D,Array.prototype.concat),j=A.call(E,Array.prototype.splice),M=A.call(D,String.prototype.replace),se=A.call(D,String.prototype.slice),ce=A.call(D,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,F=function(e){var t=se(e,0,1),n=se(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return M(e,N,function(e,t,n,i){r[r.length]=n?M(i,P,`$1`):t||e}),r},I=function(e,t){var n=e,r;if(ae(ie,n)&&(r=ie[n],n=`%`+r[0]+`%`),ae(k,n)){var i=k[n];if(i===O&&(i=re(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(ce(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=F(e),r=n.length>0?n[0]:``,i=I(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],j(n,oe([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=se(p,0,1),h=se(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,ae(k,a))o=k[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=ae(o,p),o=o[p];f&&!s&&(k[a]=o)}}return o}})),Sc=t(((e,t)=>{var n=xc(),r=_c(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Cc=t(((e,t)=>{var n=xc(),r=Sc(),i=Vs(),a=Bs(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),wc=t(((e,t)=>{var n=xc(),r=Sc(),i=Vs(),a=Cc(),o=Bs(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),Tc=t(((e,t)=>{var n=Bs(),r=Vs(),i=Hs(),a=Cc(),o=wc()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+(e&&Object(e)===e?`the given object key`:r(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),Ec=t(((e,t)=>
9{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),Dc=t(((e,t)=>{var n=Ec(),r=Tc(),i=oc(),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=r(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]=`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase();return e}(),p=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)n[i]!==void 0&&(r[r.length]=n[i]);t.obj[t.prop]=r}}},m=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},h=function(e,t,n){t===`__proto__`&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},g=function e(t,n,r){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(o(t)){var i=t.length;if(r&&typeof r.arrayLimit==`number`&&i>=r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t.concat(n),r),i)}t[i]=n}else if(t&&typeof t==`object`)if(l(t)){var s=u(t)+1;t[s]=n,d(t,s)}else if(r&&r.strictMerge)return[t,n];else (r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`){if(l(n)){for(var f=Object.keys(n),p=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},g=0;g<f.length;g++){var _=parseInt(f[g],10);p[_+1]=n[f[g]]}return c(p,u(n)+1)}var v=[t].concat(n);if(r&&typeof r.arrayLimit==`number`&&v.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(v,r),v.length-1)}return v}var y=t;if(o(t)&&!o(n)&&(y=m(t,r)),o(t)&&o(n)){if(n.forEach(function(n,i){if(a.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,r):t[t.length]=n}else t[i]=n}),r&&typeof r.arrayLimit==`number`&&t.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t,r),t.length-1)}return t}return Object.keys(n).reduce(function(t,i){var o=n[i];if(a.call(t,i)?h(t,i,e(t[i],o,r)):h(t,i,o),l(n)&&!l(t)&&c(t,u(n)),l(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>u(t)&&d(t,s)}return t},y)},_=function(e,t){return Object.keys(t).reduce(function(e,n){return h(e,n,t[n]),e},e)},v=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},y=1024;t.exports={arrayToObject:m,assign:_,combine:function(e,t,n,r,i){if(l(e)){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);for(var a=o(t)?t:[t],s=u(e),f=0;f<a.length;++f)s+=1,e[s]=a[f];return d(e,s),e}var p=[].concat(e,t);if(p.length>n){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);return c(m(p,{plainObjects:r}),p.length-1)}return p},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=r(),i=0;i<t.length;++i)for(var a=t[i],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var l=s[c],u=o[l];typeof u==`object`&&u&&!n.has(u)&&(t[t.length]={obj:o,prop:l},n.set(u,!0))}return p(t),e},decode:v,encode:function(e,t,r,i,a){if(e.length===0)return e;var o=e;if(typeof e==`symbol`?o=Symbol.prototype.toString.call(e):typeof e!=`string`&&(o=String(e)),r===`iso-8859-1`)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var s=``,c=0;c<o.length;c+=y){var l=o.length>=y?o.slice(c,c+y):o;if(c+y<o.length){var u=l.charCodeAt(l.length-1);u>=55296&&u<=56319&&(l=l.slice(0,-1),--c)}for(var d=[],p=0;p<l.length;++p){var m=l.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===n.RFC1738&&(m===40||m===41)){d[d.length]=l.charAt(p);continue}if(m<128){d[d.length]=f[m];continue}if(m<2048){d[d.length]=f[192|m>>6]+f[128|m&63];continue}if(m<55296||m>=57344){d[d.length]=f[224|m>>12]+f[128|m>>6&63]+f[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|l.charCodeAt(p)&1023),d[d.length]=f[240|m>>18]+f[128|m>>12&63]+f[128|m>>6&63]+f[128|m&63]}s+=d.join(``)}return s},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},markOverflow:c,maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:g}})),Oc=t(((e,t)=>{var n=Tc(),r=Dc(),i=Ec(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset
9:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T,ee,te){var E=t;if(te>ee)throw RangeError(`Input depth exceeded depth option of `+ee);for(var D=T,O=0,ne=!1;(D=D.get(m))!==void 0&&!ne;){var k=D.get(t);if(O+=1,k!==void 0){if(k===O)throw RangeError(`Cyclic object value`);ne=!0}D.get(m)===void 0&&(O=0)}if(E=typeof _==`function`?_(i,E):E,E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return S(g&&!C?g(i,f.encoder,w,`key`,x):i);E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var re=[];if(E===void 0)return re;var ie;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,function(e){return e==null?e:g(e)})),ie=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))ie=_;else{var A=Object.keys(E);ie=v?A.sort(v):A}var ae=h?String(i).replace(/\./g,`%2E`):String(i),oe=o&&s(E)&&E.length===1?ae+`[]`:ae;if(c&&s(E)&&E.length===0&&Object.keys(E).length===0)return oe+`[]`;for(var j=0;j<ie.length;++j){var M=ie[j],se=typeof M==`object`&&M&&M.value!==void 0?M.value:E[M];if(!(d&&se===null)){var ce=y&&h?String(M).replace(/\./g,`%2E`):String(M),N=s(E)?typeof a==`function`?a(oe,ce):oe:oe+(y?`.`+ce:`[`+ce+`]`);T.set(t,O);var P=n();P.set(m,T),l(re,e(se,N,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,P,ee,te+1))}}return re},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,depth:typeof e.depth==`number`?e.depth:f.depth,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];
9if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m];if(_!=null){var v=r[_];i.skipNulls&&v===null||l(u,h(v,i.encodeDotInKeys?String(_).replace(/\./g,`%2E`):String(_),d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p,i.depth,0))}}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B`+i.delimiter:b+=`utf8=%E2%9C%93`+i.delimiter),y.length>0?b+y:``}})),kc=t(((e,t)=>{var n=Dc(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1){if(t.throwOnLimitExceeded)for(var r=0,i=e.indexOf(`,`);i>-1;){if(r+=1,r>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);i=e.indexOf(`,`,i+1)}return e.split(`,`)}if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded&&f!==void 0?f+1:f);if(t.throwOnLimitExceeded&&f!==void 0&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;if(y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),b!==null&&(x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)}))),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x),t.comma&&i(x)&&x.length>t.arrayLimit&&(x=n.combine([],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),b!==null){var S=r.call(u,b);S&&(t.duplicates===`combine`||_.indexOf(`[]=`)>-1)?u[b]=n.combine(u[b],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):(!S||t.duplicates===`last`)&&(u[b]=x)}}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=n.isOverflow(c)?c:r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10),h=!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays;if(!r.parseArrays&&p===``)u={0:c};else if(h&&m<r.arrayLimit)u=[],u[m]=c;else if(h&&r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);else h?(u[m]=c,n.markOverflow(u,m)):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e;if(t.depth<=0)return!t.plainObjects&&r.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var i=[],a=n.indexOf(`[`),o=a>=0?n.slice(0,a):n;if(o){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var s=n.length,c=a,l=0;c>=0&&l<t.depth;){for(var u=1,d=c+1,f=-1;d<s&&f<0;){var p=n.charCodeAt(d);p===91?u+=1:p===93&&(--u,u===0&&(f=d)),d+=1}if(f<0)return i[i.length]=`[`+n.slice(c)+`]`,i;var m=n.slice(c,f+1),h=m.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,h)&&!t.allowPrototypes)return;i[i.length]=m,l+=1,c=n.indexOf(`[`,f+1)}if(c>=0){if(t.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+t.depth+` and strictDepth is true`);i[i.length]=`[`+n.slice(c)+`]`}return i},p=function(e,t,n,r){if(e){var i=f(e,n);if(i)return d(i,t,n,r)}},m=function(e){if(!e)return a;
9if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictMerge:typeof e.strictMerge==`boolean`?!!e.strictMerge:a.strictMerge,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=m(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=p(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),Ac=t(((e,t)=>{var n=Oc(),r=kc();t.exports={formats:Ec(),parse:r,stringify:n}})),jc=class extends Error{};jc.prototype.name=`InvalidTokenError`;function Mc(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n=`0`+n),`%`+n}))}function Nc(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);switch(t.length%4){case 0:break;case 2:t+=`==`;break;case 3:t+=`=`;break;default:throw Error(`base64 string is not of the correct length`)}try{return Mc(t)}catch{return atob(t)}}function Pc(e,t){if(typeof e!=`string`)throw new jc(`Invalid token specified: must be a string`);t||={};let n=t.header===!0?0:1,r=e.split(`.`)[n];if(typeof r!=`string`)throw new jc(`Invalid token specified: missing part #${n+1}`);let i;try{i=Nc(r)}catch(e){throw new jc(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(i)}catch(e){throw new jc(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}var Fc=null,Ic=null,Lc=e=>{if(e!==Ic){Ic=e;try{Fc=Pc(e).exp}catch{Fc=null}}},Rc=()=>{Fc=null,Ic=null},zc=()=>document.cookie.split(`;`).map(e=>e.split(`=`)[0].trim()).filter(Boolean),Bc=()=>{let e=new Set;return document.querySelectorAll(`script[src]`).forEach(t=>{try{e.add(new URL(t.src,window.location.origin).hostname)}catch{}}),[...e]},Vc=()=>{try{return window.self!==window.top}catch{return!0}},Hc=()=>
9{if(Fc===null)return;let e=Fc-Math.floor(Date.now()/1e3);if(e<=0)return;Rc();let t=zc();Dn(n=>{n.setLevel(`error`),n.setTags({tenant_host:window.location.hostname,in_iframe:Vc()}),n.setContext(`jwt_loss`,{path:window.location.pathname,seconds_until_expiry:e,seconds_since_page_load:Math.round(performance.now()/1e3),remaining_cookies:t,consent_cookie_also_gone:!t.includes(`cl2_consent`),script_hosts:Bc()}),La(`Auth cookie cl2_jwt disappeared without sign-out`)})},Uc=`cl2_jwt`;function Wc(){try{let e=h.get(Uc);return!e||e===`undefined`?(Hc(),Kc(),null):(Lc(e),e)}catch{return null}}function Gc(e,t,n){let r={secure:!0,sameSite:`strict`};t&&(r.expires=n),h.set(Uc,e,r),Lc(e)}function Kc(){Rc(),h.remove(Uc)}function qc(e){return Pc(e)}function Jc(){let e=Wc();if(!e)return null;try{return qc(e).exp-Math.floor(Date.now()/1e3)}catch{return null}}var Yc=new es({defaultOptions:{queries:{staleTime:1/0,placeholderData:go,retry:!1}}});function Xc(e){let t=e.replace(/^\/|\/$/g,``).split(`/`);return g(ce,t[0])&&(t[0]=``),t.length===1?`/`:t.join(`/`)}function Zc(e){return Qc(e)||$c(e)}function Qc(e){return e==null}function $c(e){return e instanceof Error}function el(e){let t=!1;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&e[n]&&e[n].length>0&&(t=!0);return!t}function tl(e,t){let n=Xc(t);switch(e){case`email-settings`:return n.startsWith(`/email-settings`);case`admin`:return n.startsWith(`/admin/`);case`idea_form`:return n.endsWith(`/ideas/new`);case`idea_edit`:return n.startsWith(`/ideas/edit/`);case`native_survey`:return n.endsWith(`/surveys/new`);case`sign_in`:return n.startsWith(`/sign-in`);case`sign_up`:return n.startsWith(`/sign-up`);case`pages_menu`:return n.includes(`/admin/pages-menu`);case`event_page`:return n.startsWith(`/events/`);case`ideas_feed`:return n.includes(`/ideas-feed`)}}var nl=e=>{let t=e[0],n=e[1],r=e[e.length-1];return e.length===3&&ce.includes(t)&&n===`initiatives`&&r!==`new`?r:null};function rl(e){e.stopPropagation()}function il(e){let t=e.replace(`-`,``),n=t.length-1;return t.substring(0,n)+t.substr(n).toLowerCase()}function al(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i.test(e)}function ol(e,t){let n=e.indexOf(t);n===-1?e.push(t):e.splice(n,1)}function sl(e,t){if(e){let n=e.replace(/\/$/,``);return(cl(t)?[t]:t).some(e=>n.endsWith(e))}return!1}function cl(e){return typeof e==`string`}var ll=(e,t,n)=>t.endsWith(e)&&n.endsWith(e)?!0:!n.endsWith(e)&&t.includes(n),ul=(...e)=>e.some(O),dl=(...e)=>e.some(e=>!O(e));function fl(e){e.preventDefault()}var pl=e=>e&&Object.keys(e),ml=(e,t)=>e[t],hl=e=>[...Array(e)].map((e,t)=>t),gl=e=>Object.prototype.toString.call(e)===`[object Object]`;function _l(e,t){let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return t?`rgba(${n}, ${r}, ${i}, ${t})`:`rgb(${n}, ${r}, ${i})`}var vl=(...e)=>e.filter(Boolean).join(` `);function yl(){return`TEMP-ID-${ae()}`}var bl=e=>gl(e)&&gl(e.errors),xl=(e,t,n)=>{e.errors?Object.keys(e.errors).forEach(r=>{if(n)Object.keys(e.errors[r]).forEach(i=>{let a=e.errors[r][i][0];t(`${n}.${r}.${i}`,typeof a==`string`?{error:a}:a)});else{let n=e.errors[r][0];t(r,typeof n==`string`?{error:n}:n)}}):t(`submissionError`,{type:`server`})},Sl=(e,t,n)=>{bl(e)?xl(e,t,n):t(`submissionError`,{type:`server`})},Cl=(e,t)=>{e===401&&gl(t)&&gl(t.errors)&&`base`in t.errors&&Array.isArray(t.errors.base)&&t.errors.base.length>=0&&`error`in t.errors.base[0]&&t.errors.base[0].error===`blocked`&&window.location.href.indexOf(`disabled-account`)===-1&&v.push(`/disabled-account?date=${t.errors.base[0].details.block_end_at}`)},wl=e=>!!(gl(e)&&`errors`in e&&`base`in e.errors&&Array.isArray(e.errors.base)&&e.errors.base.length>=0&&`error`in e.errors.base[0]&&e.errors.base[0].error===`Unauthorized!`);function Tl(e){return Cs(e)||Object.prototype.toString.call(e)===`[object ErrorEvent]`}function El(e){return typeof e==`string`}function Dl(e){Tl(e)?Ia(e):M(e)?La(`An empty error has been thrown`):u(e)?La(JSON.stringify(e,null,4)):El(e)?La(e):Dn(t=>{t.setExtra(`error`,e),La(`Something wrong happened`)})}var Ol=Ac();async function kl({path:e,action:t,body:n,queryParams:r,cacheIndividualItems:i=!0,apiPath:a=N}
9){let s={get:`GET`,patch:`PATCH`,post:`POST`,delete:`DELETE`,put:`PUT`},c=Wc(),l=Fs(r,e=>A(e)||e===``),u=l?(0,Ol.stringify)(l,{arrayFormat:`brackets`,addQueryPrefix:!0}):``,d=await fetch(`${a}${e}${u}`,{method:s[t],body:n?JSON.stringify(n):void 0,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${c}`}});if(d.ok&&(t===`delete`||d.status!==200&&d.status!==201))return null;let f;try{f=await d.json()}catch{if(t===`post`&&(d.status===201||d.status===200))return null;if(d.status===504)throw Dl(`Gateway timeout`),Error(`Gateway timeout`);if(e===`/users/me`||d.status===204)return null;throw Dl(`Unsupported case. No valid JSON.`),Error(`Unsupported case. No valid JSON.`)}if(d.ok)f&&(o(f.data)?i&&f.data.forEach(e=>{e.id&&Yc.setQueryData([{type:e.type,parameters:{id:e.id},operation:`item`}],()=>({data:e}))}):(t===`get`||t===`post`||t===`patch`)&&f.data.id&&Yc.setQueryData([{type:f.data.type,parameters:{id:f.data.id},operation:`item`}],()=>({data:f.data})),f.included&&i&&f.included.forEach(e=>{e.id&&Yc.setQueryData([{type:e.type,parameters:{id:e.id},operation:`item`}],()=>({data:e}))}));else{let e=f;throw Cl(d.status,e),e.errors||Dl(f),e}return f||null}var Al={type:`app_configuration`},jl={all:()=>[Al]},Ml=()=>kl({path:`/app_configuration`,action:`get`}),Nl=()=>vs({queryKey:jl.all(),queryFn:Ml});function Pl(e,t){var n=t&&t.cache?t.cache:Wl,r=t&&t.serializer?t.serializer:Hl;return(t&&t.strategy?t.strategy:zl)(e,{cache:n,serializer:r})}function Fl(e){return e==null||typeof e==`number`||typeof e==`boolean`}function Il(e,t,n,r){var i=Fl(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function Ll(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function Rl(e,t,n,r,i){return n.bind(t,e,r,i)}function zl(e,t){var n=e.length===1?Il:Ll;return Rl(e,this,n,t.cache.create(),t.serializer)}function Bl(e,t){return Rl(e,this,Ll,t.cache.create(),t.serializer)}function Vl(e,t){return Rl(e,this,Il,t.cache.create(),t.serializer)}var Hl=function(){return JSON.stringify(arguments)},Ul=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),Wl={create:function(){return new Ul}},Gl={variadic:Bl,monadic:Vl},X;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`})(X||={});var Z;(function(e){e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`,e[e.tag=8]=`tag`})(Z||={});var Kl;(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(Kl||={});function ql(e){return e.type===Z.literal}function Jl(e){return e.type===Z.argument}function Yl(e){return e.type===Z.number}function Xl(e){return e.type===Z.date}function Zl(e){return e.type===Z.time}function Ql(e){return e.type===Z.select}function $l(e){return e.type===Z.plural}function eu(e){return e.type===Z.pound}function tu(e){return e.type===Z.tag}function nu(e){return!!(e&&typeof e==`object`&&e.type===Kl.number)}function ru(e){return!!(e&&typeof e==`object`&&e.type===Kl.dateTime)}var iu=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,au=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ou(e){var t={};return e.replace(au,function(e){var n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var su=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function cu(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);for(var t=e.split(su).filter(function(e){return e.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split(`/`);if(a.length===0)throw Error(`Invalid number skeleton`);for(var o=a[0],s=a.slice(1),c=0,l=s;c<l.length;c++)if(l[c].length===0)throw Error(`Invalid number skeleton`);n.push({stem:o,options:s})}return n}function lu(e){return e.replace(/^(.*?)-/,``)}var uu=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,du=/^(@+)?(\+|#+)?[rs]?$/g,fu=/(\*)(0+)|(#+)(0+)|(0+)/g,pu=/^(0+)$/;function mu(e){var t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(du,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function hu(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function gu(e){var t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){var n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!pu.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function _u(e){return hu(e)||{}}function vu(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=i.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=lu(i.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t=I(I(I({},t),{notation:`scientific`}),i.options.reduce(function(e,t){return I(I({},e),_u(t))},{}));continue;case`engineering`:t=I(I(I({},t),{notation:`engineering`}),i.options.reduce(function(e,t){return I(I({},e),_u(t))},{}));continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(i.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;
9case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(i.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);i.options[0].replace(fu,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(pu.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(uu.test(i.stem)){if(i.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);i.stem.replace(uu,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});var a=i.options[0];a===`w`?t=I(I({},t),{trailingZeroDisplay:`stripIfInteger`}):a&&(t=I(I({},t),mu(a)));continue}if(du.test(i.stem)){t=I(I({},t),mu(i.stem));continue}var o=hu(i.stem);o&&(t=I(I({},t),o));var s=gu(i.stem);s&&(t=I(I({},t),s))}return t}var yu={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function bu(e,t){for(var n=``,r=0;r<e.length;r++){var i=e.charAt(r);if(i===`j`){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),c=`a`,l=xu(t);for((l==`H`||l==`k`)&&(s=0);s-- >0;)n+=c;for(;o-- >0;)n=l+n}else i===`J`?n+=`H`:n+=i}return n}function xu(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}var n=e.language,r;return n!==`root`&&(r=e.maximize().region),(yu[r||``]||yu[n||``]||yu[`${n}-001`]||yu[`001`])[0]}var Su=RegExp(`^${iu.source}
9*`),Cu=RegExp(`${iu.source}*\$`);function Q(e,t){return{start:e,end:t}}var wu=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),Tu=!!String.fromCodePoint,Eu=!!Object.fromEntries,Du=!!String.prototype.codePointAt,Ou=!!String.prototype.trimStart,ku=!!String.prototype.trimEnd,Au=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ju=!0;try{ju=Ru(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`).exec(`a`)?.[0]===`a`}catch{ju=!1}var Mu=wu?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Nu=Tu?String.fromCodePoint:function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t},Pu=Eu?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t},Fu=Du?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}},Iu=Ou?function(e){return e.trimStart()}:function(e){return e.replace(Su,``)},Lu=ku?function(e){return e.trimEnd()}:function(e){return e.replace(Cu,``)};function Ru(e,t){return new RegExp(e,t)}var zu;if(ju){var Bu=Ru(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);zu=function(e,t){return Bu.lastIndex=t,Bu.exec(e)[1]??``}}else zu=function(e,t){for(var n=[];;){var r=Fu(e,t);if(r===void 0||Gu(r)||Ku(r))break;n.push(r),t+=r>=65536?2:1}return Nu.apply(void 0,n)};var Vu=function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:Z.pound,location:Q(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(X.UNMATCHED_CLOSING_TAG,Q(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Hu(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:Z.literal,value:`<${r}/>`,location:Q(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!Hu(this.char()))return this.error(X.INVALID_TAG,Q(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:Z.tag,value:r,children:a,location:Q(n,this.clonePosition())},err:null}:this.error(X.INVALID_TAG,Q(o,this.clonePosition()))):this.error(X.UNMATCHED_CLOSING_TAG,Q(s,this.clonePosition()))}else return this.error(X.UNCLOSED_TAG,Q(n,this.clonePosition()))}else return this.error(X.INVALID_TAG,Q(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Wu(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=Q(n,this.clonePosition());return{val:{type:Z.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Uu(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;
9case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return Nu.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),Nu(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Q(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(X.EMPTY_ARGUMENT,Q(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(X.MALFORMED_ARGUMENT,Q(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Q(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Z.argument,value:r,location:Q(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Q(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(X.MALFORMED_ARGUMENT,Q(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=zu(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Q(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(X.EXPECT_ARGUMENT_TYPE,Q(i,o));case`number`:case`date`:case`time`:this.bumpSpace();var s=null;if(this.bumpIf(`,`)){this.bumpSpace();var c=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var u=Lu(l.val);if(u.length===0)return this.error(X.EXPECT_ARGUMENT_STYLE,Q(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:Q(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=Q(r,this.clonePosition());if(s&&Mu(s?.style,`::`,0)){var p=Iu(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:Z.number,value:n,location:f,style:l.val},err:null}}else{if(p.length===0)return this.error(X.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=bu(p,this.locale));var u={type:Kl.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?ou(m):{}};return{val:{type:a===`date`?Z.date:Z.time,value:n,location:f,style:u},err:null}}}return{val:{type:a===`number`?Z.number:a===`date`?Z.date:Z.time,value:n,location:f,style:s?.style??null},err:null};case`plural`:case`selectordinal`:case`select`:var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(X.EXPECT_SELECT_ARGUMENT_OPTIONS,Q(h,I({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Q(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),g=this.parseIdentifierIfPossible(),_=l.val}var v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;var d=this.tryParseArgumentClose(r);if(d.err)return d;var y=Q(r,this.clonePosition());return a===`select`?{val:{type:Z.select,value:n,options:Pu(v.val),location:y},err:null}:{val:{type:Z.plural,value:n,options:Pu(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(X.INVALID_ARGUMENT_TYPE,Q(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Q(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(X.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Q(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=cu(e)}
vendor: 13,134 bytes, lines 9-11
9catch{return this.error(X.INVALID_NUMBER_SKELETON,t)}return{val:{type:Kl.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?vu(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_SELECTOR,X.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=Q(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?X.DUPLICATE_SELECT_ARGUMENT_SELECTOR:X.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Q(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:Q(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?X.EXPECT_SELECT_ARGUMENT_SELECTOR:X.EXPECT_PLURAL_ARGUMENT_SELECTOR,Q(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(X.MISSING_OTHER_CLAUSE,Q(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=Q(r,this.clonePosition());return i?(a*=n,Au(a)?{val:a,err:null}:this.error(t,s)):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=Fu(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Mu(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Gu(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e}();function Hu(e){return e>=97&&e<=122||e>=65&&e<=90}function Uu(e){return Hu(e)||e===47}function Wu(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Gu(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ku(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function qu(e){e.forEach(function(e){if(delete e.location,Ql(e)||$l(e))for(var t in e.options)delete e.options[t].location,qu(e.options[t].value);else Yl(e)&&nu(e.style)||(Xl(e)||Zl(e))&&ru(e.style)?delete e.style.location:tu(e)&&qu(e.children)})}function Ju(e,t){t===void 0&&(t={}),t=I({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Vu(e,t).parse();if(n.err){var r=SyntaxError(X[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||qu(n.val),n.val}var Yu;(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`})(Yu||={});var Xu=function(e){F(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return`[formatjs Error: ${this.code}] ${this.message}`},t}(Error),Zu=function(e){F(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,Yu.INVALID_VALUE,i)||this}return t}(Xu),Qu=function(e){F(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,Yu.INVALID_VALUE,r)||this}return t}(Xu),$u=function(e){F(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,Yu.MISSING_VALUE,n)||this}return t}(Xu),$;(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})($||={});function ed(e){return e.length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return!n||n.type!==$.literal||t.type!==$.literal?e.push(t):n.value+=t.value,e},[])}function td(e){return typeof e==`function`}function nd(e,t,n,r,i,a,o){if(e.length===1&&ql(e[0]))return[{type:$.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(ql(u)){s.push({type:$.literal,value:u.value});continue}if(eu(u)){typeof a==`number`&&s.push({type:$.literal,value:n.getNumberFormat(t).format(a)});continue}var d=u.value;if(!(i&&d in i))throw new $u(d,o);var f=i[d];if(Jl(u)){(!f||typeof f==`string`||typeof f==`number`)&&(f=typeof f==`string`||typeof f==`number`?String(f):``),s.push({type:typeof f==`string`?$.literal:$.object,value:f});continue}if(Xl(u)){var p=typeof u.style==`string`?r.date[u.style]:ru(u.style)?u.style.parsedOptions:void 0;s.push({type:$.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(Zl(u)){var p=typeof u.style==`string`?r.time[u.style]:ru(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:$.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(Yl(u)){var p=typeof u.style==`string`?r.number[u.style]:nu(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(f*=p.scale||1),s.push({type:$.literal,value:n.getNumberFormat(t,p).format(f)});continue}if(tu(u)){var m=u.children,h=u.value,g=i[h];if(!td(g))throw new Qu(h,`function`,o);var _=g(nd(m,t,n,r,i,a).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),s.push.apply(s,_.map(function(e){return{type:typeof e==`string`?$.literal:$.object,value:e}}))}if(Ql(u)){var v=u.options[f]||u.options.other;if(!v)throw new Zu(u.value,f,Object.keys(u.options),o);s.push.apply(s,nd(v.value,t,n,r,i));continue}if($l(u)){var v=u.options[`=${f}`];if(!v){if(!Intl.PluralRules)throw new Xu(`Intl.PluralRules is not available in this environment.
10Try polyfilling it using "@formatjs/intl-pluralrules"
11`,Yu.MISSING_INTL_API,o);var y=n.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));v=u.options[y]||u.options.other}if(!v)throw new Zu(u.value,f,Object.keys(u.options),o);s.push.apply(s,nd(v.value,t,n,r,i,f-(u.offset||0)));continue}}return ed(s)}function rd(e,t){return t?I(I(I({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=I(I({},e[r]),t[r]||{}),n},{})):e}function id(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=rd(e[r],t[r]),n},I({},e)):e}function ad(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function od(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Pl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,le([void 0],t,!1)))},{cache:ad(e.number),strategy:Gl.variadic}),getDateTimeFormat:Pl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,le([void 0],t,!1)))},{cache:ad(e.dateTime),strategy:Gl.variadic}),getPluralRules:Pl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,le([void 0],t,!1)))},{cache:ad(e.pluralRules),strategy:Gl.variadic})}}var sd=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(t.length===1)return t[0].value;var n=t.reduce(function(e,t){return!e.length||t.type!==$.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e},[]);return n.length<=1?n[0]||``:n},this.formatToParts=function(e){return nd(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=P(o,[`formatters`]);this.ast=e.__parse(t,I(I({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=id(e.formats,r),this.formatters=i&&i.formatters||od(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}
11,enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(Intl.Locale!==void 0){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=Ju,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}},e}(),cd;(function(e){e.FORMAT_ERROR=`FORMAT_ERROR`,e.UNSUPPORTED_FORMATTER=`UNSUPPORTED_FORMATTER`,e.INVALID_CONFIG=`INVALID_CONFIG`,e.MISSING_DATA=`MISSING_DATA`,e.MISSING_TRANSLATION=`MISSING_TRANSLATION`})(cd||={});var ld=function(e){F(t,e);function t(n,r,i){var a=this,o=i?i instanceof Error?i:Error(String(i)):void 0;return a=e.call(this,`[@formatjs/intl Error ${n}] ${r}
12${o?`
13${o.message}
14${o.stack}`:``}`)||this,a.code=n,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(a,t),a}return t}(Error),ud=function(e){F(t,e);function t(t,n){return e.call(this,cd.UNSUPPORTED_FORMATTER,t,n)||this}return t}(ld),dd=function(e){F(t,e);function t(t,n){return e.call(this,cd.INVALID_CONFIG,t,n)||this}return t}(ld),fd=function(e){F(t,e);function t(t,n){return e.call(this,cd.MISSING_DATA,t,n)||this}return t}(ld),pd=function(e){F(t,e);function t(t,n,r){var i=e.call(this,cd.FORMAT_ERROR,`${t}
15Locale: ${n}
16`,r)||this;return i.locale=n,i}return t}(ld),md=function(e){F(t,e);function t(t,n,r,i){var a=e.call(this,`${t}
17MessageID: ${r?.id}
18Default Message: ${r?.defaultMessage}
19Description: ${r?.description}
20`,n,i)||this;return a.descriptor=r,a.locale=n,a}return t}(pd),hd=function(e){F(t,e);function t(t,n){var r=e.call(this,cd.MISSING_TRANSLATION,`Missing message: "${t.id}" for locale "${n}", using ${t.defaultMessage?`default message (${typeof t.defaultMessage==`string`?t.defaultMessage:t.defaultMessage.map(function(e){return e.value??JSON.stringify(e)}).join()})`:`id`} as fallback.`)||this;return r.descriptor=t,r}return t}(ld);function gd(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}function _d(e,t,n){return n===void 0&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var vd={formats:{},messages:{},timeZone:void 0,defaultLocale:`en`,defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function yd(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function bd(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function xd(e){e===void 0&&(e=yd());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=Pl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,le([void 0],t,!1)))},{cache:bd(e.dateTime),strategy:Gl.variadic}),a=Pl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,le([void 0],t,!1)))},{cache:bd(e.number),strategy:Gl.variadic}),o=Pl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,le([void 0],t,!1)))},{cache:bd(e.pluralRules),strategy:Gl.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:Pl(function(e,t,n,r){return new sd(e,t,n,I({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:o}},r||{}))},{cache:bd(e.message),strategy:Gl.variadic}),getRelativeTimeFormat:Pl(function(){var e=[...arguments];return new(t.bind.apply(t,le([void 0],e,!1)))},{cache:bd(e.relativeTime),strategy:Gl.variadic}),getPluralRules:o,getListFormat:Pl(function(){var e=[...arguments];return new(n.bind.apply(n,le([void 0],e,!1)))},{cache:bd(e.list),strategy:Gl.variadic}),getDisplayNames:Pl(function(){var e=[...arguments];return new(r.bind.apply(r,le([void 0],e,!1)))},{cache:bd(e.displayNames),strategy:Gl.variadic})}}function Sd(e,t,n,r){var i=e&&e[t],a;if(i&&(a=i[n]),a)return a;r(new ud(`No ${t} format named: ${n}`))}function Cd(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=I({timeZone:t},e[r]),n},{})}function wd(e,t){return Object.keys(I(I({},e),t)).reduce(function(n,r){return n[r]=I(I({},e[r]||{}),t[r]||{}),n},{})}function Td(e,t){if(!t)return e;var n=sd.formats;return I(I(I({},n),e),{date:wd(Cd(n.date,t),Cd(e.date||{},t)),time:wd(Cd(n.time,t),Cd(e.time||{},t))})}var Ed=function(e,t,n,r,i){var a=e.locale,o=e.formats,s=e.messages,c=e.defaultLocale,l=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,f=e.timeZone,p=e.defaultRichTextElements;n===void 0&&(n={id:``});var m=n.id,h=n.defaultMessage;gd(!!m,`[@formatjs/intl] An \`id\` must be provided to format a message. You can either:
211. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)
22or [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR
232. Configure your \`eslint\` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)
24to autofix this issue`);var g=String(m),_=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(_)&&_.length===1&&_[0].type===Z.literal)return _[0].value;if(!r&&_&&typeof _==`string`&&!p)return _.replace(/'\{(.*?)\}'/gi,`{$1}`);if(r=I(I({},p),r||{}),o=Td(o,f),l=Td(l,f),!_){if(u===!1&&_===``)return _;if((!h||a&&a.toLowerCase()!==c.toLowerCase())&&d(new hd(n,a)),h)try{var v=t.getMessageFormat(h,c,l,i);return v.format(r)}catch(e){return d(new md(`Error formatting default message for: "${g}", rendering default message verbatim`,a,n,e)),typeof h==`string`?h:g}return g}try{var v=t.getMessageFormat(_,a,o,I({formatters:t},i||{}));return v.format(r)}catch(e){d(new md(`Error formatting message: "${g}", using ${h?`default message`:`id`} as fallback.`,a,n,e))}if(h)try{var v=t.getMessageFormat(h,c,l,i);return v.format(r)}catch(e){d(new md(`Error formatting the default message for: "${g}", rendering message verbatim`,a,n,e))}return typeof _==`string`?_:typeof h==`string`?h:g},Dd=[`formatMatcher`,`timeZone`,`hour12`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`hourCycle`,`dateStyle`,`timeStyle`,`calendar`,`numberingSystem`,`fractionalSecondDigits`];function Od(e,t,n,r){var i=e.locale,a=e.formats,o=e.onError,s=e.timeZone;r===void 0&&(r={});var c=r.format,l=I(I({},s&&{timeZone:s}),c&&Sd(a,t,c,o)),u=_d(r,Dd,l);return t===`time`&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=I(I({},u),{hour:`numeric`,minute:`numeric`})),n(i,u)}function kd(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=i===void 0?{}:i,o=typeof r==`string`?new Date(r||0):r;
24try{return Od(e,`date`,t,a).format(o)}catch(t){e.onError(new pd(`Error formatting date.`,e.locale,t))}return String(o)}function Ad(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=i===void 0?{}:i,o=typeof r==`string`?new Date(r||0):r;try{return Od(e,`time`,t,a).format(o)}catch(t){e.onError(new pd(`Error formatting time.`,e.locale,t))}return String(o)}function jd(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=n[2],o=a===void 0?{}:a,s=e.timeZone,c=e.locale,l=e.onError,u=_d(o,Dd,s?{timeZone:s}:{});try{return t(c,u).formatRange(r,i)}catch(t){l(new pd(`Error formatting date time range.`,e.locale,t))}return String(r)}function Md(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=i===void 0?{}:i,o=typeof r==`string`?new Date(r||0):r;try{return Od(e,`date`,t,a).formatToParts(o)}catch(t){e.onError(new pd(`Error formatting date.`,e.locale,t))}return[]}function Nd(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=i===void 0?{}:i,o=typeof r==`string`?new Date(r||0):r;try{return Od(e,`time`,t,a).formatToParts(o)}catch(t){e.onError(new pd(`Error formatting time.`,e.locale,t))}return[]}var Pd=[`style`,`type`,`fallback`,`languageDisplay`];function Fd(e,t,n,r){var i=e.locale,a=e.onError;Intl.DisplayNames||a(new Xu(`Intl.DisplayNames is not available in this environment.
25Try polyfilling it using "@formatjs/intl-displaynames"
26`,Yu.MISSING_INTL_API));var o=_d(r,Pd);try{return t(i,o).of(n)}catch(e){a(new pd(`Error formatting display name.`,i,e))}}var Id=[`type`,`style`],Ld=Date.now();function Rd(e){return`${Ld}_${e}_${Ld}`}function zd(e,t,n,r){r===void 0&&(r={});var i=Bd(e,t,n,r).reduce(function(e,t){var n=t.value;return typeof n==`string`&&typeof e[e.length-1]==`string`?e[e.length-1]+=n:e.push(n),e},[]);return i.length===1?i[0]:i.length===0?``:i}function Bd(e,t,n,r){var i=e.locale,a=e.onError;r===void 0&&(r={}),Intl.ListFormat||a(new Xu(`Intl.ListFormat is not available in this environment.
27Try polyfilling it using "@formatjs/intl-listformat"
28`,Yu.MISSING_INTL_API));var o=_d(r,Id);try{var s={},c=n.map(function(e,t){if(typeof e==`object`){var n=Rd(t);return s[n]=e,n}return String(e)});return t(i,o).formatToParts(c).map(function(e){return e.type===`literal`?e:I(I({},e),{value:s[e.value]||e.value})})}catch(e){a(new pd(`Error formatting list.`,i,e))}return n}var Vd=[`type`];function Hd(e,t,n,r){var i=e.locale,a=e.onError;r===void 0&&(r={}),Intl.PluralRules||a(new Xu(`Intl.PluralRules is not available in this environment.
29Try polyfilling it using "@formatjs/intl-pluralrules"
30`,Yu.MISSING_INTL_API));var o=_d(r,Vd);try{return t(i,o).select(n)}catch(e){a(new pd(`Error formatting plural.`,i,e))}return`other`}var Ud=[`numeric`,`style`];function Wd(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var o=n.format,s=!!o&&Sd(i,`relative`,o,a)||{};return t(r,_d(n,Ud,s))}function Gd(e,t,n,r,i){i===void 0&&(i={}),r||=`second`,Intl.RelativeTimeFormat||e.onError(new Xu(`Intl.RelativeTimeFormat is not available in this environment.
31Try polyfilling it using "@formatjs/intl-relativetimeformat"
32`,Yu.MISSING_INTL_API));try{return Wd(e,t,i).format(n,r)}catch(t){e.onError(new pd(`Error formatting relative time.`,e.locale,t))}return String(n)}var Kd=[`style`,`currency`,`unit`,`unitDisplay`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`currencyDisplay`,`currencySign`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`numberingSystem`,`trailingZeroDisplay`,`roundingPriority`,`roundingIncrement`,`roundingMode`];function qd(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var o=n.format,s=o&&Sd(i,`number`,o,a)||{};return t(r,_d(n,Kd,s))}function Jd(e,t,n,r){r===void 0&&(r={});try{return qd(e,t,r).format(n)}catch(t){e.onError(new pd(`Error formatting number.`,e.locale,t))}return String(n)}function Yd(e,t,n,r){r===void 0&&(r={});try{return qd(e,t,r).formatToParts(n)}catch(t){e.onError(new pd(`Error formatting number.`,e.locale,t))}return[]}function Xd(e){return typeof(e?e[Object.keys(e)[0]]:void 0)==`string`}function Zd(e){e.onWarn&&e.defaultRichTextElements&&Xd(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. 
33Please consider using "@formatjs/cli" to pre-compile your messages for performance.
34For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Qd(e,t){var n=xd(t),r=I(I({},vd),e),i=r.locale,a=r.defaultLocale,o=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&o?o(new fd(`Missing locale data for locale: "${i}" in Intl.NumberFormat. Using default locale: "${a}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&o&&o(new fd(`Missing locale data for locale: "${i}" in Intl.DateTimeFormat. Using default locale: "${a}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):(o&&o(new dd(`"locale" was not configured, using "${a}" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details`)),r.locale=r.defaultLocale||`en`),Zd(r),I(I({},r),{formatters:n,formatNumber:Jd.bind(null,r,n.getNumberFormat),formatNumberToParts:Yd.bind(null,r,n.getNumberFormat),formatRelativeTime:Gd.bind(null,r,n.getRelativeTimeFormat),formatDate:kd.bind(null,r,n.getDateTimeFormat),formatDateToParts:Md.bind(null,r,n.getDateTimeFormat),formatTime:Ad.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:jd.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Nd.bind(null,r,n.getDateTimeFormat),formatPlural
34:Hd.bind(null,r,n.getPluralRules),formatMessage:Ed.bind(null,r,n),$t:Ed.bind(null,r,n),formatList:zd.bind(null,r,n.getListFormat),formatListToParts:Bd.bind(null,r,n.getListFormat),formatDisplayName:Fd.bind(null,r,n.getDisplayNames)})}function $d(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}function ef(e){$d(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var tf=I(I({},vd),{textComponent:Y.Fragment});function nf(e){return function(t){return e(Y.Children.toArray(t))}}function rf(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var a=0;a<i;a++){var o=n[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}de();var af=typeof window<`u`&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Y.createContext(null)):Y.createContext(null);af.Consumer;var of=af.Provider,sf=af;function cf(){var e=Y.useContext(sf);return ef(e),e}var lf;(function(e){e.formatDate=`FormattedDate`,e.formatTime=`FormattedTime`,e.formatNumber=`FormattedNumber`,e.formatList=`FormattedList`,e.formatDisplayName=`FormattedDisplayName`})(lf||={});var uf;(function(e){e.formatDate=`FormattedDateParts`,e.formatTime=`FormattedTimeParts`,e.formatNumber=`FormattedNumberParts`,e.formatList=`FormattedListParts`})(uf||={});var df=function(e){var t=cf(),n=e.value,r=e.children,i=P(e,[`value`,`children`]);return r(t.formatNumberToParts(n,i))};df.displayName=`FormattedNumberParts`,df.displayName=`FormattedNumberParts`;function ff(e){var t=function(t){var n=cf(),r=t.value,i=t.children,a=P(t,[`value`,`children`]),o=typeof r==`string`?new Date(r||0):r;return i(e===`formatDate`?n.formatDateToParts(o,a):n.formatTimeToParts(o,a))};return t.displayName=uf[e],t}function pf(e){var t=function(t){var n=cf(),r=t.value,i=t.children,a=P(t,[`value`,`children`]),o=n[e](r,a);if(typeof i==`function`)return i(o);var s=n.textComponent||Y.Fragment;return Y.createElement(s,null,o)};return t.displayName=lf[e],t}function mf(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=td(r)?nf(r):r,t},{})}var hf=function(e,t,n,r){var i=[...arguments].slice(4),a=mf(r),o=Ed.apply(void 0,le([e,t,n,a],i,!1));return Array.isArray(o)?Y.Children.toArray(o):o},gf=function(e,t){var n=e.defaultRichTextElements,r=P(e,[`defaultRichTextElements`]),i=mf(n),a=Qd(I(I(I({},tf),r),{defaultRichTextElements:i}),t),o={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:i};return I(I({},a),{formatMessage:hf.bind(null,o,a.formatters),$t:hf.bind(null,o,a.formatters)})};function _f(e,t){var n=e.values,r=P(e,[`values`]),i=t.values,a=P(t,[`values`]);return rf(i,n)&&rf(r,a)}function vf(e){var t=cf(),n=t.formatMessage,r=t.textComponent,i=r===void 0?Y.Fragment:r,a=e.id,o=e.description,s=e.defaultMessage,c=e.values,l=e.children,u=e.tagName,d=u===void 0?i:u,f=e.ignoreTag,p=n({id:a,description:o,defaultMessage:s},c,{ignoreTag:f});return typeof l==`function`?l(Array.isArray(p)?p:[p]):d?Y.createElement(d,null,Y.Children.toArray(p)):Y.createElement(Y.Fragment,null,p)}vf.displayName=`FormattedMessage`;var yf=Y.memo(vf,_f);yf.displayName=`MemoizedFormattedMessage`;function bf(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var xf=function(e){F(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.cache=yd(),t.state={cache:t.cache,intl:gf(bf(t.props),t.cache),prevConfig:bf(t.props)},t}return t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,i=bf(e);return rf(n,i)?null:{intl:gf(i,r),prevConfig:i}},t.prototype.render=function(){return ef(this.state.intl),Y.createElement(of,{value:this.state.intl},this.props.children)},t.displayName=`IntlProvider`,t.defaultProps=tf,t}(Y.PureComponent);function Sf(e){return e}var Cf=pf(`formatDate`),wf=pf(`formatTime`),Tf=pf(`formatNumber`);pf(`formatList`),pf(`formatDisplayName`),ff(`formatDate`),ff(`formatTime`);function Ef(){let{data:e}=Nl();return Zc(e)?e:e.data.attributes.settings.core.locales}var Df=(e,t)=>
34e.reduce((e,n)=>({...e,[n]:t(n)}),{});function Of(){let{locale:e}=Zf();return e}function kf(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Af=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=j(r,t),e),{}),jf=/<\/(p|div|li|h[1-6]|tr|blockquote)>|<br\s*\/?>/gi;function Mf(e){let t=e.replace(jf,`
35`),{body:n}=new DOMParser().parseFromString(t,`text/html`);return n.querySelectorAll(`script, style`).forEach(e=>e.remove()),n.textContent}function Nf(e,t){return j(Mf(e).replace(/\s+/g,` `).trim(),t)}var Pf=RegExp(/^[a-z0-9\u0600-\u06FF\u0750-\u077F]+(?:-[a-z0-9\u0600-\u06FF\u0750-\u077F]+)*$/);function Ff(e){return Pf.test(e)}function If(e){return`${e.attributes.first_name} ${e.attributes.last_name}`}var Lf=e=>e.replace(/\s/g,``);function Rf(e,...t){return e.length===1?Lf(e[0]):e.reduce((e,n,r)=>{let i=e+Lf(n);return r<t.length&&(i+=t[r]),i},``)}var zf=(e,t)=>t[e];function Bf(e,t,n,r){if(!Zc(e)&&!Zc(t)&&!Zc(n)&&n.length>0){let i=il(t),a=n.map(e=>il(e)),s=zs([t,i,...n,...a]);if(o(e)&&!M(e)&&ks(e[0],`content`)&&ks(e[0],`locale`)){let t=e.map(e=>e.locale),n=t.map(e=>il(e)),r=zs([...s,...t,...n]).filter(e=>!e.startsWith(`__`)).find(t=>e.some(e=>e.locale===t));return f(e.find(e=>e.locale===r),`content`,``)}if(u(e)&&!M(e)){if(e[t])return j(e[t],r);let n=ie(e),i=Wf(t,n);if(!Zc(i)&&e[i])return j(e[i],r);let a=n.map(e=>il(e)),o=zs([...s,...n,...a]).filter(e=>!e.startsWith(`__`)).find(t=>!!e[t]);return j(o?e[o]:``,r)}}return``}function Vf(e,t,n,r,i){return!e||Zc(t)?i?j(i,r):Bf(e,t,n,r):Hf(e[t])&&i?j(i,r):Bf(e,t,n,r)}var Hf=e=>!e||e.length===0;function Uf(e){return e.indexOf(`-`)>-1?e.split(`-`)[0]:e}function Wf(e,t){let n=Uf(e),r=t.map(Uf).findIndex(e=>e===n);return r>-1?t[r]:null}function Gf(){let e=Of(),t=Ef();return(0,Y.useCallback)((n,{maxChar:r,fallback:i}={})=>Vf(n,e,t,r,i),[e,t])}var Kf=ue.span`
36  ${oe`
37      direction: rtl;
38  `}
39`,qf=e=>{let{data:t}=Nl(),n=Gf();return t?(0,ts.jsx)(Kf,{"data-cy":e[`data-cy`],children:(0,ts.jsx)(yf,{...e,values:{...e.values,...e.formatBold?{b:e=>(0,ts.jsx)(`strong`,{style:{fontWeight:`bold`},children:e})}:{},tenantName:t.data.attributes.name,orgType:t.data.attributes.settings.core.organization_type,orgName:n(t.data.attributes.settings.core.organization_name)}})}):null},Jf=e=>t=>{let n=Gf(),{data:r}=Nl(),i=cf();if(Zc(r))return null;let a=(e,t)=>i.formatMessage(e,{tenantName:r.data.attributes.name,orgName:n(r.data.attributes.settings.core.organization_name),orgType:r.data.attributes.settings.core.organization_type,...t||{}}),o={...i,formatMessage:a};return(0,ts.jsx)(e,{...t,intl:o})},Yf=(0,Y.createContext)({}),Xf=(e,t,n,r,i)=>e.formatMessage(r,{tenantName:Zc(t)?void 0:t.data.attributes.name,orgName:Zc(t)?void 0:Vf(t.data.attributes.settings.core.organization_name,n,t.data.attributes.settings.core.locales),orgType:Zc(t)?void 0:t.data.attributes.settings.core.organization_type,...i||{}}),Zf=()=>{let e=cf(),[t,n]=(0,Y.useState)(void 0);(0,Y.useEffect)(()=>{let e=_().observable.subscribe(e=>{n(e)});return()=>e.unsubscribe()},[]);let{data:r}=Nl(),i=(0,Y.useCallback)((n,i)=>Xf(e,r,t,n,i),[e,r,t]);return{...e,formatMessage:i}},Qf=()=>{let[e,t]=(0,Y.useState)(!1),{intlShapes:n,loadLocales:r}=(0,Y.useContext)(Yf),{data:i}=Nl();(0,Y.useEffect)(()=>{e||r().then(()=>{t(!0)})},[r,e]);let a=(0,Y.useCallback)((e,t,r)=>Xf(n[e],i,e,t,r),[n,i]);if(e)return a};export{cl as $,Rn as $n,Oe as $r,za as $t,Ml as A,Gr as An,Tt as Ar,ds as At,vl as B,_r as Bn,ze as Br,ao as Bt,Cf as C,ri as Cn,Bt as Cr,vs as Ct,xf as D,Xr as Dn,jt as Dr,hs as Dt,Sf as E,Qr as En,Pt as Er,gs as Et,Sl as F,G as Fn,Qe as Fr,Xo as Ft,_l as G,lr as Gn,Ye as Gr,xo as Gt,sl as H,xr as Hn,Ie as Hr,K as Ht,bl as I,Mr as In,rt as Ir,Ho as It,el as J,nr as Jn,We as Jr,Ra as Jt,hl as K,hr as Kn,Ge as Kr,yo as Kt,wl as L,Er as Ln,Ze as Lr,Io as Lt,jl as M,Yr as Mn,pt as Mr,os as Mt,kl as N,Lr as Nn,st as Nr,is as Nt,gf as O,Jr as On,kt as Or,us as Ot,Dl as P,Ar as Pn,ot as Pr,rs as Pt,tl as Q,zn as Qn,Je as Qr,Ba as Qt,dl as R,Dr as Rn,et as Rr,Lo as Rt,Ef as S,ai as Sn,Lt as Sr,bs as St,wf as T,ei as Tn,Mt as Tr,ps as Tt,yl as U,yr as Un,Re as Ur,co as Ut,il as V,br as Vn,Be as Vr,go as Vt,ml as W,gr as Wn,Ke as Wr,lo as Wt,Qc as X,Un as Xn,Xe as Xr,Ga as Xt,$c as Y,Yn,Ue as Yr,Ia as Yt,Zc as Z,Vn as Zn,Ve as Zr,Va as Zt,Af as _,mi as _n,Xt as _r,Ns as _t,qf as a,H as ai,Wi as an,jn as ar,ol as at,Of as b,li as bn,Gt as br,ws as bt,zf as c,z as ci,Fi as cn,Bn as cr,qc as ct,Vf as d,L as di,Di as dn,Tn as dr,Kc as dt,Pe as ei,Ha as en,Pn as er,ll as et,kf as f,pi as fn,On as fr,Gc as ft,Nf as g,Ci as gn,en as gr,Fs as gt,Pf as h,hi as hn,_n as hr,Rs as ht,Jf as i,ge as ii,na as in,Nn as ir,rl as it,Nl as j,Wr as jn,ht as jr,ls as jt,yd as k,Kr as kn,Ct as kr,fs as kt,Uf as l,fe as li,Mi as ln,W as lr,Wc as lt,Mf as m,fi as mn,Dn as mr,zs as mt,Zf as n,ke as ni,ga as nn,In as nr,pl as nt,Gf as o,he as oi,Ki as on,An as or,Xc as ot,If as p,bi as pn,wn as pr,Ac as pt,nl as q,er as qn,He as qr,Ka as qt,Yf as r,pe as ri,ha as rn,Mn as rr,fl as rt,Wf as s,V as si,Li as sn,kn as sr,Yc as 
39st,Qf as t,Ne as ti,Ta as tn,Fn as tr,al as tt,Bf as u,R as ui,Oi as un,U as ur,Jc as ut,Ff as v,_i as vn,Yt as vr,Es as vt,Tf as w,ii as wn,Nt as wr,_s as wt,Df as x,ui as xn,Ut as xr,Cs as xt,Rf as y,di as yn,Jt as yr,Ts as yt,ul as z,Pr as zn,$e as zr,J as zt};
40//# sourceMappingURL=cl-intl.C4y3pUTH.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.