@apolitical/component-library 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,101 @@
1
+ "use strict";var Fu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var P=(e,t,r)=>(Fu(e,t,"read from private field"),r?r.call(e):t.get(e)),ne=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},J=(e,t,r,n)=>(Fu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var la=(e,t,r,n)=>({set _(i){J(e,t,i,r)},get _(){return P(e,t,n)}}),ye=(e,t,r)=>(Fu(e,t,"access private method"),r);const U=require("react"),x=require("react/jsx-runtime");function DE(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pe=DE(U);var fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Js(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var fg={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&n.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var c in o)t.call(o,c)&&o[c]&&n.push(c)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(fg);var BE=fg.exports;const se=Er(BE),UE=({element:e="span",showOnFocus:t=!0,children:r,...n})=>U.createElement(e,{...n,className:se("hidden",{"show-on-focus":t}),children:r}),lt=U.memo(UE),$E=({element:e="span",children:t=null,...r})=>U.createElement(e,{...r,"aria-hidden":!0},t),Of=U.memo($E),ri=(e,t)=>{const r=U.useRef(!1);U.useEffect(()=>{r.current?e():r.current=!0},t)};/*!
6
+ * cookie
7
+ * Copyright(c) 2012-2014 Roman Shtylman
8
+ * Copyright(c) 2015 Douglas Christopher Wilson
9
+ * MIT Licensed
10
+ */var hg=HE,Eh=qE,jE=Object.prototype.toString,fa=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function HE(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},i=n.decode||GE,o=0;o<e.length;){var a=e.indexOf("=",o);if(a===-1)break;var s=e.indexOf(";",o);if(s===-1)s=e.length;else if(s<a){o=e.lastIndexOf(";",a-1)+1;continue}var c=e.slice(o,a).trim();if(r[c]===void 0){var l=e.slice(a+1,s).trim();l.charCodeAt(0)===34&&(l=l.slice(1,-1)),r[c]=zE(l,i)}o=s+1}return r}function qE(e,t,r){var n=r||{},i=n.encode||VE;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!fa.test(e))throw new TypeError("argument name is invalid");var o=i(t);if(o&&!fa.test(o))throw new TypeError("argument val is invalid");var a=e+"="+o;if(n.maxAge!=null){var s=n.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(s)}if(n.domain){if(!fa.test(n.domain))throw new TypeError("option domain is invalid");a+="; Domain="+n.domain}if(n.path){if(!fa.test(n.path))throw new TypeError("option path is invalid");a+="; Path="+n.path}if(n.expires){var c=n.expires;if(!WE(c)||isNaN(c.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+c.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.priority){var l=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(l){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a}function GE(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function VE(e){return encodeURIComponent(e)}function WE(e){return jE.call(e)==="[object Date]"||e instanceof Date}function zE(e,t){try{return t(e)}catch{return e}}function QE(){return typeof document=="object"&&typeof document.cookie=="string"}function YE(e){return typeof e=="string"?hg(e):typeof e=="object"&&e!==null?e:{}}function Du(e,t={}){const r=KE(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function KE(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class dg{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=hg(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=YE(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=QE()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:Du(t[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Du(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Du(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const i=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Eh(t,i,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){const n=r=Object.assign(Object.assign({},r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Eh(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const pg=pe.createContext(new dg),{Provider:XE,Consumer:aI}=pg,JE=pg;class ZE extends pe.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new dg(void 0,t.defaultSetOptions)}render(){return pe.createElement(XE,{value:this.cookies},this.props.children)}}var Rl={exports:{}},Le={};/** @license React v16.13.1
11
+ * react-is.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var _h;function e_(){if(_h)return Le;_h=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(w){if(typeof w=="object"&&w!==null){var N=w.$$typeof;switch(N){case t:switch(w=w.type,w){case c:case l:case n:case o:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case p:case f:case a:return w;default:return N}}case r:return N}}}function T(w){return b(w)===l}return Le.AsyncMode=c,Le.ConcurrentMode=l,Le.ContextConsumer=s,Le.ContextProvider=a,Le.Element=t,Le.ForwardRef=u,Le.Fragment=n,Le.Lazy=p,Le.Memo=f,Le.Portal=r,Le.Profiler=o,Le.StrictMode=i,Le.Suspense=d,Le.isAsyncMode=function(w){return T(w)||b(w)===c},Le.isConcurrentMode=T,Le.isContextConsumer=function(w){return b(w)===s},Le.isContextProvider=function(w){return b(w)===a},Le.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Le.isForwardRef=function(w){return b(w)===u},Le.isFragment=function(w){return b(w)===n},Le.isLazy=function(w){return b(w)===p},Le.isMemo=function(w){return b(w)===f},Le.isPortal=function(w){return b(w)===r},Le.isProfiler=function(w){return b(w)===o},Le.isStrictMode=function(w){return b(w)===i},Le.isSuspense=function(w){return b(w)===d},Le.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===l||w===o||w===i||w===d||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===f||w.$$typeof===a||w.$$typeof===s||w.$$typeof===u||w.$$typeof===_||w.$$typeof===S||w.$$typeof===v||w.$$typeof===m)},Le.typeOf=b,Le}var ke={};/** @license React v16.13.1
18
+ * react-is.development.js
19
+ *
20
+ * Copyright (c) Facebook, Inc. and its affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */var bh;function t_(){return bh||(bh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(oe){return typeof oe=="string"||typeof oe=="function"||oe===n||oe===l||oe===o||oe===i||oe===d||oe===h||typeof oe=="object"&&oe!==null&&(oe.$$typeof===p||oe.$$typeof===f||oe.$$typeof===a||oe.$$typeof===s||oe.$$typeof===u||oe.$$typeof===_||oe.$$typeof===S||oe.$$typeof===v||oe.$$typeof===m)}function T(oe){if(typeof oe=="object"&&oe!==null){var st=oe.$$typeof;switch(st){case t:var Je=oe.type;switch(Je){case c:case l:case n:case o:case i:case d:return Je;default:var Vt=Je&&Je.$$typeof;switch(Vt){case s:case u:case p:case f:case a:return Vt;default:return st}}case r:return st}}}var w=c,N=l,R=s,L=a,$=t,G=u,q=n,H=p,Y=f,ie=r,K=o,k=i,Q=d,ee=!1;function he(oe){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(oe)||T(oe)===c}function Z(oe){return T(oe)===l}function X(oe){return T(oe)===s}function le(oe){return T(oe)===a}function de(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function Ve(oe){return T(oe)===u}function te(oe){return T(oe)===n}function ae(oe){return T(oe)===p}function De(oe){return T(oe)===f}function Ie(oe){return T(oe)===r}function Tt(oe){return T(oe)===o}function Ct(oe){return T(oe)===i}function Gt(oe){return T(oe)===d}ke.AsyncMode=w,ke.ConcurrentMode=N,ke.ContextConsumer=R,ke.ContextProvider=L,ke.Element=$,ke.ForwardRef=G,ke.Fragment=q,ke.Lazy=H,ke.Memo=Y,ke.Portal=ie,ke.Profiler=K,ke.StrictMode=k,ke.Suspense=Q,ke.isAsyncMode=he,ke.isConcurrentMode=Z,ke.isContextConsumer=X,ke.isContextProvider=le,ke.isElement=de,ke.isForwardRef=Ve,ke.isFragment=te,ke.isLazy=ae,ke.isMemo=De,ke.isPortal=Ie,ke.isProfiler=Tt,ke.isStrictMode=Ct,ke.isSuspense=Gt,ke.isValidElementType=b,ke.typeOf=T}()),ke}process.env.NODE_ENV==="production"?Rl.exports=e_():Rl.exports=t_();var r_=Rl.exports,mg=r_,n_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gg={};gg[mg.ForwardRef]=n_;gg[mg.Memo]=i_;function o_(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function yg(e){const t=U.useContext(JE);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=U.useState(()=>t.getAll());o_()&&U.useLayoutEffect(()=>{function s(){const c=t.getAll({doNotUpdate:!0});s_(e||null,c,r)&&n(c)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const i=U.useMemo(()=>t.set.bind(t),[t]),o=U.useMemo(()=>t.remove.bind(t),[t]),a=U.useMemo(()=>t.update.bind(t),[t]);return[r,i,o,a]}function s_(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}var vg={exports:{}},Bu={exports:{}},ha={},da={exports:{}},Uu,wh;function Eg(){return wh||(wh=1,Uu=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(r,i)}}),Uu}var $u,Sh;function ft(){if(Sh)return $u;Sh=1;var e=Eg(),t=Object.prototype.toString,r=function(k){return function(Q){var ee=t.call(Q);return k[ee]||(k[ee]=ee.slice(8,-1).toLowerCase())}}(Object.create(null));function n(k){return k=k.toLowerCase(),function(ee){return r(ee)===k}}function i(k){return Array.isArray(k)}function o(k){return typeof k>"u"}function a(k){return k!==null&&!o(k)&&k.constructor!==null&&!o(k.constructor)&&typeof k.constructor.isBuffer=="function"&&k.constructor.isBuffer(k)}var s=n("ArrayBuffer");function c(k){var Q;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?Q=ArrayBuffer.isView(k):Q=k&&k.buffer&&s(k.buffer),Q}function l(k){return typeof k=="string"}function u(k){return typeof k=="number"}function d(k){return k!==null&&typeof k=="object"}function h(k){if(r(k)!=="object")return!1;var Q=Object.getPrototypeOf(k);return Q===null||Q===Object.prototype}var f=n("Date"),p=n("File"),m=n("Blob"),_=n("FileList");function S(k){return t.call(k)==="[object Function]"}function v(k){return d(k)&&S(k.pipe)}function b(k){var Q="[object FormData]";return k&&(typeof FormData=="function"&&k instanceof FormData||t.call(k)===Q||S(k.toString)&&k.toString()===Q)}var T=n("URLSearchParams");function w(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")}function N(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function R(k,Q){if(!(k===null||typeof k>"u"))if(typeof k!="object"&&(k=[k]),i(k))for(var ee=0,he=k.length;ee<he;ee++)Q.call(null,k[ee],ee,k);else for(var Z in k)Object.prototype.hasOwnProperty.call(k,Z)&&Q.call(null,k[Z],Z,k)}function L(){var k={};function Q(Z,X){h(k[X])&&h(Z)?k[X]=L(k[X],Z):h(Z)?k[X]=L({},Z):i(Z)?k[X]=Z.slice():k[X]=Z}for(var ee=0,he=arguments.length;ee<he;ee++)R(arguments[ee],Q);return k}function $(k,Q,ee){return R(Q,function(Z,X){ee&&typeof Z=="function"?k[X]=e(Z,ee):k[X]=Z}),k}function G(k){return k.charCodeAt(0)===65279&&(k=k.slice(1)),k}function q(k,Q,ee,he){k.prototype=Object.create(Q.prototype,he),k.prototype.constructor=k,ee&&Object.assign(k.prototype,ee)}function H(k,Q,ee){var he,Z,X,le={};Q=Q||{};do{for(he=Object.getOwnPropertyNames(k),Z=he.length;Z-- >0;)X=he[Z],le[X]||(Q[X]=k[X],le[X]=!0);k=Object.getPrototypeOf(k)}while(k&&(!ee||ee(k,Q))&&k!==Object.prototype);return Q}function Y(k,Q,ee){k=String(k),(ee===void 0||ee>k.length)&&(ee=k.length),ee-=Q.length;var he=k.indexOf(Q,ee);return he!==-1&&he===ee}function ie(k){if(!k)return null;var Q=k.length;if(o(Q))return null;for(var ee=new Array(Q);Q-- >0;)ee[Q]=k[Q];return ee}var K=function(k){return function(Q){return k&&Q instanceof k}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return $u={isArray:i,isArrayBuffer:s,isBuffer:a,isFormData:b,isArrayBufferView:c,isString:l,isNumber:u,isObject:d,isPlainObject:h,isUndefined:o,isDate:f,isFile:p,isBlob:m,isFunction:S,isStream:v,isURLSearchParams:T,isStandardBrowserEnv:N,forEach:R,merge:L,extend:$,trim:w,stripBOM:G,inherits:q,toFlatObject:H,kindOf:r,kindOfTest:n,endsWith:Y,toArray:ie,isTypedArray:K,isFileList:_},$u}var ju,Th;function _g(){if(Th)return ju;Th=1;var e=ft();function t(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return ju=function(n,i,o){if(!i)return n;var a;if(o)a=o(i);else if(e.isURLSearchParams(i))a=i.toString();else{var s=[];e.forEach(i,function(u,d){u===null||typeof u>"u"||(e.isArray(u)?d=d+"[]":u=[u],e.forEach(u,function(f){e.isDate(f)?f=f.toISOString():e.isObject(f)&&(f=JSON.stringify(f)),s.push(t(d)+"="+t(f))}))}),a=s.join("&")}if(a){var c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n},ju}var Hu,xh;function a_(){if(xh)return Hu;xh=1;var e=ft();function t(){this.handlers=[]}return t.prototype.use=function(n,i,o){return this.handlers.push({fulfilled:n,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},t.prototype.forEach=function(n){e.forEach(this.handlers,function(o){o!==null&&n(o)})},Hu=t,Hu}var qu,Oh;function u_(){if(Oh)return qu;Oh=1;var e=ft();return qu=function(r,n){e.forEach(r,function(o,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(r[n]=o,delete r[a])})},qu}var Gu,Ah;function co(){if(Ah)return Gu;Ah=1;var e=ft();function t(i,o,a,s,c){Error.call(this),this.message=i,this.name="AxiosError",o&&(this.code=o),a&&(this.config=a),s&&(this.request=s),c&&(this.response=c)}e.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=t.prototype,n={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(i){n[i]={value:i}}),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(i,o,a,s,c,l){var u=Object.create(r);return e.toFlatObject(i,u,function(h){return h!==Error.prototype}),t.call(u,i.message,o,a,s,c),u.name=i.name,l&&Object.assign(u,l),u},Gu=t,Gu}var Vu,Ch;function bg(){return Ch||(Ch=1,Vu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),Vu}var Wu,Rh;function wg(){if(Rh)return Wu;Rh=1;var e=ft();function t(r,n){n=n||new FormData;var i=[];function o(s){return s===null?"":e.isDate(s)?s.toISOString():e.isArrayBuffer(s)||e.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function a(s,c){if(e.isPlainObject(s)||e.isArray(s)){if(i.indexOf(s)!==-1)throw Error("Circular reference detected in "+c);i.push(s),e.forEach(s,function(u,d){if(!e.isUndefined(u)){var h=c?c+"."+d:d,f;if(u&&!c&&typeof u=="object"){if(e.endsWith(d,"{}"))u=JSON.stringify(u);else if(e.endsWith(d,"[]")&&(f=e.toArray(u))){f.forEach(function(p){!e.isUndefined(p)&&n.append(h,o(p))});return}}a(u,h)}}),i.pop()}else n.append(c,o(s))}return a(r),n}return Wu=t,Wu}var zu,Ph;function c_(){if(Ph)return zu;Ph=1;var e=co();return zu=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},zu}var Qu,Nh;function l_(){if(Nh)return Qu;Nh=1;var e=ft();return Qu=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,c){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Qu}var Yu,Ih;function f_(){return Ih||(Ih=1,Yu=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Yu}var Ku,Lh;function h_(){return Lh||(Lh=1,Ku=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Ku}var Xu,kh;function Sg(){if(kh)return Xu;kh=1;var e=f_(),t=h_();return Xu=function(n,i){return n&&!e(i)?t(n,i):i},Xu}var Ju,Mh;function d_(){if(Mh)return Ju;Mh=1;var e=ft(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ju=function(n){var i={},o,a,s;return n&&e.forEach(n.split(`
25
+ `),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},Ju}var Zu,Fh;function p_(){if(Fh)return Zu;Fh=1;var e=ft();return Zu=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var c=e.isString(s)?o(s):s;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),Zu}var ec,Dh;function yu(){if(Dh)return ec;Dh=1;var e=co(),t=ft();function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),ec=r,ec}var tc,Bh;function m_(){return Bh||(Bh=1,tc=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),tc}var rc,Uh;function $h(){if(Uh)return rc;Uh=1;var e=ft(),t=c_(),r=l_(),n=_g(),i=Sg(),o=d_(),a=p_(),s=bg(),c=co(),l=yu(),u=m_();return rc=function(h){return new Promise(function(p,m){var _=h.data,S=h.headers,v=h.responseType,b;function T(){h.cancelToken&&h.cancelToken.unsubscribe(b),h.signal&&h.signal.removeEventListener("abort",b)}e.isFormData(_)&&e.isStandardBrowserEnv()&&delete S["Content-Type"];var w=new XMLHttpRequest;if(h.auth){var N=h.auth.username||"",R=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";S.Authorization="Basic "+btoa(N+":"+R)}var L=i(h.baseURL,h.url);w.open(h.method.toUpperCase(),n(L,h.params,h.paramsSerializer),!0),w.timeout=h.timeout;function $(){if(w){var H="getAllResponseHeaders"in w?o(w.getAllResponseHeaders()):null,Y=!v||v==="text"||v==="json"?w.responseText:w.response,ie={data:Y,status:w.status,statusText:w.statusText,headers:H,config:h,request:w};t(function(k){p(k),T()},function(k){m(k),T()},ie),w=null}}if("onloadend"in w?w.onloadend=$:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout($)},w.onabort=function(){w&&(m(new c("Request aborted",c.ECONNABORTED,h,w)),w=null)},w.onerror=function(){m(new c("Network Error",c.ERR_NETWORK,h,w,w)),w=null},w.ontimeout=function(){var Y=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",ie=h.transitional||s;h.timeoutErrorMessage&&(Y=h.timeoutErrorMessage),m(new c(Y,ie.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,h,w)),w=null},e.isStandardBrowserEnv()){var G=(h.withCredentials||a(L))&&h.xsrfCookieName?r.read(h.xsrfCookieName):void 0;G&&(S[h.xsrfHeaderName]=G)}"setRequestHeader"in w&&e.forEach(S,function(Y,ie){typeof _>"u"&&ie.toLowerCase()==="content-type"?delete S[ie]:w.setRequestHeader(ie,Y)}),e.isUndefined(h.withCredentials)||(w.withCredentials=!!h.withCredentials),v&&v!=="json"&&(w.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&w.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(b=function(H){w&&(m(!H||H&&H.type?new l:H),w.abort(),w=null)},h.cancelToken&&h.cancelToken.subscribe(b),h.signal&&(h.signal.aborted?b():h.signal.addEventListener("abort",b))),_||(_=null);var q=u(L);if(q&&["http","https","file"].indexOf(q)===-1){m(new c("Unsupported protocol "+q+":",c.ERR_BAD_REQUEST,h));return}w.send(_)})},rc}var nc,jh;function g_(){return jh||(jh=1,nc=null),nc}var ic,Hh;function Af(){if(Hh)return ic;Hh=1;var e=ft(),t=u_(),r=co(),n=bg(),i=wg(),o={"Content-Type":"application/x-www-form-urlencoded"};function a(u,d){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=d)}function s(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=$h()),u}function c(u,d,h){if(e.isString(u))try{return(d||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(h||JSON.stringify)(u)}var l={transitional:n,adapter:s(),transformRequest:[function(d,h){if(t(h,"Accept"),t(h,"Content-Type"),e.isFormData(d)||e.isArrayBuffer(d)||e.isBuffer(d)||e.isStream(d)||e.isFile(d)||e.isBlob(d))return d;if(e.isArrayBufferView(d))return d.buffer;if(e.isURLSearchParams(d))return a(h,"application/x-www-form-urlencoded;charset=utf-8"),d.toString();var f=e.isObject(d),p=h&&h["Content-Type"],m;if((m=e.isFileList(d))||f&&p==="multipart/form-data"){var _=this.env&&this.env.FormData;return i(m?{"files[]":d}:d,_&&new _)}else if(f||p==="application/json")return a(h,"application/json"),c(d);return d}],transformResponse:[function(d){var h=this.transitional||l.transitional,f=h&&h.silentJSONParsing,p=h&&h.forcedJSONParsing,m=!f&&this.responseType==="json";if(m||p&&e.isString(d)&&d.length)try{return JSON.parse(d)}catch(_){if(m)throw _.name==="SyntaxError"?r.from(_,r.ERR_BAD_RESPONSE,this,null,this.response):_}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:g_()},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(d){l.headers[d]={}}),e.forEach(["post","put","patch"],function(d){l.headers[d]=e.merge(o)}),ic=l,ic}var oc,qh;function y_(){if(qh)return oc;qh=1;var e=ft(),t=Af();return oc=function(n,i,o){var a=this||t;return e.forEach(o,function(c){n=c.call(a,n,i)}),n},oc}var sc,Gh;function Tg(){return Gh||(Gh=1,sc=function(t){return!!(t&&t.__CANCEL__)}),sc}var ac,Vh;function v_(){if(Vh)return ac;Vh=1;var e=ft(),t=y_(),r=Tg(),n=Af(),i=yu();function o(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new i}return ac=function(s){o(s),s.headers=s.headers||{},s.data=t.call(s,s.data,s.headers,s.transformRequest),s.headers=e.merge(s.headers.common||{},s.headers[s.method]||{},s.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(u){delete s.headers[u]});var c=s.adapter||n.adapter;return c(s).then(function(u){return o(s),u.data=t.call(s,u.data,u.headers,s.transformResponse),u},function(u){return r(u)||(o(s),u&&u.response&&(u.response.data=t.call(s,u.response.data,u.response.headers,s.transformResponse))),Promise.reject(u)})},ac}var uc,Wh;function xg(){if(Wh)return uc;Wh=1;var e=ft();return uc=function(r,n){n=n||{};var i={};function o(d,h){return e.isPlainObject(d)&&e.isPlainObject(h)?e.merge(d,h):e.isPlainObject(h)?e.merge({},h):e.isArray(h)?h.slice():h}function a(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return o(void 0,r[d])}else return o(r[d],n[d])}function s(d){if(!e.isUndefined(n[d]))return o(void 0,n[d])}function c(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return o(void 0,r[d])}else return o(void 0,n[d])}function l(d){if(d in n)return o(r[d],n[d]);if(d in r)return o(void 0,r[d])}var u={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:l};return e.forEach(Object.keys(r).concat(Object.keys(n)),function(h){var f=u[h]||a,p=f(h);e.isUndefined(p)&&f!==l||(i[h]=p)}),i},uc}var cc,zh;function Og(){return zh||(zh=1,cc={version:"0.27.2"}),cc}var lc,Qh;function E_(){if(Qh)return lc;Qh=1;var e=Og().version,t=co(),r={};["object","boolean","number","function","string","symbol"].forEach(function(o,a){r[o]=function(c){return typeof c===o||"a"+(a<1?"n ":" ")+o}});var n={};r.transitional=function(a,s,c){function l(u,d){return"[Axios v"+e+"] Transitional option '"+u+"'"+d+(c?". "+c:"")}return function(u,d,h){if(a===!1)throw new t(l(d," has been removed"+(s?" in "+s:"")),t.ERR_DEPRECATED);return s&&!n[d]&&(n[d]=!0,console.warn(l(d," has been deprecated since v"+s+" and will be removed in the near future"))),a?a(u,d,h):!0}};function i(o,a,s){if(typeof o!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var c=Object.keys(o),l=c.length;l-- >0;){var u=c[l],d=a[u];if(d){var h=o[u],f=h===void 0||d(h,u,o);if(f!==!0)throw new t("option "+u+" must be "+f,t.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new t("Unknown option "+u,t.ERR_BAD_OPTION)}}return lc={assertOptions:i,validators:r},lc}var fc,Yh;function __(){if(Yh)return fc;Yh=1;var e=ft(),t=_g(),r=a_(),n=v_(),i=xg(),o=Sg(),a=E_(),s=a.validators;function c(l){this.defaults=l,this.interceptors={request:new r,response:new r}}return c.prototype.request=function(u,d){typeof u=="string"?(d=d||{},d.url=u):d=u||{},d=i(this.defaults,d),d.method?d.method=d.method.toLowerCase():this.defaults.method?d.method=this.defaults.method.toLowerCase():d.method="get";var h=d.transitional;h!==void 0&&a.assertOptions(h,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);var f=[],p=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(d)===!1||(p=p&&N.synchronous,f.unshift(N.fulfilled,N.rejected))});var m=[];this.interceptors.response.forEach(function(N){m.push(N.fulfilled,N.rejected)});var _;if(!p){var S=[n,void 0];for(Array.prototype.unshift.apply(S,f),S=S.concat(m),_=Promise.resolve(d);S.length;)_=_.then(S.shift(),S.shift());return _}for(var v=d;f.length;){var b=f.shift(),T=f.shift();try{v=b(v)}catch(w){T(w);break}}try{_=n(v)}catch(w){return Promise.reject(w)}for(;m.length;)_=_.then(m.shift(),m.shift());return _},c.prototype.getUri=function(u){u=i(this.defaults,u);var d=o(u.baseURL,u.url);return t(d,u.params,u.paramsSerializer)},e.forEach(["delete","get","head","options"],function(u){c.prototype[u]=function(d,h){return this.request(i(h||{},{method:u,url:d,data:(h||{}).data}))}}),e.forEach(["post","put","patch"],function(u){function d(h){return function(p,m,_){return this.request(i(_||{},{method:u,headers:h?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}c.prototype[u]=d(),c.prototype[u+"Form"]=d(!0)}),fc=c,fc}var hc,Kh;function b_(){if(Kh)return hc;Kh=1;var e=yu();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a<s;a++)i._listeners[a](o);i._listeners=null}}),this.promise.then=function(o){var a,s=new Promise(function(c){i.subscribe(c),a=c}).then(o);return s.cancel=function(){i.unsubscribe(a)},s},r(function(a){i.reason||(i.reason=new e(a),n(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(this._listeners){var i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var n,i=new t(function(a){n=a});return{token:i,cancel:n}},hc=t,hc}var dc,Xh;function w_(){return Xh||(Xh=1,dc=function(t){return function(n){return t.apply(null,n)}}),dc}var pc,Jh;function S_(){if(Jh)return pc;Jh=1;var e=ft();return pc=function(r){return e.isObject(r)&&r.isAxiosError===!0},pc}var Zh;function T_(){if(Zh)return da.exports;Zh=1;var e=ft(),t=Eg(),r=__(),n=xg(),i=Af();function o(s){var c=new r(s),l=t(r.prototype.request,c);return e.extend(l,r.prototype,c),e.extend(l,c),l.create=function(d){return o(n(s,d))},l}var a=o(i);return a.Axios=r,a.CanceledError=yu(),a.CancelToken=b_(),a.isCancel=Tg(),a.VERSION=Og().version,a.toFormData=wg(),a.AxiosError=co(),a.Cancel=a.CanceledError,a.all=function(c){return Promise.all(c)},a.spread=w_(),a.isAxiosError=S_(),da.exports=a,da.exports.default=a,da.exports}var mc,ed;function Ag(){return ed||(ed=1,mc=T_()),mc}var x_=Function.prototype.toString,gc=Object.create,O_=Object.defineProperty,A_=Object.getOwnPropertyDescriptor,td=Object.getOwnPropertyNames,Cf=Object.getOwnPropertySymbols,C_=Object.getPrototypeOf,Cg=Object.prototype,R_=Cg.hasOwnProperty,P_=Cg.propertyIsEnumerable,Rg=typeof Cf=="function",N_=typeof WeakMap=="function",I_=function(){if(N_)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(r){return!!~this._keys.indexOf(r)},t.prototype.get=function(r){return this._values[this._keys.indexOf(r)]},t.prototype.set=function(r,n){this._keys.push(r),this._values.push(n)},t}();return function(){return new e}}(),Pg=function(e,t){var r=e.__proto__||C_(e);if(!r)return gc(null);var n=r.constructor;if(n===t.Object)return r===t.Object.prototype?{}:gc(r);if(~x_.call(n).indexOf("[native code]"))try{return new n}catch{}return gc(r)},L_=function(e,t,r,n){var i=Pg(e,t);n.set(e,i);for(var o in e)R_.call(e,o)&&(i[o]=r(e[o],n));if(Rg)for(var a=Cf(e),s=0,c=a.length,l=void 0;s<c;++s)l=a[s],P_.call(e,l)&&(i[l]=r(e[l],n));return i},rd=function(e,t,r,n){var i=Pg(e,t);n.set(e,i);for(var o=Rg?td(e).concat(Cf(e)):td(e),a=0,s=o.length,c=void 0,l=void 0;a<s;++a)if(c=o[a],c!=="callee"&&c!=="caller")if(l=A_(e,c),l){!l.get&&!l.set&&(l.value=r(e[c],n));try{O_(i,c,l)}catch{i[c]=l.value}}else i[c]=r(e[c],n);return i},k_=function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},M_=Array.isArray,F_=Object.getPrototypeOf,D_=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function pn(e,t){var r=!!(t&&t.isStrict),n=t&&t.realm||D_,i=r?rd:L_,o=function(a,s){if(!a||typeof a!="object")return a;if(s.has(a))return s.get(a);var c=a.__proto__||F_(a),l=c&&c.constructor;if(!l||l===n.Object)return i(a,n,o,s);var u;if(M_(a)){if(r)return rd(a,n,o,s);u=new l,s.set(a,u);for(var d=0,h=a.length;d<h;++d)u[d]=o(a[d],s);return u}if(a instanceof n.Date)return new l(a.getTime());if(a instanceof n.RegExp)return u=new l(a.source,a.flags||k_(a)),u.lastIndex=a.lastIndex,u;if(n.Map&&a instanceof n.Map)return u=new l,s.set(a,u),a.forEach(function(f,p){u.set(p,o(f,s))}),u;if(n.Set&&a instanceof n.Set)return u=new l,s.set(a,u),a.forEach(function(f){u.add(o(f,s))}),u;if(n.Blob&&a instanceof n.Blob)return a.slice(0,a.size,a.type);if(n.Buffer&&n.Buffer.isBuffer(a))return u=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(a.length):new l(a.length),s.set(a,u),a.copy(u),u;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(a))return u=new l(a.buffer.slice(0)),s.set(a,u),u;if(a instanceof n.ArrayBuffer)return u=a.slice(0),s.set(a,u),u}return typeof a.then=="function"||a instanceof Error||n.WeakMap&&a instanceof n.WeakMap||n.WeakSet&&a instanceof n.WeakSet?a:i(a,n,o,s)};return o(e,I_())}pn.default=pn;pn.strict=function(t,r){return pn(t,{isStrict:!0,realm:r?r.realm:void 0})};var B_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0},nd=typeof Symbol<"u"&&Symbol,U_=B_,$_=function(){return typeof nd!="function"||typeof Symbol!="function"||typeof nd("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:U_()},id={foo:{}},j_=Object,H_=function(){return{__proto__:id}.foo===id.foo&&!({__proto__:null}instanceof j_)},q_="Function.prototype.bind called on incompatible ",G_=Object.prototype.toString,V_=Math.max,W_="[object Function]",od=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},z_=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},Q_=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},Y_=function(t){var r=this;if(typeof r!="function"||G_.apply(r)!==W_)throw new TypeError(q_+r);for(var n=z_(arguments,1),i,o=function(){if(this instanceof i){var u=r.apply(this,od(n,arguments));return Object(u)===u?u:this}return r.apply(t,od(n,arguments))},a=V_(0,r.length-n.length),s=[],c=0;c<a;c++)s[c]="$"+c;if(i=Function("binder","return function ("+Q_(s,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i},K_=Y_,Rf=Function.prototype.bind||K_,X_=Function.prototype.call,J_=Object.prototype.hasOwnProperty,Z_=Rf,eb=Z_.call(X_,J_),we,ro=SyntaxError,Ng=Function,Li=TypeError,yc=function(e){try{return Ng('"use strict"; return ('+e+").constructor;")()}catch{}},ei=Object.getOwnPropertyDescriptor;if(ei)try{ei({},"")}catch{ei=null}var vc=function(){throw new Li},tb=ei?function(){try{return arguments.callee,vc}catch{try{return ei(arguments,"callee").get}catch{return vc}}}():vc,Ti=$_(),rb=H_(),ot=Object.getPrototypeOf||(rb?function(e){return e.__proto__}:null),Ri={},nb=typeof Uint8Array>"u"||!ot?we:ot(Uint8Array),ti={"%AggregateError%":typeof AggregateError>"u"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?we:ArrayBuffer,"%ArrayIteratorPrototype%":Ti&&ot?ot([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":Ri,"%AsyncGenerator%":Ri,"%AsyncGeneratorFunction%":Ri,"%AsyncIteratorPrototype%":Ri,"%Atomics%":typeof Atomics>"u"?we:Atomics,"%BigInt%":typeof BigInt>"u"?we:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?we:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?we:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?we:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?we:Float32Array,"%Float64Array%":typeof Float64Array>"u"?we:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?we:FinalizationRegistry,"%Function%":Ng,"%GeneratorFunction%":Ri,"%Int8Array%":typeof Int8Array>"u"?we:Int8Array,"%Int16Array%":typeof Int16Array>"u"?we:Int16Array,"%Int32Array%":typeof Int32Array>"u"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ti&&ot?ot(ot([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map>"u"?we:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ti||!ot?we:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?we:Promise,"%Proxy%":typeof Proxy>"u"?we:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?we:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?we:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ti||!ot?we:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ti&&ot?ot(""[Symbol.iterator]()):we,"%Symbol%":Ti?Symbol:we,"%SyntaxError%":ro,"%ThrowTypeError%":tb,"%TypedArray%":nb,"%TypeError%":Li,"%Uint8Array%":typeof Uint8Array>"u"?we:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?we:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?we:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?we:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?we:WeakMap,"%WeakRef%":typeof WeakRef>"u"?we:WeakRef,"%WeakSet%":typeof WeakSet>"u"?we:WeakSet};if(ot)try{null.error}catch(e){var ib=ot(ot(e));ti["%Error.prototype%"]=ib}var ob=function e(t){var r;if(t==="%AsyncFunction%")r=yc("async function () {}");else if(t==="%GeneratorFunction%")r=yc("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=yc("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ot&&(r=ot(i.prototype))}return ti[t]=r,r},sd={"%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"]},Zs=Rf,za=eb,sb=Zs.call(Function.call,Array.prototype.concat),ab=Zs.call(Function.apply,Array.prototype.splice),ad=Zs.call(Function.call,String.prototype.replace),Qa=Zs.call(Function.call,String.prototype.slice),ub=Zs.call(Function.call,RegExp.prototype.exec),cb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lb=/\\(\\)?/g,fb=function(t){var r=Qa(t,0,1),n=Qa(t,-1);if(r==="%"&&n!=="%")throw new ro("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ro("invalid intrinsic syntax, expected opening `%`");var i=[];return ad(t,cb,function(o,a,s,c){i[i.length]=s?ad(c,lb,"$1"):a||o}),i},hb=function(t,r){var n=t,i;if(za(sd,n)&&(i=sd[n],n="%"+i[0]+"%"),za(ti,n)){var o=ti[n];if(o===Ri&&(o=ob(n)),typeof o>"u"&&!r)throw new Li("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new ro("intrinsic "+t+" does not exist!")},si=function(t,r){if(typeof t!="string"||t.length===0)throw new Li("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Li('"allowMissing" argument must be a boolean');if(ub(/^%?[^%]*%?$/,t)===null)throw new ro("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fb(t),i=n.length>0?n[0]:"",o=hb("%"+i+"%",r),a=o.name,s=o.value,c=!1,l=o.alias;l&&(i=l[0],ab(n,sb([0,1],l)));for(var u=1,d=!0;u<n.length;u+=1){var h=n[u],f=Qa(h,0,1),p=Qa(h,-1);if((f==='"'||f==="'"||f==="`"||p==='"'||p==="'"||p==="`")&&f!==p)throw new ro("property names with quotes must have matching quotes");if((h==="constructor"||!d)&&(c=!0),i+="."+h,a="%"+i+"%",za(ti,a))s=ti[a];else if(s!=null){if(!(h in s)){if(!r)throw new Li("base intrinsic for "+t+" exists, but the property is not available.");return}if(ei&&u+1>=n.length){var m=ei(s,h);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[h]}else d=za(s,h),s=s[h];d&&!c&&(ti[a]=s)}}return s},Ig={exports:{}},db=si,Pl=db("%Object.defineProperty%",!0),Nl=function(){if(Pl)try{return Pl({},"a",{value:1}),!0}catch{return!1}return!1};Nl.hasArrayLengthDefineBug=function(){if(!Nl())return null;try{return Pl([],"length",{value:1}).length!==1}catch{return!0}};var Lg=Nl,pb=si,ja=pb("%Object.getOwnPropertyDescriptor%",!0);if(ja)try{ja([],"length")}catch{ja=null}var kg=ja,mb=Lg(),Pf=si,ws=mb&&Pf("%Object.defineProperty%",!0);if(ws)try{ws({},"a",{value:1})}catch{ws=!1}var gb=Pf("%SyntaxError%"),xi=Pf("%TypeError%"),ud=kg,yb=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new xi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new xi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new xi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new xi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new xi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new xi("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,c=!!ud&&ud(t,r);if(ws)ws(t,r,{configurable:a===null&&c?c.configurable:!a,enumerable:i===null&&c?c.enumerable:!i,value:n,writable:o===null&&c?c.writable:!o});else if(s||!i&&!o&&!a)t[r]=n;else throw new gb("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mg=si,cd=yb,vb=Lg(),ld=kg,fd=Mg("%TypeError%"),Eb=Mg("%Math.floor%"),_b=function(t,r){if(typeof t!="function")throw new fd("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Eb(r)!==r)throw new fd("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&ld){var a=ld(t,"length");a&&!a.configurable&&(i=!1),a&&!a.writable&&(o=!1)}return(i||o||!n)&&(vb?cd(t,"length",r,!0,!0):cd(t,"length",r)),t};(function(e){var t=Rf,r=si,n=_b,i=r("%TypeError%"),o=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,o),c=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}e.exports=function(h){if(typeof h!="function")throw new i("a function is required");var f=s(t,a,arguments);return n(f,1+l(0,h.length-(arguments.length-1)),!0)};var u=function(){return s(t,o,arguments)};c?c(e.exports,"apply",{value:u}):e.exports.apply=u})(Ig);var bb=Ig.exports,Fg=si,Dg=bb,wb=Dg(Fg("String.prototype.indexOf")),Sb=function(t,r){var n=Fg(t,!!r);return typeof n=="function"&&wb(t,".prototype.")>-1?Dg(n):n};const Tb={},xb=Object.freeze(Object.defineProperty({__proto__:null,default:Tb},Symbol.toStringTag,{value:"Module"})),Ob=Js(xb);var Nf=typeof Map=="function"&&Map.prototype,Ec=Object.getOwnPropertyDescriptor&&Nf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ya=Nf&&Ec&&typeof Ec.get=="function"?Ec.get:null,hd=Nf&&Map.prototype.forEach,If=typeof Set=="function"&&Set.prototype,_c=Object.getOwnPropertyDescriptor&&If?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ka=If&&_c&&typeof _c.get=="function"?_c.get:null,dd=If&&Set.prototype.forEach,Ab=typeof WeakMap=="function"&&WeakMap.prototype,Ss=Ab?WeakMap.prototype.has:null,Cb=typeof WeakSet=="function"&&WeakSet.prototype,Ts=Cb?WeakSet.prototype.has:null,Rb=typeof WeakRef=="function"&&WeakRef.prototype,pd=Rb?WeakRef.prototype.deref:null,Pb=Boolean.prototype.valueOf,Nb=Object.prototype.toString,Ib=Function.prototype.toString,Lb=String.prototype.match,Lf=String.prototype.slice,cn=String.prototype.replace,kb=String.prototype.toUpperCase,md=String.prototype.toLowerCase,Bg=RegExp.prototype.test,gd=Array.prototype.concat,pr=Array.prototype.join,Mb=Array.prototype.slice,yd=Math.floor,Il=typeof BigInt=="function"?BigInt.prototype.valueOf:null,bc=Object.getOwnPropertySymbols,Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,no=typeof Symbol=="function"&&typeof Symbol.iterator=="object",gt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===no||"symbol")?Symbol.toStringTag:null,Ug=Object.prototype.propertyIsEnumerable,vd=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ed(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Bg.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-yd(-e):yd(e);if(n!==e){var i=String(n),o=Lf.call(t,i.length+1);return cn.call(i,r,"$&_")+"."+cn.call(cn.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return cn.call(t,r,"$&_")}var kl=Ob,_d=kl.custom,bd=jg(_d)?_d:null,Fb=function e(t,r,n,i){var o=r||{};if(Zr(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Zr(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Zr(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Zr(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Zr(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return qg(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?Ed(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?Ed(t,l):l}var u=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return Ml(t)?"[Array]":"[Object]";var d=ew(o,n);if(typeof i>"u")i=[];else if(Hg(i,t)>=0)return"[Circular]";function h(Y,ie,K){if(ie&&(i=Mb.call(i),i.push(ie)),K){var k={depth:o.depth};return Zr(o,"quoteStyle")&&(k.quoteStyle=o.quoteStyle),e(Y,k,n+1,i)}return e(Y,o,n+1,i)}if(typeof t=="function"&&!wd(t)){var f=Vb(t),p=pa(t,h);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(p.length>0?" { "+pr.call(p,", ")+" }":"")}if(jg(t)){var m=no?cn.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ll.call(t);return typeof t=="object"&&!no?zo(m):m}if(Xb(t)){for(var _="<"+md.call(String(t.nodeName)),S=t.attributes||[],v=0;v<S.length;v++)_+=" "+S[v].name+"="+$g(Db(S[v].value),"double",o);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+md.call(String(t.nodeName))+">",_}if(Ml(t)){if(t.length===0)return"[]";var b=pa(t,h);return d&&!Zb(b)?"["+Fl(b,d)+"]":"[ "+pr.call(b,", ")+" ]"}if(Ub(t)){var T=pa(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!Ug.call(t,"cause")?"{ ["+String(t)+"] "+pr.call(gd.call("[cause]: "+h(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+pr.call(T,", ")+" }"}if(typeof t=="object"&&a){if(bd&&typeof t[bd]=="function"&&kl)return kl(t,{depth:u-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Wb(t)){var w=[];return hd&&hd.call(t,function(Y,ie){w.push(h(ie,t,!0)+" => "+h(Y,t))}),Sd("Map",Ya.call(t),w,d)}if(Yb(t)){var N=[];return dd&&dd.call(t,function(Y){N.push(h(Y,t))}),Sd("Set",Ka.call(t),N,d)}if(zb(t))return wc("WeakMap");if(Kb(t))return wc("WeakSet");if(Qb(t))return wc("WeakRef");if(jb(t))return zo(h(Number(t)));if(qb(t))return zo(h(Il.call(t)));if(Hb(t))return zo(Pb.call(t));if($b(t))return zo(h(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===fe)return"{ [object globalThis] }";if(!Bb(t)&&!wd(t)){var R=pa(t,h),L=vd?vd(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",G=!L&&gt&&Object(t)===t&&gt in t?Lf.call(mn(t),8,-1):$?"Object":"",q=L||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=q+(G||$?"["+pr.call(gd.call([],G||[],$||[]),": ")+"] ":"");return R.length===0?H+"{}":d?H+"{"+Fl(R,d)+"}":H+"{ "+pr.call(R,", ")+" }"}return String(t)};function $g(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Db(e){return cn.call(String(e),/"/g,"&quot;")}function Ml(e){return mn(e)==="[object Array]"&&(!gt||!(typeof e=="object"&&gt in e))}function Bb(e){return mn(e)==="[object Date]"&&(!gt||!(typeof e=="object"&&gt in e))}function wd(e){return mn(e)==="[object RegExp]"&&(!gt||!(typeof e=="object"&&gt in e))}function Ub(e){return mn(e)==="[object Error]"&&(!gt||!(typeof e=="object"&&gt in e))}function $b(e){return mn(e)==="[object String]"&&(!gt||!(typeof e=="object"&&gt in e))}function jb(e){return mn(e)==="[object Number]"&&(!gt||!(typeof e=="object"&&gt in e))}function Hb(e){return mn(e)==="[object Boolean]"&&(!gt||!(typeof e=="object"&&gt in e))}function jg(e){if(no)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Ll)return!1;try{return Ll.call(e),!0}catch{}return!1}function qb(e){if(!e||typeof e!="object"||!Il)return!1;try{return Il.call(e),!0}catch{}return!1}var Gb=Object.prototype.hasOwnProperty||function(e){return e in this};function Zr(e,t){return Gb.call(e,t)}function mn(e){return Nb.call(e)}function Vb(e){if(e.name)return e.name;var t=Lb.call(Ib.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Hg(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Wb(e){if(!Ya||!e||typeof e!="object")return!1;try{Ya.call(e);try{Ka.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function zb(e){if(!Ss||!e||typeof e!="object")return!1;try{Ss.call(e,Ss);try{Ts.call(e,Ts)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Qb(e){if(!pd||!e||typeof e!="object")return!1;try{return pd.call(e),!0}catch{}return!1}function Yb(e){if(!Ka||!e||typeof e!="object")return!1;try{Ka.call(e);try{Ya.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Kb(e){if(!Ts||!e||typeof e!="object")return!1;try{Ts.call(e,Ts);try{Ss.call(e,Ss)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Xb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function qg(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return qg(Lf.call(e,0,t.maxStringLength),t)+n}var i=cn.call(cn.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Jb);return $g(i,"single",t)}function Jb(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+kb.call(t.toString(16))}function zo(e){return"Object("+e+")"}function wc(e){return e+" { ? }"}function Sd(e,t,r,n){var i=n?Fl(r,n):pr.call(r,", ");return e+" ("+t+") {"+i+"}"}function Zb(e){for(var t=0;t<e.length;t++)if(Hg(e[t],`
26
+ `)>=0)return!1;return!0}function ew(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=pr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:pr.call(Array(t+1),r)}}function Fl(e,t){if(e.length===0)return"";var r=`
27
+ `+t.prev+t.base;return r+pr.call(e,","+r)+`
28
+ `+t.prev}function pa(e,t){var r=Ml(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=Zr(e,i)?t(e[i],e):""}var o=typeof bc=="function"?bc(e):[],a;if(no){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var c in e)Zr(e,c)&&(r&&String(Number(c))===c&&c<e.length||no&&a["$"+c]instanceof Symbol||(Bg.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if(typeof bc=="function")for(var l=0;l<o.length;l++)Ug.call(e,o[l])&&n.push("["+t(o[l])+"]: "+t(e[o[l]],e));return n}var kf=si,lo=Sb,tw=Fb,rw=kf("%TypeError%"),ma=kf("%WeakMap%",!0),ga=kf("%Map%",!0),nw=lo("WeakMap.prototype.get",!0),iw=lo("WeakMap.prototype.set",!0),ow=lo("WeakMap.prototype.has",!0),sw=lo("Map.prototype.get",!0),aw=lo("Map.prototype.set",!0),uw=lo("Map.prototype.has",!0),Mf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},cw=function(e,t){var r=Mf(e,t);return r&&r.value},lw=function(e,t,r){var n=Mf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},fw=function(e,t){return!!Mf(e,t)},hw=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new rw("Side channel does not contain "+tw(o))},get:function(o){if(ma&&o&&(typeof o=="object"||typeof o=="function")){if(t)return nw(t,o)}else if(ga){if(r)return sw(r,o)}else if(n)return cw(n,o)},has:function(o){if(ma&&o&&(typeof o=="object"||typeof o=="function")){if(t)return ow(t,o)}else if(ga){if(r)return uw(r,o)}else if(n)return fw(n,o);return!1},set:function(o,a){ma&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new ma),iw(t,o,a)):ga?(r||(r=new ga),aw(r,o,a)):(n||(n={key:{},next:null}),lw(n,o,a))}};return i},dw=String.prototype.replace,pw=/%20/g,Sc={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ff={default:Sc.RFC3986,formatters:{RFC1738:function(e){return dw.call(e,pw,"+")},RFC3986:function(e){return String(e)}},RFC1738:Sc.RFC1738,RFC3986:Sc.RFC3986},mw=Ff,Tc=Object.prototype.hasOwnProperty,Hn=Array.isArray,sr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),gw=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Hn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},Gg=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},yw=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Hn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Tc.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Hn(t)&&!Hn(r)&&(i=Gg(t,n)),Hn(t)&&Hn(r)?(r.forEach(function(o,a){if(Tc.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,n):t.push(o)}else t[a]=o}),t):Object.keys(r).reduce(function(o,a){var s=r[a];return Tc.call(o,a)?o[a]=e(o[a],s,n):o[a]=s,o},i)},vw=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},Ew=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},_w=function(t,r,n,i,o){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var s="",c=0;c<a.length;++c){var l=a.charCodeAt(c);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===mw.RFC1738&&(l===40||l===41)){s+=a.charAt(c);continue}if(l<128){s=s+sr[l];continue}if(l<2048){s=s+(sr[192|l>>6]+sr[128|l&63]);continue}if(l<55296||l>=57344){s=s+(sr[224|l>>12]+sr[128|l>>6&63]+sr[128|l&63]);continue}c+=1,l=65536+((l&1023)<<10|a.charCodeAt(c)&1023),s+=sr[240|l>>18]+sr[128|l>>12&63]+sr[128|l>>6&63]+sr[128|l&63]}return s},bw=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:a,prop:l}),n.push(u))}return gw(r),t},ww=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Sw=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Tw=function(t,r){return[].concat(t,r)},xw=function(t,r){if(Hn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},Vg={arrayToObject:Gg,assign:vw,combine:Tw,compact:bw,decode:Ew,encode:_w,isBuffer:Sw,isRegExp:ww,maybeMap:xw,merge:yw},Wg=hw,Ha=Vg,xs=Ff,Ow=Object.prototype.hasOwnProperty,Td={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Mr=Array.isArray,Aw=Array.prototype.push,zg=function(e,t){Aw.apply(e,Mr(t)?t:[t])},Cw=Date.prototype.toISOString,xd=xs.default,dt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ha.encode,encodeValuesOnly:!1,format:xd,formatter:xs.formatters[xd],indices:!1,serializeDate:function(t){return Cw.call(t)},skipNulls:!1,strictNullHandling:!1},Rw=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},xc={},Pw=function e(t,r,n,i,o,a,s,c,l,u,d,h,f,p,m,_){for(var S=t,v=_,b=0,T=!1;(v=v.get(xc))!==void 0&&!T;){var w=v.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");T=!0}typeof v.get(xc)>"u"&&(b=0)}if(typeof c=="function"?S=c(r,S):S instanceof Date?S=d(S):n==="comma"&&Mr(S)&&(S=Ha.maybeMap(S,function(k){return k instanceof Date?d(k):k})),S===null){if(o)return s&&!p?s(r,dt.encoder,m,"key",h):r;S=""}if(Rw(S)||Ha.isBuffer(S)){if(s){var N=p?r:s(r,dt.encoder,m,"key",h);return[f(N)+"="+f(s(S,dt.encoder,m,"value",h))]}return[f(r)+"="+f(String(S))]}var R=[];if(typeof S>"u")return R;var L;if(n==="comma"&&Mr(S))p&&s&&(S=Ha.maybeMap(S,s)),L=[{value:S.length>0?S.join(",")||null:void 0}];else if(Mr(c))L=c;else{var $=Object.keys(S);L=l?$.sort(l):$}for(var G=i&&Mr(S)&&S.length===1?r+"[]":r,q=0;q<L.length;++q){var H=L[q],Y=typeof H=="object"&&typeof H.value<"u"?H.value:S[H];if(!(a&&Y===null)){var ie=Mr(S)?typeof n=="function"?n(G,H):G:G+(u?"."+H:"["+H+"]");_.set(t,b);var K=Wg();K.set(xc,_),zg(R,e(Y,ie,n,i,o,a,n==="comma"&&p&&Mr(S)?null:s,c,l,u,d,h,f,p,m,K))}}return R},Nw=function(t){if(!t)return dt;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||dt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=xs.default;if(typeof t.format<"u"){if(!Ow.call(xs.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=xs.formatters[n],o=dt.filter;return(typeof t.filter=="function"||Mr(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:dt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?dt.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:dt.charsetSentinel,delimiter:typeof t.delimiter>"u"?dt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:dt.encode,encoder:typeof t.encoder=="function"?t.encoder:dt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:dt.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:dt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:dt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:dt.strictNullHandling}},Iw=function(e,t){var r=e,n=Nw(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Mr(n.filter)&&(o=n.filter,i=o);var a=[];if(typeof r!="object"||r===null)return"";var s;t&&t.arrayFormat in Td?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var c=Td[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=c==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=Wg(),d=0;d<i.length;++d){var h=i[d];n.skipNulls&&r[h]===null||zg(a,Pw(r[h],h,c,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var f=a.join(n.delimiter),p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""},io=Vg,Dl=Object.prototype.hasOwnProperty,Lw=Array.isArray,nt={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:io.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},kw=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Qg=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Mw="utf8=%26%2310003%3B",Fw="utf8=%E2%9C%93",Dw=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,o),s=-1,c,l=r.charset;if(r.charsetSentinel)for(c=0;c<a.length;++c)a[c].indexOf("utf8=")===0&&(a[c]===Fw?l="utf-8":a[c]===Mw&&(l="iso-8859-1"),s=c,c=a.length);for(c=0;c<a.length;++c)if(c!==s){var u=a[c],d=u.indexOf("]="),h=d===-1?u.indexOf("="):d+1,f,p;h===-1?(f=r.decoder(u,nt.decoder,l,"key"),p=r.strictNullHandling?null:""):(f=r.decoder(u.slice(0,h),nt.decoder,l,"key"),p=io.maybeMap(Qg(u.slice(h+1),r),function(m){return r.decoder(m,nt.decoder,l,"value")})),p&&r.interpretNumericEntities&&l==="iso-8859-1"&&(p=kw(p)),u.indexOf("[]=")>-1&&(p=Lw(p)?[p]:p),Dl.call(n,f)?n[f]=io.combine(n[f],p):n[f]=p}return n},Bw=function(e,t,r,n){for(var i=n?t:Qg(t,r),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=parseInt(c,10);!r.parseArrays&&c===""?a={0:i}:!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=i):c!=="__proto__"&&(a[c]=i)}i=a}return i},Uw=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&a.exec(o),l=c?o.slice(0,c.index):o,u=[];if(l){if(!n.plainObjects&&Dl.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&(c=s.exec(o))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&Dl.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),Bw(u,r,n,i)}},$w=function(t){if(!t)return nt;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?nt.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?nt.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:nt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:nt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:nt.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:nt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:nt.comma,decoder:typeof t.decoder=="function"?t.decoder:nt.decoder,delimiter:typeof t.delimiter=="string"||io.isRegExp(t.delimiter)?t.delimiter:nt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:nt.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:nt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:nt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:nt.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:nt.strictNullHandling}},jw=function(e,t){var r=$w(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Dw(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],c=Uw(s,n[s],r,typeof e=="string");i=io.merge(i,c,r)}return r.allowSparse===!0?i:io.compact(i)},Hw=Iw,qw=jw,Gw=Ff,Vw={formats:Gw,parse:qw,stringify:Hw};const Ww=Er(Vw);var zw="[object String]",Qw=Object.prototype,Yw=Qw.toString,Kw=Array.isArray;function Xw(e){return!!e&&typeof e=="object"}function Jw(e){return typeof e=="string"||!Kw(e)&&Xw(e)&&Yw.call(e)==zw}var Zw=Jw;const Od=Er(Zw);var Df={exports:{}};class Yg extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const eS=({limit:e,interval:t,strict:r})=>{if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const n=new Map;let i=0,o=0;function a(){const u=Date.now();return u-i>t?(o=1,i=u,0):(o<e?o++:(i+=t,o=1),i-u)}const s=[];function c(){const u=Date.now();if(s.length<e)return s.push(u),0;const d=s.shift()+t;return u>=d?(s.push(u),0):(s.push(d),d-u)}const l=r?c:a;return u=>{const d=function(...h){if(!d.isEnabled)return(async()=>u.apply(this,h))();let f;return new Promise((p,m)=>{f=setTimeout(()=>{p(u.apply(this,h)),n.delete(f)},l()),n.set(f,m)})};return d.abort=()=>{for(const h of n.keys())clearTimeout(h),n.get(h)(new Yg);n.clear(),s.splice(0,s.length)},d.isEnabled=!0,d}};Df.exports=eS;Df.exports.AbortError=Yg;var tS=Df.exports;const rS=Er(tS);var nS="[object Object]";function iS(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function oS(e,t){return function(r){return e(t(r))}}var sS=Function.prototype,Kg=Object.prototype,Xg=sS.toString,aS=Kg.hasOwnProperty,uS=Xg.call(Object),cS=Kg.toString,lS=oS(Object.getPrototypeOf,Object);function fS(e){return!!e&&typeof e=="object"}function hS(e){if(!fS(e)||cS.call(e)!=nS||iS(e))return!1;var t=lS(e);if(t===null)return!0;var r=aS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Xg.call(r)==uS}var dS=hS;const ya=Er(dS);function pS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function Ad(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ad(Object(r),!0).forEach(function(n){mS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ad(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bl(e){"@babel/helpers - typeof";return Bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bl(e)}function Ul(){Ul=function(i,o){return new r(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function r(i,o,a){var s=new RegExp(i,o);return t.set(s,a||t.get(i)),Xa(s,r.prototype)}function n(i,o){var a=t.get(o);return Object.keys(a).reduce(function(s,c){var l=a[c];if(typeof l=="number")s[c]=i[l];else{for(var u=0;i[l[u]]===void 0&&u+1<l.length;)u++;s[c]=i[l[u]]}return s},Object.create(null))}return gS(r,RegExp),r.prototype.exec=function(i){var o=e.exec.call(this,i);if(o){o.groups=n(o,this);var a=o.indices;a&&(a.groups=n(a,this))}return o},r.prototype[Symbol.replace]=function(i,o){if(typeof o=="string"){var a=t.get(this);return e[Symbol.replace].call(this,i,o.replace(/\$<([^>]+)>/g,function(c,l){var u=a[l];return"$"+(Array.isArray(u)?u.join("$"):u)}))}if(typeof o=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var c=arguments;return typeof c[c.length-1]!="object"&&(c=[].slice.call(c)).push(n(c,s)),o.apply(this,c)})}return e[Symbol.replace].call(this,i,o)},Ul.apply(this,arguments)}function mS(e,t,r){return t=wS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xa(e,t)}function Xa(e,t){return Xa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xa(e,t)}function yS(e,t){return vS(e)||pS(e,t)||Jg(e,t)||ES()}function vS(e){if(Array.isArray(e))return e}function Jg(e,t){if(e){if(typeof e=="string")return Cd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cd(e,t)}}function Cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ES(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _S(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Jg(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function bS(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wS(e){var t=bS(e,"string");return typeof t=="symbol"?t:String(t)}function SS(){return typeof process<"u"&&!process.browser}function TS(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function xS(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function OS(){return window}function $l(){}var jl=Ul(/(\d+)(%)/,{value:1});function Oc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,r=t;if(jl.test(e)){var n,i=(n=e.match(jl))===null||n===void 0?void 0:n.groups;if(i&&i.value){var o=parseInt(i.value)/100;r=Math.round(t*o)}}return Math.min(30,Math.max(1,r))}function Rd(e,t){return t("info","Throttle request to ".concat(e,"/s")),rS({limit:e,interval:1e3,strict:!1})}var AS=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=e.defaults.logHandler,n=r===void 0?$l:r,i=Od(t)?Oc(t):Oc("auto",t),o=Rd(i,n),a=!1,s=e.interceptors.request.use(function(l){return o(function(){return l})()},function(l){return Promise.reject(l)}),c=e.interceptors.response.use(function(l){if(!a&&Od(t)&&(t==="auto"||jl.test(t))&&l.headers&&l.headers["x-contentful-ratelimit-second-limit"]){var u=parseInt(l.headers["x-contentful-ratelimit-second-limit"]),d=Oc(t,u);d!==i&&(s&&e.interceptors.request.eject(s),i=d,o=Rd(d,n),s=e.interceptors.request.use(function(h){return o(function(){return h})()},function(h){return Promise.reject(h)})),a=!0}return l},function(l){return Promise.reject(l)});return function(){e.interceptors.request.eject(s),e.interceptors.response.eject(c)}},CS=function(t){return new Promise(function(r){setTimeout(r,t)})},RS=function(t){return Math.pow(Math.SQRT2,t)};function PS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,r=e.defaults,n=r.responseLogger,i=n===void 0?$l:n,o=r.requestLogger,a=o===void 0?$l:o;e.interceptors.request.use(function(s){return a(s),s},function(s){return a(s),Promise.reject(s)}),e.interceptors.response.use(function(s){return i(s),s},function(s){var c=s.response,l=s.config;if(i(s),!l||!e.defaults.retryOnError)return Promise.reject(s);var u=l.attempts||1;if(u>t)return s.attempts=l.attempts,Promise.reject(s);var d=null,h=RS(u);return c?c.status>=500&&c.status<600?d="Server ".concat(c.status):c.status===429&&(d="Rate limit",c.headers&&s.response.headers["x-contentful-ratelimit-reset"]&&(h=c.headers["x-contentful-ratelimit-reset"])):d="Connection",d?(h=Math.floor(h*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(d," error occurred. Waiting for ").concat(h," ms before retrying...")),l.attempts=u+1,delete l.httpAgent,delete l.httpsAgent,CS(h).then(function(){return e(l)})):Promise.reject(s)})}function NS(e,t){e.interceptors.request.use(function(r){return t().then(function(n){return r.headers=Pi(Pi({},r.headers),{},{Authorization:"Bearer ".concat(n)}),r})})}var IS=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Zg(e,t){var r={insecure:!1,retryOnError:!0,logHandler:function(m,_){if(m==="error"&&_){var S=[_.name,_.message].filter(function(v){return v}).join(" - ");console.error("[error] ".concat(S)),console.error(_);return}console.log("[".concat(m,"] ").concat(_))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},n=Pi(Pi({},r),t);if(!n.accessToken){var i=new TypeError("Expected parameter accessToken");throw n.logHandler("error",i),i}var o=n.insecure?"http":"https",a=n.space?"".concat(n.space,"/"):"",s=n.defaultHostname,c=n.insecure?80:443;if(n.host&&IS.test(n.host)){var l=n.host.split(":");if(l.length===2){var u=yS(l,2);s=u[0],c=u[1]}else s=l[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var d=t.baseURL||"".concat(o,"://").concat(s,":").concat(c).concat(n.basePath,"/spaces/").concat(a);!n.headers.Authorization&&typeof n.accessToken!="function"&&(n.headers.Authorization="Bearer "+n.accessToken);var h={baseURL:d,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:Ww.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},f=e.create(h);return f.httpClientParams=t,f.cloneWithNewParams=function(p){return Zg(e,Pi(Pi({},pn(t)),p))},n.onBeforeRequest&&f.interceptors.request.use(n.onBeforeRequest),typeof n.accessToken=="function"&&NS(f,n.accessToken),n.throttle&&AS(f,n.throttle),PS(f,n.retryLimit),n.onError&&f.interceptors.response.use(function(p){return p},n.onError),f}function LS(e){var t=e.query,r={};return delete t.resolveLinks,r.params=pn(t),r}function kS(e,t){if(!(t in e)){var r=new Error;throw r.name="PropertyMissing",r.message="Required property ".concat(t,` missing from:
31
+
32
+ `).concat(JSON.stringify(e),`
33
+
34
+ `),r}return!0}function ey(e){var t=Object.getOwnPropertyNames(e),r=_S(t),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e[i];o&&Bl(o)==="object"&&ey(o)}}catch(a){r.e(a)}finally{r.f()}return Object.freeze(e)}function MS(e){return ey(e.sys||{}),e}function Pd(){var e=OS();if(!e)return null;var t=e.navigator.userAgent,r=e.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],i=["Win32","Win64","Windows","WinCE"],o=["iPhone","iPad","iPod"];return n.indexOf(r)!==-1?"macOS":o.indexOf(r)!==-1?"iOS":i.indexOf(r)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function FS(){var e=process.platform||"linux",t=process.version||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?"".concat(r[e]||"Linux","/").concat(t):null}function DS(e,t,r,n){var i=[];t&&i.push("app ".concat(t)),r&&i.push("integration ".concat(r)),n&&i.push("feature "+n),i.push("sdk ".concat(e));var o=null;try{TS()?(o=Pd(),i.push("platform ReactNative")):SS()?(o=FS(),i.push("platform node.js/".concat(xS()))):(o=Pd(),i.push("platform browser"))}catch{o=null}return o&&i.push("os ".concat(o)),"".concat(i.filter(function(a){return a!==""}).join("; "),";")}function BS(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return pn(this)}})}function US(e){var t=e.config,r=e.response,n;if(t&&t.headers&&t.headers.Authorization){var i="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(i)}if(!ya(r)||!ya(t))throw e;var o=r==null?void 0:r.data,a={status:r==null?void 0:r.status,statusText:r==null?void 0:r.statusText,message:"",details:{}};ya(t)&&(a.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&ya(o)&&("requestId"in o&&(a.requestId=o.requestId||"UNKNOWN"),"message"in o&&(a.message=o.message||""),"details"in o&&(a.details=o.details||{}),"sys"in o&&"id"in o.sys&&(n=o.sys.id));var s=new Error;s.name=n&&n!=="Unknown"?n:"".concat(r==null?void 0:r.status," ").concat(r==null?void 0:r.statusText);try{s.message=JSON.stringify(a,null," ")}catch{var c;s.message=(c=a==null?void 0:a.message)!==null&&c!==void 0?c:""}throw s}const $S=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:Zg,createRequestConfig:LS,enforceObjPath:kS,errorHandler:US,freezeSys:MS,getUserAgentHeader:DS,toPlainObject:BS},Symbol.toStringTag,{value:"Module"})),_r=Js($S);var va={},Qo={},Ea={},Nd;function jS(){if(Nd)return Ea;Nd=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.wrapSpace=t;var e=_r;function t(r){return(0,e.freezeSys)((0,e.toPlainObject)(r))}return Ea}var Yo={},Ac={exports:{}},Id;function fo(){return Id||(Id=1,function(e,t){(function(r,n){e.exports=n()})(fe,function(){var r=Function.prototype.toString,n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getPrototypeOf,l=Object.prototype,u=l.hasOwnProperty,d=l.propertyIsEnumerable,h=typeof s=="function",f=typeof WeakMap=="function",p=function(){if(f)return function(){return new WeakMap};var R=function(){function L(){this._keys=[],this._values=[]}return L.prototype.has=function($){return!!~this._keys.indexOf($)},L.prototype.get=function($){return this._values[this._keys.indexOf($)]},L.prototype.set=function($,G){this._keys.push($),this._values.push(G)},L}();return function(){return new R}}(),m=function(R,L){var $=R.__proto__||c(R);if(!$)return n(null);var G=$.constructor;if(G===L.Object)return $===L.Object.prototype?{}:n($);if(~r.call(G).indexOf("[native code]"))try{return new G}catch{}return n($)},_=function(R,L,$,G){var q=m(R,L);G.set(R,q);for(var H in R)u.call(R,H)&&(q[H]=$(R[H],G));if(h)for(var Y=s(R),ie=0,K=Y.length,k=void 0;ie<K;++ie)k=Y[ie],d.call(R,k)&&(q[k]=$(R[k],G));return q},S=function(R,L,$,G){var q=m(R,L);G.set(R,q);for(var H=h?a(R).concat(s(R)):a(R),Y=0,ie=H.length,K=void 0,k=void 0;Y<ie;++Y)if(K=H[Y],K!=="callee"&&K!=="caller")if(k=o(R,K),k){!k.get&&!k.set&&(k.value=$(R[K],G));try{i(q,K,k)}catch{q[K]=k.value}}else q[K]=$(R[K],G);return q},v=function(R){var L="";return R.global&&(L+="g"),R.ignoreCase&&(L+="i"),R.multiline&&(L+="m"),R.unicode&&(L+="u"),R.sticky&&(L+="y"),L},b=Array.isArray,T=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof fe<"u"?fe:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function N(R,L){var $=!!(L&&L.isStrict),G=L&&L.realm||w,q=$?S:_,H=function(Y,ie){if(!Y||typeof Y!="object")return Y;if(ie.has(Y))return ie.get(Y);var K=Y.__proto__||T(Y),k=K&&K.constructor;if(!k||k===G.Object)return q(Y,G,H,ie);var Q;if(b(Y)){if($)return S(Y,G,H,ie);Q=new k,ie.set(Y,Q);for(var ee=0,he=Y.length;ee<he;++ee)Q[ee]=H(Y[ee],ie);return Q}if(Y instanceof G.Date)return new k(Y.getTime());if(Y instanceof G.RegExp)return Q=new k(Y.source,Y.flags||v(Y)),Q.lastIndex=Y.lastIndex,Q;if(G.Map&&Y instanceof G.Map)return Q=new k,ie.set(Y,Q),Y.forEach(function(Z,X){Q.set(X,H(Z,ie))}),Q;if(G.Set&&Y instanceof G.Set)return Q=new k,ie.set(Y,Q),Y.forEach(function(Z){Q.add(H(Z,ie))}),Q;if(G.Blob&&Y instanceof G.Blob)return Y.slice(0,Y.size,Y.type);if(G.Buffer&&G.Buffer.isBuffer(Y))return Q=G.Buffer.allocUnsafe?G.Buffer.allocUnsafe(Y.length):new k(Y.length),ie.set(Y,Q),Y.copy(Q),Q;if(G.ArrayBuffer){if(G.ArrayBuffer.isView(Y))return Q=new k(Y.buffer.slice(0)),ie.set(Y,Q),Q;if(Y instanceof G.ArrayBuffer)return Q=Y.slice(0),ie.set(Y,Q),Q}return typeof Y.then=="function"||Y instanceof Error||G.WeakMap&&Y instanceof G.WeakMap||G.WeakSet&&Y instanceof G.WeakSet?Y:q(Y,G,H,ie)};return H(R,p())}return N.default=N,N.strict=function(L,$){return N(L,{isStrict:!0,realm:$?$.realm:void 0})},N})}(Ac)),Ac.exports}var _a={},ba={exports:{}},Ld;function HS(){return Ld||(Ld=1,function(e,t){t=e.exports=r,t.getSerialize=n;function r(i,o,a,s){return JSON.stringify(i,n(o,s),a)}function n(i,o){var a=[],s=[];return o==null&&(o=function(c,l){return a[0]===l?"[Circular ~]":"[Circular ~."+s.slice(0,a.indexOf(l)).join(".")+"]"}),function(c,l){if(a.length>0){var u=a.indexOf(this);~u?a.splice(u+1):a.push(this),~u?s.splice(u,1/0,c):s.push(c),~a.indexOf(l)&&(l=o.call(this,c,l))}else a.push(l);return i==null?l:i.call(this,c,l)}}}(ba,ba.exports)),ba.exports}var kd;function ty(){if(kd)return _a;kd=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=r;var e=t(HS());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){return Object.defineProperty(n,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,i,o,(a,s)=>({sys:{type:"Link",linkType:"Entry",id:s.sys.id,circular:!0}}))}})}return _a}var qS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GS=function(){function e(t,r){var n=[],i=!0,o=!1,a=void 0;try{for(var s=t[Symbol.iterator](),c;!(i=(c=s.next()).done)&&(n.push(c.value),!(r&&n.length===r));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function Ko(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var As={},VS=function(t){return t&&t.sys&&t.sys.type==="Link"},WS=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},zS=function(t){return t.space&&t.environment?[t.type+"!"+t.id,t.space.sys.id+"!"+t.environment.sys.id+"!"+t.type+"!"+t.id]:[t.type+"!"+t.id]},Md=function(t,r){var n=r.entryId,i=r.linkType,o=r.spaceId,a=r.environmentId;return o&&a?t.get(o+"!"+a+"!"+i+"!"+n):t.get(i+"!"+n)},QS=function(t){var r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(t)){var n=t.match(r),i=GS(n,4);i[0];var o=i[1],a=i[2],s=a===void 0?"master":a,c=i[3];return{spaceId:o,environmentId:s,entryId:c}}},YS=function(t,r){var n=r.sys,i=n.type,o=n.linkType;if(i==="ResourceLink"){var a=r.sys.urn,s=QS(a),c=s.spaceId,l=s.environmentId,u=s.entryId,d=o.split(":")[1];return Md(t,{linkType:d,entryId:u,spaceId:c,environmentId:l})||As}var h=r.sys.id;return Md(t,{linkType:o,entryId:h})||As},KS=function(t){if(Array.isArray(t))return t.filter(function(n){return n!==As});for(var r in t)t[r]===As&&delete t[r];return t},XS=function e(t,r,n,i){if(r(t))return n(t);if(t&&(typeof t>"u"?"undefined":qS(t))==="object"){for(var o in t)t.hasOwnProperty(o)&&(t[o]=e(t[o],r,n,i));i&&(t=KS(t))}return t},JS=function(t,r,n){var i=YS(t,r);return i===As?n?i:r:i},ZS=function(t,r){if(!Array.isArray(r))return t;var n=Object.keys(t).filter(function(i){return r.indexOf(i)!==-1});return n.reduce(function(i,o){return i[o]=t[o],i},{})},eT=function(t,r){if(r=r||{},!t.items)return[];var n=pn(t),i=Object.keys(n.includes||{}).reduce(function(s,c){return[].concat(Ko(s),Ko(t.includes[c]))},[]),o=[].concat(Ko(n.items),Ko(i)).filter(function(s){return!!s.sys}),a=new Map(o.reduce(function(s,c){var l=zS(c.sys).map(function(u){return[u,c]});return s.push.apply(s,Ko(l)),s},[]));return o.forEach(function(s){var c=ZS(s,r.itemEntryPoints);Object.assign(s,XS(c,function(l){return VS(l)||WS(l)},function(l){return JS(a,l,r.removeUnresolved)},r.removeUnresolved))}),n.items};const tT=Object.freeze(Object.defineProperty({__proto__:null,default:eT},Symbol.toStringTag,{value:"Module"})),ry=Js(tT);var Fd;function rT(){if(Fd)return Yo;Fd=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.wrapEntry=o,Yo.wrapEntryCollection=a;var e=i(fo()),t=_r,r=i(ty()),n=i(ry);function i(s){return s&&s.__esModule?s:{default:s}}function o(s){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(s)))}function a(s,c){let{resolveLinks:l,removeUnresolved:u}=c;const d=(0,r.default)((0,t.toPlainObject)((0,e.default)(s)));return l&&(d.items=(0,n.default)(d,{removeUnresolved:u,itemEntryPoints:["fields"]})),(0,t.freezeSys)(d)}return Yo}var Xo={},Dd;function nT(){if(Dd)return Xo;Dd=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.wrapAsset=n,Xo.wrapAssetCollection=i;var e=r(fo()),t=_r;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Xo}var wa={},Bd;function iT(){if(Bd)return wa;Bd=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.wrapAssetKey=n;var e=r(fo()),t=_r;function r(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return wa}var Jo={},Ud;function oT(){if(Ud)return Jo;Ud=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.wrapContentType=n,Jo.wrapContentTypeCollection=i;var e=r(fo()),t=_r;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Jo}var Zo={},$d;function sT(){if($d)return Zo;$d=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.wrapLocale=n,Zo.wrapLocaleCollection=i;var e=r(fo()),t=_r;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Zo}var es={},jd;function aT(){if(jd)return es;jd=1,Object.defineProperty(es,"__esModule",{value:!0}),es.wrapTag=n,es.wrapTagCollection=i;var e=r(fo()),t=_r;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return es}var Hd;function uT(){if(Hd)return Qo;Hd=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=void 0;var e=c(jS()),t=c(rT()),r=c(nT()),n=c(iT()),i=c(oT()),o=c(sT()),a=c(aT());function s(u){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(s=function(f){return f?h:d})(u)}function c(u,d){if(!d&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var h=s(d);if(h&&h.has(u))return h.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var _=p?Object.getOwnPropertyDescriptor(u,m):null;_&&(_.get||_.set)?Object.defineProperty(f,m,_):f[m]=u[m]}return f.default=u,h&&h.set(u,f),f}var l={space:e,entry:t,asset:r,assetKey:n,contentType:i,locale:o,tag:a};return Qo.default=l,Qo}var Sa={},qd;function cT(){if(qd)return Sa;qd=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=s;var e=_r,t=n(ry),r=n(ty());function n(d){return d&&d.__esModule?d:{default:d}}function i(d,h){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);h&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),f.push.apply(f,p)}return f}function o(d){for(var h=1;h<arguments.length;h++){var f=arguments[h]!=null?arguments[h]:{};h%2?i(Object(f),!0).forEach(function(p){a(d,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(p){Object.defineProperty(d,p,Object.getOwnPropertyDescriptor(f,p))})}return d}function a(d,h,f){return h in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f,d}async function s(d,h){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!h||!h.initial&&!h.nextSyncToken&&!h.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(h&&h.content_type&&!h.type)h.type="Entry";else if(h&&h.content_type&&h.type&&h.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const p={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:m,removeUnresolved:_,paginate:S}=o(o({},p),f),b=await l(d,[],h,{paginate:S});m&&(b.items=(0,t.default)(b,{removeUnresolved:_,itemEntryPoints:["fields"]}));const T=c(b.items);return b.nextSyncToken&&(T.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(T.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,r.default)((0,e.toPlainObject)(T)))}function c(d){const h=f=>(p,m)=>(m.sys.type===f&&p.push((0,e.toPlainObject)(m)),p);return{entries:d.reduce(h("Entry"),[]),assets:d.reduce(h("Asset"),[]),deletedEntries:d.reduce(h("DeletedEntry"),[]),deletedAssets:d.reduce(h("DeletedAsset"),[])}}async function l(d,h,f,p){let{paginate:m}=p;f.nextSyncToken&&(f.sync_token=f.nextSyncToken,delete f.nextSyncToken),f.nextPageToken&&(f.sync_token=f.nextPageToken,delete f.nextPageToken),f.sync_token&&(delete f.initial,delete f.type,delete f.content_type,delete f.limit);const S=(await d.get("sync",(0,e.createRequestConfig)({query:f}))).data||{};return h=h.concat(S.items||[]),S.nextPageUrl?m?(delete f.initial,f.sync_token=u(S.nextPageUrl),l(d,h,f,{paginate:m})):{items:h,nextPageToken:u(S.nextPageUrl)}:S.nextSyncUrl?{items:h,nextSyncToken:u(S.nextSyncUrl)}:{items:[]}}function u(d){const h=d.split("?");return h.length>0?h[1].replace("sync_token=",""):""}return Sa}var Ta={},Gd;function lT(){if(Gd)return Ta;Gd=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=n;function e(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);o&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),a.push.apply(a,s)}return a}function t(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?e(Object(a),!0).forEach(function(s){r(i,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(a,s))})}return i}function r(i,o,a){return o in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i}function n(i){if(!i.select)return i;const o=Array.isArray(i.select)?i.select:i.select.split(","),a=new Set(o);return a.has("sys")?i:(a.add("sys.id"),a.add("sys.type"),t(t({},i),{},{select:[...a].join(",")}))}return Ta}var Oi={},Vd;function fT(){if(Vd)return Oi;Vd=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.ValidationError=void 0,Oi.default=t;class e extends Error{constructor(n,i){super(`Invalid "${n}" provided, `+i),this.name="ValidationError"}}Oi.ValidationError=e;function t(r,n,i){if(i=i||{},typeof n!="number")throw new e(r,`only numeric values are allowed for timestamps, provided type was "${typeof n}"`);if(i.maximum&&n>i.maximum)throw new e(r,`value (${n}) cannot be further in the future than expected maximum (${i.maximum})`);if(i.now&&n<i.now)throw new e(r,`value (${n}) cannot be in the past, current time was ${i.now}`)}return Oi}var Wd;function hT(){if(Wd)return va;Wd=1,Object.defineProperty(va,"__esModule",{value:!0}),va.default=u;var e=_r,t=o(uT()),r=o(cT()),n=o(lT()),i=o(fT());function o(d){return d&&d.__esModule?d:{default:d}}function a(d,h){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);h&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),f.push.apply(f,p)}return f}function s(d){for(var h=1;h<arguments.length;h++){var f=arguments[h]!=null?arguments[h]:{};h%2?a(Object(f),!0).forEach(function(p){c(d,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):a(Object(f)).forEach(function(p){Object.defineProperty(d,p,Object.getOwnPropertyDescriptor(f,p))})}return d}function c(d,h,f){return h in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f,d}const l=48*60*60;function u(d){let{http:h,getGlobalOptions:f}=d;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:_}=t.default.contentType,{wrapEntry:S,wrapEntryCollection:v}=t.default.entry,{wrapAsset:b,wrapAssetCollection:T}=t.default.asset,{wrapTag:w,wrapTagCollection:N}=t.default.tag,{wrapAssetKey:R}=t.default.assetKey,{wrapLocaleCollection:L}=t.default.locale,$=te=>{const ae=new Error("The resource could not be found.");return ae.sys={type:"Error",id:"NotFound"},ae.details={type:"Entry",id:te,environment:f().environment,space:f().space},ae};async function G(){Ve(h);try{const te=await h.get("/");return p(te.data)}catch(te){(0,e.errorHandler)(te)}}async function q(te){de(h);try{const ae=await h.get(`content_types/${te}`);return m(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function H(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h);try{const ae=await h.get("content_types",(0,e.createRequestConfig)({query:te}));return _(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function Y(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!te)throw $(te);try{const De=await this.getEntries(s({"sys.id":te},ae));if(De.items.length>0)return S(De.items[0]);throw $(te)}catch(De){(0,e.errorHandler)(De)}}async function ie(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h);const{resolveLinks:ae,removeUnresolved:De}=f(te);te=(0,n.default)(te);try{const Ie=await h.get("entries",(0,e.createRequestConfig)({query:te}));return v(Ie.data,{resolveLinks:ae,removeUnresolved:De})}catch(Ie){(0,e.errorHandler)(Ie)}}async function K(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};de(h),ae=(0,n.default)(ae);try{const De=await h.get(`assets/${te}`,(0,e.createRequestConfig)({query:ae}));return b(De.data)}catch(De){(0,e.errorHandler)(De)}}async function k(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h),te=(0,n.default)(te);try{const ae=await h.get("assets",(0,e.createRequestConfig)({query:te}));return T(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function Q(te){de(h);try{const ae=await h.get(`tags/${te}`);return w(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function ee(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h),te=(0,n.default)(te);try{const ae=await h.get("tags",(0,e.createRequestConfig)({query:te}));return N(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function he(te){de(h);try{const ae=Math.floor(Date.now()/1e3),De=ae+l;(0,i.default)("expiresAt",te,{maximum:De,now:ae});const Ie={expiresAt:te},Tt=await h.post("asset_keys",Ie);return R(Tt.data)}catch(ae){(0,e.errorHandler)(ae)}}async function Z(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h);try{const ae=await h.get("locales",(0,e.createRequestConfig)({query:te}));return L(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function X(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:De,removeUnresolved:Ie}=f(te);return de(h),(0,r.default)(h,te,s({resolveLinks:De,removeUnresolved:Ie},ae))}function le(te){const{resolveLinks:ae,removeUnresolved:De}=f({});return v(te,{resolveLinks:ae,removeUnresolved:De})}function de(te){te.defaults.baseURL=f().environmentBaseUrl}function Ve(te){te.defaults.baseURL=f().spaceBaseUrl}return{getSpace:G,getContentType:q,getContentTypes:H,getEntry:Y,getEntries:ie,getAsset:K,getAssets:k,getTag:Q,getTags:ee,createAssetKey:he,getLocales:Z,parseEntries:le,sync:X}}return va}var xa={},zd;function dT(){if(zd)return xa;zd=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.default=e;function e(t){return function(n){return Object.assign({},t,n)}}return xa}var Qd;function pT(){if(Qd)return ha;Qd=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.createClient=c;var e=i(Ag()),t=_r,r=i(hT()),n=i(dT());function i(l){return l&&l.__esModule?l:{default:l}}function o(l,u){var d=Object.keys(l);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(l);u&&(h=h.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),d.push.apply(d,h)}return d}function a(l){for(var u=1;u<arguments.length;u++){var d=arguments[u]!=null?arguments[u]:{};u%2?o(Object(d),!0).forEach(function(h){s(l,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(d)):o(Object(d)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(d,h))})}return l}function s(l,u,d){return u in l?Object.defineProperty(l,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):l[u]=d,l}function c(l){if(!l.accessToken)throw new TypeError("Expected parameter accessToken");if(!l.space)throw new TypeError("Expected parameter space");const d=a(a({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),l),h=(0,t.getUserAgentHeader)("contentful.js/9.1.34",d.application,d.integration);d.headers=a(a({},d.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":h});const f=(0,t.createHttpClient)(e.default,d),p=(0,n.default)({resolveLinks:d.resolveLinks,environment:d.environment,removeUnresolved:d.removeUnresolved,spaceBaseUrl:f.defaults.baseURL,environmentBaseUrl:`${f.defaults.baseURL}environments/${d.environment}`});return f.defaults.baseURL=p().environmentBaseUrl,(0,r.default)({http:f,getGlobalOptions:p})}return ha}var Cc={},Rc,Yd;function mT(){return Yd||(Yd=1,Rc=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Rc}var Pc,Kd;function gT(){if(Kd)return Pc;Kd=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(a,s){try{return[decodeURIComponent(a.join(""))]}catch{}if(a.length===1)return a;s=s||1;var c=a.slice(0,s),l=a.slice(s);return Array.prototype.concat.call([],n(c),n(l))}function i(a){try{return decodeURIComponent(a)}catch{for(var s=a.match(t)||[],c=1;c<s.length;c++)a=n(s,c).join(""),s=a.match(t)||[];return a}}function o(a){for(var s={"%FE%FF":"��","%FF%FE":"��"},c=r.exec(a);c;){try{s[c[0]]=decodeURIComponent(c[0])}catch{var l=i(c[0]);l!==c[0]&&(s[c[0]]=l)}c=r.exec(a)}s["%C2"]="�";for(var u=Object.keys(s),d=0;d<u.length;d++){var h=u[d];a=a.replace(new RegExp(h,"g"),s[h])}return a}return Pc=function(a){if(typeof a!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof a+"`");try{return a=a.replace(/\+/g," "),decodeURIComponent(a)}catch{return o(a)}},Pc}var Nc,Xd;function yT(){return Xd||(Xd=1,Nc=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Nc}var Ic,Jd;function vT(){return Jd||(Jd=1,Ic=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?t.indexOf(a)!==-1:t(a,s,e))&&(r[a]=s)}return r}),Ic}var Zd;function ET(){return Zd||(Zd=1,function(e){const t=mT(),r=gT(),n=yT(),i=vT(),o=v=>v==null,a=Symbol("encodeFragmentIdentifier");function s(v){switch(v.arrayFormat){case"index":return b=>(T,w)=>{const N=T.length;return w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,[u(b,v),"[",N,"]"].join("")]:[...T,[u(b,v),"[",u(N,v),"]=",u(w,v)].join("")]};case"bracket":return b=>(T,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,[u(b,v),"[]"].join("")]:[...T,[u(b,v),"[]=",u(w,v)].join("")];case"colon-list-separator":return b=>(T,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,[u(b,v),":list="].join("")]:[...T,[u(b,v),":list=",u(w,v)].join("")];case"comma":case"separator":case"bracket-separator":{const b=v.arrayFormat==="bracket-separator"?"[]=":"=";return T=>(w,N)=>N===void 0||v.skipNull&&N===null||v.skipEmptyString&&N===""?w:(N=N===null?"":N,w.length===0?[[u(T,v),b,u(N,v)].join("")]:[[w,u(N,v)].join(v.arrayFormatSeparator)])}default:return b=>(T,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,u(b,v)]:[...T,[u(b,v),"=",u(w,v)].join("")]}}function c(v){let b;switch(v.arrayFormat){case"index":return(T,w,N)=>{if(b=/\[(\d*)\]$/.exec(T),T=T.replace(/\[\d*\]$/,""),!b){N[T]=w;return}N[T]===void 0&&(N[T]={}),N[T][b[1]]=w};case"bracket":return(T,w,N)=>{if(b=/(\[\])$/.exec(T),T=T.replace(/\[\]$/,""),!b){N[T]=w;return}if(N[T]===void 0){N[T]=[w];return}N[T]=[].concat(N[T],w)};case"colon-list-separator":return(T,w,N)=>{if(b=/(:list)$/.exec(T),T=T.replace(/:list$/,""),!b){N[T]=w;return}if(N[T]===void 0){N[T]=[w];return}N[T]=[].concat(N[T],w)};case"comma":case"separator":return(T,w,N)=>{const R=typeof w=="string"&&w.includes(v.arrayFormatSeparator),L=typeof w=="string"&&!R&&d(w,v).includes(v.arrayFormatSeparator);w=L?d(w,v):w;const $=R||L?w.split(v.arrayFormatSeparator).map(G=>d(G,v)):w===null?w:d(w,v);N[T]=$};case"bracket-separator":return(T,w,N)=>{const R=/(\[\])$/.test(T);if(T=T.replace(/\[\]$/,""),!R){N[T]=w&&d(w,v);return}const L=w===null?[]:w.split(v.arrayFormatSeparator).map($=>d($,v));if(N[T]===void 0){N[T]=L;return}N[T]=[].concat(N[T],L)};default:return(T,w,N)=>{if(N[T]===void 0){N[T]=w;return}N[T]=[].concat(N[T],w)}}}function l(v){if(typeof v!="string"||v.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(v,b){return b.encode?b.strict?t(v):encodeURIComponent(v):v}function d(v,b){return b.decode?r(v):v}function h(v){return Array.isArray(v)?v.sort():typeof v=="object"?h(Object.keys(v)).sort((b,T)=>Number(b)-Number(T)).map(b=>v[b]):v}function f(v){const b=v.indexOf("#");return b!==-1&&(v=v.slice(0,b)),v}function p(v){let b="";const T=v.indexOf("#");return T!==-1&&(b=v.slice(T)),b}function m(v){v=f(v);const b=v.indexOf("?");return b===-1?"":v.slice(b+1)}function _(v,b){return b.parseNumbers&&!Number.isNaN(Number(v))&&typeof v=="string"&&v.trim()!==""?v=Number(v):b.parseBooleans&&v!==null&&(v.toLowerCase()==="true"||v.toLowerCase()==="false")&&(v=v.toLowerCase()==="true"),v}function S(v,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const T=c(b),w=Object.create(null);if(typeof v!="string"||(v=v.trim().replace(/^[?#&]/,""),!v))return w;for(const N of v.split("&")){if(N==="")continue;let[R,L]=n(b.decode?N.replace(/\+/g," "):N,"=");L=L===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?L:d(L,b),T(d(R,b),L,w)}for(const N of Object.keys(w)){const R=w[N];if(typeof R=="object"&&R!==null)for(const L of Object.keys(R))R[L]=_(R[L],b);else w[N]=_(R,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((N,R)=>{const L=w[R];return L&&typeof L=="object"&&!Array.isArray(L)?N[R]=h(L):N[R]=L,N},Object.create(null))}e.extract=m,e.parse=S,e.stringify=(v,b)=>{if(!v)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const T=L=>b.skipNull&&o(v[L])||b.skipEmptyString&&v[L]==="",w=s(b),N={};for(const L of Object.keys(v))T(L)||(N[L]=v[L]);const R=Object.keys(N);return b.sort!==!1&&R.sort(b.sort),R.map(L=>{const $=v[L];return $===void 0?"":$===null?u(L,b):Array.isArray($)?$.length===0&&b.arrayFormat==="bracket-separator"?u(L,b)+"[]":$.reduce(w(L),[]).join("&"):u(L,b)+"="+u($,b)}).filter(L=>L.length>0).join("&")},e.parseUrl=(v,b)=>{b=Object.assign({decode:!0},b);const[T,w]=n(v,"#");return Object.assign({url:T.split("?")[0]||"",query:S(m(v),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:d(w,b)}:{})},e.stringifyUrl=(v,b)=>{b=Object.assign({encode:!0,strict:!0,[a]:!0},b);const T=f(v.url).split("?")[0]||"",w=e.extract(v.url),N=e.parse(w,{sort:!1}),R=Object.assign(N,v.query);let L=e.stringify(R,b);L&&(L=`?${L}`);let $=p(v.url);return v.fragmentIdentifier&&($=`#${b[a]?u(v.fragmentIdentifier,b):v.fragmentIdentifier}`),`${T}${L}${$}`},e.pick=(v,b,T)=>{T=Object.assign({parseFragmentIdentifier:!0,[a]:!1},T);const{url:w,query:N,fragmentIdentifier:R}=e.parseUrl(v,T);return e.stringifyUrl({url:w,query:i(N,b),fragmentIdentifier:R},T)},e.exclude=(v,b,T)=>{const w=Array.isArray(b)?N=>!b.includes(N):(N,R)=>!b(N,R);return e.pick(v,w,T)}}(Cc)),Cc}var ep;function _T(){return ep||(ep=1,function(e,t){(function(r,n){e.exports=n(pT(),ET())})(fe,function(r,n){return function(){var i={897:function(c){c.exports=r},48:function(c){c.exports=n}},o={};function a(c){var l=o[c];if(l!==void 0)return l.exports;var u=o[c]={exports:{}};return i[c](u,u.exports,a),u.exports}a.d=function(c,l){for(var u in l)a.o(l,u)&&!a.o(c,u)&&Object.defineProperty(c,u,{enumerable:!0,get:l[u]})},a.o=function(c,l){return Object.prototype.hasOwnProperty.call(c,l)},a.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};return function(){a.r(s),a.d(s,{getEntries:function(){return ie},getEntry:function(){return Y},setContext:function(){return m}});var c=a(897),l=a(48),u={CONTENTFUL:{ENVIRONMENTS_MAPING:{beta:"beta",rc:"rc",live:"master",local:"beta"},LOCALES:{DEFAULT:"en",SUPPORTED:["en","es","fr","pt"]},SPACE:"txbhe1wabmyx",HOSTS:{CDN:"cdn.contentful.com",PREVIEW:"preview.contentful.com"}}};const{CONTENTFUL:{ENVIRONMENTS_MAPING:d,SPACE:h,HOSTS:f}}=u;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:f.CDN,space:h};const m=({apiKey:K,environment:k,isPreview:Q=!1,location:ee,previewKey:he,space:Z=null})=>{p.apiKey=K,p.previewKey=he,p.environment=(X=>{if(!X)throw new Error("Cannot map environment: Environment not defined");if(!d[X])throw new Error(`Cannot map environment: No mapping found for environment ${X}`);return d[X]})(k),p.isPreview=Q||(X=>{let le=!1;if(X&&X.search){const de=(0,l.parse)(X.search);le=de.isPreview&&de.isPreview==="true"}return le})(ee),p.space=Z||h},_=(K=!1)=>{const{apiKey:k,environment:Q,isPreview:ee,previewKey:he,space:Z}=p;return ee===!0||K===!0?{accessToken:he,environment:Q,host:f.PREVIEW,space:Z}:{accessToken:k,environment:Q,host:f.CDN,space:Z}},S=K=>typeof K=="object"&&K!==null,v=K=>Array.isArray(K)&&K.length,b=K=>{if(!S(K))throw new Error("Cannot flatten fields");const{fields:k,sys:Q}=K;if(!k)throw new Error("Cannot flatten fields");let ee={...k};if(S(Q)){const{contentType:he,createdAt:Z,updatedAt:X}=Q;he&&Object.assign(ee,{contentType:he.sys.id}),Z&&Object.assign(ee,{createdAt:Z}),X&&Object.assign(ee,{updatedAt:X})}return ee},{CONTENTFUL:{LOCALES:T}}=u,w=(K,k)=>S(K)&&((Q,ee)=>Object.prototype.hasOwnProperty.call(Q,ee))(K,k),N=(K,k)=>{const Q=(ee=>T.SUPPORTED.includes(ee)?ee:T.DEFAULT)(k);return w(K,Q)?K[Q]:w(K,T.DEFAULT)?K[T.DEFAULT]:K},R=K=>S(K)&&K.sys&&K.sys.type==="Asset",L=(K,k,Q)=>{const{title:ee,file:he}=b(K);if(!he)throw new Error("Cannot flatten asset");const{contentType:Z,fileName:X,url:le,details:de}=N(he,k);if(!le)throw new Error("Cannot flatten asset");return Q?{description:ee||X,height:de&&de.image&&de.image.height,type:Z,url:le,width:de&&de.image&&de.image.width}:le},$=K=>S(K)&&K.sys&&K.sys.type==="Entry",G=(K,k,Q)=>{const ee={},he=((Z,X)=>{const le={};for(const[de,Ve]of Object.entries(Z))le[de]=N(Ve,X);return le})(b(K),k);for(const[Z,X]of Object.entries(he))R(X)?ee[Z]=L(X,k,Q):$(X)?ee[Z]=G(X,k,Q):v(X)?ee[Z]=X.map(le=>R(le)?L(le,k,Q):$(le)?G(le,k,Q):le):ee[Z]=X;return ee},q=({items:K})=>{if(!v(K))throw new Error("Cannot read items");return K},H=async(K,k)=>{const Q=_(k);return await(await(0,c.createClient)(Q)).getEntries(K)},Y=async(K={},k={},Q=!1)=>((ee,{flatten:he=!0,locale:Z="en",assetDetails:X=!1})=>{const le=q(ee);return he?G(le[0],Z,X):le[0]})(await H(K,Q),{...K,...k}),ie=async(K={},k={},Q=!1)=>((ee,{flatten:he=!0,locale:Z="en",assetDetails:X=!1})=>{const le=q(ee);return he?((de,Ve,te)=>de.map(ae=>G(ae,Ve,te)))(le,Z,X):le})(await H(K,Q),{...K,...k})}(),s}()})}(Bu)),Bu.exports}var Lc={exports:{}},kc={exports:{}},Mc={exports:{}},Fc={exports:{}},tp;function Bf(){return tp||(tp=1,function(e,t){(function(r,n){e.exports=n()})(fe,function(){function r(m){return!isNaN(parseFloat(m))&&isFinite(m)}function n(m){return m.charAt(0).toUpperCase()+m.substring(1)}function i(m){return function(){return this[m]}}var o=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],s=["fileName","functionName","source"],c=["args"],l=["evalOrigin"],u=o.concat(a,s,c,l);function d(m){if(m)for(var _=0;_<u.length;_++)m[u[_]]!==void 0&&this["set"+n(u[_])](m[u[_]])}d.prototype={getArgs:function(){return this.args},setArgs:function(m){if(Object.prototype.toString.call(m)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=m},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(m){if(m instanceof d)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new d(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",_=this.getLineNumber()||"",S=this.getColumnNumber()||"",v=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+_+":"+S+")":"[eval]:"+_+":"+S:v?v+" ("+m+":"+_+":"+S+")":m+":"+_+":"+S}},d.fromString=function(_){var S=_.indexOf("("),v=_.lastIndexOf(")"),b=_.substring(0,S),T=_.substring(S+1,v).split(","),w=_.substring(v+1);if(w.indexOf("@")===0)var N=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),R=N[1],L=N[2],$=N[3];return new d({functionName:b,args:T||void 0,fileName:R,lineNumber:L||void 0,columnNumber:$||void 0})};for(var h=0;h<o.length;h++)d.prototype["get"+n(o[h])]=i(o[h]),d.prototype["set"+n(o[h])]=function(m){return function(_){this[m]=!!_}}(o[h]);for(var f=0;f<a.length;f++)d.prototype["get"+n(a[f])]=i(a[f]),d.prototype["set"+n(a[f])]=function(m){return function(_){if(!r(_))throw new TypeError(m+" must be a Number");this[m]=Number(_)}}(a[f]);for(var p=0;p<s.length;p++)d.prototype["get"+n(s[p])]=i(s[p]),d.prototype["set"+n(s[p])]=function(m){return function(_){this[m]=String(_)}}(s[p]);return d})}(Fc)),Fc.exports}var rp;function bT(){return rp||(rp=1,function(e,t){(function(r,n){e.exports=n(Bf())})(fe,function(n){var i=/(^|@)\S+:\d+/,o=/^\s*at .*(\S+:\d+|\(native\))/m,a=/^(eval@)?(\[native code])?$/;return{parse:function(c){if(typeof c.stacktrace<"u"||typeof c["opera#sourceloc"]<"u")return this.parseOpera(c);if(c.stack&&c.stack.match(o))return this.parseV8OrIE(c);if(c.stack)return this.parseFFOrSafari(c);throw new Error("Cannot parse given Error object")},extractLocation:function(c){if(c.indexOf(":")===-1)return[c];var l=/(.+?)(?::(\d+))?(?::(\d+))?$/,u=l.exec(c.replace(/[()]/g,""));return[u[1],u[2]||void 0,u[3]||void 0]},parseV8OrIE:function(c){var l=c.stack.split(`
35
+ `).filter(function(u){return!!u.match(o)},this);return l.map(function(u){u.indexOf("(eval ")>-1&&(u=u.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=u.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),h=d.match(/ (\(.+\)$)/);d=h?d.replace(h[0],""):d;var f=this.extractLocation(h?h[1]:d),p=h&&d||void 0,m=["eval","<anonymous>"].indexOf(f[0])>-1?void 0:f[0];return new n({functionName:p,fileName:m,lineNumber:f[1],columnNumber:f[2],source:u})},this)},parseFFOrSafari:function(c){var l=c.stack.split(`
36
+ `).filter(function(u){return!u.match(a)},this);return l.map(function(u){if(u.indexOf(" > eval")>-1&&(u=u.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),u.indexOf("@")===-1&&u.indexOf(":")===-1)return new n({functionName:u});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,h=u.match(d),f=h&&h[1]?h[1]:void 0,p=this.extractLocation(u.replace(d,""));return new n({functionName:f,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:u})},this)},parseOpera:function(c){return!c.stacktrace||c.message.indexOf(`
37
+ `)>-1&&c.message.split(`
38
+ `).length>c.stacktrace.split(`
39
+ `).length?this.parseOpera9(c):c.stack?this.parseOpera11(c):this.parseOpera10(c)},parseOpera9:function(c){for(var l=/Line (\d+).*script (?:in )?(\S+)/i,u=c.message.split(`
40
+ `),d=[],h=2,f=u.length;h<f;h+=2){var p=l.exec(u[h]);p&&d.push(new n({fileName:p[2],lineNumber:p[1],source:u[h]}))}return d},parseOpera10:function(c){for(var l=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,u=c.stacktrace.split(`
41
+ `),d=[],h=0,f=u.length;h<f;h+=2){var p=l.exec(u[h]);p&&d.push(new n({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:u[h]}))}return d},parseOpera11:function(c){var l=c.stack.split(`
42
+ `).filter(function(u){return!!u.match(i)&&!u.match(/^Error created at/)},this);return l.map(function(u){var d=u.split("@"),h=this.extractLocation(d.pop()),f=d.shift()||"",p=f.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;f.match(/\(([^)]*)\)/)&&(m=f.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var _=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new n({functionName:p,args:_,fileName:h[0],lineNumber:h[1],columnNumber:h[2],source:u})},this)}}})}(Mc)),Mc.exports}var Dc={exports:{}},np;function wT(){return np||(np=1,function(e,t){(function(r,n){e.exports=n(Bf())})(fe,function(r){return{backtrace:function(i){var o=[],a=10;typeof i=="object"&&typeof i.maxStackSize=="number"&&(a=i.maxStackSize);for(var s=arguments.callee;s&&o.length<a&&s.arguments;){for(var c=new Array(s.arguments.length),l=0;l<c.length;++l)c[l]=s.arguments[l];/function(?:\s+([\w$]+))+\s*\(/.test(s.toString())?o.push(new r({functionName:RegExp.$1||void 0,args:c})):o.push(new r({args:c}));try{s=s.caller}catch{break}}return o}}})}(Dc)),Dc.exports}var Bc={exports:{}},ts={},Uc={},ip;function ny(){return ip||(ip=1,function(e){function t(v,b,T){if(b in v)return v[b];if(arguments.length===3)return T;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function i(v){var b=v.match(r);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=i;function o(v){var b="";return v.scheme&&(b+=v.scheme+":"),b+="//",v.auth&&(b+=v.auth+"@"),v.host&&(b+=v.host),v.port&&(b+=":"+v.port),v.path&&(b+=v.path),b}e.urlGenerate=o;function a(v){var b=v,T=i(v);if(T){if(!T.path)return v;b=T.path}for(var w=e.isAbsolute(b),N=b.split(/\/+/),R,L=0,$=N.length-1;$>=0;$--)R=N[$],R==="."?N.splice($,1):R===".."?L++:L>0&&(R===""?(N.splice($+1,L),L=0):(N.splice($,2),L--));return b=N.join("/"),b===""&&(b=w?"/":"."),T?(T.path=b,o(T)):b}e.normalize=a;function s(v,b){v===""&&(v="."),b===""&&(b=".");var T=i(b),w=i(v);if(w&&(v=w.path||"/"),T&&!T.scheme)return w&&(T.scheme=w.scheme),o(T);if(T||b.match(n))return b;if(w&&!w.host&&!w.path)return w.host=b,o(w);var N=b.charAt(0)==="/"?b:a(v.replace(/\/+$/,"")+"/"+b);return w?(w.path=N,o(w)):N}e.join=s,e.isAbsolute=function(v){return v.charAt(0)==="/"||!!v.match(r)};function c(v,b){v===""&&(v="."),v=v.replace(/\/$/,"");for(var T=0;b.indexOf(v+"/")!==0;){var w=v.lastIndexOf("/");if(w<0||(v=v.slice(0,w),v.match(/^([^\/]+:\/)?\/*$/)))return b;++T}return Array(T+1).join("../")+b.substr(v.length+1)}e.relative=c;var l=function(){var v=Object.create(null);return!("__proto__"in v)}();function u(v){return v}function d(v){return f(v)?"$"+v:v}e.toSetString=l?u:d;function h(v){return f(v)?v.slice(1):v}e.fromSetString=l?u:h;function f(v){if(!v)return!1;var b=v.length;if(b<9||v.charCodeAt(b-1)!==95||v.charCodeAt(b-2)!==95||v.charCodeAt(b-3)!==111||v.charCodeAt(b-4)!==116||v.charCodeAt(b-5)!==111||v.charCodeAt(b-6)!==114||v.charCodeAt(b-7)!==112||v.charCodeAt(b-8)!==95||v.charCodeAt(b-9)!==95)return!1;for(var T=b-10;T>=0;T--)if(v.charCodeAt(T)!==36)return!1;return!0}function p(v,b,T){var w=v.source-b.source;return w!==0||(w=v.originalLine-b.originalLine,w!==0)||(w=v.originalColumn-b.originalColumn,w!==0||T)||(w=v.generatedColumn-b.generatedColumn,w!==0)||(w=v.generatedLine-b.generatedLine,w!==0)?w:v.name-b.name}e.compareByOriginalPositions=p;function m(v,b,T){var w=v.generatedLine-b.generatedLine;return w!==0||(w=v.generatedColumn-b.generatedColumn,w!==0||T)||(w=v.source-b.source,w!==0)||(w=v.originalLine-b.originalLine,w!==0)||(w=v.originalColumn-b.originalColumn,w!==0)?w:v.name-b.name}e.compareByGeneratedPositionsDeflated=m;function _(v,b){return v===b?0:v>b?1:-1}function S(v,b){var T=v.generatedLine-b.generatedLine;return T!==0||(T=v.generatedColumn-b.generatedColumn,T!==0)||(T=_(v.source,b.source),T!==0)||(T=v.originalLine-b.originalLine,T!==0)||(T=v.originalColumn-b.originalColumn,T!==0)?T:_(v.name,b.name)}e.compareByGeneratedPositionsInflated=S}(Uc)),Uc}var $c={},op;function ST(){return op||(op=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,i,o,a,s){var c=Math.floor((n-r)/2)+r,l=a(i,o[c],!0);return l===0?c:l>0?n-c>1?t(c,n,i,o,a,s):s==e.LEAST_UPPER_BOUND?n<o.length?n:-1:c:c-r>1?t(r,c,i,o,a,s):s==e.LEAST_UPPER_BOUND?c:r<0?-1:r}e.search=function(n,i,o,a){if(i.length===0)return-1;var s=t(-1,i.length,n,i,o,a||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&o(i[s],i[s-1],!0)===0;)--s;return s}}($c)),$c}var jc={},sp;function TT(){if(sp)return jc;sp=1;var e=ny(),t=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}return r.fromArray=function(i,o){for(var a=new r,s=0,c=i.length;s<c;s++)a.add(i[s],o);return a},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(i,o){var a=e.toSetString(i),s=t.call(this._set,a),c=this._array.length;(!s||o)&&this._array.push(i),s||(this._set[a]=c)},r.prototype.has=function(i){var o=e.toSetString(i);return t.call(this._set,o)},r.prototype.indexOf=function(i){var o=e.toSetString(i);if(t.call(this._set,o))return this._set[o];throw new Error('"'+i+'" is not in the set.')},r.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},r.prototype.toArray=function(){return this._array.slice()},jc.ArraySet=r,jc}var Oa={},Aa={},ap;function xT(){if(ap)return Aa;ap=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Aa.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Aa.decode=function(t){var r=65,n=90,i=97,o=122,a=48,s=57,c=43,l=47,u=26,d=52;return r<=t&&t<=n?t-r:i<=t&&t<=o?t-i+u:a<=t&&t<=s?t-a+d:t==c?62:t==l?63:-1},Aa}var up;function OT(){if(up)return Oa;up=1;var e=xT(),t=5,r=1<<t,n=r-1,i=r;function o(s){return s<0?(-s<<1)+1:(s<<1)+0}function a(s){var c=(s&1)===1,l=s>>1;return c?-l:l}return Oa.encode=function(c){var l="",u,d=o(c);do u=d&n,d>>>=t,d>0&&(u|=i),l+=e.encode(u);while(d>0);return l},Oa.decode=function(c,l,u){var d=c.length,h=0,f=0,p,m;do{if(l>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(c.charCodeAt(l++)),m===-1)throw new Error("Invalid base64 digit: "+c.charAt(l-1));p=!!(m&i),m&=n,h=h+(m<<f),f+=t}while(p);u.value=a(h),u.rest=l},Oa}var Hc={},cp;function AT(){if(cp)return Hc;cp=1;function e(n,i,o){var a=n[i];n[i]=n[o],n[o]=a}function t(n,i){return Math.round(n+Math.random()*(i-n))}function r(n,i,o,a){if(o<a){var s=t(o,a),c=o-1;e(n,s,a);for(var l=n[a],u=o;u<a;u++)i(n[u],l)<=0&&(c+=1,e(n,c,u));e(n,c+1,u);var d=c+1;r(n,i,o,d-1),r(n,i,d+1,a)}}return Hc.quickSort=function(n,i){r(n,i,0,n.length-1)},Hc}var lp;function CT(){if(lp)return ts;lp=1;var e=ny(),t=ST(),r=TT().ArraySet,n=OT(),i=AT().quickSort;function o(l){var u=l;return typeof l=="string"&&(u=JSON.parse(l.replace(/^\)\]\}'/,""))),u.sections!=null?new c(u):new a(u)}o.fromSourceMap=function(l){return a.fromSourceMap(l)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(u,d){var h=u.charAt(d);return h===";"||h===","},o.prototype._parseMappings=function(u,d){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(u,d,h){var f=d||null,p=h||o.GENERATED_ORDER,m;switch(p){case o.GENERATED_ORDER:m=this._generatedMappings;break;case o.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;m.map(function(S){var v=S.source===null?null:this._sources.at(S.source);return v!=null&&_!=null&&(v=e.join(_,v)),{source:v,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:this._names.at(S.name)}},this).forEach(u,f)},o.prototype.allGeneratedPositionsFor=function(u){var d=e.getArg(u,"line"),h={source:e.getArg(u,"source"),originalLine:d,originalColumn:e.getArg(u,"column",0)};if(this.sourceRoot!=null&&(h.source=e.relative(this.sourceRoot,h.source)),!this._sources.has(h.source))return[];h.source=this._sources.indexOf(h.source);var f=[],p=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var m=this._originalMappings[p];if(u.column===void 0)for(var _=m.originalLine;m&&m.originalLine===_;)f.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p];else for(var S=m.originalColumn;m&&m.originalLine===d&&m.originalColumn==S;)f.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p]}return f},ts.SourceMapConsumer=o;function a(l){var u=l;typeof l=="string"&&(u=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(u,"version"),h=e.getArg(u,"sources"),f=e.getArg(u,"names",[]),p=e.getArg(u,"sourceRoot",null),m=e.getArg(u,"sourcesContent",null),_=e.getArg(u,"mappings"),S=e.getArg(u,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);h=h.map(String).map(e.normalize).map(function(v){return p&&e.isAbsolute(p)&&e.isAbsolute(v)?e.relative(p,v):v}),this._names=r.fromArray(f.map(String),!0),this._sources=r.fromArray(h,!0),this.sourceRoot=p,this.sourcesContent=m,this._mappings=_,this.file=S}a.prototype=Object.create(o.prototype),a.prototype.consumer=o,a.fromSourceMap=function(u){var d=Object.create(a.prototype),h=d._names=r.fromArray(u._names.toArray(),!0),f=d._sources=r.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file;for(var p=u._mappings.toArray().slice(),m=d.__generatedMappings=[],_=d.__originalMappings=[],S=0,v=p.length;S<v;S++){var b=p[S],T=new s;T.generatedLine=b.generatedLine,T.generatedColumn=b.generatedColumn,b.source&&(T.source=f.indexOf(b.source),T.originalLine=b.originalLine,T.originalColumn=b.originalColumn,b.name&&(T.name=h.indexOf(b.name)),_.push(T)),m.push(T)}return i(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._sources.toArray().map(function(l){return this.sourceRoot!=null?e.join(this.sourceRoot,l):l},this)}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(u,d){for(var h=1,f=0,p=0,m=0,_=0,S=0,v=u.length,b=0,T={},w={},N=[],R=[],L,$,G,q,H;b<v;)if(u.charAt(b)===";")h++,b++,f=0;else if(u.charAt(b)===",")b++;else{for(L=new s,L.generatedLine=h,q=b;q<v&&!this._charIsMappingSeparator(u,q);q++);if($=u.slice(b,q),G=T[$],G)b+=$.length;else{for(G=[];b<q;)n.decode(u,b,w),H=w.value,b=w.rest,G.push(H);if(G.length===2)throw new Error("Found a source, but no line and column");if(G.length===3)throw new Error("Found a source and line, but no column");T[$]=G}L.generatedColumn=f+G[0],f=L.generatedColumn,G.length>1&&(L.source=_+G[1],_+=G[1],L.originalLine=p+G[2],p=L.originalLine,L.originalLine+=1,L.originalColumn=m+G[3],m=L.originalColumn,G.length>4&&(L.name=S+G[4],S+=G[4])),R.push(L),typeof L.originalLine=="number"&&N.push(L)}i(R,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=R,i(N,e.compareByOriginalPositions),this.__originalMappings=N},a.prototype._findMapping=function(u,d,h,f,p,m){if(u[h]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[h]);if(u[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[f]);return t.search(u,d,p,m)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var d=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var h=this._generatedMappings[u+1];if(d.generatedLine===h.generatedLine){d.lastGeneratedColumn=h.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var d={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},h=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",o.GREATEST_LOWER_BOUND));if(h>=0){var f=this._generatedMappings[h];if(f.generatedLine===d.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),this.sourceRoot!=null&&(p=e.join(this.sourceRoot,p)));var m=e.getArg(f,"name",null);return m!==null&&(m=this._names.at(m)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,d){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];var h;if(this.sourceRoot!=null&&(h=e.urlParse(this.sourceRoot))){var f=u.replace(/^file:\/\//,"");if(h.scheme=="file"&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!h.path||h.path=="/")&&this._sources.has("/"+u))return this.sourcesContent[this._sources.indexOf("/"+u)]}if(d)return null;throw new Error('"'+u+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var d=e.getArg(u,"source");if(this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d)),!this._sources.has(d))return{line:null,column:null,lastColumn:null};d=this._sources.indexOf(d);var h={source:d,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},f=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",o.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===h.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ts.BasicSourceMapConsumer=a;function c(l){var u=l;typeof l=="string"&&(u=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(u,"version"),h=e.getArg(u,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new r,this._names=new r;var f={line:-1,column:0};this._sections=h.map(function(p){if(p.url)throw new Error("Support for url field in sections not implemented.");var m=e.getArg(p,"offset"),_=e.getArg(m,"line"),S=e.getArg(m,"column");if(_<f.line||_===f.line&&S<f.column)throw new Error("Section offsets must be ordered and non-overlapping.");return f=m,{generatedOffset:{generatedLine:_+1,generatedColumn:S+1},consumer:new o(e.getArg(p,"map"))}})}return c.prototype=Object.create(o.prototype),c.prototype.constructor=o,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var l=[],u=0;u<this._sections.length;u++)for(var d=0;d<this._sections[u].consumer.sources.length;d++)l.push(this._sections[u].consumer.sources[d]);return l}}),c.prototype.originalPositionFor=function(u){var d={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},h=t.search(d,this._sections,function(p,m){var _=p.generatedLine-m.generatedOffset.generatedLine;return _||p.generatedColumn-m.generatedOffset.generatedColumn}),f=this._sections[h];return f?f.consumer.originalPositionFor({line:d.generatedLine-(f.generatedOffset.generatedLine-1),column:d.generatedColumn-(f.generatedOffset.generatedLine===d.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(u,d){for(var h=0;h<this._sections.length;h++){var f=this._sections[h],p=f.consumer.sourceContentFor(u,!0);if(p)return p}if(d)return null;throw new Error('"'+u+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(u){for(var d=0;d<this._sections.length;d++){var h=this._sections[d];if(h.consumer.sources.indexOf(e.getArg(u,"source"))!==-1){var f=h.consumer.generatedPositionFor(u);if(f){var p={line:f.line+(h.generatedOffset.generatedLine-1),column:f.column+(h.generatedOffset.generatedLine===f.line?h.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},c.prototype._parseMappings=function(u,d){this.__generatedMappings=[],this.__originalMappings=[];for(var h=0;h<this._sections.length;h++)for(var f=this._sections[h],p=f.consumer._generatedMappings,m=0;m<p.length;m++){var _=p[m],S=f.consumer._sources.at(_.source);f.consumer.sourceRoot!==null&&(S=e.join(f.consumer.sourceRoot,S)),this._sources.add(S),S=this._sources.indexOf(S);var v=f.consumer._names.at(_.name);this._names.add(v),v=this._names.indexOf(v);var b={source:S,generatedLine:_.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(f.generatedOffset.generatedLine===_.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:v};this.__generatedMappings.push(b),typeof b.originalLine=="number"&&this.__originalMappings.push(b)}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions)},ts.IndexedSourceMapConsumer=c,ts}var fp;function RT(){return fp||(fp=1,function(e,t){(function(r,n){e.exports=n(CT(),Bf())})(fe,function(r,n){function i(h){return new Promise(function(f,p){var m=new XMLHttpRequest;m.open("get",h),m.onerror=p,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||h.substr(0,7)==="file://"&&m.responseText?f(m.responseText):p(new Error("HTTP status: "+m.status+" retrieving "+h)))},m.send()})}function o(h){if(typeof window<"u"&&window.atob)return window.atob(h);throw new Error("You must supply a polyfill for window.atob in this environment")}function a(h){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(h);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function s(h,f){for(var p=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],m=h.split(`
43
+ `),_="",S=Math.min(f,20),v=0;v<S;++v){var b=m[f-v-1],T=b.indexOf("//");if(T>=0&&(b=b.substr(0,T)),b){_=b+_;for(var w=p.length,N=0;N<w;N++){var R=p[N].exec(_);if(R&&R[1])return R[1]}}}}function c(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function l(h){if(typeof h!="object")throw new TypeError("Given StackFrame is not an object");if(typeof h.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof h.lineNumber!="number"||h.lineNumber%1!==0||h.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof h.columnNumber!="number"||h.columnNumber%1!==0||h.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function u(h){for(var f=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,p,m;m=f.exec(h);)p=m[1];if(p)return p;throw new Error("sourceMappingURL not found")}function d(h,f,p){return new Promise(function(m,_){var S=f.originalPositionFor({line:h.lineNumber,column:h.columnNumber});if(S.source){var v=f.sourceContentFor(S.source);v&&(p[S.source]=v),m(new n({functionName:S.name||h.functionName,args:h.args,fileName:S.source,lineNumber:S.line,columnNumber:S.column}))}else _(new Error("Could not get original source for given stackframe and source map"))})}return function h(f){if(!(this instanceof h))return new h(f);f=f||{},this.sourceCache=f.sourceCache||{},this.sourceMapConsumerCache=f.sourceMapConsumerCache||{},this.ajax=f.ajax||i,this._atob=f.atob||o,this._get=function(m){return new Promise((function(_,S){var v=m.substr(0,5)==="data:";if(this.sourceCache[m])_(this.sourceCache[m]);else if(f.offline&&!v)S(new Error("Cannot make network requests in offline mode"));else if(v){var b=/^data:application\/json;([\w=:"-]+;)*base64,/,T=m.match(b);if(T){var w=T[0].length,N=m.substr(w),R=this._atob(N);this.sourceCache[m]=R,_(R)}else S(new Error("The encoding of the inline sourcemap is not supported"))}else{var L=this.ajax(m,{method:"get"});this.sourceCache[m]=L,L.then(_,S)}}).bind(this))},this._getSourceMapConsumer=function(m,_){return new Promise((function(S){if(this.sourceMapConsumerCache[m])S(this.sourceMapConsumerCache[m]);else{var v=new Promise((function(b,T){return this._get(m).then(function(w){typeof w=="string"&&(w=a(w.replace(/^\)\]\}'/,""))),typeof w.sourceRoot>"u"&&(w.sourceRoot=_),b(new r.SourceMapConsumer(w))}).catch(T)}).bind(this));this.sourceMapConsumerCache[m]=v,S(v)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(_,S){this.getMappedLocation(m).then((function(v){function b(){_(v)}this.findFunctionName(v).then(_,b).catch(b)}).bind(this),S)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(_,S){l(m),this._get(m.fileName).then(function(b){var T=m.lineNumber,w=m.columnNumber,N=s(b,T);_(N?new n({functionName:N,args:m.args,fileName:m.fileName,lineNumber:T,columnNumber:w}):m)},S).catch(S)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(_,S){c(),l(m);var v=this.sourceCache,b=m.fileName;this._get(b).then((function(T){var w=u(T),N=w.substr(0,5)==="data:",R=b.substring(0,b.lastIndexOf("/")+1);return w[0]!=="/"&&!N&&!/^https?:\/\/|^\/\//i.test(w)&&(w=R+w),this._getSourceMapConsumer(w,R).then(function(L){return d(m,L,v).then(_).catch(function(){_(m)})})}).bind(this),S).catch(S)}).bind(this))}}})}(Bc)),Bc.exports}var hp;function PT(){return hp||(hp=1,function(e,t){(function(r,n){e.exports=n(bT(),wT(),RT())})(fe,function(n,i,o){var a={filter:function(d){return(d.functionName||"").indexOf("StackTrace$$")===-1&&(d.functionName||"").indexOf("ErrorStackParser$$")===-1&&(d.functionName||"").indexOf("StackTraceGPS$$")===-1&&(d.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},s=function(){try{throw new Error}catch(h){return h}};function c(d,h){var f={};return[d,h].forEach(function(p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(f[m]=p[m]);return f}),f}function l(d){return d.stack||d["opera#sourceloc"]}function u(d,h){return typeof h=="function"?d.filter(h):d}return{get:function(h){var f=s();return l(f)?this.fromError(f,h):this.generateArtificially(h)},getSync:function(h){h=c(a,h);var f=s(),p=l(f)?n.parse(f):i.backtrace(h);return u(p,h.filter)},fromError:function(h,f){f=c(a,f);var p=new o(f);return new Promise((function(m){var _=u(n.parse(h),f.filter);m(Promise.all(_.map(function(S){return new Promise(function(v){function b(){v(S)}p.pinpoint(S).then(v,b).catch(b)})})))}).bind(this))},generateArtificially:function(h){h=c(a,h);var f=i.backtrace(h);return typeof h.filter=="function"&&(f=f.filter(h.filter)),Promise.resolve(f)},instrument:function(h,f,p,m){if(typeof h!="function")throw new Error("Cannot instrument non-function object");if(typeof h.__stacktraceOriginalFn=="function")return h;var _=(function(){try{return this.get().then(f,p).catch(p),h.apply(m||this,arguments)}catch(v){throw l(v)&&this.fromError(v).then(f,p).catch(p),v}}).bind(this);return _.__stacktraceOriginalFn=h,_},deinstrument:function(h){if(typeof h!="function")throw new Error("Cannot de-instrument non-function object");return typeof h.__stacktraceOriginalFn=="function"?h.__stacktraceOriginalFn:h},report:function(h,f,p,m){return new Promise(function(_,S){var v=new XMLHttpRequest;if(v.onerror=S,v.onreadystatechange=function(){v.readyState===4&&(v.status>=200&&v.status<400?_(v.responseText):S(new Error("POST to "+f+" failed with status: "+v.status)))},v.open("post",f),v.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var b=m.headers;for(var T in b)Object.prototype.hasOwnProperty.call(b,T)&&v.setRequestHeader(T,b[T])}var w={stack:h};p!=null&&(w.message=p),v.send(JSON.stringify(w))})}}})}(kc)),kc.exports}var qc,dp;function NT(){if(dp)return qc;dp=1;var e=PT(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",r=function(){};r.prototype.start=function(a){if(!a.key&&!a.targetUrl&&!a.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!a.projectId&&!a.targetUrl&&!a.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=a.customReportingFunction,this.apiKey=a.key,this.projectId=a.projectId,this.targetUrl=a.targetUrl,this.context=a.context||{},this.serviceContext={service:a.service||"web"},a.version&&(this.serviceContext.version=a.version),this.reportUncaughtExceptions=a.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=a.reportUnhandledPromiseRejections!==!1,this.disabled=!!a.disabled,n(this)};function n(a){var s=function(){};if(a.reportUncaughtExceptions){var c=window.onerror||s;window.onerror=function(u,d,h,f,p){return p&&a.report(p).catch(s),c(u,d,h,f,p),!0}}if(a.reportUnhandledPromiseRejections){var l=window.onunhandledrejection||s;window.onunhandledrejection=function(u){return u&&a.report(u.reason).catch(s),l(u.reason),!0}}}r.prototype.report=function(a,s){if(this.disabled)return Promise.resolve(null);if(!a)return Promise.reject(new Error("no error to report"));s=s||{};var c={};c.serviceContext=this.serviceContext,c.context=this.context,c.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var l=0;if(typeof a=="string"||a instanceof String){try{throw new Error(a)}catch(h){a=h}l=s.skipLocalFrames||1}var u=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,d=this.customReportingFunction;return i(a,l).then(function(h){return c.message=h,d?d(c):o(u,c)})};function i(a,s){return e.fromError(a).then(function(c){for(var l=[a.toString()],u=s;u<c.length;u++)l.push([" at ",c[u].getFunctionName()||"<anonymous>"," (",c[u].getFileName(),":",c[u].getLineNumber(),":",c[u].getColumnNumber(),")"].join(""));return l.join(`
44
+ `)},function(c){return["Error extracting stack trace: ",c,`
45
+ `,a.toString(),`
46
+ `," (",a.file,":",a.line,":",a.column,")"].join("")})}function o(a,s){var c=new XMLHttpRequest;return c.open("POST",a,!0),c.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(l,u){c.onreadystatechange=function(){if(c.readyState===4){var d=c.status;if(d>=200&&d<300)l({message:s.message});else if(d===429)u({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var h=d?d+" http response":"network error";u(new Error(h+" on stackdriver report"))}}},c.send(JSON.stringify(s))})}return r.prototype.setUser=function(a){this.context.user=a},qc=r,qc}var pp;function IT(){return pp||(pp=1,function(e,t){(function(r,n){e.exports=n(NT())})(fe,function(r){return function(){var n={542:function(s){s.exports=r}},i={};function o(s){var c=i[s];if(c!==void 0)return c.exports;var l=i[s]={exports:{}};return n[s](l,l.exports,o),l.exports}o.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(c,{a:c}),c},o.d=function(s,c){for(var l in c)o.o(c,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:c[l]})},o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return function(){o.r(a),o.d(a,{reportError:function(){return h},setContext:function(){return d}});var s=o(542),c=o.n(s);const{GCP:{PROJECT_ID:l}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let u={key:null,environment:null,projectId:l};const d=({apiKey:f,environment:p,projectId:m,serviceName:_})=>{if(!f)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(u.key=f,!p)throw new Error("Cannot set context: Environment not defined");u.environment=p,u.projectId=m||l,_&&(u.service=`${_}:${u.environment}`)},h=async(f,p)=>{try{const m=new(c());m.start(u),typeof p=="string"&&m.setUser(p),await m.report(f)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),a}()})}(Lc)),Lc.exports}var Gc={exports:{}},Ca={},mp;function LT(){if(mp)return Ca;mp=1,Object.defineProperty(Ca,"__esModule",{value:!0});var e=function(r){console.warn("[react-gtm]",r)};return Ca.default=e,Ca}var Vc,gp;function kT(){if(gp)return Vc;gp=1;var e=LT(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}var n={tags:function(o){var a=o.id,s=o.events,c=o.dataLayer,l=o.dataLayerName,u=o.preview,d=o.auth,h="&gtm_auth="+d,f="&gtm_preview="+u;a||(0,t.default)("GTM Id is required");var p=`
47
+ <iframe src="https://www.googletagmanager.com/ns.html?id=`+a+h+f+`&gtm_cookies_win=x"
48
+ height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,m=`
49
+ (function(w,d,s,l,i){w[l]=w[l]||[];
50
+ w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', `+JSON.stringify(s).slice(1,-1)+`});
51
+ var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
52
+ j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'`+h+f+`&gtm_cookies_win=x';
53
+ f.parentNode.insertBefore(j,f);
54
+ })(window,document,'script','`+l+"','"+a+"');",_=this.dataLayer(c,l);return{iframe:p,script:m,dataLayerVar:_}},dataLayer:function(o,a){return`
55
+ window.`+a+" = window."+a+` || [];
56
+ window.`+a+".push("+JSON.stringify(o)+")"}};return Vc=n,Vc}var Wc,yp;function MT(){if(yp)return Wc;yp=1;var e=kT(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}var n={dataScript:function(o){var a=document.createElement("script");return a.innerHTML=o,a},gtm:function(o){var a=t.default.tags(o),s=function(){var d=document.createElement("noscript");return d.innerHTML=a.iframe,d},c=function(){var d=document.createElement("script");return d.innerHTML=a.script,d},l=this.dataScript(a.dataLayerVar);return{noScript:s,script:c,dataScript:l}},initialize:function(o){var a=o.gtmId,s=o.events,c=s===void 0?{}:s,l=o.dataLayer,u=o.dataLayerName,d=u===void 0?"dataLayer":u,h=o.auth,f=h===void 0?"":h,p=o.preview,m=p===void 0?"":p,_=this.gtm({id:a,events:c,dataLayer:l||void 0,dataLayerName:d,auth:f,preview:m});l&&document.head.appendChild(_.dataScript),document.head.insertBefore(_.script(),document.head.childNodes[0]),document.body.insertBefore(_.noScript(),document.body.childNodes[0])},dataLayer:function(o){var a=o.dataLayer,s=o.dataLayerName,c=s===void 0?"dataLayer":s;if(window[c])return window[c].push(a);var l=t.default.dataLayer(a,c),u=this.dataScript(l);document.head.insertBefore(u,document.head.childNodes[0])}};return Wc=n,Wc}var zc,vp;function FT(){if(vp)return zc;vp=1;var e=MT(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return zc=t.default,zc}var Ep;function DT(){return Ep||(Ep=1,function(e,t){(function(r,n){e.exports=n(FT())})(fe,function(r){return function(){var n={273:function(s){s.exports=r}},i={};function o(s){var c=i[s];if(c!==void 0)return c.exports;var l=i[s]={exports:{}};return n[s](l,l.exports,o),l.exports}o.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(c,{a:c}),c},o.d=function(s,c){for(var l in c)o.o(c,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:c[l]})},o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return function(){o.r(a),o.d(a,{setContext:function(){return u},setupGTM:function(){return h}});var s=o(273),c=o.n(s);let l=null;const u=({configs:f,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!f)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!f[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:f,environment:p})}`);l=f[p]},d=()=>l,h=()=>{const f=d();c().initialize({gtmId:f.id})}}(),a}()})}(Gc)),Gc.exports}var iy=202,oy=502,sy=400,ay=409,uy=100,cy=201,ly=417,BT=424,fy=403,hy=504,dy=410,py=505,my=418,gy=419,yy=507,vy=500,Ey=411,_y=423,by=420,wy=405,Sy=301,Ty=302,xy=207,Oy=300,Ay=511,Cy=204,Ry=203,Py=406,Ny=404,Iy=501,Ly=304,ky=200,My=206,Fy=402,Dy=308,By=412,Uy=428,$y=102,jy=407,Hy=431,qy=408,Gy=413,Vy=414,Wy=416,zy=205,Qy=303,Yy=503,Ky=101,Xy=307,Jy=429,Zy=401,ev=422,tv=415,rv=305;const UT={ACCEPTED:iy,BAD_GATEWAY:oy,BAD_REQUEST:sy,CONFLICT:ay,CONTINUE:uy,CREATED:cy,EXPECTATION_FAILED:ly,FORBIDDEN:fy,GATEWAY_TIMEOUT:hy,GONE:dy,HTTP_VERSION_NOT_SUPPORTED:py,IM_A_TEAPOT:my,INSUFFICIENT_SPACE_ON_RESOURCE:gy,INSUFFICIENT_STORAGE:yy,INTERNAL_SERVER_ERROR:vy,LENGTH_REQUIRED:Ey,LOCKED:_y,METHOD_FAILURE:by,METHOD_NOT_ALLOWED:wy,MOVED_PERMANENTLY:Sy,MOVED_TEMPORARILY:Ty,MULTI_STATUS:xy,MULTIPLE_CHOICES:Oy,NETWORK_AUTHENTICATION_REQUIRED:Ay,NO_CONTENT:Cy,NON_AUTHORITATIVE_INFORMATION:Ry,NOT_ACCEPTABLE:Py,NOT_FOUND:Ny,NOT_IMPLEMENTED:Iy,NOT_MODIFIED:Ly,OK:ky,PARTIAL_CONTENT:My,PAYMENT_REQUIRED:Fy,PERMANENT_REDIRECT:Dy,PRECONDITION_FAILED:By,PRECONDITION_REQUIRED:Uy,PROCESSING:$y,PROXY_AUTHENTICATION_REQUIRED:jy,REQUEST_HEADER_FIELDS_TOO_LARGE:Hy,REQUEST_TIMEOUT:qy,REQUEST_TOO_LONG:Gy,REQUEST_URI_TOO_LONG:Vy,REQUESTED_RANGE_NOT_SATISFIABLE:Wy,RESET_CONTENT:zy,SEE_OTHER:Qy,SERVICE_UNAVAILABLE:Yy,SWITCHING_PROTOCOLS:Ky,TEMPORARY_REDIRECT:Xy,TOO_MANY_REQUESTS:Jy,UNAUTHORIZED:Zy,UNPROCESSABLE_ENTITY:ev,UNSUPPORTED_MEDIA_TYPE:tv,USE_PROXY:rv};var $T={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"},jT={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421};function nv(e){var t=$T[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function iv(e){var t=jT[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var ov=nv,Hl;(function(e){e[e.ACCEPTED=202]="ACCEPTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.CONFLICT=409]="CONFLICT",e[e.CONTINUE=100]="CONTINUE",e[e.CREATED=201]="CREATED",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.GONE=410]="GONE",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.LOCKED=423]="LOCKED",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.OK=200]="OK",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.PROCESSING=102]="PROCESSING",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.USE_PROXY=305]="USE_PROXY",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST"})(Hl||(Hl={}));var ql;(function(e){e.ACCEPTED="Accepted",e.BAD_GATEWAY="Bad Gateway",e.BAD_REQUEST="Bad Request",e.CONFLICT="Conflict",e.CONTINUE="Continue",e.CREATED="Created",e.EXPECTATION_FAILED="Expectation Failed",e.FAILED_DEPENDENCY="Failed Dependency",e.FORBIDDEN="Forbidden",e.GATEWAY_TIMEOUT="Gateway Timeout",e.GONE="Gone",e.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",e.IM_A_TEAPOT="I'm a teapot",e.INSUFFICIENT_SPACE_ON_RESOURCE="Insufficient Space on Resource",e.INSUFFICIENT_STORAGE="Insufficient Storage",e.INTERNAL_SERVER_ERROR="Internal Server Error",e.LENGTH_REQUIRED="Length Required",e.LOCKED="Locked",e.METHOD_FAILURE="Method Failure",e.METHOD_NOT_ALLOWED="Method Not Allowed",e.MOVED_PERMANENTLY="Moved Permanently",e.MOVED_TEMPORARILY="Moved Temporarily",e.MULTI_STATUS="Multi-Status",e.MULTIPLE_CHOICES="Multiple Choices",e.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",e.NO_CONTENT="No Content",e.NON_AUTHORITATIVE_INFORMATION="Non Authoritative Information",e.NOT_ACCEPTABLE="Not Acceptable",e.NOT_FOUND="Not Found",e.NOT_IMPLEMENTED="Not Implemented",e.NOT_MODIFIED="Not Modified",e.OK="OK",e.PARTIAL_CONTENT="Partial Content",e.PAYMENT_REQUIRED="Payment Required",e.PERMANENT_REDIRECT="Permanent Redirect",e.PRECONDITION_FAILED="Precondition Failed",e.PRECONDITION_REQUIRED="Precondition Required",e.PROCESSING="Processing",e.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",e.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",e.REQUEST_TIMEOUT="Request Timeout",e.REQUEST_TOO_LONG="Request Entity Too Large",e.REQUEST_URI_TOO_LONG="Request-URI Too Long",e.REQUESTED_RANGE_NOT_SATISFIABLE="Requested Range Not Satisfiable",e.RESET_CONTENT="Reset Content",e.SEE_OTHER="See Other",e.SERVICE_UNAVAILABLE="Service Unavailable",e.SWITCHING_PROTOCOLS="Switching Protocols",e.TEMPORARY_REDIRECT="Temporary Redirect",e.TOO_MANY_REQUESTS="Too Many Requests",e.UNAUTHORIZED="Unauthorized",e.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",e.UNPROCESSABLE_ENTITY="Unprocessable Entity",e.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",e.USE_PROXY="Use Proxy",e.MISDIRECTED_REQUEST="Misdirected Request"})(ql||(ql={}));var Ja=globalThis&&globalThis.__assign||function(){return Ja=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ja.apply(this,arguments)};const HT=Ja(Ja({},UT),{getStatusCode:iv,getStatusText:ov}),qT=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:iy,BAD_GATEWAY:oy,BAD_REQUEST:sy,CONFLICT:ay,CONTINUE:uy,CREATED:cy,EXPECTATION_FAILED:ly,FAILED_DEPENDENCY:BT,FORBIDDEN:fy,GATEWAY_TIMEOUT:hy,GONE:dy,HTTP_VERSION_NOT_SUPPORTED:py,IM_A_TEAPOT:my,INSUFFICIENT_SPACE_ON_RESOURCE:gy,INSUFFICIENT_STORAGE:yy,INTERNAL_SERVER_ERROR:vy,LENGTH_REQUIRED:Ey,LOCKED:_y,METHOD_FAILURE:by,METHOD_NOT_ALLOWED:wy,MOVED_PERMANENTLY:Sy,MOVED_TEMPORARILY:Ty,MULTIPLE_CHOICES:Oy,MULTI_STATUS:xy,NETWORK_AUTHENTICATION_REQUIRED:Ay,NON_AUTHORITATIVE_INFORMATION:Ry,NOT_ACCEPTABLE:Py,NOT_FOUND:Ny,NOT_IMPLEMENTED:Iy,NOT_MODIFIED:Ly,NO_CONTENT:Cy,OK:ky,PARTIAL_CONTENT:My,PAYMENT_REQUIRED:Fy,PERMANENT_REDIRECT:Dy,PRECONDITION_FAILED:By,PRECONDITION_REQUIRED:Uy,PROCESSING:$y,PROXY_AUTHENTICATION_REQUIRED:jy,REQUESTED_RANGE_NOT_SATISFIABLE:Wy,REQUEST_HEADER_FIELDS_TOO_LARGE:Hy,REQUEST_TIMEOUT:qy,REQUEST_TOO_LONG:Gy,REQUEST_URI_TOO_LONG:Vy,RESET_CONTENT:zy,get ReasonPhrases(){return ql},SEE_OTHER:Qy,SERVICE_UNAVAILABLE:Yy,SWITCHING_PROTOCOLS:Ky,get StatusCodes(){return Hl},TEMPORARY_REDIRECT:Xy,TOO_MANY_REQUESTS:Jy,UNAUTHORIZED:Zy,UNPROCESSABLE_ENTITY:ev,UNSUPPORTED_MEDIA_TYPE:tv,USE_PROXY:rv,default:HT,getReasonPhrase:nv,getStatusCode:iv,getStatusText:ov},Symbol.toStringTag,{value:"Module"})),GT=Js(qT);var Ra={exports:{}},rs={},Qc={},ns={},is={},kn={},os={},Yc={},Mn={},Rr={},_p;function Uf(){if(_p)return Rr;_p=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.ERROR_PACKET=Rr.PACKET_TYPES_REVERSE=Rr.PACKET_TYPES=void 0;const e=Object.create(null);Rr.PACKET_TYPES=e,e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";const t=Object.create(null);Rr.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(n=>{t[e[n]]=n});const r={type:"error",data:"parser error"};return Rr.ERROR_PACKET=r,Rr}var bp;function VT(){if(bp)return Mn;bp=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.encodePacket=Mn.encodePacketToBinary=void 0;const e=Uf(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",r=typeof ArrayBuffer=="function",n=l=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer,i=({type:l,data:u},d,h)=>t&&u instanceof Blob?d?h(u):o(u,h):r&&(u instanceof ArrayBuffer||n(u))?d?h(u):o(new Blob([u]),h):h(e.PACKET_TYPES[l]+(u||""));Mn.encodePacket=i;const o=(l,u)=>{const d=new FileReader;return d.onload=function(){const h=d.result.split(",")[1];u("b"+(h||""))},d.readAsDataURL(l)};function a(l){return l instanceof Uint8Array?l:l instanceof ArrayBuffer?new Uint8Array(l):new Uint8Array(l.buffer,l.byteOffset,l.byteLength)}let s;function c(l,u){if(t&&l.data instanceof Blob)return l.data.arrayBuffer().then(a).then(u);if(r&&(l.data instanceof ArrayBuffer||n(l.data)))return u(a(l.data));i(l,!1,d=>{s||(s=new TextEncoder),u(s.encode(d))})}return Mn.encodePacketToBinary=c,Mn}var ss={},Fn={},wp;function WT(){if(wp)return Fn;wp=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.decode=Fn.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let i=0;i<e.length;i++)t[e.charCodeAt(i)]=i;const r=i=>{let o=new Uint8Array(i),a,s=o.length,c="";for(a=0;a<s;a+=3)c+=e[o[a]>>2],c+=e[(o[a]&3)<<4|o[a+1]>>4],c+=e[(o[a+1]&15)<<2|o[a+2]>>6],c+=e[o[a+2]&63];return s%3===2?c=c.substring(0,c.length-1)+"=":s%3===1&&(c=c.substring(0,c.length-2)+"=="),c};Fn.encode=r;const n=i=>{let o=i.length*.75,a=i.length,s,c=0,l,u,d,h;i[i.length-1]==="="&&(o--,i[i.length-2]==="="&&o--);const f=new ArrayBuffer(o),p=new Uint8Array(f);for(s=0;s<a;s+=4)l=t[i.charCodeAt(s)],u=t[i.charCodeAt(s+1)],d=t[i.charCodeAt(s+2)],h=t[i.charCodeAt(s+3)],p[c++]=l<<2|u>>4,p[c++]=(u&15)<<4|d>>2,p[c++]=(d&3)<<6|h&63;return f};return Fn.decode=n,Fn}var Sp;function zT(){if(Sp)return ss;Sp=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.decodePacket=void 0;const e=Uf(),t=WT(),r=typeof ArrayBuffer=="function",n=(a,s)=>{if(typeof a!="string")return{type:"message",data:o(a,s)};const c=a.charAt(0);return c==="b"?{type:"message",data:i(a.substring(1),s)}:e.PACKET_TYPES_REVERSE[c]?a.length>1?{type:e.PACKET_TYPES_REVERSE[c],data:a.substring(1)}:{type:e.PACKET_TYPES_REVERSE[c]}:e.ERROR_PACKET};ss.decodePacket=n;const i=(a,s)=>{if(r){const c=(0,t.decode)(a);return o(c,s)}else return{base64:!0,data:a}},o=(a,s)=>{switch(s){case"blob":return a instanceof Blob?a:new Blob([a]);case"arraybuffer":default:return a instanceof ArrayBuffer?a:a.buffer}};return ss}var Tp;function ea(){return Tp||(Tp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=e.createPacketDecoderStream=e.createPacketEncoderStream=void 0;const t=VT();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const r=zT();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const n=Uf(),i=String.fromCharCode(30),o=(h,f)=>{const p=h.length,m=new Array(p);let _=0;h.forEach((S,v)=>{(0,t.encodePacket)(S,!1,b=>{m[v]=b,++_===p&&f(m.join(i))})})};e.encodePayload=o;const a=(h,f)=>{const p=h.split(i),m=[];for(let _=0;_<p.length;_++){const S=(0,r.decodePacket)(p[_],f);if(m.push(S),S.type==="error")break}return m};e.decodePayload=a;function s(){return new TransformStream({transform(h,f){(0,t.encodePacketToBinary)(h,p=>{const m=p.length;let _;if(m<126)_=new Uint8Array(1),new DataView(_.buffer).setUint8(0,m);else if(m<65536){_=new Uint8Array(3);const S=new DataView(_.buffer);S.setUint8(0,126),S.setUint16(1,m)}else{_=new Uint8Array(9);const S=new DataView(_.buffer);S.setUint8(0,127),S.setBigUint64(1,BigInt(m))}h.data&&typeof h.data!="string"&&(_[0]|=128),f.enqueue(_),f.enqueue(p)})}})}e.createPacketEncoderStream=s;let c;function l(h){return h.reduce((f,p)=>f+p.length,0)}function u(h,f){if(h[0].length===f)return h.shift();const p=new Uint8Array(f);let m=0;for(let _=0;_<f;_++)p[_]=h[0][m++],m===h[0].length&&(h.shift(),m=0);return h.length&&m<h[0].length&&(h[0]=h[0].slice(m)),p}function d(h,f){c||(c=new TextDecoder);const p=[];let m=0,_=-1,S=!1;return new TransformStream({transform(v,b){for(p.push(v);;){if(m===0){if(l(p)<1)break;const T=u(p,1);S=(T[0]&128)===128,_=T[0]&127,_<126?m=3:_===126?m=1:m=2}else if(m===1){if(l(p)<2)break;const T=u(p,2);_=new DataView(T.buffer,T.byteOffset,T.length).getUint16(0),m=3}else if(m===2){if(l(p)<8)break;const T=u(p,8),w=new DataView(T.buffer,T.byteOffset,T.length),N=w.getUint32(0);if(N>Math.pow(2,53-32)-1){b.enqueue(n.ERROR_PACKET);break}_=N*Math.pow(2,32)+w.getUint32(4),m=3}else{if(l(p)<_)break;const T=u(p,_);b.enqueue((0,r.decodePacket)(S?T:c.decode(T),f)),m=0}if(_===0||_>h){b.enqueue(n.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=d,e.protocol=4}(Yc)),Yc}function wt(e){if(e)return QT(e)}function QT(e){for(var t in wt.prototype)e[t]=wt.prototype[t];return e}wt.prototype.on=wt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};wt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};wt.prototype.off=wt.prototype.removeListener=wt.prototype.removeAllListeners=wt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,i=0;i<r.length;i++)if(n=r[i],n===t||n.fn===t){r.splice(i,1);break}return r.length===0&&delete this._callbacks["$"+e],this};wt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this};wt.prototype.emitReserved=wt.prototype.emit;wt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};wt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const YT=Object.freeze(Object.defineProperty({__proto__:null,Emitter:wt},Symbol.toStringTag,{value:"Module"})),ho=Js(YT);var Pr={},as={},xp;function vu(){return xp||(xp=1,Object.defineProperty(as,"__esModule",{value:!0}),as.globalThisShim=void 0,as.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),as}var Op;function ta(){if(Op)return Pr;Op=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.byteLength=Pr.installTimerFunctions=Pr.pick=void 0;const e=vu();function t(c,...l){return l.reduce((u,d)=>(c.hasOwnProperty(d)&&(u[d]=c[d]),u),{})}Pr.pick=t;const r=e.globalThisShim.setTimeout,n=e.globalThisShim.clearTimeout;function i(c,l){l.useNativeTimers?(c.setTimeoutFn=r.bind(e.globalThisShim),c.clearTimeoutFn=n.bind(e.globalThisShim)):(c.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),c.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Pr.installTimerFunctions=i;const o=1.33;function a(c){return typeof c=="string"?s(c):Math.ceil((c.byteLength||c.size)*o)}Pr.byteLength=a;function s(c){let l=0,u=0;for(let d=0,h=c.length;d<h;d++)l=c.charCodeAt(d),l<128?u+=1:l<2048?u+=2:l<55296||l>=57344?u+=3:(d++,u+=4);return u}return Pr}var Pa={exports:{}},Kc,Ap;function KT(){if(Ap)return Kc;Ap=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,o=n*365.25;Kc=function(u,d){d=d||{};var h=typeof u;if(h==="string"&&u.length>0)return a(u);if(h==="number"&&isFinite(u))return d.long?c(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var h=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*o;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*n;case"hours":case"hour":case"hrs":case"hr":case"h":return h*r;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var d=Math.abs(u);return d>=n?Math.round(u/n)+"d":d>=r?Math.round(u/r)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var d=Math.abs(u);return d>=n?l(u,d,n,"day"):d>=r?l(u,d,r,"hour"):d>=t?l(u,d,t,"minute"):d>=e?l(u,d,e,"second"):u+" ms"}function l(u,d,h,f){var p=d>=h*1.5;return Math.round(u/h)+" "+f+(p?"s":"")}return Kc}var Xc,Cp;function XT(){if(Cp)return Xc;Cp=1;function e(t){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=s,n.humanize=KT(),n.destroy=u,Object.keys(t).forEach(d=>{n[d]=t[d]}),n.names=[],n.skips=[],n.formatters={};function r(d){let h=0;for(let f=0;f<d.length;f++)h=(h<<5)-h+d.charCodeAt(f),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=r;function n(d){let h,f=null,p,m;function _(...S){if(!_.enabled)return;const v=_,b=Number(new Date),T=b-(h||b);v.diff=T,v.prev=h,v.curr=b,h=b,S[0]=n.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let w=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(R,L)=>{if(R==="%%")return"%";w++;const $=n.formatters[L];if(typeof $=="function"){const G=S[w];R=$.call(v,G),S.splice(w,1),w--}return R}),n.formatArgs.call(v,S),(v.log||n.log).apply(v,S)}return _.namespace=d,_.useColors=n.useColors(),_.color=n.selectColor(d),_.extend=i,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==n.namespaces&&(p=n.namespaces,m=n.enabled(d)),m),set:S=>{f=S}}),typeof n.init=="function"&&n.init(_),_}function i(d,h){const f=n(this.namespace+(typeof h>"u"?":":h)+d);return f.log=this.log,f}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let h;const f=(typeof d=="string"?d:"").split(/[\s,]+/),p=f.length;for(h=0;h<p;h++)f[h]&&(d=f[h].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.slice(1)+"$")):n.names.push(new RegExp("^"+d+"$")))}function a(){const d=[...n.names.map(c),...n.skips.map(c).map(h=>"-"+h)].join(",");return n.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let h,f;for(h=0,f=n.skips.length;h<f;h++)if(n.skips[h].test(d))return!1;for(h=0,f=n.names.length;h<f;h++)if(n.names[h].test(d))return!0;return!1}function c(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function l(d){return d instanceof Error?d.stack||d.message:d}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Xc=e,Xc}var Rp;function br(){return Rp||(Rp=1,function(e,t){t.formatArgs=n,t.save=i,t.load=o,t.useColors=r,t.storage=a(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,d=0;c[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u))}),c.splice(d,0,l)}t.log=console.debug||console.log||(()=>{});function i(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function o(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function a(){try{return localStorage}catch{}}e.exports=XT()(t);const{formatters:s}=e.exports;s.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Pa,Pa.exports)),Pa.exports}var Dn={},Pp;function sv(){if(Pp)return Dn;Pp=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.decode=Dn.encode=void 0;function e(r){let n="";for(let i in r)r.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(r[i]));return n}Dn.encode=e;function t(r){let n={},i=r.split("&");for(let o=0,a=i.length;o<a;o++){let s=i[o].split("=");n[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return n}return Dn.decode=t,Dn}var Np;function Eu(){if(Np)return os;Np=1;var e=fe&&fe.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(os,"__esModule",{value:!0}),os.Transport=void 0;const t=ea(),r=ho,n=ta(),i=e(br()),o=sv(),a=(0,i.default)("engine.io-client:transport");class s extends Error{constructor(u,d,h){super(u),this.description=d,this.context=h,this.type="TransportError"}}class c extends r.Emitter{constructor(u){super(),this.writable=!1,(0,n.installTimerFunctions)(this,u),this.opts=u,this.query=u.query,this.socket=u.socket}onError(u,d,h){return super.emitReserved("error",new s(u,d,h)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(u){this.readyState==="open"?this.write(u):a("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(u){const d=(0,t.decodePacket)(u,this.socket.binaryType);this.onPacket(d)}onPacket(u){super.emitReserved("packet",u)}onClose(u){this.readyState="closed",super.emitReserved("close",u)}pause(u){}createUri(u,d={}){return u+"://"+this._hostname()+this._port()+this.opts.path+this._query(d)}_hostname(){const u=this.opts.hostname;return u.indexOf(":")===-1?u:"["+u+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(u){const d=(0,o.encode)(u);return d.length?"?"+d:""}}return os.Transport=c,os}var Nr={},Ip;function av(){if(Ip)return Nr;Ip=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.yeast=Nr.decode=Nr.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,r={};let n=0,i=0,o;function a(l){let u="";do u=e[l%t]+u,l=Math.floor(l/t);while(l>0);return u}Nr.encode=a;function s(l){let u=0;for(i=0;i<l.length;i++)u=u*t+r[l.charAt(i)];return u}Nr.decode=s;function c(){const l=a(+new Date);return l!==o?(n=0,o=l):l+"."+a(n++)}for(Nr.yeast=c;i<t;i++)r[e[i]]=i;return Nr}var Bn={},us={},Lp;function JT(){if(Lp)return us;Lp=1,Object.defineProperty(us,"__esModule",{value:!0}),us.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return us.hasCORS=e,us}var kp;function ZT(){if(kp)return Bn;kp=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.createCookieJar=Bn.XHR=void 0;const e=JT(),t=vu();function r(i){const o=i.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!o||e.hasCORS))return new XMLHttpRequest}catch{}if(!o)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Bn.XHR=r;function n(){}return Bn.createCookieJar=n,Bn}var Mp;function ex(){if(Mp)return kn;Mp=1;var e=fe&&fe.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(kn,"__esModule",{value:!0}),kn.Request=kn.Polling=void 0;const t=Eu(),r=e(br()),n=av(),i=ea(),o=ZT(),a=ho,s=ta(),c=vu(),l=(0,r.default)("engine.io-client:polling");function u(){}const d=function(){return new o.XHR({xdomain:!1}).responseType!=null}();class h extends t.Transport{constructor(_){if(super(_),this.polling=!1,typeof location<"u"){const v=location.protocol==="https:";let b=location.port;b||(b=v?"443":"80"),this.xd=typeof location<"u"&&_.hostname!==location.hostname||b!==_.port}const S=_&&_.forceBase64;this.supportsBinary=d&&!S,this.opts.withCredentials&&(this.cookieJar=(0,o.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(_){this.readyState="pausing";const S=()=>{l("paused"),this.readyState="paused",_()};if(this.polling||!this.writable){let v=0;this.polling&&(l("we are currently polling - waiting to pause"),v++,this.once("pollComplete",function(){l("pre-pause polling complete"),--v||S()})),this.writable||(l("we are currently writing - waiting to pause"),v++,this.once("drain",function(){l("pre-pause writing complete"),--v||S()}))}else S()}poll(){l("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(_){l("polling got data %s",_);const S=v=>{if(this.readyState==="opening"&&v.type==="open"&&this.onOpen(),v.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(v)};(0,i.decodePayload)(_,this.socket.binaryType).forEach(S),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():l('ignoring poll - transport state "%s"',this.readyState))}doClose(){const _=()=>{l("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(l("transport open - closing"),_()):(l("transport not open - deferring close"),this.once("open",_))}write(_){this.writable=!1,(0,i.encodePayload)(_,S=>{this.doWrite(S,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const _=this.opts.secure?"https":"http",S=this.query||{};return this.opts.timestampRequests!==!1&&(S[this.opts.timestampParam]=(0,n.yeast)()),!this.supportsBinary&&!S.sid&&(S.b64=1),this.createUri(_,S)}request(_={}){return Object.assign(_,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new f(this.uri(),_)}doWrite(_,S){const v=this.request({method:"POST",data:_});v.on("success",S),v.on("error",(b,T)=>{this.onError("xhr post error",b,T)})}doPoll(){l("xhr poll");const _=this.request();_.on("data",this.onData.bind(this)),_.on("error",(S,v)=>{this.onError("xhr poll error",S,v)}),this.pollXhr=_}}kn.Polling=h;class f extends a.Emitter{constructor(_,S){super(),(0,s.installTimerFunctions)(this,S),this.opts=S,this.method=S.method||"GET",this.uri=_,this.data=S.data!==void 0?S.data:null,this.create()}create(){var _;const S=(0,s.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");S.xdomain=!!this.opts.xd;const v=this.xhr=new o.XHR(S);try{l("xhr open %s: %s",this.method,this.uri),v.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){v.setDisableHeaderCheck&&v.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&v.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{v.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{v.setRequestHeader("Accept","*/*")}catch{}(_=this.opts.cookieJar)===null||_===void 0||_.addCookies(v),"withCredentials"in v&&(v.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(v.timeout=this.opts.requestTimeout),v.onreadystatechange=()=>{var b;v.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(v)),v.readyState===4&&(v.status===200||v.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof v.status=="number"?v.status:0)},0))},l("xhr data %s",this.data),v.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=f.requestsCount++,f.requests[this.index]=this)}onError(_){this.emitReserved("error",_,this.xhr),this.cleanup(!0)}cleanup(_){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=u,_)try{this.xhr.abort()}catch{}typeof document<"u"&&delete f.requests[this.index],this.xhr=null}}onLoad(){const _=this.xhr.responseText;_!==null&&(this.emitReserved("data",_),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(kn.Request=f,f.requestsCount=0,f.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",p);else if(typeof addEventListener=="function"){const m="onpagehide"in c.globalThisShim?"pagehide":"unload";addEventListener(m,p,!1)}}function p(){for(let m in f.requests)f.requests.hasOwnProperty(m)&&f.requests[m].abort()}return kn}var cs={},Jt={},Fp;function _u(){if(Fp)return Jt;Fp=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.defaultBinaryType=Jt.usingBrowserWebSocket=Jt.WebSocket=Jt.nextTick=void 0;const e=vu();return Jt.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,n)=>n(r,0))(),Jt.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Jt.usingBrowserWebSocket=!0,Jt.defaultBinaryType="arraybuffer",Jt}var Dp;function tx(){if(Dp)return cs;Dp=1;var e=fe&&fe.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(cs,"__esModule",{value:!0}),cs.WS=void 0;const t=Eu(),r=av(),n=ta(),i=_u(),o=e(br()),a=ea(),s=(0,o.default)("engine.io-client:websocket"),c=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class l extends t.Transport{constructor(d){super(d),this.supportsBinary=!d.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const d=this.uri(),h=this.opts.protocols,f=c?{}:(0,n.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(f.headers=this.opts.extraHeaders);try{this.ws=i.usingBrowserWebSocket&&!c?h?new i.WebSocket(d,h):new i.WebSocket(d):new i.WebSocket(d,h,f)}catch(p){return this.emitReserved("error",p)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=d=>this.onClose({description:"websocket connection closed",context:d}),this.ws.onmessage=d=>this.onData(d.data),this.ws.onerror=d=>this.onError("websocket error",d)}write(d){this.writable=!1;for(let h=0;h<d.length;h++){const f=d[h],p=h===d.length-1;(0,a.encodePacket)(f,this.supportsBinary,m=>{const _={};i.usingBrowserWebSocket||(f.options&&(_.compress=f.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(_.compress=!1));try{i.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,_)}catch{s("websocket closed before onclose event")}p&&(0,i.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const d=this.opts.secure?"wss":"ws",h=this.query||{};return this.opts.timestampRequests&&(h[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||(h.b64=1),this.createUri(d,h)}check(){return!!i.WebSocket}}return cs.WS=l,cs}var ls={},Bp;function rx(){if(Bp)return ls;Bp=1;var e=fe&&fe.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ls,"__esModule",{value:!0}),ls.WT=void 0;const t=Eu(),r=_u(),n=ea(),o=(0,e(br()).default)("engine.io-client:webtransport");class a extends t.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{o("transport closed gracefully"),this.onClose()}).catch(c=>{o("transport closed due to %s",c),this.onError("webtransport error",c)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(c=>{const l=(0,n.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),u=c.readable.pipeThrough(l).getReader(),d=(0,n.createPacketEncoderStream)();d.readable.pipeTo(c.writable),this.writer=d.writable.getWriter();const h=()=>{u.read().then(({done:p,value:m})=>{if(p){o("session is closed");return}o("received chunk: %o",m),this.onPacket(m),h()}).catch(p=>{o("an error occurred while reading: %s",p)})};h();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this.writer.write(f).then(()=>this.onOpen())})}))}write(c){this.writable=!1;for(let l=0;l<c.length;l++){const u=c[l],d=l===c.length-1;this.writer.write(u).then(()=>{d&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var c;(c=this.transport)===null||c===void 0||c.close()}}return ls.WT=a,ls}var Up;function uv(){if(Up)return is;Up=1,Object.defineProperty(is,"__esModule",{value:!0}),is.transports=void 0;const e=ex(),t=tx(),r=rx();return is.transports={websocket:t.WS,webtransport:r.WT,polling:e.Polling},is}var fs={},$p;function cv(){if($p)return fs;$p=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.parse=void 0;const e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function r(o){const a=o,s=o.indexOf("["),c=o.indexOf("]");s!=-1&&c!=-1&&(o=o.substring(0,s)+o.substring(s,c).replace(/:/g,";")+o.substring(c,o.length));let l=e.exec(o||""),u={},d=14;for(;d--;)u[t[d]]=l[d]||"";return s!=-1&&c!=-1&&(u.source=a,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=n(u,u.path),u.queryKey=i(u,u.query),u}fs.parse=r;function n(o,a){const s=/\/{2,9}/g,c=a.replace(s,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&c.splice(0,1),a.slice(-1)=="/"&&c.splice(c.length-1,1),c}function i(o,a){const s={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,l,u){l&&(s[l]=u)}),s}return fs}var jp;function nx(){if(jp)return ns;jp=1;var e=fe&&fe.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(ns,"__esModule",{value:!0}),ns.Socket=void 0;const t=uv(),r=ta(),n=sv(),i=cv(),o=e(br()),a=ho,s=ea(),c=_u(),l=(0,o.default)("engine.io-client:socket");class u extends a.Emitter{constructor(h,f={}){super(),this.binaryType=c.defaultBinaryType,this.writeBuffer=[],h&&typeof h=="object"&&(f=h,h=null),h?(h=(0,i.parse)(h),f.hostname=h.host,f.secure=h.protocol==="https"||h.protocol==="wss",f.port=h.port,h.query&&(f.query=h.query)):f.host&&(f.hostname=(0,i.parse)(f.host).host),(0,r.installTimerFunctions)(this,f),this.secure=f.secure!=null?f.secure:typeof location<"u"&&location.protocol==="https:",f.hostname&&!f.port&&(f.port=this.secure?"443":"80"),this.hostname=f.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=f.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=f.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},f),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,n.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(h){l('creating transport "%s"',h);const f=Object.assign({},this.opts.query);f.EIO=s.protocol,f.transport=h,this.id&&(f.sid=this.id);const p=Object.assign({},this.opts,{query:f,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[h]);return l("options: %j",p),new t.transports[h](p)}open(){let h;if(this.opts.rememberUpgrade&&u.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)h="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else h=this.transports[0];this.readyState="opening";try{h=this.createTransport(h)}catch(f){l("error while creating transport: %s",f),this.transports.shift(),this.open();return}h.open(),this.setTransport(h)}setTransport(h){l("setting transport %s",h.name),this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=h,h.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",f=>this.onClose("transport close",f))}probe(h){l('probing transport "%s"',h);let f=this.createTransport(h),p=!1;u.priorWebsocketSuccess=!1;const m=()=>{p||(l('probe transport "%s" opened',h),f.send([{type:"ping",data:"probe"}]),f.once("packet",N=>{if(!p)if(N.type==="pong"&&N.data==="probe"){if(l('probe transport "%s" pong',h),this.upgrading=!0,this.emitReserved("upgrading",f),!f)return;u.priorWebsocketSuccess=f.name==="websocket",l('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(l("changing transport and sending upgrade packet"),w(),this.setTransport(f),f.send([{type:"upgrade"}]),this.emitReserved("upgrade",f),f=null,this.upgrading=!1,this.flush())})}else{l('probe transport "%s" failed',h);const R=new Error("probe error");R.transport=f.name,this.emitReserved("upgradeError",R)}}))};function _(){p||(p=!0,w(),f.close(),f=null)}const S=N=>{const R=new Error("probe error: "+N);R.transport=f.name,_(),l('probe transport "%s" failed because of error: %s',h,N),this.emitReserved("upgradeError",R)};function v(){S("transport closed")}function b(){S("socket closed")}function T(N){f&&N.name!==f.name&&(l('"%s" works - aborting "%s"',N.name,f.name),_())}const w=()=>{f.removeListener("open",m),f.removeListener("error",S),f.removeListener("close",v),this.off("close",b),this.off("upgrading",T)};f.once("open",m),f.once("error",S),f.once("close",v),this.once("close",b),this.once("upgrading",T),this.upgrades.indexOf("webtransport")!==-1&&h!=="webtransport"?this.setTimeoutFn(()=>{p||f.open()},200):f.open()}onOpen(){if(l("socket open"),this.readyState="open",u.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){l("starting upgrade probes");let h=0;const f=this.upgrades.length;for(;h<f;h++)this.probe(this.upgrades[h])}}onPacket(h){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(l('socket receive: type "%s", data "%s"',h.type,h.data),this.emitReserved("packet",h),this.emitReserved("heartbeat"),this.resetPingTimeout(),h.type){case"open":this.onHandshake(JSON.parse(h.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const f=new Error("server error");f.code=h.data,this.onError(f);break;case"message":this.emitReserved("data",h.data),this.emitReserved("message",h.data);break}else l('packet received with socket readyState "%s"',this.readyState)}onHandshake(h){this.emitReserved("handshake",h),this.id=h.sid,this.transport.query.sid=h.sid,this.upgrades=this.filterUpgrades(h.upgrades),this.pingInterval=h.pingInterval,this.pingTimeout=h.pingTimeout,this.maxPayload=h.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const h=this.getWritablePackets();l("flushing %d packets in socket",h.length),this.transport.send(h),this.prevBufferLen=h.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let f=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(f+=(0,r.byteLength)(m)),p>0&&f>this.maxPayload)return l("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);f+=2}return l("payload size is %d (max: %d)",f,this.maxPayload),this.writeBuffer}write(h,f,p){return this.sendPacket("message",h,f,p),this}send(h,f,p){return this.sendPacket("message",h,f,p),this}sendPacket(h,f,p,m){if(typeof f=="function"&&(m=f,f=void 0),typeof p=="function"&&(m=p,p=null),this.readyState==="closing"||this.readyState==="closed")return;p=p||{},p.compress=p.compress!==!1;const _={type:h,data:f,options:p};this.emitReserved("packetCreate",_),this.writeBuffer.push(_),m&&this.once("flush",m),this.flush()}close(){const h=()=>{this.onClose("forced close"),l("socket closing - telling transport to close"),this.transport.close()},f=()=>{this.off("upgrade",f),this.off("upgradeError",f),h()},p=()=>{this.once("upgrade",f),this.once("upgradeError",f)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():h()}):this.upgrading?p():h()),this}onError(h){l("socket error %j",h),u.priorWebsocketSuccess=!1,this.emitReserved("error",h),this.onClose("transport error",h)}onClose(h,f){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(l('socket close with reason: "%s"',h),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",h,f),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(h){const f=[];let p=0;const m=h.length;for(;p<m;p++)~this.transports.indexOf(h[p])&&f.push(h[p]);return f}}return ns.Socket=u,u.protocol=s.protocol,ns}var Hp;function lv(){return Hp||(Hp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const t=nx();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var r=Eu();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var n=uv();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return n.transports}});var i=ta();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return i.installTimerFunctions}});var o=cv();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return o.parse}});var a=_u();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return a.nextTick}})}(Qc)),Qc}var qp;function ix(){if(qp)return rs;qp=1;var e=fe&&fe.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(rs,"__esModule",{value:!0}),rs.url=void 0;const t=lv(),n=e(br()).default("socket.io-client:url");function i(o,a="",s){let c=o;s=s||typeof location<"u"&&location,o==null&&(o=s.protocol+"//"+s.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o.charAt(1)==="/"?o=s.protocol+o:o=s.host+o),/^(https?|wss?):\/\//.test(o)||(n("protocol-less url %s",o),typeof s<"u"?o=s.protocol+"//"+o:o="https://"+o),n("parse %s",o),c=t.parse(o)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const u=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+u+":"+c.port+a,c.href=c.protocol+"://"+u+(s&&s.port===c.port?"":":"+c.port),c}return rs.url=i,rs}var hs={},ds={},Jc={},Un={},$n={},Gp;function fv(){if(Gp)return $n;Gp=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.hasBinary=$n.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,r=Object.prototype.toString,n=typeof Blob=="function"||typeof Blob<"u"&&r.call(Blob)==="[object BlobConstructor]",i=typeof File=="function"||typeof File<"u"&&r.call(File)==="[object FileConstructor]";function o(s){return e&&(s instanceof ArrayBuffer||t(s))||n&&s instanceof Blob||i&&s instanceof File}$n.isBinary=o;function a(s,c){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let l=0,u=s.length;l<u;l++)if(a(s[l]))return!0;return!1}if(o(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return a(s.toJSON(),!0);for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)&&a(s[l]))return!0;return!1}return $n.hasBinary=a,$n}var Vp;function ox(){if(Vp)return Un;Vp=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.reconstructPacket=Un.deconstructPacket=void 0;const e=fv();function t(o){const a=[],s=o.data,c=o;return c.data=r(s,a),c.attachments=a.length,{packet:c,buffers:a}}Un.deconstructPacket=t;function r(o,a){if(!o)return o;if((0,e.isBinary)(o)){const s={_placeholder:!0,num:a.length};return a.push(o),s}else if(Array.isArray(o)){const s=new Array(o.length);for(let c=0;c<o.length;c++)s[c]=r(o[c],a);return s}else if(typeof o=="object"&&!(o instanceof Date)){const s={};for(const c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=r(o[c],a));return s}return o}function n(o,a){return o.data=i(o.data,a),delete o.attachments,o}Un.reconstructPacket=n;function i(o,a){if(!o)return o;if(o&&o._placeholder===!0){if(typeof o.num=="number"&&o.num>=0&&o.num<a.length)return a[o.num];throw new Error("illegal attachments")}else if(Array.isArray(o))for(let s=0;s<o.length;s++)o[s]=i(o[s],a);else if(typeof o=="object")for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&(o[s]=i(o[s],a));return o}return Un}var Wp;function $f(){return Wp||(Wp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=ho,r=ox(),n=fv(),o=(0,br().default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var s;(function(h){h[h.CONNECT=0]="CONNECT",h[h.DISCONNECT=1]="DISCONNECT",h[h.EVENT=2]="EVENT",h[h.ACK=3]="ACK",h[h.CONNECT_ERROR=4]="CONNECT_ERROR",h[h.BINARY_EVENT=5]="BINARY_EVENT",h[h.BINARY_ACK=6]="BINARY_ACK"})(s=e.PacketType||(e.PacketType={}));class c{constructor(f){this.replacer=f}encode(f){return o("encoding packet %j",f),(f.type===s.EVENT||f.type===s.ACK)&&(0,n.hasBinary)(f)?this.encodeAsBinary({type:f.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:f.nsp,data:f.data,id:f.id}):[this.encodeAsString(f)]}encodeAsString(f){let p=""+f.type;return(f.type===s.BINARY_EVENT||f.type===s.BINARY_ACK)&&(p+=f.attachments+"-"),f.nsp&&f.nsp!=="/"&&(p+=f.nsp+","),f.id!=null&&(p+=f.id),f.data!=null&&(p+=JSON.stringify(f.data,this.replacer)),o("encoded %j as %s",f,p),p}encodeAsBinary(f){const p=(0,r.deconstructPacket)(f),m=this.encodeAsString(p.packet),_=p.buffers;return _.unshift(m),_}}e.Encoder=c;function l(h){return Object.prototype.toString.call(h)==="[object Object]"}class u extends t.Emitter{constructor(f){super(),this.reviver=f}add(f){let p;if(typeof f=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(f);const m=p.type===s.BINARY_EVENT;m||p.type===s.BINARY_ACK?(p.type=m?s.EVENT:s.ACK,this.reconstructor=new d(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,n.isBinary)(f)||f.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(f),p&&(this.reconstructor=null,super.emitReserved("decoded",p));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+f)}decodeString(f){let p=0;const m={type:Number(f.charAt(0))};if(s[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===s.BINARY_EVENT||m.type===s.BINARY_ACK){const S=p+1;for(;f.charAt(++p)!=="-"&&p!=f.length;);const v=f.substring(S,p);if(v!=Number(v)||f.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(v)}if(f.charAt(p+1)==="/"){const S=p+1;for(;++p&&!(f.charAt(p)===","||p===f.length););m.nsp=f.substring(S,p)}else m.nsp="/";const _=f.charAt(p+1);if(_!==""&&Number(_)==_){const S=p+1;for(;++p;){const v=f.charAt(p);if(v==null||Number(v)!=v){--p;break}if(p===f.length)break}m.id=Number(f.substring(S,p+1))}if(f.charAt(++p)){const S=this.tryParse(f.substr(p));if(u.isPayloadValid(m.type,S))m.data=S;else throw new Error("invalid payload")}return o("decoded %s as %j",f,m),m}tryParse(f){try{return JSON.parse(f,this.reviver)}catch{return!1}}static isPayloadValid(f,p){switch(f){case s.CONNECT:return l(p);case s.DISCONNECT:return p===void 0;case s.CONNECT_ERROR:return typeof p=="string"||l(p);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&a.indexOf(p[0])===-1);case s.ACK:case s.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=u;class d{constructor(f){this.packet=f,this.buffers=[],this.reconPack=f}takeBinaryData(f){if(this.buffers.push(f),this.buffers.length===this.reconPack.attachments){const p=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),p}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(Jc)),Jc}var ps={},zp;function hv(){if(zp)return ps;zp=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.on=void 0;function e(t,r,n){return t.on(r,n),function(){t.off(r,n)}}return ps.on=e,ps}var Qp;function dv(){if(Qp)return ds;Qp=1;var e=fe&&fe.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(ds,"__esModule",{value:!0}),ds.Socket=void 0;const t=$f(),r=hv(),n=ho,o=e(br()).default("socket.io-client:socket"),a=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class s extends n.Emitter{constructor(l,u,d){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=l,this.nsp=u,d&&d.auth&&(this.auth=d.auth),this._opts=Object.assign({},d),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[r.on(l,"open",this.onopen.bind(this)),r.on(l,"packet",this.onpacket.bind(this)),r.on(l,"error",this.onerror.bind(this)),r.on(l,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...u){if(a.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(u.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(u),this;const d={type:t.PacketType.EVENT,data:u};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof u[u.length-1]=="function"){const p=this.ids++;o("emitting packet with ack id %d",p);const m=u.pop();this._registerAckCallback(p,m),d.id=p}const h=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!h||!this.connected)?o("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d),this.flags={},this}_registerAckCallback(l,u){var d;const h=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(h===void 0){this.acks[l]=u;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===l&&(o("removing packet with ack id %d from the buffer",l),this.sendBuffer.splice(p,1));o("event with ack id %d has timed out after %d ms",l,h),u.call(this,new Error("operation has timed out"))},h);this.acks[l]=(...p)=>{this.io.clearTimeoutFn(f),u.apply(this,[null,...p])}}emitWithAck(l,...u){const d=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((h,f)=>{u.push((p,m)=>d?p?f(p):h(m):h(p)),this.emit(l,...u)})}_addToQueue(l){let u;typeof l[l.length-1]=="function"&&(u=l.pop());const d={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((h,...f)=>d!==this._queue[0]?void 0:(h!==null?d.tryCount>this._opts.retries&&(o("packet [%d] is discarded after %d tries",d.id,d.tryCount),this._queue.shift(),u&&u(h)):(o("packet [%d] was successfully sent",d.id),this._queue.shift(),u&&u(null,...f)),d.pending=!1,this._drainQueue())),this._queue.push(d),this._drainQueue()}_drainQueue(l=!1){if(o("draining queue"),!this.connected||this._queue.length===0)return;const u=this._queue[0];if(u.pending&&!l){o("packet [%d] has already been sent and is waiting for an ack",u.id);return}u.pending=!0,u.tryCount++,o("sending packet [%d] (try n°%d)",u.id,u.tryCount),this.flags=u.flags,this.emit.apply(this,u.args)}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){o("transport is open - connecting"),typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,u){o("close (%s)",l),this.connected=!1,delete this.id,this.emitReserved("disconnect",l,u)}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case t.PacketType.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case t.PacketType.EVENT:case t.PacketType.BINARY_EVENT:this.onevent(l);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(l);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const d=new Error(l.data.message);d.data=l.data.data,this.emitReserved("connect_error",d);break}}onevent(l){const u=l.data||[];o("emitting event %j",u),l.id!=null&&(o("attaching ack callback to event"),u.push(this.ack(l.id))),this.connected?this.emitEvent(u):this.receiveBuffer.push(Object.freeze(u))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const u=this._anyListeners.slice();for(const d of u)d.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const u=this;let d=!1;return function(...h){d||(d=!0,o("sending ack %j",h),u.packet({type:t.PacketType.ACK,id:l,data:h}))}}onack(l){const u=this.acks[l.id];typeof u=="function"?(o("calling ack %s with %j",l.id,l.data),u.apply(this,l.data),delete this.acks[l.id]):o("bad ack %s",l.id)}onconnect(l,u){o("socket connected with id %s",l),this.id=l,this.recovered=u&&this._pid===u,this._pid=u,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){o("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(o("performing disconnect (%s)",this.nsp),this.packet({type:t.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const u=this._anyListeners;for(let d=0;d<u.length;d++)if(l===u[d])return u.splice(d,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const u=this._anyOutgoingListeners;for(let d=0;d<u.length;d++)if(l===u[d])return u.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const u=this._anyOutgoingListeners.slice();for(const d of u)d.apply(this,l.data)}}}return ds.Socket=s,ds}var ms={},Yp;function sx(){if(Yp)return ms;Yp=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.Backoff=void 0;function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}return ms.Backoff=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),n=Math.floor(r*this.jitter*t);t=Math.floor(r*10)&1?t+n:t-n}return Math.min(t,this.max)|0},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t},ms}var Kp;function ax(){if(Kp)return hs;Kp=1;var e=fe&&fe.__createBinding||(Object.create?function(f,p,m,_){_===void 0&&(_=m),Object.defineProperty(f,_,{enumerable:!0,get:function(){return p[m]}})}:function(f,p,m,_){_===void 0&&(_=m),f[_]=p[m]}),t=fe&&fe.__setModuleDefault||(Object.create?function(f,p){Object.defineProperty(f,"default",{enumerable:!0,value:p})}:function(f,p){f.default=p}),r=fe&&fe.__importStar||function(f){if(f&&f.__esModule)return f;var p={};if(f!=null)for(var m in f)m!=="default"&&Object.prototype.hasOwnProperty.call(f,m)&&e(p,f,m);return t(p,f),p},n=fe&&fe.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(hs,"__esModule",{value:!0}),hs.Manager=void 0;const i=lv(),o=dv(),a=r($f()),s=hv(),c=sx(),l=ho,d=n(br()).default("socket.io-client:manager");class h extends l.Emitter{constructor(p,m){var _;super(),this.nsps={},this.subs=[],p&&typeof p=="object"&&(m=p,p=void 0),m=m||{},m.path=m.path||"/socket.io",this.opts=m,i.installTimerFunctions(this,m),this.reconnection(m.reconnection!==!1),this.reconnectionAttempts(m.reconnectionAttempts||1/0),this.reconnectionDelay(m.reconnectionDelay||1e3),this.reconnectionDelayMax(m.reconnectionDelayMax||5e3),this.randomizationFactor((_=m.randomizationFactor)!==null&&_!==void 0?_:.5),this.backoff=new c.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this._readyState="closed",this.uri=p;const S=m.parser||a;this.encoder=new S.Encoder,this.decoder=new S.Decoder,this._autoConnect=m.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(p){return arguments.length?(this._reconnection=!!p,this):this._reconnection}reconnectionAttempts(p){return p===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=p,this)}reconnectionDelay(p){var m;return p===void 0?this._reconnectionDelay:(this._reconnectionDelay=p,(m=this.backoff)===null||m===void 0||m.setMin(p),this)}randomizationFactor(p){var m;return p===void 0?this._randomizationFactor:(this._randomizationFactor=p,(m=this.backoff)===null||m===void 0||m.setJitter(p),this)}reconnectionDelayMax(p){var m;return p===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=p,(m=this.backoff)===null||m===void 0||m.setMax(p),this)}timeout(p){return arguments.length?(this._timeout=p,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(p){if(d("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=new i.Socket(this.uri,this.opts);const m=this.engine,_=this;this._readyState="opening",this.skipReconnect=!1;const S=s.on(m,"open",function(){_.onopen(),p&&p()}),v=T=>{d("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",T),p?p(T):this.maybeReconnectOnOpen()},b=s.on(m,"error",v);if(this._timeout!==!1){const T=this._timeout;d("connect attempt will timeout after %d",T);const w=this.setTimeoutFn(()=>{d("connect attempt timed out after %d",T),S(),v(new Error("timeout")),m.close()},T);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(S),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){d("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(s.on(p,"ping",this.onping.bind(this)),s.on(p,"data",this.ondata.bind(this)),s.on(p,"error",this.onerror.bind(this)),s.on(p,"close",this.onclose.bind(this)),s.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(p){try{this.decoder.add(p)}catch(m){this.onclose("parse error",m)}}ondecoded(p){i.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){d("error",p),this.emitReserved("error",p)}socket(p,m){let _=this.nsps[p];return _?this._autoConnect&&!_.active&&_.connect():(_=new o.Socket(this,p,m),this.nsps[p]=_),_}_destroy(p){const m=Object.keys(this.nsps);for(const _ of m)if(this.nsps[_].active){d("socket %s is still active, skipping close",_);return}this._close()}_packet(p){d("writing packet %j",p);const m=this.encoder.encode(p);for(let _=0;_<m.length;_++)this.engine.write(m[_],p.options)}cleanup(){d("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){d("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){d("closed due to %s",p),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",p,m),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const p=this;if(this.backoff.attempts>=this._reconnectionAttempts)d("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();d("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const _=this.setTimeoutFn(()=>{p.skipReconnect||(d("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(S=>{S?(d("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",S)):(d("reconnect success"),p.onreconnect())}))},m);this.opts.autoUnref&&_.unref(),this.subs.push(()=>{this.clearTimeoutFn(_)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return hs.Manager=h,hs}var Xp;function ux(){return Xp||(Xp=1,function(e,t){var r=fe&&fe.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const n=ix(),i=ax();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return i.Manager}});const o=dv();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return o.Socket}});const s=r(br()).default("socket.io-client"),c={};function l(d,h){typeof d=="object"&&(h=d,d=void 0),h=h||{};const f=n.url(d,h.path||"/socket.io"),p=f.source,m=f.id,_=f.path,S=c[m]&&_ in c[m].nsps,v=h.forceNew||h["force new connection"]||h.multiplex===!1||S;let b;return v?(s("ignoring socket cache for %s",p),b=new i.Manager(p,h)):(c[m]||(s("new io instance for %s",p),c[m]=new i.Manager(p,h)),b=c[m]),f.query&&!h.query&&(h.query=f.queryKey),b.socket(f.path,h)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:i.Manager,Socket:o.Socket,io:l,connect:l});var u=$f();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l}(Ra,Ra.exports)),Ra.exports}var Zc={},gs={},Jp;function cx(){if(Jp)return gs;Jp=1,gs.byteLength=s,gs.toByteArray=l,gs.fromByteArray=h;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function a(f){var p=f.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=f.indexOf("=");m===-1&&(m=p);var _=m===p?0:4-m%4;return[m,_]}function s(f){var p=a(f),m=p[0],_=p[1];return(m+_)*3/4-_}function c(f,p,m){return(p+m)*3/4-m}function l(f){var p,m=a(f),_=m[0],S=m[1],v=new r(c(f,_,S)),b=0,T=S>0?_-4:_,w;for(w=0;w<T;w+=4)p=t[f.charCodeAt(w)]<<18|t[f.charCodeAt(w+1)]<<12|t[f.charCodeAt(w+2)]<<6|t[f.charCodeAt(w+3)],v[b++]=p>>16&255,v[b++]=p>>8&255,v[b++]=p&255;return S===2&&(p=t[f.charCodeAt(w)]<<2|t[f.charCodeAt(w+1)]>>4,v[b++]=p&255),S===1&&(p=t[f.charCodeAt(w)]<<10|t[f.charCodeAt(w+1)]<<4|t[f.charCodeAt(w+2)]>>2,v[b++]=p>>8&255,v[b++]=p&255),v}function u(f){return e[f>>18&63]+e[f>>12&63]+e[f>>6&63]+e[f&63]}function d(f,p,m){for(var _,S=[],v=p;v<m;v+=3)_=(f[v]<<16&16711680)+(f[v+1]<<8&65280)+(f[v+2]&255),S.push(u(_));return S.join("")}function h(f){for(var p,m=f.length,_=m%3,S=[],v=16383,b=0,T=m-_;b<T;b+=v)S.push(d(f,b,b+v>T?T:b+v));return _===1?(p=f[m-1],S.push(e[p>>2]+e[p<<4&63]+"==")):_===2&&(p=(f[m-2]<<8)+f[m-1],S.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),S.join("")}return gs}var Na={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Zp;function lx(){return Zp||(Zp=1,Na.read=function(e,t,r,n,i){var o,a,s=i*8-n-1,c=(1<<s)-1,l=c>>1,u=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=o*256+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=a*256+e[t+d],d+=h,u-=8);if(o===0)o=1-l;else{if(o===c)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-l}return(f?-1:1)*a*Math.pow(2,o-n)},Na.write=function(e,t,r,n,i,o){var a,s,c,l=o*8-i-1,u=(1<<l)-1,d=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=h/c:t+=h*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=s&255,f+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+f]=a&255,f+=p,a/=256,l-=8);e[r+f-p]|=m*128}),Na}/*!
57
+ * The buffer module from node.js, for the browser.
58
+ *
59
+ * @author Feross Aboukhadijeh <https://feross.org>
60
+ * @license MIT
61
+ */var em;function fx(){return em||(em=1,function(e){const t=cx(),r=lx(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const O=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(O,g),O.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(O){if(O>i)throw new RangeError('The value "'+O+'" is invalid for option "size"');const g=new Uint8Array(O);return Object.setPrototypeOf(g,s.prototype),g}function s(O,g,E){if(typeof O=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(O)}return c(O,g,E)}s.poolSize=8192;function c(O,g,E){if(typeof O=="string")return h(O,g);if(ArrayBuffer.isView(O))return p(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(Ze(O,ArrayBuffer)||O&&Ze(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ze(O,SharedArrayBuffer)||O&&Ze(O.buffer,SharedArrayBuffer)))return m(O,g,E);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=O.valueOf&&O.valueOf();if(C!=null&&C!==O)return s.from(C,g,E);const M=_(O);if(M)return M;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return s.from(O[Symbol.toPrimitive]("string"),g,E);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}s.from=function(O,g,E){return c(O,g,E)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function u(O,g,E){return l(O),O<=0?a(O):g!==void 0?typeof E=="string"?a(O).fill(g,E):a(O).fill(g):a(O)}s.alloc=function(O,g,E){return u(O,g,E)};function d(O){return l(O),a(O<0?0:S(O)|0)}s.allocUnsafe=function(O){return d(O)},s.allocUnsafeSlow=function(O){return d(O)};function h(O,g){if((typeof g!="string"||g==="")&&(g="utf8"),!s.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const E=b(O,g)|0;let C=a(E);const M=C.write(O,g);return M!==E&&(C=C.slice(0,M)),C}function f(O){const g=O.length<0?0:S(O.length)|0,E=a(g);for(let C=0;C<g;C+=1)E[C]=O[C]&255;return E}function p(O){if(Ze(O,Uint8Array)){const g=new Uint8Array(O);return m(g.buffer,g.byteOffset,g.byteLength)}return f(O)}function m(O,g,E){if(g<0||O.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<g+(E||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&E===void 0?C=new Uint8Array(O):E===void 0?C=new Uint8Array(O,g):C=new Uint8Array(O,g,E),Object.setPrototypeOf(C,s.prototype),C}function _(O){if(s.isBuffer(O)){const g=S(O.length)|0,E=a(g);return E.length===0||O.copy(E,0,0,g),E}if(O.length!==void 0)return typeof O.length!="number"||zt(O.length)?a(0):f(O);if(O.type==="Buffer"&&Array.isArray(O.data))return f(O.data)}function S(O){if(O>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return O|0}function v(O){return+O!=O&&(O=0),s.alloc(+O)}s.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==s.prototype},s.compare=function(g,E){if(Ze(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),Ze(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),!s.isBuffer(g)||!s.isBuffer(E))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===E)return 0;let C=g.length,M=E.length;for(let j=0,z=Math.min(C,M);j<z;++j)if(g[j]!==E[j]){C=g[j],M=E[j];break}return C<M?-1:M<C?1:0},s.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(g,E){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return s.alloc(0);let C;if(E===void 0)for(E=0,C=0;C<g.length;++C)E+=g[C].length;const M=s.allocUnsafe(E);let j=0;for(C=0;C<g.length;++C){let z=g[C];if(Ze(z,Uint8Array))j+z.length>M.length?(s.isBuffer(z)||(z=s.from(z)),z.copy(M,j)):Uint8Array.prototype.set.call(M,z,j);else if(s.isBuffer(z))z.copy(M,j);else throw new TypeError('"list" argument must be an Array of Buffers');j+=z.length}return M};function b(O,g){if(s.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||Ze(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);const E=O.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&E===0)return 0;let M=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return E;case"utf8":case"utf-8":return er(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E*2;case"hex":return E>>>1;case"base64":return Wt(O).length;default:if(M)return C?-1:er(O).length;g=(""+g).toLowerCase(),M=!0}}s.byteLength=b;function T(O,g,E){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0,g>>>=0,E<=g))return"";for(O||(O="utf8");;)switch(O){case"hex":return he(this,g,E);case"utf8":case"utf-8":return ie(this,g,E);case"ascii":return Q(this,g,E);case"latin1":case"binary":return ee(this,g,E);case"base64":return Y(this,g,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,g,E);default:if(C)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),C=!0}}s.prototype._isBuffer=!0;function w(O,g,E){const C=O[g];O[g]=O[E],O[E]=C}s.prototype.swap16=function(){const g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let E=0;E<g;E+=2)w(this,E,E+1);return this},s.prototype.swap32=function(){const g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let E=0;E<g;E+=4)w(this,E,E+3),w(this,E+1,E+2);return this},s.prototype.swap64=function(){const g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let E=0;E<g;E+=8)w(this,E,E+7),w(this,E+1,E+6),w(this,E+2,E+5),w(this,E+3,E+4);return this},s.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?ie(this,0,g):T.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(g){if(!s.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:s.compare(this,g)===0},s.prototype.inspect=function(){let g="";const E=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,E).replace(/(.{2})/g,"$1 ").trim(),this.length>E&&(g+=" ... "),"<Buffer "+g+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(g,E,C,M,j){if(Ze(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),!s.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(E===void 0&&(E=0),C===void 0&&(C=g?g.length:0),M===void 0&&(M=0),j===void 0&&(j=this.length),E<0||C>g.length||M<0||j>this.length)throw new RangeError("out of range index");if(M>=j&&E>=C)return 0;if(M>=j)return-1;if(E>=C)return 1;if(E>>>=0,C>>>=0,M>>>=0,j>>>=0,this===g)return 0;let z=j-M,me=C-E;const Ce=Math.min(z,me),Re=this.slice(M,j),Pe=g.slice(E,C);for(let Ee=0;Ee<Ce;++Ee)if(Re[Ee]!==Pe[Ee]){z=Re[Ee],me=Pe[Ee];break}return z<me?-1:me<z?1:0};function N(O,g,E,C,M){if(O.length===0)return-1;if(typeof E=="string"?(C=E,E=0):E>2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,zt(E)&&(E=M?0:O.length-1),E<0&&(E=O.length+E),E>=O.length){if(M)return-1;E=O.length-1}else if(E<0)if(M)E=0;else return-1;if(typeof g=="string"&&(g=s.from(g,C)),s.isBuffer(g))return g.length===0?-1:R(O,g,E,C,M);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(O,g,E):Uint8Array.prototype.lastIndexOf.call(O,g,E):R(O,[g],E,C,M);throw new TypeError("val must be string, number or Buffer")}function R(O,g,E,C,M){let j=1,z=O.length,me=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(O.length<2||g.length<2)return-1;j=2,z/=2,me/=2,E/=2}function Ce(Pe,Ee){return j===1?Pe[Ee]:Pe.readUInt16BE(Ee*j)}let Re;if(M){let Pe=-1;for(Re=E;Re<z;Re++)if(Ce(O,Re)===Ce(g,Pe===-1?0:Re-Pe)){if(Pe===-1&&(Pe=Re),Re-Pe+1===me)return Pe*j}else Pe!==-1&&(Re-=Re-Pe),Pe=-1}else for(E+me>z&&(E=z-me),Re=E;Re>=0;Re--){let Pe=!0;for(let Ee=0;Ee<me;Ee++)if(Ce(O,Re+Ee)!==Ce(g,Ee)){Pe=!1;break}if(Pe)return Re}return-1}s.prototype.includes=function(g,E,C){return this.indexOf(g,E,C)!==-1},s.prototype.indexOf=function(g,E,C){return N(this,g,E,C,!0)},s.prototype.lastIndexOf=function(g,E,C){return N(this,g,E,C,!1)};function L(O,g,E,C){E=Number(E)||0;const M=O.length-E;C?(C=Number(C),C>M&&(C=M)):C=M;const j=g.length;C>j/2&&(C=j/2);let z;for(z=0;z<C;++z){const me=parseInt(g.substr(z*2,2),16);if(zt(me))return z;O[E+z]=me}return z}function $(O,g,E,C){return Mt(er(g,O.length-E),O,E,C)}function G(O,g,E,C){return Mt(kt(g),O,E,C)}function q(O,g,E,C){return Mt(Wt(g),O,E,C)}function H(O,g,E,C){return Mt(yn(g,O.length-E),O,E,C)}s.prototype.write=function(g,E,C,M){if(E===void 0)M="utf8",C=this.length,E=0;else if(C===void 0&&typeof E=="string")M=E,C=this.length,E=0;else if(isFinite(E))E=E>>>0,isFinite(C)?(C=C>>>0,M===void 0&&(M="utf8")):(M=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const j=this.length-E;if((C===void 0||C>j)&&(C=j),g.length>0&&(C<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");let z=!1;for(;;)switch(M){case"hex":return L(this,g,E,C);case"utf8":case"utf-8":return $(this,g,E,C);case"ascii":case"latin1":case"binary":return G(this,g,E,C);case"base64":return q(this,g,E,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,g,E,C);default:if(z)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),z=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(O,g,E){return g===0&&E===O.length?t.fromByteArray(O):t.fromByteArray(O.slice(g,E))}function ie(O,g,E){E=Math.min(O.length,E);const C=[];let M=g;for(;M<E;){const j=O[M];let z=null,me=j>239?4:j>223?3:j>191?2:1;if(M+me<=E){let Ce,Re,Pe,Ee;switch(me){case 1:j<128&&(z=j);break;case 2:Ce=O[M+1],(Ce&192)===128&&(Ee=(j&31)<<6|Ce&63,Ee>127&&(z=Ee));break;case 3:Ce=O[M+1],Re=O[M+2],(Ce&192)===128&&(Re&192)===128&&(Ee=(j&15)<<12|(Ce&63)<<6|Re&63,Ee>2047&&(Ee<55296||Ee>57343)&&(z=Ee));break;case 4:Ce=O[M+1],Re=O[M+2],Pe=O[M+3],(Ce&192)===128&&(Re&192)===128&&(Pe&192)===128&&(Ee=(j&15)<<18|(Ce&63)<<12|(Re&63)<<6|Pe&63,Ee>65535&&Ee<1114112&&(z=Ee))}}z===null?(z=65533,me=1):z>65535&&(z-=65536,C.push(z>>>10&1023|55296),z=56320|z&1023),C.push(z),M+=me}return k(C)}const K=4096;function k(O){const g=O.length;if(g<=K)return String.fromCharCode.apply(String,O);let E="",C=0;for(;C<g;)E+=String.fromCharCode.apply(String,O.slice(C,C+=K));return E}function Q(O,g,E){let C="";E=Math.min(O.length,E);for(let M=g;M<E;++M)C+=String.fromCharCode(O[M]&127);return C}function ee(O,g,E){let C="";E=Math.min(O.length,E);for(let M=g;M<E;++M)C+=String.fromCharCode(O[M]);return C}function he(O,g,E){const C=O.length;(!g||g<0)&&(g=0),(!E||E<0||E>C)&&(E=C);let M="";for(let j=g;j<E;++j)M+=yt[O[j]];return M}function Z(O,g,E){const C=O.slice(g,E);let M="";for(let j=0;j<C.length-1;j+=2)M+=String.fromCharCode(C[j]+C[j+1]*256);return M}s.prototype.slice=function(g,E){const C=this.length;g=~~g,E=E===void 0?C:~~E,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),E<0?(E+=C,E<0&&(E=0)):E>C&&(E=C),E<g&&(E=g);const M=this.subarray(g,E);return Object.setPrototypeOf(M,s.prototype),M};function X(O,g,E){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+g>E)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=this[g],j=1,z=0;for(;++z<E&&(j*=256);)M+=this[g+z]*j;return M},s.prototype.readUintBE=s.prototype.readUIntBE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=this[g+--E],j=1;for(;E>0&&(j*=256);)M+=this[g+--E]*j;return M},s.prototype.readUint8=s.prototype.readUInt8=function(g,E){return g=g>>>0,E||X(g,1,this.length),this[g]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(g,E){return g=g>>>0,E||X(g,2,this.length),this[g]|this[g+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(g,E){return g=g>>>0,E||X(g,2,this.length),this[g]<<8|this[g+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(g,E){return g=g>>>0,E||X(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},s.prototype.readBigUInt64LE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=E+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,j=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(M)+(BigInt(j)<<BigInt(32))}),s.prototype.readBigUInt64BE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=E*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],j=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(M)<<BigInt(32))+BigInt(j)}),s.prototype.readIntLE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=this[g],j=1,z=0;for(;++z<E&&(j*=256);)M+=this[g+z]*j;return j*=128,M>=j&&(M-=Math.pow(2,8*E)),M},s.prototype.readIntBE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=E,j=1,z=this[g+--M];for(;M>0&&(j*=256);)z+=this[g+--M]*j;return j*=128,z>=j&&(z-=Math.pow(2,8*E)),z},s.prototype.readInt8=function(g,E){return g=g>>>0,E||X(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},s.prototype.readInt16LE=function(g,E){g=g>>>0,E||X(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},s.prototype.readInt16BE=function(g,E){g=g>>>0,E||X(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},s.prototype.readInt32LE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},s.prototype.readInt32BE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},s.prototype.readBigInt64LE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(M)<<BigInt(32))+BigInt(E+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),s.prototype.readBigInt64BE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=(E<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(M)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),s.prototype.readFloatLE=function(g,E){return g=g>>>0,E||X(g,4,this.length),r.read(this,g,!0,23,4)},s.prototype.readFloatBE=function(g,E){return g=g>>>0,E||X(g,4,this.length),r.read(this,g,!1,23,4)},s.prototype.readDoubleLE=function(g,E){return g=g>>>0,E||X(g,8,this.length),r.read(this,g,!0,52,8)},s.prototype.readDoubleBE=function(g,E){return g=g>>>0,E||X(g,8,this.length),r.read(this,g,!1,52,8)};function le(O,g,E,C,M,j){if(!s.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>M||g<j)throw new RangeError('"value" argument is out of bounds');if(E+C>O.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(g,E,C,M){if(g=+g,E=E>>>0,C=C>>>0,!M){const me=Math.pow(2,8*C)-1;le(this,g,E,C,me,0)}let j=1,z=0;for(this[E]=g&255;++z<C&&(j*=256);)this[E+z]=g/j&255;return E+C},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(g,E,C,M){if(g=+g,E=E>>>0,C=C>>>0,!M){const me=Math.pow(2,8*C)-1;le(this,g,E,C,me,0)}let j=C-1,z=1;for(this[E+j]=g&255;--j>=0&&(z*=256);)this[E+j]=g/z&255;return E+C},s.prototype.writeUint8=s.prototype.writeUInt8=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,1,255,0),this[E]=g&255,E+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,65535,0),this[E]=g&255,this[E+1]=g>>>8,E+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,65535,0),this[E]=g>>>8,this[E+1]=g&255,E+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,4294967295,0),this[E+3]=g>>>24,this[E+2]=g>>>16,this[E+1]=g>>>8,this[E]=g&255,E+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,4294967295,0),this[E]=g>>>24,this[E+1]=g>>>16,this[E+2]=g>>>8,this[E+3]=g&255,E+4};function de(O,g,E,C,M){oe(g,C,M,O,E,7);let j=Number(g&BigInt(4294967295));O[E++]=j,j=j>>8,O[E++]=j,j=j>>8,O[E++]=j,j=j>>8,O[E++]=j;let z=Number(g>>BigInt(32)&BigInt(4294967295));return O[E++]=z,z=z>>8,O[E++]=z,z=z>>8,O[E++]=z,z=z>>8,O[E++]=z,E}function Ve(O,g,E,C,M){oe(g,C,M,O,E,7);let j=Number(g&BigInt(4294967295));O[E+7]=j,j=j>>8,O[E+6]=j,j=j>>8,O[E+5]=j,j=j>>8,O[E+4]=j;let z=Number(g>>BigInt(32)&BigInt(4294967295));return O[E+3]=z,z=z>>8,O[E+2]=z,z=z>>8,O[E+1]=z,z=z>>8,O[E]=z,E+8}s.prototype.writeBigUInt64LE=at(function(g,E=0){return de(this,g,E,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=at(function(g,E=0){return Ve(this,g,E,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(g,E,C,M){if(g=+g,E=E>>>0,!M){const Ce=Math.pow(2,8*C-1);le(this,g,E,C,Ce-1,-Ce)}let j=0,z=1,me=0;for(this[E]=g&255;++j<C&&(z*=256);)g<0&&me===0&&this[E+j-1]!==0&&(me=1),this[E+j]=(g/z>>0)-me&255;return E+C},s.prototype.writeIntBE=function(g,E,C,M){if(g=+g,E=E>>>0,!M){const Ce=Math.pow(2,8*C-1);le(this,g,E,C,Ce-1,-Ce)}let j=C-1,z=1,me=0;for(this[E+j]=g&255;--j>=0&&(z*=256);)g<0&&me===0&&this[E+j+1]!==0&&(me=1),this[E+j]=(g/z>>0)-me&255;return E+C},s.prototype.writeInt8=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,1,127,-128),g<0&&(g=255+g+1),this[E]=g&255,E+1},s.prototype.writeInt16LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,32767,-32768),this[E]=g&255,this[E+1]=g>>>8,E+2},s.prototype.writeInt16BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,32767,-32768),this[E]=g>>>8,this[E+1]=g&255,E+2},s.prototype.writeInt32LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,2147483647,-2147483648),this[E]=g&255,this[E+1]=g>>>8,this[E+2]=g>>>16,this[E+3]=g>>>24,E+4},s.prototype.writeInt32BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[E]=g>>>24,this[E+1]=g>>>16,this[E+2]=g>>>8,this[E+3]=g&255,E+4},s.prototype.writeBigInt64LE=at(function(g,E=0){return de(this,g,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=at(function(g,E=0){return Ve(this,g,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(O,g,E,C,M,j){if(E+C>O.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function ae(O,g,E,C,M){return g=+g,E=E>>>0,M||te(O,g,E,4),r.write(O,g,E,C,23,4),E+4}s.prototype.writeFloatLE=function(g,E,C){return ae(this,g,E,!0,C)},s.prototype.writeFloatBE=function(g,E,C){return ae(this,g,E,!1,C)};function De(O,g,E,C,M){return g=+g,E=E>>>0,M||te(O,g,E,8),r.write(O,g,E,C,52,8),E+8}s.prototype.writeDoubleLE=function(g,E,C){return De(this,g,E,!0,C)},s.prototype.writeDoubleBE=function(g,E,C){return De(this,g,E,!1,C)},s.prototype.copy=function(g,E,C,M){if(!s.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!M&&M!==0&&(M=this.length),E>=g.length&&(E=g.length),E||(E=0),M>0&&M<C&&(M=C),M===C||g.length===0||this.length===0)return 0;if(E<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),g.length-E<M-C&&(M=g.length-E+C);const j=M-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(E,C,M):Uint8Array.prototype.set.call(g,this.subarray(C,M),E),j},s.prototype.fill=function(g,E,C,M){if(typeof g=="string"){if(typeof E=="string"?(M=E,E=0,C=this.length):typeof C=="string"&&(M=C,C=this.length),M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!s.isEncoding(M))throw new TypeError("Unknown encoding: "+M);if(g.length===1){const z=g.charCodeAt(0);(M==="utf8"&&z<128||M==="latin1")&&(g=z)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(E<0||this.length<E||this.length<C)throw new RangeError("Out of range index");if(C<=E)return this;E=E>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let j;if(typeof g=="number")for(j=E;j<C;++j)this[j]=g;else{const z=s.isBuffer(g)?g:s.from(g,M),me=z.length;if(me===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(j=0;j<C-E;++j)this[j+E]=z[j%me]}return this};const Ie={};function Tt(O,g,E){Ie[O]=class extends E{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(M){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:M,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(O,g){return`The "${O}" argument must be of type number. Received type ${typeof g}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(O,g,E){let C=`The value of "${O}" is out of range.`,M=E;return Number.isInteger(E)&&Math.abs(E)>2**32?M=Ct(String(E)):typeof E=="bigint"&&(M=String(E),(E>BigInt(2)**BigInt(32)||E<-(BigInt(2)**BigInt(32)))&&(M=Ct(M)),M+="n"),C+=` It must be ${g}. Received ${M}`,C},RangeError);function Ct(O){let g="",E=O.length;const C=O[0]==="-"?1:0;for(;E>=C+4;E-=3)g=`_${O.slice(E-3,E)}${g}`;return`${O.slice(0,E)}${g}`}function Gt(O,g,E){st(g,"offset"),(O[g]===void 0||O[g+E]===void 0)&&Je(g,O.length-(E+1))}function oe(O,g,E,C,M,j){if(O>E||O<g){const z=typeof g=="bigint"?"n":"";let me;throw j>3?g===0||g===BigInt(0)?me=`>= 0${z} and < 2${z} ** ${(j+1)*8}${z}`:me=`>= -(2${z} ** ${(j+1)*8-1}${z}) and < 2 ** ${(j+1)*8-1}${z}`:me=`>= ${g}${z} and <= ${E}${z}`,new Ie.ERR_OUT_OF_RANGE("value",me,O)}Gt(C,M,j)}function st(O,g){if(typeof O!="number")throw new Ie.ERR_INVALID_ARG_TYPE(g,"number",O)}function Je(O,g,E){throw Math.floor(O)!==O?(st(O,E),new Ie.ERR_OUT_OF_RANGE(E||"offset","an integer",O)):g<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE(E||"offset",`>= ${E?1:0} and <= ${g}`,O)}const Vt=/[^+/0-9A-Za-z-_]/g;function wr(O){if(O=O.split("=")[0],O=O.trim().replace(Vt,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function er(O,g){g=g||1/0;let E;const C=O.length;let M=null;const j=[];for(let z=0;z<C;++z){if(E=O.charCodeAt(z),E>55295&&E<57344){if(!M){if(E>56319){(g-=3)>-1&&j.push(239,191,189);continue}else if(z+1===C){(g-=3)>-1&&j.push(239,191,189);continue}M=E;continue}if(E<56320){(g-=3)>-1&&j.push(239,191,189),M=E;continue}E=(M-55296<<10|E-56320)+65536}else M&&(g-=3)>-1&&j.push(239,191,189);if(M=null,E<128){if((g-=1)<0)break;j.push(E)}else if(E<2048){if((g-=2)<0)break;j.push(E>>6|192,E&63|128)}else if(E<65536){if((g-=3)<0)break;j.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((g-=4)<0)break;j.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return j}function kt(O){const g=[];for(let E=0;E<O.length;++E)g.push(O.charCodeAt(E)&255);return g}function yn(O,g){let E,C,M;const j=[];for(let z=0;z<O.length&&!((g-=2)<0);++z)E=O.charCodeAt(z),C=E>>8,M=E%256,j.push(M),j.push(C);return j}function Wt(O){return t.toByteArray(wr(O))}function Mt(O,g,E,C){let M;for(M=0;M<C&&!(M+E>=g.length||M>=O.length);++M)g[M+E]=O[M];return M}function Ze(O,g){return O instanceof g||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===g.name}function zt(O){return O!==O}const yt=function(){const O="0123456789abcdef",g=new Array(256);for(let E=0;E<16;++E){const C=E*16;for(let M=0;M<16;++M)g[C+M]=O[E]+O[M]}return g}();function at(O){return typeof BigInt>"u"?vn:O}function vn(){throw new Error("BigInt not supported")}}(Zc)),Zc}(function(e,t){(function(r,n){e.exports=n(_T(),IT(),DT(),Ag(),GT,ux(),fx())})(fe,function(r,n,i,o,a,s,c){return function(){var l={809:function(f){f.exports=r},30:function(f){f.exports=n},36:function(f){f.exports=i},300:function(f){f.exports=o},408:function(f){f.exports=c},25:function(f){f.exports=a},130:function(f){f.exports=s}},u={};function d(f){var p=u[f];if(p!==void 0)return p.exports;var m=u[f]={exports:{}};return l[f](m,m.exports,d),m.exports}d.n=function(f){var p=f&&f.__esModule?function(){return f.default}:function(){return f};return d.d(p,{a:p}),p},d.d=function(f,p){for(var m in p)d.o(p,m)&&!d.o(f,m)&&Object.defineProperty(f,m,{enumerable:!0,get:p[m]})},d.o=function(f,p){return Object.prototype.hasOwnProperty.call(f,p)},d.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var h={};return function(){d.r(h),d.d(h,{assets:function(){return k},auth:function(){return X},buildAnswer:function(){return IE},buildCarouselCard:function(){return NE},buildQuestion:function(){return Ge},carouselCards:function(){return Si},contentInteraction:function(){return at},decodeBase64:function(){return kE},default:function(){return ME},editorialPages:function(){return W},features:function(){return E},getEntries:function(){return f.getEntries},getEntry:function(){return f.getEntry},management:function(){return _n},payments:function(){return Sn},people:function(){return rr},peopleEngagement:function(){return zr},qaQuestions:function(){return ct},reportError:function(){return p.reportError},search:function(){return bi}});var f=d(809),p=d(30),m=d(36),_={APOLITICAL:{WEBSITES:{LIVE:"https://apolitical.co",LOCALHOST:"localhost",STAGING:/https:\/\/([\w|\d|-]+)\.apolitical\.co/i,STAGING_SPLITTER:"-"},ENVIRONMENTS:{PRODUCTION:"live",LOCAL:"local"}},APIS:{ASSETS_API:{BASE_URL:"/api/assets-api",ENDPOINTS:{USERS:"/users",CERTIFICATES:"/certificates"}},AUTH_API:{BASE_URL:"/api/auth-api",ENDPOINTS:{USER_PASSWORD:"/password",USERS:"/users"}},CONTENT_INTERACTION_API:{BASE_URL:"/api/content-interaction-api",ENDPOINTS:{QUESTIONS:"/questions",ANSWERS:"/answers",REPLIES:"/replies",LIKES:"/likes"}},FEATURES_API:{BASE_URL:"/api/features-api",ENDPOINTS:{FLAGS:"/features"}},MANAGEMENT_API:{BASE_URL:"/api/management-api",ENDPOINTS:{ACCOUNTS:"/accounts",EVENT_REGISTRATIONS:"/event-registrations",LOGINS:"/logins",LOGIN_PASSWORDLESS:"/passwordless",BULK_ENROLMENTS:"/bulk-enrolments"}},PAYMENTS_API:{BASE_URL:"/api/payments-api",BASE_URL_V2:"/api/payments-api/v2",ENDPOINTS:{PRODUCTS:"/products"}},PEOPLE_API:{BASE_URL:"/api/people-api",BASE_URL_V2:"/api/people-api/v2",ENDPOINTS:{BULK_ENROLMENTS:"/bulk-enrolments",REGISTRATIONS:"/registrations",USERS:"/users",USER_ANSWERS:"/answers",USER_COURSES:"/courses",USER_EVENTS:"/events",USER_LIKES:"/likes",USER_LESSONS:"/lessons",USER_PRODUCTS:"/products",USER_RATINGS:"/ratings",USER_SUBSCRIPTIONS:"/subscriptions"}},PEOPLE_ENGAGEMENT_API:{BASE_URL:"/api/people-engagement-api",ENDPOINTS:{ENQUIRY_EMAILS:"/enquiry-emails",USERS:"/users",USER_PROPERTIES:"/properties"}},SEARCH_API:{BASE_URL:"/api/search-api",ENDPOINTS:{SEARCH:"/search"}}},CONTENTFUL:{ARTICLES:{TYPE:"solutionArticle"},CAROUSELS:{CARD_TYPES:{solutionArticle:{INCLUDE:1,SELECT:"fields.authorIds,fields.authorTag,fields.image,fields.publishedDate,fields.readingTime,fields.slug,fields.title"},microcourse:{INCLUDE:2,SELECT:"fields.banner,fields.freeCourse,fields.partnershipDetails,fields.slug,fields.title"},event:{INCLUDE:1,SELECT:"fields.bannerImage,fields.defaultStartDate,fields.slug,fields.speakers,fields.title,fields.isEventOngoing"},listPage:{INCLUDE:1,SELECT:"fields.hero,fields.slug,fields.title"},qaQuestion:{INCLUDE:0,SELECT:"fields.answers,fields.authorId,fields.slug,fields.title,sys.createdAt,fields.projectNames"},learningHub:{INCLUDE:1,SELECT:"fields.bannerSection,fields.customLabel,fields.slug,fields.title"}}},COURSES:{TYPE:"microcourse"},EDITORIAL_PAGES:{INCLUDE:1,SELECT:"fields.carousels,fields.slug",TYPE:"editorialPage"},EVENTS:{TYPE:"event"},LISTS:{TYPE:"listPage"},QUESTIONS:{TYPE:"qaQuestion",INCLUDE:1,LIMIT:10,ORDER:"-sys.createdAt",SELECT:"sys.createdAt,sys.updatedAt,fields.title,fields.slug,fields.authorId,fields.answers,fields.isEdited,fields.projectNames",SKIP:0},ANSWERS:{TYPE:"qaAnswer"},REPLIES:{TYPE:"reply"},LEARNING_HUB:{TYPE:"learningHub"}},HUBSPOT:{ENVIRONMENTS_MAPPING:{local:"SANDBOX",beta:"SANDBOX",rc:"SANDBOX",live:"LIVE"},EMAIL_IDS:{SANDBOX:{internalEmailId:49099078634,externalEmailId:55196526554},LIVE:{internalEmailId:55233583049,externalEmailId:55231159239}}},USERS:{MYSELF:"me"}};const{APOLITICAL:{WEBSITES:{LIVE:S,LOCALHOST:v,STAGING:b,STAGING_SPLITTER:T},ENVIRONMENTS:{PRODUCTION:w,LOCAL:N}}}=_,{HUBSPOT:{ENVIRONMENTS_MAPPING:R,EMAIL_IDS:L}}=_;let $={emailIds:{}};var G=d(300),q=d.n(G);const H=async F=>{try{const{message:B,response:D,request:V}=F;let re=B;return D?re+=` - The request was made and the server responded with ${JSON.stringify({status:D.status,data:D.data})}`:V&&(re+=" - The request was made but no response was received"),console.warn(re),await(0,p.reportError)(new Error(re)),re}catch(B){return console.warn(`Cannot handle error: ${B.message}`),B.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:ie,CERTIFICATES:K}}}}=_;var k={certificates:{create:async(F,B)=>{let D=[];try{const{data:V}=await q().post(`${Y}${ie}/${F}${K}`,B);V&&(D=V)}catch(V){await H(V)}return D}}};const{APIS:{AUTH_API:{BASE_URL:Q,ENDPOINTS:{USER_PASSWORD:ee,USERS:he}}},USERS:{MYSELF:Z}}=_;var X={userPassword:{update:async F=>{let B=null;try{B=await q().put(`${Q}${he}/${Z}${ee}`,F)}catch(D){B={message:(((D||{}).response||{}).data||{}).message},await H(D)}return B}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:le,ENDPOINTS:{ANSWERS:de,QUESTIONS:Ve,LIKES:te}}}}=_,ae=`${le}${Ve}`;var De={create:async({questionSlug:F},B)=>{try{await q().post(`${ae}/${encodeURIComponent(F)}${de}`,B)}catch(D){const V=await H(D);throw new Error(V)}},remove:async({questionSlug:F,answerSlug:B})=>{try{await q().delete(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}`)}catch(D){const V=await H(D);throw new Error(V)}},update:async({questionSlug:F,answerSlug:B},D)=>{try{return await q().put(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}`,D)}catch(V){const re=await H(V);throw new Error(re)}},like:async({questionSlug:F,answerSlug:B},D)=>{try{return await q().post(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}${te}`,D)}catch(V){const re=await H(V);throw new Error(re)}},unlike:async({questionSlug:F,answerSlug:B})=>{try{return await q().delete(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}${te}`)}catch(D){const V=await H(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Ie,ENDPOINTS:{QUESTIONS:Tt}}}}=_,Ct=`${Ie}${Tt}`;var Gt={create:async F=>{try{return await q().post(Ct,F)}catch(B){const D=await H(B);throw new Error(D)}},remove:async({questionSlug:F})=>{try{await q().delete(`${Ct}/${encodeURIComponent(F)}`)}catch(B){const D=await H(B);throw new Error(D)}},update:async({questionSlug:F},B)=>{try{return await q().put(`${Ct}/${encodeURIComponent(F)}`,B)}catch(D){const V=await H(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:oe,ENDPOINTS:{REPLIES:st,ANSWERS:Je,QUESTIONS:Vt,LIKES:wr}}}}=_,er=`${oe}${Vt}`,kt=({questionSlug:F,answerSlug:B,replySlug:D},V=!1)=>{let re=`${er}/${encodeURIComponent(F)}${Je}/${encodeURIComponent(B)}${st}`;return D&&(re=`${re}/${encodeURIComponent(D)}`,V&&(re=`${re}${wr}`)),re};var yn={create:async({questionSlug:F,answerSlug:B},D)=>{try{return await q().post(kt({questionSlug:F,answerSlug:B}),D)}catch(V){const re=await H(V);throw new Error(re)}},update:async({questionSlug:F,answerSlug:B,replySlug:D},V)=>{try{return await q().put(kt({questionSlug:F,answerSlug:B,replySlug:D}),V)}catch(re){const Ne=await H(re);throw new Error(Ne)}},remove:async({questionSlug:F,answerSlug:B,replySlug:D})=>{try{await q().delete(kt({questionSlug:F,answerSlug:B,replySlug:D}))}catch(V){const re=await H(V);throw new Error(re)}},like:async({questionSlug:F,answerSlug:B,replySlug:D},V)=>{try{await q().post(kt({questionSlug:F,answerSlug:B,replySlug:D},!0),V)}catch(re){const Ne=await H(re);throw new Error(Ne)}},unlike:async({questionSlug:F,answerSlug:B,replySlug:D})=>{try{await q().delete(kt({questionSlug:F,answerSlug:B,replySlug:D},!0))}catch(V){const re=await H(V);throw new Error(re)}},getReplyUrl:kt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Wt,ENDPOINTS:{QUESTIONS:Mt,ANSWERS:Ze,LIKES:zt}}}}=_,yt=`${Wt}${Mt}`;var at={answers:De,questions:Gt,replies:yn,likes:{create:async(F,B)=>{try{return await q().post(`${yt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(B)}${zt}`)}catch(D){const V=await H(D);throw new Error(V)}},remove:async(F,B)=>{try{return await q().delete(`${yt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(B)}${zt}`)}catch(D){const V=await H(D);throw new Error(V)}}}};const{APIS:{FEATURES_API:{BASE_URL:vn,ENDPOINTS:{FLAGS:O}}}}=_,g=`${vn}${O}`;var E={flags:{read:async F=>{let B=null;try{const{data:D}=await q().get(`${g}/${encodeURIComponent(F)}`);D!=null&&D.name&&(D!=null&&D.featureState)&&(B=D)}catch(D){await H(D)}return B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:M}}}}=_;var j={create:async F=>{try{await q().post(`${C}${M}`,F)}catch(B){throw await H(B),B}},read:async F=>{let B=null;try{({data:B}=await q().get(`${C}${M}/${encodeURIComponent(F)}`))}catch(D){await H(D)}return B},update:async(F,B)=>{try{await q().put(`${C}${M}/${encodeURIComponent(F)}`,B)}catch(D){throw await H(D),D}}};const{APIS:{MANAGEMENT_API:{BASE_URL:z,ENDPOINTS:{BULK_ENROLMENTS:me}}}}=_;var Ce={create:async F=>{try{await q().post(`${z}${me}`,F)}catch(B){throw await H(B),B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Re,ENDPOINTS:{EVENT_REGISTRATIONS:Pe}}}}=_;var Ee={create:async F=>{try{await q().post(`${Re}${Pe}`,F)}catch(B){const D=await H(B);throw new Error(D)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Rt,ENDPOINTS:{LOGINS:Hr,LOGIN_PASSWORDLESS:En}}}}=_,Sr=`${Rt}${Hr}`;var _n={accounts:j,bulkEnrolments:Ce,eventRegistrations:Ee,passwordless:{update:async F=>{try{await q().put(`${Sr}/${encodeURIComponent(F)}${En}`)}catch(B){throw await H(B),B}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Tr,ENDPOINTS:{PRODUCTS:bn}}}}=_,wn=`${Tr}${bn}`;var Sn={products:{list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(wn,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:tr,ENDPOINTS:{BULK_ENROLMENTS:li}}}}=_;var Qt={list:async F=>{let B=[];try{const{data:D}=await q().get(`${tr}${li}`,{params:F});D&&D.length&&(B=D)}catch(D){await H(D)}return B}},Eo=d(25);const{OK:_o,MULTIPLE_CHOICES:bo,NOT_FOUND:fi,FORBIDDEN:Tn}=Eo.StatusCodes,We=F=>F>=_o&&F<bo||F===Tn||F===fi,{APIS:{PEOPLE_API:{BASE_URL_V2:xn,ENDPOINTS:{USERS:On}}}}=_,xr=async F=>{let B=null;try{const{data:D}=await q().get(`${xn}${On}/${encodeURIComponent(F)}`,{validateStatus:We});D&&D.id&&(B=D)}catch(D){await H(D)}return B},hi=async F=>{let B=[];try{if(F&&F.length<2)throw new Error("users list method requires at least two ids");const D=F.map(re=>`ids=${encodeURIComponent(re)}`).join("&"),V=await q().get(`${xn}${On}?${D}`,{validateStatus:We});V&&V.length&&(B=V)}catch(D){await H(D)}return B};var wo={read:xr,update:async(F,B)=>{let D=!1;try{const{data:V}=await q().put(`${xn}${On}/${encodeURIComponent(F)}`,B);D=!(!V||!V.id)}catch(V){await H(V)}return D},list:hi};const{APIS:{PEOPLE_API:{BASE_URL_V2:et,ENDPOINTS:{USERS:So,USER_LIKES:To}}},USERS:{MYSELF:xo}}=_,Oo=`${et}${So}/${xo}${To}`,An=async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(Oo,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B};var ht={list:An},Ao={authors:{readQuestionAuthors:async(F,B,D)=>{try{if(F.author=await xr(F.authorId),F.answers&&F.answers.length&&!D.ignoreAnswersAuthors){F.answers.sort((re,Ne)=>new Date(Ne.updatedAt)-new Date(re.updatedAt)),F.totalAnswers=F.answers.length;let V=F.answers;if(D.limit&&D.pageNumber){const re=D.limit*(D.pageNumber-1);V=F.answers.slice(re,re+D.limit)}for(let re of V){re.author=re.authorId&&await xr(re.authorId)||{};const[Ne]=B?await An({contentType:_.CONTENTFUL.ANSWERS.TYPE,contentSlug:re.slug}):[null];re.userLiked=!!Ne}F.answers=V}else F.answers||(F.answers=[]);return F}catch(V){throw await H(V),new Error(`Cannot read authors for question: ${V.message}`)}},readAuthors:async(F=[])=>{let B=[];try{if(Array.isArray(F)===!1)throw new Error("authorIds is not an array!");if(F&&F.length===1){const D=await xr(F[0]);D&&B.push(D)}else if(F&&F.length>1){const D=await hi(F);D&&D.length>0&&(B=D)}}catch(D){throw await H(D),new Error(`Cannot read authors: ${D.message}`)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL:Co,ENDPOINTS:{REGISTRATIONS:Ro}}}}=_;var Po={list:async F=>{let B=[];try{const{data:D}=await q().get(`${Co}${Ro}`,{params:F});D&&D.length&&(B=D)}catch(D){await H(D)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:No,ENDPOINTS:{USERS:qr,USER_COURSES:di}}},USERS:{MYSELF:Gr}}=_,xt=`${No}${qr}/${Gr}${di}`;var Cn={create:async F=>{try{await q().post(xt,F)}catch(B){await H(B)}},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(xt,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B},update:async(F,B)=>{try{await q().put(`${xt}/${F}`,B)}catch(D){await H(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Io,ENDPOINTS:{USERS:Lo,USER_EVENTS:ko}}},USERS:{MYSELF:Mo}}=_,Fo=`${Io}${Lo}/${Mo}${ko}`;var Vr={list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(Fo,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Rn,ENDPOINTS:{USERS:Or,USER_LESSONS:pi}}},USERS:{MYSELF:mi}}=_,gi=`${Rn}${Or}/${mi}${pi}`;var Do={create:async F=>{let B=null;try{B=await q().post(gi,F)}catch(D){await H(D)}return B},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(gi,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Bo,ENDPOINTS:{USERS:Uo,USER_PRODUCTS:Pn}}},USERS:{MYSELF:$o}}=_,Nn=`${Bo}${Uo}/${$o}${Pn}`;var Ar={create:async F=>{let B=null;try{B=await q().post(Nn,F)}catch(D){await H(D)}return B},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(Nn,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B},update:async(F,B)=>{try{await q().put(`${Nn}/${F}`,B)}catch(D){await H(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Pt,ENDPOINTS:{USERS:Yt,USER_RATINGS:Kt}}},USERS:{MYSELF:jo}}=_,Nt=`${Pt}${Yt}/${jo}${Kt}`;var rr={bulkEnrolments:Qt,handlers:Ao,registrations:Po,users:wo,userCourses:Cn,userEvents:Vr,userLessons:Do,userLikes:ht,userProducts:Ar,userRatings:{create:async F=>{let B=null;try{const{data:D}=await q().post(Nt,F);D!=null&&D.id&&(B=D)}catch(D){await H(D)}return B},update:async(F,B)=>{try{await q().put(`${Nt}/${F}`,B)}catch(D){await H(D)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Ho,ENDPOINTS:{ENQUIRY_EMAILS:qo}}}}=_;var Go={create:async F=>{let B=null;try{const{data:D}=await q().post(`${Ho}${qo}`,F);D&&(B=D)}catch(D){await H(D)}return B}},yi={forms:{sendEnquiryEmails:async F=>{let B=null;try{const{emailIds:D}=$;B=await zr.emails.create({...D,...F})}catch(D){await H(D)}return B}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:ut,ENDPOINTS:{USERS:vi,USER_PROPERTIES:Ei}}},USERS:{MYSELF:Wr}}=_;var zr={emails:Go,handlers:yi,userProperties:{update:async(F,B)=>{try{await q().put(`${ut}${vi}/${Wr}${Ei}/${F}`,B)}catch(D){await H(D)}}}},Qr=d(130);const{APIS:{SEARCH_API:{BASE_URL:Vo,ENDPOINTS:{SEARCH:_i}}}}=_,In=`${Vo}${_i}`;var bi={ask:async F=>{try{let B=null;const{data:D}=await q().get(In,{params:{question:F}});return D!=null&&D.answer&&(D!=null&&D.references)&&(D!=null&&D.version)&&(B=D),B}catch(B){const D=await H(B);throw new Error(D)}},stream:(F,B,D)=>{const V=(0,Qr.io)(void 0,{path:"/api/search-api/web-sockets"});function re(){V.emit("search",{question:F})}function Ne(qe){D(qe),$e(),V.disconnect()}function $e(){V.off("connect",re),V.off("update",B),V.off("result",Ne)}return V.on("connect",re),V.on("update",B),V.on("result",Ne),$e}};const{CONTENTFUL:Ft}=_,{CARD_TYPES:Ln}=Ft.CAROUSELS;var Si={read:async(F,B)=>{try{if(!B||!B.sys||!B.sys.id)throw new Error("Invalid link to card");if(!F||!Ln[F])throw new Error("Unsupported card content type");const{INCLUDE:D,SELECT:V}=Ln[F];return await(0,f.getEntry)({content_type:F,"sys.id":B.sys.id,include:D,select:V},{assetDetails:!0})}catch(D){throw await H(D),new Error(`Cannot read carousel card: ${D.message}`)}}};const{CONTENTFUL:Wo}=_,{INCLUDE:y,SELECT:A,TYPE:I}=Wo.EDITORIAL_PAGES;var W={read:async F=>{try{return await(0,f.getEntry)({content_type:I,"fields.slug":F,include:y,select:A})}catch(B){throw await H(B),new Error(`Cannot read editorial page: ${B.message}`)}}};const{CONTENTFUL:ge}=_,{TYPE:ce,ORDER:_e,SELECT:be,SKIP:He,LIMIT:Ae,INCLUDE:tt}=ge.QUESTIONS;var ct={read:async F=>{try{return await(0,f.getEntry)({content_type:ce,"fields.slug":F,include:2,select:be})}catch(B){throw await H(B),new Error(`Cannot read question: ${B.message}`)}},list:async(F={})=>{try{return await(0,f.getEntries)({content_type:ce,include:tt,limit:Ae,order:_e,select:be,skip:He,...F})}catch(B){throw await H(B),new Error(`Cannot list questions: ${B.message}`)}}},Ge=async(F,B,D={ignoreAnswersAuthors:!1})=>{try{let V={};return V=await ct.read(F),V=await rr.handlers.authors.readQuestionAuthors(V,B,D),V}catch(V){throw await H(V),new Error(`Cannot build question: ${V.message}`)}};const{ARTICLES:{TYPE:rt},COURSES:{TYPE:Qe},EVENTS:{TYPE:nr},LISTS:{TYPE:Xt},QUESTIONS:{TYPE:Cr},LEARNING_HUB:{TYPE:ua}}=_.CONTENTFUL,ir=F=>F&&F.url?(Object.assign(F,{aspect:"responsiveCard",query:"q=90&fit=fill"}),F):null,Yr={[rt]:async F=>{const{authorIds:B,authorTag:D,image:V,publishedDate:re,readingTime:Ne,slug:$e,title:qe}=F,It=await rr.handlers.authors.readAuthors(B),or=It&&It.length?It:D?[D]:null;return{banner:ir(V),contributors:or,publishedDate:re,readingTime:Ne,slug:$e,title:qe}},[Qe]:async(F,B)=>{const{banner:D,freeCourse:V,partnershipDetails:re,slug:Ne,title:$e,registered:qe}=F,It={banner:ir(D),slug:Ne,title:$e,pill:V?"free":"premium",registered:!!qe};if(re){const{partners:or}=re;It.partner=or&&or.length&&re.partners[0]}if(qe===void 0&&B){const[or]=await rr.userProducts.list({courseSlug:Ne,isEnrolled:!0,scope:"active"});It.registered=!!or}return It},[nr]:async(F,B)=>{const{bannerImage:D,defaultStartDate:V,isEventOngoing:re,slug:Ne,speakers:$e,title:qe,registered:It}=F,or=new Date(V),FE=!!or&&or<new Date;if($e&&$e.length)for(const ca of $e)ca.image=(Mu=ca.image)&&Mu.url?`${Mu.url}?w=100&h=100&fit=thumb&f=center`:null;var Mu;const vh={banner:ir(D),dateHasPassed:FE,title:qe,slug:Ne,isOngoingEvent:re,contributors:$e,startDate:or,registered:!!It};if(It===void 0&&B){const[ca]=await rr.userEvents.list({eventSlug:Ne});vh.registered=!!ca}return vh},[Xt]:async F=>{const{hero:B,slug:D,title:V}=F;return{banner:ir(B),slug:D,title:V}},[Cr]:async F=>{const{answers:B,authorId:D,createdAt:V,slug:re,title:Ne}=F;let $e=null;if(D){const qe=await rr.users.read(D);qe&&($e=qe)}return{answers:B&&B.length?B.length:0,contributors:$e?[$e]:[],createdAt:V,slug:re,title:Ne}},[ua]:F=>{const{bannerSection:B,customLabel:D,slug:V,title:re}=F;return{banner:ir(B.image),slug:V,title:re,customLabel:D}},people:F=>{const{id:B,name:D,jobTitle:V,location:re,image:Ne}=F;return{profile:Ne,slug:B,title:D,text:V,secondaryText:re}}};var NE=async({contentType:F,...B}={},D)=>{try{if(!Yr[F])throw new Error("Content type not supported");if(typeof Yr[F]!="function")throw new Error("No builder function for content type");return F!=="people"&&B.sys&&B.sys.type&&B.sys.type==="Link"&&(B=await Si.read(F,B)),{contentType:F,...await Yr[F](B,D)}}catch(V){throw await H(V),new Error(`Cannot build carousel card: ${V.message}`)}},IE=async(F,B,D={})=>{try{if(!F.replies||F.replies.length===0)return F.replies=[],F;F.replies.sort((re,Ne)=>new Date(re.createdAt)-new Date(Ne.createdAt)),F.totalReplies=F.totalReplies||F.replies.length;let V=F.replies;if(D.limit&&D.pageNumber){const re=D.limit*(D.pageNumber-1);V=F.replies.slice(re,re+D.limit)}for(const re of V){if(re.authorId===F.authorId){re.author=F.author,re.userLiked=!1;continue}re.author=re.authorId&&await xr(re.authorId)||{};const[Ne]=B?await An({contentType:_.CONTENTFUL.REPLIES.TYPE,contentSlug:re.slug}):[null];re.userLiked=!!Ne}return F.replies=V,F}catch(V){throw await H(V),new Error(`Cannot build replies for answer: ${V.message}`)}},LE=d(408);const kE=F=>F&&LE.Buffer.from(F,"base64").toString("ascii");function ME({contentContext:F=null,errorsContext:B=null,gtmContext:D=null,origin:V}){try{const re=(Ne=>{let $e=null;Ne?$e=Ne:typeof window<"u"&&($e=window.origin||window.location.origin),$e||new Error("Cannot select environment: Website not defined");let qe=null;const It=$e.match(b);return It?qe=It[1].split(T)[0]:$e===S?qe=w:$e.includes(v)&&(qe=N),qe||new Error(`Cannot select environment: No rule for website ${$e}`),qe})(V);return F&&(0,f.setContext)(Object.assign({},F,{environment:re})),B&&(0,p.setContext)(Object.assign({},B,{environment:re})),D&&((0,m.setContext)(Object.assign({},D,{environment:re})),(0,m.setupGTM)()),(({environment:Ne})=>{const $e=(qe=>{if(!qe)throw new Error("Cannot map environment: Environment not defined");if(!R[qe])throw new Error(`Cannot map environment: No mapping found for environment ${qe}`);return R[qe]})(Ne);$.emailIds=L[$e]})(Object.assign({},{environment:re})),re}catch(re){console.warn(`Cannot load SDK: ${re.message}`)}}}(),h}()})})(vg);var hx=vg.exports;const ys={Off:"off",On:"on",Cookie:"cookie"},dx=e=>{const[t]=yg(),[r,n]=U.useState(null),[i,o]=U.useState(!1),[a,s]=U.useState(ys.Off);return U.useEffect(()=>{e&&hx.features.flags.read(e).then(c=>{s(c.featureState),n(null)}).catch(c=>{s(ys.Off),n(c)})},[e]),U.useEffect(()=>{switch(a){case ys.Off:o(!1);break;case ys.On:o(!0);break;case ys.Cookie:o(!!t[`feature-${e}`]);break;default:o(!1)}},[a,t]),{isFeatureActive:i,error:r}};function px(e,t,r){var n=this,i=U.useRef(null),o=U.useRef(0),a=U.useRef(null),s=U.useRef([]),c=U.useRef(),l=U.useRef(),u=U.useRef(e),d=U.useRef(!0);U.useEffect(function(){u.current=e},[e]);var h=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,p=!("trailing"in r)||!!r.trailing,m="maxWait"in r,_=m?Math.max(+r.maxWait||0,t):null;U.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var S=U.useMemo(function(){var v=function(L){var $=s.current,G=c.current;return s.current=c.current=null,o.current=L,l.current=u.current.apply(G,$)},b=function(L,$){h&&cancelAnimationFrame(a.current),a.current=h?requestAnimationFrame(L):setTimeout(L,$)},T=function(L){if(!d.current)return!1;var $=L-i.current;return!i.current||$>=t||$<0||m&&L-o.current>=_},w=function(L){return a.current=null,p&&s.current?v(L):(s.current=c.current=null,l.current)},N=function L(){var $=Date.now();if(T($))return w($);if(d.current){var G=t-($-i.current),q=m?Math.min(G,_-($-o.current)):G;b(L,q)}},R=function(){var L=Date.now(),$=T(L);if(s.current=[].slice.call(arguments),c.current=n,i.current=L,$){if(!a.current&&d.current)return o.current=i.current,b(N,t),f?v(i.current):l.current;if(m)return b(N,t),v(i.current)}return a.current||b(N,t),l.current};return R.cancel=function(){a.current&&(h?cancelAnimationFrame(a.current):clearTimeout(a.current)),o.current=0,s.current=i.current=c.current=a.current=null},R.isPending=function(){return!!a.current},R.flush=function(){return a.current?w(Date.now()):l.current},R},[f,m,t,_,p,h]);return S}function pv(e,t,r){var n=r===void 0?{}:r,i=n.leading,o=n.trailing;return px(e,t,{maxWait:t,leading:i===void 0||i,trailing:o===void 0||o})}let el;const ra=(e=!0,t=!1)=>{if(!e)return;const[r,n]=U.useState(0)||[!1,()=>{}];U.useEffect(()=>(o(),window.addEventListener("resize",a),()=>{clearTimeout(el),a.flush(),window.removeEventListener("resize",a)}),[]);const i=()=>window.innerWidth,o=()=>{n(i())},a=pv(()=>{i()!==r&&(t&&(clearTimeout(el),document.body.classList.add("is-resizing"),el=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),o())},500,{leading:!0});return r},mv=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:r=()=>{},scrollUp:n=()=>{}}})=>{if(!window)return;const[i,o]=U.useState({current:0,past:0})||[!1,()=>{}],[a,s]=U.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];U.useEffect(()=>(c(),window.addEventListener("scroll",l),()=>{l.flush(),window.removeEventListener("scroll",l)}),[]);const c=()=>{const u=window.scrollY,d=i.current,h=u-d,f=h>0?"down":"up";if(o({current:u,past:d}),f==="down"){u>=e+t.down&&!a.scrollDown&&(!a.scrollUp||h>t.up)&&(r(),s({scrollUp:!1,scrollDown:!0}));return}Math.abs(h)>=t.up&&!a.scrollUp&&(n(),s({scrollUp:!0,scrollDown:!1}))},l=pv(()=>{c()},250);return i},mx=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const r=U.useRef(!1);ri(()=>{if(window&&window.location&&window.location.hash){if(r.current)return;const n=document.getElementById(window.location.hash.replace("#",""));n&&(n.scrollIntoView(t?{behavior:"smooth"}:null),r.current=!0)}},e)};var Za={exports:{}};Za.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",d="[object GeneratorFunction]",h="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",_="[object RegExp]",S="[object Set]",v="[object String]",b="[object Symbol]",T="[object WeakMap]",w="[object ArrayBuffer]",N="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",$="[object Int8Array]",G="[object Int16Array]",q="[object Int32Array]",H="[object Uint8Array]",Y="[object Uint8ClampedArray]",ie="[object Uint16Array]",K="[object Uint32Array]",k=/[\\^$.*+?()[\]{}|]/g,Q=/\w*$/,ee=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,Z={};Z[o]=Z[a]=Z[w]=Z[N]=Z[s]=Z[c]=Z[R]=Z[L]=Z[$]=Z[G]=Z[q]=Z[h]=Z[f]=Z[p]=Z[_]=Z[S]=Z[v]=Z[b]=Z[H]=Z[Y]=Z[ie]=Z[K]=!0,Z[l]=Z[u]=Z[T]=!1;var X=typeof fe=="object"&&fe&&fe.Object===Object&&fe,le=typeof self=="object"&&self&&self.Object===Object&&self,de=X||le||Function("return this")(),Ve=t&&!t.nodeType&&t,te=Ve&&!0&&e&&!e.nodeType&&e,ae=te&&te.exports===Ve;function De(y,A){return y.set(A[0],A[1]),y}function Ie(y,A){return y.add(A),y}function Tt(y,A){for(var I=-1,W=y?y.length:0;++I<W&&A(y[I],I,y)!==!1;);return y}function Ct(y,A){for(var I=-1,W=A.length,ge=y.length;++I<W;)y[ge+I]=A[I];return y}function Gt(y,A,I,W){var ge=-1,ce=y?y.length:0;for(W&&ce&&(I=y[++ge]);++ge<ce;)I=A(I,y[ge],ge,y);return I}function oe(y,A){for(var I=-1,W=Array(y);++I<y;)W[I]=A(I);return W}function st(y,A){return y==null?void 0:y[A]}function Je(y){var A=!1;if(y!=null&&typeof y.toString!="function")try{A=!!(y+"")}catch{}return A}function Vt(y){var A=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++A]=[ge,W]}),I}function wr(y,A){return function(I){return y(A(I))}}function er(y){var A=-1,I=Array(y.size);return y.forEach(function(W){I[++A]=W}),I}var kt=Array.prototype,yn=Function.prototype,Wt=Object.prototype,Mt=de["__core-js_shared__"],Ze=function(){var y=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),zt=yn.toString,yt=Wt.hasOwnProperty,at=Wt.toString,vn=RegExp("^"+zt.call(yt).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=ae?de.Buffer:void 0,g=de.Symbol,E=de.Uint8Array,C=wr(Object.getPrototypeOf,Object),M=Object.create,j=Wt.propertyIsEnumerable,z=kt.splice,me=Object.getOwnPropertySymbols,Ce=O?O.isBuffer:void 0,Re=wr(Object.keys,Object),Pe=Pt(de,"DataView"),Ee=Pt(de,"Map"),Rt=Pt(de,"Promise"),Hr=Pt(de,"Set"),En=Pt(de,"WeakMap"),Sr=Pt(Object,"create"),_n=ut(Pe),Tr=ut(Ee),bn=ut(Rt),wn=ut(Hr),Sn=ut(En),tr=g?g.prototype:void 0,li=tr?tr.valueOf:void 0;function Qt(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function Eo(){this.__data__=Sr?Sr(null):{}}function _o(y){return this.has(y)&&delete this.__data__[y]}function bo(y){var A=this.__data__;if(Sr){var I=A[y];return I===n?void 0:I}return yt.call(A,y)?A[y]:void 0}function fi(y){var A=this.__data__;return Sr?A[y]!==void 0:yt.call(A,y)}function Tn(y,A){var I=this.__data__;return I[y]=Sr&&A===void 0?n:A,this}Qt.prototype.clear=Eo,Qt.prototype.delete=_o,Qt.prototype.get=bo,Qt.prototype.has=fi,Qt.prototype.set=Tn;function We(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function xn(){this.__data__=[]}function On(y){var A=this.__data__,I=Gr(A,y);if(I<0)return!1;var W=A.length-1;return I==W?A.pop():z.call(A,I,1),!0}function xr(y){var A=this.__data__,I=Gr(A,y);return I<0?void 0:A[I][1]}function hi(y){return Gr(this.__data__,y)>-1}function wo(y,A){var I=this.__data__,W=Gr(I,y);return W<0?I.push([y,A]):I[W][1]=A,this}We.prototype.clear=xn,We.prototype.delete=On,We.prototype.get=xr,We.prototype.has=hi,We.prototype.set=wo;function et(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function So(){this.__data__={hash:new Qt,map:new(Ee||We),string:new Qt}}function To(y){return Ar(this,y).delete(y)}function xo(y){return Ar(this,y).get(y)}function Oo(y){return Ar(this,y).has(y)}function An(y,A){return Ar(this,y).set(y,A),this}et.prototype.clear=So,et.prototype.delete=To,et.prototype.get=xo,et.prototype.has=Oo,et.prototype.set=An;function ht(y){this.__data__=new We(y)}function Ao(){this.__data__=new We}function Co(y){return this.__data__.delete(y)}function Ro(y){return this.__data__.get(y)}function Po(y){return this.__data__.has(y)}function No(y,A){var I=this.__data__;if(I instanceof We){var W=I.__data__;if(!Ee||W.length<r-1)return W.push([y,A]),this;I=this.__data__=new et(W)}return I.set(y,A),this}ht.prototype.clear=Ao,ht.prototype.delete=Co,ht.prototype.get=Ro,ht.prototype.has=Po,ht.prototype.set=No;function qr(y,A){var I=zr(y)||Wr(y)?oe(y.length,String):[],W=I.length,ge=!!W;for(var ce in y)(A||yt.call(y,ce))&&!(ge&&(ce=="length"||Ho(ce,W)))&&I.push(ce);return I}function di(y,A,I){var W=y[A];(!(yt.call(y,A)&&Ei(W,I))||I===void 0&&!(A in y))&&(y[A]=I)}function Gr(y,A){for(var I=y.length;I--;)if(Ei(y[I][0],A))return I;return-1}function xt(y,A){return y&&Pn(A,wi(A),y)}function Cn(y,A,I,W,ge,ce,_e){var be;if(W&&(be=ce?W(y,ge,ce,_e):W(y)),be!==void 0)return be;if(!Ft(y))return y;var He=zr(y);if(He){if(be=jo(y),!A)return Uo(y,be)}else{var Ae=Kt(y),tt=Ae==u||Ae==d;if(_i(y))return Vr(y,A);if(Ae==p||Ae==o||tt&&!ce){if(Je(y))return ce?y:{};if(be=Nt(tt?{}:y),!A)return $o(y,xt(be,y))}else{if(!Z[Ae])return ce?y:{};be=rr(y,Ae,Cn,A)}}_e||(_e=new ht);var ct=_e.get(y);if(ct)return ct;if(_e.set(y,be),!He)var Ge=I?Nn(y):wi(y);return Tt(Ge||y,function(rt,Qe){Ge&&(Qe=rt,rt=y[Qe]),di(be,Qe,Cn(rt,A,I,W,Qe,y,_e))}),be}function Io(y){return Ft(y)?M(y):{}}function Lo(y,A,I){var W=A(y);return zr(y)?W:Ct(W,I(y))}function ko(y){return at.call(y)}function Mo(y){if(!Ft(y)||Go(y))return!1;var A=In(y)||Je(y)?vn:ee;return A.test(ut(y))}function Fo(y){if(!yi(y))return Re(y);var A=[];for(var I in Object(y))yt.call(y,I)&&I!="constructor"&&A.push(I);return A}function Vr(y,A){if(A)return y.slice();var I=new y.constructor(y.length);return y.copy(I),I}function Rn(y){var A=new y.constructor(y.byteLength);return new E(A).set(new E(y)),A}function Or(y,A){var I=A?Rn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.byteLength)}function pi(y,A,I){var W=A?I(Vt(y),!0):Vt(y);return Gt(W,De,new y.constructor)}function mi(y){var A=new y.constructor(y.source,Q.exec(y));return A.lastIndex=y.lastIndex,A}function gi(y,A,I){var W=A?I(er(y),!0):er(y);return Gt(W,Ie,new y.constructor)}function Do(y){return li?Object(li.call(y)):{}}function Bo(y,A){var I=A?Rn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.length)}function Uo(y,A){var I=-1,W=y.length;for(A||(A=Array(W));++I<W;)A[I]=y[I];return A}function Pn(y,A,I,W){I||(I={});for(var ge=-1,ce=A.length;++ge<ce;){var _e=A[ge],be=W?W(I[_e],y[_e],_e,I,y):void 0;di(I,_e,be===void 0?y[_e]:be)}return I}function $o(y,A){return Pn(y,Yt(y),A)}function Nn(y){return Lo(y,wi,Yt)}function Ar(y,A){var I=y.__data__;return qo(A)?I[typeof A=="string"?"string":"hash"]:I.map}function Pt(y,A){var I=st(y,A);return Mo(I)?I:void 0}var Yt=me?wr(me,Object):Si,Kt=ko;(Pe&&Kt(new Pe(new ArrayBuffer(1)))!=N||Ee&&Kt(new Ee)!=h||Rt&&Kt(Rt.resolve())!=m||Hr&&Kt(new Hr)!=S||En&&Kt(new En)!=T)&&(Kt=function(y){var A=at.call(y),I=A==p?y.constructor:void 0,W=I?ut(I):void 0;if(W)switch(W){case _n:return N;case Tr:return h;case bn:return m;case wn:return S;case Sn:return T}return A});function jo(y){var A=y.length,I=y.constructor(A);return A&&typeof y[0]=="string"&&yt.call(y,"index")&&(I.index=y.index,I.input=y.input),I}function Nt(y){return typeof y.constructor=="function"&&!yi(y)?Io(C(y)):{}}function rr(y,A,I,W){var ge=y.constructor;switch(A){case w:return Rn(y);case s:case c:return new ge(+y);case N:return Or(y,W);case R:case L:case $:case G:case q:case H:case Y:case ie:case K:return Bo(y,W);case h:return pi(y,W,I);case f:case v:return new ge(y);case _:return mi(y);case S:return gi(y,W,I);case b:return Do(y)}}function Ho(y,A){return A=A??i,!!A&&(typeof y=="number"||he.test(y))&&y>-1&&y%1==0&&y<A}function qo(y){var A=typeof y;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?y!=="__proto__":y===null}function Go(y){return!!Ze&&Ze in y}function yi(y){var A=y&&y.constructor,I=typeof A=="function"&&A.prototype||Wt;return y===I}function ut(y){if(y!=null){try{return zt.call(y)}catch{}try{return y+""}catch{}}return""}function vi(y){return Cn(y,!0,!0)}function Ei(y,A){return y===A||y!==y&&A!==A}function Wr(y){return Vo(y)&&yt.call(y,"callee")&&(!j.call(y,"callee")||at.call(y)==o)}var zr=Array.isArray;function Qr(y){return y!=null&&bi(y.length)&&!In(y)}function Vo(y){return Ln(y)&&Qr(y)}var _i=Ce||Wo;function In(y){var A=Ft(y)?at.call(y):"";return A==u||A==d}function bi(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=i}function Ft(y){var A=typeof y;return!!y&&(A=="object"||A=="function")}function Ln(y){return!!y&&typeof y=="object"}function wi(y){return Qr(y)?qr(y):Fo(y)}function Si(){return[]}function Wo(){return!1}e.exports=vi})(Za,Za.exports);var gx=Za.exports;const yx=Er(gx);var vx="Expected a function",gv="__lodash_hash_undefined__",yv=1/0,Ex=9007199254740991,_x="[object Function]",bx="[object GeneratorFunction]",wx="[object Symbol]",Sx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tx=/^\w*$/,xx=/^\./,Ox=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ax=/[\\^$.*+?()[\]{}|]/g,Cx=/\\(\\)?/g,Rx=/^\[object .+?Constructor\]$/,Px=/^(?:0|[1-9]\d*)$/,Nx=typeof fe=="object"&&fe&&fe.Object===Object&&fe,Ix=typeof self=="object"&&self&&self.Object===Object&&self,jf=Nx||Ix||Function("return this")();function Lx(e,t){return e==null?void 0:e[t]}function kx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Mx=Array.prototype,Fx=Function.prototype,vv=Object.prototype,tl=jf["__core-js_shared__"],tm=function(){var e=/[^.]+$/.exec(tl&&tl.keys&&tl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ev=Fx.toString,bu=vv.hasOwnProperty,_v=vv.toString,Dx=RegExp("^"+Ev.call(bu).replace(Ax,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rm=jf.Symbol,Bx=Mx.splice,Ux=bv(jf,"Map"),Cs=bv(Object,"create"),nm=rm?rm.prototype:void 0,im=nm?nm.toString:void 0;function ni(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $x(){this.__data__=Cs?Cs(null):{}}function jx(e){return this.has(e)&&delete this.__data__[e]}function Hx(e){var t=this.__data__;if(Cs){var r=t[e];return r===gv?void 0:r}return bu.call(t,e)?t[e]:void 0}function qx(e){var t=this.__data__;return Cs?t[e]!==void 0:bu.call(t,e)}function Gx(e,t){var r=this.__data__;return r[e]=Cs&&t===void 0?gv:t,this}ni.prototype.clear=$x;ni.prototype.delete=jx;ni.prototype.get=Hx;ni.prototype.has=qx;ni.prototype.set=Gx;function po(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vx(){this.__data__=[]}function Wx(e){var t=this.__data__,r=wu(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Bx.call(t,r,1),!0}function zx(e){var t=this.__data__,r=wu(t,e);return r<0?void 0:t[r][1]}function Qx(e){return wu(this.__data__,e)>-1}function Yx(e,t){var r=this.__data__,n=wu(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}po.prototype.clear=Vx;po.prototype.delete=Wx;po.prototype.get=zx;po.prototype.has=Qx;po.prototype.set=Yx;function ai(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kx(){this.__data__={hash:new ni,map:new(Ux||po),string:new ni}}function Xx(e){return Su(this,e).delete(e)}function Jx(e){return Su(this,e).get(e)}function Zx(e){return Su(this,e).has(e)}function eO(e,t){return Su(this,e).set(e,t),this}ai.prototype.clear=Kx;ai.prototype.delete=Xx;ai.prototype.get=Jx;ai.prototype.has=Zx;ai.prototype.set=eO;function tO(e,t,r){var n=e[t];(!(bu.call(e,t)&&wv(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function wu(e,t){for(var r=e.length;r--;)if(wv(e[r][0],t))return r;return-1}function rO(e){if(!eu(e)||cO(e))return!1;var t=dO(e)||kx(e)?Dx:Rx;return t.test(hO(e))}function nO(e,t,r,n){if(!eu(e))return e;t=aO(t,e)?[t]:oO(t);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var c=fO(t[i]),l=r;if(i!=a){var u=s[c];l=n?n(u,c,s):void 0,l===void 0&&(l=eu(u)?u:sO(t[i+1])?[]:{})}tO(s,c,l),s=s[c]}return e}function iO(e){if(typeof e=="string")return e;if(qf(e))return im?im.call(e):"";var t=e+"";return t=="0"&&1/e==-yv?"-0":t}function oO(e){return Sv(e)?e:lO(e)}function Su(e,t){var r=e.__data__;return uO(t)?r[typeof t=="string"?"string":"hash"]:r.map}function bv(e,t){var r=Lx(e,t);return rO(r)?r:void 0}function sO(e,t){return t=t??Ex,!!t&&(typeof e=="number"||Px.test(e))&&e>-1&&e%1==0&&e<t}function aO(e,t){if(Sv(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qf(e)?!0:Tx.test(e)||!Sx.test(e)||t!=null&&e in Object(t)}function uO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cO(e){return!!tm&&tm in e}var lO=Hf(function(e){e=mO(e);var t=[];return xx.test(e)&&t.push(""),e.replace(Ox,function(r,n,i,o){t.push(i?o.replace(Cx,"$1"):n||r)}),t});function fO(e){if(typeof e=="string"||qf(e))return e;var t=e+"";return t=="0"&&1/e==-yv?"-0":t}function hO(e){if(e!=null){try{return Ev.call(e)}catch{}try{return e+""}catch{}}return""}function Hf(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(vx);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(Hf.Cache||ai),r}Hf.Cache=ai;function wv(e,t){return e===t||e!==e&&t!==t}var Sv=Array.isArray;function dO(e){var t=eu(e)?_v.call(e):"";return t==_x||t==bx}function eu(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function pO(e){return!!e&&typeof e=="object"}function qf(e){return typeof e=="symbol"||pO(e)&&_v.call(e)==wx}function mO(e){return e==null?"":iO(e)}function gO(e,t,r){return e==null?e:nO(e,t,r)}var yO=gO;const vO=Er(yO),EO=(e,t)=>{Array.isArray(t)||(t=[t]);const r=yx(e);return t.forEach(({type:n,value:i})=>{vO(r,n,i)}),r},Tv=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},xv=(e,t,r)=>{let n=r.mobile;for(const i in t){const o=parseInt(String(t[i]));if(e>=o)n=r[o];else if(e<o)break}return n},_O=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),bO=e=>{let o;try{o=new Date().getTime()-new Date(e).getTime()}catch{return""}const a=o/36e5,s=Math.floor(o/864e5);if(s<1)return a<1?{path:"now"}:{path:"hours",number:Math.floor(a)};if(s<7)return{path:"days",number:s};const c=Math.floor(s/7);return c<=52?{path:"weeks",number:c}:{path:"years",number:Math.floor(s/365)}},wO=e=>new Promise(t=>setTimeout(t,e)),Gf={apolitical:"Apolitical",breadcrumbs_label:"Go back to:",breadcrumbs_currentPage:"Current page:",card_bootcamp:"Email boot camp",card_ended:"Ended",card_registered:"Registered",card_answers:"{number, plural, =0 {0 answers} one {# answer} other {# answers}}",card_time_ago:"{time} ago",card_time_read:"{time} min read",card_watch:"Watch recording",card_cta_people:"View profile",collapsibleSection_summary:"Find out more",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",contactFooter_title:"Contact us",contactFooter_text:"We're always open to new ideas, so please reach out to see how we can collaborate.",contactFooter_phone:"+44 203 608 2241",contactFooter_email:"hello@apolitical.co",contactForm_name:"Name",contactForm_email:"Email address",contactForm_organisation:"Government department or organisation",contactForm_interests:"I'm interested in",contactForm_interests_publishingCourse:"Publishing or creating a course",contactForm_interests_buyingCourse:"Buying courses for my team",contactForm_interests_learningExperience:"Customised learning experiences",contactForm_interests_somethingElse:"Something else",contactForm_message:"Message",cookieBanner_title:"Cookies and your privacy",cookieBanner_text:"We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",cookieBanner_buttons_settings:"Change my settings",cookieBanner_buttons_reject:"Reject all",cookieBanner_buttons_accept:"Accept all",dates_now:"now",dates_hours:"{number}h",dates_days:"{number}d",dates_weeks:"{number}w",dates_years:"{number}y",discussion_action_answer:"answer",discussion_action_comment:"comment",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_edited:"Edited",discussion_delete_title:"Delete {action}",discussion_delete_text:"<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",discussion_delete_cancel:"Cancel",discussion_delete_delete:"Delete",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_reply:"Reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
62
+
63
+ Please explain why you're reporting this post. Reasons could include: inappropriate language, harassment, spam, hate speech, false information, among others. Include as much detail as you feel comfortable.
64
+
65
+ Thank you for helping to protect the Apolitical community from abusive content.`,discussion_form_title:"Write your {action}",discussion_form_placeholder:"Type your {action} here...",discussion_form_label:"Your {action}",discussion_form_explainer:"Try to make your {action} specific and practical. Be respectful and kind. See our <a>community guidelines</a>",discussion_form_success:"Your {action} has been submitted.",discussion_form_post:"Post",discussion_form_posting:"Posting...",discussion_form_save:"Save",discussion_form_saving:"Saving...",discussion_form_cancel:"Cancel",discussion_form_submitting:"Submitting...",discussion_form_placeholder_post:"Write something...",discussion_form_error:"We are unable to process your {action} right now. Please try again later or contact us if the problem persists",discussion_form_error_tooLong:"Please keep your content to {maxLength, plural, one {1 character} other {# characters}}.",discussion_form_error_tooMany:"You have posted too many times in a row. Please wait and try again.",discussion_form_error_loggedOut:"Please log in to submit your {action}.",discussion_form_error_noPermission:"You do not have permission to {action}.",discussion_form_error_alreadyExists:"This {action} already exists.",discussion_form_title_question:"Start a conversation",discussion_form_placeholder_question:"Ask your question here",discussion_form_explainer_question:"Unsure what you can post? See our <a>community guidelines</a>.",discussion_likes:"{number, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_likes_short:"{number}",discussion_likes_more:"and {number} more...",discussion_likes_like:"Like this {action}",discussion_likes_unlike:"Unlike {action}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_report:"Report",discussion_comments_screenReader:"See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_comments:"{count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_responses_answer:"Answers",discussion_responses_comment:"Comments",discussion_responses_title:"{action} ({count})",discussion_responses_empty:"Be the first to respond",discussion_responses_empty_answer:"Be the first to answer this question",discussion_thread_show:"Show {count, plural, =0 {replies} one {# reply} other {# replies}}",discussion_thread_hide:"Hide replies",emailHelperTextBox_fallback_title:"Who can join",emailHelperTextBox_fallback_text:"Apolitical is a private community for public servants and policymakers.",emailHelperTextBox_default_title:"Who can join",emailHelperTextBox_default_text:"Apolitical is a private community for public servants and policymakers. <link>Learn more</link>.",emailHelperTextBox_autoApproved_title:"Email check",emailHelperTextBox_autoApproved_text:"Great! Looks like you are using a **government email domain we recognise.** You will be **auto-approved** once you sign up.",emailHelperTextBox_unrecognisedEmail_title:"Not a recognised government email",emailHelperTextBox_unrecognisedEmail_text:"To confirm you work in government or policy, please add more details below. <link>Learn more</link>.",emailHelperTextBox_pendingApproval_title:"Email is pending approval",emailHelperTextBox_pendingApproval_text:"Looks like this email has been used to sign up to Apolitical before, but <strong>we have not yet approved it.</strong> If you cannot wait to join, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_emailUnverified_title:"Hello again!",emailHelperTextBox_emailUnverified_text:"It looks like you're already an Apolitical member. To access your account, please verify your email address. <link>Click here to get a verification code sent to your email</link>.",emailHelperTextBox_emailAlreadyExists_title:"Email is already registered",emailHelperTextBox_emailAlreadyExists_text:"Looks like this email has been used to sign up to Apolitical before, try <link>logging in</link> instead. If you're still having issues, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_error_verificationFailedToSend_title:"Verification code failed to send",emailHelperTextBox_error_verificationFailedToSend_text:"Error details: <em>{error}</em>{br}<link>Click here to try again</link>.{br}If you continue to have problems, contact us at <mail>concierge@apolitical.co</mail>",emailHelperTextBox_error_noFunction:"Cannot resend verification code.",filters_all:"Show all",filters_disabled:"{name} - no results",footer_platform:"Platform",footer_platform_events:"Events",footer_platform_courses:"Courses",footer_platform_qanda:"Q&A",footer_platform_articles:"Articles",footer_community:"Community",footer_community_support:"Support FAQ",footer_community_post:"Post on Apolitical",footer_community_join:"Who can join",footer_community_guidelines:"Guidelines & values",footer_company:"Company",footer_company_story:"Our story",footer_company_team:"Meet our team",footer_company_careers:"Careers",footer_company_partner:"Partner with us",footer_company_contact:"Get in touch",footer_legal:"Legal",footer_legal_privacy:"Privacy policy",footer_legal_terms:"Terms & conditions",footer_legal_cookie:"Cookie policy",footer_legal_accessibility:"Accessibility statement",footer_legal_dataProtection:"Data protection officer",footer_legal_euDataProtection:"EU data protection officer",footer_contact:"Contact",footer_contact_correspondence:"Correspondence address",footer_contact_correspondence_address:"251 Southwark Bridge Road{br}London, SE1 6FL{br}United Kingdom",footer_contact_registered:"Registered address",footer_contact_registered_address:"20–22 Wenlock Road{br}London, N1 7GU{br}United Kingdom",footer_contact_berlin:"Berlin address",footer_contact_berlin_address:"Torstraße 220{br}10115 Berlin{br}Germany",footer_contact_support:"For platform support",footer_contact_business:"For business inquiries",footer_social_linkedin:"LinkedIn",footer_social_twitter:"Twitter",footer_social_facebook:"Facebook",footer_copyright:"Copyright © {currentYear} Apolitical Group Limited",form_fieldWrapper_required:"required",form_fieldWrapper_characterLimit:"Character limit:",form_error_generalError:"Sorry, something has gone. Please refresh the page and try again.",form_error_required:"Please fill in this required field",form_error_numbers:"Numbers are not allowed in this text field",form_error_email:"Please enter a valid email address",form_error_url:"Please enter a valid URL",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",header_skip:"Skip to main content",header_search_show:"Show search bar",header_search_hide:"Close search bar",header_menu_show:"Show navigation",header_menu_hide:"Close navigation",header_home_loggedOut:"Home",header_home_loggedIn:"My Home",header_topics:"Topics",header_topics_explore:"Explore",header_topics_explore_events:"Events",header_topics_explore_courses:"Courses","header_topics_explore_q-and-a":"Q&A",header_topics_explore_articles:"Articles",header_topics_topics:"Topics",header_topics_topics_climate:"Climate","header_topics_topics_cities-and-local-government":"Cities and local government","header_topics_topics_digital-and-data":"Digital and data",header_topics_topics_education:"Education","header_topics_topics_equity-justice-and-inclusion":"Equity, justice and inclusion","header_topics_topics_health-and-social-care":"Health and social care",header_topics_topics_innovation:"Innovation","header_topics_topics_leadership-and-skills":"Leadership and skills","header_topics_topics_life-in-government":"Life in government",header_topics_topics_policymaking:"Policymaking","header_topics_topics_transport-and-infrastructure":"Transport and infrastructure","header_topics_topics_work-and-the-economy":"Work and the economy",header_partners:"For partners",header_account:"My account",header_account_show:"Show account menu",header_account_hide:"Close account menu",header_account_profile:"My profile",header_account_settings:"Settings & privacy","header_account_log-out":"Log out",header_buttons_login:"Log in",header_buttons_signup:"Sign up",hideShowTextBox_hide:"View less",hideShowTextBox_show:"View more",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",languageSwitcher_label:"I would like to read this article in...",languageSwitcher_translation_original:"original language",languageSwitcher_translation_human:"translated by person",languageSwitcher_translation_machine:"translated by machine",languageSwitcher_selected:"{language} - currently selected",languageSwitcher_disclaimer:"This content is machine translated and will occasionally get gendered language or other direct translations wrong. We’re trying to resolve this but in the meantime, if you notice something very wrong, let us know at <link>{email}</link>",loadMore_button:"Load more",loadMore_endOfFeed:"You're all caught up",loadMore_error:"We're having trouble loading more content. Please refresh the page or try again later.",loadingBlock_loading:"Loading...",loadingBlock_almostDone:"Almost done...",loadingBlock_complete:"Complete!",markdown_collapsibleSection_summary:"Resources",markdown_skip_video:"Skip past video",markdown_skip_padlet:"Skip past interactive board",markdown_skip_poll:"Skip past poll",markdown_skip:"Skip to next section",markdown_iframe_title:"Course information",markdown_iframe_video:"Video",markdown_iframe_padlet:"Interactive board",markdown_iframe_poll:"Poll",member_apolitical:"Apolitical",member_community:"Community post",membersList:"Members",membersList_admin:"Admin",moreMenu:"See more options",overlay_close:"Close",pageLayout_error:"An error occurred while rendering this page. Please refresh the page or try again later.",passwordRules_intro:"We advise you not to use your name or email in your password.",passwordRules_rule_label:"Password",passwordRules_rule_8Characters:"must be longer than 8 characters",passwordRules_rule_numberSymbol:"must include a number and a symbol",passwordRules_rule_lowercaseUppercase:"must include both lower and upper case characters",passwordRules_notMet:"Your password does not meet this requirement",progressBar:"{number}% loaded",ratings_text:"Rate answer",ratings_stars:"{number} out of {total}",ratings_low:"this is incorrect or confusing",ratings_high:"this is a fantastic answer",ratings_success:"Thank you!",search_label:"Search for:",search_placeholder:"Ask Apolitical",search_clear:"Clear search",search_cta:"Search",signup_title:"Sign up",signup_full_name:"Full name",signup_full_name_placeholder:"Lionel Messi",signup_email_address:"Work email",signup_email_address_placeholder:"lionel.messi@argentina.gov",signup_job_title:"Job title",signup_job_title_placeholder:"e.g. Senior Policy Advisor",signup_organization:"Organisation",signup_organization_placeholder:"e.g. Department of Justice",signup_url:"Link to official government bio / LinkedIn <small>(optional)</small>",signup_url_placeholder:"https://organisation.com/bio",signup_expectation:"What do you want to know<small>Optional, but we will use your response to build the session!</small>",signup_expectation_placeholder:"What do you want to know?",signup_terms:"I accept Apolitical's <terms>Terms of Service</terms>, <privacy>Privacy Policy</privacy> and that I'll get essential emails for my use of Apolitical",signup_error:"We're really sorry, but we've had a problem trying to sign you up. This could be an issue with our system, so we suggest you try again later.",signup_button_join:"Join for free",signup_button_login:"Log in",signup_submitting:"Submitting form...",signup_success_title:"Thank you for applying to join Apolitical!",signup_success_text:"<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",sharedLinks_copy_text:"Copy link",tags_community:"From the community",tooltip_loading:"Loading..."},SO={languageSwitcher_label:"Me gustaría leer este artículo en...",languageSwitcher_translation_original:"idioma original",languageSwitcher_translation_human:"traducido por un humano",languageSwitcher_translation_machine:"traducido por máquina",languageSwitcher_disclaimer:"Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"},TO={collapsibleSection_summary:"En savoir plus",languageSwitcher_label:"Je voudrais lire cet article dans...",languageSwitcher_translation_original:"langue originale",languageSwitcher_translation_human:"traduit par un humain",languageSwitcher_translation_machine:"traduit par machine",languageSwitcher_disclaimer:"Ce contenu est traduit automatiquement et contiendra d’évantuelles erreurs de genre ou d’autres traductions directes. Nous essayons de résoudre ce problème, mais en attendant, si vous remarquez une erreur importante, faites-le nous savoir à <link>{email}</link>"},xO={languageSwitcher_label:"Eu gostaria de ler este artigo em...",languageSwitcher_translation_original:"linguagem original",languageSwitcher_translation_human:"traduzido por um humano",languageSwitcher_translation_machine:"traduzido por máquina",languageSwitcher_disclaimer:"Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"},OO=Object.freeze(Object.defineProperty({__proto__:null,en:Gf,es:SO,fr:TO,pt:xO},Symbol.toStringTag,{value:"Module"})),ar=(e,t,r,n,i={})=>{let o="";return`${t}_${r}`in Gf?o=e({id:`${t}_${r}`},i):o=e({id:t},{[n]:r,...i}),o},AO=(e,t,r)=>{if(!e||e===0)return"0";t||(t=0),r||(r=["k","m","b","t"]);let n=e.toString();t=Math.pow(10,t);for(let i=r.length-1;i>=0;i--){const o=Math.pow(10,(i+1)*3);if(o<=e){e=Math.round(e*t/o)/t,e===1e3&&i<r.length-1&&(e=1,i++),n=`${e}${r[i]}`;break}}return n},Ov=(e,t)=>U.Children.map(e,r=>U.cloneElement(r,{...t})),CO=e=>e.replace(/\s+/g,"").length>0,ze=({variant:e="primary",size:t="medium",styling:r={muted:!1,fullWidth:!1},icon:n=!1,href:i=!1,element:o="button",onClick:a=!1,className:s="",disabled:c=!1,screenreaderText:l=!1,children:u=!1,...d})=>{const f=ra(typeof t=="object");if(typeof t=="object"&&typeof f=="number"){const _=Object.assign({},t),S=Tv(Object.keys(_));t=xv(f,S,_)}const p=[];typeof t=="string"&&p.push(t),n&&(p.push("icon"),typeof n=="object"?(p.push(n.icon),n.position?p.push(n.position):p.push("left"),n.hover&&p.push(`hover_${n.hover}`),n.animate&&(p.push("animate"),typeof n.animate=="string"&&p.push(n.animate))):(p.push(n),!n.includes("right")&&!n.includes("left")&&p.push("left"))),r.muted&&p.push("muted"),r.fullWidth&&p.push("full-width");const m={...d,className:se(e,s,p,{"no-text":!u,disabled:c,button:i}),onClick:_=>{(!i||i[0]==="#")&&a&&(_.preventDefault(),_.stopPropagation()),a&&a(_)},disabled:typeof c=="object"&&"isClickable"in c?!c.isClickable:c};return i&&(o="a",m.href=i),U.createElement(o,m,u||(l?x.jsx(lt,{showOnFocus:!1,children:l}):null))},na=({buttons:e,className:t="",...r})=>{const n=e.length>1?"ul":"p",i=e.map((o,a)=>n==="p"?x.jsx(ze,{...o},a):x.jsx("li",{children:x.jsx(ze,{...o})},a));return U.createElement(n,{className:se("button-wrapper",t),...r,children:i})};const tu=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return x.jsx("hr",{className:se({"has-max-width":e}),style:t})},ia=({href:e,children:t,fallbackElement:r,className:n="",onClick:i,gtmContext:o,gtmType:a,...s})=>{if(e){const c={...s};return i&&(c.onClick=i),o&&(c["data-gtm-event-context"]=o),a&&(c["data-gtm-event-type"]=a),x.jsx("a",{href:e,className:se("gtm-trackable",n),...c,children:t})}return r?U.createElement(r,{children:t,className:n,...s}):t},om={card:{range:[{height:320,width:320},{height:425,width:687},{height:510,width:768}],sizes:"(min-width: 1024px) 720px, 30vw"},responsiveCard:{range:[{height:125,width:200},{height:188,width:300},{height:313,width:500}],sizes:"(min-width: 1024px) 720px, 30vw"},banner:{range:[{height:124,width:425},{height:320,width:768},{height:510,width:1368}],sizes:"(min-width: 1024px) 975px, 50vw"},feed:{range:[{height:270,width:124},{height:320,width:425},{height:425,width:687}],sizes:"(min-width: 1024px) 510px, 20vw"},fallback:{range:[{height:124,width:375},{height:320,width:687},{height:510,width:990}],sizes:"(min-width: 1024px) 885px, 35vw"},thumbnail:{range:[{height:124,width:124},{height:320,width:320},{height:510,width:510}],sizes:"(min-width: 1024px) 453px, 20vw"}},RO=({aspect:e,range:t,sizes:r})=>{const{range:n,sizes:i}=e?om[e]:om.fallback;return{range:t&&t.length>0?t:n,sizes:r||i}},PO=({format:e,height:t,query:r,width:n})=>{let i=`w=${n}&h=${t}`;return i=e?`${i}&fm=${e}`:i,i=r?`${i}&${r}`:i,i},rl=({format:e,range:t,url:r,query:n})=>t.map(({height:i,width:o})=>`${r}?${PO({format:e,height:i,query:n,width:o})} ${o}w`).join(", ");const Av=({image:e,className:t,testId:r})=>{const{description:n,height:i,type:o,query:a,url:s,width:c,loading:l,decoding:u,fetchPriority:d}=e,{range:h,sizes:f}=RO(e),p=rl({format:"avif",query:a,range:h,url:s}),m=rl({format:"webp",query:a,range:h,url:s}),_=rl({format:"",query:a,range:h,url:s});return x.jsxs("picture",{className:t,children:[o!=="image/gif"&&x.jsx("source",{type:"image/avif",srcSet:p,sizes:f,"data-testid":"source"}),x.jsx("source",{type:"image/webp",srcSet:m,sizes:f,"data-testid":"source"}),x.jsx("img",{srcSet:_,sizes:f,src:s,alt:n,loading:l||"lazy",decoding:u||"async",fetchpriority:d||"auto",width:c,height:i,"data-testid":r||"image"})]})};var Gl=function(e,t){return Gl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Gl(e,t)};function Ht(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ue=function(){return ue=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ue.apply(this,arguments)};function oo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function mr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Cv(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var Se;(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"})(Se||(Se={}));var je;(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"})(je||(je={}));var so;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(so||(so={}));function sm(e){return e.type===je.literal}function NO(e){return e.type===je.argument}function Rv(e){return e.type===je.number}function Pv(e){return e.type===je.date}function Nv(e){return e.type===je.time}function Iv(e){return e.type===je.select}function Lv(e){return e.type===je.plural}function IO(e){return e.type===je.pound}function kv(e){return e.type===je.tag}function Mv(e){return!!(e&&typeof e=="object"&&e.type===so.number)}function Vl(e){return!!(e&&typeof e=="object"&&e.type===so.dateTime)}var Fv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,LO=/(?:[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 kO(e){var t={};return e.replace(LO,function(r){var n=r.length;switch(r[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 new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new 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 new 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 new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"short":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new 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 new 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 new 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 new 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 new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var MO=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function FO(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(MO).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],c=a.slice(1),l=0,u=c;l<u.length;l++){var d=u[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:c})}return r}function DO(e){return e.replace(/^(.*?)-/,"")}var am=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Dv=/^(@+)?(\+|#+)?[rs]?$/g,BO=/(\*)(0+)|(#+)(0+)|(0+)/g,Bv=/^(0+)$/;function um(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Dv,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Uv(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 UO(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 r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Bv.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function cm(e){var t={},r=Uv(e);return r||t}function $O(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];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=DO(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=ue(ue(ue({},t),{notation:"scientific"}),i.options.reduce(function(c,l){return ue(ue({},c),cm(l))},{}));continue;case"engineering":t=ue(ue(ue({},t),{notation:"engineering"}),i.options.reduce(function(c,l){return ue(ue({},c),cm(l))},{}));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"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(BO,function(c,l,u,d,h,f){if(l)t.minimumIntegerDigits=u.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Bv.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(am.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(am,function(c,l,u,d,h,f){return u==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=ue(ue({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ue(ue({},t),um(o)));continue}if(Dv.test(i.stem)){t=ue(ue({},t),um(i.stem));continue}var a=Uv(i.stem);a&&(t=ue(ue({},t),a));var s=UO(i.stem);s&&(t=ue(ue({},t),s))}return t}var Ia={"001":["H","h"],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"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],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"],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","hB","h","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"],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"],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"],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","h","K"],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"],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"],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"],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","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","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"],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"],TL:["H","hB","hb","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"],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"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 jO(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(o&1),s=o<2?1:3+(o>>1),c="a",l=HO(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function HO(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 new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Ia[n||""]||Ia[r||""]||Ia["".concat(r,"-001")]||Ia["001"];return i[0]}var nl,qO=new RegExp("^".concat(Fv.source,"*")),GO=new RegExp("".concat(Fv.source,"*$"));function xe(e,t){return{start:e,end:t}}var VO=!!String.prototype.startsWith,WO=!!String.fromCodePoint,zO=!!Object.fromEntries,QO=!!String.prototype.codePointAt,YO=!!String.prototype.trimStart,KO=!!String.prototype.trimEnd,XO=!!Number.isSafeInteger,JO=XO?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Wl=!0;try{var ZO=jv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wl=((nl=ZO.exec("a"))===null||nl===void 0?void 0:nl[0])==="a"}catch{Wl=!1}var lm=VO?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},zl=WO?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},fm=zO?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],a=o[0],s=o[1];r[a]=s}return r},$v=QO?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},eA=YO?function(t){return t.trimStart()}:function(t){return t.replace(qO,"")},tA=KO?function(t){return t.trimEnd()}:function(t){return t.replace(GO,"")};function jv(e,t){return new RegExp(e,t)}var Ql;if(Wl){var hm=jv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ql=function(t,r){var n;hm.lastIndex=r;var i=hm.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Ql=function(t,r){for(var n=[];;){var i=$v(t,r);if(i===void 0||Hv(i)||oA(i))break;n.push(i),r+=i>=65536?2:1}return zl.apply(void 0,n)};var rA=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:je.pound,location:xe(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Se.UNMATCHED_CLOSING_TAG,xe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Yl(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:je.literal,value:"<".concat(i,"/>"),location:xe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Yl(this.char()))return this.error(Se.INVALID_TAG,xe(s,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(Se.UNMATCHED_CLOSING_TAG,xe(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:je.tag,value:i,children:a,location:xe(n,this.clonePosition())},err:null}:this.error(Se.INVALID_TAG,xe(s,this.clonePosition())))}else return this.error(Se.UNCLOSED_TAG,xe(n,this.clonePosition()))}else return this.error(Se.INVALID_TAG,xe(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&iA(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var c=xe(n,this.clonePosition());return{val:{type:je.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nA(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return zl.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),zl(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Se.EMPTY_ARGUMENT,xe(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Se.MALFORMED_ARGUMENT,xe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:je.argument,value:i,location:xe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(Se.MALFORMED_ARGUMENT,xe(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ql(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=xe(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(Se.EXPECT_ARGUMENT_TYPE,xe(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=tA(d.val);if(h.length===0)return this.error(Se.EXPECT_ARGUMENT_STYLE,xe(this.clonePosition(),this.clonePosition()));var f=xe(u,this.clonePosition());l={style:h,styleLocation:f}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var m=xe(i,this.clonePosition());if(l&&lm(l==null?void 0:l.style,"::",0)){var _=eA(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(_,l.styleLocation);return d.err?d:{val:{type:je.number,value:n,location:m,style:d.val},err:null}}else{if(_.length===0)return this.error(Se.EXPECT_DATE_TIME_SKELETON,m);var S=_;this.locale&&(S=jO(_,this.locale));var h={type:so.dateTime,pattern:S,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?kO(S):{}},v=s==="date"?je.date:je.time;return{val:{type:v,value:n,location:m,style:h},err:null}}}return{val:{type:s==="number"?je.number:s==="date"?je.date:je.time,value:n,location:m,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Se.EXPECT_SELECT_ARGUMENT_OPTIONS,xe(b,ue({},b)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),w=0;if(s!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(Se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Se.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),T=this.parseIdentifierIfPossible(),w=d.val}var N=this.tryParsePluralOrSelectOptions(t,s,r,T);if(N.err)return N;var p=this.tryParseArgumentClose(i);if(p.err)return p;var R=xe(i,this.clonePosition());return s==="select"?{val:{type:je.select,value:n,options:fm(N.val),location:R},err:null}:{val:{type:je.plural,value:n,options:fm(N.val),offset:w,pluralType:s==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(Se.INVALID_ARGUMENT_TYPE,xe(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,xe(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=FO(t)}catch{return this.error(Se.INVALID_NUMBER_SKELETON,r)}return{val:{type:so.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?$O(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,s=[],c=new Set,l=i.value,u=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(Se.EXPECT_PLURAL_ARGUMENT_SELECTOR,Se.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=xe(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?Se.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Se.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Se.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Se.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,xe(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([l,{value:p.val,location:xe(f,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,u=o.location}return s.length===0?this.error(r==="select"?Se.EXPECT_SELECT_ARGUMENT_SELECTOR:Se.EXPECT_PLURAL_ARGUMENT_SELECTOR,xe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Se.MISSING_OTHER_CLAUSE,xe(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var c=xe(i,this.clonePosition());return o?(a*=n,JO(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=$v(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(lm(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Hv(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function Yl(e){return e>=97&&e<=122||e>=65&&e<=90}function nA(e){return Yl(e)||e===47}function iA(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 Hv(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function oA(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 Kl(e){e.forEach(function(t){if(delete t.location,Iv(t)||Lv(t))for(var r in t.options)delete t.options[r].location,Kl(t.options[r].value);else Rv(t)&&Mv(t.style)||(Pv(t)||Nv(t))&&Vl(t.style)?delete t.style.location:kv(t)&&Kl(t.children)})}function sA(e,t){t===void 0&&(t={}),t=ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new rA(e,t).parse();if(r.err){var n=SyntaxError(Se[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Kl(r.val),r.val}function ur(e,t){var r=t&&t.cache?t.cache:hA,n=t&&t.serializer?t.serializer:fA,i=t&&t.strategy?t.strategy:uA;return i(e,{cache:r,serializer:n})}function aA(e){return e==null||typeof e=="number"||typeof e=="boolean"}function qv(e,t,r,n){var i=aA(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Gv(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function Vf(e,t,r,n,i){return r.bind(t,e,n,i)}function uA(e,t){var r=e.length===1?qv:Gv;return Vf(e,this,r,t.cache.create(),t.serializer)}function cA(e,t){return Vf(e,this,Gv,t.cache.create(),t.serializer)}function lA(e,t){return Vf(e,this,qv,t.cache.create(),t.serializer)}var fA=function(){return JSON.stringify(arguments)};function Wf(){this.cache=Object.create(null)}Wf.prototype.get=function(e){return this.cache[e]};Wf.prototype.set=function(e,t){this.cache[e]=t};var hA={create:function(){return new Wf}},cr={variadic:cA,monadic:lA},gr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(gr||(gr={}));var gn=function(e){Ht(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),dm=function(e){Ht(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),gr.INVALID_VALUE,o)||this}return t}(gn),dA=function(e){Ht(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),gr.INVALID_VALUE,i)||this}return t}(gn),pA=function(e){Ht(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),gr.MISSING_VALUE,n)||this}return t}(gn),_t;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(_t||(_t={}));function mA(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==_t.literal||r.type!==_t.literal?t.push(r):n.value+=r.value,t},[])}function Vv(e){return typeof e=="function"}function qa(e,t,r,n,i,o,a){if(e.length===1&&sm(e[0]))return[{type:_t.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(sm(u)){s.push({type:_t.literal,value:u.value});continue}if(IO(u)){typeof o=="number"&&s.push({type:_t.literal,value:r.getNumberFormat(t).format(o)});continue}var d=u.value;if(!(i&&d in i))throw new pA(d,a);var h=i[d];if(NO(u)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),s.push({type:typeof h=="string"?_t.literal:_t.object,value:h});continue}if(Pv(u)){var f=typeof u.style=="string"?n.date[u.style]:Vl(u.style)?u.style.parsedOptions:void 0;s.push({type:_t.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Nv(u)){var f=typeof u.style=="string"?n.time[u.style]:Vl(u.style)?u.style.parsedOptions:n.time.medium;s.push({type:_t.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Rv(u)){var f=typeof u.style=="string"?n.number[u.style]:Mv(u.style)?u.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),s.push({type:_t.literal,value:r.getNumberFormat(t,f).format(h)});continue}if(kv(u)){var p=u.children,m=u.value,_=i[m];if(!Vv(_))throw new dA(m,"function",a);var S=qa(p,t,r,n,i,o),v=_(S.map(function(w){return w.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(w){return{type:typeof w=="string"?_t.literal:_t.object,value:w}}))}if(Iv(u)){var b=u.options[h]||u.options.other;if(!b)throw new dm(u.value,h,Object.keys(u.options),a);s.push.apply(s,qa(b.value,t,r,n,i));continue}if(Lv(u)){var b=u.options["=".concat(h)];if(!b){if(!Intl.PluralRules)throw new gn(`Intl.PluralRules is not available in this environment.
66
+ Try polyfilling it using "@formatjs/intl-pluralrules"
67
+ `,gr.MISSING_INTL_API,a);var T=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));b=u.options[T]||u.options.other}if(!b)throw new dm(u.value,h,Object.keys(u.options),a);s.push.apply(s,qa(b.value,t,r,n,i,h-(u.offset||0)));continue}}return mA(s)}function gA(e,t){return t?ue(ue(ue({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ue(ue({},e[n]),t[n]||{}),r},{})):e}function yA(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=gA(e[n],t[n]),r},ue({},e)):e}function il(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function vA(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ur(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,mr([void 0],r,!1)))},{cache:il(e.number),strategy:cr.variadic}),getDateTimeFormat:ur(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,mr([void 0],r,!1)))},{cache:il(e.dateTime),strategy:cr.variadic}),getPluralRules:ur(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,mr([void 0],r,!1)))},{cache:il(e.pluralRules),strategy:cr.variadic})}}var Wv=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=o.formatToParts(c);if(l.length===1)return l[0].value;var u=l.reduce(function(d,h){return!d.length||h.type!==_t.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(c){return qa(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var s=oo(a,["formatters"]);this.ast=e.__parse(t,ue(ue({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=yA(e.formats,n),this.formatters=i&&i.formatters||vA(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=sA,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}(),ii;(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"})(ii||(ii={}));var oa=function(e){Ht(t,e);function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
68
+ `).concat(a?`
69
+ `.concat(a.message,`
70
+ `).concat(a.stack):""))||this,o.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),EA=function(e){Ht(t,e);function t(r,n){return e.call(this,ii.UNSUPPORTED_FORMATTER,r,n)||this}return t}(oa),_A=function(e){Ht(t,e);function t(r,n){return e.call(this,ii.INVALID_CONFIG,r,n)||this}return t}(oa),pm=function(e){Ht(t,e);function t(r,n){return e.call(this,ii.MISSING_DATA,r,n)||this}return t}(oa),qt=function(e){Ht(t,e);function t(r,n,i){var o=e.call(this,ii.FORMAT_ERROR,"".concat(r,`
71
+ Locale: `).concat(n,`
72
+ `),i)||this;return o.locale=n,o}return t}(oa),ol=function(e){Ht(t,e);function t(r,n,i,o){var a=e.call(this,"".concat(r,`
73
+ MessageID: `).concat(i==null?void 0:i.id,`
74
+ Default Message: `).concat(i==null?void 0:i.defaultMessage,`
75
+ Description: `).concat(i==null?void 0:i.description,`
76
+ `),n,o)||this;return a.descriptor=i,a.locale=n,a}return t}(qt),bA=function(e){Ht(t,e);function t(r,n){var i=e.call(this,ii.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(o){var a;return(a=o.value)!==null&&a!==void 0?a:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t}(oa);function ui(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var wA=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},SA=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},zv={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:wA,onWarn:SA};function Qv(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function jn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function TA(e){e===void 0&&(e=Qv());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=ur(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,mr([void 0],c,!1)))},{cache:jn(e.dateTime),strategy:cr.variadic}),o=ur(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,mr([void 0],c,!1)))},{cache:jn(e.number),strategy:cr.variadic}),a=ur(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,mr([void 0],c,!1)))},{cache:jn(e.pluralRules),strategy:cr.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:ur(function(s,c,l,u){return new Wv(s,c,l,ue({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},u||{}))},{cache:jn(e.message),strategy:cr.variadic}),getRelativeTimeFormat:ur(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(t.bind.apply(t,mr([void 0],s,!1)))},{cache:jn(e.relativeTime),strategy:cr.variadic}),getPluralRules:a,getListFormat:ur(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(r.bind.apply(r,mr([void 0],s,!1)))},{cache:jn(e.list),strategy:cr.variadic}),getDisplayNames:ur(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(n.bind.apply(n,mr([void 0],s,!1)))},{cache:jn(e.displayNames),strategy:cr.variadic})}}function zf(e,t,r,n){var i=e&&e[t],o;if(i&&(o=i[r]),o)return o;n(new EA("No ".concat(t," format named: ").concat(r)))}function La(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=ue({timeZone:t},e[n]),r},{})}function mm(e,t){var r=Object.keys(ue(ue({},e),t));return r.reduce(function(n,i){return n[i]=ue(ue({},e[i]||{}),t[i]||{}),n},{})}function gm(e,t){if(!t)return e;var r=Wv.formats;return ue(ue(ue({},r),e),{date:mm(La(r.date,t),La(e.date||{},t)),time:mm(La(r.time,t),La(e.time||{},t))})}var Xl=function(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,l=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,f=e.defaultRichTextElements;r===void 0&&(r={id:""});var p=r.id,m=r.defaultMessage;Cv(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var _=String(p),S=s&&Object.prototype.hasOwnProperty.call(s,_)&&s[_];if(Array.isArray(S)&&S.length===1&&S[0].type===je.literal)return S[0].value;if(!n&&S&&typeof S=="string"&&!f)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=ue(ue({},f),n||{}),a=gm(a,h),l=gm(l,h),!S){if(u===!1&&S==="")return S;if((!m||o&&o.toLowerCase()!==c.toLowerCase())&&d(new bA(r,o)),m)try{var v=t.getMessageFormat(m,c,l,i);return v.format(n)}catch(b){return d(new ol('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),o,r,b)),typeof m=="string"?m:_}return _}try{var v=t.getMessageFormat(S,o,a,ue({formatters:t},i||{}));return v.format(n)}catch(b){d(new ol('Error formatting message: "'.concat(_,'", using ').concat(m?"default message":"id"," as fallback."),o,r,b))}if(m)try{var v=t.getMessageFormat(m,c,l,i);return v.format(n)}catch(b){d(new ol('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),o,r,b))}return typeof S=="string"?S:typeof m=="string"?m:_},Yv=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Tu(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;n===void 0&&(n={});var c=n.format,l=ue(ue({},s&&{timeZone:s}),c&&zf(o,t,c,a)),u=ui(n,Yv,l);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=ue(ue({},u),{hour:"numeric",minute:"numeric"})),r(i,u)}function xA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Tu(e,"date",t,a).format(s)}catch(c){e.onError(new qt("Error formatting date.",e.locale,c))}return String(s)}function OA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Tu(e,"time",t,a).format(s)}catch(c){e.onError(new qt("Error formatting time.",e.locale,c))}return String(s)}function AA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=a===void 0?{}:a,c=e.timeZone,l=e.locale,u=e.onError,d=ui(s,Yv,c?{timeZone:c}:{});try{return t(l,d).formatRange(i,o)}catch(h){u(new qt("Error formatting date time range.",e.locale,h))}return String(i)}function CA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Tu(e,"date",t,a).formatToParts(s)}catch(c){e.onError(new qt("Error formatting date.",e.locale,c))}return[]}function RA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Tu(e,"time",t,a).formatToParts(s)}catch(c){e.onError(new qt("Error formatting time.",e.locale,c))}return[]}var PA=["style","type","fallback","languageDisplay"];function NA(e,t,r,n){var i=e.locale,o=e.onError,a=Intl.DisplayNames;a||o(new gn(`Intl.DisplayNames is not available in this environment.
77
+ Try polyfilling it using "@formatjs/intl-displaynames"
78
+ `,gr.MISSING_INTL_API));var s=ui(n,PA);try{return t(i,s).of(r)}catch(c){o(new qt("Error formatting display name.",i,c))}}var IA=["type","style"],ym=Date.now();function LA(e){return"".concat(ym,"_").concat(e,"_").concat(ym)}function kA(e,t,r,n){n===void 0&&(n={});var i=Kv(e,t,r,n).reduce(function(o,a){var s=a.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return i.length===1?i[0]:i.length===0?"":i}function Kv(e,t,r,n){var i=e.locale,o=e.onError;n===void 0&&(n={});var a=Intl.ListFormat;a||o(new gn(`Intl.ListFormat is not available in this environment.
79
+ Try polyfilling it using "@formatjs/intl-listformat"
80
+ `,gr.MISSING_INTL_API));var s=ui(n,IA);try{var c={},l=r.map(function(u,d){if(typeof u=="object"){var h=LA(d);return c[h]=u,h}return String(u)});return t(i,s).formatToParts(l).map(function(u){return u.type==="literal"?u:ue(ue({},u),{value:c[u.value]||u.value})})}catch(u){o(new qt("Error formatting list.",i,u))}return r}var MA=["type"];function FA(e,t,r,n){var i=e.locale,o=e.onError;n===void 0&&(n={}),Intl.PluralRules||o(new gn(`Intl.PluralRules is not available in this environment.
81
+ Try polyfilling it using "@formatjs/intl-pluralrules"
82
+ `,gr.MISSING_INTL_API));var a=ui(n,MA);try{return t(i,a).select(r)}catch(s){o(new qt("Error formatting plural.",i,s))}return"other"}var DA=["numeric","style"];function BA(e,t,r){var n=e.locale,i=e.formats,o=e.onError;r===void 0&&(r={});var a=r.format,s=!!a&&zf(i,"relative",a,o)||{},c=ui(r,DA,s);return t(n,c)}function UA(e,t,r,n,i){i===void 0&&(i={}),n||(n="second");var o=Intl.RelativeTimeFormat;o||e.onError(new gn(`Intl.RelativeTimeFormat is not available in this environment.
83
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
+ `,gr.MISSING_INTL_API));try{return BA(e,t,i).format(r,n)}catch(a){e.onError(new qt("Error formatting relative time.",e.locale,a))}return String(r)}var $A=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Xv(e,t,r){var n=e.locale,i=e.formats,o=e.onError;r===void 0&&(r={});var a=r.format,s=a&&zf(i,"number",a,o)||{},c=ui(r,$A,s);return t(n,c)}function jA(e,t,r,n){n===void 0&&(n={});try{return Xv(e,t,n).format(r)}catch(i){e.onError(new qt("Error formatting number.",e.locale,i))}return String(r)}function HA(e,t,r,n){n===void 0&&(n={});try{return Xv(e,t,n).formatToParts(r)}catch(i){e.onError(new qt("Error formatting number.",e.locale,i))}return[]}function qA(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function GA(e){e.onWarn&&e.defaultRichTextElements&&qA(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
85
+ Please consider using "@formatjs/cli" to pre-compile your messages for performance.
86
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function VA(e,t){var r=TA(t),n=ue(ue({},zv),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new pm('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new pm('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new _A('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),GA(n),ue(ue({},n),{formatters:r,formatNumber:jA.bind(null,n,r.getNumberFormat),formatNumberToParts:HA.bind(null,n,r.getNumberFormat),formatRelativeTime:UA.bind(null,n,r.getRelativeTimeFormat),formatDate:xA.bind(null,n,r.getDateTimeFormat),formatDateToParts:CA.bind(null,n,r.getDateTimeFormat),formatTime:OA.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:AA.bind(null,n,r.getDateTimeFormat),formatTimeToParts:RA.bind(null,n,r.getDateTimeFormat),formatPlural:FA.bind(null,n,r.getPluralRules),formatMessage:Xl.bind(null,n,r),$t:Xl.bind(null,n,r),formatList:kA.bind(null,n,r.getListFormat),formatListToParts:Kv.bind(null,n,r.getListFormat),formatDisplayName:NA.bind(null,n,r.getDisplayNames)})}function Jv(e){Cv(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Zv=ue(ue({},zv),{textComponent:pe.Fragment});function WA(e){return function(t){return e(pe.Children.toArray(t))}}function Jl(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var a=r[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var Qf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=pe.createContext(null)):pe.createContext(null);Qf.Consumer;var zA=Qf.Provider,QA=zA,YA=Qf;function Oe(){var e=pe.useContext(YA);return Jv(e),e}var Zl;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Zl||(Zl={}));var ef;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(ef||(ef={}));function e0(e){var t=function(r){var n=Oe(),i=r.value,o=r.children,a=oo(r,["value","children"]),s=typeof i=="string"?new Date(i||0):i,c=e==="formatDate"?n.formatDateToParts(s,a):n.formatTimeToParts(s,a);return o(c)};return t.displayName=ef[e],t}function sa(e){var t=function(r){var n=Oe(),i=r.value,o=r.children,a=oo(r,["value","children"]),s=n[e](i,a);if(typeof o=="function")return o(s);var c=n.textComponent||pe.Fragment;return pe.createElement(c,null,s)};return t.displayName=Zl[e],t}function sl(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}}function t0(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=Vv(n)?WA(n):n,t},{})}var vm=function(e,t,r,n){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=t0(n),s=Xl.apply(void 0,mr([e,t,r,a],i,!1));return Array.isArray(s)?pe.Children.toArray(s):s},tf=function(e,t){var r=e.defaultRichTextElements,n=oo(e,["defaultRichTextElements"]),i=t0(r),o=VA(ue(ue(ue({},Zv),n),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return ue(ue({},o),{formatMessage:vm.bind(null,a,o.formatters),$t:vm.bind(null,a,o.formatters)})},KA=function(e){Ht(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=Qv(),r.state={cache:r.cache,intl:tf(sl(r.props),r.cache),prevConfig:sl(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var i=n.prevConfig,o=n.cache,a=sl(r);return Jl(i,a)?null:{intl:tf(a,o),prevConfig:a}},t.prototype.render=function(){return Jv(this.state.intl),pe.createElement(QA,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Zv,t}(pe.PureComponent);function XA(e,t){var r=e.values,n=oo(e,["values"]),i=t.values,o=oo(t,["values"]);return Jl(i,r)&&Jl(n,o)}function r0(e){var t=Oe(),r=t.formatMessage,n=t.textComponent,i=n===void 0?pe.Fragment:n,o=e.id,a=e.description,s=e.defaultMessage,c=e.values,l=e.children,u=e.tagName,d=u===void 0?i:u,h=e.ignoreTag,f={id:o,description:a,defaultMessage:s},p=r(f,c,{ignoreTag:h});return typeof l=="function"?l(Array.isArray(p)?p:[p]):d?pe.createElement(d,null,pe.Children.toArray(p)):pe.createElement(pe.Fragment,null,p)}r0.displayName="FormattedMessage";var n0=pe.memo(r0,XA);n0.displayName="MemoizedFormattedMessage";const ln=n0;sa("formatDate");sa("formatTime");sa("formatNumber");sa("formatList");sa("formatDisplayName");e0("formatDate");e0("formatTime");let vs=!1;const i0=({isOpen:e=!1,isLoading:t=!1,children:r})=>{const n=Oe(),i=U.useRef(null),[o,a]=U.useState("hidden");U.useEffect(()=>{const c=i.current;if(c)return c.addEventListener("transitionend",s),()=>{c.removeEventListener("transitionend",s)}},[]);const s=({propertyName:c})=>{c==="opacity"&&(vs!==!1&&clearTimeout(vs),a(l=>l==="opening"?"open":l==="closing"?"closed":l==="closed"?"hidden":l))};return ri(()=>{vs!==!1&&clearTimeout(vs);let c="open";e?a("opening"):(a("closing"),c="hidden"),vs=setTimeout(()=>{a(c)},300)},[e]),x.jsx("aside",{ref:i,className:se("tooltip text-medium",o,{loading:t}),hidden:o==="hidden",children:t?x.jsx("p",{children:n.formatMessage({id:"tooltip_loading"})}):typeof r=="string"?x.jsx("p",{children:r}):r})};const Yf=({children:e,className:t="",...r})=>x.jsx("section",{className:se("full-width-section",t),...r,children:e});const JA=({text:e,buttons:t,className:r=""})=>{const n=[];return t.forEach(i=>{n.push({href:i.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":i.eventContext||"Download",target:"_blank",children:i.text})}),x.jsx(Yf,{className:se("download-section",r),children:x.jsxs(x.Fragment,{children:[U.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),x.jsx(na,{buttons:n})]})})};const ZA=({title:e=!1,logos:t=[],className:r=""})=>{const n=t.length;if(n===0)return null;const i={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return x.jsxs("div",{className:se("logos",r),children:[e&&U.createElement(i.element,{className:"title"},i.text),x.jsx("ul",{className:se({"two-col":n===2||n===4,"three-col":n===5||n<=10&&n%3===0}),children:t.map(({logo:o,nameOfBusiness:a,link:s=!1,description:c=!1},l)=>{if(!o||!o.url)return null;const u=x.jsx("img",{src:o.url,width:o.width||"auto",height:o.height||"auto",alt:a});return x.jsxs("li",{children:[x.jsx("p",{className:"img-wrapper",children:s?x.jsx("a",{href:s,target:"_blank",rel:"nofollow noreferrer noopener",children:u}):u}),c&&x.jsx("small",{children:c})]},window.btoa(`${o.url}_${l}`))})})]})};const eC=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],tC=({content:e,image:t,variant:r="default",spacing:n="normal",cta:i,children:o})=>{const a=["eyebrow","title","text"],s={eyebrow:"small",title:"h1",text:"p"},c={};return a.forEach(l=>{if(!e[l]){c[l]=!1;return}if(typeof e[l]=="object"){c[l]=e[l];const{text:u,element:d}=e[l];if(d&&eC.includes(d.toLowerCase()))return;c[l]={text:u,element:s[l]};return}c[l]={text:e[l],element:s[l]}}),i&&i.link&&i.link[0]==="#"&&(i.props||(i.props={}),i.props.onClick=l=>{l.preventDefault(),l.stopPropagation();const u=document.getElementById(i.link.substring(1));u&&u.scrollIntoView({behavior:"smooth"})}),x.jsx(Yf,{className:se("banner-section",r,n,{"has-image":t,"has-extra-spacing":n==="normal"&&c.eyebrow&&c.title}),children:x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"content-wrapper",children:[a.map(l=>{if(c[l]&&typeof c[l]=="object"){const{text:u,element:d=""}=c[l];return U.createElement(d.toLowerCase(),{key:l,className:l},u)}return null}),o,i&&i.text&&i.link&&x.jsx(ze,{variant:t||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:i.link,...i.props,children:i.text})]}),t&&x.jsx(Av,{image:{...t,aspect:"banner"}})]})})},rC=U.memo(tC);const nC=({variant:e="primary",button:t=null,title:r,text:n,gtmContext:i})=>!r&&!n?null:x.jsxs("aside",{className:se("marketing-block",e),children:[r&&x.jsx("p",{className:"title",children:r}),n&&x.jsx("p",{children:n}),t&&x.jsx(ze,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":i,"data-gtm-event-type":"learn-more-click",children:t.text})]});var o0={exports:{}};(function(e){(function(t,r){var n="…",i=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function o(s,c,l){return l.length===s.length||!c.ellipsis||(l+=c.ellipsis),l}function a(s,c,l){var u="",d=!0,h=c,f,p;if(l=l||{},l.ellipsis=typeof l.ellipsis>"u"?n:l.ellipsis,!s||s.length===0)return"";for(d=!0;d;){if(i.lastIndex=u.length,d=i.exec(s),!d||d.index-u.length>=h||i.lastIndex>=c+3e3)return u+=s.substring(u.length,c),o(s,l,u);if(f=d[0],p=d.index,u+=s.substring(u.length,p+f.length),h-=p+f.length,h<=0)break}return o(s,l,u)}e.exports?e.exports=a:t.truncate=a})(String)})(o0);var iC=o0.exports;const Kf=Er(iC),ru="https://storage.googleapis.com/apolitical-assets/",Ni={general:"hello@apolitical.co",support:"concierge@apolitical.co","data-protection":{default:"dpo@apolitical.co",eu:"dpo.agl@apolitical.foundation"}},oC="200,000+";const Xf=({label:e=!1,className:t="",children:r})=>{const n=Oe();return x.jsxs("details",{className:se("collapsible-section",t),children:[x.jsx("summary",{children:e||n.formatMessage({id:"collapsibleSection_summary"})}),x.jsx("div",{className:"content",children:r})]})};function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qn.apply(this,arguments)}const sC=["children","options"],Em=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),_m={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},aC=["style","script"],uC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,cC=/mailto:/i,lC=/\n{2,}$/,s0=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,fC=/^ *> ?/gm,hC=/^ {2,}\n/,dC=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,a0=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,u0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,pC=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,mC=/^(?:\n *)*\n/,gC=/\r\n?/g,yC=/^\[\^([^\]]+)](:.*)\n/,vC=/^\[\^([^\]]+)]/,EC=/\f/g,_C=/^\s*?\[(x|\s)\]/,c0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,l0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,f0=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,rf=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,bC=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,h0=/^<!--[\s\S]*?(?:-->)/,wC=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,nf=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,SC=/^\{.*\}$/,TC=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,xC=/^<([^ >]+@[^ >]+)>/,OC=/^<([^ >]+:\/[^ >]+)>/,AC=/-([a-z])?/gi,d0=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,CC=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,RC=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,PC=/^\[([^\]]*)\] ?\[([^\]]*)\]/,NC=/(\[|\])/g,IC=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,LC=/\t/g,kC=/^ *\| */,MC=/(^ *\||\| *$)/g,FC=/ *$/,DC=/^ *:-+: *$/,BC=/^ *:-+ *$/,UC=/^ *-+: *$/,$C=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,jC=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,HC=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,qC=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,GC=/^\\([^0-9A-Za-z\s])/,VC=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,WC=/^\n+/,zC=/^([ \t]*)/,QC=/\\([^\\])/g,bm=/ *\n+$/,YC=/(?:^|\n)( *)$/,Jf="(?:\\d+\\.)",Zf="(?:[*+-])";function p0(e){return"( *)("+(e===1?Jf:Zf)+") +"}const m0=p0(1),g0=p0(2);function y0(e){return new RegExp("^"+(e===1?m0:g0))}const KC=y0(1),XC=y0(2);function v0(e){return new RegExp("^"+(e===1?m0:g0)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Jf:Zf)+" )[^\\n]*)*(\\n|$)","gm")}const E0=v0(1),_0=v0(2);function b0(e){const t=e===1?Jf:Zf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const w0=b0(1),S0=b0(2);function wm(e,t){const r=t===1,n=r?w0:S0,i=r?E0:_0,o=r?KC:XC;return{t(a,s,c){const l=YC.exec(c);return l&&(s.o||!s._&&!s.u)?n.exec(a=l[1]+a):null},i:Te.HIGH,l(a,s,c){const l=r?+a[2]:void 0,u=a[0].replace(lC,`
87
+ `).match(i);let d=!1;return{p:u.map(function(h,f){const p=o.exec(h)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),_=h.replace(m,"").replace(o,""),S=f===u.length-1,v=_.indexOf(`
88
+
89
+ `)!==-1||S&&d;d=v;const b=c._,T=c.o;let w;c.o=!0,v?(c._=!1,w=_.replace(bm,`
90
+
91
+ `)):(c._=!0,w=_.replace(bm,""));const N=s(w,c);return c._=b,c.o=T,N}),m:r,g:l}},h:(a,s,c)=>e(a.m?"ol":"ul",{key:c.k,start:a.g},a.p.map(function(l,u){return e("li",{key:u},s(l,c))}))}}const JC=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ZC=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,T0=[s0,a0,u0,c0,f0,l0,h0,d0,E0,w0,_0,S0],e1=[...T0,/^[^\n]+(?: \n|\n{2,})/,rf,nf];function t1(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function r1(e){return UC.test(e)?"right":DC.test(e)?"center":BC.test(e)?"left":null}function Sm(e,t,r){const n=r.$;r.$=!0;const i=t(e.trim(),r);r.$=n;let o=[[]];return i.forEach(function(a,s){a.type==="tableSeparator"?s!==0&&s!==i.length-1&&o.push([]):(a.type!=="text"||i[s+1]!=null&&i[s+1].type!=="tableSeparator"||(a.v=a.v.replace(FC,"")),o[o.length-1].push(a))}),o}function n1(e,t,r){r._=!0;const n=Sm(e[1],t,r),i=e[2].replace(MC,"").split("|").map(r1),o=function(a,s,c){return a.trim().split(`
92
+ `).map(function(l){return Sm(l,s,c)})}(e[3],t,r);return r._=!1,{S:i,A:o,L:n,type:"table"}}function Tm(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function Kr(e){return function(t,r){return r._?e.exec(t):null}}function Xr(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Ir(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Es(e){return function(t){return e.exec(t)}}function i1(e,t,r){if(t._||t.u||r&&!r.endsWith(`
93
+ `))return null;let n="";e.split(`
94
+ `).every(o=>!T0.some(a=>a.test(o))&&(n+=o+`
95
+ `,o.trim()));const i=n.trimEnd();return i==""?null:[n,i]}function Ai(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function xm(e){return e.replace(QC,"$1")}function Ga(e,t,r){const n=r._||!1,i=r.u||!1;r._=!0,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function o1(e,t,r){const n=r._||!1,i=r.u||!1;r._=!1,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function s1(e,t,r){return r._=!1,e(t,r)}const al=(e,t,r)=>({v:Ga(t,e[1],r)});function ul(){return{}}function cl(){return null}function a1(...e){return e.filter(Boolean).join(" ")}function ll(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],n!==void 0);)i.shift();return n||r}var Te;function u1(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||t1,t.namedCodesToUnicode=t.namedCodesToUnicode?qn({},_m,t.namedCodesToUnicode):_m;const r=t.createElement||pe.createElement;function n(f,p,...m){const _=ll(t.overrides,`${f}.props`,{});return r(function(S,v){const b=ll(v,S);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:ll(v,`${S}.component`,S):S}(f,t.overrides),qn({},p,_,{className:a1(p==null?void 0:p.className,_.className)||void 0}),...m)}function i(f){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=IC.test(f)===!1);const m=u(l(p?f:`${f.trimEnd().replace(WC,"")}
96
+
97
+ `,{_:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const _=t.wrapper||(p?"span":"div");let S;if(m.length>1||t.forceWrapper)S=m;else{if(m.length===1)return S=m[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return pe.createElement(_,{key:"outer"},S)}function o(f){const p=f.match(uC);return p?p.reduce(function(m,_,S){const v=_.indexOf("=");if(v!==-1){const b=function(R){return R.indexOf("-")!==-1&&R.match(wC)===null&&(R=R.replace(AC,function(L,$){return $.toUpperCase()})),R}(_.slice(0,v)).trim(),T=function(R){const L=R[0];return(L==='"'||L==="'")&&R.length>=2&&R[R.length-1]===L?R.slice(1,-1):R}(_.slice(v+1).trim()),w=Em[b]||b,N=m[w]=function(R,L){return R==="style"?L.split(/;\s?/).reduce(function($,G){const q=G.slice(0,G.indexOf(":"));return $[q.replace(/(-[a-z])/g,H=>H[1].toUpperCase())]=G.slice(q.length+1).trim(),$},{}):R==="href"?Ai(L):(L.match(SC)&&(L=L.slice(1,L.length-1)),L==="true"||L!=="false"&&L)}(b,T);typeof N=="string"&&(rf.test(N)||nf.test(N))&&(m[w]=pe.cloneElement(i(N.trim()),{key:S}))}else _!=="style"&&(m[Em[_]||_]=!0);return m},{}):null}const a=[],s={},c={blockQuote:{t:Ir(s0),i:Te.HIGH,l:(f,p,m)=>({v:p(f[0].replace(fC,""),m)}),h:(f,p,m)=>n("blockquote",{key:m.k},p(f.v,m))},breakLine:{t:Es(hC),i:Te.HIGH,l:ul,h:(f,p,m)=>n("br",{key:m.k})},breakThematic:{t:Ir(dC),i:Te.HIGH,l:ul,h:(f,p,m)=>n("hr",{key:m.k})},codeBlock:{t:Ir(u0),i:Te.MAX,l:f=>({v:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(f,p,m)=>n("pre",{key:m.k},n("code",qn({},f.O,{className:f.M?`lang-${f.M}`:""}),f.v))},codeFenced:{t:Ir(a0),i:Te.MAX,l:f=>({O:o(f[3]||""),v:f[4],M:f[2]||void 0,type:"codeBlock"})},codeInline:{t:Xr(pC),i:Te.LOW,l:f=>({v:f[2]}),h:(f,p,m)=>n("code",{key:m.k},f.v)},footnote:{t:Ir(yC),i:Te.MAX,l:f=>(a.push({I:f[2],j:f[1]}),{}),h:cl},footnoteReference:{t:Kr(vC),i:Te.HIGH,l:f=>({v:f[1],B:`#${t.slugify(f[1])}`}),h:(f,p,m)=>n("a",{key:m.k,href:Ai(f.B)},n("sup",{key:m.k},f.v))},gfmTask:{t:Kr(_C),i:Te.HIGH,l:f=>({R:f[1].toLowerCase()==="x"}),h:(f,p,m)=>n("input",{checked:f.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:Ir(t.enforceAtxHeadings?l0:c0),i:Te.HIGH,l:(f,p,m)=>({v:Ga(p,f[2],m),T:t.slugify(f[2]),C:f[1].length}),h:(f,p,m)=>n(`h${f.C}`,{id:f.T,key:m.k},p(f.v,m))},headingSetext:{t:Ir(f0),i:Te.MAX,l:(f,p,m)=>({v:Ga(p,f[1],m),C:f[2]==="="?1:2,type:"heading"})},htmlComment:{t:Es(h0),i:Te.HIGH,l:()=>({}),h:cl},image:{t:Xr(ZC),i:Te.HIGH,l:f=>({D:f[1],B:xm(f[2]),F:f[3]}),h:(f,p,m)=>n("img",{key:m.k,alt:f.D||void 0,title:f.F||void 0,src:Ai(f.B)})},link:{t:Kr(JC),i:Te.LOW,l:(f,p,m)=>({v:o1(p,f[1],m),B:xm(f[2]),F:f[3]}),h:(f,p,m)=>n("a",{key:m.k,href:Ai(f.B),title:f.F},p(f.v,m))},linkAngleBraceStyleDetector:{t:Kr(OC),i:Te.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],type:"link"})},linkBareUrlDetector:{t:(f,p)=>p.N?null:Kr(TC)(f,p),i:Te.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Kr(xC),i:Te.MAX,l(f){let p=f[1],m=f[1];return cC.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:wm(n,1),unorderedList:wm(n,2),newlineCoalescer:{t:Ir(mC),i:Te.LOW,l:ul,h:()=>`
98
+ `},paragraph:{t:i1,i:Te.LOW,l:al,h:(f,p,m)=>n("p",{key:m.k},p(f.v,m))},ref:{t:Kr(CC),i:Te.MAX,l:f=>(s[f[1]]={B:f[2],F:f[4]},{}),h:cl},refImage:{t:Xr(RC),i:Te.MAX,l:f=>({D:f[1]||void 0,P:f[2]}),h:(f,p,m)=>n("img",{key:m.k,alt:f.D,src:Ai(s[f.P].B),title:s[f.P].F})},refLink:{t:Kr(PC),i:Te.MAX,l:(f,p,m)=>({v:p(f[1],m),Z:p(f[0].replace(NC,"\\$1"),m),P:f[2]}),h:(f,p,m)=>s[f.P]?n("a",{key:m.k,href:Ai(s[f.P].B),title:s[f.P].F},p(f.v,m)):n("span",{key:m.k},p(f.Z,m))},table:{t:Ir(d0),i:Te.HIGH,l:n1,h:(f,p,m)=>n("table",{key:m.k},n("thead",null,n("tr",null,f.L.map(function(_,S){return n("th",{key:S,style:Tm(f,S)},p(_,m))}))),n("tbody",null,f.A.map(function(_,S){return n("tr",{key:S},_.map(function(v,b){return n("td",{key:b,style:Tm(f,b)},p(v,m))}))})))},tableSeparator:{t:function(f,p){return p.$?(p._=!0,kC.exec(f)):null},i:Te.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Es(VC),i:Te.MIN,l:f=>({v:f[0].replace(bC,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:f=>f.v},textBolded:{t:Xr($C),i:Te.MED,l:(f,p,m)=>({v:p(f[2],m)}),h:(f,p,m)=>n("strong",{key:m.k},p(f.v,m))},textEmphasized:{t:Xr(jC),i:Te.LOW,l:(f,p,m)=>({v:p(f[2],m)}),h:(f,p,m)=>n("em",{key:m.k},p(f.v,m))},textEscaped:{t:Xr(GC),i:Te.HIGH,l:f=>({v:f[1],type:"text"})},textMarked:{t:Xr(HC),i:Te.LOW,l:al,h:(f,p,m)=>n("mark",{key:m.k},p(f.v,m))},textStrikethroughed:{t:Xr(qC),i:Te.LOW,l:al,h:(f,p,m)=>n("del",{key:m.k},p(f.v,m))}};t.disableParsingRawHTML!==!0&&(c.htmlBlock={t:Es(rf),i:Te.HIGH,l(f,p,m){const[,_]=f[3].match(zC),S=new RegExp(`^${_}`,"gm"),v=f[3].replace(S,""),b=(T=v,e1.some(L=>L.test(T))?s1:Ga);var T;const w=f[1].toLowerCase(),N=aC.indexOf(w)!==-1;m.N=m.N||w==="a";const R=N?f[3]:b(p,v,m);return m.N=!1,{O:o(f[2]),v:R,G:N,H:N?w:f[1]}},h:(f,p,m)=>n(f.H,qn({key:m.k},f.O),f.G?f.v:p(f.v,m))},c.htmlSelfClosing={t:Es(nf),i:Te.HIGH,l:f=>({O:o(f[2]||""),H:f[1]}),h:(f,p,m)=>n(f.H,qn({},f.O,{key:m.k}))});const l=function(f){let p=Object.keys(f);function m(_,S){let v=[],b="";for(;_;){let T=0;for(;T<p.length;){const w=p[T],N=f[w],R=N.t(_,S,b);if(R){const L=R[0];_=_.substring(L.length);const $=N.l(R,m,S);$.type==null&&($.type=w),v.push($),b=L;break}T++}}return v}return p.sort(function(_,S){let v=f[_].i,b=f[S].i;return v!==b?v-b:_<S?-1:1}),function(_,S){return m(function(v){return v.replace(gC,`
99
+ `).replace(EC,"").replace(LC," ")}(_),S)}}(c),u=(d=function(f){return function(p,m,_){return f[p.type].h(p,m,_)}}(c),function f(p,m={}){if(Array.isArray(p)){const _=m.k,S=[];let v=!1;for(let b=0;b<p.length;b++){m.k=b;const T=f(p[b],m),w=typeof T=="string";w&&v?S[S.length-1]+=T:T!==null&&S.push(T),v=w}return m.k=_,S}return d(p,f,m)});var d;const h=i(e);return a.length?n("div",null,h,n("footer",{key:"footer"},a.map(function(f){return n("div",{id:t.slugify(f.j),key:f.j},f.j,u(l(f.I,{_:!0})))}))):h}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Te||(Te={}));const xu=e=>{let{children:t,options:r}=e,n=function(i,o){if(i==null)return{};var a,s,c={},l=Object.keys(i);for(s=0;s<l.length;s++)o.indexOf(a=l[s])>=0||(c[a]=i[a]);return c}(e,sC);return pe.cloneElement(u1(t,r),n)};const Br=({variant:e="primary",className:t="",children:r,...n})=>x.jsx("div",{className:se("highlighted-text-box",e,t),...n,children:r});const aa=({variant:e="empty",text:t=!1,button:r=!1,className:n=""})=>{let i=r&&!!Object.keys(r).length;const o=typeof r=="object"&&"breakpoints"in r,a=ra(o);if(o&&typeof r=="object"&&typeof a=="number"){const d=Object.assign({},r.breakpoints),h=Tv(Object.keys(d));i=xv(a,h,d)}const{breakpoints:s,text:c="",component:l,...u}=r;return x.jsx(Br,{variant:"subtle",className:se("empty-state-box",e,n),children:x.jsxs(x.Fragment,{children:[t&&x.jsx(xu,{options:{forceBlock:!0},children:t}),i&&typeof r=="object"&&(l||x.jsx(ze,{...u,variant:r.variant?r.variant:"secondary",children:c}))]})})};const of=({children:e,...t})=>x.jsx("p",{...t,children:e}),x0={q:of,blockquote:of};for(let e=1;e<=6;e++)x0[`h${e}`]={component:of,props:{className:"title"}};const O0=({type:e="default",className:t="",heading:r=!1,children:n})=>x.jsxs("div",{className:se("helper-text-box text-small",e,t),children:[r&&x.jsx("p",{className:"title",children:r}),typeof n=="string"?x.jsx(xu,{options:{wrapper:U.Fragment,forceBlock:!0,overrides:x0},children:n}):x.jsx("p",{children:n})]});const c1=({className:e="",show:t=!1,hide:r=!1,text:n,children:i})=>{const o=Oe(),a=U.useRef(null),[s,c]=U.useState(""),[l,u]=U.useState("closed");U.useEffect(()=>{const f=a.current;if(f)return f.addEventListener("transitionend",d),()=>{f.removeEventListener("transitionend",d)}},[]),U.useEffect(()=>{if(!n||typeof n!="string")return;const f=n.split(`
100
+ `);c(f.length<3?`${n.substring(0,400)}...`:f.slice(0,3).join(`
101
+ `))},[n]),U.useEffect(()=>{l==="ready-to-close"&&u("closing")},[l]);const d=({propertyName:f})=>{f==="max-height"&&u(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!n)return null;const h=["opening","open"].includes(l);return x.jsxs(Br,{variant:"subtle",className:se("hide-show-text-box",e),children:[x.jsxs("div",{ref:a,className:se("content",l),children:[x.jsx(xu,{options:{forceBlock:!0},children:l==="closed"?s:n}),l!=="closed"&&i]}),x.jsx("p",{className:"cta",children:x.jsx(ze,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:se({"rotate-180":h}),onClick:()=>{u(h?"ready-to-close":"opening")},children:h?r||o.formatMessage({id:"hideShowTextBox_hide"}):t||o.formatMessage({id:"hideShowTextBox_show"})})})]})},l1=()=>U.Fragment,f1=({children:e})=>x.jsx(Br,{variant:"secondary",children:e}),h1=["span","strong","h1","h2","h3","h4","h5","h6","p"],d1=({children:e})=>{const t=Oe();if(!e)return null;let r=t.formatMessage({id:"markdown_collapsibleSection_summary"});const n=[];for(const o of U.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number"))if(U.isValidElement(o)&&o.type==="summary"){if(o.props&&o.props.children){for(const a of U.Children.toArray(o.props.children))if(!(!a||typeof a=="string"||typeof a=="number")&&U.isValidElement(a)){const s=a.type;if(h1.includes(s)){for(r=a.props.children;typeof r!="string"&&(Array.isArray(r)&&r[0].props&&r[0].props.children&&r[0].props.children[0]);)r=r[0].props.children[0];break}}}}else n.push(o);const i=r?r.toString():"";return x.jsx(Xf,{label:i,className:["Sources","Resources"].includes(i)?"discrete-links":"",children:n.map(o=>o)})},p1=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return x.jsx(Br,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return x.jsx(Br,{variant:"primary",children:e});case"pink-textbox":return x.jsx(Br,{variant:"tertiary",children:e});default:return x.jsx("div",{...t,children:e})}return x.jsx("div",{...t,children:e})},m1=e=>{const t=Oe(),r=Date.now().toString();let n="default";const i=e.src;return i.includes("youtube")||i.includes("vimeo")?n="video":i.includes("riddle")||i.includes("sli.do")?n="poll":i.includes("padlet")&&(n="padlet"),x.jsxs(x.Fragment,{children:[x.jsx(lt,{children:x.jsx("a",{href:`#content-after-iframe-${r}`,children:t.formatMessage({id:`markdown_skip${n==="default"?"":`_${n}`}`})})}),x.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${n==="default"?"":`_${n}`}`})}),x.jsx("span",{id:`content-after-iframe-${r}`,tabIndex:-1})]})},Om=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},g1=({children:e,...t})=>{let r={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(r.target="_blank");let n=e,i=!1;for(const o of U.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number")&&U.isValidElement(o)){const a=o.type;if(["button","center","span","strong"].includes(a)&&o.props&&o.props.children&&o.props.children[0])for((a==="button"||Om(o.props.children[0])==="button")&&(i=!0),n=o.props.children[0];n&&typeof n!="string"&&!(typeof n=="boolean"||typeof n=="number"||!U.isValidElement(n));)if(n.props&&n.props.children&&n.props.children[0])n=n.props.children[0],n&&Om(n)==="button"&&(i=!0);else break}return i?(r={...r,className:"button primary medium"},x.jsx("p",{className:"center",children:x.jsx(ze,{variant:"primary",size:"medium",...r,children:n})})):x.jsx("a",{...r,children:n})},A0=({children:e})=>x.jsx("span",{children:e});const sf=({className:e="",options:t={},children:r})=>{r=r.replace(/^<br\/?>/,"");const n={wrapper:U.Fragment,forceBlock:!0,overrides:{a:g1,CollapsibleSection:Xf,TextBox:Br,CaseStudy:f1,style:l1,details:d1,div:p1,iframe:m1}};return x.jsx("div",{className:se("markdown-text",e),children:x.jsx(xu,{options:{...n,...t},children:r})})};const C0=({size:e="medium",variant:t="default",className:r="",children:n})=>x.jsx("span",{className:se("pill",e,t,r),children:n});const nu=({element:e="p",children:t=null,className:r="",...n})=>U.createElement(e,{...n,className:se("status-banner text-small",r),"aria-live":"assertive"},t);const y1=({progress:e=0,text:t=!1,className:r=""})=>{const n=Oe(),i=e>75?100:e>50?75:e>25?50:e>5?25:0,o={"--progress":`${e}%`};return x.jsx("span",{className:se(`progress-bar section-${i}`,r),style:o,children:x.jsx(lt,{children:t?`${e} ${t}`:n.formatMessage({id:"progressBar"},{number:e})})})},R0=U.memo(y1);const fl="loadingBlock_",v1=({progress:e=0,steps:t=!1,className:r=""})=>{const n=Oe();t||(t={0:{text:n.formatMessage({id:`${fl}loading`})},75:{text:n.formatMessage({id:`${fl}almostDone`})},100:{text:n.formatMessage({id:`${fl}complete`})}});let i=null;const o=Object.keys(t);for(let s=0;s<o.length&&!(e<parseInt(o[s]));s++)i=o[s];const a=i&&t[i].icon?{"--icon":`url(${ru}icons/${t[i].icon}.svg)`}:{};return x.jsxs(Br,{className:se("loading-block",r,{"has-icon":i&&t[i].icon}),variant:"subtle",style:a,children:[i&&x.jsx("span",{className:"step",children:t[i].text}),x.jsx(R0,{progress:e})]})},E1=U.memo(v1);const yr=({element:e="div",className:t="",...r})=>x.jsx(Of,{element:e,className:se("loading-placeholder",t),...r});const af={header:["logo","link","link","search"],sidebar:["text","text","text","text","text"],"cards-section":["subtitle","cards"],cards:["card","card","card","card"],"overview-page":["header","sidebar","title","text","cards-section","cards-section","footer"]},P0=(e,t)=>e in af?x.jsx("div",{className:e,children:af[e].map((r,n)=>P0(r,n))},t):x.jsx(yr,{className:e},t),N0=({layout:e="overview-page"})=>x.jsx("div",{className:se("loading-state",e),children:af[e].map((t,r)=>P0(t,r))}),I0=e=>{const t=e&&e.toUpperCase().split(" ");return Array.isArray(t)&&t.length>1&&t[0]!==""?t[1]===""?t[0][0]:t[0][0]+t[t.length-1][0]:e?e.substr(0,1):""},ka=["#5AB6A3","#A2D7AF","#806056","#3962B3"],_1=e=>{const t=Math.ceil(26/ka.length),r=I0(e).toLowerCase();if(r==="")return ka[0];const n=r.charCodeAt(0)-96;for(let i=0;i<ka.length;i++)if(n<=t*(i+1))return ka[i]};const Am=256,Ou=({className:e="",src:t="",name:r,alt:n,width:i=Am,height:o=Am,...a})=>{const[s,c]=U.useState(!1),l=U.useRef(null);return U.useEffect(()=>{const u=l.current;if(!u)return;const d=u.getContext("2d");if(!d)return;const h=i,f=o;typeof window<"u"&&window.devicePixelRatio&&(u.width=h*window.devicePixelRatio,u.height=f*window.devicePixelRatio,d.scale(window.devicePixelRatio,window.devicePixelRatio)),d.fillStyle=_1(r),d.fillRect(0,0,h,f),d.font=`${h/3}px Arial`,d.textAlign="center",d.fillStyle="white",d.fillText(I0(r),h/2,f/1.6)},[r]),x.jsxs("figure",{className:se("profile-picture",e,{error:s}),...a,children:[t!==""&&!s&&x.jsx("img",{src:t,alt:n||r,onError:()=>{c(!0)},width:i,height:o}),(t===""||s)&&x.jsx("canvas",{ref:l})]})},eh=e=>e==="apolitical"?{image:`${ru}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${ru}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.country||"",url:`/profiles/${e.id}`,image:e.image&&e.image.thumbnail},b1=({role:e="",organisation:t="",country:r="",maximumCharacters:n=80})=>{const i=e!=="",o=t!=="",a=r!=="";if(!i&&!o&&!a)return"";const s=`${e}${i&&o?` — ${t}`:t}`;let c=`${s}${(i||o)&&a?`, ${r}`:r}`;return c.length>n&&(c=s),c.length>n&&(c=Kf(c,n)),c};const Au=({element:e="div",member:t="community",additionalContent:r=!1,gtmContext:n="member",gtmType:i="member-click",className:o=""})=>{const a=Oe(),s=eh(t);s.name||(s.name=a.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:c,url:l,image:u}=s,d=b1(s),h=r&&r.createdAt?bO(r.createdAt):!1,f=r&&r.createdAt?_O(r.createdAt):"";return U.createElement(e,{className:se("member text-medium",o),children:x.jsxs(ia,{href:l,gtmType:i,gtmContext:n,onClick:p=>{p==null||p.stopPropagation()},children:[x.jsx(Ou,{name:c,src:u}),x.jsxs("p",{className:"details",children:[x.jsx("strong",{children:c}),r&&x.jsxs("span",{className:"additional-content",children:[r.createdAt&&h&&x.jsx("span",{className:"date",title:f,"aria-label":f,children:a.formatMessage({id:`dates_${h.path}`},{number:h.number})}),r.didEdit&&x.jsx("em",{children:a.formatMessage({id:"discussion_edited"})})]}),d&&x.jsx("small",{children:d})]})]})})};const Cm={small:24,medium:48},L0=({element:e="div",contributors:{total:t,data:r}={total:void 0,data:[]},styling:{showText:n,size:i,showGap:o,showPlaceholders:a}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:s=2,className:c=""})=>{const l=Oe();return!r||r.length===0?null:U.createElement(e,{className:se("contributors",c,i,{"has-gap":o}),children:x.jsxs(x.Fragment,{children:[x.jsx("ul",{children:r.map((u,d)=>{let h,f="";if(d<s){const{name:p="",image:m=""}=eh(u);if(a)return x.jsx(yr,{element:"li",className:"contributor"},d);h=x.jsx(Ou,{name:p,src:m,width:Cm[i||"medium"],height:Cm[i||"medium"]})}else if(d===s){const p=(t||r.length)-s;h=x.jsxs("small",{className:se({"large-number":p>99}),children:["+",AO(p,0)]}),f="number-left"}return h?x.jsx("li",{className:se("contributor",f),children:h},d):null})}),n&&x.jsx("span",{className:"label",children:typeof n=="string"?n:r.length===1?typeof r[0]=="string"?l.formatMessage({id:`member_${r[0]}`}):Kf(r[0].name||"",20):null})]})})},w1=({children:e,locale:t,messages:r})=>{const n=t||"en",i={...OO[n],...r||{}};return x.jsx(KA,{locale:n,messages:i,children:e})},$r=U.createContext(null),S1=({children:e,user:t})=>x.jsx($r.Provider,{value:t,children:e});var mo=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(){}},ao=typeof window>"u"||"Deno"in window;function jt(){}function T1(e,t){return typeof e=="function"?e(t):e}function uf(e){return typeof e=="number"&&e>=0&&e!==1/0}function k0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Rm(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==th(a,t.options))return!1}else if(!Ps(t.queryKey,a))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Pm(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Rs(t.options.mutationKey)!==Rs(o))return!1}else if(!Ps(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function th(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rs)(e)}function Rs(e){return JSON.stringify(e,(t,r)=>cf(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Ps(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Ps(e[r],t[r])):!1}function M0(e,t){if(e===t)return e;const r=Nm(e)&&Nm(t);if(r||cf(e)&&cf(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{};let s=0;for(let c=0;c<o;c++){const l=r?c:i[c];a[l]=M0(e[l],t[l]),a[l]===e[l]&&s++}return n===o&&s===n?e:a}return t}function iu(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Nm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function cf(e){if(!Im(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Im(r)||!r.hasOwnProperty("isPrototypeOf"))}function Im(e){return Object.prototype.toString.call(e)==="[object Object]"}function F0(e){return new Promise(t=>{setTimeout(t,e)})}function Lm(e){F0(0).then(e)}function lf(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?M0(e,t):t}function x1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function O1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Gn,en,ki,eg,A1=(eg=class extends mo{constructor(){super();ne(this,Gn,void 0);ne(this,en,void 0);ne(this,ki,void 0);J(this,ki,t=>{if(!ao&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){P(this,en)||this.setEventListener(P(this,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,en))==null||t.call(this),J(this,en,void 0))}setEventListener(t){var r;J(this,ki,t),(r=P(this,en))==null||r.call(this),J(this,en,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){P(this,Gn)!==t&&(J(this,Gn,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof P(this,Gn)=="boolean"?P(this,Gn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gn=new WeakMap,en=new WeakMap,ki=new WeakMap,eg),ou=new A1,Mi,tn,Fi,tg,C1=(tg=class extends mo{constructor(){super();ne(this,Mi,!0);ne(this,tn,void 0);ne(this,Fi,void 0);J(this,Fi,t=>{if(!ao&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){P(this,tn)||this.setEventListener(P(this,Fi))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,tn))==null||t.call(this),J(this,tn,void 0))}setEventListener(t){var r;J(this,Fi,t),(r=P(this,tn))==null||r.call(this),J(this,tn,t(this.setOnline.bind(this)))}setOnline(t){P(this,Mi)!==t&&(J(this,Mi,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return P(this,Mi)}},Mi=new WeakMap,tn=new WeakMap,Fi=new WeakMap,tg),Ns=new C1;function R1(e){return Math.min(1e3*2**e,3e4)}function Cu(e){return(e??"online")==="online"?Ns.isOnline():!0}var D0=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function hl(e){return e instanceof D0}function B0(e){let t=!1,r=0,n=!1,i,o,a;const s=new Promise((_,S)=>{o=_,a=S}),c=_=>{var S;n||(f(new D0(_)),(S=e.abort)==null||S.call(e))},l=()=>{t=!0},u=()=>{t=!1},d=()=>!ou.isFocused()||e.networkMode!=="always"&&!Ns.isOnline(),h=_=>{var S;n||(n=!0,(S=e.onSuccess)==null||S.call(e,_),i==null||i(),o(_))},f=_=>{var S;n||(n=!0,(S=e.onError)==null||S.call(e,_),i==null||i(),a(_))},p=()=>new Promise(_=>{var S;i=v=>{const b=n||!d();return b&&_(v),b},(S=e.onPause)==null||S.call(e)}).then(()=>{var _;i=void 0,n||(_=e.onContinue)==null||_.call(e)}),m=()=>{if(n)return;let _;try{_=e.fn()}catch(S){_=Promise.reject(S)}Promise.resolve(_).then(h).catch(S=>{var N;if(n)return;const v=e.retry??(ao?0:3),b=e.retryDelay??R1,T=typeof b=="function"?b(r,S):b,w=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,S);if(t||!w){f(S);return}r++,(N=e.onFail)==null||N.call(e,r,S),F0(T).then(()=>{if(d())return p()}).then(()=>{t?f(S):m()})})};return Cu(e.networkMode)?m():p().then(m),{promise:s,cancel:c,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:l,continueRetry:u}}function P1(){let e=[],t=0,r=u=>{u()},n=u=>{u()};const i=u=>{let d;t++;try{d=u()}finally{t--,t||s()}return d},o=u=>{t?e.push(u):Lm(()=>{r(u)})},a=u=>(...d)=>{o(()=>{u(...d)})},s=()=>{const u=e;e=[],u.length&&Lm(()=>{n(()=>{u.forEach(d=>{r(d)})})})};return{batch:i,batchCalls:a,schedule:o,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u}}}var Ke=P1(),Vn,rg,U0=(rg=class{constructor(){ne(this,Vn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),uf(this.gcTime)&&J(this,Vn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ao?1/0:5*60*1e3))}clearGcTimeout(){P(this,Vn)&&(clearTimeout(P(this,Vn)),J(this,Vn,void 0))}},Vn=new WeakMap,rg),Di,Bi,Dt,rn,Bt,it,Fs,Wn,Ui,Va,Zt,kr,ng,N1=(ng=class extends U0{constructor(t){super();ne(this,Ui);ne(this,Zt);ne(this,Di,void 0);ne(this,Bi,void 0);ne(this,Dt,void 0);ne(this,rn,void 0);ne(this,Bt,void 0);ne(this,it,void 0);ne(this,Fs,void 0);ne(this,Wn,void 0);J(this,Wn,!1),J(this,Fs,t.defaultOptions),ye(this,Ui,Va).call(this,t.options),J(this,it,[]),J(this,Dt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,Di,t.state||I1(this.options)),this.state=P(this,Di),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!P(this,it).length&&this.state.fetchStatus==="idle"&&P(this,Dt).remove(this)}setData(t,r){const n=lf(this.state.data,t,this.options);return ye(this,Zt,kr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ye(this,Zt,kr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n;const r=P(this,rn);return(n=P(this,Bt))==null||n.cancel(t),r?r.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Di))}isActive(){return P(this,it).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||P(this,it).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!k0(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=P(this,it).find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=P(this,Bt))==null||r.continue()}onOnline(){var r;const t=P(this,it).find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=P(this,Bt))==null||r.continue()}addObserver(t){P(this,it).includes(t)||(P(this,it).push(t),this.clearGcTimeout(),P(this,Dt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){P(this,it).includes(t)&&(J(this,it,P(this,it).filter(r=>r!==t)),P(this,it).length||(P(this,Bt)&&(P(this,Wn)?P(this,Bt).cancel({revert:!0}):P(this,Bt).cancelRetry()),this.scheduleGc()),P(this,Dt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return P(this,it).length}invalidate(){this.state.isInvalidated||ye(this,Zt,kr).call(this,{type:"invalidate"})}fetch(t,r){var l,u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(P(this,rn))return(l=P(this,Bt))==null||l.continueRetry(),P(this,rn)}if(t&&ye(this,Ui,Va).call(this,t),!this.options.queryFn){const f=P(this,it).find(p=>p.options.queryFn);f&&ye(this,Ui,Va).call(this,f.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(J(this,Wn,!0),n.signal)})};o(i);const a=()=>this.options.queryFn?(J(this,Wn,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(u=this.options.behavior)==null||u.onFetch(s,this),J(this,Bi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&ye(this,Zt,kr).call(this,{type:"fetch",meta:(h=s.fetchOptions)==null?void 0:h.meta});const c=f=>{var p,m,_,S;hl(f)&&f.silent||ye(this,Zt,kr).call(this,{type:"error",error:f}),hl(f)||((m=(p=P(this,Dt).config).onError)==null||m.call(p,f,this),(S=(_=P(this,Dt).config).onSettled)==null||S.call(_,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return J(this,Bt,B0({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,m,_,S;if(typeof f>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(m=(p=P(this,Dt).config).onSuccess)==null||m.call(p,f,this),(S=(_=P(this,Dt).config).onSettled)==null||S.call(_,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:(f,p)=>{ye(this,Zt,kr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{ye(this,Zt,kr).call(this,{type:"pause"})},onContinue:()=>{ye(this,Zt,kr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),J(this,rn,P(this,Bt).promise),P(this,rn)}},Di=new WeakMap,Bi=new WeakMap,Dt=new WeakMap,rn=new WeakMap,Bt=new WeakMap,it=new WeakMap,Fs=new WeakMap,Wn=new WeakMap,Ui=new WeakSet,Va=function(t){this.options={...P(this,Fs),...t},this.updateGcTime(this.options.gcTime)},Zt=new WeakSet,kr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Cu(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return hl(i)&&i.revert&&P(this,Bi)?{...P(this,Bi),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ke.batch(()=>{P(this,it).forEach(n=>{n.onQueryUpdate()}),P(this,Dt).notify({query:this,type:"updated",action:t})})},ng);function I1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var lr,ig,L1=(ig=class extends mo{constructor(t={}){super();ne(this,lr,void 0);this.config=t,J(this,lr,new Map)}build(t,r,n){const i=r.queryKey,o=r.queryHash??th(i,r);let a=this.get(o);return a||(a=new N1({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){P(this,lr).has(t.queryHash)||(P(this,lr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=P(this,lr).get(t.queryHash);r&&(t.destroy(),r===t&&P(this,lr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,lr).get(t)}getAll(){return[...P(this,lr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Rm(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Rm(t,n)):r}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lr=new WeakMap,ig),fr,Ds,Lt,$i,hr,Jr,og,k1=(og=class extends U0{constructor(t){super();ne(this,hr);ne(this,fr,void 0);ne(this,Ds,void 0);ne(this,Lt,void 0);ne(this,$i,void 0);this.mutationId=t.mutationId,J(this,Ds,t.defaultOptions),J(this,Lt,t.mutationCache),J(this,fr,[]),this.state=t.state||$0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...P(this,Ds),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,fr).includes(t)||(P(this,fr).push(t),this.clearGcTimeout(),P(this,Lt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,fr,P(this,fr).filter(r=>r!==t)),this.scheduleGc(),P(this,Lt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,fr).length||(this.state.status==="pending"?this.scheduleGc():P(this,Lt).remove(this))}continue(){var t;return((t=P(this,$i))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,c,l,u,d,h,f,p,m,_,S,v,b,T,w,N,R;const r=()=>(J(this,$i,B0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,$)=>{ye(this,hr,Jr).call(this,{type:"failed",failureCount:L,error:$})},onPause:()=>{ye(this,hr,Jr).call(this,{type:"pause"})},onContinue:()=>{ye(this,hr,Jr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),P(this,$i).promise),n=this.state.status==="pending";try{if(!n){ye(this,hr,Jr).call(this,{type:"pending",variables:t}),await((o=(i=P(this,Lt).config).onMutate)==null?void 0:o.call(i,t,this));const $=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));$!==this.state.context&&ye(this,hr,Jr).call(this,{type:"pending",context:$,variables:t})}const L=await r();return await((l=(c=P(this,Lt).config).onSuccess)==null?void 0:l.call(c,L,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,L,t,this.state.context)),await((f=(h=P(this,Lt).config).onSettled)==null?void 0:f.call(h,L,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,L,null,t,this.state.context)),ye(this,hr,Jr).call(this,{type:"success",data:L}),L}catch(L){try{throw await((S=(_=P(this,Lt).config).onError)==null?void 0:S.call(_,L,t,this.state.context,this)),await((b=(v=this.options).onError)==null?void 0:b.call(v,L,t,this.state.context)),await((w=(T=P(this,Lt).config).onSettled)==null?void 0:w.call(T,void 0,L,this.state.variables,this.state.context,this)),await((R=(N=this.options).onSettled)==null?void 0:R.call(N,void 0,L,t,this.state.context)),L}finally{ye(this,hr,Jr).call(this,{type:"error",error:L})}}}},fr=new WeakMap,Ds=new WeakMap,Lt=new WeakMap,$i=new WeakMap,hr=new WeakSet,Jr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Cu(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ke.batch(()=>{P(this,fr).forEach(n=>{n.onMutationUpdate(t)}),P(this,Lt).notify({mutation:this,type:"updated",action:t})})},og);function $0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ut,Bs,zn,sg,M1=(sg=class extends mo{constructor(t={}){super();ne(this,Ut,void 0);ne(this,Bs,void 0);ne(this,zn,void 0);this.config=t,J(this,Ut,[]),J(this,Bs,0)}build(t,r,n){const i=new k1({mutationCache:this,mutationId:++la(this,Bs)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){P(this,Ut).push(t),this.notify({type:"added",mutation:t})}remove(t){J(this,Ut,P(this,Ut).filter(r=>r!==t)),this.notify({type:"removed",mutation:t})}clear(){Ke.batch(()=>{P(this,Ut).forEach(t=>{this.remove(t)})})}getAll(){return P(this,Ut)}find(t){const r={exact:!0,...t};return P(this,Ut).find(n=>Pm(r,n))}findAll(t={}){return P(this,Ut).filter(r=>Pm(t,r))}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){return J(this,zn,(P(this,zn)??Promise.resolve()).then(()=>{const t=P(this,Ut).filter(r=>r.state.isPaused);return Ke.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(jt)),Promise.resolve()))}).then(()=>{J(this,zn,void 0)})),P(this,zn)}},Ut=new WeakMap,Bs=new WeakMap,zn=new WeakMap,sg);function F1(e){return{onFetch:(t,r)=>{const n=async()=>{var p,m,_,S,v;const i=t.options,o=(_=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:_.direction,a=((S=t.state.data)==null?void 0:S.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],c={pages:[],pageParams:[]};let l=!1;const u=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?l=!0:t.signal.addEventListener("abort",()=>{l=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),h=async(b,T,w)=>{if(l)return Promise.reject();if(T==null&&b.pages.length)return Promise.resolve(b);const N={queryKey:t.queryKey,pageParam:T,direction:w?"backward":"forward",meta:t.options.meta};u(N);const R=await d(N),{maxPages:L}=t.options,$=w?O1:x1;return{pages:$(b.pages,R,L),pageParams:$(b.pageParams,T,L)}};let f;if(o&&a.length){const b=o==="backward",T=b?D1:km,w={pages:a,pageParams:s},N=T(i,w);f=await h(w,N,b)}else{f=await h(c,s[0]??i.initialPageParam);const b=e??a.length;for(let T=1;T<b;T++){const w=km(i,f);f=await h(f,w)}}return f};t.options.persister?t.fetchFn=()=>{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function km(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function D1(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}var Ye,nn,on,ji,Hi,sn,qi,Gi,ag,B1=(ag=class{constructor(e={}){ne(this,Ye,void 0);ne(this,nn,void 0);ne(this,on,void 0);ne(this,ji,void 0);ne(this,Hi,void 0);ne(this,sn,void 0);ne(this,qi,void 0);ne(this,Gi,void 0);J(this,Ye,e.queryCache||new L1),J(this,nn,e.mutationCache||new M1),J(this,on,e.defaultOptions||{}),J(this,ji,new Map),J(this,Hi,new Map),J(this,sn,0)}mount(){la(this,sn)._++,P(this,sn)===1&&(J(this,qi,ou.subscribe(()=>{ou.isFocused()&&(this.resumePausedMutations(),P(this,Ye).onFocus())})),J(this,Gi,Ns.subscribe(()=>{Ns.isOnline()&&(this.resumePausedMutations(),P(this,Ye).onOnline())})))}unmount(){var e,t;la(this,sn)._--,P(this,sn)===0&&((e=P(this,qi))==null||e.call(this),J(this,qi,void 0),(t=P(this,Gi))==null||t.call(this),J(this,Gi,void 0))}isFetching(e){return P(this,Ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,nn).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=P(this,Ye).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=P(this,Ye).find({queryKey:e}),i=n==null?void 0:n.state.data,o=T1(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return P(this,Ye).build(this,a).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Ke.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var t;return(t=P(this,Ye).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=P(this,Ye);Ke.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=P(this,Ye),n={type:"active",...e};return Ke.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Ke.batch(()=>P(this,Ye).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(jt).catch(jt)}invalidateQueries(e={},t={}){return Ke.batch(()=>{if(P(this,Ye).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=Ke.batch(()=>P(this,Ye).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(jt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const r=P(this,Ye).build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return e.behavior=F1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}resumePausedMutations(){return P(this,nn).resumePausedMutations()}getQueryCache(){return P(this,Ye)}getMutationCache(){return P(this,nn)}getDefaultOptions(){return P(this,on)}setDefaultOptions(e){J(this,on,e)}setQueryDefaults(e,t){P(this,ji).set(Rs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,ji).values()];let r={};return t.forEach(n=>{Ps(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){P(this,Hi).set(Rs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Hi).values()];let r={};return t.forEach(n=>{Ps(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...P(this,on).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=th(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,on).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Ye).clear(),P(this,nn).clear()}},Ye=new WeakMap,nn=new WeakMap,on=new WeakMap,ji=new WeakMap,Hi=new WeakMap,sn=new WeakMap,qi=new WeakMap,Gi=new WeakMap,ag),At,Be,Vi,pt,Qn,Wi,dr,Us,zi,Qi,Yn,Kn,an,Xn,Jn,_s,$s,ff,js,hf,Hs,df,qs,pf,Gs,mf,Vs,gf,Ws,yf,gu,j0,ug,U1=(ug=class extends mo{constructor(t,r){super();ne(this,Jn);ne(this,$s);ne(this,js);ne(this,Hs);ne(this,qs);ne(this,Gs);ne(this,Vs);ne(this,Ws);ne(this,gu);ne(this,At,void 0);ne(this,Be,void 0);ne(this,Vi,void 0);ne(this,pt,void 0);ne(this,Qn,void 0);ne(this,Wi,void 0);ne(this,dr,void 0);ne(this,Us,void 0);ne(this,zi,void 0);ne(this,Qi,void 0);ne(this,Yn,void 0);ne(this,Kn,void 0);ne(this,an,void 0);ne(this,Xn,void 0);J(this,Be,void 0),J(this,Vi,void 0),J(this,pt,void 0),J(this,Xn,new Set),J(this,At,t),this.options=r,J(this,dr,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(P(this,Be).addObserver(this),Mm(P(this,Be),this.options)&&ye(this,Jn,_s).call(this),ye(this,qs,pf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vf(P(this,Be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vf(P(this,Be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,Gs,mf).call(this),ye(this,Vs,gf).call(this),P(this,Be).removeObserver(this)}setOptions(t,r){const n=this.options,i=P(this,Be);if(this.options=P(this,At).defaultQueryOptions(t),iu(n,this.options)||P(this,At).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,Be),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),ye(this,Ws,yf).call(this);const o=this.hasListeners();o&&Fm(P(this,Be),i,this.options,n)&&ye(this,Jn,_s).call(this),this.updateResult(r),o&&(P(this,Be)!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&ye(this,$s,ff).call(this);const a=ye(this,js,hf).call(this);o&&(P(this,Be)!==i||this.options.enabled!==n.enabled||a!==P(this,an))&&ye(this,Hs,df).call(this,a)}getOptimisticResult(t){const r=P(this,At).getQueryCache().build(P(this,At),t),n=this.createResult(r,t);return j1(this,n)&&(J(this,pt,n),J(this,Wi,this.options),J(this,Qn,P(this,Be).state)),n}getCurrentResult(){return P(this,pt)}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(P(this,Xn).add(n),t[n])})}),r}getCurrentQuery(){return P(this,Be)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=P(this,At).defaultQueryOptions(t),n=P(this,At).getQueryCache().build(P(this,At),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ye(this,Jn,_s).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,pt)))}createResult(t,r){var N;const n=P(this,Be),i=this.options,o=P(this,pt),a=P(this,Qn),s=P(this,Wi),l=t!==n?t.state:P(this,Vi),{state:u}=t;let{error:d,errorUpdatedAt:h,fetchStatus:f,status:p}=u,m=!1,_;if(r._optimisticResults){const R=this.hasListeners(),L=!R&&Mm(t,r),$=R&&Fm(t,n,r,i);(L||$)&&(f=Cu(t.options.networkMode)?"fetching":"paused",u.dataUpdatedAt||(p="pending")),r._optimisticResults==="isRestoring"&&(f="idle")}if(r.select&&typeof u.data<"u")if(o&&u.data===(a==null?void 0:a.data)&&r.select===P(this,Us))_=P(this,zi);else try{J(this,Us,r.select),_=r.select(u.data),_=lf(o==null?void 0:o.data,_,r),J(this,zi,_),J(this,dr,null)}catch(R){J(this,dr,R)}else _=u.data;if(typeof r.placeholderData<"u"&&typeof _>"u"&&p==="pending"){let R;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))R=o.data;else if(R=typeof r.placeholderData=="function"?r.placeholderData((N=P(this,Qi))==null?void 0:N.state.data,P(this,Qi)):r.placeholderData,r.select&&typeof R<"u")try{R=r.select(R),J(this,dr,null)}catch(L){J(this,dr,L)}typeof R<"u"&&(p="success",_=lf(o==null?void 0:o.data,R,r),m=!0)}P(this,dr)&&(d=P(this,dr),_=P(this,zi),h=Date.now(),p="error");const S=f==="fetching",v=p==="pending",b=p==="error",T=v&&S;return{status:p,fetchStatus:f,isPending:v,isSuccess:p==="success",isError:b,isInitialLoading:T,isLoading:T,data:_,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:S,isRefetching:S&&!v,isLoadingError:b&&u.dataUpdatedAt===0,isPaused:f==="paused",isPlaceholderData:m,isRefetchError:b&&u.dataUpdatedAt!==0,isStale:rh(t,r),refetch:this.refetch}}updateResult(t){const r=P(this,pt),n=this.createResult(P(this,Be),this.options);if(J(this,Qn,P(this,Be).state),J(this,Wi,this.options),iu(n,r))return;P(this,Qn).data!==void 0&&J(this,Qi,P(this,Be)),J(this,pt,n);const i={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!P(this,Xn).size)return!0;const c=new Set(s??P(this,Xn));return this.options.throwOnError&&c.add("error"),Object.keys(P(this,pt)).some(l=>{const u=l;return P(this,pt)[u]!==r[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ye(this,gu,j0).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,qs,pf).call(this)}},At=new WeakMap,Be=new WeakMap,Vi=new WeakMap,pt=new WeakMap,Qn=new WeakMap,Wi=new WeakMap,dr=new WeakMap,Us=new WeakMap,zi=new WeakMap,Qi=new WeakMap,Yn=new WeakMap,Kn=new WeakMap,an=new WeakMap,Xn=new WeakMap,Jn=new WeakSet,_s=function(t){ye(this,Ws,yf).call(this);let r=P(this,Be).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(jt)),r},$s=new WeakSet,ff=function(){if(ye(this,Gs,mf).call(this),ao||P(this,pt).isStale||!uf(this.options.staleTime))return;const r=k0(P(this,pt).dataUpdatedAt,this.options.staleTime)+1;J(this,Yn,setTimeout(()=>{P(this,pt).isStale||this.updateResult()},r))},js=new WeakSet,hf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,Be)):this.options.refetchInterval)??!1},Hs=new WeakSet,df=function(t){ye(this,Vs,gf).call(this),J(this,an,t),!(ao||this.options.enabled===!1||!uf(P(this,an))||P(this,an)===0)&&J(this,Kn,setInterval(()=>{(this.options.refetchIntervalInBackground||ou.isFocused())&&ye(this,Jn,_s).call(this)},P(this,an)))},qs=new WeakSet,pf=function(){ye(this,$s,ff).call(this),ye(this,Hs,df).call(this,ye(this,js,hf).call(this))},Gs=new WeakSet,mf=function(){P(this,Yn)&&(clearTimeout(P(this,Yn)),J(this,Yn,void 0))},Vs=new WeakSet,gf=function(){P(this,Kn)&&(clearInterval(P(this,Kn)),J(this,Kn,void 0))},Ws=new WeakSet,yf=function(){const t=P(this,At).getQueryCache().build(P(this,At),this.options);if(t===P(this,Be))return;const r=P(this,Be);J(this,Be,t),J(this,Vi,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},gu=new WeakSet,j0=function(t){Ke.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(P(this,pt))}),P(this,At).getQueryCache().notify({query:P(this,Be),type:"observerResultsUpdated"})})},ug);function $1(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Mm(e,t){return $1(e,t)||e.state.dataUpdatedAt>0&&vf(e,t,t.refetchOnMount)}function vf(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&rh(e,t)}return!1}function Fm(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&rh(e,r)}function rh(e,t){return e.isStaleByTime(t.staleTime)}function j1(e,t){return!iu(e.getCurrentResult(),t)}var un,Et,$t,Fr,Yi,Wa,zs,Ef,cg,H1=(cg=class extends mo{constructor(t,r){super();ne(this,Yi);ne(this,zs);ne(this,un,void 0);ne(this,Et,void 0);ne(this,$t,void 0);ne(this,Fr,void 0);J(this,Et,void 0),J(this,un,t),this.setOptions(r),this.bindMethods(),ye(this,Yi,Wa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=P(this,un).defaultMutationOptions(t),iu(r,this.options)||P(this,un).getMutationCache().notify({type:"observerOptionsUpdated",mutation:P(this,$t),observer:this}),(n=P(this,$t))==null||n.setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=P(this,$t))==null||t.removeObserver(this)}onMutationUpdate(t){ye(this,Yi,Wa).call(this),ye(this,zs,Ef).call(this,t)}getCurrentResult(){return P(this,Et)}reset(){J(this,$t,void 0),ye(this,Yi,Wa).call(this),ye(this,zs,Ef).call(this)}mutate(t,r){var n;return J(this,Fr,r),(n=P(this,$t))==null||n.removeObserver(this),J(this,$t,P(this,un).getMutationCache().build(P(this,un),this.options)),P(this,$t).addObserver(this),P(this,$t).execute(t)}},un=new WeakMap,Et=new WeakMap,$t=new WeakMap,Fr=new WeakMap,Yi=new WeakSet,Wa=function(){var r;const t=((r=P(this,$t))==null?void 0:r.state)??$0();J(this,Et,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},zs=new WeakSet,Ef=function(t){Ke.batch(()=>{var r,n,i,o,a,s,c,l;P(this,Fr)&&this.hasListeners()&&((t==null?void 0:t.type)==="success"?((n=(r=P(this,Fr)).onSuccess)==null||n.call(r,t.data,P(this,Et).variables,P(this,Et).context),(o=(i=P(this,Fr)).onSettled)==null||o.call(i,t.data,null,P(this,Et).variables,P(this,Et).context)):(t==null?void 0:t.type)==="error"&&((s=(a=P(this,Fr)).onError)==null||s.call(a,t.error,P(this,Et).variables,P(this,Et).context),(l=(c=P(this,Fr)).onSettled)==null||l.call(c,void 0,t.error,P(this,Et).variables,P(this,Et).context))),this.listeners.forEach(u=>{u(P(this,Et))})})},cg),H0=pe.createContext(void 0),go=e=>{const t=pe.useContext(H0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},q1=({client:e,children:t})=>(pe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),pe.createElement(H0.Provider,{value:e},t)),q0=pe.createContext(!1),G1=()=>pe.useContext(q0);q0.Provider;function V1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var W1=pe.createContext(V1()),z1=()=>pe.useContext(W1);function G0(e,t){return typeof e=="function"?e(...t):!!e}var Q1=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Y1=e=>{pe.useEffect(()=>{e.clearReset()},[e])},K1=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&G0(r,[e.error,n]),X1=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},J1=(e,t)=>e.isLoading&&e.isFetching&&!t,Z1=(e,t,r)=>(e==null?void 0:e.suspense)&&J1(t,r),eR=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function tR(e,t,r){const n=go(r),i=G1(),o=z1(),a=n.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",X1(a),Q1(a,o),Y1(o);const[s]=pe.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(pe.useSyncExternalStore(pe.useCallback(l=>{const u=i?()=>{}:s.subscribe(Ke.batchCalls(l));return s.updateResult(),u},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),pe.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),Z1(a,c,i))throw eR(a,s,o);if(K1({result:c,errorResetBoundary:o,throwOnError:a.throwOnError,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function V0(e,t){return tR(e,U1,t)}function fn(e,t){const r=go(t),[n]=pe.useState(()=>new H1(r,e));pe.useEffect(()=>{n.setOptions(e)},[n,e]);const i=pe.useSyncExternalStore(pe.useCallback(a=>n.subscribe(Ke.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=pe.useCallback((a,s)=>{n.mutate(a,s).catch(rR)},[n]);if(i.error&&G0(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function rR(){}var ve={context:void 0,registry:void 0};function bs(e){ve.context=e}var nR=(e,t)=>e===t,Is=Symbol("solid-proxy"),nh=Symbol("solid-track"),iR=Symbol("solid-dev-component"),su={equals:nR},W0=K0,jr=1,au=2,z0={owned:null,cleanups:null,context:null,owner:null},dl={},Ue=null,pl=null,Me=null,mt=null,Ur=null,Ru=0,[oR,cI]=bt(!1);function hn(e,t){const r=Me,n=Ue,i=e.length===0,o=i?z0:{owned:null,cleanups:null,context:null,owner:t===void 0?n:t},a=i?e:()=>e(()=>Xe(()=>Nu(o)));Ue=o,Me=null;try{return vr(a,!0)}finally{Me=r,Ue=n}}function bt(e,t){t=t?Object.assign({},su,t):su;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=i=>(typeof i=="function"&&(i=i(r.value)),Y0(r,i));return[Q0.bind(r),n]}function _f(e,t,r){const n=Pu(e,t,!0,jr);yo(n)}function dn(e,t,r){const n=Pu(e,t,!1,jr);yo(n)}function ih(e,t,r){W0=ER;const n=Pu(e,t,!1,jr);(!r||!r.render)&&(n.user=!0),Ur?Ur.push(n):yo(n)}function St(e,t,r){r=r?Object.assign({},su,r):su;const n=Pu(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,yo(n),Q0.bind(n)}function sR(e,t,r){let n,i,o;arguments.length===2&&typeof t=="object"||arguments.length===1?(n=!0,i=e,o=t||{}):(n=e,i=t,o=r||{});let a=null,s=dl,c=null,l=!1,u="initialValue"in o,d=typeof n=="function"&&St(n);const h=new Set,[f,p]=(o.storage||bt)(o.initialValue),[m,_]=bt(void 0),[S,v]=bt(void 0,{equals:!1}),[b,T]=bt(u?"ready":"unresolved");if(ve.context){c=`${ve.context.id}${ve.context.count++}`;let $;o.ssrLoadFrom==="initial"?s=o.initialValue:ve.load&&($=ve.load(c))&&(s=$[0])}function w($,G,q,H){return a===$&&(a=null,H!==void 0&&(u=!0),($===s||G===s)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(H,{value:G})),s=dl,N(G,q)),G}function N($,G){vr(()=>{G===void 0&&p(()=>$),T(G!==void 0?"errored":u?"ready":"unresolved"),_(G);for(const q of h.keys())q.decrement();h.clear()},!1)}function R(){const $=gR,G=f(),q=m();if(q!==void 0&&!a)throw q;return Me&&!Me.user&&$&&_f(()=>{S(),a&&($.resolved||h.has($)||($.increment(),h.add($)))}),G}function L($=!0){if($!==!1&&l)return;l=!1;const G=d?d():n;if(G==null||G===!1){w(a,Xe(f));return}const q=s!==dl?s:Xe(()=>i(G,{value:f(),refetching:$}));return typeof q!="object"||!(q&&"then"in q)?(w(a,q,void 0,G),q):(a=q,l=!0,queueMicrotask(()=>l=!1),vr(()=>{T(u?"refreshing":"pending"),v()},!1),q.then(H=>w(q,H,void 0,G),H=>w(q,void 0,J0(H),G)))}return Object.defineProperties(R,{state:{get:()=>b()},error:{get:()=>m()},loading:{get(){const $=b();return $==="pending"||$==="refreshing"}},latest:{get(){if(!u)return R();const $=m();if($&&!a)throw $;return f()}}}),d?_f(()=>L(!1)):L(!1),[R,{refetch:L,mutate:p}]}function aR(e){return vr(e,!1)}function Xe(e){if(Me===null)return e();const t=Me;Me=null;try{return e()}finally{Me=t}}function uR(e,t,r){const n=Array.isArray(e);let i,o=r&&r.defer;return a=>{let s;if(n){s=Array(e.length);for(let l=0;l<e.length;l++)s[l]=e[l]()}else s=e();if(o){o=!1;return}const c=Xe(()=>t(s,i,a));return i=s,c}}function cR(e){ih(()=>Xe(e))}function Ls(e){return Ue===null||(Ue.cleanups===null?Ue.cleanups=[e]:Ue.cleanups.push(e)),e}function lR(){return Me}function Dm(){return Ue}function fR(e,t){const r=Ue,n=Me;Ue=e,Me=null;try{return vr(t,!0)}catch(i){sh(i)}finally{Ue=r,Me=n}}function hR(e){const t=Me,r=Ue;return Promise.resolve().then(()=>{Me=t,Ue=r;let n;return vr(e,!1),Me=Ue=null,n?n.done:void 0})}function dR(){return[oR,hR]}function pR(e,t){const r=Symbol("context");return{id:r,Provider:_R(r),defaultValue:e}}function mR(e){let t;return(t=Z0(Ue,e.id))!==void 0?t:e.defaultValue}function oh(e){const t=St(e),r=St(()=>bf(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}var gR;function Q0(){if(this.sources&&this.state)if(this.state===jr)yo(this);else{const e=mt;mt=null,vr(()=>cu(this),!1),mt=e}if(Me){const e=this.observers?this.observers.length:0;Me.sources?(Me.sources.push(this),Me.sourceSlots.push(e)):(Me.sources=[this],Me.sourceSlots=[e]),this.observers?(this.observers.push(Me),this.observerSlots.push(Me.sources.length-1)):(this.observers=[Me],this.observerSlots=[Me.sources.length-1])}return this.value}function Y0(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&vr(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],a=pl&&pl.running;a&&pl.disposed.has(o),(a?!o.tState:!o.state)&&(o.pure?mt.push(o):Ur.push(o),o.observers&&X0(o)),a||(o.state=jr)}if(mt.length>1e6)throw mt=[],new Error},!1)),t}function yo(e){if(!e.fn)return;Nu(e);const t=Ue,r=Me,n=Ru;Me=Ue=e,yR(e,e.value,n),Me=r,Ue=t}function yR(e,t,r){let n;try{n=e.fn(t)}catch(i){return e.pure&&(e.state=jr,e.owned&&e.owned.forEach(Nu),e.owned=null),e.updatedAt=r+1,sh(i)}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?Y0(e,n):e.value=n,e.updatedAt=r)}function Pu(e,t,r,n=jr,i){const o={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ue,context:null,pure:r};return Ue===null||Ue!==z0&&(Ue.owned?Ue.owned.push(o):Ue.owned=[o]),o}function uu(e){if(e.state===0)return;if(e.state===au)return cu(e);if(e.suspense&&Xe(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Ru);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===jr)yo(e);else if(e.state===au){const n=mt;mt=null,vr(()=>cu(e,t[0]),!1),mt=n}}function vr(e,t){if(mt)return e();let r=!1;t||(mt=[]),Ur?r=!0:Ur=[],Ru++;try{const n=e();return vR(r),n}catch(n){r||(Ur=null),mt=null,sh(n)}}function vR(e){if(mt&&(K0(mt),mt=null),e)return;const t=Ur;Ur=null,t.length&&vr(()=>W0(t),!1)}function K0(e){for(let t=0;t<e.length;t++)uu(e[t])}function ER(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:uu(n)}if(ve.context){if(ve.count){ve.effects||(ve.effects=[]),ve.effects.push(...e.slice(0,r));return}else ve.effects&&(e=[...ve.effects,...e],r+=ve.effects.length,delete ve.effects);bs()}for(t=0;t<r;t++)uu(e[t])}function cu(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const i=n.state;i===jr?n!==t&&(!n.updatedAt||n.updatedAt<Ru)&&uu(n):i===au&&cu(n,t)}}}function X0(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=au,r.pure?mt.push(r):Ur.push(r),r.observers&&X0(r))}}function Nu(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),i=r.observers;if(i&&i.length){const o=i.pop(),a=r.observerSlots.pop();n<i.length&&(o.sourceSlots[a]=n,i[n]=o,r.observerSlots[n]=a)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Nu(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function J0(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function sh(e,t=Ue){throw J0(e)}function Z0(e,t){return e?e.context&&e.context[t]!==void 0?e.context[t]:Z0(e.owner,t):void 0}function bf(e){if(typeof e=="function"&&!e.length)return bf(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=bf(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function _R(e,t){return function(n){let i;return dn(()=>i=Xe(()=>(Ue.context={[e]:n.value},oh(()=>n.children))),void 0),i}}var wf=Symbol("fallback");function lu(e){for(let t=0;t<e.length;t++)e[t]()}function bR(e,t,r={}){let n=[],i=[],o=[],a=0,s=t.length>1?[]:null;return Ls(()=>lu(o)),()=>{let c=e()||[],l,u;return c[nh],Xe(()=>{let h=c.length,f,p,m,_,S,v,b,T,w;if(h===0)a!==0&&(lu(o),o=[],n=[],i=[],a=0,s&&(s=[])),r.fallback&&(n=[wf],i[0]=hn(N=>(o[0]=N,r.fallback())),a=1);else if(a===0){for(i=new Array(h),u=0;u<h;u++)n[u]=c[u],i[u]=hn(d);a=h}else{for(m=new Array(h),_=new Array(h),s&&(S=new Array(h)),v=0,b=Math.min(a,h);v<b&&n[v]===c[v];v++);for(b=a-1,T=h-1;b>=v&&T>=v&&n[b]===c[T];b--,T--)m[T]=i[b],_[T]=o[b],s&&(S[T]=s[b]);for(f=new Map,p=new Array(T+1),u=T;u>=v;u--)w=c[u],l=f.get(w),p[u]=l===void 0?-1:l,f.set(w,u);for(l=v;l<=b;l++)w=n[l],u=f.get(w),u!==void 0&&u!==-1?(m[u]=i[l],_[u]=o[l],s&&(S[u]=s[l]),u=p[u],f.set(w,u)):o[l]();for(u=v;u<h;u++)u in m?(i[u]=m[u],o[u]=_[u],s&&(s[u]=S[u],s[u](u))):i[u]=hn(d);i=i.slice(0,a=h),n=c.slice(0)}return i});function d(h){if(o[u]=h,s){const[f,p]=bt(u);return s[u]=p,t(c[u],f)}return t(c[u])}}}function wR(e,t,r={}){let n=[],i=[],o=[],a=[],s=0,c;return Ls(()=>lu(o)),()=>{const l=e()||[];return l[nh],Xe(()=>{if(l.length===0)return s!==0&&(lu(o),o=[],n=[],i=[],s=0,a=[]),r.fallback&&(n=[wf],i[0]=hn(d=>(o[0]=d,r.fallback())),s=1),i;for(n[0]===wf&&(o[0](),o=[],n=[],i=[],s=0),c=0;c<l.length;c++)c<n.length&&n[c]!==l[c]?a[c](()=>l[c]):c>=n.length&&(i[c]=hn(u));for(;c<n.length;c++)o[c]();return s=a.length=o.length=l.length,n=l.slice(0),i=i.slice(0,s)});function u(d){o[c]=d;const[h,f]=bt(l[c]);return a[c]=f,t(h,c)}}}function eE(e,t){return Xe(()=>e(t||{}))}function Ma(){return!0}var Sf={get(e,t,r){return t===Is?r:e.get(t)},has(e,t){return t===Is?!0:e.has(t)},set:Ma,deleteProperty:Ma,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Ma,deleteProperty:Ma}},ownKeys(e){return e.keys()}};function ml(e){return(e=typeof e=="function"?e():e)?e:{}}function SR(){for(let e=0,t=this.length;e<t;++e){const r=this[e]();if(r!==void 0)return r}}function tE(...e){let t=!1;for(let o=0;o<e.length;o++){const a=e[o];t=t||!!a&&Is in a,e[o]=typeof a=="function"?(t=!0,St(a)):a}if(t)return new Proxy({get(o){for(let a=e.length-1;a>=0;a--){const s=ml(e[a])[o];if(s!==void 0)return s}},has(o){for(let a=e.length-1;a>=0;a--)if(o in ml(e[a]))return!0;return!1},keys(){const o=[];for(let a=0;a<e.length;a++)o.push(...Object.keys(ml(e[a])));return[...new Set(o)]}},Sf);const r={},n={},i=new Set;for(let o=e.length-1;o>=0;o--){const a=e[o];if(!a)continue;const s=Object.getOwnPropertyNames(a);for(let c=0,l=s.length;c<l;c++){const u=s[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,u);if(!i.has(u))d.get?(i.add(u),Object.defineProperty(r,u,{enumerable:!0,configurable:!0,get:SR.bind(n[u]=[d.get.bind(a)])})):(d.value!==void 0&&i.add(u),r[u]=d.value);else{const h=n[u];h?d.get?h.push(d.get.bind(a)):d.value!==void 0&&h.push(()=>d.value):r[u]===void 0&&(r[u]=d.value)}}}return r}function rE(e,...t){if(Is in e){const i=new Set(t.length>1?t.flat():t[0]),o=t.map(a=>new Proxy({get(s){return a.includes(s)?e[s]:void 0},has(s){return a.includes(s)&&s in e},keys(){return a.filter(s=>s in e)}},Sf));return o.push(new Proxy({get(a){return i.has(a)?void 0:e[a]},has(a){return i.has(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!i.has(a))}},Sf)),o}const r={},n=t.map(()=>({}));for(const i of Object.getOwnPropertyNames(e)){const o=Object.getOwnPropertyDescriptor(e,i),a=!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable;let s=!1,c=0;for(const l of t)l.includes(i)&&(s=!0,a?n[c][i]=o.value:Object.defineProperty(n[c],i,o)),++c;s||(a?r[i]=o.value:Object.defineProperty(r,i,o))}return[...n,r]}function TR(e){let t,r;const n=i=>{const o=ve.context;if(o){const[s,c]=bt();ve.count||(ve.count=0),ve.count++,(r||(r=e())).then(l=>{bs(o),ve.count--,c(()=>l.default),bs()}),t=s}else if(!t){const[s]=sR(()=>(r||(r=e())).then(c=>c.default));t=s}let a;return St(()=>(a=t())&&Xe(()=>{if(!o)return a(i);const s=ve.context;bs(o);const c=a(i);return bs(s),c}))};return n.preload=()=>r||((r=e()).then(i=>t=()=>i.default),r),n}var xR=0;function OR(){const e=ve.context;return e?`${e.id}${e.count++}`:`cl-${xR++}`}var nE=e=>`Stale read from <${e}>.`;function AR(e){const t="fallback"in e&&{fallback:()=>e.fallback};return St(bR(()=>e.each,e.children,t||void 0))}function CR(e){const t="fallback"in e&&{fallback:()=>e.fallback};return St(wR(()=>e.each,e.children,t||void 0))}function RR(e){const t=e.keyed,r=St(()=>e.when,void 0,{equals:(n,i)=>t?n===i:!n==!i});return St(()=>{const n=r();if(n){const i=e.children;return typeof i=="function"&&i.length>0?Xe(()=>i(t?n:()=>{if(!Xe(r))throw nE("Show");return e.when})):i}return e.fallback},void 0,void 0)}function PR(e){let t=!1;const r=(o,a)=>o[0]===a[0]&&(t?o[1]===a[1]:!o[1]==!a[1])&&o[2]===a[2],n=oh(()=>e.children),i=St(()=>{let o=n();Array.isArray(o)||(o=[o]);for(let a=0;a<o.length;a++){const s=o[a].when;if(s)return t=!!o[a].keyed,[a,s,o[a]]}return[-1]},void 0,{equals:r});return St(()=>{const[o,a,s]=i();if(o<0)return e.fallback;const c=s.children;return typeof c=="function"&&c.length>0?Xe(()=>c(t?a:()=>{if(Xe(i)[0]!==o)throw nE("Match");return s.when})):c},void 0,void 0)}function NR(e){return e}var IR=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],LR=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...IR]),kR=new Set(["innerHTML","textContent","innerText","children"]),MR=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),FR=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function DR(e,t){const r=FR[e];return typeof r=="object"?r[t]?r.$:void 0:r}var BR=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),UR=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),$R={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function jR(e,t,r){let n=r.length,i=t.length,o=n,a=0,s=0,c=t[i-1].nextSibling,l=null;for(;a<i||s<o;){if(t[a]===r[s]){a++,s++;continue}for(;t[i-1]===r[o-1];)i--,o--;if(i===a){const u=o<n?s?r[s-1].nextSibling:r[o-s]:c;for(;s<o;)e.insertBefore(r[s++],u)}else if(o===s)for(;a<i;)(!l||!l.has(t[a]))&&t[a].remove(),a++;else if(t[a]===r[o-1]&&r[s]===t[i-1]){const u=t[--i].nextSibling;e.insertBefore(r[s++],t[a++].nextSibling),e.insertBefore(r[--o],u),t[i]=r[o]}else{if(!l){l=new Map;let d=s;for(;d<o;)l.set(r[d],d++)}const u=l.get(t[a]);if(u!=null)if(s<u&&u<o){let d=a,h=1,f;for(;++d<i&&d<o&&!((f=l.get(t[d]))==null||f!==u+h);)h++;if(h>u-s){const p=t[a];for(;s<u;)e.insertBefore(r[s++],p)}else e.replaceChild(r[s++],t[a++])}else a++;else t[a++].remove()}}}var Bm="_$DX_DELEGATE";function HR(e,t,r,n={}){let i;return hn(o=>{i=o,t===document?e():hu(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{i(),t.textContent=""}}function qR(e,t,r){let n;const i=()=>{const a=document.createElement("template");return a.innerHTML=e,r?a.content.firstChild.firstChild:a.content.firstChild},o=t?()=>Xe(()=>document.importNode(n||(n=i()),!0)):()=>(n||(n=i())).cloneNode(!0);return o.cloneNode=o,o}function iE(e,t=window.document){const r=t[Bm]||(t[Bm]=new Set);for(let n=0,i=e.length;n<i;n++){const o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,XR))}}function fu(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}function GR(e,t,r,n){n==null?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n)}function oE(e,t){t==null?e.removeAttribute("class"):e.className=t}function sE(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const i=r[0];e.addEventListener(t,r[0]=o=>i.call(e,r[1],o))}else e.addEventListener(t,r)}function VR(e,t,r={}){const n=Object.keys(t||{}),i=Object.keys(r);let o,a;for(o=0,a=i.length;o<a;o++){const s=i[o];!s||s==="undefined"||t[s]||(Um(e,s,!1),delete r[s])}for(o=0,a=n.length;o<a;o++){const s=n[o],c=!!t[s];!s||s==="undefined"||r[s]===c||!c||(Um(e,s,!0),r[s]=c)}return r}function WR(e,t,r){if(!t)return r?fu(e,"style"):t;const n=e.style;if(typeof t=="string")return n.cssText=t;typeof r=="string"&&(n.cssText=r=void 0),r||(r={}),t||(t={});let i,o;for(o in r)t[o]==null&&n.removeProperty(o),delete r[o];for(o in t)i=t[o],i!==r[o]&&(n.setProperty(o,i),r[o]=i);return r}function aE(e,t={},r,n){const i={};return n||dn(()=>i.children=uo(e,t.children,i.children)),dn(()=>t.ref&&t.ref(e)),dn(()=>QR(e,t,r,!0,i,!0)),i}function zR(e,t,r){return Xe(()=>e(t,r))}function hu(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return uo(e,t,n,r);dn(i=>uo(e,t(),i,r),n)}function QR(e,t,r,n,i={},o=!1){t||(t={});for(const a in i)if(!(a in t)){if(a==="children")continue;i[a]=$m(e,a,null,i[a],r,o)}for(const a in t){if(a==="children"){n||uo(e,t.children);continue}const s=t[a];i[a]=$m(e,a,s,i[a],r,o)}}function YR(e){let t,r;if(!ve.context||!(t=ve.registry.get(r=JR()))){if(ve.context,!e)throw new Error("Unrecoverable Hydration Mismatch. No template for key: "+r);return e()}return ve.completed&&ve.completed.add(t),ve.registry.delete(r),t}function KR(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Um(e,t,r){const n=t.trim().split(/\s+/);for(let i=0,o=n.length;i<o;i++)e.classList.toggle(n[i],r)}function $m(e,t,r,n,i,o){let a,s,c,l,u;if(t==="style")return WR(e,r,n);if(t==="classList")return VR(e,r,n);if(r===n)return n;if(t==="ref")o||r(e);else if(t.slice(0,3)==="on:"){const d=t.slice(3);n&&e.removeEventListener(d,n),r&&e.addEventListener(d,r)}else if(t.slice(0,10)==="oncapture:"){const d=t.slice(10);n&&e.removeEventListener(d,n,!0),r&&e.addEventListener(d,r,!0)}else if(t.slice(0,2)==="on"){const d=t.slice(2).toLowerCase(),h=BR.has(d);if(!h&&n){const f=Array.isArray(n)?n[0]:n;e.removeEventListener(d,f)}(h||r)&&(sE(e,d,r,h),h&&iE([d]))}else if(t.slice(0,5)==="attr:")fu(e,t.slice(5),r);else if((u=t.slice(0,5)==="prop:")||(c=kR.has(t))||!i&&((l=DR(t,e.tagName))||(s=LR.has(t)))||(a=e.nodeName.includes("-")))u&&(t=t.slice(5),s=!0),t==="class"||t==="className"?oE(e,r):a&&!s&&!c?e[KR(t)]=r:e[l||t]=r;else{const d=i&&t.indexOf(":")>-1&&$R[t.split(":")[0]];d?GR(e,d,t,r):fu(e,MR[t]||t,r)}return r}function XR(e){const t=`$$${e.type}`;let r=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==r&&Object.defineProperty(e,"target",{configurable:!0,value:r}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),ve.registry&&!ve.done&&(ve.done=_$HY.done=!0);r;){const n=r[t];if(n&&!r.disabled){const i=r[`${t}Data`];if(i!==void 0?n.call(r,i,e):n.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}function uo(e,t,r,n,i){if(ve.context){!r&&(r=[...e.childNodes]);let s=[];for(let c=0;c<r.length;c++){const l=r[c];l.nodeType===8&&l.data.slice(0,2)==="!$"?l.remove():s.push(l)}r=s}for(;typeof r=="function";)r=r();if(t===r)return r;const o=typeof t,a=n!==void 0;if(e=a&&r[0]&&r[0].parentNode||e,o==="string"||o==="number"){if(ve.context)return r;if(o==="number"&&(t=t.toString()),a){let s=r[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),r=Ci(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||o==="boolean"){if(ve.context)return r;r=Ci(e,r,n)}else{if(o==="function")return dn(()=>{let s=t();for(;typeof s=="function";)s=s();r=uo(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],c=r&&Array.isArray(r);if(Tf(s,t,r,i))return dn(()=>r=uo(e,s,r,n,!0)),()=>r;if(ve.context){if(!s.length)return r;for(let l=0;l<s.length;l++)if(s[l].parentNode)return r=s}if(s.length===0){if(r=Ci(e,r,n),a)return r}else c?r.length===0?jm(e,s,n):jR(e,r,s):(r&&Ci(e),jm(e,s));r=s}else if(t.nodeType){if(ve.context&&t.parentNode)return r=a?[t]:t;if(Array.isArray(r)){if(a)return r=Ci(e,r,n,t);Ci(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function Tf(e,t,r,n){let i=!1;for(let o=0,a=t.length;o<a;o++){let s=t[o],c=r&&r[o],l;if(!(s==null||s===!0||s===!1))if((l=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))i=Tf(e,s,c)||i;else if(l==="function")if(n){for(;typeof s=="function";)s=s();i=Tf(e,Array.isArray(s)?s:[s],Array.isArray(c)?c:[c])||i}else e.push(s),i=!0;else{const u=String(s);c&&c.nodeType===3&&c.data===u?e.push(c):e.push(document.createTextNode(u))}}return i}function jm(e,t,r=null){for(let n=0,i=t.length;n<i;n++)e.insertBefore(t[n],r)}function Ci(e,t,r,n){if(r===void 0)return e.textContent="";const i=n||document.createTextNode("");if(t.length){let o=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(i!==s){const c=s.parentNode===e;!o&&!a?c?e.replaceChild(i,s):e.insertBefore(i,r):c&&s.remove()}else o=!0}}else e.insertBefore(i,r);return[i]}function JR(){const e=ve.context;return`${e.id}${e.count++}`}var ZR="http://www.w3.org/2000/svg";function uE(e,t=!1){return t?document.createElementNS(ZR,e):document.createElement(e)}function eP(e){const{useShadow:t}=e,r=document.createTextNode(""),n=()=>e.mount||document.body,i=Dm();let o,a=!!ve.context;return ih(()=>{a&&(Dm().user=a=!1),o||(o=fR(i,()=>St(()=>e.children)));const s=n();if(s instanceof HTMLHeadElement){const[c,l]=bt(!1),u=()=>l(!0);hn(d=>hu(s,()=>c()?d():o(),null)),Ls(u)}else{const c=uE(e.isSVG?"g":"div",e.isSVG),l=t&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return r.parentNode},configurable:!0}),hu(l,o),s.appendChild(c),e.ref&&e.ref(c),Ls(()=>s.removeChild(c))}},void 0,{render:!a}),r}function tP(e){const[t,r]=rE(e,["component"]),n=St(()=>t.component);return St(()=>{const i=n();switch(typeof i){case"function":return Object.assign(i,{[iR]:!0}),Xe(()=>i(r));case"string":const o=UR.has(i),a=ve.context?YR():uE(i,o);return aE(a,r,o),a}})}var Ki,Qs,Ys,Ks,Zn,Xi,Ji,Zi,eo,to,Xs,lg,rP=(lg=class{constructor(e){ne(this,Ki,void 0);ne(this,Qs,void 0);ne(this,Ys,void 0);ne(this,Ks,void 0);ne(this,Zn,!1);ne(this,Xi,void 0);ne(this,Ji,void 0);ne(this,Zi,void 0);ne(this,eo,void 0);ne(this,to,void 0);ne(this,Xs,void 0);const{client:t,queryFlavor:r,version:n,onlineManager:i,buttonPosition:o,position:a,initialIsOpen:s,errorTypes:c}=e;J(this,Ki,bt(t)),J(this,Ys,r),J(this,Ks,n),J(this,Qs,i),J(this,Xi,bt(o)),J(this,Ji,bt(a)),J(this,Zi,bt(s)),J(this,eo,bt(c))}setButtonPosition(e){P(this,Xi)[1](e)}setPosition(e){P(this,Ji)[1](e)}setInitialIsOpen(e){P(this,Zi)[1](e)}setErrorTypes(e){P(this,eo)[1](e)}setClient(e){P(this,Ki)[1](e)}mount(e){if(P(this,Zn))throw new Error("Devtools is already mounted");const t=HR(()=>{const[r]=P(this,Xi),[n]=P(this,Ji),[i]=P(this,Zi),[o]=P(this,eo),[a]=P(this,Ki);let s;P(this,to)?s=P(this,to):(s=TR(()=>Promise.resolve().then(()=>require("./4TNE5QTO-80ea09b3.js"))),J(this,to,s));const c=this;return eE(s,tE({get queryFlavor(){return P(c,Ys)},get version(){return P(c,Ks)},get onlineManager(){return P(c,Qs)}},{get client(){return a()},get buttonPosition(){return r()},get position(){return n()},get initialIsOpen(){return i()},get errorTypes(){return o()}}))},e);J(this,Zn,!0),J(this,Xs,t)}unmount(){var e;if(!P(this,Zn))throw new Error("Devtools is not mounted");(e=P(this,Xs))==null||e.call(this),J(this,Zn,!1)}},Ki=new WeakMap,Qs=new WeakMap,Ys=new WeakMap,Ks=new WeakMap,Zn=new WeakMap,Xi=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,eo=new WeakMap,to=new WeakMap,Xs=new WeakMap,lg);function nP(e){const t=go(),r=e.client||t,n=U.useRef(null),{buttonPosition:i,position:o,initialIsOpen:a,errorTypes:s}=e,[c]=U.useState(new rP({client:r,queryFlavor:"React Query",version:"5",onlineManager:Ns,buttonPosition:i,position:o,initialIsOpen:a,errorTypes:s}));return U.useEffect(()=>{c.setClient(r)},[r,c]),U.useEffect(()=>{i&&c.setButtonPosition(i)},[i,c]),U.useEffect(()=>{o&&c.setPosition(o)},[o,c]),U.useEffect(()=>{c.setInitialIsOpen(a||!1)},[a,c]),U.useEffect(()=>{c.setErrorTypes(s||[])},[s,c]),U.useEffect(()=>(n.current&&c.mount(n.current),()=>{c.unmount()}),[c]),U.createElement("div",{className:"tsqd-parent-container",ref:n})}var iP=process.env.NODE_ENV!=="development"?function(){return null}:nP;const oP=({showDevTools:e,children:t})=>{const r=new B1({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return x.jsxs(q1,{client:r,children:[t,e&&x.jsx(iP,{initialIsOpen:!1})]})};const gl="joinCommunityButton",ah=({isMember:e=!1,isShort:t=!1,functions:{join:r,leave:n}={join:()=>{},leave:()=>{}}})=>{const i=Oe(),o=U.useContext($r),a=o&&typeof o.id=="string",[s,c]=U.useState(e),[l,u]=U.useState(e?"joined":"notJoined");U.useEffect(()=>{l==="joining"?u("joined"):l==="leaving"&&u("notJoined")},[s]);const d={},h={};return s&&l!=="leaving"&&(d["data-hover-text"]=i.formatMessage({id:`${gl}_leave`}),d["aria-label"]=i.formatMessage({id:`${gl}_member_aria`}),h["aria-hidden"]="true"),x.jsx(ze,{variant:s?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:s&&l!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async f=>{a&&(f.currentTarget.blur(),s?(u("leaving"),typeof n=="function"&&await n()):(u("joining"),typeof r=="function"&&await r()),c(!s))},className:se("join-community-button",l,{active:l==="joining"}),disabled:!a,...d,children:x.jsx("span",{className:"text",...h,children:i.formatMessage({id:`${gl}${["joining","leaving"].includes(l)?`_${l}`:s?"_member":t?"_short":""}`})})})};const yl="communityDetails_",sP=({isMember:e=!1,slug:t,members:{number:r,data:n}={number:void 0,data:[]},className:i="",...o})=>{const a=Oe(),s=r||(n==null?void 0:n.length)||0;return x.jsxs("div",{className:se("community-details",i),children:[x.jsx(tu,{}),x.jsxs("div",{className:"member-details",children:[x.jsxs("div",{className:"top",children:[x.jsxs("h3",{children:[a.formatMessage({id:`${yl}members`}),x.jsx("span",{className:"count",children:s})]}),x.jsx("p",{className:"text-small",children:x.jsx("a",{href:`/communities/${t}/members`,children:a.formatMessage({id:`${yl}viewAll`})})})]}),x.jsx(L0,{contributors:{total:r,data:n!=null&&n.length?n:[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:s===0},cutoff:5})]}),x.jsx(ah,{isMember:e,...o}),e&&x.jsx(ze,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:a.formatMessage({id:`${yl}invite`})})]})};const aP=({breadcrumbs:e,cutoff:t=20,className:r=""})=>{const n=Oe();return x.jsxs(x.Fragment,{children:[x.jsx(lt,{element:"p",children:n.formatMessage({id:"breadcrumbs_label"})}),x.jsx("ul",{className:se("breadcrumbs text-small",r),children:e.map(({text:i,href:o,current:a=!1},s)=>x.jsxs("li",{children:[a&&x.jsx(lt,{element:"span",children:n.formatMessage({id:"breadcrumbs_currentPage"})}),x.jsx(ia,{href:a?void 0:o,children:Kf(i,t)})]},`${window.btoa(i)}_${s}`))})]})};const uP=({options:e,allOption:t=!1,allowMultiple:r=!0,onChange:n=()=>{},className:i=""})=>{const o=Oe(),a=t?[{id:"all",text:typeof t!="boolean"&&t.text||o.formatMessage({id:"filters_all"})},...e]:e,[s,c]=U.useState(t?["all"]:[]),l=(u,d)=>{let h=[];s.includes(u)?h=s.filter(f=>f!==u):u==="all"?h=["all"]:r?h=[...s.filter(f=>f!=="all"),u]:h=[u],c(f=>(n&&typeof n=="function"&&n({current:h,previous:f}),h)),d&&typeof d=="function"&&d()};return x.jsx("ul",{className:se("filters",i),children:a.map(({id:u,text:d,disabled:h=!1,callback:f=()=>{}})=>{let p={};return h&&(p={disabled:!0,"aria-label":o.formatMessage({id:"filters_disabled"},{name:d})}),x.jsx("li",{children:x.jsx("button",{className:se(u,{selected:s.includes(u)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),l(u,f)},...p,children:d})},u)})})},cP=(e,t)=>{const r=String(e);if(!t||!t.length)return`/${r}`;let n="";return t.forEach(({url:i,position:o})=>{o==="before-lang"?n+=`/${i}`:(n.includes(`/${r}/`)||(n+=`/${r}`),n+=`/${i}`)}),n.includes(`/${r}/`)||(n+=`/${r}`),n};const vl={en:"English",es:"Español",fr:"Français",pt:"Português"},Fa="languageSwitcher_",lP=({currentLanguage:e,isOriginalLanguage:t=!1,isHumanTranslation:r=!1,translations:n,onChange:i=()=>{},urlParts:o,variant:a="default",label:s,className:c=""})=>{const l=Oe(),[u,d]=U.useState(e);if(U.useEffect(()=>{e!==u&&d(e)},[e]),!n||!Object.values(n).some(m=>m&&m.post_name))return null;const f=Object.keys(n),p=u!==e;return x.jsxs("div",{className:se("language-switcher text-small",a,c),children:[x.jsxs("nav",{children:[a!=="short"&&x.jsx("p",{children:s||l.formatMessage({id:`${Fa}label`})}),x.jsx("ul",{children:f.map(m=>{if(!vl[m])return null;let _={className:m};return u===m?_["aria-label"]=l.formatMessage({id:`${Fa}selected`},{language:vl[m]}):_={..._,href:cP(m,o),onClick:S=>{S.preventDefault(),S.stopPropagation(),d(m),i(m)}},x.jsx("li",{children:x.jsx(ia,{..._,fallbackElement:"span",children:vl[m]})},m)})}),a!=="short"&&!p&&x.jsx("p",{children:l.formatMessage({id:`${Fa}translation_${t?"original":r?"human":"machine"}`})})]}),a!=="short"&&!p&&!t&&!r&&x.jsx("small",{children:l.formatMessage({id:`${Fa}disclaimer`},{email:Ni.support,link:m=>{const _=`mailto:${m}`;return x.jsx("a",{href:_,children:m})}})})]})};const El=tf({locale:"en",messages:Gf}),cE=({page:e=1,length:t=0,limit:r=10,loadNextPage:n=()=>{},icon:i=!1,messages:o={button:El.formatMessage({id:"loadMore_button"}),endOfFeed:El.formatMessage({id:"loadMore_endOfFeed"}),error:El.formatMessage({id:"loadMore_error"})},className:a="",gtmContext:s="LoadMore"})=>{const[c,l]=U.useState(!1),[u,d]=U.useState(!1);if(t<=0||t<r*e)return null;const h=async f=>{try{await n(f)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?d(!0):l(!0)}};return x.jsxs("footer",{className:se("load-more",a),children:[c&&x.jsx("p",{className:"error",children:o.error}),u?x.jsx("p",{children:o.endOfFeed}):x.jsx(ze,{variant:"secondary",icon:i,onClick:h,"data-gtm-event-context":s,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:o.button})]})};let Da=!1;const lE=({element:e="div",id:t="more-menu",options:r,className:n=""})=>{const i=Oe(),o=U.useRef(null),[a,s]=U.useState(!1),c=l=>{o.current&&l.target instanceof HTMLElement&&!o.current.contains(l.target)&&s(!1)};return U.useEffect(()=>(document.addEventListener("click",c,!0),()=>{document.removeEventListener("click",c,!0)})),U.createElement(e,{ref:o,className:se("more-menu text-medium",n),children:x.jsxs(x.Fragment,{children:[x.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>s(!a),"aria-haspopup":"true","aria-expanded":a,"aria-controls":t,screenreaderText:i.formatMessage({id:"moreMenu"})}),x.jsx("ul",{id:t,hidden:!a,children:r.map(({href:l,onClick:u,text:d,icon:h,...f},p)=>{const m={...f,onClick:_=>{s(!1),typeof u=="function"&&u(_)},onFocus:()=>{Da&&(clearTimeout(Da),Da=!1)},onBlur:()=>{Da=setTimeout(()=>{s(!1)},100)}};return l&&(m.href=l),x.jsx("li",{children:x.jsx(ze,{variant:"tertiary",size:"medium",icon:h?{icon:h,position:"left"}:!1,...m,children:d})},`${window.btoa(d)}_${p}`)})})]})})};const uh=({variant:e="default",version:t="default",className:r="",...n})=>x.jsx("p",{className:"logo-wrapper",children:x.jsx("a",{href:"/home/",className:se("logo",e,t,r),...n,children:x.jsx(lt,{children:x.jsx(ln,{id:"apolitical"})})})});const fP={"2-1":901},hP=({layout:e="2-1",hideOnMobile:t=!1,className:r="",children:n})=>{const i=ra(!0);let o=n;return U.Children.count(n)===1&&(o=U.Children.toArray(n)[0],o.props&&(o=o.props.children)),x.jsx("section",{className:se("columns",`layout-${e}`,r),children:U.Children.map(o,(a,s)=>t!==!1&&s===t&&i&&i<fP[e]?null:a)})};const _l="cookieBanner_",bl=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],wl=new Date(Date.now()+12*30*24*60*60*1e3),fE=()=>{const e=Oe(),[t,r,n]=yg(bl),[i,o]=U.useState(!t["apol-cookie-banner"]),a=()=>{bl.forEach(u=>{r(u,!0,{path:"/",expires:wl,domain:u==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),o(!1),window.location.reload()},s=()=>{r("apol-cookie-banner",!0,{path:"/",expires:wl}),bl.forEach(u=>{if(u==="apol-cookie-banner"){r(u,!0,{path:"/",expires:wl});return}n(u)}),o(!1)};if(!i)return null;const c=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:s,gtmType:"reject-all"},{id:"accept",onClick:a,gtmType:"accepted-all"}],l=[];return c.forEach(u=>{l.push({variant:u.href?"tertiary":"primary",href:u.href,onClick:u.onClick,className:"gtm-trackable","data-gtm-event-context":"cookie-banner","data-gtm-event-type":`cookie-${u.gtmType}-click`,children:e.formatMessage({id:`${_l}buttons_${u.id}`})})}),x.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[x.jsx("h6",{children:e.formatMessage({id:`${_l}title`})}),x.jsx("p",{children:e.formatMessage({id:`${_l}text`})}),x.jsx(na,{buttons:l})]})},Dr={platform:{order:["events","courses","qanda","articles"],events:{href:"/events/",gtmType:"events-click"},courses:{href:"/microcourses/",gtmType:"microcourses-click"},qanda:{href:"/questions-answers/",gtmType:"q-and-a-click"},articles:{href:"/solution-articles/",gtmType:"articles-click"}},community:{order:["support","post","join","guidelines"],support:{name:"Support FAQ",href:"/pages/support-faq",gtmType:"support-faq-click"},post:{href:"/pages/post-an-article",gtmType:"post-an-article-click"},join:{href:"/pages/who-can-join-the-community",gtmType:"who-can-join-click"},guidelines:{href:"/pages/values-and-guidelines",gtmType:"guidelines-and-values-click"}},company:{order:["story","team","careers","partner","contact"],story:{href:"/pages/our-story",gtmType:"our-story-click"},team:{href:"/pages/meet-our-team",gtmType:"team-click"},careers:{href:"/pages/careers",gtmType:"careers-click"},partner:{href:"/partnerships/",gtmType:"partner-with-us-click"},contact:{href:"/pages/get-in-touch",gtmType:"contact-click"},child:"legal"},legal:{order:["privacy","terms","cookie","accessibility"],privacy:{href:"https://about.apolitical.co/privacy-policy",gtmType:"privacy-policy-link"},terms:{href:"https://about.apolitical.co/terms-and-conditions",gtmType:"terms-conditions-link"},cookie:{href:"/pages/cookie-policy",gtmType:"cookie-policy-link"},accessibility:{href:"/pages/accessibility-statement",gtmType:"accessibility-link"},text:{order:["dataProtection","euDataProtection"],dataProtection:{email:Ni["data-protection"].default,gtmType:"email-dpo-link"},euDataProtection:{email:Ni["data-protection"].eu,gtmType:"email-eu-dpo-link"}}},contact:{text:{order:["correspondence","registered","berlin","support","business"],correspondence:{address:!0},registered:{address:!0},berlin:{address:!0},support:{email:Ni.support,gtmType:"concierge-email-click"},business:{email:Ni.general,gtmType:"hello-email-click"}}},social:{order:["linkedin","twitter","facebook"],linkedin:{href:"https://www.linkedin.com/company/apolitical"},twitter:{href:"https://twitter.com/apoliticalco"},facebook:{href:"https://www.facebook.com/apoliticalco"}}};const Ii="footer_",du="SiteFooter",Hm=({group:e})=>{const t=Dr[e].order||[];let r=!1;return"text"in Dr[e]&&(r=Dr[e].text),x.jsxs(U.Fragment,{children:[x.jsx("p",{className:"pre-title",children:x.jsx(ln,{id:`${Ii}${e}`})}),Array.isArray(t)&&t.length>0&&x.jsx("ul",{className:"text-medium",children:t.map(n=>{if(["order","child","text"].includes(n))return null;const{href:i,gtmType:o}=Dr[e][n],a={};return["legal"].includes(e)&&(a.target="_blank",a.rel="noopener"),x.jsx("li",{children:x.jsx("a",{href:i,className:"gtm-trackable","data-gtm-event-context":du,"data-gtm-event-type":o,...a,children:x.jsx(ln,{id:`${Ii}${e}_${n}`})})},`${e}_${n}`)})}),typeof r!="boolean"&&"order"in r&&Array.isArray(r.order)&&x.jsx("dl",{className:"text-medium",children:r.order.map(n=>x.jsxs(U.Fragment,{children:[x.jsx("dt",{children:x.jsx(ln,{id:`${Ii}${e}_${n}`})}),x.jsxs("dd",{children:[typeof r!="boolean"&&r[n].address&&x.jsx("address",{children:x.jsx(ln,{id:`${Ii}${e}_${n}_address`,values:{br:x.jsx("br",{})}})}),typeof r!="boolean"&&r[n].email&&x.jsx("a",{href:`mailto:${r[n].email}`,className:"gtm-trackable","data-gtm-event-context":du,"data-gtm-event-type":r[n].gtmType,children:r[n].email})]})]},`dl-${e}-${n}`))})]},e)},ch=()=>x.jsx("div",{id:"footer",children:x.jsxs("div",{className:"wrapper",children:[x.jsx(Of,{element:"hr"}),x.jsx(uh,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":du,"data-gtm-event-type":"logo-homepage-link"}),x.jsx("footer",{children:["platform","community","company","contact"].map(e=>x.jsxs("div",{className:"group",children:[x.jsx(Hm,{group:e}),Object.keys(Dr[e]).includes("child")&&x.jsx(Hm,{group:Dr[e].child})]},e))}),x.jsx("hr",{}),x.jsxs("div",{className:"sub-footer",children:[x.jsx("ul",{children:Array.isArray(Dr.social.order)&&Dr.social.order.map(e=>{const t=Dr.social[e];return x.jsx("li",{className:e,children:x.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":du,"data-gtm-event-type":"social-click",children:x.jsx("span",{className:"hidden",children:x.jsx(ln,{id:`${Ii}social_${e}`})})})},e)})}),x.jsx("small",{children:x.jsx(ln,{id:`${Ii}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const Ba="emailHelperTextBox_",dP=({type:e,email:t,redirectPath:r,resendVerificationCode:n})=>{const i=Oe(),[o,a]=U.useState({path:`${Ba}default`,type:"default",link:{},mail:{},error:""}),[s,c]=U.useState(!1),l=U.useCallback(f=>{f.preventDefault(),f.stopPropagation();const p=m=>{a({path:`${Ba}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:_=>l(_),href:"#","data-testid":"send-verify-email-click"},mail:{href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"ErrorVerifyingBox","data-gtm-event-type":"email-concierge-click"},error:m})};if(typeof n!="function"){p(i.formatMessage({id:`${Ba}error_noFunction`}));return}c(!0),n(t).then(()=>{localStorage.setItem("email",t),window.location.href=r||"/signup/verify-email"}).catch(m=>{p(m.message)}).finally(()=>{c(!1)})},[t,r,n]);U.useEffect(()=>{let f=Ba,p="default",m={},_={};switch(e){case"gov":f+="autoApproved",p="success";break;case"nonGov":f+="unrecognisedEmail",p="error",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"NonGovEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break;case"pending":f+="pendingApproval",p="error",_={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":f+="emailUnverified",p="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:S=>l(S),"data-testid":"send-verify-email-click"};break;case"exists":f+="emailAlreadyExists",p="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},_={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:f+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}a({...o,path:f,type:p,link:m,mail:_})},[e]);const u={};return["link","mail"].forEach(f=>{u[f]=Object.keys(o[f]).length?p=>x.jsx("a",{...o[f],children:p}):p=>p}),x.jsx(O0,{type:o.type,heading:s?!1:i.formatMessage({id:`${o.path}_title`}),children:s?x.jsxs(x.Fragment,{children:[x.jsx(yr,{element:"span"}),x.jsx(yr,{element:"span"})]}):i.formatMessage({id:`${o.path}_text`},{...u,strong:f=>x.jsx("strong",{children:f}),em:f=>x.jsx("em",{children:f}),br:x.jsxs(x.Fragment,{children:[x.jsx("br",{}),x.jsx("br",{})]}),error:o.error})})};const Ua="passwordRules_",hE="isMoreThanEightCharacters",dE="includesNumberAndSymbol",pE="includesLowerAndUppercase",pP={[hE]:"8Characters",[dE]:"numberSymbol",[pE]:"lowercaseUppercase"},mP=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const r=Oe();return x.jsxs("aside",{className:se("password-rules",t),children:[x.jsx("small",{children:r.formatMessage({id:`${Ua}intro`})}),x.jsx("ul",{children:[hE,dE,pE].map(n=>x.jsxs("li",{className:se({matches:e[n]}),children:[x.jsxs(lt,{children:[r.formatMessage({id:`${Ua}rule_label`})," "]}),x.jsx("span",{children:r.formatMessage({id:`${Ua}rule_${pP[n]}`})}),!e[n]&&x.jsxs(lt,{element:"strong",children:[" "," ",r.formatMessage({id:`${Ua}notMet`})]})]},`rule-${n}`))})]})},gP=U.memo(mP);const yP=({text:e={},topRating:t=5,functions:{createRating:r=()=>null,updateRating:n=()=>{},reportError:i=()=>{}},className:o="",hasLoaded:a=!1})=>{const s=Oe(),[c,l]=U.useState({setUp:!1,id:null,rating:null,disabled:!0}),u=async()=>{try{const S=await r();l(v=>({...v,setUp:!0,id:S&&S.id,disabled:!1}))}catch(S){l(v=>({...v,setUp:!0,disabled:!0})),i(S)}};if(U.useEffect(()=>{a&&!c.setUp&&u()},[a]),!a)return x.jsx(yr,{className:"rating-placeholder"});const{id:d,rating:h,disabled:f}=c,p="ratings_",m={text:s.formatMessage({id:`${p}text`}),low:s.formatMessage({id:`${p}low`}),high:s.formatMessage({id:`${p}high`}),success:s.formatMessage({id:`${p}success`}),...e},_=async S=>{if(!(!d||f))try{l(v=>({...v,rating:S,disabled:!0})),await n({id:d,value:S})}catch(v){l(b=>({...b,rating:null})),i(v)}finally{l(v=>({...v,disabled:!1}))}};return x.jsxs("div",{className:se("rating",o),children:[x.jsx("span",{className:"label",children:m[h?"success":"text"]}),x.jsx("ol",{children:Array.from(new Array(t).keys()).map(S=>{const v=S+1;return x.jsx("li",{className:se({selected:h&&v<=h}),children:x.jsx(ze,{variant:"tertiary",size:"small",icon:{icon:`star${!h||v>h?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${s.formatMessage({id:`${p}stars`},{number:v,total:t})}${v===1||v===t?` - ${m[v===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),_(v)},disabled:f})},`rating-${v}`)})})]})};const mE=({id:e="search",className:t="",handleToggle:r=!1,defaultValue:n="",gtmContext:i="search-bar",gtmEvent:o="form-submission"})=>{const{searchIsOpen:a=!0,isDesktopVersion:s=!1}=r||{},c=Oe(),l=U.useRef(null);ri(()=>{!r||s||!a||l.current&&l.current.focus()},[a]);const u=d=>{d.preventDefault(),d.stopPropagation(),!(!l.current||!l.current.value||l.current.value.length<1)&&(window.location.href=`/search?search=${encodeURIComponent(l.current.value)}`)};return x.jsx("form",{onSubmit:u,className:se("search-form gtm-trackable",t),"data-gtm-event-context":i,"data-gtm-event-type":o,children:x.jsx("fieldset",{id:`${e}-form`,hidden:r?!a:!1,role:"search",children:x.jsxs("p",{children:[x.jsx(lt,{element:"label",htmlFor:e,children:c.formatMessage({id:"search_label"})}),x.jsx("input",{ref:l,type:"search",id:e,name:e,defaultValue:n,placeholder:c.formatMessage({id:"search_placeholder"}),onKeyDown:d=>{d.key==="Enter"&&u(d)}}),x.jsx("button",{className:"clear",onClick:d=>{d.preventDefault(),d.stopPropagation(),l.current&&l.current.value&&(l.current.value="")},children:x.jsx(lt,{children:c.formatMessage({id:"search_clear"})})}),x.jsx("button",{className:"search",onClick:u,children:x.jsx(lt,{children:c.formatMessage({id:"search_cta"})})})]})})})};var vP="Expected a function",gE="__lodash_hash_undefined__",yE=1/0,EP="[object Function]",_P="[object GeneratorFunction]",bP="[object Symbol]",wP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SP=/^\w*$/,TP=/^\./,xP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,OP=/[\\^$.*+?()[\]{}|]/g,AP=/\\(\\)?/g,CP=/^\[object .+?Constructor\]$/,RP=typeof fe=="object"&&fe&&fe.Object===Object&&fe,PP=typeof self=="object"&&self&&self.Object===Object&&self,lh=RP||PP||Function("return this")();function NP(e,t){return e==null?void 0:e[t]}function IP(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var LP=Array.prototype,kP=Function.prototype,vE=Object.prototype,Sl=lh["__core-js_shared__"],qm=function(){var e=/[^.]+$/.exec(Sl&&Sl.keys&&Sl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),EE=kP.toString,fh=vE.hasOwnProperty,_E=vE.toString,MP=RegExp("^"+EE.call(fh).replace(OP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gm=lh.Symbol,FP=LP.splice,DP=bE(lh,"Map"),ks=bE(Object,"create"),Vm=Gm?Gm.prototype:void 0,Wm=Vm?Vm.toString:void 0;function oi(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function BP(){this.__data__=ks?ks(null):{}}function UP(e){return this.has(e)&&delete this.__data__[e]}function $P(e){var t=this.__data__;if(ks){var r=t[e];return r===gE?void 0:r}return fh.call(t,e)?t[e]:void 0}function jP(e){var t=this.__data__;return ks?t[e]!==void 0:fh.call(t,e)}function HP(e,t){var r=this.__data__;return r[e]=ks&&t===void 0?gE:t,this}oi.prototype.clear=BP;oi.prototype.delete=UP;oi.prototype.get=$P;oi.prototype.has=jP;oi.prototype.set=HP;function vo(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qP(){this.__data__=[]}function GP(e){var t=this.__data__,r=Iu(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():FP.call(t,r,1),!0}function VP(e){var t=this.__data__,r=Iu(t,e);return r<0?void 0:t[r][1]}function WP(e){return Iu(this.__data__,e)>-1}function zP(e,t){var r=this.__data__,n=Iu(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}vo.prototype.clear=qP;vo.prototype.delete=GP;vo.prototype.get=VP;vo.prototype.has=WP;vo.prototype.set=zP;function ci(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function QP(){this.__data__={hash:new oi,map:new(DP||vo),string:new oi}}function YP(e){return Lu(this,e).delete(e)}function KP(e){return Lu(this,e).get(e)}function XP(e){return Lu(this,e).has(e)}function JP(e,t){return Lu(this,e).set(e,t),this}ci.prototype.clear=QP;ci.prototype.delete=YP;ci.prototype.get=KP;ci.prototype.has=XP;ci.prototype.set=JP;function Iu(e,t){for(var r=e.length;r--;)if(cN(e[r][0],t))return r;return-1}function ZP(e,t){t=nN(t,e)?[t]:rN(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[aN(t[r++])];return r&&r==n?e:void 0}function eN(e){if(!SE(e)||oN(e))return!1;var t=lN(e)||IP(e)?MP:CP;return t.test(uN(e))}function tN(e){if(typeof e=="string")return e;if(dh(e))return Wm?Wm.call(e):"";var t=e+"";return t=="0"&&1/e==-yE?"-0":t}function rN(e){return wE(e)?e:sN(e)}function Lu(e,t){var r=e.__data__;return iN(t)?r[typeof t=="string"?"string":"hash"]:r.map}function bE(e,t){var r=NP(e,t);return eN(r)?r:void 0}function nN(e,t){if(wE(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dh(e)?!0:SP.test(e)||!wP.test(e)||t!=null&&e in Object(t)}function iN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function oN(e){return!!qm&&qm in e}var sN=hh(function(e){e=hN(e);var t=[];return TP.test(e)&&t.push(""),e.replace(xP,function(r,n,i,o){t.push(i?o.replace(AP,"$1"):n||r)}),t});function aN(e){if(typeof e=="string"||dh(e))return e;var t=e+"";return t=="0"&&1/e==-yE?"-0":t}function uN(e){if(e!=null){try{return EE.call(e)}catch{}try{return e+""}catch{}}return""}function hh(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(vP);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(hh.Cache||ci),r}hh.Cache=ci;function cN(e,t){return e===t||e!==e&&t!==t}var wE=Array.isArray;function lN(e){var t=SE(e)?_E.call(e):"";return t==EP||t==_P}function SE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function fN(e){return!!e&&typeof e=="object"}function dh(e){return typeof e=="symbol"||fN(e)&&_E.call(e)==bP}function hN(e){return e==null?"":tN(e)}function dN(e,t,r){var n=e==null?void 0:ZP(e,t);return n===void 0?r:n}var pN=dN;const TE=Er(pN),Fe={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const r={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},n=o=>{const a=`logged${e?"In":"Out"}`;return t>=r[o][a]};let i={};return["navigation","search"].forEach(o=>{i[o]=n(o)}),i},shouldChangeHeaderIsVisible:(e,t,r)=>{Object.values(t).filter(i=>i===!0).length||r([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:r,dispatch:n})=>{if(r[e]===t||e==="account"&&t===!1&&r.navigation===!0)return;const i=Date.now();if(!t&&Fe.handlerCalled[e]&&i-Fe.handlerCalled[e]<500)return;Fe.handlerCalled[e]=i;let o=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(r).forEach(a=>{a===e||r[a]===!1||o.push({type:`menus.${a}`,value:!1})}),n(o)},findFirstChild:(e,t,r=!1)=>{if(!e||!e[0])return!1;for(let n=0;n<=e.length;n++){if(!e[n])continue;if(e[n][t]&&(!r||e[n][t].includes(r)))return e[n];if(!t.includes("."))continue;const i=TE(e[n],t);if(!(typeof i>"u")&&(!r||i[t]&&i[t].includes(r)||i.value&&i.value.includes(r)||i.toString().includes(r)))return e[n]}return e[0].children?Fe.findFirstChild(e[0].children,t,r):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:r,focusElements:n,dispatch:i})=>{if(!t.current||!t.current.children)return;const o=r?"desktop":"default";if(n[e][o]){n[e][o].focus();return}let a,s;switch(e){case"navigation":if(r){const c=Fe.findFirstChild(t.current.children,"attributes.aria-controls","navigation");a=Fe.findFirstChild(c.children,"href")}else a=Fe.findFirstChild(t.current.children,"href");a||(a=t.current);break;case"account":if(s=Fe.findFirstChild(t.current.children,"className","account"),!s||!s.children)return;a=Fe.findFirstChild(s.children,"href");break;default:return}a&&(i([{type:`focusElements.${e}.${o}`,value:a}]),a.focus())},events:{onClick:(e,{id:t,callback:r,isOpen:n})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Fe.timeouts[t]),r(t,!n))},onFocus:({id:e})=>{clearTimeout(Fe.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Fe.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Fe.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},Ms={order:["home","topics","partners","account"],home:{href:"/home/",hasVariantText:!0,gtmType:"homepage-click"},topics:{order:["explore","topics"],menuId:"navigation",explore:{order:["events","courses","q-and-a","articles"],events:{href:"/events/",className:"icon events"},courses:{href:"/microcourses/",gtmType:"microcourses-click",className:"icon courses"},"q-and-a":{href:"/questions-answers/",className:"icon q-and-a"},articles:{href:"/solution-articles/",gtmType:"articles-click",className:"icon articles"}},topics:{order:["climate","cities-and-local-government","digital-and-data","education","equity-justice-and-inclusion","health-and-social-care","innovation","leadership-and-skills","life-in-government","policymaking","transport-and-infrastructure","work-and-the-economy"],className:"columns",climate:{href:"/topics/climate/"},"cities-and-local-government":{href:"/topics/cities-and-local-government/"},"digital-and-data":{href:"/topics/digital-and-data/"},education:{href:"/topics/education/"},"equity-justice-and-inclusion":{href:"/topics/equity-justice-and-inclusion/"},"health-and-social-care":{href:"/topics/health-and-social-care/"},innovation:{href:"/topics/innovation/"},"leadership-and-skills":{href:"/topics/leadership-and-skills/"},"life-in-government":{href:"/topics/life-in-government/"},policymaking:{href:"/topics/policymaking/"},"transport-and-infrastructure":{href:"/topics/transport-and-infrastructure/"},"work-and-the-economy":{href:"/topics/work-and-the-economy/"}}},partners:{href:"/partnerships/",onlyShow:"logged-out"},account:{order:["profile","settings","log-out"],className:"account",onlyShow:"logged-in",doTrack:!1,profile:{href:"/profiles/me"},settings:{href:"/profiles/me/manage-account"},"log-out":{href:"/user-onboarding/logout",className:"divider"}},buttons:{order:["login","signup"],login:{href:"/user-onboarding/login"},signup:{href:"/signup/?ref=header-banner",props:{variant:"primary"}}}},pu=({id:e,isLoggedIn:t=!1,isDesktopVersion:r=!1,menus:n={},callback:i=()=>{},doTrack:o=null})=>{const a=Oe(),s=TE(Ms,e);if(!s||s.onlyShow&&(s.onlyShow==="logged-in"&&!t||s.onlyShow==="logged-out"&&t))return null;const c="doTrack"in s,l=o===null?c?s.doTrack:!0:o,u=e.includes("buttons.");let d=`header_${e.replaceAll(".","_")}`;s.hasVariantText&&(d+=`_logged${t?"In":"Out"}`);let h=!1;if(s.href){let v=s.gtmType||`${e}-click`;if(v.includes(".")){const b=v.split("."),T=b[b.length-2];v=`${T==="topics"?`${T}-`:""}${b[b.length-1]}`}h={href:s.href,role:"menuitem"},l&&(h={...h,className:"gtm-trackable","data-gtm-event-type":v,"data-gtm-event-context":"HeaderButtons"}),u&&(h={...h,variant:"secondary",size:{mobile:"small",881:"large"},...s.props||{}})}const f=s.order&&s.order[0]&&s[s.order[0]],p=f&&s[s.order[0]].order,m=h&&window.location.pathname===s.href;let _={},S={};if(f){const v=s.menuId||e,b={onClick:T=>Fe.events.onClick(T,{id:v,callback:i,isOpen:n[v]}),onFocus:()=>Fe.events.onFocus({id:v}),onBlur:()=>Fe.events.onBlur({id:v,callback:i}),onMouseLeave:()=>Fe.events.onBlur({id:v,callback:i}),onMouseEnter:()=>Fe.events.onMouseEnter({id:v,callback:i})};r&&(p&&(_={...b,onKeyPress:T=>{T.key==="Enter"&&Fe.events.onClick(T,{id:v,callback:i,isOpen:n[v]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":n[v],"aria-controls":v}),S={hidden:v in n?!n[v]:!0}),p||(S={...S,...b})}return x.jsxs("li",{className:se({[s.className]:s.className,"has-submenu":f,parent:p,active:m}),role:"none",..._,children:[h?U.createElement(u?ze:"a",h,a.formatMessage({id:d})):a.formatMessage({id:d}),s.order&&x.jsx("ul",{...S,children:s.order.map(v=>{if(!s[v])return null;const b={isLoggedIn:t,isDesktopVersion:r,menus:n,callback:i,doTrack:c?l:null};return s[v].order?x.jsxs("li",{className:se({[s[v].className]:s[v].className}),children:[a.formatMessage({id:`${d}_${v}`}),x.jsx("ul",{children:s[v].order.map(T=>x.jsx(pu,{id:`${e}.${v}.${T}`,...b},T))})]},v):x.jsx(pu,{id:`${e}.${v}`,...b},v)})})]},e)};const mN={height:67,height_desktop:83},ph=()=>{const e=Oe(),t=U.useContext($r),r=ra(!0,!0),n=t&&typeof t.id=="string",i=U.useMemo(()=>Fe.getIsDesktopVersion(n,r),[n,r]),[o,a]=U.useReducer(EO,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:s,menus:c,focusElements:l}=o;mv({scrollPosition:mN[`height${i.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!i&&c.navigation||Fe.shouldChangeHeaderIsVisible(!0,c,a)},scrollDown:()=>{!i&&c.navigation||Fe.shouldChangeHeaderIsVisible(!1,c,a)}}});const u=(h,f)=>{Fe.handleMenus({id:h,value:f,menus:c,dispatch:a})},d=U.useRef(null);return ri(()=>{c.navigation&&Fe.autoFocus({menu:"navigation",navigationRef:d,isDesktopVersion:i.navigation,focusElements:l,dispatch:a})},[c.navigation]),ri(()=>{c.account&&Fe.autoFocus({menu:"account",navigationRef:d,isDesktopVersion:i.navigation,focusElements:l,dispatch:a})},[c.account]),t&&t.isLoading?null:x.jsxs(x.Fragment,{children:[x.jsxs("nav",{id:"header",className:se({"logged-in":n,"logged-out":!n,visible:s}),children:[x.jsx(lt,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),x.jsx(uh,{}),!i.navigation&&x.jsx("button",{className:"menu-button gtm-trackable",onClick:h=>{h.preventDefault(),h.stopPropagation(),u("navigation",!c.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":c.navigation,"aria-controls":"navigation",children:x.jsx(lt,{children:e.formatMessage({id:`header_menu_${c.navigation?"hide":"show"}`})})}),x.jsx("ul",{ref:d,id:"navigation",hidden:i.navigation||c.account?!1:!c.navigation,role:"menu","data-showing":!i.navigation&&c.account?"account":"default",children:Ms.order.map(h=>x.jsx(pu,{id:h,isLoggedIn:n,isDesktopVersion:i.navigation,menus:{navigation:c.navigation,account:c.account},callback:u},h))}),!i.search&&x.jsx("button",{className:"search toggle-search-button",onClick:h=>{h.preventDefault(),h.stopPropagation(),u("search",!c.search)},"aria-haspopup":"true","aria-expanded":c.search,"aria-controls":"search-form",children:x.jsx(lt,{children:e.formatMessage({id:`header_search_${c.search?"hide":"show"}`})})}),x.jsx(mE,{id:"global-search",handleToggle:{searchIsOpen:c.search,isDesktopVersion:i.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),n?x.jsxs("button",{className:"account-button",onClick:h=>Fe.events.onClick(h,{id:"account",callback:u,isOpen:c.account}),onMouseEnter:()=>Fe.events.onMouseEnter({id:"account",callback:u}),onMouseLeave:()=>Fe.events.onBlur({id:"account",callback:u}),"aria-haspopup":"true","aria-expanded":c.account,"aria-controls":"navigation",children:[x.jsx(lt,{children:e.formatMessage({id:`header_account_${c.account?"hide":"show"}`})}),x.jsx(Ou,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):x.jsx("ul",{className:"sign-in-buttons",children:Ms.buttons.order.map(h=>x.jsx(pu,{id:`buttons.${h}`},h))})]}),x.jsx("hr",{id:"content-of-page"}),x.jsx("div",{className:se("overlay",{open:c.navigation||c.account||!i.search&&c.search})})]})},gN=U.createContext(null),Tl={didCatch:!1,error:null};class yN extends U.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Tl}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(Tl)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&vN(t.resetKeys,i)){var o,a;(o=(a=this.props).onReset)===null||o===void 0||o.call(a,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(Tl)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=t;if(o){const c={error:a,resetErrorBoundary:this.resetErrorBoundary};if(U.isValidElement(i))s=i;else if(typeof r=="function")s=r(c);else if(n)s=U.createElement(n,c);else throw a}return U.createElement(gN.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function vN(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const EN=()=>{const e=Oe();return x.jsxs(x.Fragment,{children:[x.jsx(ph,{}),x.jsx("div",{className:"content",children:x.jsx(aa,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),x.jsx(ch,{})]})},_N=({children:e,reportError:t,showFooter:r=!0,background:n="default",className:i="",locale:o="en"})=>{U.useEffect(()=>{window.scrollTo(0,0)},[window.location.pathname]);const a=Ov(e,{locale:o});return x.jsx(yN,{onError:t,fallback:x.jsx(EN,{}),children:x.jsx(U.Suspense,{fallback:x.jsx(N0,{layout:"overview-page"}),children:x.jsx("div",{id:"wrapper",className:se(i,{[n]:n!=="default"}),children:x.jsxs(ZE,{children:[x.jsx(ph,{}),x.jsx("div",{className:"content",children:a}),r&&x.jsx(ch,{}),x.jsx(fE,{})]})})})})},zm={default:"tags_",headerTopics:"header_topics_topics_"},xl={topic:{Climate:"climate",CitiesAndLocalGovernment:"cities-and-local-government",DigitalAndData:"digital-and-data",Education:"education",EquityJusticeAndInclusion:"equity-justice-and-inclusion",HealthAndSocialCare:"health-and-social-care",Innovation:"innovation",LeadershipAndSkills:"leadership-and-skills",LifeInGovernment:"life-in-government",Policymaking:"policymaking",TransportAndInfrastructure:"transport-and-infrastructure",WorkAndTheEconomy:"work-and-the-economy"},"from the community":"community"},bN={getTagDetails:e=>{if(e.includes("topic_")){if(e=xl.topic[e.replace("topic_","")],e){const t=Ms.topics.topics[e].href;return t?{id:e,href:t,text:`${zm.headerTopics}${e}`}:null}return null}return xl[e]?(e=xl[e],{id:e,text:`${zm.default}${e}`}):null}};const wN=({tags:e=[],color:t="default",forceOneLine:r=!1,canHaveLinks:n=!0,className:i="",gtmType:o="tag-click",gtmContext:a="tags"})=>{const s=Oe();if(!e||e.length<1)return null;const c=[];return e.forEach(l=>{if(!l)return;const u=bN.getTagDetails(l);u&&c.push(u)}),c.length<1?null:x.jsx("ul",{className:se("tags text-small",t,i,{"one-line":r}),children:c.map(l=>{const u=s.formatMessage({id:l.text});return x.jsx("li",{children:l.href&&n?x.jsx("a",{href:l.href,className:"gtm-trackable","data-gtm-event-type":o,"data-gtm-event-context":a,children:u}):u},l.id)})})};const SN=({members:{total:e,data:t=[]},pagination:r,gtmContext:n="member",gtmType:i="member-click",className:o=""})=>{const a=Oe();return t.length===0?null:(e||(e=t.length),x.jsxs("div",{className:se("members-list",o),children:[x.jsxs("h1",{children:[a.formatMessage({id:"membersList"}),x.jsx("span",{className:"count",children:e})]}),x.jsx("ul",{children:t.map((s,c)=>x.jsxs("li",{children:[x.jsx(Au,{member:s,gtmContext:n,gtmType:i}),s.isAdmin&&x.jsx(C0,{children:a.formatMessage({id:"membersList_admin"})})]},c))}),r&&x.jsx(cE,{...r,icon:{icon:"arrow-down",position:"right"},gtmContext:n})]}))};function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xf.apply(this,arguments)}function TN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var xN=U.useLayoutEffect,ON=function(t){var r=pe.useRef(t);return xN(function(){r.current=t}),r},Qm=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},AN=function(t,r){var n=U.useRef();return U.useCallback(function(i){t.current=i,n.current&&Qm(n.current,null),n.current=r,r&&Qm(r,i)},[r])},Ym={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},CN=function(t){Object.keys(Ym).forEach(function(r){t.style.setProperty(r,Ym[r],"important")})},Km=CN,vt=null,Xm=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function RN(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),vt||(vt=document.createElement("textarea"),vt.setAttribute("tabindex","-1"),vt.setAttribute("aria-hidden","true"),Km(vt)),vt.parentNode===null&&document.body.appendChild(vt);var i=e.paddingSize,o=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(h){var f=h;vt.style[f]=a[f]}),Km(vt),vt.value=t;var c=Xm(vt,e);vt.value=t,c=Xm(vt,e),vt.value="x";var l=vt.scrollHeight-i,u=l*r;s==="border-box"&&(u=u+i+o),c=Math.max(u,c);var d=l*n;return s==="border-box"&&(d=d+i+o),c=Math.min(d,c),[c,l]}var Jm=function(){},PN=function(t,r){return t.reduce(function(n,i){return n[i]=r[i],n},{})},NN=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],IN=!!document.documentElement.currentStyle,LN=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=PN(NN,r),i=n.boxSizing;if(i==="")return null;IN&&i==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var o=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:a}},kN=LN;function xE(e,t,r){var n=ON(r);pe.useLayoutEffect(function(){var i=function(a){return n.current(a)};if(e)return e.addEventListener(t,i),function(){return e.removeEventListener(t,i)}},[])}var MN=function(t){xE(window,"resize",t)},FN=function(t){xE(document.fonts,"loadingdone",t)},DN=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],BN=function(t,r){var n=t.cacheMeasurements,i=t.maxRows,o=t.minRows,a=t.onChange,s=a===void 0?Jm:a,c=t.onHeightChange,l=c===void 0?Jm:c,u=TN(t,DN),d=u.value!==void 0,h=pe.useRef(null),f=AN(h,r),p=pe.useRef(0),m=pe.useRef(),_=function(){var b=h.current,T=n&&m.current?m.current:kN(b);if(T){m.current=T;var w=RN(T,b.value||b.placeholder||"x",o,i),N=w[0],R=w[1];p.current!==N&&(p.current=N,b.style.setProperty("height",N+"px","important"),l(N,{rowHeight:R}))}},S=function(b){d||_(),s(b)};return pe.useLayoutEffect(_),MN(_),FN(_),pe.createElement("textarea",xf({},u,{onChange:S,ref:f}))},UN=pe.forwardRef(BN);let $a=null;const Ot="discussion_form_",mh=({content:e={type:"response",slugs:{}},userHasPermissions:t=!0,meta:r={isLoading:!1,isInWrapper:!1,isEditing:!1,showTitle:!1},inputRef:n,maxLength:i=5e4,minRows:o=4,forceShow:a={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:c="DiscussionForm"})=>{var $,G;const l=Oe(),u=U.useContext($r),[d,h]=U.useState(r.isEditing&&r.isEditing.text||""),[f,p]=U.useState(a.error||!1),[m,_]=U.useState(!1),S=U.useRef(null);if(n||(n=S),r.isLoading)return x.jsx(yr,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const v=q=>{const H=q.target.value;h(H);let Y;!u||!u.id?Y=ar(l.formatMessage,`${Ot}error_loggedOut`,e.type,"action"):t?H.length>=i&&(Y=`${Ot}error_tooLong`):Y=ar(l.formatMessage,`${Ot}error_noPermission`,e.type,"action"),Y?p(Y):f&&p(!1)};let b=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const q=e.type==="response"?(($=e.slugs)==null?void 0:$.question)||"":((G=e.slugs)==null?void 0:G.answer)||"";q&&(b=`${b}-${q.slice(-15)}`)}const T=async q=>{var Y;if(q.preventDefault(),q.stopPropagation(),!u||!u.id||!t||N)return;$a&&clearTimeout($a),_("submitting");const H=window.location.pathname;try{let ie;switch(e.type){case"post":ie=await s.create({content:d});break;case"question":ie=await s.create({title:d,authorId:u&&u.id,...(Y=s.props)==null?void 0:Y.create});break;case"response":ie=await s.create({question:e.slugs.question},{body:d,authorId:u&&u.id,contentPath:H});break;case"reply":ie=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:d,authorId:u&&u.id,contentPath:H});break;default:break}await wO(1e3),s.callback&&await s.callback(ie),$a=setTimeout(()=>{h(""),_("submitted"),w()},500)}catch(ie){const K=ie;let k=`${Ot}error`;K.message.includes("entry already exists")&&(k=ar(l.formatMessage,`${Ot}error_alreadyExists`,e.type,"action")),K.message.includes("429")?k=ar(l.formatMessage,`${Ot}error_tooMany`,e.type,"action"):K.message.includes("400")&&(k=`${Ot}error`),p(k),w()}},w=()=>{$a=setTimeout(()=>{p(!1),_(!1)},5e3)},N=!d||!CO(d),R=m==="submitting",L=[];return(r.isEditing&&!R||a.cancel)&&L.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!a.cancel&&(!u||!u.id||!d),children:l.formatMessage({id:`${Ot}cancel`})}),L.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:q=>{if(r.isEditing){_("submitting"),s.handleSaveEdit&&s.handleSaveEdit(S.current&&"value"in S.current?S.current.value:"");return}T(q)},className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":`${r.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!u||!u.id||!t||N||R||r.isEditing&&d===r.isEditing.text,children:l.formatMessage({id:`${Ot}${R?r.isEditing?"saving":"posting":r.isEditing?"save":"post"}`})}),x.jsxs("form",{id:b,className:se("discussion-card discussion-form",{"no-styling":r.isInWrapper&&r.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[(r==null?void 0:r.showTitle)&&!r.isEditing&&["question"].includes(e.type)&&x.jsx("h2",{children:ar(l.formatMessage,`${Ot}title`,e.type,"action")}),x.jsx(Au,{member:u||"community",gtmContext:c,gtmType:"profile-click"}),x.jsx(lt,{element:"label",showOnFocus:!1,htmlFor:`${b}-input`,children:ar(l.formatMessage,`${Ot}label`,e.type,"action")}),x.jsx(UN,{ref:n,id:`${b}-input`,name:e.type,placeholder:ar(l.formatMessage,`${Ot}placeholder`,e.type,"action"),onChange:v,value:d,maxLength:i,"aria-invalid":!!f,"aria-errormessage":"error-message",minRows:o,autoFocus:!!r.isEditing}),x.jsx("small",{children:ar(l.formatMessage,`${Ot}explainer`,e.type,"action",{a:q=>x.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",target:"_blank",className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":"community-guidelines-link",children:q})})}),x.jsx(na,{buttons:L}),m==="submitted"&&x.jsx(nu,{className:"success","data-testid":"success",children:ar(l.formatMessage,`${Ot}success`,e.type,"action")}),f&&x.jsx(nu,{id:"error-message",className:"error","data-testid":"error",children:a.error?a.error:typeof f=="string"?f.includes(" ")?f:l.formatMessage({id:f},{action:l.formatMessage({id:`discussion_action_${e.type}`}),maxLength:i}):f})]})},gh=({contentType:e,createPost:t,membershipRequiredToPost:{isMember:r,required:n,join:i,leave:o,notMemberStateText:a}})=>n&&!r?x.jsx(aa,{text:a,button:{component:x.jsx(ah,{functions:{join:i,leave:o}})}}):x.jsx(mh,{content:{type:e,slugs:{}},functions:{create:t}}),$N={showThread:!1,showForm:!1},yh=U.createContext($N),jN=({children:e})=>{const[t,r]=U.useState({showThread:!1,showForm:!1});return x.jsx(yh.Provider,{value:{...t,updateConversation:r},children:e})},HN=({question:e,answer:t,reply:r})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...r&&{replySlug:r}}),qN=(e,t=10)=>!e||e.length===0?[]:e.slice(0,t);let Os=!1;const Ol=()=>{Os!==!1&&(clearTimeout(Os),Os=!1)},Al=10,OE=({element:e="div",likes:t=0,peopleWhoLiked:r=!1,isShort:n=!0,userLiked:i=!1,content:o={type:"reply",slugs:{}},canLike:a=!0,functions:{createLike:s=()=>{},deleteLike:c=()=>{}}={}})=>{const l=Oe();U.useEffect(()=>{f(i)},[i]);const[u,d]=U.useState(t),[h,f]=U.useState(i),[p,m]=U.useState(!1),[_,S]=U.useState(!1),v=U.useMemo(()=>qN(r,Al),[r]),b=w=>{if(w.preventDefault(),w.stopPropagation(),S(!1),Os)return Ol(),!1;if(Ol(),p||!a)return!1;Os=setTimeout(T,350)},T=async()=>{if(Ol(),p||!a)return!1;let w=h?u-1:u+1;w<0&&(w=0),m(!0),d(w),f(!h);try{if(o&&o.slugs){const N=HN(o.slugs);h?await c(N):await s(N,{contentPath:window.location.pathname})}}catch{d(t),f(i)}finally{m(!1)}};return U.createElement(e,{className:se("likes-wrapper text-medium action-button",{"show-spinner":p,"is-liked":h,disabled:!a}),onClick:b,onMouseEnter:()=>{S(!0)},onMouseLeave:()=>{S(!1)},onFocus:()=>{S(!0)},onBlur:()=>{S(!1)},children:x.jsxs(x.Fragment,{children:[x.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:h?"heart":"heart_empty",animate:"bounce"},className:se({"do-animation":h&&!i}),screenreaderText:a?l.formatMessage({id:`discussion_likes_${h?"unlike":"like"}`},{action:l.formatMessage({id:`discussion_action_${o.type}`})}):!1,onClick:b,disabled:!a,"aria-hidden":!a,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${o.type}-click`}),x.jsx("span",{className:se("number-of-likes",{"no-likes":u===0}),"data-testid":"number-of-likes",children:l.formatMessage({id:`discussion_likes${n?"_short":""}`},{number:u})}),r&&x.jsx(i0,{isOpen:_,isLoading:r.length===0,children:r.length&&x.jsxs("ul",{children:[v.map(w=>typeof w=="string"||!w.name?null:x.jsx("li",{children:x.jsx(ia,{href:w.id?`/profiles/${w.id}`:void 0,gtmContext:"Likes",gtmType:"liked-name-click",children:w.name})},w.id||window.btoa(w.name))),r.length>Al&&x.jsx("li",{children:l.formatMessage({id:"discussion_likes_more"},{number:r.length-Al})})]})})]})})};var mu={exports:{}};mu.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",_="[object Number]",S="[object Null]",v="[object Object]",b="[object Promise]",T="[object Proxy]",w="[object RegExp]",N="[object Set]",R="[object String]",L="[object Symbol]",$="[object Undefined]",G="[object WeakMap]",q="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",ie="[object Float64Array]",K="[object Int8Array]",k="[object Int16Array]",Q="[object Int32Array]",ee="[object Uint8Array]",he="[object Uint8ClampedArray]",Z="[object Uint16Array]",X="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,de=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,te={};te[Y]=te[ie]=te[K]=te[k]=te[Q]=te[ee]=te[he]=te[Z]=te[X]=!0,te[s]=te[c]=te[q]=te[u]=te[H]=te[d]=te[h]=te[f]=te[m]=te[_]=te[v]=te[w]=te[N]=te[R]=te[G]=!1;var ae=typeof fe=="object"&&fe&&fe.Object===Object&&fe,De=typeof self=="object"&&self&&self.Object===Object&&self,Ie=ae||De||Function("return this")(),Tt=t&&!t.nodeType&&t,Ct=Tt&&!0&&e&&!e.nodeType&&e,Gt=Ct&&Ct.exports===Tt,oe=Gt&&ae.process,st=function(){try{return oe&&oe.binding&&oe.binding("util")}catch{}}(),Je=st&&st.isTypedArray;function Vt(y,A){for(var I=-1,W=y==null?0:y.length,ge=0,ce=[];++I<W;){var _e=y[I];A(_e,I,y)&&(ce[ge++]=_e)}return ce}function wr(y,A){for(var I=-1,W=A.length,ge=y.length;++I<W;)y[ge+I]=A[I];return y}function er(y,A){for(var I=-1,W=y==null?0:y.length;++I<W;)if(A(y[I],I,y))return!0;return!1}function kt(y,A){for(var I=-1,W=Array(y);++I<y;)W[I]=A(I);return W}function yn(y){return function(A){return y(A)}}function Wt(y,A){return y.has(A)}function Mt(y,A){return y==null?void 0:y[A]}function Ze(y){var A=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++A]=[ge,W]}),I}function zt(y,A){return function(I){return y(A(I))}}function yt(y){var A=-1,I=Array(y.size);return y.forEach(function(W){I[++A]=W}),I}var at=Array.prototype,vn=Function.prototype,O=Object.prototype,g=Ie["__core-js_shared__"],E=vn.toString,C=O.hasOwnProperty,M=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),j=O.toString,z=RegExp("^"+E.call(C).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Gt?Ie.Buffer:void 0,Ce=Ie.Symbol,Re=Ie.Uint8Array,Pe=O.propertyIsEnumerable,Ee=at.splice,Rt=Ce?Ce.toStringTag:void 0,Hr=Object.getOwnPropertySymbols,En=me?me.isBuffer:void 0,Sr=zt(Object.keys,Object),_n=Yt(Ie,"DataView"),Tr=Yt(Ie,"Map"),bn=Yt(Ie,"Promise"),wn=Yt(Ie,"Set"),Sn=Yt(Ie,"WeakMap"),tr=Yt(Object,"create"),li=ut(_n),Qt=ut(Tr),Eo=ut(bn),_o=ut(wn),bo=ut(Sn),fi=Ce?Ce.prototype:void 0,Tn=fi?fi.valueOf:void 0;function We(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function xn(){this.__data__=tr?tr(null):{},this.size=0}function On(y){var A=this.has(y)&&delete this.__data__[y];return this.size-=A?1:0,A}function xr(y){var A=this.__data__;if(tr){var I=A[y];return I===n?void 0:I}return C.call(A,y)?A[y]:void 0}function hi(y){var A=this.__data__;return tr?A[y]!==void 0:C.call(A,y)}function wo(y,A){var I=this.__data__;return this.size+=this.has(y)?0:1,I[y]=tr&&A===void 0?n:A,this}We.prototype.clear=xn,We.prototype.delete=On,We.prototype.get=xr,We.prototype.has=hi,We.prototype.set=wo;function et(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function So(){this.__data__=[],this.size=0}function To(y){var A=this.__data__,I=Vr(A,y);if(I<0)return!1;var W=A.length-1;return I==W?A.pop():Ee.call(A,I,1),--this.size,!0}function xo(y){var A=this.__data__,I=Vr(A,y);return I<0?void 0:A[I][1]}function Oo(y){return Vr(this.__data__,y)>-1}function An(y,A){var I=this.__data__,W=Vr(I,y);return W<0?(++this.size,I.push([y,A])):I[W][1]=A,this}et.prototype.clear=So,et.prototype.delete=To,et.prototype.get=xo,et.prototype.has=Oo,et.prototype.set=An;function ht(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function Ao(){this.size=0,this.__data__={hash:new We,map:new(Tr||et),string:new We}}function Co(y){var A=Pt(this,y).delete(y);return this.size-=A?1:0,A}function Ro(y){return Pt(this,y).get(y)}function Po(y){return Pt(this,y).has(y)}function No(y,A){var I=Pt(this,y),W=I.size;return I.set(y,A),this.size+=I.size==W?0:1,this}ht.prototype.clear=Ao,ht.prototype.delete=Co,ht.prototype.get=Ro,ht.prototype.has=Po,ht.prototype.set=No;function qr(y){var A=-1,I=y==null?0:y.length;for(this.__data__=new ht;++A<I;)this.add(y[A])}function di(y){return this.__data__.set(y,n),this}function Gr(y){return this.__data__.has(y)}qr.prototype.add=qr.prototype.push=di,qr.prototype.has=Gr;function xt(y){var A=this.__data__=new et(y);this.size=A.size}function Cn(){this.__data__=new et,this.size=0}function Io(y){var A=this.__data__,I=A.delete(y);return this.size=A.size,I}function Lo(y){return this.__data__.get(y)}function ko(y){return this.__data__.has(y)}function Mo(y,A){var I=this.__data__;if(I instanceof et){var W=I.__data__;if(!Tr||W.length<r-1)return W.push([y,A]),this.size=++I.size,this;I=this.__data__=new ht(W)}return I.set(y,A),this.size=I.size,this}xt.prototype.clear=Cn,xt.prototype.delete=Io,xt.prototype.get=Lo,xt.prototype.has=ko,xt.prototype.set=Mo;function Fo(y,A){var I=Wr(y),W=!I&&Ei(y),ge=!I&&!W&&Qr(y),ce=!I&&!W&&!ge&&Ln(y),_e=I||W||ge||ce,be=_e?kt(y.length,String):[],He=be.length;for(var Ae in y)(A||C.call(y,Ae))&&!(_e&&(Ae=="length"||ge&&(Ae=="offset"||Ae=="parent")||ce&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||rr(Ae,He)))&&be.push(Ae);return be}function Vr(y,A){for(var I=y.length;I--;)if(vi(y[I][0],A))return I;return-1}function Rn(y,A,I){var W=A(y);return Wr(y)?W:wr(W,I(y))}function Or(y){return y==null?y===void 0?$:S:Rt&&Rt in Object(y)?Kt(y):yi(y)}function pi(y){return Ft(y)&&Or(y)==s}function mi(y,A,I,W,ge){return y===A?!0:y==null||A==null||!Ft(y)&&!Ft(A)?y!==y&&A!==A:gi(y,A,I,W,mi,ge)}function gi(y,A,I,W,ge,ce){var _e=Wr(y),be=Wr(A),He=_e?c:Nt(y),Ae=be?c:Nt(A);He=He==s?v:He,Ae=Ae==s?v:Ae;var tt=He==v,ct=Ae==v,Ge=He==Ae;if(Ge&&Qr(y)){if(!Qr(A))return!1;_e=!0,tt=!1}if(Ge&&!tt)return ce||(ce=new xt),_e||Ln(y)?Pn(y,A,I,W,ge,ce):$o(y,A,He,I,W,ge,ce);if(!(I&i)){var rt=tt&&C.call(y,"__wrapped__"),Qe=ct&&C.call(A,"__wrapped__");if(rt||Qe){var nr=rt?y.value():y,Xt=Qe?A.value():A;return ce||(ce=new xt),ge(nr,Xt,I,W,ce)}}return Ge?(ce||(ce=new xt),Nn(y,A,I,W,ge,ce)):!1}function Do(y){if(!bi(y)||qo(y))return!1;var A=_i(y)?z:de;return A.test(ut(y))}function Bo(y){return Ft(y)&&In(y.length)&&!!te[Or(y)]}function Uo(y){if(!Go(y))return Sr(y);var A=[];for(var I in Object(y))C.call(y,I)&&I!="constructor"&&A.push(I);return A}function Pn(y,A,I,W,ge,ce){var _e=I&i,be=y.length,He=A.length;if(be!=He&&!(_e&&He>be))return!1;var Ae=ce.get(y);if(Ae&&ce.get(A))return Ae==A;var tt=-1,ct=!0,Ge=I&o?new qr:void 0;for(ce.set(y,A),ce.set(A,y);++tt<be;){var rt=y[tt],Qe=A[tt];if(W)var nr=_e?W(Qe,rt,tt,A,y,ce):W(rt,Qe,tt,y,A,ce);if(nr!==void 0){if(nr)continue;ct=!1;break}if(Ge){if(!er(A,function(Xt,Cr){if(!Wt(Ge,Cr)&&(rt===Xt||ge(rt,Xt,I,W,ce)))return Ge.push(Cr)})){ct=!1;break}}else if(!(rt===Qe||ge(rt,Qe,I,W,ce))){ct=!1;break}}return ce.delete(y),ce.delete(A),ct}function $o(y,A,I,W,ge,ce,_e){switch(I){case H:if(y.byteLength!=A.byteLength||y.byteOffset!=A.byteOffset)return!1;y=y.buffer,A=A.buffer;case q:return!(y.byteLength!=A.byteLength||!ce(new Re(y),new Re(A)));case u:case d:case _:return vi(+y,+A);case h:return y.name==A.name&&y.message==A.message;case w:case R:return y==A+"";case m:var be=Ze;case N:var He=W&i;if(be||(be=yt),y.size!=A.size&&!He)return!1;var Ae=_e.get(y);if(Ae)return Ae==A;W|=o,_e.set(y,A);var tt=Pn(be(y),be(A),W,ge,ce,_e);return _e.delete(y),tt;case L:if(Tn)return Tn.call(y)==Tn.call(A)}return!1}function Nn(y,A,I,W,ge,ce){var _e=I&i,be=Ar(y),He=be.length,Ae=Ar(A),tt=Ae.length;if(He!=tt&&!_e)return!1;for(var ct=He;ct--;){var Ge=be[ct];if(!(_e?Ge in A:C.call(A,Ge)))return!1}var rt=ce.get(y);if(rt&&ce.get(A))return rt==A;var Qe=!0;ce.set(y,A),ce.set(A,y);for(var nr=_e;++ct<He;){Ge=be[ct];var Xt=y[Ge],Cr=A[Ge];if(W)var ua=_e?W(Cr,Xt,Ge,A,y,ce):W(Xt,Cr,Ge,y,A,ce);if(!(ua===void 0?Xt===Cr||ge(Xt,Cr,I,W,ce):ua)){Qe=!1;break}nr||(nr=Ge=="constructor")}if(Qe&&!nr){var ir=y.constructor,Yr=A.constructor;ir!=Yr&&"constructor"in y&&"constructor"in A&&!(typeof ir=="function"&&ir instanceof ir&&typeof Yr=="function"&&Yr instanceof Yr)&&(Qe=!1)}return ce.delete(y),ce.delete(A),Qe}function Ar(y){return Rn(y,wi,jo)}function Pt(y,A){var I=y.__data__;return Ho(A)?I[typeof A=="string"?"string":"hash"]:I.map}function Yt(y,A){var I=Mt(y,A);return Do(I)?I:void 0}function Kt(y){var A=C.call(y,Rt),I=y[Rt];try{y[Rt]=void 0;var W=!0}catch{}var ge=j.call(y);return W&&(A?y[Rt]=I:delete y[Rt]),ge}var jo=Hr?function(y){return y==null?[]:(y=Object(y),Vt(Hr(y),function(A){return Pe.call(y,A)}))}:Si,Nt=Or;(_n&&Nt(new _n(new ArrayBuffer(1)))!=H||Tr&&Nt(new Tr)!=m||bn&&Nt(bn.resolve())!=b||wn&&Nt(new wn)!=N||Sn&&Nt(new Sn)!=G)&&(Nt=function(y){var A=Or(y),I=A==v?y.constructor:void 0,W=I?ut(I):"";if(W)switch(W){case li:return H;case Qt:return m;case Eo:return b;case _o:return N;case bo:return G}return A});function rr(y,A){return A=A??a,!!A&&(typeof y=="number"||Ve.test(y))&&y>-1&&y%1==0&&y<A}function Ho(y){var A=typeof y;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?y!=="__proto__":y===null}function qo(y){return!!M&&M in y}function Go(y){var A=y&&y.constructor,I=typeof A=="function"&&A.prototype||O;return y===I}function yi(y){return j.call(y)}function ut(y){if(y!=null){try{return E.call(y)}catch{}try{return y+""}catch{}}return""}function vi(y,A){return y===A||y!==y&&A!==A}var Ei=pi(function(){return arguments}())?pi:function(y){return Ft(y)&&C.call(y,"callee")&&!Pe.call(y,"callee")},Wr=Array.isArray;function zr(y){return y!=null&&In(y.length)&&!_i(y)}var Qr=En||Wo;function Vo(y,A){return mi(y,A)}function _i(y){if(!bi(y))return!1;var A=Or(y);return A==f||A==p||A==l||A==T}function In(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=a}function bi(y){var A=typeof y;return y!=null&&(A=="object"||A=="function")}function Ft(y){return y!=null&&typeof y=="object"}var Ln=Je?yn(Je):Bo;function wi(y){return zr(y)?Fo(y):Uo(y)}function Si(){return[]}function Wo(){return!1}e.exports=Vo})(mu,mu.exports);var GN=mu.exports;const VN=Er(GN);const AE=({element:e="section",children:t,className:r,...n})=>U.createElement(e,{className:se("modal",r),children:typeof t=="string"?x.jsx("p",{children:t}):t,...n});const CE=({id:e="content-overlay",isOpen:t=!1,maxWidth:r,functions:{onOpen:n=()=>{},onClose:i=()=>{}}={},forceShow:{error:o=!1}={},title:a,children:s,buttons:c,className:l="",gtmContext:u="Modal"})=>{const d=Oe(),[h,f]=U.useState(t),p=_=>{f(_),_?(n(),document.body.classList.add("has-overlay")):(i(),document.body.classList.remove("has-overlay"))};U.useEffect(()=>{p(t)},[t]);const m=r?{"--max-width":`${r/16}rem`}:{};return x.jsx("div",{className:se("overlay",{open:h}),children:x.jsx(AE,{id:e,className:se("overlay-modal",l,{"has-max-width":r}),hidden:!h,style:m,children:t&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"top",children:[x.jsx("h2",{children:a}),x.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:"close"},onClick:()=>p(!1),className:"gtm-trackable","data-gtm-event-type":"close-modal-click","data-gtm-event-context":u,screenreaderText:d.formatMessage({id:"overlay_button"})})]}),x.jsx(tu,{}),s,c&&x.jsxs("div",{className:"bottom",children:[x.jsx(tu,{}),x.jsx(na,{buttons:c})]}),o&&x.jsx(nu,{className:"error",children:o})]})})})},RE=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),Zm=e=>{const t={};return Object.keys(e).forEach(r=>{t[`${r}Slug`]=e[r]}),t};const Lr="discussion_",ku=({element:e="div",content:t,userHasPermissions:r=!0,isLoading:n=!1,originalAuthorId:i,functions:{content:{createContent:o,deleteContent:a,updateContent:s}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:c,deleteLike:l}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:u}={openComments:()=>{}}},links:d={},className:h,gtmContext:f="DiscussionAnswer",children:p})=>{const m=Oe(),_=U.useContext($r),S=U.useContext(yh),[v,b]=U.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[T,w]=U.useState(!1),[N,R]=U.useState("");if(U.useEffect(()=>{b({...v,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),n||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return x.jsx(yr,{className:"discussion-card discussion-post"});const{author:L,canLike:$,createdAt:G,id:q,likes:H=0,userLiked:Y,comments:ie=0}=t,K=_&&_.id&&typeof L!="string"&&L.id&&L.id===_.id||!1,k=typeof $=="boolean"?$:r?!K:!1,Q=async X=>{X||(X=""),R("");try{if(!VN(X,v.body)){const le=t.type==="question"?{title:X}:{body:X};await s(Zm(t.slugs),le)}b({body:X,isEditing:!1,didEdit:!0})}catch{R(`${Lr}form_error`)}},ee=()=>{S&&S.updateConversation&&S.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const le=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,de=document.getElementById(le),Ve=document.getElementById(`${le}-input`);Ve&&Ve.focus(),de&&de.scrollIntoView({behavior:"smooth"})},0)},he=()=>{try{a(Zm(t.slugs))}catch{R("delete-error")}},Z=[{text:m.formatMessage({id:`${Lr}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${Lr}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${Lr}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return r&&K&&Z.push({text:m.formatMessage({id:`${Lr}moreMenu_edit`}),onClick:()=>b({...v,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${Lr}moreMenu_delete`}),onClick:X=>{X.preventDefault(),X.stopPropagation(),w(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`delete-${t.type}-click`,...RE(`delete-${t.slug}-modal`,T)}),U.createElement(e,{className:se("discussion-post",h),"data-testid":`discussion-${t.type}-thread`,children:x.jsxs(x.Fragment,{children:[x.jsxs("div",{id:q||t.slug,className:se("discussion-card",t.type,{editing:v.isEditing,"has-link":d.post&&!v.isEditing}),onClick:X=>{!d.post||v.isEditing||(X.preventDefault(),X.stopPropagation(),window.location.href=d.post)},children:[!v.isEditing&&x.jsx(Au,{member:L,additionalContent:{createdAt:G,didEdit:v.didEdit},className:typeof L!="string"&&L.id===i?"highlighted":"",gtmContext:f,gtmType:"profile-click"}),v.isEditing?x.jsx(mh,{content:{type:t.type,slugs:t.slugs},userHasPermissions:r,meta:{isLoading:n,isInWrapper:!0,isEditing:{text:v.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:N!==""&&N!=="delete-error"?m.formatMessage({id:N},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:o,handleSaveEdit:Q,handleCancel:()=>{R(""),b({...v,isEditing:!1})}},gtmContext:`${f}Form`}):d.post?x.jsx("a",{href:d.post,className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":"title-click",children:x.jsx(sf,{options:{overrides:{a:A0}},children:v.body})}):x.jsx(sf,{options:{wrapper:t.type==="question"?"h1":U.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:v.body}),!v.isEditing&&x.jsxs("ul",{className:se("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[x.jsx(OE,{element:"li",likes:H,isShort:!1,userLiked:Y,content:{type:t.type,slugs:t.slugs},canLike:k,functions:{createLike:c,deleteLike:l}}),["question","post"].includes(t.type)||d.comments||typeof u=="function"&&x.jsxs("li",{className:"action-button",onClick:X=>{X.preventDefault(),X.stopPropagation(),d.comments&&(window.location.href=d.comments),typeof u=="function"&&u()},children:[x.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:d.comments?d.comments:!1,onClick:d.comments||typeof u!="function"?!1:u,className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${Lr}comments_screenReader`},{count:ie})}),x.jsx("span",{children:m.formatMessage({id:`${Lr}comments`},{count:ie})})]}),(t.type==="answer"||t.type==="reply")&&x.jsx("li",{children:x.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:ee,children:m.formatMessage({id:`${Lr}reply`})})}),x.jsx(lE,{element:"li",id:`more-${t.slug}`,options:Z})]})]}),p,x.jsx(CE,{id:`delete-${t.slug}-modal`,isOpen:T,functions:{onOpen:()=>{},onClose:()=>w(!1)},forceShow:{error:N==="delete-error"?m.formatMessage({id:"discussion_delete_error"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},title:m.formatMessage({id:"discussion_delete_title"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}),buttons:[{variant:"secondary",onClick:()=>w(!1),children:m.formatMessage({id:"discussion_delete_cancel"})},{variant:"primary",className:"destructive",onClick:he,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:x.jsx(ln,{id:"discussion_delete_text",values:{p:X=>x.jsx("p",{children:X}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const Cl="discussion_responses_",WN=({type:e="answer",responses:t=0})=>{const r=Oe();return x.jsxs("div",{className:"responses-heading",children:[x.jsx("h3",{children:r.formatMessage({id:`${Cl}title`},{action:r.formatMessage({id:`${Cl}${e}`}),count:t})}),t===0&&x.jsx("p",{children:ar(r.formatMessage,`${Cl}empty`,e,e)})]})};const zN=({isOpen:e=!1,count:t=0,children:r})=>{const n=Oe(),i=U.useRef(null),[o,a]=U.useState(e),[s,c]=U.useState("closed");U.useEffect(()=>{const h=i.current;if(h)return h.addEventListener("transitionend",l),()=>{h.removeEventListener("transitionend",l)}},[]),ri(()=>{s==="closed"&&!o||c(["opening","open"].includes(s)?"ready-to-close":"opening")},[o]),U.useEffect(()=>{s==="ready-to-close"&&c("closing")},[s]);const l=({propertyName:h})=>{h==="max-height"&&c(f=>f==="opening"?"open":f==="closing"?"closed":f)},u=["opening","open"].includes(s),d=Ov(r,{element:"li"});return x.jsxs("div",{className:"thread-wrapper",children:[x.jsx(ze,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${u?"left":"right"}`},onClick:()=>{a(!o)},children:n.formatMessage({id:`discussion_thread_${u?"hide":"show"}`},{count:t})}),x.jsx("ul",{ref:i,className:se("thread",s),hidden:!o,children:d})]})},QN=({user:e,content:t,verb:r="post"})=>({actor:{id:e.id,data:{name:e.name,organization:e==null?void 0:e.organization,jobTitle:e==null?void 0:e.jobTitle}},content:t,latest_reactions:{like:[]},reaction_counts:{like:0},verb:r}),YN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({content:s})=>{if(!r)return;const c=QN({user:r,content:s,verb:"post"});await e.cancelQueries({queryKey:t});const l=e.getQueryData(t);return e.setQueryData(t,u=>[...u,c]),{previousActivities:l}},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivities)},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),KN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({activityId:s})=>{await e.cancelQueries({queryKey:t});const c=e.getQueryData(t),l=c==null?void 0:c.map(u=>{var d;return(u==null?void 0:u.id)===s&&((d=u.reaction_counts)!=null&&d.like?u.reaction_counts.like+=1:u.reaction_counts.like=1),u});return e.setQueryData(t,()=>l&&[...l]),{previousActivities:l}},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivities)},onSuccess:s=>{const c=e.getQueryData(t),l=c==null?void 0:c.map(u=>((u==null?void 0:u.id)===(s==null?void 0:s.activity_id)&&(u.latest_reactions.like?u.latest_reactions.like.push(s):u.latest_reactions.like=[s]),u));return e.setQueryData(t,()=>l&&[...l]),{previousActivities:c}},onSettled:(s,c,l)=>{e.invalidateQueries({queryKey:[...t,l.activityId]})}}),XN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({activityId:c})=>{await e.cancelQueries({queryKey:t});const l=e.getQueryData(t),u=l==null?void 0:l.map(d=>{var h;return(d==null?void 0:d.id)===c&&(h=d.reaction_counts)!=null&&h.like&&(d.reaction_counts.like-=1),d});return e.setQueryData(t,()=>u&&[...u]),{previousActivities:u}},onError:(c,l,u)=>{e.setQueryData(t,u.previousActivities)},onSuccess:(c,{activityId:l})=>{const u=e.getQueryData(t),d=u==null?void 0:u.map(h=>{var f,p,m,_;if(h.id===l){const S=(m=(p=(f=h.latest_reactions)==null?void 0:f.like)==null?void 0:p.find(v=>v.user_id===(r==null?void 0:r.id)))==null?void 0:m.id;return h.latest_reactions.like=(_=h.latest_reactions.like)==null?void 0:_.filter(v=>v.id!==S),h}else return h});return e.setQueryData(t,()=>d&&[...d]),{previousActivities:u}},onSettled:(c,l,u)=>{e.invalidateQueries({queryKey:[...t,u.activityId]})}}),JN=({basePath:e,parentId:t,membershipRequiredToPost:{isMember:r,join:n,leave:i},functions:{list:o,create:a,like:s,unlike:c}})=>{const l=go(),u=U.useContext($r),{data:d,error:h,isLoading:f,isFetching:p}=V0({queryKey:[e,t],queryFn:o}),m=YN({queryClient:l,queryKey:[e,t],user:u,mutationFn:a}),{mutate:_}=fn(m),S=KN({queryClient:l,queryKey:[e,t],mutationFn:s}),{mutate:v}=fn(S),b=XN({queryClient:l,queryKey:[e,t],user:u,mutationFn:async({activityId:R})=>{var G,q,H;const L=d&&(d==null?void 0:d.find(Y=>Y.id===R)),$=(H=(q=(G=L==null?void 0:L.latest_reactions)==null?void 0:G.like)==null?void 0:q.find(Y=>Y.user_id===(u==null?void 0:u.id)))==null?void 0:H.id;await c({reactionId:$||"",activityId:R})}}),{mutate:T}=fn(b),w=U.useCallback(({activityId:R})=>v({activityId:R}),[v]),N=U.useCallback(({activityId:R})=>T({activityId:R}),[T]);return h?x.jsx(aa,{variant:"error",text:h.message}):f?x.jsx(yr,{style:{height:"400px"}}):x.jsxs(x.Fragment,{children:[x.jsx(gh,{contentType:"post",createPost:_,membershipRequiredToPost:{isMember:r,required:!0,join:n,leave:i,notMemberStateText:"Join community to create a post."}}),!p&&Array.isArray(d)&&(d==null?void 0:d.map(R=>{var L,$,G,q,H,Y,ie,K,k,Q;return x.jsx(ku,{content:{type:"post",body:R==null?void 0:R.content,createdAt:(R==null?void 0:R.time)||"",slugs:{question:t},slug:R==null?void 0:R.id,author:{id:(L=R==null?void 0:R.actor)==null?void 0:L.id,name:(G=($=R==null?void 0:R.actor)==null?void 0:$.data)==null?void 0:G.name,organization:(H=(q=R==null?void 0:R.actor)==null?void 0:q.data)==null?void 0:H.organization,jobTitle:(ie=(Y=R==null?void 0:R.actor)==null?void 0:Y.data)==null?void 0:ie.jobTitle,image:{thumbnail:((k=(K=R==null?void 0:R.actor)==null?void 0:K.data)==null?void 0:k.thumbnail)||void 0}},userLiked:R.own_reactions.like&&((Q=R==null?void 0:R.own_reactions)==null?void 0:Q.like.length)>0,likes:(R==null?void 0:R.reaction_counts.like)||0,comments:(R==null?void 0:R.reaction_counts.reply)||0},links:{post:`${e}/${t}/${R==null?void 0:R.id}`,comments:`${e}/${t}/${R==null?void 0:R.id}`},functions:{content:{createContent:()=>null,deleteContent:()=>null,updateContent:()=>null},likes:{createLike:()=>{w({activityId:R==null?void 0:R.id})},deleteLike:()=>{N({activityId:R==null?void 0:R.id})}},comments:{openComments:()=>null}}},R==null?void 0:R.id)}))]})},ZN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{await e.cancelQueries({queryKey:t})},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:s=>{var l;const c=e.getQueryData(t);if(c)return(l=c==null?void 0:c.latest_reactions)!=null&&l.reply?(c.latest_reactions.reply.unshift(s),c&&(c.reaction_counts={reply:c.latest_reactions.reply.length})):(c.latest_reactions={reply:[s]},c.reaction_counts={reply:1}),e.setQueryData(t,()=>({...c})),{previousActivity:c}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),eI=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({replyId:a})=>{var l,u;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t),c=(u=(l=s==null?void 0:s.latest_reactions)==null?void 0:l.reply)==null?void 0:u.map(d=>{var h;return d.id===a&&((h=d.children_counts)!=null&&h.like?d.children_counts.like+=1:d.children_counts={like:1}),d});return e.setQueryData(t,()=>({...s,latest_reactions:{reply:c}})),{previousActivity:s}},onError:(a,s,c)=>{e.setQueryData(t,c.previousActivity)},onSuccess:a=>{var l;const s=e.getQueryData(t),c=(l=s==null?void 0:s.latest_reactions.reply)==null?void 0:l.map(u=>(u.id===a.id&&(u.latest_children.like?u.latest_children.like.push(a):u.latest_children.like=[a]),u));return e.setQueryData(t,()=>({...s,latest_reactions:{reply:c}})),{previousActivity:s}}}),tI=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({replyId:s})=>{var u;await e.cancelQueries({queryKey:t});const c=e.getQueryData(t);if(!c)return;const l=(u=c.latest_reactions.reply)==null?void 0:u.map(d=>(d.id===s&&d.children_counts.like&&(d.children_counts.like-=1),d));return e.setQueryData(t,()=>({...c,latest_reactions:{reply:l}})),{previousActivity:c}},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:(s,{replyId:c})=>{var d;const l=e.getQueryData(t);if(!l)return;const u=(d=l.latest_reactions.reply)==null?void 0:d.map(h=>{var f;return h.id===c?(f=h.latest_children.reply)==null?void 0:f.filter(m=>m.user_id!==(r==null?void 0:r.id)):h});return e.setQueryData(t,()=>({...l,latest_reactions:{reply:u}})),{previousActivity:l}}}),PE=({basePath:e,parentId:t,activityId:r,repliesList:n,membershipRequiredToPost:{isMember:i,join:o,leave:a},functions:{createReply:s,like:c,unlike:l}})=>{const u=go(),d=U.useContext($r),h=ZN({queryClient:u,queryKey:[e,t,r],mutationFn:s}),{mutate:f}=fn(h),p=eI({queryClient:u,queryKey:[e,t,r],mutationFn:c}),{mutate:m}=fn(p),_=tI({queryClient:u,queryKey:[e,t,r],user:d,mutationFn:l}),{mutate:S}=fn(_),v=U.useCallback(({replyId:T})=>m({replyId:T}),[m]),b=U.useCallback(({replyId:T})=>S({replyId:T}),[S]);return x.jsxs(x.Fragment,{children:[x.jsx(gh,{contentType:"post",createPost:f,membershipRequiredToPost:{isMember:i,required:!0,join:o,leave:a,notMemberStateText:"Join community to create a post."}}),(n==null?void 0:n.length)===0||(n==null?void 0:n.map(T=>{var N,R,L,$,G,q,H,Y,ie,K,k,Q,ee,he,Z,X;const w=((N=T==null?void 0:T.latest_children)==null?void 0:N.like)&&((R=T==null?void 0:T.latest_children)==null?void 0:R.like.filter(le=>le.user_id===(d==null?void 0:d.id)));return x.jsx(ku,{content:{type:"post",body:typeof T.data.content=="string"?(L=T==null?void 0:T.data)==null?void 0:L.content:((G=($=T==null?void 0:T.data)==null?void 0:$.content)==null?void 0:G.text)||"",createdAt:T==null?void 0:T.created_at,slugs:{question:`${e}/${t}/${r}`,reply:T==null?void 0:T.id},slug:`${e}/${t}/${r}#${T==null?void 0:T.id}`,author:{id:(q=T==null?void 0:T.user)==null?void 0:q.id,name:(Y=(H=T==null?void 0:T.user)==null?void 0:H.data)==null?void 0:Y.name,organization:(K=(ie=T==null?void 0:T.user)==null?void 0:ie.data)==null?void 0:K.organization,jobTitle:(Q=(k=T==null?void 0:T.user)==null?void 0:k.data)==null?void 0:Q.jobTitle,image:{thumbnail:((he=(ee=T==null?void 0:T.user)==null?void 0:ee.data)==null?void 0:he.thumbnail)||void 0}},userLiked:!!(w!=null&&w.length),likes:((Z=T==null?void 0:T.children_counts)==null?void 0:Z.like)||0,comments:((X=T==null?void 0:T.children_counts)==null?void 0:X.reply)||0},functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>v({replyId:T==null?void 0:T.id}),deleteLike:()=>b({replyId:T==null?void 0:T.id})},comments:{openComments:()=>{}}}},T==null?void 0:T.id)}))]})},rI=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{var c;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t);return(c=s==null?void 0:s.reaction_counts)!=null&&c.like?s.reaction_counts.like+=1:s&&(s.reaction_counts={like:1}),e.setQueryData(t,()=>({...s})),{previousActivity:s}},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:s=>{const c=e.getQueryData(t);return c!=null&&c.latest_reactions.like?c.latest_reactions.like.push(s):c&&(c.latest_reactions={like:[s]}),e.setQueryData(t,()=>({...c})),{previousActivity:c}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),nI=({queryClient:e,queryKey:t,user:r,activity:n,mutationFn:i})=>({mutationFn:i,onMutate:async()=>{var u;await e.cancelQueries({queryKey:t});const l=e.getQueryData(t);return(u=l==null?void 0:l.reaction_counts)!=null&&u.like&&l.reaction_counts.like>0&&(l.reaction_counts.like-=1),e.setQueryData(t,()=>({...l})),{previousActivity:l}},onError:(l,u,d)=>{e.setQueryData(t,d.previousActivity)},onSuccess:()=>{var d,h,f;if(!n)return;const l=(f=(h=(d=n.latest_reactions)==null?void 0:d.like)==null?void 0:h.find(p=>p.user_id===(r==null?void 0:r.id)))==null?void 0:f.id,u=e.getQueryData(t);if(u!=null&&u.latest_reactions.like)return u.latest_reactions.like=u.latest_reactions.like.filter(p=>p.id!==l),e.setQueryData(t,()=>({...u})),{previousActivity:u}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),iI=({basePath:e,parentId:t,activityId:r,membershipRequiredToPost:n,functions:{get:i,likeActivity:o,unlikeActivity:a,createReply:s,likeReply:c,unlikeReply:l}})=>{var N,R,L,$,G,q,H,Y,ie,K;const u=U.useContext($r),d=go(),{data:h,error:f,isLoading:p,isFetching:m}=V0({queryKey:[e,t,r],queryFn:i}),_=rI({queryClient:d,queryKey:[e,t,r],mutationFn:o}),{mutate:S}=fn(_),v=nI({queryClient:d,queryKey:[e,t,r],user:u,mutationFn:async()=>{var Q,ee,he;const k=(he=(ee=(Q=h==null?void 0:h.latest_reactions)==null?void 0:Q.like)==null?void 0:ee.find(Z=>Z.user_id===(u==null?void 0:u.id)))==null?void 0:he.id;await a({activityId:r,reactionId:k})},activity:h}),{mutate:b}=fn(v),T=U.useCallback(({activityId:k})=>S({activityId:k}),[S]),w=U.useCallback(async({activityId:k})=>b({activityId:k}),[b]);return f?x.jsx(aa,{variant:"error",text:f.message}):p||m?x.jsx(yr,{style:{height:"400px"}}):x.jsx(ku,{content:{type:"post",body:h==null?void 0:h.content,createdAt:(h==null?void 0:h.time)||"",slugs:{question:`${t}/${r}`},slug:r,author:{id:(N=h==null?void 0:h.actor)==null?void 0:N.id,name:(R=h==null?void 0:h.actor)==null?void 0:R.data.name,organization:(L=h==null?void 0:h.actor)==null?void 0:L.data.organization,jobTitle:($=h==null?void 0:h.actor)==null?void 0:$.data.jobTitle,image:{thumbnail:((G=h==null?void 0:h.actor)==null?void 0:G.data.thumbnail)||void 0}},userLiked:((q=h==null?void 0:h.own_reactions)==null?void 0:q.like)&&((H=h==null?void 0:h.own_reactions)==null?void 0:H.like.length)>0,likes:h&&(h==null?void 0:h.reaction_counts.like),comments:h&&(h==null?void 0:h.reaction_counts.reply)},originalAuthorId:(Y=h==null?void 0:h.actor)==null?void 0:Y.id,functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>T({activityId:r}),deleteLike:()=>w({activityId:r})},comments:{openComments:()=>{}}},children:x.jsxs(x.Fragment,{children:[x.jsxs("h3",{children:["Comments (",((ie=h==null?void 0:h.reaction_counts)==null?void 0:ie.reply)||0,")"]}),x.jsx(PE,{basePath:e,parentId:t,activityId:r,repliesList:(K=h==null?void 0:h.latest_reactions)==null?void 0:K.reply,membershipRequiredToPost:n,functions:{createReply:s,like:c,unlike:l}})]})},r)},oI=({id:e,data:{jobTitle:t,name:r,organization:n,thumbnail:i}})=>({id:e,name:r,jobTitle:t,organization:n,image:{thumbnail:i}});exports.$PROXY=Is;exports.$TRACK=nh;exports.ASSETS_BUCKET=ru;exports.ActivitiesFeed=JN;exports.ActivitySection=iI;exports.AddPost=gh;exports.Breadcrumbs=aP;exports.Button=ze;exports.ButtonWrapper=na;exports.CollapsibleSection=Xf;exports.Columns=hP;exports.CommunityDetails=sP;exports.Contributors=L0;exports.Conversation=jN;exports.ConversationContext=yh;exports.CookieBanner=fE;exports.Divider=tu;exports.DownloadSection=JA;exports.Dynamic=tP;exports.EMAILS=Ni;exports.EmailHelperTextBox=dP;exports.EmptyStateBox=aa;exports.Filters=uP;exports.Footer=ch;exports.For=AR;exports.Form=mh;exports.FullWidthSection=Yf;exports.Header=ph;exports.HelperTextBox=O0;exports.HiddenFromScreenReaders=Of;exports.HideShowTextBox=c1;exports.HighlightedTextBoxWrapper=Br;exports.Index=CR;exports.IntlProvider=w1;exports.JoinButton=ah;exports.LanguageSwitcher=lP;exports.Likes=OE;exports.Link=ia;exports.LoadMore=cE;exports.LoadingPlaceholder=yr;exports.LoadingState=N0;exports.Logo=uh;exports.LogoSection=ZA;exports.MarkdownText=sf;exports.MarketingBlock=nC;exports.Match=NR;exports.Member=Au;exports.MembersList=SN;exports.Modal=AE;exports.MoreMenu=lE;exports.NUMBER_OF_USERS=oC;exports.Overlay=CE;exports.PageLayout=_N;exports.Pill=C0;exports.Portal=eP;exports.Post=ku;exports.ProfilePicture=Ou;exports.ProgressBar=R0;exports.Rating=yP;exports.ReactQueryProvider=oP;exports.RepliesFeed=PE;exports.ResponsesHeading=WN;exports.ResponsiveImage=Av;exports.SearchForm=mE;exports.Show=RR;exports.Span=A0;exports.StatusBanner=nu;exports.Switch=PR;exports.Tags=wN;exports.Thread=zN;exports.Tooltip=i0;exports.UserContext=$r;exports.UserProvider=S1;exports.VisuallyHidden=lt;exports.addAriaProps=RE;exports.addEventListener=sE;exports.bannerSection=rC;exports.batch=aR;exports.children=oh;exports.className=oE;exports.createComponent=eE;exports.createComputed=_f;exports.createContext=pR;exports.createEffect=ih;exports.createMemo=St;exports.createRenderEffect=dn;exports.createRoot=hn;exports.createSignal=bt;exports.createUniqueId=OR;exports.delegateEvents=iE;exports.getListener=lR;exports.getMember=eh;exports.headerData=Ms;exports.insert=hu;exports.loadingBlock=E1;exports.mapGetSteamData=oI;exports.mergeProps=tE;exports.on=uR;exports.onCleanup=Ls;exports.onMount=cR;exports.passwordRules=gP;exports.setAttribute=fu;exports.splitProps=rE;exports.spread=aE;exports.template=qR;exports.untrack=Xe;exports.use=zR;exports.useContext=mR;exports.useEffectAfterMount=ri;exports.useFeatureFlag=dx;exports.useScreenWidth=ra;exports.useScrollListener=mv;exports.useScrollToHash=mx;exports.useTransition=dR;